Overview

The SDK ships minimal ABIs for all Ankara Chain contracts. These are human-readable ABI strings (ethers.js format) — sufficient for runtime use without bundling the full Hardhat artifacts.

TOKEN_FACTORY_ABI

The factory contract. Used by TokenFactory internally. Key functions:
  • deployFarmlandToken(...) — deploy a FarmlandToken proxy
  • deployCommodityReceiptToken(...) — deploy a CommodityReceiptToken proxy
  • deployRealEstateToken(...) — deploy a RealEstateToken proxy
  • deployInvoiceToken(...) — deploy an InvoiceToken proxy
  • deployCarbonCreditToken(...) — deploy a CarbonCreditToken proxy
  • deployMiningRightsToken(...) — deploy a MiningRightsToken proxy
  • deploymentFee() view returns (uint256) — fee in wei per deployment
  • getDeployerTokens(address) view returns (address[]) — tokens deployed by a wallet
  • totalDeployed() view returns (uint256)
Key event:

Token ABIs

Each token ABI covers the standard ERC-20 surface plus asset-specific reads and writes:

Common across all tokens

FARMLAND_TOKEN_ABI — additional

COMMODITY_TOKEN_ABI — additional

REAL_ESTATE_TOKEN_ABI — additional

INVOICE_TOKEN_ABI — additional

CARBON_CREDIT_TOKEN_ABI — additional

MINING_RIGHTS_TOKEN_ABI — additional


WHITELIST_VERIFIER_ABI

Reference implementation of IIdentityVerifier:

Direct Contract Usage

Use an ABI export with ethers.js directly for advanced use cases: