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

Solana plugin codec implementation #15816

Conversation

huangzhen1997
Copy link
Contributor

@huangzhen1997 huangzhen1997 commented Dec 30, 2024

Jira reference:
https://smartcontract-it.atlassian.net/browse/NONEVM-935

The codec is implemented using chainlink-ccip gobinding tool.

The onchain sdk will provide a calculation for the token pool accounts, right now it's a fixed account length based on https://github.com/smartcontractkit/chainlink-ccip/blob/main/chains/solana/contracts/tests/ccip/ccip_router_test.go#L4839

Copy link
Contributor

github-actions bot commented Dec 30, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@huangzhen1997 huangzhen1997 marked this pull request as ready for review January 3, 2025 21:56
@huangzhen1997 huangzhen1997 requested review from a team as code owners January 3, 2025 21:56
require.NoError(t, err)

commitCodec := NewCommitPluginCodecV1()
decode, err := commitCodec.Decode(testutils.Context(t), buf.Bytes())
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we also do the reverse for the same data?
I mean encode with commitCodec, and then decode with borsch decoder?

require.NoError(t, err)

executeCodec := NewExecutePluginCodecV1()
decode, err := executeCodec.Decode(testutils.Context(t), buf.Bytes())
Copy link
Contributor

Choose a reason for hiding this comment

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

same reverse comment for execute codec too

Copy link
Contributor

Choose a reason for hiding this comment

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

These dependency changes seem unintentional

@huangzhen1997 huangzhen1997 requested a review from winder February 3, 2025 16:00
@cl-sonarqube-production
Copy link

@huangzhen1997 huangzhen1997 merged commit cd78da0 into solana-offchain-plugin Feb 3, 2025
195 of 197 checks passed
@huangzhen1997 huangzhen1997 deleted the NONEVM-935/implement-ccip-solana-plugin-codec branch February 3, 2025 21:25
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.

7 participants