Fix savings SDK stake flow/errors and add dedicated savings widget demo app#47
Closed
Copilot wants to merge 4 commits into
Closed
Fix savings SDK stake flow/errors and add dedicated savings widget demo app#47Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
6 tasks
Agent-Logs-Url: https://github.com/GoodDollar/GoodSDKs/sessions/3aa3109f-691f-4527-ba8f-f9a5ae0c76b8 Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>
Agent-Logs-Url: https://github.com/GoodDollar/GoodSDKs/sessions/3aa3109f-691f-4527-ba8f-f9a5ae0c76b8 Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>
Agent-Logs-Url: https://github.com/GoodDollar/GoodSDKs/sessions/3aa3109f-691f-4527-ba8f-f9a5ae0c76b8 Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix issues in savings-sdk integration and create demo
Fix savings SDK stake flow/errors and add dedicated savings widget demo app
May 8, 2026
Contributor
|
GM @L03TJ3 please kindly assign to me. I can work on this. I'm an experienced open source contributor. |
|
Hello @L03TJ3, I am able to take up this task, and improve the functionality on the three gaps. I actively contribute to the stellar ecosystem, and is able to execute with proper cleanup. Thank you |
Contributor
Collaborator
|
Changes proposed are included in this PR: #49 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Integrating
savings-sdkin GoodDapp exposed three gaps: noisy RPC stack traces surfaced directly to users, stake attempts racing after approval flow, and weekly rewards showing0despite active rewards. This PR tightens SDK transaction/state handling, improves widget error UX including wrong-chain behavior, and adds a focused demo app for savings-widget integration.Savings SDK: approval→stake correctness and reward computation
packages/savings-sdk/src/viem-sdk.ts,stake()now enforces a stricter allowance path:stake.Savings Widget: clean user-facing errors + chain-switch UX
packages/savings-widget/src/GooddollarSavingsWidget.ts, transaction errors are normalized to a concise first-line message (stripping contract call/docs/detail noise).wallet_switchEthereumChainto Celo (0xa4ec),New demo app for savings-widget
apps/demo-savings-widget(Vite) to exercise savings widget flows with an injected EIP-1193 wallet.<gooddollar-savings-widget>.Docs update
apps/demo-savings-widgetto the root workspace demo list inREADME.md.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
binaries.soliditylang.org/usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/GoodSDKs/GoodSDKs/packages/engagement-contracts/node_modules/hardhat/internal/cli/bootstrap.js compile(dns block)forno.celo.org/home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1217/chrome-headless-shell-linux64/chrome-headless-shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1217/chrome-headless-shell-linux64/chrome-headless-shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BoundaryEventDispatchTracksNodeRemoval,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Transl in/dist/ripgrep/--disable-client-side-phishing-detection(dns block)If you need me to access, download, or install something from one of these locations, you can either: