1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export type Abi = (
|
14 | | {
|
15 | type: "event";
|
16 | name: string;
|
17 | inputs: {
|
18 | name: string;
|
19 | type: string | string | string | string | string | string | string | string | string;
|
20 | indexed: boolean;
|
21 | internalType?: string;
|
22 | [k: string]: any;
|
23 | }[];
|
24 | anonymous: boolean;
|
25 | }
|
26 | | {
|
27 | type: "constructor";
|
28 | inputs: {
|
29 | name?: string;
|
30 | type?: string | string | string | string | string | string | string | string | string;
|
31 | components?: {
|
32 | [k: string]: any;
|
33 | }[];
|
34 | internalType?: string;
|
35 | [k: string]: any;
|
36 | }[];
|
37 | stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
38 | constant?: boolean;
|
39 | payable?: boolean;
|
40 | }
|
41 | | {
|
42 | type: "fallback";
|
43 | stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
44 | constant?: boolean;
|
45 | payable?: boolean;
|
46 | }
|
47 | | {
|
48 | type?: "function";
|
49 | name: string;
|
50 | inputs: {
|
51 | name?: string;
|
52 | type?: string | string | string | string | string | string | string | string | string;
|
53 | components?: {
|
54 | [k: string]: any;
|
55 | }[];
|
56 | internalType?: string;
|
57 | [k: string]: any;
|
58 | }[];
|
59 | outputs?: {
|
60 | name?: string;
|
61 | type?: string | string | string | string | string | string | string | string | string;
|
62 | components?: {
|
63 | [k: string]: any;
|
64 | }[];
|
65 | internalType?: string;
|
66 | [k: string]: any;
|
67 | }[];
|
68 | stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
69 | constant?: boolean;
|
70 | payable?: boolean;
|
71 | }
|
72 | )[];
|
73 | export type Metadata = string;
|
74 | export type Source = string;
|
75 | export type SourcePath = string;
|
76 | export type SchemaVersion = string;
|
77 |
|
78 |
|
79 |
|
80 |
|
81 | export interface ContractObject {
|
82 | |
83 |
|
84 |
|
85 | contractName?: string;
|
86 | abi: Abi;
|
87 | metadata?: Metadata;
|
88 | |
89 |
|
90 |
|
91 | bytecode?: string;
|
92 | |
93 |
|
94 |
|
95 | deployedBytecode?: string;
|
96 | |
97 |
|
98 |
|
99 | sourceMap?: string;
|
100 | |
101 |
|
102 |
|
103 | deployedSourceMap?: string;
|
104 | source?: Source;
|
105 | sourcePath?: SourcePath;
|
106 | ast?: Ast;
|
107 | legacyAST?: LegacyAst;
|
108 | compiler?: {
|
109 | name?: string;
|
110 | version?: string;
|
111 | [k: string]: any;
|
112 | };
|
113 | networks?: {
|
114 | [k: string]: NetworkObject;
|
115 | };
|
116 | schemaVersion?: SchemaVersion;
|
117 | updatedAt?: string;
|
118 | networkType?: string;
|
119 | devdoc?: NatSpec;
|
120 | userdoc?: NatSpec;
|
121 | |
122 |
|
123 |
|
124 |
|
125 | [k: string]:
|
126 | | string
|
127 | | boolean
|
128 | | number
|
129 | | {
|
130 | [k: string]: any;
|
131 | }
|
132 | | any[];
|
133 | }
|
134 | export interface Ast {
|
135 | [k: string]: any;
|
136 | }
|
137 | export interface LegacyAst {
|
138 | [k: string]: any;
|
139 | }
|
140 |
|
141 |
|
142 |
|
143 |
|
144 | export interface NetworkObject {
|
145 | |
146 |
|
147 |
|
148 |
|
149 | address?: string;
|
150 | transactionHash?: string;
|
151 | events?: {
|
152 | |
153 |
|
154 |
|
155 |
|
156 | [k: string]: {
|
157 | type: "event";
|
158 | name: string;
|
159 | inputs: {
|
160 | name: string;
|
161 | type: string | string | string | string | string | string | string | string | string;
|
162 | indexed: boolean;
|
163 | internalType?: string;
|
164 | [k: string]: any;
|
165 | }[];
|
166 | anonymous: boolean;
|
167 | };
|
168 | };
|
169 | links?: {
|
170 | |
171 |
|
172 |
|
173 |
|
174 | [k: string]: string;
|
175 | };
|
176 | }
|
177 | export interface NatSpec {
|
178 | [k: string]: any;
|
179 | }
|