svm-warp-alt-manage
Skill76 starsChanged 20 days agoApache-2.0View on GitHub
Manage the on-chain Address Lookup Tables (ALTs) that a Sealevel warp route uses to compress its account list into a v0 VersionedTransaction. Fee-enabled SVM warp transfers reference 40+ accounts (core + fee + IGP + token plugin) and exceed Solana's 1232-byte transaction size limit without ALTs. Wraps the hyperlane warp alt command group (typescript/cli/src/commands/warp-alt.ts): create, check, read. Each Sealevel chain in the route has, in the registry warp config under options.sealevel.altAddresses.<chain>: ALTs are created on-chain, populated, then frozen. Frozen tables…
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
All commands run from typescript/cli and require --warp-route-id.
- Distinctive: line 47
Default (no flags): creates ALTs only where the registry has none.
- Very specific: line 52
Use plain create after a fresh deploy.
- Distinctive: line 75
Read-only. Prints (or writes) the current on-chain ALT addresses and their entries.
- Very specific: line 83
If create mutated the registry, open a registry PR with the updated warp config (the altAddresses block) so the ALT pointers are canonical.
- Very specific: line 87
ALTs are frozen and unrecoverable: Never assume you can reclaim rent or mutate a table.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SVM Warp ALT Management
Manage the on-chain Address Lookup Tables (ALTs) that a Sealevel warp route uses to compress its account list into a v0 VersionedTransaction. Fee-enabled SVM warp transfers reference 40+ accounts (core + fee + IGP + token plugin) and exceed Solana's 1232-byte transaction size limit without ALTs.
Wraps the hyperlane warp alt command group (typescript/cli/src/commands/warp-alt.ts): create, check, read.
When to Use
- Right after deploying a new SVM warp route (
/warp-deploy-init-route), extending one, or upgrading an SVM program (/svm-warp-program-upgrade) — ALTs must be (re)created. - SVM transfers fail with transaction-too-large / too-many-accounts errors.
- "check the ALTs for
<route>" / "are the lookup tables up to date?" →check. - "show me the ALT contents for
<route>" →read.
Model
Each Sealevel chain in the route has, in the registry warp config under options.sealevel.altAddresses.<chain>:
core— one chain-shared ALT (mailbox/core accounts, reusable across routes on that chain).warpSpecific— an array (min 1) of route-specific ALTs (this route's token/fee/IGP accounts).
ALTs are created on-chain, populated, then frozen. Frozen tables are immutable and their rent cannot be reclaimed — you never "edit" an ALT, you create a fresh one and update the registry pointer. This is why --force/--full-force leak the old (frozen) tables: they create new ones and abandon the old, unrecoverable ones.
Commands
All commands run from typescript/cli and require --warp-route-id. --chain is optional and scopes to a single chain (defaults to all Sealevel chains in the route). create needs write context (--key.sealevel + private RPC via HTTP registry); check and read are read-only.
create — build + persist ALTs
cd <MONOREPO_ROOT>/typescript/cli && pnpm --silent hyperlane warp alt create \
--registry http://localhost:<port> \
--key.sealevel "$SEALEVEL_KEY_VAR" \
-w <WARP_ROUTE_ID> \
[--chain <chain>]- Default (no flags): creates ALTs only where the registry has none. Existing entries are left as-is.
--force/-f: recreate the warp-specific ALTs for chains that already have registry entries; the chain-sharedcoreALT is reused. Old warp-specific frozen ALTs are leaked (unrecoverable).--full-force/-F: recreate all ALTs includingcore. Implies--force. All old frozen ALTs leaked.- Writes the resulting ALT addresses back to the registry warp config (
options.sealevel.altAddresses).
Use plain create after a fresh deploy. Use --force after an upgrade/extend that changed the route-specific account set. Reserve --full-force for when the core ALT itself is wrong — it's the most wasteful (leaks the shared table too).
check — verify on-chain ALTs match expected
cd <MONOREPO_ROOT>/typescript/cli && pnpm hyperlane warp alt check \
--registry http://localhost:<port> \
-w <WARP_ROUTE_ID> \
[--chain <chain>]Compares on-chain ALT contents against the expected account set for the route. Exits non-zero on drift — treat a non-zero exit as "ALTs are stale, recreate them". check reports core and warpSpecific drift separately, and the fix differs by bucket: recreate warpSpecific drift with create --force (reuses the shared core ALT); recreate core drift (including an unfrozen core) with create --full-force. Do NOT use --force for a core diff — it reuses the existing core, so the core stays broken and the next check still fails. Report the specific diff and its bucket to the user.
read — dump ALT contents
cd <MONOREPO_ROOT>/typescript/cli && pnpm hyperlane warp alt read \
--registry http://localhost:<port> \
-w <WARP_ROUTE_ID> \
[--chain <chain>] \
[--out <file.yaml>]Read-only. Prints (or writes) the current on-chain ALT addresses and their entries. No key needed.
Execution Flow
- Start the HTTP registry per
/start-http-registry(needed for private Sealevel RPC; add--writeModeforcreate, omit forcheck/read). Note the port + task ID. - Run the requested subcommand (
create/check/read) against--registry http://localhost:<port>. - For
create: after success, confirm the registry warp config now hasoptions.sealevel.altAddresses.<chain>.{core,warpSpecific}and follow with acheckto prove no drift. - Stop the HTTP registry per
/stop-http-registry, even on failure. - If
createmutated the registry, open a registry PR with the updated warp config (thealtAddressesblock) so the ALT pointers are canonical.
Caveats
- ALTs are frozen and unrecoverable. Never assume you can reclaim rent or mutate a table.
--force/--full-forceintentionally abandon old frozen tables — only use them when the account set actually changed. - Always create ALTs after any deploy/extend/upgrade of an SVM route. Missing or stale ALTs are the usual cause of transaction-too-large failures on fee-enabled SVM transfers.
checkexit code is the signal — non-zero = drift; don't ignore it. Recreate and re-check.- Core vs warp-specific: match the fix to the drift bucket
checkreports —--forceforwarpSpecificdrift (keeps the shared core ALT),--full-forceforcoredrift. A--forcewon't touch the core, so using it on a core diff leaves the check failing. createneeds write context and a funded--key.sealevel;check/readdo not.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-registry-changesetSkill
- build-docker-imageSkill
- classify-onchain-ownerSkill
- code-reviewSkill
- debug-messageSkill
- debug-rpc-providerSkill
- debug-validator-checkpoint-inconsistencySkill
- denylist-stuck-messagesSkill
- fetch-linear-ticketSkill
- fetch-safe-tx-batchSkill
- find-docker-imageSkill
- fix-merkle-root-mismatchSkill
- fix-rpc-urlsSkill
- gcp-logsSkill
- hyperlane-message-utilsSkill
- hyperlane-utilsSkill
- inline-pr-commentsSkill
- investigate-merkle-root-mismatchSkill
- investigate-stuck-messagesSkill
- registry-yaml-sort-policySkill
- security-reviewSkill
- self-relay-hyperlane-messageSkill
- set-moonpay-standing-quotesSkill
- start-http-registrySkill
- stop-http-registrySkill
- svm-warp-program-upgradeSkill
- tob-reviewSkill
- verify-warp-contractsSkill
- warp-balancesSkill
- warp-deploy-fund-deployerSkill
- warp-deploy-init-routeSkill
- warp-deploy-nexusSkill
- warp-deploy-register-routeSkill
- warp-deploy-select-keysSkill
- warp-deploy-send-testSkill
- warp-deploy-update-ownersSkill
- warp-deploy-validate-ownersSkill
- warp-forkSkill
- warp-key-value-expansionSkill
- warp-manage-offchain-quotesSkill
- warp-route-checkSkill
- warp-run-logSkill
- warp-simulate-svm-txsSkill
- warp-update-extendSkill
- warp-update-proposeSkill
- warp-update-resolve-artifactsSkill
- warp-updateSkill
- warp-verify-onchain-configSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

