Skip to content
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

destexecdata decoder support + refactor #15978

Conversation

huangzhen1997
Copy link
Contributor

@huangzhen1997 huangzhen1997 commented Jan 17, 2025

Step 2 for https://smartcontract-it.atlassian.net/browse/NONEVM-1163. This PR implements a new function added for plugin oracle creator extradata codec based on smartcontractkit/chainlink-ccip#472. This PR is just an noop, the actual implementation will be submitted with a different PR and gets merged into solana-offchain-plugin branch, where we need to process the bytes base on the source chain and reassign the bytes to message.

Copy link
Contributor

github-actions bot commented Jan 17, 2025

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

go.mod Outdated
@@ -78,7 +78,7 @@ require (
github.com/shopspring/decimal v1.4.0
github.com/smartcontractkit/chain-selectors v1.0.36
github.com/smartcontractkit/chainlink-automation v0.8.1
github.com/smartcontractkit/chainlink-ccip v0.0.0-20250123161904-c40aa8ca45b2
github.com/smartcontractkit/chainlink-ccip v0.0.0-20250127153115-8110edbdc289
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need to update this dependency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be updated once we merge the smartcontractkit/chainlink-ccip#472

Copy link
Contributor

@winder winder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The go.mod file doesn't need to be updated at this time. Please revert to avoid breaking compatibility between repos while the two PRs are merged.

return ExtraDataCodec{}
}

func (c ExtraDataCodec) DecodeExtraArgs(extraArgs cciptypes.Bytes, sourceChainSelector cciptypes.ChainSelector) (map[string]any, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you're missing DecodeExtraData, I thought you were just adding DecodeTokenAmountDestExecData. You'll need to add the old value and deprecate/remove it in a future PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was renaming it from DecodeExtraData to DecodeExtraArgs since it wasn't accurate.

@huangzhen1997 huangzhen1997 requested a review from winder January 28, 2025 05:46
@prashantkumar1982 prashantkumar1982 added this pull request to the merge queue Jan 28, 2025
Merged via the queue into develop with commit 08f4a4a Jan 28, 2025
203 of 204 checks passed
@prashantkumar1982 prashantkumar1982 deleted the NONEVM-1163/update-plugin-factory-with-destexecdata-decoder branch January 28, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants