UNPKG

@opendatalabs/vana-sdk

Version:

A TypeScript library for interacting with Vana Network smart contracts.

37 lines (36 loc) 1.21 kB
/** * Complete contract configuration for the Vana protocol. * * ⚠️ THIS IS A SOURCE FILE - EDIT THIS TO ADD/UPDATE CONTRACTS * * @remarks * This file contains all contract addresses and discovery metadata in one place. * * **Contract Types:** * - Entry Points: Contracts without `discovery` field (must be known externally) * - Discoverable: Contracts with `discovery` field (auto-discovered from parent) * * **Build Process:** * 1. Edit this file to add/update contracts * 2. Run `npm run discover-addresses` to validate and generate complete registry * 3. Run `npm run fetch-abis` to fetch ABIs for all contracts * * @category Configuration * @internal This is a source file - apps should import from src/generated/addresses.ts */ interface DiscoveryMetadata { /** Parent contract to discover this from */ parent: string; /** Getter function name on parent contract */ getter: string; } interface ContractConfig { addresses: { 14800: string; 1480: string; }; /** If present, this contract can be auto-discovered from parent */ discovery?: DiscoveryMetadata; } export declare const CONTRACTS: Record<string, ContractConfig>; export {};