Deployments
One JSON manifest per network holds every Stoa contract address, so agents load them in one shot instead of juggling ten environment variables.
Use
import { readFileSync } from "node:fs";
import { StoaAgent, parseManifest } from "@stoa/skills";
const manifest = parseManifest(readFileSync("deployments/atlantic.json", "utf8"));
const agent = StoaAgent.fromManifest(manifest, { privateKey: process.env.STOA_PRIVATE_KEY as `0x${string}` });
// agent.contracts is now fully populated; placeholder/invalid addresses are dropped.
Populate
pnpm contracts:deploy— prints each deployed address in the run summary.- Copy
atlantic.example.jsontoatlantic.jsonand paste the addresses in.
manifestToContracts validates each entry against the 20-byte address format and silently drops
placeholders ("0x..."), so a half-filled manifest fails loudly at the point of use (via
requireContract) rather than sending to a wrong address.