UNPKG

@antefinance/ante-sdk

Version:

Library for interacting with Ante smart contracts

106 lines (105 loc) 2.7 kB
import { ChainId, GateTypeEnum, Network, GrantPoolVersion, GiveawayPoolVersion, HashTreeIndexVersion, MetaPoolVersion, Version, IOUVersion, TaskPoolVersion, USD1Version, TestTokenVersion } from '../types'; export type IOUGateTypeEnum = 'minGrantV2Contribution' | 'minGrantV2Contribution2' | 'llama'; export type FactoryConfig = { POOL_FACTORY: string; }; export type DTSConfig = { PROXY_ADDRESS: string; }; export type AnteConfig = { factory: { [key in Version]?: { [network in Network]?: FactoryConfig; }; }; decentralizedTrustScore: { [network in Network]?: DTSConfig; }; metaPool: { [key in MetaPoolVersion]?: { [network in ChainId]?: string; }; }; grantPool: { [key in GrantPoolVersion]?: { [network in ChainId]?: string; }; }; taskPool: { [key in TaskPoolVersion]?: { [network in ChainId]?: string; }; }; giveawayPool: { [key in GiveawayPoolVersion]?: { [network in ChainId]?: string; }; }; hashTreeIndex: { [key in HashTreeIndexVersion]?: { [network in ChainId]?: string; }; }; gate: { [key in GateTypeEnum]?: { [network in ChainId]?: string; }; }; iouFactory: { [key in IOUVersion]?: { [network in ChainId]?: string; }; }; iouGate: { [key in IOUGateTypeEnum]?: { [network in ChainId]?: string; }; }; usd1: { [key in USD1Version]?: { [network in ChainId]?: string; }; }; testToken: { [key in TestTokenVersion]?: { [network in ChainId]?: string; }; }; }; export declare const defaultConfig: AnteConfig; export type AbiConfig = { metaPool: { [key in MetaPoolVersion]?: readonly any[]; }; grantPool: { [key in GrantPoolVersion]?: readonly any[]; }; giveawayPool: { [key in GiveawayPoolVersion]?: readonly any[]; }; hashTreeIndex: { [key in HashTreeIndexVersion]?: readonly any[]; }; taskPool: { [key in TaskPoolVersion]?: readonly any[]; }; gate: { [key in GateTypeEnum]?: readonly any[]; }; iou: { [key in IOUVersion]?: readonly any[]; }; iouFactory: { [key in IOUVersion]?: readonly any[]; }; iouGate: { [key in IOUGateTypeEnum]?: readonly any[]; }; usd1: { [key in USD1Version]?: readonly any[]; }; testToken: { [key in TestTokenVersion]?: readonly any[]; }; }; export declare const abis: AbiConfig;