Imported from AiFinPay/sdk (
deployments/AGENTS.md). Install upstream withnpx skills add AiFinPay/sdk --skill deployments. Copyright stays with the author.
@aifinpay/deployments — agent guide
Canonical deployment registry grabber. Fetches the latest AIFP deployment records from upstream contract repositories and produces versioned registry files with governance metadata.
Scope
- This package only (
src/,tests/,registry/,package.json). Do not touchnode/,python/,mcp/,mcp-http/,wallet/,gate/,skill/. - Entry:
src/index.ts. Core:src/grabber.ts(EVM + Solana fetch + latest-per-chain logic + split-file writer),src/types.ts(registry types),src/build.ts(CLI that writes split files). - Output artifacts live in
registry/:registry/splitter/— versioned registry with governance metadata:evm/v1.4/deployments.json— EVM v1.4 full contract suite with governance Safe infoevm/v1.3/deployments.json— EVM v1.3 route table (merchant-aifp1 + agent-x402)evm/v1.2/deployments.json— EVM v1.2 legacy withpaymentIdreplay guardevm/v1.1/deployments.json— EVM v1.1 initial production releasesolana/deployments.json— Solana v1.4 program deploymentscasper/deployments.json— Casper deployments (testnet live, mainnet historical)INDEX.md— registry index with lookup tables by version and chain
registry/abi/— EVM ABI bundles and Tron ABI artifacts.registry/idl/— Solana IDL copies (solana/splitter-v14/) plus Aptos/Casper IDL artifacts.
- The v1.3 historical snapshot is not regenerated by the grabber (upstream no longer serves those files). Keep it in
registry/splitter/evm/v1.3and refresh manually whennode/registry/splitter-table.jsonchanges.
Commands
npm run build—tsc -p tsconfig.jsonnpm run registry:build—node dist/build.js, fetches upstream and writesregistry/splitter/evm/v1.4/deployments.json+registry/splitter/solana/deployments.jsonnpm test—vitest run(fromdeployments/)
Rules
- Keep
IDL_DIRand ABI paths underregistry/so they ship with the package (files: ["dist", "registry"]). - Generated deployment files use the same schema across all versions in
splitter/*/deployments.jsonfor consistency. - Tests are offline-only and must not write files to
registry/orsrc/. Usetests/tmp/for temporary test output (gitignored). - Solana IDL files live in
registry/idl/solana/splitter-v14/— do not regenerate them, they are maintained manually. - Bump
version+CHANGELOG.mdtogether when changing shipped files; CI checks viascripts/check-version-bump.mjs.