@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
|
@@ -7,6 +7,318 @@ export const abi = [
|
|
|
7
7
|
{
|
|
8
8
|
anonymous: false,
|
|
9
9
|
inputs: [
|
|
10
|
+
{
|
|
11
|
+
indexed: true,
|
|
12
|
+
name: 'helperAddr',
|
|
13
|
+
type: 'address',
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
name: 'LegoHelperSet',
|
|
17
|
+
type: 'event',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
anonymous: false,
|
|
21
|
+
inputs: [
|
|
22
|
+
{
|
|
23
|
+
indexed: true,
|
|
24
|
+
name: 'prevGov',
|
|
25
|
+
type: 'address',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
indexed: true,
|
|
29
|
+
name: 'newGov',
|
|
30
|
+
type: 'address',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
indexed: false,
|
|
34
|
+
name: 'confirmBlock',
|
|
35
|
+
type: 'uint256',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
name: 'GovChangeInitiated',
|
|
39
|
+
type: 'event',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
anonymous: false,
|
|
43
|
+
inputs: [
|
|
44
|
+
{
|
|
45
|
+
indexed: true,
|
|
46
|
+
name: 'prevGov',
|
|
47
|
+
type: 'address',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
indexed: true,
|
|
51
|
+
name: 'newGov',
|
|
52
|
+
type: 'address',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
indexed: false,
|
|
56
|
+
name: 'initiatedBlock',
|
|
57
|
+
type: 'uint256',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
indexed: false,
|
|
61
|
+
name: 'confirmBlock',
|
|
62
|
+
type: 'uint256',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
name: 'GovChangeConfirmed',
|
|
66
|
+
type: 'event',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
anonymous: false,
|
|
70
|
+
inputs: [
|
|
71
|
+
{
|
|
72
|
+
indexed: true,
|
|
73
|
+
name: 'cancelledGov',
|
|
74
|
+
type: 'address',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
indexed: false,
|
|
78
|
+
name: 'initiatedBlock',
|
|
79
|
+
type: 'uint256',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
indexed: false,
|
|
83
|
+
name: 'confirmBlock',
|
|
84
|
+
type: 'uint256',
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: 'GovChangeCancelled',
|
|
88
|
+
type: 'event',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
anonymous: false,
|
|
92
|
+
inputs: [
|
|
93
|
+
{
|
|
94
|
+
indexed: false,
|
|
95
|
+
name: 'delayBlocks',
|
|
96
|
+
type: 'uint256',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
name: 'GovChangeDelaySet',
|
|
100
|
+
type: 'event',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
anonymous: false,
|
|
104
|
+
inputs: [
|
|
105
|
+
{
|
|
106
|
+
indexed: true,
|
|
107
|
+
name: 'addr',
|
|
108
|
+
type: 'address',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
indexed: false,
|
|
112
|
+
name: 'description',
|
|
113
|
+
type: 'string',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
indexed: false,
|
|
117
|
+
name: 'confirmBlock',
|
|
118
|
+
type: 'uint256',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
indexed: false,
|
|
122
|
+
name: 'registry',
|
|
123
|
+
type: 'string',
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
name: 'NewAddyPending',
|
|
127
|
+
type: 'event',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
anonymous: false,
|
|
131
|
+
inputs: [
|
|
132
|
+
{
|
|
133
|
+
indexed: true,
|
|
134
|
+
name: 'addr',
|
|
135
|
+
type: 'address',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
indexed: false,
|
|
139
|
+
name: 'addyId',
|
|
140
|
+
type: 'uint256',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
indexed: false,
|
|
144
|
+
name: 'description',
|
|
145
|
+
type: 'string',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
indexed: false,
|
|
149
|
+
name: 'registry',
|
|
150
|
+
type: 'string',
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
name: 'NewAddyConfirmed',
|
|
154
|
+
type: 'event',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
anonymous: false,
|
|
158
|
+
inputs: [
|
|
159
|
+
{
|
|
160
|
+
indexed: false,
|
|
161
|
+
name: 'description',
|
|
162
|
+
type: 'string',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
indexed: true,
|
|
166
|
+
name: 'addr',
|
|
167
|
+
type: 'address',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
indexed: false,
|
|
171
|
+
name: 'initiatedBlock',
|
|
172
|
+
type: 'uint256',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
indexed: false,
|
|
176
|
+
name: 'confirmBlock',
|
|
177
|
+
type: 'uint256',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
indexed: false,
|
|
181
|
+
name: 'registry',
|
|
182
|
+
type: 'string',
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
name: 'NewPendingAddyCancelled',
|
|
186
|
+
type: 'event',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
anonymous: false,
|
|
190
|
+
inputs: [
|
|
191
|
+
{
|
|
192
|
+
indexed: false,
|
|
193
|
+
name: 'addyId',
|
|
194
|
+
type: 'uint256',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
indexed: false,
|
|
198
|
+
name: 'description',
|
|
199
|
+
type: 'string',
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
indexed: true,
|
|
203
|
+
name: 'newAddr',
|
|
204
|
+
type: 'address',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
indexed: true,
|
|
208
|
+
name: 'prevAddr',
|
|
209
|
+
type: 'address',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
indexed: false,
|
|
213
|
+
name: 'version',
|
|
214
|
+
type: 'uint256',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
indexed: false,
|
|
218
|
+
name: 'confirmBlock',
|
|
219
|
+
type: 'uint256',
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
indexed: false,
|
|
223
|
+
name: 'registry',
|
|
224
|
+
type: 'string',
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
name: 'AddyUpdatePending',
|
|
228
|
+
type: 'event',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
anonymous: false,
|
|
232
|
+
inputs: [
|
|
233
|
+
{
|
|
234
|
+
indexed: false,
|
|
235
|
+
name: 'addyId',
|
|
236
|
+
type: 'uint256',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
indexed: false,
|
|
240
|
+
name: 'description',
|
|
241
|
+
type: 'string',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
indexed: true,
|
|
245
|
+
name: 'newAddr',
|
|
246
|
+
type: 'address',
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
indexed: true,
|
|
250
|
+
name: 'prevAddr',
|
|
251
|
+
type: 'address',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
indexed: false,
|
|
255
|
+
name: 'version',
|
|
256
|
+
type: 'uint256',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
indexed: false,
|
|
260
|
+
name: 'registry',
|
|
261
|
+
type: 'string',
|
|
262
|
+
},
|
|
263
|
+
],
|
|
264
|
+
name: 'AddyUpdateConfirmed',
|
|
265
|
+
type: 'event',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
anonymous: false,
|
|
269
|
+
inputs: [
|
|
270
|
+
{
|
|
271
|
+
indexed: false,
|
|
272
|
+
name: 'addyId',
|
|
273
|
+
type: 'uint256',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
indexed: false,
|
|
277
|
+
name: 'description',
|
|
278
|
+
type: 'string',
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
indexed: true,
|
|
282
|
+
name: 'newAddr',
|
|
283
|
+
type: 'address',
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
indexed: true,
|
|
287
|
+
name: 'prevAddr',
|
|
288
|
+
type: 'address',
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
indexed: false,
|
|
292
|
+
name: 'initiatedBlock',
|
|
293
|
+
type: 'uint256',
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
indexed: false,
|
|
297
|
+
name: 'confirmBlock',
|
|
298
|
+
type: 'uint256',
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
indexed: false,
|
|
302
|
+
name: 'registry',
|
|
303
|
+
type: 'string',
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
name: 'AddyUpdateCancelled',
|
|
307
|
+
type: 'event',
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
anonymous: false,
|
|
311
|
+
inputs: [
|
|
312
|
+
{
|
|
313
|
+
indexed: false,
|
|
314
|
+
name: 'addyId',
|
|
315
|
+
type: 'uint256',
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
indexed: false,
|
|
319
|
+
name: 'description',
|
|
320
|
+
type: 'string',
|
|
321
|
+
},
|
|
10
322
|
{
|
|
11
323
|
indexed: true,
|
|
12
324
|
name: 'addr',
|
|
@@ -14,7 +326,29 @@ export const abi = [
|
|
|
14
326
|
},
|
|
15
327
|
{
|
|
16
328
|
indexed: false,
|
|
17
|
-
name: '
|
|
329
|
+
name: 'version',
|
|
330
|
+
type: 'uint256',
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
indexed: false,
|
|
334
|
+
name: 'confirmBlock',
|
|
335
|
+
type: 'uint256',
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
indexed: false,
|
|
339
|
+
name: 'registry',
|
|
340
|
+
type: 'string',
|
|
341
|
+
},
|
|
342
|
+
],
|
|
343
|
+
name: 'AddyDisablePending',
|
|
344
|
+
type: 'event',
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
anonymous: false,
|
|
348
|
+
inputs: [
|
|
349
|
+
{
|
|
350
|
+
indexed: false,
|
|
351
|
+
name: 'addyId',
|
|
18
352
|
type: 'uint256',
|
|
19
353
|
},
|
|
20
354
|
{
|
|
@@ -23,132 +357,307 @@ export const abi = [
|
|
|
23
357
|
type: 'string',
|
|
24
358
|
},
|
|
25
359
|
{
|
|
26
|
-
indexed:
|
|
27
|
-
name: '
|
|
360
|
+
indexed: true,
|
|
361
|
+
name: 'addr',
|
|
362
|
+
type: 'address',
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
indexed: false,
|
|
366
|
+
name: 'version',
|
|
367
|
+
type: 'uint256',
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
indexed: false,
|
|
371
|
+
name: 'registry',
|
|
372
|
+
type: 'string',
|
|
373
|
+
},
|
|
374
|
+
],
|
|
375
|
+
name: 'AddyDisableConfirmed',
|
|
376
|
+
type: 'event',
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
anonymous: false,
|
|
380
|
+
inputs: [
|
|
381
|
+
{
|
|
382
|
+
indexed: false,
|
|
383
|
+
name: 'addyId',
|
|
384
|
+
type: 'uint256',
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
indexed: false,
|
|
388
|
+
name: 'description',
|
|
389
|
+
type: 'string',
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
indexed: true,
|
|
393
|
+
name: 'addr',
|
|
394
|
+
type: 'address',
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
indexed: false,
|
|
398
|
+
name: 'initiatedBlock',
|
|
399
|
+
type: 'uint256',
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
indexed: false,
|
|
403
|
+
name: 'confirmBlock',
|
|
404
|
+
type: 'uint256',
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
indexed: false,
|
|
408
|
+
name: 'registry',
|
|
409
|
+
type: 'string',
|
|
410
|
+
},
|
|
411
|
+
],
|
|
412
|
+
name: 'AddyDisableCancelled',
|
|
413
|
+
type: 'event',
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
anonymous: false,
|
|
417
|
+
inputs: [
|
|
418
|
+
{
|
|
419
|
+
indexed: false,
|
|
420
|
+
name: 'delayBlocks',
|
|
421
|
+
type: 'uint256',
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
indexed: false,
|
|
425
|
+
name: 'registry',
|
|
426
|
+
type: 'string',
|
|
427
|
+
},
|
|
428
|
+
],
|
|
429
|
+
name: 'AddyChangeDelaySet',
|
|
430
|
+
type: 'event',
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
inputs: [
|
|
434
|
+
{
|
|
435
|
+
name: '_address',
|
|
436
|
+
type: 'address',
|
|
437
|
+
},
|
|
438
|
+
],
|
|
439
|
+
name: 'canGovern',
|
|
440
|
+
outputs: [
|
|
441
|
+
{
|
|
442
|
+
name: '',
|
|
443
|
+
type: 'bool',
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
stateMutability: 'view',
|
|
447
|
+
type: 'function',
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
inputs: [],
|
|
451
|
+
name: 'hasPendingGovChange',
|
|
452
|
+
outputs: [
|
|
453
|
+
{
|
|
454
|
+
name: '',
|
|
455
|
+
type: 'bool',
|
|
456
|
+
},
|
|
457
|
+
],
|
|
458
|
+
stateMutability: 'view',
|
|
459
|
+
type: 'function',
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
inputs: [
|
|
463
|
+
{
|
|
464
|
+
name: '_newGov',
|
|
465
|
+
type: 'address',
|
|
466
|
+
},
|
|
467
|
+
],
|
|
468
|
+
name: 'changeGovernance',
|
|
469
|
+
outputs: [],
|
|
470
|
+
stateMutability: 'nonpayable',
|
|
471
|
+
type: 'function',
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
inputs: [],
|
|
475
|
+
name: 'confirmGovernanceChange',
|
|
476
|
+
outputs: [],
|
|
477
|
+
stateMutability: 'nonpayable',
|
|
478
|
+
type: 'function',
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
inputs: [],
|
|
482
|
+
name: 'cancelGovernanceChange',
|
|
483
|
+
outputs: [],
|
|
484
|
+
stateMutability: 'nonpayable',
|
|
485
|
+
type: 'function',
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
inputs: [
|
|
489
|
+
{
|
|
490
|
+
name: '_numBlocks',
|
|
491
|
+
type: 'uint256',
|
|
492
|
+
},
|
|
493
|
+
],
|
|
494
|
+
name: 'setGovernanceChangeDelay',
|
|
495
|
+
outputs: [],
|
|
496
|
+
stateMutability: 'nonpayable',
|
|
497
|
+
type: 'function',
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
inputs: [],
|
|
501
|
+
name: 'governance',
|
|
502
|
+
outputs: [
|
|
503
|
+
{
|
|
504
|
+
name: '',
|
|
505
|
+
type: 'address',
|
|
506
|
+
},
|
|
507
|
+
],
|
|
508
|
+
stateMutability: 'view',
|
|
509
|
+
type: 'function',
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
inputs: [],
|
|
513
|
+
name: 'pendingGov',
|
|
514
|
+
outputs: [
|
|
515
|
+
{
|
|
516
|
+
components: [
|
|
517
|
+
{
|
|
518
|
+
name: 'newGov',
|
|
519
|
+
type: 'address',
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
name: 'initiatedBlock',
|
|
523
|
+
type: 'uint256',
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
name: 'confirmBlock',
|
|
527
|
+
type: 'uint256',
|
|
528
|
+
},
|
|
529
|
+
],
|
|
530
|
+
name: '',
|
|
531
|
+
type: 'tuple',
|
|
532
|
+
},
|
|
533
|
+
],
|
|
534
|
+
stateMutability: 'view',
|
|
535
|
+
type: 'function',
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
inputs: [],
|
|
539
|
+
name: 'govChangeDelay',
|
|
540
|
+
outputs: [
|
|
541
|
+
{
|
|
542
|
+
name: '',
|
|
28
543
|
type: 'uint256',
|
|
29
544
|
},
|
|
30
545
|
],
|
|
31
|
-
|
|
32
|
-
type: '
|
|
546
|
+
stateMutability: 'view',
|
|
547
|
+
type: 'function',
|
|
33
548
|
},
|
|
34
549
|
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
indexed: true,
|
|
39
|
-
name: 'newAddr',
|
|
40
|
-
type: 'address',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
indexed: true,
|
|
44
|
-
name: 'prevAddr',
|
|
45
|
-
type: 'address',
|
|
46
|
-
},
|
|
550
|
+
inputs: [],
|
|
551
|
+
name: 'MIN_GOV_CHANGE_DELAY',
|
|
552
|
+
outputs: [
|
|
47
553
|
{
|
|
48
|
-
|
|
49
|
-
name: 'legoId',
|
|
554
|
+
name: '',
|
|
50
555
|
type: 'uint256',
|
|
51
556
|
},
|
|
557
|
+
],
|
|
558
|
+
stateMutability: 'view',
|
|
559
|
+
type: 'function',
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
inputs: [],
|
|
563
|
+
name: 'MAX_GOV_CHANGE_DELAY',
|
|
564
|
+
outputs: [
|
|
52
565
|
{
|
|
53
|
-
|
|
54
|
-
name: 'version',
|
|
566
|
+
name: '',
|
|
55
567
|
type: 'uint256',
|
|
56
568
|
},
|
|
569
|
+
],
|
|
570
|
+
stateMutability: 'view',
|
|
571
|
+
type: 'function',
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
inputs: [
|
|
57
575
|
{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
type: 'string',
|
|
576
|
+
name: '_addr',
|
|
577
|
+
type: 'address',
|
|
61
578
|
},
|
|
579
|
+
],
|
|
580
|
+
name: 'isValidNewLegoAddr',
|
|
581
|
+
outputs: [
|
|
62
582
|
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
type: 'uint256',
|
|
583
|
+
name: '',
|
|
584
|
+
type: 'bool',
|
|
66
585
|
},
|
|
67
586
|
],
|
|
68
|
-
|
|
69
|
-
type: '
|
|
587
|
+
stateMutability: 'view',
|
|
588
|
+
type: 'function',
|
|
70
589
|
},
|
|
71
590
|
{
|
|
72
|
-
anonymous: false,
|
|
73
591
|
inputs: [
|
|
74
592
|
{
|
|
75
|
-
|
|
76
|
-
name: 'prevAddr',
|
|
593
|
+
name: '_addr',
|
|
77
594
|
type: 'address',
|
|
78
595
|
},
|
|
79
596
|
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
type: 'uint256',
|
|
597
|
+
name: '_description',
|
|
598
|
+
type: 'string',
|
|
83
599
|
},
|
|
84
600
|
{
|
|
85
|
-
|
|
86
|
-
name: 'version',
|
|
601
|
+
name: '_legoType',
|
|
87
602
|
type: 'uint256',
|
|
88
603
|
},
|
|
604
|
+
],
|
|
605
|
+
name: 'registerNewLego',
|
|
606
|
+
outputs: [
|
|
89
607
|
{
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
type: 'string',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
indexed: false,
|
|
96
|
-
name: 'legoType',
|
|
97
|
-
type: 'uint256',
|
|
608
|
+
name: '',
|
|
609
|
+
type: 'bool',
|
|
98
610
|
},
|
|
99
611
|
],
|
|
100
|
-
|
|
101
|
-
type: '
|
|
612
|
+
stateMutability: 'nonpayable',
|
|
613
|
+
type: 'function',
|
|
102
614
|
},
|
|
103
615
|
{
|
|
104
|
-
anonymous: false,
|
|
105
616
|
inputs: [
|
|
106
617
|
{
|
|
107
|
-
|
|
108
|
-
name: 'helperAddr',
|
|
618
|
+
name: '_addr',
|
|
109
619
|
type: 'address',
|
|
110
620
|
},
|
|
111
621
|
],
|
|
112
|
-
name: '
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
anonymous: false,
|
|
117
|
-
inputs: [
|
|
622
|
+
name: 'confirmNewLegoRegistration',
|
|
623
|
+
outputs: [
|
|
118
624
|
{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
type: 'address',
|
|
625
|
+
name: '',
|
|
626
|
+
type: 'uint256',
|
|
122
627
|
},
|
|
123
628
|
],
|
|
124
|
-
|
|
125
|
-
type: '
|
|
629
|
+
stateMutability: 'nonpayable',
|
|
630
|
+
type: 'function',
|
|
126
631
|
},
|
|
127
632
|
{
|
|
128
633
|
inputs: [
|
|
129
634
|
{
|
|
130
|
-
name: '
|
|
635
|
+
name: '_addr',
|
|
131
636
|
type: 'address',
|
|
132
637
|
},
|
|
133
638
|
],
|
|
134
|
-
name: '
|
|
639
|
+
name: 'cancelPendingNewLego',
|
|
135
640
|
outputs: [
|
|
136
641
|
{
|
|
137
642
|
name: '',
|
|
138
643
|
type: 'bool',
|
|
139
644
|
},
|
|
140
645
|
],
|
|
141
|
-
stateMutability: '
|
|
646
|
+
stateMutability: 'nonpayable',
|
|
142
647
|
type: 'function',
|
|
143
648
|
},
|
|
144
649
|
{
|
|
145
650
|
inputs: [
|
|
146
651
|
{
|
|
147
|
-
name: '
|
|
652
|
+
name: '_legoId',
|
|
653
|
+
type: 'uint256',
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
name: '_newAddr',
|
|
148
657
|
type: 'address',
|
|
149
658
|
},
|
|
150
659
|
],
|
|
151
|
-
name: '
|
|
660
|
+
name: 'isValidLegoUpdate',
|
|
152
661
|
outputs: [
|
|
153
662
|
{
|
|
154
663
|
name: '',
|
|
@@ -161,11 +670,15 @@ export const abi = [
|
|
|
161
670
|
{
|
|
162
671
|
inputs: [
|
|
163
672
|
{
|
|
164
|
-
name: '
|
|
673
|
+
name: '_legoId',
|
|
674
|
+
type: 'uint256',
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
name: '_newAddr',
|
|
165
678
|
type: 'address',
|
|
166
679
|
},
|
|
167
680
|
],
|
|
168
|
-
name: '
|
|
681
|
+
name: 'updateLegoAddr',
|
|
169
682
|
outputs: [
|
|
170
683
|
{
|
|
171
684
|
name: '',
|
|
@@ -176,54 +689,68 @@ export const abi = [
|
|
|
176
689
|
type: 'function',
|
|
177
690
|
},
|
|
178
691
|
{
|
|
179
|
-
inputs: [
|
|
180
|
-
|
|
692
|
+
inputs: [
|
|
693
|
+
{
|
|
694
|
+
name: '_legoId',
|
|
695
|
+
type: 'uint256',
|
|
696
|
+
},
|
|
697
|
+
],
|
|
698
|
+
name: 'confirmLegoUpdate',
|
|
181
699
|
outputs: [
|
|
182
700
|
{
|
|
183
701
|
name: '',
|
|
184
|
-
type: '
|
|
702
|
+
type: 'bool',
|
|
185
703
|
},
|
|
186
704
|
],
|
|
187
|
-
stateMutability: '
|
|
705
|
+
stateMutability: 'nonpayable',
|
|
188
706
|
type: 'function',
|
|
189
707
|
},
|
|
190
708
|
{
|
|
191
709
|
inputs: [
|
|
192
710
|
{
|
|
193
|
-
name: '
|
|
194
|
-
type: '
|
|
711
|
+
name: '_legoId',
|
|
712
|
+
type: 'uint256',
|
|
195
713
|
},
|
|
196
714
|
],
|
|
197
|
-
name: '
|
|
715
|
+
name: 'cancelPendingLegoUpdate',
|
|
198
716
|
outputs: [
|
|
199
717
|
{
|
|
200
718
|
name: '',
|
|
201
719
|
type: 'bool',
|
|
202
720
|
},
|
|
203
721
|
],
|
|
204
|
-
stateMutability: '
|
|
722
|
+
stateMutability: 'nonpayable',
|
|
205
723
|
type: 'function',
|
|
206
724
|
},
|
|
207
725
|
{
|
|
208
726
|
inputs: [
|
|
209
727
|
{
|
|
210
|
-
name: '
|
|
211
|
-
type: '
|
|
728
|
+
name: '_legoId',
|
|
729
|
+
type: 'uint256',
|
|
212
730
|
},
|
|
731
|
+
],
|
|
732
|
+
name: 'isValidLegoDisable',
|
|
733
|
+
outputs: [
|
|
213
734
|
{
|
|
214
|
-
name: '
|
|
215
|
-
type: '
|
|
735
|
+
name: '',
|
|
736
|
+
type: 'bool',
|
|
216
737
|
},
|
|
738
|
+
],
|
|
739
|
+
stateMutability: 'view',
|
|
740
|
+
type: 'function',
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
inputs: [
|
|
217
744
|
{
|
|
218
|
-
name: '
|
|
745
|
+
name: '_legoId',
|
|
219
746
|
type: 'uint256',
|
|
220
747
|
},
|
|
221
748
|
],
|
|
222
|
-
name: '
|
|
749
|
+
name: 'disableLegoAddr',
|
|
223
750
|
outputs: [
|
|
224
751
|
{
|
|
225
752
|
name: '',
|
|
226
|
-
type: '
|
|
753
|
+
type: 'bool',
|
|
227
754
|
},
|
|
228
755
|
],
|
|
229
756
|
stateMutability: 'nonpayable',
|
|
@@ -235,19 +762,15 @@ export const abi = [
|
|
|
235
762
|
name: '_legoId',
|
|
236
763
|
type: 'uint256',
|
|
237
764
|
},
|
|
238
|
-
{
|
|
239
|
-
name: '_newAddr',
|
|
240
|
-
type: 'address',
|
|
241
|
-
},
|
|
242
765
|
],
|
|
243
|
-
name: '
|
|
766
|
+
name: 'confirmLegoDisable',
|
|
244
767
|
outputs: [
|
|
245
768
|
{
|
|
246
769
|
name: '',
|
|
247
770
|
type: 'bool',
|
|
248
771
|
},
|
|
249
772
|
],
|
|
250
|
-
stateMutability: '
|
|
773
|
+
stateMutability: 'nonpayable',
|
|
251
774
|
type: 'function',
|
|
252
775
|
},
|
|
253
776
|
{
|
|
@@ -256,12 +779,8 @@ export const abi = [
|
|
|
256
779
|
name: '_legoId',
|
|
257
780
|
type: 'uint256',
|
|
258
781
|
},
|
|
259
|
-
{
|
|
260
|
-
name: '_newAddr',
|
|
261
|
-
type: 'address',
|
|
262
|
-
},
|
|
263
782
|
],
|
|
264
|
-
name: '
|
|
783
|
+
name: 'cancelPendingLegoDisable',
|
|
265
784
|
outputs: [
|
|
266
785
|
{
|
|
267
786
|
name: '',
|
|
@@ -274,35 +793,42 @@ export const abi = [
|
|
|
274
793
|
{
|
|
275
794
|
inputs: [
|
|
276
795
|
{
|
|
277
|
-
name: '
|
|
796
|
+
name: '_numBlocks',
|
|
278
797
|
type: 'uint256',
|
|
279
798
|
},
|
|
280
799
|
],
|
|
281
|
-
name: '
|
|
800
|
+
name: 'setLegoChangeDelay',
|
|
282
801
|
outputs: [
|
|
283
802
|
{
|
|
284
803
|
name: '',
|
|
285
804
|
type: 'bool',
|
|
286
805
|
},
|
|
287
806
|
],
|
|
288
|
-
stateMutability: '
|
|
807
|
+
stateMutability: 'nonpayable',
|
|
289
808
|
type: 'function',
|
|
290
809
|
},
|
|
291
810
|
{
|
|
292
|
-
inputs: [
|
|
811
|
+
inputs: [],
|
|
812
|
+
name: 'legoChangeDelay',
|
|
813
|
+
outputs: [
|
|
293
814
|
{
|
|
294
|
-
name: '
|
|
815
|
+
name: '',
|
|
295
816
|
type: 'uint256',
|
|
296
817
|
},
|
|
297
818
|
],
|
|
298
|
-
|
|
819
|
+
stateMutability: 'view',
|
|
820
|
+
type: 'function',
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
inputs: [],
|
|
824
|
+
name: 'numLegosRaw',
|
|
299
825
|
outputs: [
|
|
300
826
|
{
|
|
301
827
|
name: '',
|
|
302
|
-
type: '
|
|
828
|
+
type: 'uint256',
|
|
303
829
|
},
|
|
304
830
|
],
|
|
305
|
-
stateMutability: '
|
|
831
|
+
stateMutability: 'view',
|
|
306
832
|
type: 'function',
|
|
307
833
|
},
|
|
308
834
|
{
|
|
@@ -400,10 +926,6 @@ export const abi = [
|
|
|
400
926
|
name: 'description',
|
|
401
927
|
type: 'string',
|
|
402
928
|
},
|
|
403
|
-
{
|
|
404
|
-
name: 'legoType',
|
|
405
|
-
type: 'uint256',
|
|
406
|
-
},
|
|
407
929
|
],
|
|
408
930
|
name: '',
|
|
409
931
|
type: 'tuple',
|
|
@@ -537,52 +1059,18 @@ export const abi = [
|
|
|
537
1059
|
stateMutability: 'nonpayable',
|
|
538
1060
|
type: 'function',
|
|
539
1061
|
},
|
|
540
|
-
{
|
|
541
|
-
inputs: [],
|
|
542
|
-
name: 'legoHelper',
|
|
543
|
-
outputs: [
|
|
544
|
-
{
|
|
545
|
-
name: '',
|
|
546
|
-
type: 'address',
|
|
547
|
-
},
|
|
548
|
-
],
|
|
549
|
-
stateMutability: 'view',
|
|
550
|
-
type: 'function',
|
|
551
|
-
},
|
|
552
1062
|
{
|
|
553
1063
|
inputs: [
|
|
554
1064
|
{
|
|
555
1065
|
name: 'arg0',
|
|
556
|
-
type: '
|
|
1066
|
+
type: 'address',
|
|
557
1067
|
},
|
|
558
1068
|
],
|
|
559
|
-
name: '
|
|
1069
|
+
name: 'pendingLegoType',
|
|
560
1070
|
outputs: [
|
|
561
1071
|
{
|
|
562
|
-
components: [
|
|
563
|
-
{
|
|
564
|
-
name: 'addr',
|
|
565
|
-
type: 'address',
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
name: 'version',
|
|
569
|
-
type: 'uint256',
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
name: 'lastModified',
|
|
573
|
-
type: 'uint256',
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
name: 'description',
|
|
577
|
-
type: 'string',
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
name: 'legoType',
|
|
581
|
-
type: 'uint256',
|
|
582
|
-
},
|
|
583
|
-
],
|
|
584
1072
|
name: '',
|
|
585
|
-
type: '
|
|
1073
|
+
type: 'uint256',
|
|
586
1074
|
},
|
|
587
1075
|
],
|
|
588
1076
|
stateMutability: 'view',
|
|
@@ -592,22 +1080,10 @@ export const abi = [
|
|
|
592
1080
|
inputs: [
|
|
593
1081
|
{
|
|
594
1082
|
name: 'arg0',
|
|
595
|
-
type: 'address',
|
|
596
|
-
},
|
|
597
|
-
],
|
|
598
|
-
name: 'legoAddrToId',
|
|
599
|
-
outputs: [
|
|
600
|
-
{
|
|
601
|
-
name: '',
|
|
602
1083
|
type: 'uint256',
|
|
603
1084
|
},
|
|
604
1085
|
],
|
|
605
|
-
|
|
606
|
-
type: 'function',
|
|
607
|
-
},
|
|
608
|
-
{
|
|
609
|
-
inputs: [],
|
|
610
|
-
name: 'numLegos',
|
|
1086
|
+
name: 'legoIdToType',
|
|
611
1087
|
outputs: [
|
|
612
1088
|
{
|
|
613
1089
|
name: '',
|
|
@@ -619,7 +1095,7 @@ export const abi = [
|
|
|
619
1095
|
},
|
|
620
1096
|
{
|
|
621
1097
|
inputs: [],
|
|
622
|
-
name: '
|
|
1098
|
+
name: 'legoHelper',
|
|
623
1099
|
outputs: [
|
|
624
1100
|
{
|
|
625
1101
|
name: '',
|
|
@@ -635,13 +1111,21 @@ export const abi = [
|
|
|
635
1111
|
name: '_addyRegistry',
|
|
636
1112
|
type: 'address',
|
|
637
1113
|
},
|
|
1114
|
+
{
|
|
1115
|
+
name: '_minLegoChangeDelay',
|
|
1116
|
+
type: 'uint256',
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
name: '_maxLegoChangeDelay',
|
|
1120
|
+
type: 'uint256',
|
|
1121
|
+
},
|
|
638
1122
|
],
|
|
639
1123
|
outputs: [],
|
|
640
1124
|
stateMutability: 'nonpayable',
|
|
641
1125
|
type: 'constructor',
|
|
642
1126
|
},
|
|
643
1127
|
];
|
|
644
|
-
export const deployAddress = '
|
|
1128
|
+
export const deployAddress = '0x5dC5A7304a1f2feeadF491b8F62BD41687CB330b';
|
|
645
1129
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
646
1130
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
647
1131
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -670,12 +1154,18 @@ function getRequest(method, args, contractAddressOrOptions) {
|
|
|
670
1154
|
return call;
|
|
671
1155
|
}
|
|
672
1156
|
export const call = {
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
1157
|
+
canGovern: (...args) => getRequest('canGovern', args),
|
|
1158
|
+
hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
|
|
1159
|
+
governance: (...args) => getRequest('governance', args),
|
|
1160
|
+
pendingGov: (...args) => getRequest('pendingGov', args),
|
|
1161
|
+
govChangeDelay: (...args) => getRequest('govChangeDelay', args),
|
|
1162
|
+
MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
|
|
1163
|
+
MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
|
|
676
1164
|
isValidNewLegoAddr: (...args) => getRequest('isValidNewLegoAddr', args),
|
|
677
1165
|
isValidLegoUpdate: (...args) => getRequest('isValidLegoUpdate', args),
|
|
678
1166
|
isValidLegoDisable: (...args) => getRequest('isValidLegoDisable', args),
|
|
1167
|
+
legoChangeDelay: (...args) => getRequest('legoChangeDelay', args),
|
|
1168
|
+
numLegosRaw: (...args) => getRequest('numLegosRaw', args),
|
|
679
1169
|
isValidLegoAddr: (...args) => getRequest('isValidLegoAddr', args),
|
|
680
1170
|
isValidLegoId: (...args) => getRequest('isValidLegoId', args),
|
|
681
1171
|
getLegoId: (...args) => getRequest('getLegoId', args),
|
|
@@ -688,11 +1178,9 @@ export const call = {
|
|
|
688
1178
|
getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
|
|
689
1179
|
getUnderlyingForUser: (...args) => getRequest('getUnderlyingForUser', args),
|
|
690
1180
|
isValidLegoHelper: (...args) => getRequest('isValidLegoHelper', args),
|
|
1181
|
+
pendingLegoType: (...args) => getRequest('pendingLegoType', args),
|
|
1182
|
+
legoIdToType: (...args) => getRequest('legoIdToType', args),
|
|
691
1183
|
legoHelper: (...args) => getRequest('legoHelper', args),
|
|
692
|
-
legoInfo: (...args) => getRequest('legoInfo', args),
|
|
693
|
-
legoAddrToId: (...args) => getRequest('legoAddrToId', args),
|
|
694
|
-
numLegos: (...args) => getRequest('numLegos', args),
|
|
695
|
-
ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
|
|
696
1184
|
};
|
|
697
1185
|
function getMutation(functionName) {
|
|
698
1186
|
return {
|
|
@@ -704,21 +1192,37 @@ function getMutation(functionName) {
|
|
|
704
1192
|
};
|
|
705
1193
|
}
|
|
706
1194
|
export const mutation = {
|
|
707
|
-
|
|
1195
|
+
changeGovernance: getMutation('changeGovernance'),
|
|
1196
|
+
confirmGovernanceChange: getMutation('confirmGovernanceChange'),
|
|
1197
|
+
cancelGovernanceChange: getMutation('cancelGovernanceChange'),
|
|
1198
|
+
setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
|
|
708
1199
|
registerNewLego: getMutation('registerNewLego'),
|
|
1200
|
+
confirmNewLegoRegistration: getMutation('confirmNewLegoRegistration'),
|
|
1201
|
+
cancelPendingNewLego: getMutation('cancelPendingNewLego'),
|
|
709
1202
|
updateLegoAddr: getMutation('updateLegoAddr'),
|
|
1203
|
+
confirmLegoUpdate: getMutation('confirmLegoUpdate'),
|
|
1204
|
+
cancelPendingLegoUpdate: getMutation('cancelPendingLegoUpdate'),
|
|
710
1205
|
disableLegoAddr: getMutation('disableLegoAddr'),
|
|
1206
|
+
confirmLegoDisable: getMutation('confirmLegoDisable'),
|
|
1207
|
+
cancelPendingLegoDisable: getMutation('cancelPendingLegoDisable'),
|
|
1208
|
+
setLegoChangeDelay: getMutation('setLegoChangeDelay'),
|
|
711
1209
|
setLegoHelper: getMutation('setLegoHelper'),
|
|
712
1210
|
};
|
|
713
1211
|
export function toSdk(publicClient, walletClient) {
|
|
714
1212
|
return {
|
|
715
1213
|
// Queries
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
1214
|
+
canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
|
|
1215
|
+
hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
|
|
1216
|
+
governance: (...args) => singleQuery(publicClient, call.governance(...args)),
|
|
1217
|
+
pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
|
|
1218
|
+
govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
|
|
1219
|
+
MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
|
|
1220
|
+
MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
|
|
719
1221
|
isValidNewLegoAddr: (...args) => singleQuery(publicClient, call.isValidNewLegoAddr(...args)),
|
|
720
1222
|
isValidLegoUpdate: (...args) => singleQuery(publicClient, call.isValidLegoUpdate(...args)),
|
|
721
1223
|
isValidLegoDisable: (...args) => singleQuery(publicClient, call.isValidLegoDisable(...args)),
|
|
1224
|
+
legoChangeDelay: (...args) => singleQuery(publicClient, call.legoChangeDelay(...args)),
|
|
1225
|
+
numLegosRaw: (...args) => singleQuery(publicClient, call.numLegosRaw(...args)),
|
|
722
1226
|
isValidLegoAddr: (...args) => singleQuery(publicClient, call.isValidLegoAddr(...args)),
|
|
723
1227
|
isValidLegoId: (...args) => singleQuery(publicClient, call.isValidLegoId(...args)),
|
|
724
1228
|
getLegoId: (...args) => singleQuery(publicClient, call.getLegoId(...args)),
|
|
@@ -731,16 +1235,24 @@ export function toSdk(publicClient, walletClient) {
|
|
|
731
1235
|
getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
|
|
732
1236
|
getUnderlyingForUser: (...args) => singleQuery(publicClient, call.getUnderlyingForUser(...args)),
|
|
733
1237
|
isValidLegoHelper: (...args) => singleQuery(publicClient, call.isValidLegoHelper(...args)),
|
|
1238
|
+
pendingLegoType: (...args) => singleQuery(publicClient, call.pendingLegoType(...args)),
|
|
1239
|
+
legoIdToType: (...args) => singleQuery(publicClient, call.legoIdToType(...args)),
|
|
734
1240
|
legoHelper: (...args) => singleQuery(publicClient, call.legoHelper(...args)),
|
|
735
|
-
legoInfo: (...args) => singleQuery(publicClient, call.legoInfo(...args)),
|
|
736
|
-
legoAddrToId: (...args) => singleQuery(publicClient, call.legoAddrToId(...args)),
|
|
737
|
-
numLegos: (...args) => singleQuery(publicClient, call.numLegos(...args)),
|
|
738
|
-
ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
|
|
739
1241
|
// Mutations
|
|
740
|
-
|
|
1242
|
+
changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
|
|
1243
|
+
confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
|
|
1244
|
+
cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
|
|
1245
|
+
setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
|
|
741
1246
|
registerNewLego: (...args) => mutate(walletClient, mutation.registerNewLego)(...args),
|
|
1247
|
+
confirmNewLegoRegistration: (...args) => mutate(walletClient, mutation.confirmNewLegoRegistration)(...args),
|
|
1248
|
+
cancelPendingNewLego: (...args) => mutate(walletClient, mutation.cancelPendingNewLego)(...args),
|
|
742
1249
|
updateLegoAddr: (...args) => mutate(walletClient, mutation.updateLegoAddr)(...args),
|
|
1250
|
+
confirmLegoUpdate: (...args) => mutate(walletClient, mutation.confirmLegoUpdate)(...args),
|
|
1251
|
+
cancelPendingLegoUpdate: (...args) => mutate(walletClient, mutation.cancelPendingLegoUpdate)(...args),
|
|
743
1252
|
disableLegoAddr: (...args) => mutate(walletClient, mutation.disableLegoAddr)(...args),
|
|
1253
|
+
confirmLegoDisable: (...args) => mutate(walletClient, mutation.confirmLegoDisable)(...args),
|
|
1254
|
+
cancelPendingLegoDisable: (...args) => mutate(walletClient, mutation.cancelPendingLegoDisable)(...args),
|
|
1255
|
+
setLegoChangeDelay: (...args) => mutate(walletClient, mutation.setLegoChangeDelay)(...args),
|
|
744
1256
|
setLegoHelper: (...args) => mutate(walletClient, mutation.setLegoHelper)(...args),
|
|
745
1257
|
};
|
|
746
1258
|
}
|