Indexedex script orchestration

From cyotee/indexedex · View interactive version

Indexedex script orchestration is an AI agent skill from the GitHub repository cyotee/indexedex. IndexedEx shell/Forge orchestration for Sepolia, Base Sepolia and SuperSim bridge rehearsals and long broadcasts.

How to use this skill

Skill file

Indexedex Script Orchestration

This skill captures the scripting patterns that proved necessary for the repo's Sepolia plus Base Sepolia SuperSim rehearsal.

Use This Skill For

Shell Rules

Wrapper Responsibilities

The top-level shell wrapper should own orchestration. In this repo that means:

  1. resolve upstream RPCs from Foundry aliases when explicit env vars are absent
  2. derive the shared fork height from Crane network constants
  3. start or reuse SuperSim fork mode
  4. wait for both local RPC endpoints
  5. prepare the broadcast identity
  6. sweep ETH to the deployer on both forks
  7. run direct per-chain forge script --use solar commands
  8. deploy bridge infra and bridge config
  9. export frontend artifacts

Avoid pushing this orchestration into one large Solidity script.

Prefer Direct Per-Chain Forge Scripts

Use shell-driven direct invocations such as:

This is more debuggable and less fragile than a top-level script that nests many script contracts.

Solidity Script Configuration Rules

Deployment scripts should accept configuration from the shell wrapper instead of inferring too much from tx.origin.

Recommended environment contract:

In Solidity, load deployer config in this order:

  1. SENDER if present and nonzero
  2. fallback to tx.origin
  3. if PRIVATE_KEY is present, derive deployer from that key

Sender and Signer Rules

This distinction was critical in the recent SuperSim deployment work.

Broadcast Stability Rules

If a long deploy still flakes after --slow, split the sequence rather than hiding the problem behind more abstraction.

Base Sepolia Rehearsal Rules

For the local Base Sepolia rehearsal:

Logging Rules

Related (not this skill)

Robinhood Anvil launch trees (4663 / 46630), Phase/Stage file layout, and EIP-1559 gas quotes: skill:indexedex-launch-scripts.

Anti-Patterns

Source Files

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.