Skip to content

Update Solana off-chain codec#1539

Open
huangzhen1997 wants to merge 6 commits into
developfrom
jh/update-solana-off-chain-codec
Open

Update Solana off-chain codec#1539
huangzhen1997 wants to merge 6 commits into
developfrom
jh/update-solana-off-chain-codec

Conversation

@huangzhen1997
Copy link
Copy Markdown
Contributor

@huangzhen1997 huangzhen1997 commented Apr 22, 2026

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

Related PR: smartcontractkit/chainlink#22124

The idea is to remove duplicate Solana codec code in core, and import it from chainlink-solana instead.


func parseExtraDataMap(input map[string]any) (extraData, error) {
// ParseExtraDataMap parses the decoded extra args map into the extraData struct used for encoding the execute report.
func ParseExtraDataMap(input map[string]any) (ExtraData, error) {
Copy link
Copy Markdown
Contributor Author

@huangzhen1997 huangzhen1997 Apr 22, 2026

Choose a reason for hiding this comment

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

This change comes from a previous fix from core.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ah I see it's moved here

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 22, 2026

✅ API Diff Results - github.com/smartcontractkit/chainlink-solana

✅ Compatible Changes (3)

pkg/solana/ccip/codec (3)
  • ExtractDestGasAmountFromMap — ➕ Added

  • ExtraData — ➕ Added

  • ParseExtraDataMap — ➕ Added


📄 View full apidiff report

@huangzhen1997 huangzhen1997 changed the title Jh/update solana off chain codec Update Solana off-chain codec Apr 22, 2026
return [32]byte{}, fmt.Errorf("failed to decode dest exec data: %w", err)
}

destGasAmount, err := extractDestGasAmountFromMap(destExecDataDecodedMap)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Are there no more changes to backport into this file? The msghasher in core looks completely different


func parseExtraDataMap(input map[string]any) (extraData, error) {
// ParseExtraDataMap parses the decoded extra args map into the extraData struct used for encoding the execute report.
func ParseExtraDataMap(input map[string]any) (ExtraData, error) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ah I see it's moved here

@cl-sonarqube-production
Copy link
Copy Markdown

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.

2 participants