Indexedex launch scripts

From cyotee/indexedex · View interactive version

Indexedex launch scripts is an AI agent skill from the GitHub repository cyotee/indexedex. IndexedEx Robinhood launch scripts: Phase/Stage layout, 4663/46630 Anvil rehearsal, gas/funding quotes and exports.

How to use this skill

Skill file

IndexedEx launch scripts

How to write Foundry launch Stages and how to start Anvil so a gas / funding quote

matches the live chain. Two jobs, two gold trees. Do not mix their Anvil flags.

Read first: crane-deployment, crane-architecture, this skill, then the matching reference.

| Job | Gold | Anvil |

|-----|------|-------|

| Live gas / funding quote | scripts/foundry/anvil_robinhood_main/ | EIP-170 on; fork-source baseFee |

| Local / public staged deploy | scripts/foundry/anvil_robinhood_testnet/ | Phase/Stage catalog; 46630 may turn EIP-170 off |

Generic anvil-node is not this law.

Existing-contract source verification

BLOCKSCOUT_API_KEY is already configured in the owner’s inherited environment (confirmed 2026-09-14). Check presence there first without displaying it; do not infer it is missing from .env alone or ask the owner to set it again. Use source verification for Robinhood Blockscout/Sourcify authentication, migration inventory and exact-match checks. No deployment or signing is needed for this task.

Two Anvil modes (do not mix)

| Mode | EIP-170 | Fees | Forge | Output |

|------|---------|------|-------|--------|

| Gas / funding quote | On. Never --disable-code-size-limit on Anvil or forge script --use solar. | Pin fork-source baseFee. --disable-min-priority-fee. Restart Anvil so local baseFee has not decayed. | EIP-1559 simulate. No --legacy. No --gas-price. Unset ETH_GAS_PRICE / ETH_PRIORITY_GAS_PRICE. No --broadcast by default. | Dry-run gas limits × live eth_gasPrice + FUND_ETH_BUFFER_BPS (default 2500 = 25%). Ignore Foundry’s on-screen ETH total. |

| Dev-complete staged deploy | Chain-specific. 4663 on. 46630 off only so rehearsal UniswapV3Factory can deploy. | Anvil local. Staged all on 4663 may use --legacy --gas-price 2gwei as a feeHistory workaround. | Per-Stage simulate, then broadcast. Never --skip-simulation. | Not a live funding quote. |

| Public | n/a | Live chain | --sender $DEPLOYER_ADDRESS. No --unlocked. No Phase 00. | Real fees. |

--disable-code-size-limit is a dev-complete flag. On a 4663 estimate it hides EIP-170 failures and understates codesize-adjacent gas.

Structure (Phases / Stages)

Shells choose which Stages and which signer. Foundry does not encode Anvil vs public as two trees.

| Term | Meaning |

|------|---------|

| Phase | Slice of environment init (00 Anvil-only, 01 external pins/rehearsal, … 09 export) |

| Stage | One Foundry unit inside a Phase |

| File | Phase_<PP>_Stage_<SS>_<PascalName>.s.sol + same-name .sol library |

| JSON | deployments/<tree>/phase<PP>_stage<SS>_<slug>.json |

Thin script: skip-or-execute, serialize JSON, log. Body lives in the library execute().

Two shells, same Foundry Stages:

  1. Anvil: fork that chain, Dev 0, --unlocked, Phase 00 then 01–N.
  2. Public: DEPLOYER_ADDRESS (cast wallet). No Phase 00.

Do not invent Stages. If a Stage is missing from the tree’s PRD and plan, stop and amend the PRD.

Full layout, skip/pin/rehearsal, catalog: references/phase-stage-structure.md.

Gas quote (4663 gold)

DEV_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
  bash scripts/shell/anvil_robinhood_main.sh simulate --restart-anvil

That path is deploy_all.sh: launch_anvil (no codesize cheat), prepare_simulate_fees,

Script_SimulateArchitecture.s.sol (one startBroadcast window, no broadcast),

quote_simulate_funding from broadcast/…/dry-run/run-latest.json.

simulate is not all. Do not run it after a completed staged deploy on the same Anvil

(CREATE3 / CREATE2 collision).

Procedure: references/anvil-gas-estimate.md.

Dev-complete Anvil (46630 gold)

bash scripts/shell/anvil_robinhood_testnet.sh all
# public (no Phase 00):
export DEPLOYER_ADDRESS=0x...
bash scripts/shell/robinhood_testnet.sh all

--chain-id 46630 --disable-code-size-limit --unlocked. Forge also gets

--disable-code-size-limit --non-interactive. That run is a local lab, not a funding quote.

When EIP-170 may be off: references/anvil-dev-complete.md.

Progressive disclosure

| Reference | Load when |

|-----------|-----------|

| references/phase-stage-structure.md | New Stage, rename, skip keys, shells, JSON |

| references/frontend-export.md | Stage JSON keys, platform.json, tokenlists, UI consumers |

| references/anvil-gas-estimate.md | simulate, gas estimate, funding quote, 4663 Anvil flags |

| references/anvil-dev-complete.md | 46630 Anvil, --disable-code-size-limit, staged all |

Constraints (do not violate)

See also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.