feat(abstract-eth): add ZAMA staking delegate flow#8775
Draft
Vijay-Jagannathan wants to merge 1 commit into
Draft
feat(abstract-eth): add ZAMA staking delegate flow#8775Vijay-Jagannathan wants to merge 1 commit into
Vijay-Jagannathan wants to merge 1 commit into
Conversation
4d2d1ec to
44bfb4b
Compare
Implement SDK builder and ABI encoding utilities for the ZAMA ERC-4626
staking delegate flow:
- zamaStakingUtils.ts: ABI encoding for ERC20 approve(address,uint256)
and ERC4626 deposit(uint256,address) with correct selectors
(0x095ea7b3, 0x6e553f65)
- zamaStakingBuilder.ts: ZamaStakingBuilder class with buildApprove()
and buildDeposit() methods producing {to, data, value} tx requests
- Add CoinFeature.STAKING to ERC7984_TOKEN_FEATURES
- Comprehensive unit tests (38 new tests) with ABI round-trip decoding
TICKET: SI-560
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
44bfb4b to
6fbf386
Compare
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
zamaStakingUtils.tswith encoding forapprove(address,uint256)(0x095ea7b3) anddeposit(uint256,address)(0x6e553f65)zamaStakingBuilder.tswithZamaStakingBuilderclass providingbuildApprove()andbuildDeposit()methods that produce{to, data, value}tx requests for WPCoinFeature.STAKINGtoERC7984_TOKEN_FEATURESin staticsArchitecture
Transaction Flow
approve(address,uint256)0x095ea7b3deposit(uint256,address)0x6e553f65Dependencies
Ticket: SI-560
Test plan
🤖 Generated with Claude Code