@underscore-finance/sdk 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/AddyRegistry.d.ts.map +1 -1
- package/dist/contracts/AddyRegistry.js +318 -318
- package/dist/contracts/AgentFactory.d.ts.map +1 -1
- package/dist/contracts/AgentFactory.js +699 -699
- package/dist/contracts/AgentTemplate.d.ts.map +1 -1
- package/dist/contracts/AgentTemplate.js +1 -1
- package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -1
- package/dist/contracts/ChainlinkFeeds.js +399 -399
- package/dist/contracts/LegoAaveV3.d.ts.map +1 -1
- package/dist/contracts/LegoAaveV3.js +643 -643
- package/dist/contracts/LegoAeroClassic.d.ts.map +1 -1
- package/dist/contracts/LegoAeroClassic.js +749 -749
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/LegoAeroSlipstream.js +820 -820
- package/dist/contracts/LegoCompoundV3.d.ts.map +1 -1
- package/dist/contracts/LegoCompoundV3.js +664 -664
- package/dist/contracts/LegoCurve.d.ts.map +1 -1
- package/dist/contracts/LegoCurve.js +732 -732
- package/dist/contracts/LegoEuler.d.ts.map +1 -1
- package/dist/contracts/LegoEuler.js +674 -674
- package/dist/contracts/LegoFluid.d.ts.map +1 -1
- package/dist/contracts/LegoFluid.js +629 -629
- package/dist/contracts/LegoHelper.d.ts +22 -16
- package/dist/contracts/LegoHelper.d.ts.map +1 -1
- package/dist/contracts/LegoHelper.js +1057 -1057
- package/dist/contracts/LegoMoonwell.d.ts.map +1 -1
- package/dist/contracts/LegoMoonwell.js +649 -649
- package/dist/contracts/LegoMorpho.d.ts.map +1 -1
- package/dist/contracts/LegoMorpho.js +674 -674
- package/dist/contracts/LegoRegistry.d.ts.map +1 -1
- package/dist/contracts/LegoRegistry.js +406 -406
- package/dist/contracts/LegoSky.d.ts.map +1 -1
- package/dist/contracts/LegoSky.js +557 -557
- package/dist/contracts/LegoUniswapV2.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV2.js +749 -749
- package/dist/contracts/LegoUniswapV3.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV3.js +849 -849
- package/dist/contracts/OracleRegistry.d.ts.map +1 -1
- package/dist/contracts/OracleRegistry.js +585 -585
- package/dist/contracts/PriceSheets.d.ts +18 -15
- package/dist/contracts/PriceSheets.d.ts.map +1 -1
- package/dist/contracts/PriceSheets.js +718 -718
- package/dist/contracts/PythFeeds.d.ts.map +1 -1
- package/dist/contracts/PythFeeds.js +352 -352
- package/dist/contracts/StorkFeeds.d.ts.map +1 -1
- package/dist/contracts/StorkFeeds.js +352 -352
- package/dist/contracts/WalletConfig.d.ts +1 -1
- package/dist/contracts/WalletConfig.d.ts.map +1 -1
- package/dist/contracts/WalletConfig.js +1 -1
- package/dist/contracts/WalletFunds.d.ts.map +1 -1
- package/dist/contracts/WalletFunds.js +1 -1
- package/dist/contracts/sdk.d.ts +1 -1
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/package.json +1 -1
|
@@ -5,503 +5,503 @@
|
|
|
5
5
|
import { singleQuery, mutate } from '@dappql/async';
|
|
6
6
|
export const abi = [
|
|
7
7
|
{
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
anonymous: false,
|
|
9
|
+
inputs: [
|
|
10
10
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
indexed: true,
|
|
12
|
+
name: 'addr',
|
|
13
|
+
type: 'address',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
indexed: false,
|
|
17
|
+
name: 'addyId',
|
|
18
|
+
type: 'uint256',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
21
|
+
indexed: false,
|
|
22
|
+
name: 'description',
|
|
23
|
+
type: 'string',
|
|
24
|
+
},
|
|
25
25
|
],
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
name: 'NewAddyRegistered',
|
|
27
|
+
type: 'event',
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
anonymous: false,
|
|
31
|
+
inputs: [
|
|
32
32
|
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
indexed: true,
|
|
34
|
+
name: 'newAddr',
|
|
35
|
+
type: 'address',
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
indexed: true,
|
|
39
|
+
name: 'prevAddy',
|
|
40
|
+
type: 'address',
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
indexed: false,
|
|
44
|
+
name: 'addyId',
|
|
45
|
+
type: 'uint256',
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
indexed: false,
|
|
49
|
+
name: 'version',
|
|
50
|
+
type: 'uint256',
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
53
|
+
indexed: false,
|
|
54
|
+
name: 'description',
|
|
55
|
+
type: 'string',
|
|
56
|
+
},
|
|
57
57
|
],
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
name: 'AddyIdUpdated',
|
|
59
|
+
type: 'event',
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
anonymous: false,
|
|
63
|
+
inputs: [
|
|
64
64
|
{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
indexed: true,
|
|
66
|
+
name: 'prevAddy',
|
|
67
|
+
type: 'address',
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
indexed: false,
|
|
71
|
+
name: 'addyId',
|
|
72
|
+
type: 'uint256',
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
indexed: false,
|
|
76
|
+
name: 'version',
|
|
77
|
+
type: 'uint256',
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
80
|
+
indexed: false,
|
|
81
|
+
name: 'description',
|
|
82
|
+
type: 'string',
|
|
83
|
+
},
|
|
84
84
|
],
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
name: 'AddyIdDisabled',
|
|
86
|
+
type: 'event',
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
anonymous: false,
|
|
90
|
+
inputs: [
|
|
91
91
|
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
92
|
+
indexed: true,
|
|
93
|
+
name: 'governor',
|
|
94
|
+
type: 'address',
|
|
95
|
+
},
|
|
96
96
|
],
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
name: 'AddyRegistryGovernorSet',
|
|
98
|
+
type: 'event',
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
anonymous: false,
|
|
102
|
+
inputs: [
|
|
103
103
|
{
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
104
|
+
indexed: false,
|
|
105
|
+
name: 'isActivated',
|
|
106
|
+
type: 'bool',
|
|
107
|
+
},
|
|
108
108
|
],
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
name: 'AddyRegistryActivated',
|
|
110
|
+
type: 'event',
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
|
-
|
|
113
|
+
inputs: [
|
|
114
114
|
{
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
115
|
+
name: '_addy',
|
|
116
|
+
type: 'address',
|
|
117
|
+
},
|
|
118
118
|
],
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
name: 'isValidNewAddy',
|
|
120
|
+
outputs: [
|
|
121
121
|
{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
122
|
+
name: '',
|
|
123
|
+
type: 'bool',
|
|
124
|
+
},
|
|
125
125
|
],
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
stateMutability: 'view',
|
|
127
|
+
type: 'function',
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
|
|
130
|
+
inputs: [
|
|
131
131
|
{
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
name: '_addy',
|
|
133
|
+
type: 'address',
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
136
|
+
name: '_description',
|
|
137
|
+
type: 'string',
|
|
138
|
+
},
|
|
139
139
|
],
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
name: 'registerNewAddy',
|
|
141
|
+
outputs: [
|
|
142
142
|
{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
143
|
+
name: '',
|
|
144
|
+
type: 'uint256',
|
|
145
|
+
},
|
|
146
146
|
],
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
stateMutability: 'nonpayable',
|
|
148
|
+
type: 'function',
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
|
-
|
|
151
|
+
inputs: [
|
|
152
152
|
{
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
name: '_addyId',
|
|
154
|
+
type: 'uint256',
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
157
|
+
name: '_newAddy',
|
|
158
|
+
type: 'address',
|
|
159
|
+
},
|
|
160
160
|
],
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
name: 'isValidAddyUpdate',
|
|
162
|
+
outputs: [
|
|
163
163
|
{
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
164
|
+
name: '',
|
|
165
|
+
type: 'bool',
|
|
166
|
+
},
|
|
167
167
|
],
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
stateMutability: 'view',
|
|
169
|
+
type: 'function',
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
|
-
|
|
172
|
+
inputs: [
|
|
173
173
|
{
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
name: '_addyId',
|
|
175
|
+
type: 'uint256',
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
178
|
+
name: '_newAddy',
|
|
179
|
+
type: 'address',
|
|
180
|
+
},
|
|
181
181
|
],
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
name: 'updateAddy',
|
|
183
|
+
outputs: [
|
|
184
184
|
{
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
185
|
+
name: '',
|
|
186
|
+
type: 'bool',
|
|
187
|
+
},
|
|
188
188
|
],
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
stateMutability: 'nonpayable',
|
|
190
|
+
type: 'function',
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
|
-
|
|
193
|
+
inputs: [
|
|
194
194
|
{
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
195
|
+
name: '_addyId',
|
|
196
|
+
type: 'uint256',
|
|
197
|
+
},
|
|
198
198
|
],
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
name: 'isValidAddyDisable',
|
|
200
|
+
outputs: [
|
|
201
201
|
{
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
202
|
+
name: '',
|
|
203
|
+
type: 'bool',
|
|
204
|
+
},
|
|
205
205
|
],
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
stateMutability: 'view',
|
|
207
|
+
type: 'function',
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
|
|
210
|
+
inputs: [
|
|
211
211
|
{
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
212
|
+
name: '_addyId',
|
|
213
|
+
type: 'uint256',
|
|
214
|
+
},
|
|
215
215
|
],
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
name: 'disableAddy',
|
|
217
|
+
outputs: [
|
|
218
218
|
{
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
219
|
+
name: '',
|
|
220
|
+
type: 'bool',
|
|
221
|
+
},
|
|
222
222
|
],
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
stateMutability: 'nonpayable',
|
|
224
|
+
type: 'function',
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
|
-
|
|
227
|
+
inputs: [
|
|
228
228
|
{
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}
|
|
229
|
+
name: '_addy',
|
|
230
|
+
type: 'address',
|
|
231
|
+
},
|
|
232
232
|
],
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
name: 'isValidAddy',
|
|
234
|
+
outputs: [
|
|
235
235
|
{
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
236
|
+
name: '',
|
|
237
|
+
type: 'bool',
|
|
238
|
+
},
|
|
239
239
|
],
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
stateMutability: 'view',
|
|
241
|
+
type: 'function',
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
|
-
|
|
244
|
+
inputs: [
|
|
245
245
|
{
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
246
|
+
name: '_addyId',
|
|
247
|
+
type: 'uint256',
|
|
248
|
+
},
|
|
249
249
|
],
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
name: 'isValidAddyId',
|
|
251
|
+
outputs: [
|
|
252
252
|
{
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
253
|
+
name: '',
|
|
254
|
+
type: 'bool',
|
|
255
|
+
},
|
|
256
256
|
],
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
stateMutability: 'view',
|
|
258
|
+
type: 'function',
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
|
-
|
|
261
|
+
inputs: [
|
|
262
262
|
{
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
263
|
+
name: '_addy',
|
|
264
|
+
type: 'address',
|
|
265
|
+
},
|
|
266
266
|
],
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
name: 'getAddyId',
|
|
268
|
+
outputs: [
|
|
269
269
|
{
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
270
|
+
name: '',
|
|
271
|
+
type: 'uint256',
|
|
272
|
+
},
|
|
273
273
|
],
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
stateMutability: 'view',
|
|
275
|
+
type: 'function',
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
|
-
|
|
278
|
+
inputs: [
|
|
279
279
|
{
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}
|
|
280
|
+
name: '_addyId',
|
|
281
|
+
type: 'uint256',
|
|
282
|
+
},
|
|
283
283
|
],
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
name: 'getAddy',
|
|
285
|
+
outputs: [
|
|
286
286
|
{
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
287
|
+
name: '',
|
|
288
|
+
type: 'address',
|
|
289
|
+
},
|
|
290
290
|
],
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
stateMutability: 'view',
|
|
292
|
+
type: 'function',
|
|
293
293
|
},
|
|
294
294
|
{
|
|
295
|
-
|
|
295
|
+
inputs: [
|
|
296
296
|
{
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
297
|
+
name: '_addyId',
|
|
298
|
+
type: 'uint256',
|
|
299
|
+
},
|
|
300
300
|
],
|
|
301
|
-
|
|
302
|
-
|
|
301
|
+
name: 'getAddyInfo',
|
|
302
|
+
outputs: [
|
|
303
303
|
{
|
|
304
|
-
|
|
304
|
+
components: [
|
|
305
305
|
{
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
name: 'addr',
|
|
307
|
+
type: 'address',
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
name: 'version',
|
|
311
|
+
type: 'uint256',
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
name: 'lastModified',
|
|
315
|
+
type: 'uint256',
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
}
|
|
318
|
+
name: 'description',
|
|
319
|
+
type: 'string',
|
|
320
|
+
},
|
|
321
321
|
],
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}
|
|
322
|
+
name: '',
|
|
323
|
+
type: 'tuple',
|
|
324
|
+
},
|
|
325
325
|
],
|
|
326
|
-
|
|
327
|
-
|
|
326
|
+
stateMutability: 'view',
|
|
327
|
+
type: 'function',
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
|
-
|
|
330
|
+
inputs: [
|
|
331
331
|
{
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}
|
|
332
|
+
name: '_addyId',
|
|
333
|
+
type: 'uint256',
|
|
334
|
+
},
|
|
335
335
|
],
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
name: 'getAddyDescription',
|
|
337
|
+
outputs: [
|
|
338
338
|
{
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
}
|
|
339
|
+
name: '',
|
|
340
|
+
type: 'string',
|
|
341
|
+
},
|
|
342
342
|
],
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
stateMutability: 'view',
|
|
344
|
+
type: 'function',
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
347
|
+
inputs: [],
|
|
348
|
+
name: 'getNumAddys',
|
|
349
|
+
outputs: [
|
|
350
350
|
{
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
}
|
|
351
|
+
name: '',
|
|
352
|
+
type: 'uint256',
|
|
353
|
+
},
|
|
354
354
|
],
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
stateMutability: 'view',
|
|
356
|
+
type: 'function',
|
|
357
357
|
},
|
|
358
358
|
{
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
359
|
+
inputs: [],
|
|
360
|
+
name: 'getLastAddy',
|
|
361
|
+
outputs: [
|
|
362
362
|
{
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}
|
|
363
|
+
name: '',
|
|
364
|
+
type: 'address',
|
|
365
|
+
},
|
|
366
366
|
],
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
stateMutability: 'view',
|
|
368
|
+
type: 'function',
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
371
|
+
inputs: [],
|
|
372
|
+
name: 'getLastAddyId',
|
|
373
|
+
outputs: [
|
|
374
374
|
{
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}
|
|
375
|
+
name: '',
|
|
376
|
+
type: 'uint256',
|
|
377
|
+
},
|
|
378
378
|
],
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
stateMutability: 'view',
|
|
380
|
+
type: 'function',
|
|
381
381
|
},
|
|
382
382
|
{
|
|
383
|
-
|
|
383
|
+
inputs: [
|
|
384
384
|
{
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}
|
|
385
|
+
name: '_newGovernor',
|
|
386
|
+
type: 'address',
|
|
387
|
+
},
|
|
388
388
|
],
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
name: 'isValidGovernor',
|
|
390
|
+
outputs: [
|
|
391
391
|
{
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
}
|
|
392
|
+
name: '',
|
|
393
|
+
type: 'bool',
|
|
394
|
+
},
|
|
395
395
|
],
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
stateMutability: 'view',
|
|
397
|
+
type: 'function',
|
|
398
398
|
},
|
|
399
399
|
{
|
|
400
|
-
|
|
400
|
+
inputs: [
|
|
401
401
|
{
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}
|
|
402
|
+
name: '_newGovernor',
|
|
403
|
+
type: 'address',
|
|
404
|
+
},
|
|
405
405
|
],
|
|
406
|
-
|
|
407
|
-
|
|
406
|
+
name: 'setGovernor',
|
|
407
|
+
outputs: [
|
|
408
408
|
{
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
}
|
|
409
|
+
name: '',
|
|
410
|
+
type: 'bool',
|
|
411
|
+
},
|
|
412
412
|
],
|
|
413
|
-
|
|
414
|
-
|
|
413
|
+
stateMutability: 'nonpayable',
|
|
414
|
+
type: 'function',
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
|
-
|
|
417
|
+
inputs: [
|
|
418
418
|
{
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
}
|
|
419
|
+
name: 'arg0',
|
|
420
|
+
type: 'uint256',
|
|
421
|
+
},
|
|
422
422
|
],
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
name: 'addyInfo',
|
|
424
|
+
outputs: [
|
|
425
425
|
{
|
|
426
|
-
|
|
426
|
+
components: [
|
|
427
427
|
{
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
name: 'addr',
|
|
429
|
+
type: 'address',
|
|
430
430
|
},
|
|
431
431
|
{
|
|
432
|
-
|
|
433
|
-
|
|
432
|
+
name: 'version',
|
|
433
|
+
type: 'uint256',
|
|
434
434
|
},
|
|
435
435
|
{
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
name: 'lastModified',
|
|
437
|
+
type: 'uint256',
|
|
438
438
|
},
|
|
439
439
|
{
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
}
|
|
440
|
+
name: 'description',
|
|
441
|
+
type: 'string',
|
|
442
|
+
},
|
|
443
443
|
],
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}
|
|
444
|
+
name: '',
|
|
445
|
+
type: 'tuple',
|
|
446
|
+
},
|
|
447
447
|
],
|
|
448
|
-
|
|
449
|
-
|
|
448
|
+
stateMutability: 'view',
|
|
449
|
+
type: 'function',
|
|
450
450
|
},
|
|
451
451
|
{
|
|
452
|
-
|
|
452
|
+
inputs: [
|
|
453
453
|
{
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
}
|
|
454
|
+
name: 'arg0',
|
|
455
|
+
type: 'address',
|
|
456
|
+
},
|
|
457
457
|
],
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
name: 'addyToId',
|
|
459
|
+
outputs: [
|
|
460
460
|
{
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
}
|
|
461
|
+
name: '',
|
|
462
|
+
type: 'uint256',
|
|
463
|
+
},
|
|
464
464
|
],
|
|
465
|
-
|
|
466
|
-
|
|
465
|
+
stateMutability: 'view',
|
|
466
|
+
type: 'function',
|
|
467
467
|
},
|
|
468
468
|
{
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
469
|
+
inputs: [],
|
|
470
|
+
name: 'numAddys',
|
|
471
|
+
outputs: [
|
|
472
472
|
{
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
}
|
|
473
|
+
name: '',
|
|
474
|
+
type: 'uint256',
|
|
475
|
+
},
|
|
476
476
|
],
|
|
477
|
-
|
|
478
|
-
|
|
477
|
+
stateMutability: 'view',
|
|
478
|
+
type: 'function',
|
|
479
479
|
},
|
|
480
480
|
{
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
481
|
+
inputs: [],
|
|
482
|
+
name: 'governor',
|
|
483
|
+
outputs: [
|
|
484
484
|
{
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
}
|
|
485
|
+
name: '',
|
|
486
|
+
type: 'address',
|
|
487
|
+
},
|
|
488
488
|
],
|
|
489
|
-
|
|
490
|
-
|
|
489
|
+
stateMutability: 'view',
|
|
490
|
+
type: 'function',
|
|
491
491
|
},
|
|
492
492
|
{
|
|
493
|
-
|
|
493
|
+
inputs: [
|
|
494
494
|
{
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
495
|
+
name: '_governor',
|
|
496
|
+
type: 'address',
|
|
497
|
+
},
|
|
498
498
|
],
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}
|
|
499
|
+
outputs: [],
|
|
500
|
+
stateMutability: 'nonpayable',
|
|
501
|
+
type: 'constructor',
|
|
502
|
+
},
|
|
503
503
|
];
|
|
504
|
-
export const deployAddress =
|
|
504
|
+
export const deployAddress = '0x49B08551e452cA99da7dE9B3a60E39e5f10C13CD';
|
|
505
505
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
506
506
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
507
507
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|