Repository navigation
Conversation
…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.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. Comment |
…, no _), checked on initialize too
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
@lifi/intent/axelarand the relay for the aligned Solanaoracle_axelarABI (https://github.com/catalystsystem/lifi-intent-svm/pull/130, stacked on catalystsystem/lifi-intent-svm#129). Merge after it.axelarSubmitInstruction({ destinationChainId, recipientOracle: string, … })uses theroute-chainPDA (axelarRouteChainAddress). The 320-byte proof check applies only with a nonzerodestinationConfig.axelarSetChainMappingInstruction({ owner, name, chainId })has no kind. Names are checked by the newcheckAxelarChainName(1–20 ASCII bytes with no NUL,_or ASCII uppercase (AxelarChainNameRawin lowercase form, matching EVMsetChainMapafter audit finding sujithsomraaj/lifi-intent-audit-oct-26#1));axelarInitializeInstructionapplies the same check.decodeAxelarAddress(value)picks the format from the string's shape, like EVMAxelarStrings.decodeAddress.AxelarAddressKindis removed, andAXELAR_MAX_CHAIN_NAMEis now 32.axelarReceiveStepsno longer takessourceKind.tests/vectors/axelarClientVectors.jsonis copied byte-for-byte from the Solana PR. EVM reference vectors are added inmessage.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.
callContractonly 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 checkandbun run test(388 pass); relaybun test(37 pass).typescript_client_end_to_endwithINTENT_TSpointing at this branch passes.