-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
43 lines (38 loc) · 906 Bytes
/
index.ts
File metadata and controls
43 lines (38 loc) · 906 Bytes
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
33
34
35
36
37
38
39
40
41
42
43
export interface IDeployment extends IDeploymentUnit {
units: { [unit: string]: IDeploymentUnit };
}
export interface IDeploymentUnit {
name: string;
contract?: string;
slug?: string;
chainId?: number;
address?: string;
tx?: string;
version?: number;
deployer?: any; // Signer
provider?: any; // Wallet
local?: boolean;
args?: unknown;
verify?: boolean;
verified?: boolean;
libraries?: Record<string, string>;
}
export interface IInputAbi {
name: string;
type: string;
indexed?: boolean;
internalType: string;
}
export interface IOutputAbi {
name: string;
type: string;
internalType: string;
}
export interface IFunctionAbi {
name: string;
type?: string; // constructor / function / error / event...
inputs?: IInputAbi[];
outputs?: IOutputAbi[];
stateMutability?: string; // payable / nonpayable / view
}
export type ContractAbi = IFunctionAbi[];