feat(nextjs-stablecoin-yield-pods): rework Pods example for ZeroDev batched deposits - #70
Open
avneesh0612 wants to merge 3 commits into
Open
feat(nextjs-stablecoin-yield-pods): rework Pods example for ZeroDev batched deposits#70avneesh0612 wants to merge 3 commits into
avneesh0612 wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Deployment failed for project sidebar-example with the following error: |
|
Deployment failed for project dynamic-morpho with the following error: |
|
Deployment failed for project dynamic-gasless-starter with the following error: |
|
Deployment failed for project dynamic-aave with the following error: |
|
Deployment failed for project lifi with the following error: |
|
Deployment failed for project circle-gateway with the following error: |
|
Deployment failed for project blindpay with the following error: |
… logo, footer, card layout)
fb-kimcodeashian
approved these changes
Aug 12, 2026
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.
Summary
Replaces the existing
nextjs-stablecoin-yield-podsexample with the Pods engineer's updated Next.js app that demonstrates batched deposits through ZeroDev smart wallets, then restores the shared example shell (header, logo, footer, and card-based page layout) used by the Aave/Morpho examples.The previous example sent each Pods bytecode transaction in a loop with
walletClient.sendTransaction. The new implementation requestsGET /strategies/:strategyId/bytecodewithoutoutput=userOperation, converts the returnedbytecode[]into ZeroDev{ to, value, data }calls, and submits the whole array as a singlekernelClient.sendTransaction({ calls })user operation. It also polls ZeroDev for a receipt and, if missing, queries Monad EntryPoint logs for the user operation hash.Key changes
useTransactionOperations.ts/YieldInterface.tsxwithuseZeroDevBatchedDeposit.tsandBatchedPodsDeposit.tsx.src/app/api/pods/deposit-bytecode— proxies the Pods bytecode request soPODS_API_KEYstays server-side.src/app/api/monad/user-operation-inclusion— queries Monadeth_getLogsfor the EntryPointUserOperationEventwhen ZeroDev has not indexed the receipt.zerodev-batch.ts/.test.tszerodev-errors.ts/.test.tspods-client.ts/.test.tspods-validation.tsmonad-inclusion.ts/.test.tsproviders.tsxto registerZeroDevSmartWalletConnectorsWithConfigwith an optionalNEXT_PUBLIC_ZERODEV_RPC_URLoverride and to map Monad mainnet (chainId 143) viamergeNetworks.vitest.config.tsandnext-env.d.ts.HeaderwithDynamicLogoand a React-SDKDynamicButton.Footerwith the Dynamic logo and example-specific links.Providers/Header/Footershell.BatchedPodsDepositform into a two-column card layout insidemax-w-6xland aligned the color tokens (white cards,#F9F9F9page background,#DADADAborders,#030303primary text).favicon.ico,logo-dark.png,logo-light.png,image-dark.png,image-light.png).pnpm-lock.yamlagainst the JFrog registry, downgradingjsdomto29.1.0to match available versions.Verification
pnpm lint— passedpnpm type-check— passedpnpm test— 26 tests passedpnpm build— passedFollow-up
The docs recipe
recipes/integrations/yield/stablecoin-yield-pods.mdxcurrently references the olduseTransactionOperations.tsandYieldInterface.tsxfiles. If this example is merged, that recipe will need to be rewritten to match the new file structure and focused ZeroDev batched-deposit scope.Link to Devin session: https://dynamicxyz.devinenterprise.com/sessions/4180a0421d5643e1abf1599253e25df5
Requested by: @fb-kimcodeashian