Skip to content

Route EVM token sends to Solana - #91

Draft
andrejrakic wants to merge 1 commit into
svm/12-token-svmfrom
svm/13-token-route
Draft

andrejrakic wants to merge 1 commit into
svm/12-token-svmfrom
svm/13-token-route

Conversation

@andrejrakic

Copy link
Copy Markdown
Collaborator

routeToSvm delivers token sends from Solidity, completing journey 3: a contract sends CCIP-BnM to Solana, alone or with data, and the test sees the EVM balance go down and the SPL balance go up.

  • routeToSvm decodes token and tokenAmount, maps the EVM token to its linked Solana mint, and delivers token-only (zero receiver) or token plus data. It checks every message's token before delivering anything, and throws a clear error for an unlinked token.
  • Compute units: a message's computeUnits stays the receiver's budget; token deliveries add 300,000 for the pool, as a live executor covers the token's destination gas overhead.
  • SvmMessageSender (test helper) gains sendToken.
  • The consumer smoke test's SVM consumer adds a CCIP-BnM case through @chainlink/local/svm only, compiled without the optimizer.

Testing: npm run test:svm 95/95 (new TokenFromSolidity.test.ts on both versions), all non-fork Forge and Hardhat tests, and consumer-smoke.sh pass.

Builds on #90.

@andrejrakic
andrejrakic added this pull request to stack #83 November 25, 2026 20:48

This branch has not been deployed

No deployments
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.

1 participant