Contract ABIs
@cfxdevkit/contracts ships ABI constants, deployment bytecodes and on-chain addresses for all DevKit contracts — everything you need to read, write, and deploy without writing raw ABI JSON.
How it works
@cfxdevkit/contractsis a zero-dependency package of ABI and bytecode constants — nonode:imports, browser-safe.- Standard ABIs (
erc20Abi,erc721Abi,erc1155Abi) — use with any compliant token on any EVM chain. - Bootstrap bytecodes (
erc20BaseBytecode,erc721BaseBytecode, …) — deploy production-ready contracts from code. - DevKit configs (
automationManagerConfig,swappiPriceAdapterConfig) — ABIs + testnet/mainnet addresses bundled together. - Pass any ABI to
client.publicClient.readContractfor live on-chain data.
Last updated on