Skip to content

greekfi/abi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Greek Protocol - Contract ABIs

This repository contains auto-generated TypeScript contract ABIs for the Greek Protocol.

πŸ”„ Auto-Generated

These files are automatically generated by the deployment process and should not be manually edited.

πŸ“ Structure

  • deployedContracts.ts - Main index file that exports all chain configurations
  • chains/ - Individual chain-specific ABI files
    • foundry.ts - Local development (Anvil)
    • unichain.ts - Unichain mainnet
    • base.ts - Base mainnet
    • sepolia.ts - Ethereum Sepolia testnet
    • etc.

πŸ”— Usage

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;

πŸ“ Generation

ABIs are generated from the foundry/broadcast/ directory using generateTsAbis.js.

To regenerate:

cd foundry
yarn deploy  # Deploys and auto-generates ABIs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors