Skip to Content

@cfxdevkit/contracts


@cfxdevkit/contracts / erc2612Abi

Variable: erc2612Abi

const erc2612Abi: readonly [{ inputs: readonly [{ internalType: "address"; name: "owner"; type: "address"; }, { internalType: "address"; name: "spender"; type: "address"; }, { internalType: "uint256"; name: "value"; type: "uint256"; }, { internalType: "uint256"; name: "deadline"; type: "uint256"; }, { internalType: "uint8"; name: "v"; type: "uint8"; }, { internalType: "bytes32"; name: "r"; type: "bytes32"; }, { internalType: "bytes32"; name: "s"; type: "bytes32"; }]; name: "permit"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "owner"; type: "address"; }]; name: "nonces"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "DOMAIN_SEPARATOR"; outputs: readonly [{ internalType: "bytes32"; name: ""; type: "bytes32"; }]; stateMutability: "view"; type: "function"; }]

Defined in: standard-abis.ts:17

Standard token and DeFi interface ABIs for use with viem / wagmi.

Two tiers per standard:

  • Base (erc20Abi, erc721Abi, erc1155Abi) — the canonical EIP specification surface only. Safe to use against any compliant token.
  • Extended (erc20ExtendedAbi, erc721ExtendedAbi) — base plus the OpenZeppelin 5.x extension functions (mint, burn, pause, permit, etc.) These match the interface of ERC20Base and ERC721Base from @cfxdevkit/contracts.

All ABIs are as const for full TypeScript inference with viem.