feat(abstract-eth): add DelegateVotesBuilder for ERC20Votes delegateBySig (CGD-842)#8632
Open
feat(abstract-eth): add DelegateVotesBuilder for ERC20Votes delegateBySig (CGD-842)#8632
Conversation
…ySig Add DelegateVotesBuilder to build ABI-encoded calldata for the ERC20Votes delegateBySig function, enabling cold wallet governance delegation without gas or on-chain transactions from the cold wallet. The builder encodes delegatee, nonce, expiry, and an EIP-712 ECDSA signature (v, r, s) into calldata compatible with any OZ ERC20Votes token (WLFI, UNI, COMP, ARB, ENS, OP). Also adds: - delegateBySigMethodId and delegateBySigTypes constants to walletUtil - Unit tests for DelegateVotesBuilder (happy path + validation) - EIP-712 delegation fixture using live WLFI domain values Ticket: CGD-842 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
DelegateVotesBuilderto@bitgo/abstract-ethfor building ERC20VotesdelegateBySigcalldatadelegateBySigMethodIdanddelegateBySigTypesconstants towalletUtil.tsContext
Closes CGD-842. Cold wallet holders of governance tokens (WLFI, UNI, COMP, ARB, ENS, OP) can now delegate voting power to a hot wallet without moving funds or paying gas from the cold wallet.
WLFI
eip712Domain(): name "World Liberty Financial", version "2", chainId 1.Test plan
DelegateVotesBuilderproduces calldata starting with selector0x5c19a95c🤖 Generated with Claude Code