Skip to content

feat: Soroban event pagination, multi-pool history, boost modal, optimistic unlock - #189

Merged
ritaifeoluwa merged 1 commit into
SmartDropLabs:mainfrom
boys-cyberhub:feat/stellar-wave-features
Aug 25, 2026
Merged

feat: Soroban event pagination, multi-pool history, boost modal, optimistic unlock#189
ritaifeoluwa merged 1 commit into
SmartDropLabs:mainfrom
boys-cyberhub:feat/stellar-wave-features

Conversation

@boys-cyberhub

Copy link
Copy Markdown
Contributor

What changed

  • Added shared getAllEvents pagination helper for Soroban getEvents RPC, applied to getPoolHistory, getPoolDepositors, fetchLeaderboardFromEvents, and getUserTransactionHistory
  • Updated History page to derive pool contract IDs from usePools() (factory pools) instead of single env var, matching Farm page pattern
  • Added optimistic React Query cache update in UnlockModal with rollback on failure (but not on timeout)
  • Built BoostModal component with allocation slider, wired EarningRow Boost button to openBoost()

Why

How to test

  • Run npm test — all existing tests pass plus new tests for pagination helper, History page multi-pool, and BoostModal
  • The one pre-existing failure in soroban-parsers.test.ts (decodeScString) is unrelated

Closes #73
Closes #80
Closes #81
Closes #82

@netlify

netlify Bot commented Aug 25, 2026

Copy link
Copy Markdown

Deploy Preview for smart-drop failed.

Name Link
🔨 Latest commit 7ac89c1
🔍 Latest deploy log https://app.netlify.com/projects/smart-drop/deploys/6a8d9641ee65ec0008754f69

@drips-wave

drips-wave Bot commented Aug 25, 2026

Copy link
Copy Markdown

@boys-cyberhub Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@netlify

netlify Bot commented Aug 25, 2026

Copy link
Copy Markdown

Deploy Preview for spiffy-melomakarona-eb1e8a ready!

Name Link
🔨 Latest commit 7ac89c1
🔍 Latest deploy log https://app.netlify.com/projects/spiffy-melomakarona-eb1e8a/deploys/6a8d964130fafd00074714e9
😎 Deploy Preview https://deploy-preview-189--spiffy-melomakarona-eb1e8a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@boys-cyberhub
boys-cyberhub force-pushed the feat/stellar-wave-features branch from 8cacaa7 to 4284a31 Compare August 25, 2026 13:12
…and optimistic unlock

- Add shared getAllEvents pagination helper for Soroban getEvents RPC (SmartDropLabs#73)
- Apply pagination to getPoolHistory, getPoolDepositors, fetchLeaderboardFromEvents, getUserTransactionHistory
- Surface truncation warnings in history page UI when results are truncated
- Update History page to derive pool contract IDs from usePools() like Farm page (SmartDropLabs#80)
- Fix useEffect dependency array in History page
- Add optimistic React Query cache update in UnlockModal with rollback on failure (SmartDropLabs#82)
- Invalidate queries on successful unlock
- Build BoostModal component with allocation slider and useSetBoost mutation (SmartDropLabs#81)
- Wire EarningRow Boost button to openBoost() with proper disabled states
- Add boostAllocation field to FarmPosition type
- Add unit tests for pagination helper, History page, and BoostModal
- Update existing tests for new getUserTransactionHistory return type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment