This repository contains auto-generated TypeScript contract ABIs for the Greek Protocol.
These files are automatically generated by the deployment process and should not be manually edited.
deployedContracts.ts- Main index file that exports all chain configurationschains/- Individual chain-specific ABI filesfoundry.ts- Local development (Anvil)unichain.ts- Unichain mainnetbase.ts- Base mainnetsepolia.ts- Ethereum Sepolia testnet- etc.
Import the ABIs in your frontend:
import deployedContracts from '@greekfi/abi';
// Access contracts by chain ID
const factoryAddress = deployedContracts[1301].OptionFactory.address;
const factoryAbi = deployedContracts[1301].OptionFactory.abi;ABIs are generated from the foundry/broadcast/ directory using generateTsAbis.js.
To regenerate:
cd foundry
yarn deploy # Deploys and auto-generates ABIs