@underscore-finance/sdk 0.0.8 → 0.2.2
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 +659 -82
- package/dist/contracts/AddyRegistry.d.ts.map +1 -1
- package/dist/contracts/AddyRegistry.js +903 -184
- package/dist/contracts/Agent.d.ts +223 -145
- package/dist/contracts/Agent.d.ts.map +1 -1
- package/dist/contracts/Agent.js +248 -162
- package/dist/contracts/AgentFactory.d.ts +335 -42
- package/dist/contracts/AgentFactory.d.ts.map +1 -1
- package/dist/contracts/AgentFactory.js +403 -42
- package/dist/contracts/Agent_v1.d.ts +2629 -0
- package/dist/contracts/Agent_v1.d.ts.map +1 -0
- package/dist/contracts/Agent_v1.js +3370 -0
- package/dist/contracts/ChainlinkFeeds.d.ts +160 -23
- package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -1
- package/dist/contracts/ChainlinkFeeds.js +186 -23
- package/dist/contracts/LegoAaveV3.d.ts +160 -23
- package/dist/contracts/LegoAaveV3.d.ts.map +1 -1
- package/dist/contracts/LegoAaveV3.js +186 -23
- package/dist/contracts/LegoAeroClassic.d.ts +160 -23
- package/dist/contracts/LegoAeroClassic.d.ts.map +1 -1
- package/dist/contracts/LegoAeroClassic.js +186 -23
- package/dist/contracts/LegoAeroSlipstream.d.ts +160 -23
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/LegoAeroSlipstream.js +186 -23
- package/dist/contracts/LegoCompoundV3.d.ts +160 -23
- package/dist/contracts/LegoCompoundV3.d.ts.map +1 -1
- package/dist/contracts/LegoCompoundV3.js +186 -23
- package/dist/contracts/LegoCurve.d.ts +160 -23
- package/dist/contracts/LegoCurve.d.ts.map +1 -1
- package/dist/contracts/LegoCurve.js +186 -23
- package/dist/contracts/LegoEuler.d.ts +160 -23
- package/dist/contracts/LegoEuler.d.ts.map +1 -1
- package/dist/contracts/LegoEuler.js +186 -23
- package/dist/contracts/LegoFluid.d.ts +171 -23
- package/dist/contracts/LegoFluid.d.ts.map +1 -1
- package/dist/contracts/LegoFluid.js +200 -23
- package/dist/contracts/LegoHelper.js +1 -1
- package/dist/contracts/LegoMoonwell.d.ts +160 -23
- package/dist/contracts/LegoMoonwell.d.ts.map +1 -1
- package/dist/contracts/LegoMoonwell.js +186 -23
- package/dist/contracts/LegoMorpho.d.ts +160 -23
- package/dist/contracts/LegoMorpho.d.ts.map +1 -1
- package/dist/contracts/LegoMorpho.js +186 -23
- package/dist/contracts/LegoRegistry.d.ts +501 -96
- package/dist/contracts/LegoRegistry.d.ts.map +1 -1
- package/dist/contracts/LegoRegistry.js +686 -174
- package/dist/contracts/LegoSky.d.ts +160 -23
- package/dist/contracts/LegoSky.d.ts.map +1 -1
- package/dist/contracts/LegoSky.js +186 -23
- package/dist/contracts/LegoUniswapV2.d.ts +160 -23
- package/dist/contracts/LegoUniswapV2.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV2.js +186 -23
- package/dist/contracts/LegoUniswapV3.d.ts +160 -23
- package/dist/contracts/LegoUniswapV3.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV3.js +186 -23
- package/dist/contracts/OracleRegistry.d.ts +506 -109
- package/dist/contracts/OracleRegistry.d.ts.map +1 -1
- package/dist/contracts/OracleRegistry.js +628 -131
- package/dist/contracts/PriceSheets.d.ts +160 -23
- package/dist/contracts/PriceSheets.d.ts.map +1 -1
- package/dist/contracts/PriceSheets.js +186 -23
- package/dist/contracts/PythFeeds.d.ts +160 -23
- package/dist/contracts/PythFeeds.d.ts.map +1 -1
- package/dist/contracts/PythFeeds.js +186 -23
- package/dist/contracts/StorkFeeds.d.ts +160 -23
- package/dist/contracts/StorkFeeds.d.ts.map +1 -1
- package/dist/contracts/StorkFeeds.js +186 -23
- package/dist/contracts/UserWallet.d.ts +1956 -0
- package/dist/contracts/UserWallet.d.ts.map +1 -0
- package/dist/contracts/UserWallet.js +2551 -0
- package/dist/contracts/UserWalletConfig.d.ts +1466 -0
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
- package/dist/contracts/UserWalletConfig.js +1762 -0
- package/dist/contracts/index.d.ts +3 -2
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +3 -2
- package/dist/contracts/sdk.d.ts +6 -4
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +6 -4
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/package.json +1 -1
|
@@ -4,6 +4,116 @@
|
|
|
4
4
|
/* @ts-nocheck */
|
|
5
5
|
import { singleQuery, mutate } from '@dappql/async';
|
|
6
6
|
export const abi = [
|
|
7
|
+
{
|
|
8
|
+
anonymous: false,
|
|
9
|
+
inputs: [
|
|
10
|
+
{
|
|
11
|
+
indexed: true,
|
|
12
|
+
name: 'prevGov',
|
|
13
|
+
type: 'address',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
indexed: true,
|
|
17
|
+
name: 'newGov',
|
|
18
|
+
type: 'address',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
indexed: false,
|
|
22
|
+
name: 'confirmBlock',
|
|
23
|
+
type: 'uint256',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
name: 'GovChangeInitiated',
|
|
27
|
+
type: 'event',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
anonymous: false,
|
|
31
|
+
inputs: [
|
|
32
|
+
{
|
|
33
|
+
indexed: true,
|
|
34
|
+
name: 'prevGov',
|
|
35
|
+
type: 'address',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
indexed: true,
|
|
39
|
+
name: 'newGov',
|
|
40
|
+
type: 'address',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
indexed: false,
|
|
44
|
+
name: 'initiatedBlock',
|
|
45
|
+
type: 'uint256',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
indexed: false,
|
|
49
|
+
name: 'confirmBlock',
|
|
50
|
+
type: 'uint256',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
name: 'GovChangeConfirmed',
|
|
54
|
+
type: 'event',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
anonymous: false,
|
|
58
|
+
inputs: [
|
|
59
|
+
{
|
|
60
|
+
indexed: true,
|
|
61
|
+
name: 'cancelledGov',
|
|
62
|
+
type: 'address',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
indexed: false,
|
|
66
|
+
name: 'initiatedBlock',
|
|
67
|
+
type: 'uint256',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
indexed: false,
|
|
71
|
+
name: 'confirmBlock',
|
|
72
|
+
type: 'uint256',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
name: 'GovChangeCancelled',
|
|
76
|
+
type: 'event',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
anonymous: false,
|
|
80
|
+
inputs: [
|
|
81
|
+
{
|
|
82
|
+
indexed: false,
|
|
83
|
+
name: 'delayBlocks',
|
|
84
|
+
type: 'uint256',
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: 'GovChangeDelaySet',
|
|
88
|
+
type: 'event',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
anonymous: false,
|
|
92
|
+
inputs: [
|
|
93
|
+
{
|
|
94
|
+
indexed: true,
|
|
95
|
+
name: 'addr',
|
|
96
|
+
type: 'address',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
indexed: false,
|
|
100
|
+
name: 'description',
|
|
101
|
+
type: 'string',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
indexed: false,
|
|
105
|
+
name: 'confirmBlock',
|
|
106
|
+
type: 'uint256',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
indexed: false,
|
|
110
|
+
name: 'registry',
|
|
111
|
+
type: 'string',
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
name: 'NewAddyPending',
|
|
115
|
+
type: 'event',
|
|
116
|
+
},
|
|
7
117
|
{
|
|
8
118
|
anonymous: false,
|
|
9
119
|
inputs: [
|
|
@@ -22,13 +132,60 @@ export const abi = [
|
|
|
22
132
|
name: 'description',
|
|
23
133
|
type: 'string',
|
|
24
134
|
},
|
|
135
|
+
{
|
|
136
|
+
indexed: false,
|
|
137
|
+
name: 'registry',
|
|
138
|
+
type: 'string',
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
name: 'NewAddyConfirmed',
|
|
142
|
+
type: 'event',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
anonymous: false,
|
|
146
|
+
inputs: [
|
|
147
|
+
{
|
|
148
|
+
indexed: false,
|
|
149
|
+
name: 'description',
|
|
150
|
+
type: 'string',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
indexed: true,
|
|
154
|
+
name: 'addr',
|
|
155
|
+
type: 'address',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
indexed: false,
|
|
159
|
+
name: 'initiatedBlock',
|
|
160
|
+
type: 'uint256',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
indexed: false,
|
|
164
|
+
name: 'confirmBlock',
|
|
165
|
+
type: 'uint256',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
indexed: false,
|
|
169
|
+
name: 'registry',
|
|
170
|
+
type: 'string',
|
|
171
|
+
},
|
|
25
172
|
],
|
|
26
|
-
name: '
|
|
173
|
+
name: 'NewPendingAddyCancelled',
|
|
27
174
|
type: 'event',
|
|
28
175
|
},
|
|
29
176
|
{
|
|
30
177
|
anonymous: false,
|
|
31
178
|
inputs: [
|
|
179
|
+
{
|
|
180
|
+
indexed: false,
|
|
181
|
+
name: 'addyId',
|
|
182
|
+
type: 'uint256',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
indexed: false,
|
|
186
|
+
name: 'description',
|
|
187
|
+
type: 'string',
|
|
188
|
+
},
|
|
32
189
|
{
|
|
33
190
|
indexed: true,
|
|
34
191
|
name: 'newAddr',
|
|
@@ -36,14 +193,51 @@ export const abi = [
|
|
|
36
193
|
},
|
|
37
194
|
{
|
|
38
195
|
indexed: true,
|
|
39
|
-
name: '
|
|
196
|
+
name: 'prevAddr',
|
|
40
197
|
type: 'address',
|
|
41
198
|
},
|
|
199
|
+
{
|
|
200
|
+
indexed: false,
|
|
201
|
+
name: 'version',
|
|
202
|
+
type: 'uint256',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
indexed: false,
|
|
206
|
+
name: 'confirmBlock',
|
|
207
|
+
type: 'uint256',
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
indexed: false,
|
|
211
|
+
name: 'registry',
|
|
212
|
+
type: 'string',
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
name: 'AddyUpdatePending',
|
|
216
|
+
type: 'event',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
anonymous: false,
|
|
220
|
+
inputs: [
|
|
42
221
|
{
|
|
43
222
|
indexed: false,
|
|
44
223
|
name: 'addyId',
|
|
45
224
|
type: 'uint256',
|
|
46
225
|
},
|
|
226
|
+
{
|
|
227
|
+
indexed: false,
|
|
228
|
+
name: 'description',
|
|
229
|
+
type: 'string',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
indexed: true,
|
|
233
|
+
name: 'newAddr',
|
|
234
|
+
type: 'address',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
indexed: true,
|
|
238
|
+
name: 'prevAddr',
|
|
239
|
+
type: 'address',
|
|
240
|
+
},
|
|
47
241
|
{
|
|
48
242
|
indexed: false,
|
|
49
243
|
name: 'version',
|
|
@@ -51,26 +245,73 @@ export const abi = [
|
|
|
51
245
|
},
|
|
52
246
|
{
|
|
53
247
|
indexed: false,
|
|
54
|
-
name: '
|
|
248
|
+
name: 'registry',
|
|
55
249
|
type: 'string',
|
|
56
250
|
},
|
|
57
251
|
],
|
|
58
|
-
name: '
|
|
252
|
+
name: 'AddyUpdateConfirmed',
|
|
59
253
|
type: 'event',
|
|
60
254
|
},
|
|
61
255
|
{
|
|
62
256
|
anonymous: false,
|
|
63
257
|
inputs: [
|
|
258
|
+
{
|
|
259
|
+
indexed: false,
|
|
260
|
+
name: 'addyId',
|
|
261
|
+
type: 'uint256',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
indexed: false,
|
|
265
|
+
name: 'description',
|
|
266
|
+
type: 'string',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
indexed: true,
|
|
270
|
+
name: 'newAddr',
|
|
271
|
+
type: 'address',
|
|
272
|
+
},
|
|
64
273
|
{
|
|
65
274
|
indexed: true,
|
|
66
|
-
name: '
|
|
275
|
+
name: 'prevAddr',
|
|
67
276
|
type: 'address',
|
|
68
277
|
},
|
|
278
|
+
{
|
|
279
|
+
indexed: false,
|
|
280
|
+
name: 'initiatedBlock',
|
|
281
|
+
type: 'uint256',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
indexed: false,
|
|
285
|
+
name: 'confirmBlock',
|
|
286
|
+
type: 'uint256',
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
indexed: false,
|
|
290
|
+
name: 'registry',
|
|
291
|
+
type: 'string',
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
name: 'AddyUpdateCancelled',
|
|
295
|
+
type: 'event',
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
anonymous: false,
|
|
299
|
+
inputs: [
|
|
69
300
|
{
|
|
70
301
|
indexed: false,
|
|
71
302
|
name: 'addyId',
|
|
72
303
|
type: 'uint256',
|
|
73
304
|
},
|
|
305
|
+
{
|
|
306
|
+
indexed: false,
|
|
307
|
+
name: 'description',
|
|
308
|
+
type: 'string',
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
indexed: true,
|
|
312
|
+
name: 'addr',
|
|
313
|
+
type: 'address',
|
|
314
|
+
},
|
|
74
315
|
{
|
|
75
316
|
indexed: false,
|
|
76
317
|
name: 'version',
|
|
@@ -78,23 +319,48 @@ export const abi = [
|
|
|
78
319
|
},
|
|
79
320
|
{
|
|
80
321
|
indexed: false,
|
|
81
|
-
name: '
|
|
322
|
+
name: 'confirmBlock',
|
|
323
|
+
type: 'uint256',
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
indexed: false,
|
|
327
|
+
name: 'registry',
|
|
82
328
|
type: 'string',
|
|
83
329
|
},
|
|
84
330
|
],
|
|
85
|
-
name: '
|
|
331
|
+
name: 'AddyDisablePending',
|
|
86
332
|
type: 'event',
|
|
87
333
|
},
|
|
88
334
|
{
|
|
89
335
|
anonymous: false,
|
|
90
336
|
inputs: [
|
|
337
|
+
{
|
|
338
|
+
indexed: false,
|
|
339
|
+
name: 'addyId',
|
|
340
|
+
type: 'uint256',
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
indexed: false,
|
|
344
|
+
name: 'description',
|
|
345
|
+
type: 'string',
|
|
346
|
+
},
|
|
91
347
|
{
|
|
92
348
|
indexed: true,
|
|
93
|
-
name: '
|
|
349
|
+
name: 'addr',
|
|
94
350
|
type: 'address',
|
|
95
351
|
},
|
|
352
|
+
{
|
|
353
|
+
indexed: false,
|
|
354
|
+
name: 'version',
|
|
355
|
+
type: 'uint256',
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
indexed: false,
|
|
359
|
+
name: 'registry',
|
|
360
|
+
type: 'string',
|
|
361
|
+
},
|
|
96
362
|
],
|
|
97
|
-
name: '
|
|
363
|
+
name: 'AddyDisableConfirmed',
|
|
98
364
|
type: 'event',
|
|
99
365
|
},
|
|
100
366
|
{
|
|
@@ -102,67 +368,497 @@ export const abi = [
|
|
|
102
368
|
inputs: [
|
|
103
369
|
{
|
|
104
370
|
indexed: false,
|
|
105
|
-
name: '
|
|
106
|
-
type: '
|
|
371
|
+
name: 'addyId',
|
|
372
|
+
type: 'uint256',
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
indexed: false,
|
|
376
|
+
name: 'description',
|
|
377
|
+
type: 'string',
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
indexed: true,
|
|
381
|
+
name: 'addr',
|
|
382
|
+
type: 'address',
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
indexed: false,
|
|
386
|
+
name: 'initiatedBlock',
|
|
387
|
+
type: 'uint256',
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
indexed: false,
|
|
391
|
+
name: 'confirmBlock',
|
|
392
|
+
type: 'uint256',
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
indexed: false,
|
|
396
|
+
name: 'registry',
|
|
397
|
+
type: 'string',
|
|
398
|
+
},
|
|
399
|
+
],
|
|
400
|
+
name: 'AddyDisableCancelled',
|
|
401
|
+
type: 'event',
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
anonymous: false,
|
|
405
|
+
inputs: [
|
|
406
|
+
{
|
|
407
|
+
indexed: false,
|
|
408
|
+
name: 'delayBlocks',
|
|
409
|
+
type: 'uint256',
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
indexed: false,
|
|
413
|
+
name: 'registry',
|
|
414
|
+
type: 'string',
|
|
415
|
+
},
|
|
416
|
+
],
|
|
417
|
+
name: 'AddyChangeDelaySet',
|
|
418
|
+
type: 'event',
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
inputs: [
|
|
422
|
+
{
|
|
423
|
+
name: '_address',
|
|
424
|
+
type: 'address',
|
|
425
|
+
},
|
|
426
|
+
],
|
|
427
|
+
name: 'canGovern',
|
|
428
|
+
outputs: [
|
|
429
|
+
{
|
|
430
|
+
name: '',
|
|
431
|
+
type: 'bool',
|
|
432
|
+
},
|
|
433
|
+
],
|
|
434
|
+
stateMutability: 'view',
|
|
435
|
+
type: 'function',
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
inputs: [],
|
|
439
|
+
name: 'hasPendingGovChange',
|
|
440
|
+
outputs: [
|
|
441
|
+
{
|
|
442
|
+
name: '',
|
|
443
|
+
type: 'bool',
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
stateMutability: 'view',
|
|
447
|
+
type: 'function',
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
inputs: [
|
|
451
|
+
{
|
|
452
|
+
name: '_newGov',
|
|
453
|
+
type: 'address',
|
|
454
|
+
},
|
|
455
|
+
],
|
|
456
|
+
name: 'changeGovernance',
|
|
457
|
+
outputs: [],
|
|
458
|
+
stateMutability: 'nonpayable',
|
|
459
|
+
type: 'function',
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
inputs: [],
|
|
463
|
+
name: 'confirmGovernanceChange',
|
|
464
|
+
outputs: [],
|
|
465
|
+
stateMutability: 'nonpayable',
|
|
466
|
+
type: 'function',
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
inputs: [],
|
|
470
|
+
name: 'cancelGovernanceChange',
|
|
471
|
+
outputs: [],
|
|
472
|
+
stateMutability: 'nonpayable',
|
|
473
|
+
type: 'function',
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
inputs: [
|
|
477
|
+
{
|
|
478
|
+
name: '_numBlocks',
|
|
479
|
+
type: 'uint256',
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
name: 'setGovernanceChangeDelay',
|
|
483
|
+
outputs: [],
|
|
484
|
+
stateMutability: 'nonpayable',
|
|
485
|
+
type: 'function',
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
inputs: [],
|
|
489
|
+
name: 'governance',
|
|
490
|
+
outputs: [
|
|
491
|
+
{
|
|
492
|
+
name: '',
|
|
493
|
+
type: 'address',
|
|
494
|
+
},
|
|
495
|
+
],
|
|
496
|
+
stateMutability: 'view',
|
|
497
|
+
type: 'function',
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
inputs: [],
|
|
501
|
+
name: 'pendingGov',
|
|
502
|
+
outputs: [
|
|
503
|
+
{
|
|
504
|
+
components: [
|
|
505
|
+
{
|
|
506
|
+
name: 'newGov',
|
|
507
|
+
type: 'address',
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
name: 'initiatedBlock',
|
|
511
|
+
type: 'uint256',
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
name: 'confirmBlock',
|
|
515
|
+
type: 'uint256',
|
|
516
|
+
},
|
|
517
|
+
],
|
|
518
|
+
name: '',
|
|
519
|
+
type: 'tuple',
|
|
520
|
+
},
|
|
521
|
+
],
|
|
522
|
+
stateMutability: 'view',
|
|
523
|
+
type: 'function',
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
inputs: [],
|
|
527
|
+
name: 'govChangeDelay',
|
|
528
|
+
outputs: [
|
|
529
|
+
{
|
|
530
|
+
name: '',
|
|
531
|
+
type: 'uint256',
|
|
532
|
+
},
|
|
533
|
+
],
|
|
534
|
+
stateMutability: 'view',
|
|
535
|
+
type: 'function',
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
inputs: [],
|
|
539
|
+
name: 'MIN_GOV_CHANGE_DELAY',
|
|
540
|
+
outputs: [
|
|
541
|
+
{
|
|
542
|
+
name: '',
|
|
543
|
+
type: 'uint256',
|
|
544
|
+
},
|
|
545
|
+
],
|
|
546
|
+
stateMutability: 'view',
|
|
547
|
+
type: 'function',
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
inputs: [],
|
|
551
|
+
name: 'MAX_GOV_CHANGE_DELAY',
|
|
552
|
+
outputs: [
|
|
553
|
+
{
|
|
554
|
+
name: '',
|
|
555
|
+
type: 'uint256',
|
|
556
|
+
},
|
|
557
|
+
],
|
|
558
|
+
stateMutability: 'view',
|
|
559
|
+
type: 'function',
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
inputs: [
|
|
563
|
+
{
|
|
564
|
+
name: '_addr',
|
|
565
|
+
type: 'address',
|
|
566
|
+
},
|
|
567
|
+
],
|
|
568
|
+
name: 'isValidNewAddy',
|
|
569
|
+
outputs: [
|
|
570
|
+
{
|
|
571
|
+
name: '',
|
|
572
|
+
type: 'bool',
|
|
573
|
+
},
|
|
574
|
+
],
|
|
575
|
+
stateMutability: 'view',
|
|
576
|
+
type: 'function',
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
inputs: [
|
|
580
|
+
{
|
|
581
|
+
name: '_addyId',
|
|
582
|
+
type: 'uint256',
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
name: '_newAddr',
|
|
586
|
+
type: 'address',
|
|
587
|
+
},
|
|
588
|
+
],
|
|
589
|
+
name: 'isValidAddyUpdate',
|
|
590
|
+
outputs: [
|
|
591
|
+
{
|
|
592
|
+
name: '',
|
|
593
|
+
type: 'bool',
|
|
594
|
+
},
|
|
595
|
+
],
|
|
596
|
+
stateMutability: 'view',
|
|
597
|
+
type: 'function',
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
inputs: [
|
|
601
|
+
{
|
|
602
|
+
name: '_addyId',
|
|
603
|
+
type: 'uint256',
|
|
604
|
+
},
|
|
605
|
+
],
|
|
606
|
+
name: 'isValidAddyDisable',
|
|
607
|
+
outputs: [
|
|
608
|
+
{
|
|
609
|
+
name: '',
|
|
610
|
+
type: 'bool',
|
|
611
|
+
},
|
|
612
|
+
],
|
|
613
|
+
stateMutability: 'view',
|
|
614
|
+
type: 'function',
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
inputs: [
|
|
618
|
+
{
|
|
619
|
+
name: '_addr',
|
|
620
|
+
type: 'address',
|
|
621
|
+
},
|
|
622
|
+
],
|
|
623
|
+
name: 'isValidAddyAddr',
|
|
624
|
+
outputs: [
|
|
625
|
+
{
|
|
626
|
+
name: '',
|
|
627
|
+
type: 'bool',
|
|
628
|
+
},
|
|
629
|
+
],
|
|
630
|
+
stateMutability: 'view',
|
|
631
|
+
type: 'function',
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
inputs: [
|
|
635
|
+
{
|
|
636
|
+
name: '_addyId',
|
|
637
|
+
type: 'uint256',
|
|
638
|
+
},
|
|
639
|
+
],
|
|
640
|
+
name: 'isValidAddyId',
|
|
641
|
+
outputs: [
|
|
642
|
+
{
|
|
643
|
+
name: '',
|
|
644
|
+
type: 'bool',
|
|
645
|
+
},
|
|
646
|
+
],
|
|
647
|
+
stateMutability: 'view',
|
|
648
|
+
type: 'function',
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
inputs: [
|
|
652
|
+
{
|
|
653
|
+
name: '_addr',
|
|
654
|
+
type: 'address',
|
|
655
|
+
},
|
|
656
|
+
],
|
|
657
|
+
name: 'getAddyId',
|
|
658
|
+
outputs: [
|
|
659
|
+
{
|
|
660
|
+
name: '',
|
|
661
|
+
type: 'uint256',
|
|
662
|
+
},
|
|
663
|
+
],
|
|
664
|
+
stateMutability: 'view',
|
|
665
|
+
type: 'function',
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
inputs: [
|
|
669
|
+
{
|
|
670
|
+
name: '_addyId',
|
|
671
|
+
type: 'uint256',
|
|
672
|
+
},
|
|
673
|
+
],
|
|
674
|
+
name: 'getAddy',
|
|
675
|
+
outputs: [
|
|
676
|
+
{
|
|
677
|
+
name: '',
|
|
678
|
+
type: 'address',
|
|
679
|
+
},
|
|
680
|
+
],
|
|
681
|
+
stateMutability: 'view',
|
|
682
|
+
type: 'function',
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
inputs: [
|
|
686
|
+
{
|
|
687
|
+
name: '_addyId',
|
|
688
|
+
type: 'uint256',
|
|
689
|
+
},
|
|
690
|
+
],
|
|
691
|
+
name: 'getAddyInfo',
|
|
692
|
+
outputs: [
|
|
693
|
+
{
|
|
694
|
+
components: [
|
|
695
|
+
{
|
|
696
|
+
name: 'addr',
|
|
697
|
+
type: 'address',
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
name: 'version',
|
|
701
|
+
type: 'uint256',
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
name: 'lastModified',
|
|
705
|
+
type: 'uint256',
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
name: 'description',
|
|
709
|
+
type: 'string',
|
|
710
|
+
},
|
|
711
|
+
],
|
|
712
|
+
name: '',
|
|
713
|
+
type: 'tuple',
|
|
714
|
+
},
|
|
715
|
+
],
|
|
716
|
+
stateMutability: 'view',
|
|
717
|
+
type: 'function',
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
inputs: [
|
|
721
|
+
{
|
|
722
|
+
name: '_addyId',
|
|
723
|
+
type: 'uint256',
|
|
724
|
+
},
|
|
725
|
+
],
|
|
726
|
+
name: 'getAddyDescription',
|
|
727
|
+
outputs: [
|
|
728
|
+
{
|
|
729
|
+
name: '',
|
|
730
|
+
type: 'string',
|
|
731
|
+
},
|
|
732
|
+
],
|
|
733
|
+
stateMutability: 'view',
|
|
734
|
+
type: 'function',
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
inputs: [],
|
|
738
|
+
name: 'getNumAddys',
|
|
739
|
+
outputs: [
|
|
740
|
+
{
|
|
741
|
+
name: '',
|
|
742
|
+
type: 'uint256',
|
|
743
|
+
},
|
|
744
|
+
],
|
|
745
|
+
stateMutability: 'view',
|
|
746
|
+
type: 'function',
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
inputs: [],
|
|
750
|
+
name: 'getLastAddyAddr',
|
|
751
|
+
outputs: [
|
|
752
|
+
{
|
|
753
|
+
name: '',
|
|
754
|
+
type: 'address',
|
|
755
|
+
},
|
|
756
|
+
],
|
|
757
|
+
stateMutability: 'view',
|
|
758
|
+
type: 'function',
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
inputs: [],
|
|
762
|
+
name: 'getLastAddyId',
|
|
763
|
+
outputs: [
|
|
764
|
+
{
|
|
765
|
+
name: '',
|
|
766
|
+
type: 'uint256',
|
|
767
|
+
},
|
|
768
|
+
],
|
|
769
|
+
stateMutability: 'view',
|
|
770
|
+
type: 'function',
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
inputs: [
|
|
774
|
+
{
|
|
775
|
+
name: 'arg0',
|
|
776
|
+
type: 'uint256',
|
|
777
|
+
},
|
|
778
|
+
],
|
|
779
|
+
name: 'addyInfo',
|
|
780
|
+
outputs: [
|
|
781
|
+
{
|
|
782
|
+
components: [
|
|
783
|
+
{
|
|
784
|
+
name: 'addr',
|
|
785
|
+
type: 'address',
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
name: 'version',
|
|
789
|
+
type: 'uint256',
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
name: 'lastModified',
|
|
793
|
+
type: 'uint256',
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
name: 'description',
|
|
797
|
+
type: 'string',
|
|
798
|
+
},
|
|
799
|
+
],
|
|
800
|
+
name: '',
|
|
801
|
+
type: 'tuple',
|
|
107
802
|
},
|
|
108
803
|
],
|
|
109
|
-
|
|
110
|
-
type: '
|
|
804
|
+
stateMutability: 'view',
|
|
805
|
+
type: 'function',
|
|
111
806
|
},
|
|
112
807
|
{
|
|
113
808
|
inputs: [
|
|
114
809
|
{
|
|
115
|
-
name: '
|
|
810
|
+
name: 'arg0',
|
|
116
811
|
type: 'address',
|
|
117
812
|
},
|
|
118
813
|
],
|
|
119
|
-
name: '
|
|
814
|
+
name: 'addyToId',
|
|
120
815
|
outputs: [
|
|
121
816
|
{
|
|
122
817
|
name: '',
|
|
123
|
-
type: '
|
|
818
|
+
type: 'uint256',
|
|
124
819
|
},
|
|
125
820
|
],
|
|
126
821
|
stateMutability: 'view',
|
|
127
822
|
type: 'function',
|
|
128
823
|
},
|
|
129
824
|
{
|
|
130
|
-
inputs: [
|
|
131
|
-
|
|
132
|
-
name: '_addy',
|
|
133
|
-
type: 'address',
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
name: '_description',
|
|
137
|
-
type: 'string',
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
name: 'registerNewAddy',
|
|
825
|
+
inputs: [],
|
|
826
|
+
name: 'numAddys',
|
|
141
827
|
outputs: [
|
|
142
828
|
{
|
|
143
829
|
name: '',
|
|
144
830
|
type: 'uint256',
|
|
145
831
|
},
|
|
146
832
|
],
|
|
147
|
-
stateMutability: '
|
|
833
|
+
stateMutability: 'view',
|
|
148
834
|
type: 'function',
|
|
149
835
|
},
|
|
150
836
|
{
|
|
151
837
|
inputs: [
|
|
152
838
|
{
|
|
153
|
-
name: '
|
|
154
|
-
type: 'uint256',
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
name: '_newAddy',
|
|
839
|
+
name: 'arg0',
|
|
158
840
|
type: 'address',
|
|
159
841
|
},
|
|
160
842
|
],
|
|
161
|
-
name: '
|
|
843
|
+
name: 'pendingNewAddy',
|
|
162
844
|
outputs: [
|
|
163
845
|
{
|
|
846
|
+
components: [
|
|
847
|
+
{
|
|
848
|
+
name: 'description',
|
|
849
|
+
type: 'string',
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
name: 'initiatedBlock',
|
|
853
|
+
type: 'uint256',
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
name: 'confirmBlock',
|
|
857
|
+
type: 'uint256',
|
|
858
|
+
},
|
|
859
|
+
],
|
|
164
860
|
name: '',
|
|
165
|
-
type: '
|
|
861
|
+
type: 'tuple',
|
|
166
862
|
},
|
|
167
863
|
],
|
|
168
864
|
stateMutability: 'view',
|
|
@@ -171,70 +867,104 @@ export const abi = [
|
|
|
171
867
|
{
|
|
172
868
|
inputs: [
|
|
173
869
|
{
|
|
174
|
-
name: '
|
|
870
|
+
name: 'arg0',
|
|
175
871
|
type: 'uint256',
|
|
176
872
|
},
|
|
177
|
-
{
|
|
178
|
-
name: '_newAddy',
|
|
179
|
-
type: 'address',
|
|
180
|
-
},
|
|
181
873
|
],
|
|
182
|
-
name: '
|
|
874
|
+
name: 'pendingAddyUpdate',
|
|
183
875
|
outputs: [
|
|
184
876
|
{
|
|
877
|
+
components: [
|
|
878
|
+
{
|
|
879
|
+
name: 'newAddr',
|
|
880
|
+
type: 'address',
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
name: 'initiatedBlock',
|
|
884
|
+
type: 'uint256',
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
name: 'confirmBlock',
|
|
888
|
+
type: 'uint256',
|
|
889
|
+
},
|
|
890
|
+
],
|
|
185
891
|
name: '',
|
|
186
|
-
type: '
|
|
892
|
+
type: 'tuple',
|
|
187
893
|
},
|
|
188
894
|
],
|
|
189
|
-
stateMutability: '
|
|
895
|
+
stateMutability: 'view',
|
|
190
896
|
type: 'function',
|
|
191
897
|
},
|
|
192
898
|
{
|
|
193
899
|
inputs: [
|
|
194
900
|
{
|
|
195
|
-
name: '
|
|
901
|
+
name: 'arg0',
|
|
196
902
|
type: 'uint256',
|
|
197
903
|
},
|
|
198
904
|
],
|
|
199
|
-
name: '
|
|
905
|
+
name: 'pendingAddyDisable',
|
|
200
906
|
outputs: [
|
|
201
907
|
{
|
|
908
|
+
components: [
|
|
909
|
+
{
|
|
910
|
+
name: 'initiatedBlock',
|
|
911
|
+
type: 'uint256',
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
name: 'confirmBlock',
|
|
915
|
+
type: 'uint256',
|
|
916
|
+
},
|
|
917
|
+
],
|
|
202
918
|
name: '',
|
|
203
|
-
type: '
|
|
919
|
+
type: 'tuple',
|
|
204
920
|
},
|
|
205
921
|
],
|
|
206
922
|
stateMutability: 'view',
|
|
207
923
|
type: 'function',
|
|
208
924
|
},
|
|
209
925
|
{
|
|
210
|
-
inputs: [
|
|
926
|
+
inputs: [],
|
|
927
|
+
name: 'addyChangeDelay',
|
|
928
|
+
outputs: [
|
|
211
929
|
{
|
|
212
|
-
name: '
|
|
930
|
+
name: '',
|
|
213
931
|
type: 'uint256',
|
|
214
932
|
},
|
|
215
933
|
],
|
|
216
|
-
|
|
934
|
+
stateMutability: 'view',
|
|
935
|
+
type: 'function',
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
inputs: [],
|
|
939
|
+
name: 'MIN_ADDY_CHANGE_DELAY',
|
|
217
940
|
outputs: [
|
|
218
941
|
{
|
|
219
942
|
name: '',
|
|
220
|
-
type: '
|
|
943
|
+
type: 'uint256',
|
|
221
944
|
},
|
|
222
945
|
],
|
|
223
|
-
stateMutability: '
|
|
946
|
+
stateMutability: 'view',
|
|
224
947
|
type: 'function',
|
|
225
948
|
},
|
|
226
949
|
{
|
|
227
|
-
inputs: [
|
|
950
|
+
inputs: [],
|
|
951
|
+
name: 'MAX_ADDY_CHANGE_DELAY',
|
|
952
|
+
outputs: [
|
|
228
953
|
{
|
|
229
|
-
name: '
|
|
230
|
-
type: '
|
|
954
|
+
name: '',
|
|
955
|
+
type: 'uint256',
|
|
231
956
|
},
|
|
232
957
|
],
|
|
233
|
-
|
|
958
|
+
stateMutability: 'view',
|
|
959
|
+
type: 'function',
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
inputs: [],
|
|
963
|
+
name: 'REGISTRY_STR',
|
|
234
964
|
outputs: [
|
|
235
965
|
{
|
|
236
966
|
name: '',
|
|
237
|
-
type: '
|
|
967
|
+
type: 'string',
|
|
238
968
|
},
|
|
239
969
|
],
|
|
240
970
|
stateMutability: 'view',
|
|
@@ -243,52 +973,56 @@ export const abi = [
|
|
|
243
973
|
{
|
|
244
974
|
inputs: [
|
|
245
975
|
{
|
|
246
|
-
name: '
|
|
247
|
-
type: '
|
|
976
|
+
name: '_addr',
|
|
977
|
+
type: 'address',
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
name: '_description',
|
|
981
|
+
type: 'string',
|
|
248
982
|
},
|
|
249
983
|
],
|
|
250
|
-
name: '
|
|
984
|
+
name: 'registerNewAddy',
|
|
251
985
|
outputs: [
|
|
252
986
|
{
|
|
253
987
|
name: '',
|
|
254
988
|
type: 'bool',
|
|
255
989
|
},
|
|
256
990
|
],
|
|
257
|
-
stateMutability: '
|
|
991
|
+
stateMutability: 'nonpayable',
|
|
258
992
|
type: 'function',
|
|
259
993
|
},
|
|
260
994
|
{
|
|
261
995
|
inputs: [
|
|
262
996
|
{
|
|
263
|
-
name: '
|
|
997
|
+
name: '_addr',
|
|
264
998
|
type: 'address',
|
|
265
999
|
},
|
|
266
1000
|
],
|
|
267
|
-
name: '
|
|
1001
|
+
name: 'confirmNewAddy',
|
|
268
1002
|
outputs: [
|
|
269
1003
|
{
|
|
270
1004
|
name: '',
|
|
271
1005
|
type: 'uint256',
|
|
272
1006
|
},
|
|
273
1007
|
],
|
|
274
|
-
stateMutability: '
|
|
1008
|
+
stateMutability: 'nonpayable',
|
|
275
1009
|
type: 'function',
|
|
276
1010
|
},
|
|
277
1011
|
{
|
|
278
1012
|
inputs: [
|
|
279
1013
|
{
|
|
280
|
-
name: '
|
|
281
|
-
type: '
|
|
1014
|
+
name: '_addr',
|
|
1015
|
+
type: 'address',
|
|
282
1016
|
},
|
|
283
1017
|
],
|
|
284
|
-
name: '
|
|
1018
|
+
name: 'cancelPendingNewAddy',
|
|
285
1019
|
outputs: [
|
|
286
1020
|
{
|
|
287
1021
|
name: '',
|
|
288
|
-
type: '
|
|
1022
|
+
type: 'bool',
|
|
289
1023
|
},
|
|
290
1024
|
],
|
|
291
|
-
stateMutability: '
|
|
1025
|
+
stateMutability: 'nonpayable',
|
|
292
1026
|
type: 'function',
|
|
293
1027
|
},
|
|
294
1028
|
{
|
|
@@ -297,33 +1031,19 @@ export const abi = [
|
|
|
297
1031
|
name: '_addyId',
|
|
298
1032
|
type: 'uint256',
|
|
299
1033
|
},
|
|
1034
|
+
{
|
|
1035
|
+
name: '_newAddr',
|
|
1036
|
+
type: 'address',
|
|
1037
|
+
},
|
|
300
1038
|
],
|
|
301
|
-
name: '
|
|
1039
|
+
name: 'updateAddyAddr',
|
|
302
1040
|
outputs: [
|
|
303
1041
|
{
|
|
304
|
-
components: [
|
|
305
|
-
{
|
|
306
|
-
name: 'addr',
|
|
307
|
-
type: 'address',
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
name: 'version',
|
|
311
|
-
type: 'uint256',
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
name: 'lastModified',
|
|
315
|
-
type: 'uint256',
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
name: 'description',
|
|
319
|
-
type: 'string',
|
|
320
|
-
},
|
|
321
|
-
],
|
|
322
1042
|
name: '',
|
|
323
|
-
type: '
|
|
1043
|
+
type: 'bool',
|
|
324
1044
|
},
|
|
325
1045
|
],
|
|
326
|
-
stateMutability: '
|
|
1046
|
+
stateMutability: 'nonpayable',
|
|
327
1047
|
type: 'function',
|
|
328
1048
|
},
|
|
329
1049
|
{
|
|
@@ -333,77 +1053,75 @@ export const abi = [
|
|
|
333
1053
|
type: 'uint256',
|
|
334
1054
|
},
|
|
335
1055
|
],
|
|
336
|
-
name: '
|
|
1056
|
+
name: 'confirmAddyUpdate',
|
|
337
1057
|
outputs: [
|
|
338
1058
|
{
|
|
339
1059
|
name: '',
|
|
340
|
-
type: '
|
|
1060
|
+
type: 'bool',
|
|
341
1061
|
},
|
|
342
1062
|
],
|
|
343
|
-
stateMutability: '
|
|
1063
|
+
stateMutability: 'nonpayable',
|
|
344
1064
|
type: 'function',
|
|
345
1065
|
},
|
|
346
1066
|
{
|
|
347
|
-
inputs: [
|
|
348
|
-
name: 'getNumAddys',
|
|
349
|
-
outputs: [
|
|
1067
|
+
inputs: [
|
|
350
1068
|
{
|
|
351
|
-
name: '',
|
|
1069
|
+
name: '_addyId',
|
|
352
1070
|
type: 'uint256',
|
|
353
1071
|
},
|
|
354
1072
|
],
|
|
355
|
-
|
|
356
|
-
type: 'function',
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
inputs: [],
|
|
360
|
-
name: 'getLastAddy',
|
|
1073
|
+
name: 'cancelPendingAddyUpdate',
|
|
361
1074
|
outputs: [
|
|
362
1075
|
{
|
|
363
1076
|
name: '',
|
|
364
|
-
type: '
|
|
1077
|
+
type: 'bool',
|
|
365
1078
|
},
|
|
366
1079
|
],
|
|
367
|
-
stateMutability: '
|
|
1080
|
+
stateMutability: 'nonpayable',
|
|
368
1081
|
type: 'function',
|
|
369
1082
|
},
|
|
370
1083
|
{
|
|
371
|
-
inputs: [
|
|
372
|
-
|
|
1084
|
+
inputs: [
|
|
1085
|
+
{
|
|
1086
|
+
name: '_addyId',
|
|
1087
|
+
type: 'uint256',
|
|
1088
|
+
},
|
|
1089
|
+
],
|
|
1090
|
+
name: 'disableAddyAddr',
|
|
373
1091
|
outputs: [
|
|
374
1092
|
{
|
|
375
1093
|
name: '',
|
|
376
|
-
type: '
|
|
1094
|
+
type: 'bool',
|
|
377
1095
|
},
|
|
378
1096
|
],
|
|
379
|
-
stateMutability: '
|
|
1097
|
+
stateMutability: 'nonpayable',
|
|
380
1098
|
type: 'function',
|
|
381
1099
|
},
|
|
382
1100
|
{
|
|
383
1101
|
inputs: [
|
|
384
1102
|
{
|
|
385
|
-
name: '
|
|
386
|
-
type: '
|
|
1103
|
+
name: '_addyId',
|
|
1104
|
+
type: 'uint256',
|
|
387
1105
|
},
|
|
388
1106
|
],
|
|
389
|
-
name: '
|
|
1107
|
+
name: 'confirmAddyDisable',
|
|
390
1108
|
outputs: [
|
|
391
1109
|
{
|
|
392
1110
|
name: '',
|
|
393
1111
|
type: 'bool',
|
|
394
1112
|
},
|
|
395
1113
|
],
|
|
396
|
-
stateMutability: '
|
|
1114
|
+
stateMutability: 'nonpayable',
|
|
397
1115
|
type: 'function',
|
|
398
1116
|
},
|
|
399
1117
|
{
|
|
400
1118
|
inputs: [
|
|
401
1119
|
{
|
|
402
|
-
name: '
|
|
403
|
-
type: '
|
|
1120
|
+
name: '_addyId',
|
|
1121
|
+
type: 'uint256',
|
|
404
1122
|
},
|
|
405
1123
|
],
|
|
406
|
-
name: '
|
|
1124
|
+
name: 'cancelPendingAddyDisable',
|
|
407
1125
|
outputs: [
|
|
408
1126
|
{
|
|
409
1127
|
name: '',
|
|
@@ -416,84 +1134,41 @@ export const abi = [
|
|
|
416
1134
|
{
|
|
417
1135
|
inputs: [
|
|
418
1136
|
{
|
|
419
|
-
name: '
|
|
1137
|
+
name: '_numBlocks',
|
|
420
1138
|
type: 'uint256',
|
|
421
1139
|
},
|
|
422
1140
|
],
|
|
423
|
-
name: '
|
|
1141
|
+
name: 'setAddyChangeDelay',
|
|
424
1142
|
outputs: [
|
|
425
1143
|
{
|
|
426
|
-
components: [
|
|
427
|
-
{
|
|
428
|
-
name: 'addr',
|
|
429
|
-
type: 'address',
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
name: 'version',
|
|
433
|
-
type: 'uint256',
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
name: 'lastModified',
|
|
437
|
-
type: 'uint256',
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
name: 'description',
|
|
441
|
-
type: 'string',
|
|
442
|
-
},
|
|
443
|
-
],
|
|
444
1144
|
name: '',
|
|
445
|
-
type: '
|
|
1145
|
+
type: 'bool',
|
|
446
1146
|
},
|
|
447
1147
|
],
|
|
448
|
-
stateMutability: '
|
|
1148
|
+
stateMutability: 'nonpayable',
|
|
449
1149
|
type: 'function',
|
|
450
1150
|
},
|
|
451
1151
|
{
|
|
452
1152
|
inputs: [
|
|
453
1153
|
{
|
|
454
|
-
name: '
|
|
1154
|
+
name: '_initialGov',
|
|
455
1155
|
type: 'address',
|
|
456
1156
|
},
|
|
457
|
-
],
|
|
458
|
-
name: 'addyToId',
|
|
459
|
-
outputs: [
|
|
460
1157
|
{
|
|
461
|
-
name: '',
|
|
1158
|
+
name: '_minGovChangeDelay',
|
|
462
1159
|
type: 'uint256',
|
|
463
1160
|
},
|
|
464
|
-
],
|
|
465
|
-
stateMutability: 'view',
|
|
466
|
-
type: 'function',
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
inputs: [],
|
|
470
|
-
name: 'numAddys',
|
|
471
|
-
outputs: [
|
|
472
1161
|
{
|
|
473
|
-
name: '',
|
|
1162
|
+
name: '_maxGovChangeDelay',
|
|
474
1163
|
type: 'uint256',
|
|
475
1164
|
},
|
|
476
|
-
],
|
|
477
|
-
stateMutability: 'view',
|
|
478
|
-
type: 'function',
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
inputs: [],
|
|
482
|
-
name: 'governor',
|
|
483
|
-
outputs: [
|
|
484
1165
|
{
|
|
485
|
-
name: '',
|
|
486
|
-
type: '
|
|
1166
|
+
name: '_minRegistryChangeDelay',
|
|
1167
|
+
type: 'uint256',
|
|
487
1168
|
},
|
|
488
|
-
],
|
|
489
|
-
stateMutability: 'view',
|
|
490
|
-
type: 'function',
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
inputs: [
|
|
494
1169
|
{
|
|
495
|
-
name: '
|
|
496
|
-
type: '
|
|
1170
|
+
name: '_maxRegistryChangeDelay',
|
|
1171
|
+
type: 'uint256',
|
|
497
1172
|
},
|
|
498
1173
|
],
|
|
499
1174
|
outputs: [],
|
|
@@ -501,7 +1176,7 @@ export const abi = [
|
|
|
501
1176
|
type: 'constructor',
|
|
502
1177
|
},
|
|
503
1178
|
];
|
|
504
|
-
export const deployAddress = '
|
|
1179
|
+
export const deployAddress = '0xdCCaB9855D7eE558409EBdf358a3A44a8b2415B3';
|
|
505
1180
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
506
1181
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
507
1182
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -530,23 +1205,35 @@ function getRequest(method, args, contractAddressOrOptions) {
|
|
|
530
1205
|
return call;
|
|
531
1206
|
}
|
|
532
1207
|
export const call = {
|
|
1208
|
+
canGovern: (...args) => getRequest('canGovern', args),
|
|
1209
|
+
hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
|
|
1210
|
+
governance: (...args) => getRequest('governance', args),
|
|
1211
|
+
pendingGov: (...args) => getRequest('pendingGov', args),
|
|
1212
|
+
govChangeDelay: (...args) => getRequest('govChangeDelay', args),
|
|
1213
|
+
MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
|
|
1214
|
+
MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
|
|
533
1215
|
isValidNewAddy: (...args) => getRequest('isValidNewAddy', args),
|
|
534
1216
|
isValidAddyUpdate: (...args) => getRequest('isValidAddyUpdate', args),
|
|
535
1217
|
isValidAddyDisable: (...args) => getRequest('isValidAddyDisable', args),
|
|
536
|
-
|
|
1218
|
+
isValidAddyAddr: (...args) => getRequest('isValidAddyAddr', args),
|
|
537
1219
|
isValidAddyId: (...args) => getRequest('isValidAddyId', args),
|
|
538
1220
|
getAddyId: (...args) => getRequest('getAddyId', args),
|
|
539
1221
|
getAddy: (...args) => getRequest('getAddy', args),
|
|
540
1222
|
getAddyInfo: (...args) => getRequest('getAddyInfo', args),
|
|
541
1223
|
getAddyDescription: (...args) => getRequest('getAddyDescription', args),
|
|
542
1224
|
getNumAddys: (...args) => getRequest('getNumAddys', args),
|
|
543
|
-
|
|
1225
|
+
getLastAddyAddr: (...args) => getRequest('getLastAddyAddr', args),
|
|
544
1226
|
getLastAddyId: (...args) => getRequest('getLastAddyId', args),
|
|
545
|
-
isValidGovernor: (...args) => getRequest('isValidGovernor', args),
|
|
546
1227
|
addyInfo: (...args) => getRequest('addyInfo', args),
|
|
547
1228
|
addyToId: (...args) => getRequest('addyToId', args),
|
|
548
1229
|
numAddys: (...args) => getRequest('numAddys', args),
|
|
549
|
-
|
|
1230
|
+
pendingNewAddy: (...args) => getRequest('pendingNewAddy', args),
|
|
1231
|
+
pendingAddyUpdate: (...args) => getRequest('pendingAddyUpdate', args),
|
|
1232
|
+
pendingAddyDisable: (...args) => getRequest('pendingAddyDisable', args),
|
|
1233
|
+
addyChangeDelay: (...args) => getRequest('addyChangeDelay', args),
|
|
1234
|
+
MIN_ADDY_CHANGE_DELAY: (...args) => getRequest('MIN_ADDY_CHANGE_DELAY', args),
|
|
1235
|
+
MAX_ADDY_CHANGE_DELAY: (...args) => getRequest('MAX_ADDY_CHANGE_DELAY', args),
|
|
1236
|
+
REGISTRY_STR: (...args) => getRequest('REGISTRY_STR', args),
|
|
550
1237
|
};
|
|
551
1238
|
function getMutation(functionName) {
|
|
552
1239
|
return {
|
|
@@ -558,35 +1245,67 @@ function getMutation(functionName) {
|
|
|
558
1245
|
};
|
|
559
1246
|
}
|
|
560
1247
|
export const mutation = {
|
|
1248
|
+
changeGovernance: getMutation('changeGovernance'),
|
|
1249
|
+
confirmGovernanceChange: getMutation('confirmGovernanceChange'),
|
|
1250
|
+
cancelGovernanceChange: getMutation('cancelGovernanceChange'),
|
|
1251
|
+
setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
|
|
561
1252
|
registerNewAddy: getMutation('registerNewAddy'),
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
1253
|
+
confirmNewAddy: getMutation('confirmNewAddy'),
|
|
1254
|
+
cancelPendingNewAddy: getMutation('cancelPendingNewAddy'),
|
|
1255
|
+
updateAddyAddr: getMutation('updateAddyAddr'),
|
|
1256
|
+
confirmAddyUpdate: getMutation('confirmAddyUpdate'),
|
|
1257
|
+
cancelPendingAddyUpdate: getMutation('cancelPendingAddyUpdate'),
|
|
1258
|
+
disableAddyAddr: getMutation('disableAddyAddr'),
|
|
1259
|
+
confirmAddyDisable: getMutation('confirmAddyDisable'),
|
|
1260
|
+
cancelPendingAddyDisable: getMutation('cancelPendingAddyDisable'),
|
|
1261
|
+
setAddyChangeDelay: getMutation('setAddyChangeDelay'),
|
|
565
1262
|
};
|
|
566
1263
|
export function toSdk(publicClient, walletClient) {
|
|
567
1264
|
return {
|
|
568
1265
|
// Queries
|
|
1266
|
+
canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
|
|
1267
|
+
hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
|
|
1268
|
+
governance: (...args) => singleQuery(publicClient, call.governance(...args)),
|
|
1269
|
+
pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
|
|
1270
|
+
govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
|
|
1271
|
+
MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
|
|
1272
|
+
MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
|
|
569
1273
|
isValidNewAddy: (...args) => singleQuery(publicClient, call.isValidNewAddy(...args)),
|
|
570
1274
|
isValidAddyUpdate: (...args) => singleQuery(publicClient, call.isValidAddyUpdate(...args)),
|
|
571
1275
|
isValidAddyDisable: (...args) => singleQuery(publicClient, call.isValidAddyDisable(...args)),
|
|
572
|
-
|
|
1276
|
+
isValidAddyAddr: (...args) => singleQuery(publicClient, call.isValidAddyAddr(...args)),
|
|
573
1277
|
isValidAddyId: (...args) => singleQuery(publicClient, call.isValidAddyId(...args)),
|
|
574
1278
|
getAddyId: (...args) => singleQuery(publicClient, call.getAddyId(...args)),
|
|
575
1279
|
getAddy: (...args) => singleQuery(publicClient, call.getAddy(...args)),
|
|
576
1280
|
getAddyInfo: (...args) => singleQuery(publicClient, call.getAddyInfo(...args)),
|
|
577
1281
|
getAddyDescription: (...args) => singleQuery(publicClient, call.getAddyDescription(...args)),
|
|
578
1282
|
getNumAddys: (...args) => singleQuery(publicClient, call.getNumAddys(...args)),
|
|
579
|
-
|
|
1283
|
+
getLastAddyAddr: (...args) => singleQuery(publicClient, call.getLastAddyAddr(...args)),
|
|
580
1284
|
getLastAddyId: (...args) => singleQuery(publicClient, call.getLastAddyId(...args)),
|
|
581
|
-
isValidGovernor: (...args) => singleQuery(publicClient, call.isValidGovernor(...args)),
|
|
582
1285
|
addyInfo: (...args) => singleQuery(publicClient, call.addyInfo(...args)),
|
|
583
1286
|
addyToId: (...args) => singleQuery(publicClient, call.addyToId(...args)),
|
|
584
1287
|
numAddys: (...args) => singleQuery(publicClient, call.numAddys(...args)),
|
|
585
|
-
|
|
1288
|
+
pendingNewAddy: (...args) => singleQuery(publicClient, call.pendingNewAddy(...args)),
|
|
1289
|
+
pendingAddyUpdate: (...args) => singleQuery(publicClient, call.pendingAddyUpdate(...args)),
|
|
1290
|
+
pendingAddyDisable: (...args) => singleQuery(publicClient, call.pendingAddyDisable(...args)),
|
|
1291
|
+
addyChangeDelay: (...args) => singleQuery(publicClient, call.addyChangeDelay(...args)),
|
|
1292
|
+
MIN_ADDY_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_ADDY_CHANGE_DELAY(...args)),
|
|
1293
|
+
MAX_ADDY_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_ADDY_CHANGE_DELAY(...args)),
|
|
1294
|
+
REGISTRY_STR: (...args) => singleQuery(publicClient, call.REGISTRY_STR(...args)),
|
|
586
1295
|
// Mutations
|
|
1296
|
+
changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
|
|
1297
|
+
confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
|
|
1298
|
+
cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
|
|
1299
|
+
setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
|
|
587
1300
|
registerNewAddy: (...args) => mutate(walletClient, mutation.registerNewAddy)(...args),
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
1301
|
+
confirmNewAddy: (...args) => mutate(walletClient, mutation.confirmNewAddy)(...args),
|
|
1302
|
+
cancelPendingNewAddy: (...args) => mutate(walletClient, mutation.cancelPendingNewAddy)(...args),
|
|
1303
|
+
updateAddyAddr: (...args) => mutate(walletClient, mutation.updateAddyAddr)(...args),
|
|
1304
|
+
confirmAddyUpdate: (...args) => mutate(walletClient, mutation.confirmAddyUpdate)(...args),
|
|
1305
|
+
cancelPendingAddyUpdate: (...args) => mutate(walletClient, mutation.cancelPendingAddyUpdate)(...args),
|
|
1306
|
+
disableAddyAddr: (...args) => mutate(walletClient, mutation.disableAddyAddr)(...args),
|
|
1307
|
+
confirmAddyDisable: (...args) => mutate(walletClient, mutation.confirmAddyDisable)(...args),
|
|
1308
|
+
cancelPendingAddyDisable: (...args) => mutate(walletClient, mutation.cancelPendingAddyDisable)(...args),
|
|
1309
|
+
setAddyChangeDelay: (...args) => mutate(walletClient, mutation.setAddyChangeDelay)(...args),
|
|
591
1310
|
};
|
|
592
1311
|
}
|