-
Notifications
You must be signed in to change notification settings - Fork 38
/
config.d.ts
32 lines (32 loc) · 1.04 KB
/
config.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
export interface JsonFragmentType {
readonly name?: string;
readonly indexed?: boolean;
readonly type?: string;
readonly internalType?: any;
readonly components?: ReadonlyArray<JsonFragmentType>;
}
export interface JsonFragment {
readonly name?: string;
readonly type?: string;
readonly anonymous?: boolean;
readonly payable?: boolean;
readonly constant?: boolean;
readonly stateMutability?: string;
readonly inputs?: ReadonlyArray<JsonFragmentType>;
readonly outputs?: ReadonlyArray<JsonFragmentType>;
readonly gas?: string;
}
export interface ContractConfig {
tokenName?: string;
tokenSymbol?: string;
decimals?: number;
contractName?: string;
protocolName?: string;
nft?: boolean;
abi?: ReadonlyArray<JsonFragment>;
}
export interface ContractsConfig {
[address: string]: ContractConfig;
}
export declare const loadConfig: (fileName?: string) => Promise<ContractsConfig>;
export declare const loadGenericAbi: (fileName?: string) => Promise<ReadonlyArray<JsonFragment>>;