-
Notifications
You must be signed in to change notification settings - Fork 5
Support SUI extraArgs in codec #565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for Sui blockchain's extra arguments in the CCIP codec, extending the existing framework that handles EVM and SVM extra arguments.
Changes:
- Introduced
SuiExtraArgsV1struct to represent Sui-specific transaction parameters - Refactored
DecodeExtraArgsToMapto use a map-based dispatch mechanism for handling different extra args types - Added comprehensive test coverage for Sui extra args encoding/decoding
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pkg/ccip/bindings/onramp/onramp.go | Added SuiExtraArgsV1 struct definition with gas limit, execution ordering, token receiver, and object IDs |
| pkg/ccip/bindings/onramp/onramp_test.go | Added test case to verify encoding and decoding of SuiExtraArgsV1 |
| pkg/ccip/codec/extradatacodec.go | Refactored decoder to use map-based type lookup and added Sui extra args tag support |
| pkg/ccip/codec/extradatacodec_test.go | Added test case for decoding Sui extra args into a map |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
krebernisak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.