@rocketh/export
v0.20.5
Published
Export EVM contract deployments (ABIs and addresses) for frontend consumption.
Maintainers
Readme
@rocketh/export
rocketh-export: an environment's deployments as one TypeScript, JavaScript or JSON file for a frontend, with the chain and each contract's address and ABI, typed as const so viem infers every call.
Installation
pnpm add -D @rocketh/export
# or
npm install --save-dev @rocketh/exportrocketh and @rocketh/node are peer dependencies.
Example
npx rocketh-export -e sepolia --ts ./src/contracts.ts
npx rocketh-export -e mainnet --ts ./src/contracts.ts --verify # check the chain before writingAn environment with no deployments fails rather than leaving an older file in place.
Documentation
The whole documentation is at rocketh.dev, the hardhat-deploy section at rocketh.dev/hardhat-deploy.
