Skip to content

feat(axelar): submit by destination chain ID with EVM-aligned names and addresses - #29

Draft
reednaa wants to merge 2 commits into
mainfrom
feat/axelar-evm-alignment
Draft

reednaa wants to merge 2 commits into
mainfrom
feat/axelar-evm-alignment

Conversation

@reednaa

@reednaa reednaa commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Updates @lifi/intent/axelar and the relay for the aligned Solana oracle_axelar ABI (https://github.com/catalystsystem/lifi-intent-svm/pull/130, stacked on catalystsystem/lifi-intent-svm#129). Merge after it.

  • axelarSubmitInstruction({ destinationChainId, recipientOracle: string, … }) uses the route-chain PDA (axelarRouteChainAddress). The 320-byte proof check applies only with a nonzero destinationConfig.
  • axelarSetChainMappingInstruction({ owner, name, chainId }) has no kind. Names are checked by the new checkAxelarChainName (1–20 ASCII bytes with no NUL, _ or ASCII uppercase (Axelar ChainNameRaw in lowercase form, matching EVM setChainMap after audit finding sujithsomraaj/lifi-intent-audit-oct-26#1)); axelarInitializeInstruction applies the same check.
  • decodeAxelarAddress(value) picks the format from the string's shape, like EVM AxelarStrings.decodeAddress. AxelarAddressKind is removed, and AXELAR_MAX_CHAIN_NAME is now 32.
  • axelarReceiveSteps no longer takes sourceKind.
  • Relay: routes have no kind, and Solana-sourced jobs are rejected. The route-name comparison now lowercases A–Z only, matching the contracts.
  • tests/vectors/axelarClientVectors.json is copied byte-for-byte from the Solana PR. EVM reference vectors are added in message.spec.ts.

Wire format is unchanged: OIF message, Solana Borsh envelope, Axelar strings, and proof identity (chainId, remoteOracle, application, keccak256(payload)). The reference is EVM catalystsystem/lifi-intent#133 (AxelarOracle, AxelarStrings, SolanaEnvelope).

Gateways do not check destinations when you submit. callContract only checks that the gateway is not paused. A submit to a chain or address Axelar cannot route still succeeds and spends the gas payment; Axelar rejects it later. The destination name always comes from the owner-set chain map. The recipient string is not checked: a wrong one loses only that delivery, and anyone can resubmit because export does not consume attestations.

Verification:

  • bun run build (smoke check), bun run check and bun run test (388 pass); relay bun test (37 pass).
  • Solana typescript_client_end_to_end with INTENT_TS pointing at this branch passes.

…nd addresses

Solana builders follow the realigned oracle_axelar ABI: set_chain_mapping
without route kinds (1-32 byte names, no NUL or ASCII uppercase), submit by
destination chain ID through the route-chain PDA with a verbatim recipient
string, nonzero destinationConfig selecting the executable envelope, and
shape-dispatched sender decoding matching EVM AxelarStrings.decodeAddress.
@coderabbitai

coderabbitai Bot commented Oct 15, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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