Repository navigation
feat(aptos): support CCIP 2.0 lanes - #567
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
CI Test Report✅ 5118/5118 tests passed (1223 suites) in 5m 11s SummaryCoverage report |
andrevmatos
force-pushed
the
aptos/v2
branch
from
November 24, 2026 12:06
73479d4 to
2e00858
Compare
A pruning node answers HTTP 410 `version_pruned` for old versions. getLogs now continues from the oldest event the node keeps, and places a pruned version before a startTime floor. The failed-execution scan starts at the oldest version the node keeps, and warns that it needs an archival endpoint for older executions.
The packed GenericExtraArgsV3 layout is the same on EVM and Aptos. Only the width of the CCV and executor addresses differs: 20 bytes on EVM, 32 bytes on other families. The codec takes the family and uses decodeAddress.
A 2.0 Aptos ramp is referenced by its state address, which has no modules. decodeOnRampAddress takes an optional version, and does not append `::onramp` for 2.0. discoverOffRamp and the 2.0 OnRamps of EVM and Solana OffRamps use it. - resolveLane takes the OnRamp of an Aptos 2.0 request from the message - normalizeDeep keeps hash fields (e.g. allowedOnRampHashes) as they are - snakeToCamel keeps `__` keys (e.g. the Move enum tag `__variant__`)
In 2.0, the Router, each ramp and the core modules are separate packages. Remote chains and messages reference a ramp by its state address. - Ramp addresses: methods accept the state address, the package or `<package>::<module>`. Outputs give the state address. A log keeps the `<package>::<module>` which emits it. - Configs: getOnRampConfig and getOffRampConfig merge every field of the 2.0 views, and add `contract` (the ramp's module) when it differs from the ramp address. - Messages: decode 2.0 requests (MessageV1) and receipts, and GenericExtraArgsV3. Execute through `offramp::execute`, and get the CCVs from `get_ccvs_for_message`. - Tokens: read `token_admin_registry_v2` and 2.0 pools (allowed finality, fast-finality rate limits). getSupportedTokens returns all pages. - parse returns the node's error data for a VM abort, also with a named abort code. - CLI lane: shows the canonical OnRamp for any input form.
Aptos testnet now has a CCIP 2.0 lane to Sepolia. The lane and show suites use it in both directions, and no longer skip Aptos.
andrevmatos
force-pushed
the
aptos/v2
branch
from
November 24, 2026 13:59
2e00858 to
dd73062
Compare
AmrMohamedRezk
approved these changes
Nov 24, 2026
This branch was successfully deployed
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.
Stacked on #565.
Summary
Adds Aptos CCIP 2.0 support to the SDK and CLI, next to 1.6.
lane,show,send(fee and preflight checks),manual-execandget-supported-tokenswork in both directions on the aptos-testnet ↔ ethereum-testnet-sepolia 2.0 lane.In 2.0, the Router, each ramp and the core modules (
fee_quoter,auth,token_admin_registry) are separate packages. A 2.0 ramp keeps its state in a resource account. Remote chains and messages (onRampAddress,offRampAddress) reference the ramp by that state address.Address model
<package>::<module>. The SDK finds the module for calls (probetype_and_version, then the account resources).getOnRampForRouter,getOffRampsForRouter,discoverOffRamp,lane.onRamp, theonRamp/offRampconfig fields, the CLIlanerows) give the state address. It is the same on both chains of a lane.log.addressstays the<package>::<module>that emits the event. A Move module event has no emitting account, so the module is the only address in the log. It also does not depend on a view, which a later in-place upgrade could change.contract(the ramp's module) when it differs from the ramp address. On 1.6 they are the same, so the field is left out.<package>::onramp).Commits
getLogscontinues from the oldest event a pruning node keeps (HTTP 410version_pruned). The failed-execution scan warns that older executions need an archival endpoint.decodeOnRampAddresstakes an optionalversionand does not append::onrampfor 2.0.resolveLanetakes an Aptos 2.0 OnRamp from the message.GenericExtraArgsV3,offramp::execute, verifications fromget_ccvs_for_message,token_admin_registry_v2and 2.0 pools (fast-finality rate limits). It also fixesgetSupportedTokens, which returned only the last page.Testing
aptos/integration.test.ts6/6,lane.e2e11/11,show.e2e13/13.lanefor each input form of the OnRamp,showboth ways (also a failed execution and a pruning node), fee quotes both ways,get-supported-tokensby Router, token and pool on both chains. A simulation ofccip_sendandofframp::executepasses. No transaction was sent.aptos-mainnet(1.6)laneoutput is unchanged.Notes
showprints "Verifications unavailable".