agentleFS
hyperlane-xyzhyperlane-xyz/hyperlane-monorepo/.agents/skills/warp-balances/SKILL.md

warp-balances

Skill76 starsChanged 20 days agoApache-2.0View on GitHub

Run hyperlane warp balances to display the token balance of each leg in a warp route.

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
  1. Very specific:

    Run hyperlane warp balances to display the token balance of each leg in a warp route.

    line 11
  2. Very specific:

    If the user wants to save the output, add --out balances.json.

    line 52
  3. Distinctive:

    If the user wants to filter to specific chains:

    line 54
  4. Very specific:

    If the user wants to check their own token balance on each leg, add --address:

    line 60
  5. Very specific:

    If the user wants raw base-unit amounts (no decimal formatting), add --raw:

    line 66
  6. Distinctive:

    Sanity check after deployment: verify collateral and synthetic supplies are in sync

    line 81

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Warp Route Balances

Run hyperlane warp balances to display the token balance of each leg in a warp route.

Usage

hyperlane warp balances \
  --warp-route-id <SYMBOL/chains> \
  --registry <path-or-url>

Options

FlagDescription
--warp-route-id / -wWarp route ID (e.g. ETH/ethereum-arbitrum). Prompts interactively if omitted.
--registry / -rRegistry path or URL. Defaults to the public Hyperlane registry.
--chainsFilter to specific chains (space-separated).
--out / -oWrite results to a JSON or YAML file.
--addressUser address to check balances for. Shows the user's token balance on each chain instead of collateral/supply.
--rawShow balances in base units (without decimal formatting).

Output columns

ColumnDescription
(index)Chain name
SymbolToken symbol
StandardToken standard (e.g. EvmHypCollateral, EvmHypSynthetic)
AddressRouter contract address
BalanceCollateral locked / circulating supply (default), or user's token balance (with --address)

Instructions

  1. Determine the warp route ID and registry to use. If not provided, ask the user.
  2. Run the command:

    hyperlane warp balances --warp-route-id <ID> --registry <REGISTRY>
  3. If the user wants to save the output, add --out balances.json.
  4. If the user wants to filter to specific chains:

    hyperlane warp balances --warp-route-id <ID> --registry <REGISTRY> --chains ethereum arbitrum
  5. If the user wants to check their own token balance on each leg, add --address:

    hyperlane warp balances --warp-route-id <ID> --registry <REGISTRY> --address <USER_ADDRESS>
  6. If the user wants raw base-unit amounts (no decimal formatting), add --raw:

    hyperlane warp balances --warp-route-id <ID> --registry <REGISTRY> --raw
  7. Report the balances to the user, noting:
    • Without --address: collateral legs show locked/backing balance; synthetic legs show total circulating supply
    • With --address: every leg shows the user's token balance on that chain
    • --raw applies to all balance values and the mismatch summary (base units, no decimals)
    • Error in the Balance column means the RPC call failed for that leg
    • Without --address: a status line is printed after the table — green if collateral == synthetic total, yellow warning with diff if they diverge

Common use cases

  • Sanity check after deployment: verify collateral and synthetic supplies are in sync
  • Investigate imbalance: compare collateral locked vs synthetic supply across legs
  • Audit liquidity: see how much of the bridged asset is available on each chain
  • Check user holdings: see how much of the token a specific address holds on each chain

Example — route liquidity

hyperlane warp balances --warp-route-id USDC/base-optimism --registry ~/hyperlane-registry
Warp route balances:

┌──────────┬────────┬──────────────────────┬────────────┬────────────────┐
│ (index)  │ Symbol │ Standard             │ Address    │ Balance        │
├──────────┼────────┼──────────────────────┼────────────┼────────────────┤
│ base     │ USDC   │ EvmHypCollateral     │ 0x5244...  │ 4,231,876.12   │
│ optimism │ USDC   │ EvmHypSynthetic      │ 0x2DBe...  │ 4,231,876.12   │
└──────────┴────────┴──────────────────────┴────────────┴────────────────┘

Status: collateral matches synthetic supply (4,231,876.12)

Example — user balances

hyperlane warp balances --warp-route-id USDC/base-optimism --registry ~/hyperlane-registry --address 0xYourAddress
Warp route balances for 0xYourAddress:

┌──────────┬────────┬──────────────────────┬────────────┬──────────┐
│ (index)  │ Symbol │ Standard             │ Address    │ Balance  │
├──────────┼────────┼──────────────────────┼────────────┼──────────┤
│ base     │ USDC   │ EvmHypCollateral     │ 0x5244...  │ 500.00   │
│ optimism │ USDC   │ EvmHypSynthetic      │ 0x2DBe...  │ 250.00   │
└──────────┴────────┴──────────────────────┴────────────┴──────────┘

Example — raw base units

hyperlane warp balances --warp-route-id USDC/base-optimism --registry ~/hyperlane-registry --raw
Warp route balances:

┌──────────┬────────┬──────────────────────┬────────────┬───────────────┐
│ (index)  │ Symbol │ Standard             │ Address    │ Balance       │
├──────────┼────────┼──────────────────────┼────────────┼───────────────┤
│ base     │ USDC   │ EvmHypCollateral     │ 0x5244...  │ 4231876120000 │
│ optimism │ USDC   │ EvmHypSynthetic      │ 0x2DBe...  │ 4231876120000 │
└──────────┴────────┴──────────────────────┴────────────┴───────────────┘

Status: collateral matches synthetic supply (4231876120000)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.