@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.
Files changed (83) hide show
  1. package/dist/contracts/AddyRegistry.d.ts +659 -82
  2. package/dist/contracts/AddyRegistry.d.ts.map +1 -1
  3. package/dist/contracts/AddyRegistry.js +903 -184
  4. package/dist/contracts/Agent.d.ts +223 -145
  5. package/dist/contracts/Agent.d.ts.map +1 -1
  6. package/dist/contracts/Agent.js +248 -162
  7. package/dist/contracts/AgentFactory.d.ts +335 -42
  8. package/dist/contracts/AgentFactory.d.ts.map +1 -1
  9. package/dist/contracts/AgentFactory.js +403 -42
  10. package/dist/contracts/Agent_v1.d.ts +2629 -0
  11. package/dist/contracts/Agent_v1.d.ts.map +1 -0
  12. package/dist/contracts/Agent_v1.js +3370 -0
  13. package/dist/contracts/ChainlinkFeeds.d.ts +160 -23
  14. package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -1
  15. package/dist/contracts/ChainlinkFeeds.js +186 -23
  16. package/dist/contracts/LegoAaveV3.d.ts +160 -23
  17. package/dist/contracts/LegoAaveV3.d.ts.map +1 -1
  18. package/dist/contracts/LegoAaveV3.js +186 -23
  19. package/dist/contracts/LegoAeroClassic.d.ts +160 -23
  20. package/dist/contracts/LegoAeroClassic.d.ts.map +1 -1
  21. package/dist/contracts/LegoAeroClassic.js +186 -23
  22. package/dist/contracts/LegoAeroSlipstream.d.ts +160 -23
  23. package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -1
  24. package/dist/contracts/LegoAeroSlipstream.js +186 -23
  25. package/dist/contracts/LegoCompoundV3.d.ts +160 -23
  26. package/dist/contracts/LegoCompoundV3.d.ts.map +1 -1
  27. package/dist/contracts/LegoCompoundV3.js +186 -23
  28. package/dist/contracts/LegoCurve.d.ts +160 -23
  29. package/dist/contracts/LegoCurve.d.ts.map +1 -1
  30. package/dist/contracts/LegoCurve.js +186 -23
  31. package/dist/contracts/LegoEuler.d.ts +160 -23
  32. package/dist/contracts/LegoEuler.d.ts.map +1 -1
  33. package/dist/contracts/LegoEuler.js +186 -23
  34. package/dist/contracts/LegoFluid.d.ts +171 -23
  35. package/dist/contracts/LegoFluid.d.ts.map +1 -1
  36. package/dist/contracts/LegoFluid.js +200 -23
  37. package/dist/contracts/LegoHelper.js +1 -1
  38. package/dist/contracts/LegoMoonwell.d.ts +160 -23
  39. package/dist/contracts/LegoMoonwell.d.ts.map +1 -1
  40. package/dist/contracts/LegoMoonwell.js +186 -23
  41. package/dist/contracts/LegoMorpho.d.ts +160 -23
  42. package/dist/contracts/LegoMorpho.d.ts.map +1 -1
  43. package/dist/contracts/LegoMorpho.js +186 -23
  44. package/dist/contracts/LegoRegistry.d.ts +501 -96
  45. package/dist/contracts/LegoRegistry.d.ts.map +1 -1
  46. package/dist/contracts/LegoRegistry.js +686 -174
  47. package/dist/contracts/LegoSky.d.ts +160 -23
  48. package/dist/contracts/LegoSky.d.ts.map +1 -1
  49. package/dist/contracts/LegoSky.js +186 -23
  50. package/dist/contracts/LegoUniswapV2.d.ts +160 -23
  51. package/dist/contracts/LegoUniswapV2.d.ts.map +1 -1
  52. package/dist/contracts/LegoUniswapV2.js +186 -23
  53. package/dist/contracts/LegoUniswapV3.d.ts +160 -23
  54. package/dist/contracts/LegoUniswapV3.d.ts.map +1 -1
  55. package/dist/contracts/LegoUniswapV3.js +186 -23
  56. package/dist/contracts/OracleRegistry.d.ts +506 -109
  57. package/dist/contracts/OracleRegistry.d.ts.map +1 -1
  58. package/dist/contracts/OracleRegistry.js +628 -131
  59. package/dist/contracts/PriceSheets.d.ts +160 -23
  60. package/dist/contracts/PriceSheets.d.ts.map +1 -1
  61. package/dist/contracts/PriceSheets.js +186 -23
  62. package/dist/contracts/PythFeeds.d.ts +160 -23
  63. package/dist/contracts/PythFeeds.d.ts.map +1 -1
  64. package/dist/contracts/PythFeeds.js +186 -23
  65. package/dist/contracts/StorkFeeds.d.ts +160 -23
  66. package/dist/contracts/StorkFeeds.d.ts.map +1 -1
  67. package/dist/contracts/StorkFeeds.js +186 -23
  68. package/dist/contracts/UserWallet.d.ts +1956 -0
  69. package/dist/contracts/UserWallet.d.ts.map +1 -0
  70. package/dist/contracts/UserWallet.js +2551 -0
  71. package/dist/contracts/UserWalletConfig.d.ts +1466 -0
  72. package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
  73. package/dist/contracts/UserWalletConfig.js +1762 -0
  74. package/dist/contracts/index.d.ts +3 -2
  75. package/dist/contracts/index.d.ts.map +1 -1
  76. package/dist/contracts/index.js +3 -2
  77. package/dist/contracts/sdk.d.ts +6 -4
  78. package/dist/contracts/sdk.d.ts.map +1 -1
  79. package/dist/contracts/sdk.js +6 -4
  80. package/dist/index.d.ts +8 -2
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.js +8 -2
  83. package/package.json +1 -1
@@ -4,6 +4,140 @@
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: false,
12
+ name: 'numIds',
13
+ type: 'uint256',
14
+ },
15
+ ],
16
+ name: 'PriorityOraclePartnerIdsModified',
17
+ type: 'event',
18
+ },
19
+ {
20
+ anonymous: false,
21
+ inputs: [
22
+ {
23
+ indexed: false,
24
+ name: 'staleTime',
25
+ type: 'uint256',
26
+ },
27
+ ],
28
+ name: 'StaleTimeSet',
29
+ type: 'event',
30
+ },
31
+ {
32
+ anonymous: false,
33
+ inputs: [
34
+ {
35
+ indexed: true,
36
+ name: 'prevGov',
37
+ type: 'address',
38
+ },
39
+ {
40
+ indexed: true,
41
+ name: 'newGov',
42
+ type: 'address',
43
+ },
44
+ {
45
+ indexed: false,
46
+ name: 'confirmBlock',
47
+ type: 'uint256',
48
+ },
49
+ ],
50
+ name: 'GovChangeInitiated',
51
+ type: 'event',
52
+ },
53
+ {
54
+ anonymous: false,
55
+ inputs: [
56
+ {
57
+ indexed: true,
58
+ name: 'prevGov',
59
+ type: 'address',
60
+ },
61
+ {
62
+ indexed: true,
63
+ name: 'newGov',
64
+ type: 'address',
65
+ },
66
+ {
67
+ indexed: false,
68
+ name: 'initiatedBlock',
69
+ type: 'uint256',
70
+ },
71
+ {
72
+ indexed: false,
73
+ name: 'confirmBlock',
74
+ type: 'uint256',
75
+ },
76
+ ],
77
+ name: 'GovChangeConfirmed',
78
+ type: 'event',
79
+ },
80
+ {
81
+ anonymous: false,
82
+ inputs: [
83
+ {
84
+ indexed: true,
85
+ name: 'cancelledGov',
86
+ type: 'address',
87
+ },
88
+ {
89
+ indexed: false,
90
+ name: 'initiatedBlock',
91
+ type: 'uint256',
92
+ },
93
+ {
94
+ indexed: false,
95
+ name: 'confirmBlock',
96
+ type: 'uint256',
97
+ },
98
+ ],
99
+ name: 'GovChangeCancelled',
100
+ type: 'event',
101
+ },
102
+ {
103
+ anonymous: false,
104
+ inputs: [
105
+ {
106
+ indexed: false,
107
+ name: 'delayBlocks',
108
+ type: 'uint256',
109
+ },
110
+ ],
111
+ name: 'GovChangeDelaySet',
112
+ type: 'event',
113
+ },
114
+ {
115
+ anonymous: false,
116
+ inputs: [
117
+ {
118
+ indexed: true,
119
+ name: 'addr',
120
+ type: 'address',
121
+ },
122
+ {
123
+ indexed: false,
124
+ name: 'description',
125
+ type: 'string',
126
+ },
127
+ {
128
+ indexed: false,
129
+ name: 'confirmBlock',
130
+ type: 'uint256',
131
+ },
132
+ {
133
+ indexed: false,
134
+ name: 'registry',
135
+ type: 'string',
136
+ },
137
+ ],
138
+ name: 'NewAddyPending',
139
+ type: 'event',
140
+ },
7
141
  {
8
142
  anonymous: false,
9
143
  inputs: [
@@ -14,7 +148,7 @@ export const abi = [
14
148
  },
15
149
  {
16
150
  indexed: false,
17
- name: 'oraclePartnerId',
151
+ name: 'addyId',
18
152
  type: 'uint256',
19
153
  },
20
154
  {
@@ -22,13 +156,60 @@ export const abi = [
22
156
  name: 'description',
23
157
  type: 'string',
24
158
  },
159
+ {
160
+ indexed: false,
161
+ name: 'registry',
162
+ type: 'string',
163
+ },
25
164
  ],
26
- name: 'NewOraclePartnerRegistered',
165
+ name: 'NewAddyConfirmed',
27
166
  type: 'event',
28
167
  },
29
168
  {
30
169
  anonymous: false,
31
170
  inputs: [
171
+ {
172
+ indexed: false,
173
+ name: 'description',
174
+ type: 'string',
175
+ },
176
+ {
177
+ indexed: true,
178
+ name: 'addr',
179
+ type: 'address',
180
+ },
181
+ {
182
+ indexed: false,
183
+ name: 'initiatedBlock',
184
+ type: 'uint256',
185
+ },
186
+ {
187
+ indexed: false,
188
+ name: 'confirmBlock',
189
+ type: 'uint256',
190
+ },
191
+ {
192
+ indexed: false,
193
+ name: 'registry',
194
+ type: 'string',
195
+ },
196
+ ],
197
+ name: 'NewPendingAddyCancelled',
198
+ type: 'event',
199
+ },
200
+ {
201
+ anonymous: false,
202
+ inputs: [
203
+ {
204
+ indexed: false,
205
+ name: 'addyId',
206
+ type: 'uint256',
207
+ },
208
+ {
209
+ indexed: false,
210
+ name: 'description',
211
+ type: 'string',
212
+ },
32
213
  {
33
214
  indexed: true,
34
215
  name: 'newAddr',
@@ -41,26 +222,41 @@ export const abi = [
41
222
  },
42
223
  {
43
224
  indexed: false,
44
- name: 'oraclePartnerId',
225
+ name: 'version',
45
226
  type: 'uint256',
46
227
  },
47
228
  {
48
229
  indexed: false,
49
- name: 'version',
230
+ name: 'confirmBlock',
50
231
  type: 'uint256',
51
232
  },
52
233
  {
53
234
  indexed: false,
54
- name: 'description',
235
+ name: 'registry',
55
236
  type: 'string',
56
237
  },
57
238
  ],
58
- name: 'OraclePartnerAddrUpdated',
239
+ name: 'AddyUpdatePending',
59
240
  type: 'event',
60
241
  },
61
242
  {
62
243
  anonymous: false,
63
244
  inputs: [
245
+ {
246
+ indexed: false,
247
+ name: 'addyId',
248
+ type: 'uint256',
249
+ },
250
+ {
251
+ indexed: false,
252
+ name: 'description',
253
+ type: 'string',
254
+ },
255
+ {
256
+ indexed: true,
257
+ name: 'newAddr',
258
+ type: 'address',
259
+ },
64
260
  {
65
261
  indexed: true,
66
262
  name: 'prevAddr',
@@ -68,12 +264,24 @@ export const abi = [
68
264
  },
69
265
  {
70
266
  indexed: false,
71
- name: 'oraclePartnerId',
267
+ name: 'version',
72
268
  type: 'uint256',
73
269
  },
74
270
  {
75
271
  indexed: false,
76
- name: 'version',
272
+ name: 'registry',
273
+ type: 'string',
274
+ },
275
+ ],
276
+ name: 'AddyUpdateConfirmed',
277
+ type: 'event',
278
+ },
279
+ {
280
+ anonymous: false,
281
+ inputs: [
282
+ {
283
+ indexed: false,
284
+ name: 'addyId',
77
285
  type: 'uint256',
78
286
  },
79
287
  {
@@ -81,8 +289,33 @@ export const abi = [
81
289
  name: 'description',
82
290
  type: 'string',
83
291
  },
292
+ {
293
+ indexed: true,
294
+ name: 'newAddr',
295
+ type: 'address',
296
+ },
297
+ {
298
+ indexed: true,
299
+ name: 'prevAddr',
300
+ type: 'address',
301
+ },
302
+ {
303
+ indexed: false,
304
+ name: 'initiatedBlock',
305
+ type: 'uint256',
306
+ },
307
+ {
308
+ indexed: false,
309
+ name: 'confirmBlock',
310
+ type: 'uint256',
311
+ },
312
+ {
313
+ indexed: false,
314
+ name: 'registry',
315
+ type: 'string',
316
+ },
84
317
  ],
85
- name: 'OraclePartnerAddrDisabled',
318
+ name: 'AddyUpdateCancelled',
86
319
  type: 'event',
87
320
  },
88
321
  {
@@ -90,11 +323,36 @@ export const abi = [
90
323
  inputs: [
91
324
  {
92
325
  indexed: false,
93
- name: 'numIds',
326
+ name: 'addyId',
94
327
  type: 'uint256',
95
328
  },
329
+ {
330
+ indexed: false,
331
+ name: 'description',
332
+ type: 'string',
333
+ },
334
+ {
335
+ indexed: true,
336
+ name: 'addr',
337
+ type: 'address',
338
+ },
339
+ {
340
+ indexed: false,
341
+ name: 'version',
342
+ type: 'uint256',
343
+ },
344
+ {
345
+ indexed: false,
346
+ name: 'confirmBlock',
347
+ type: 'uint256',
348
+ },
349
+ {
350
+ indexed: false,
351
+ name: 'registry',
352
+ type: 'string',
353
+ },
96
354
  ],
97
- name: 'PriorityOraclePartnerIdsModified',
355
+ name: 'AddyDisablePending',
98
356
  type: 'event',
99
357
  },
100
358
  {
@@ -102,83 +360,223 @@ export const abi = [
102
360
  inputs: [
103
361
  {
104
362
  indexed: false,
105
- name: 'staleTime',
363
+ name: 'addyId',
106
364
  type: 'uint256',
107
365
  },
366
+ {
367
+ indexed: false,
368
+ name: 'description',
369
+ type: 'string',
370
+ },
371
+ {
372
+ indexed: true,
373
+ name: 'addr',
374
+ type: 'address',
375
+ },
376
+ {
377
+ indexed: false,
378
+ name: 'version',
379
+ type: 'uint256',
380
+ },
381
+ {
382
+ indexed: false,
383
+ name: 'registry',
384
+ type: 'string',
385
+ },
108
386
  ],
109
- name: 'StaleTimeSet',
387
+ name: 'AddyDisableConfirmed',
110
388
  type: 'event',
111
389
  },
112
390
  {
113
391
  anonymous: false,
114
392
  inputs: [
393
+ {
394
+ indexed: false,
395
+ name: 'addyId',
396
+ type: 'uint256',
397
+ },
398
+ {
399
+ indexed: false,
400
+ name: 'description',
401
+ type: 'string',
402
+ },
115
403
  {
116
404
  indexed: true,
117
405
  name: 'addr',
118
406
  type: 'address',
119
407
  },
408
+ {
409
+ indexed: false,
410
+ name: 'initiatedBlock',
411
+ type: 'uint256',
412
+ },
413
+ {
414
+ indexed: false,
415
+ name: 'confirmBlock',
416
+ type: 'uint256',
417
+ },
418
+ {
419
+ indexed: false,
420
+ name: 'registry',
421
+ type: 'string',
422
+ },
423
+ ],
424
+ name: 'AddyDisableCancelled',
425
+ type: 'event',
426
+ },
427
+ {
428
+ anonymous: false,
429
+ inputs: [
430
+ {
431
+ indexed: false,
432
+ name: 'delayBlocks',
433
+ type: 'uint256',
434
+ },
435
+ {
436
+ indexed: false,
437
+ name: 'registry',
438
+ type: 'string',
439
+ },
120
440
  ],
121
- name: 'LocalGovernorSet',
441
+ name: 'AddyChangeDelaySet',
122
442
  type: 'event',
123
443
  },
124
444
  {
125
445
  inputs: [
126
446
  {
127
- name: '_address',
447
+ name: '_address',
448
+ type: 'address',
449
+ },
450
+ ],
451
+ name: 'canGovern',
452
+ outputs: [
453
+ {
454
+ name: '',
455
+ type: 'bool',
456
+ },
457
+ ],
458
+ stateMutability: 'view',
459
+ type: 'function',
460
+ },
461
+ {
462
+ inputs: [],
463
+ name: 'hasPendingGovChange',
464
+ outputs: [
465
+ {
466
+ name: '',
467
+ type: 'bool',
468
+ },
469
+ ],
470
+ stateMutability: 'view',
471
+ type: 'function',
472
+ },
473
+ {
474
+ inputs: [
475
+ {
476
+ name: '_newGov',
477
+ type: 'address',
478
+ },
479
+ ],
480
+ name: 'changeGovernance',
481
+ outputs: [],
482
+ stateMutability: 'nonpayable',
483
+ type: 'function',
484
+ },
485
+ {
486
+ inputs: [],
487
+ name: 'confirmGovernanceChange',
488
+ outputs: [],
489
+ stateMutability: 'nonpayable',
490
+ type: 'function',
491
+ },
492
+ {
493
+ inputs: [],
494
+ name: 'cancelGovernanceChange',
495
+ outputs: [],
496
+ stateMutability: 'nonpayable',
497
+ type: 'function',
498
+ },
499
+ {
500
+ inputs: [
501
+ {
502
+ name: '_numBlocks',
503
+ type: 'uint256',
504
+ },
505
+ ],
506
+ name: 'setGovernanceChangeDelay',
507
+ outputs: [],
508
+ stateMutability: 'nonpayable',
509
+ type: 'function',
510
+ },
511
+ {
512
+ inputs: [],
513
+ name: 'governance',
514
+ outputs: [
515
+ {
516
+ name: '',
128
517
  type: 'address',
129
518
  },
130
519
  ],
131
- name: 'isGovernor',
520
+ stateMutability: 'view',
521
+ type: 'function',
522
+ },
523
+ {
524
+ inputs: [],
525
+ name: 'pendingGov',
132
526
  outputs: [
133
527
  {
528
+ components: [
529
+ {
530
+ name: 'newGov',
531
+ type: 'address',
532
+ },
533
+ {
534
+ name: 'initiatedBlock',
535
+ type: 'uint256',
536
+ },
537
+ {
538
+ name: 'confirmBlock',
539
+ type: 'uint256',
540
+ },
541
+ ],
134
542
  name: '',
135
- type: 'bool',
543
+ type: 'tuple',
136
544
  },
137
545
  ],
138
546
  stateMutability: 'view',
139
547
  type: 'function',
140
548
  },
141
549
  {
142
- inputs: [
143
- {
144
- name: '_newGovernor',
145
- type: 'address',
146
- },
147
- ],
148
- name: 'isValidLocalGovernor',
550
+ inputs: [],
551
+ name: 'govChangeDelay',
149
552
  outputs: [
150
553
  {
151
554
  name: '',
152
- type: 'bool',
555
+ type: 'uint256',
153
556
  },
154
557
  ],
155
558
  stateMutability: 'view',
156
559
  type: 'function',
157
560
  },
158
561
  {
159
- inputs: [
160
- {
161
- name: '_newGovernor',
162
- type: 'address',
163
- },
164
- ],
165
- name: 'setLocalGovernor',
562
+ inputs: [],
563
+ name: 'MIN_GOV_CHANGE_DELAY',
166
564
  outputs: [
167
565
  {
168
566
  name: '',
169
- type: 'bool',
567
+ type: 'uint256',
170
568
  },
171
569
  ],
172
- stateMutability: 'nonpayable',
570
+ stateMutability: 'view',
173
571
  type: 'function',
174
572
  },
175
573
  {
176
574
  inputs: [],
177
- name: 'localGovernor',
575
+ name: 'MAX_GOV_CHANGE_DELAY',
178
576
  outputs: [
179
577
  {
180
578
  name: '',
181
- type: 'address',
579
+ type: 'uint256',
182
580
  },
183
581
  ],
184
582
  stateMutability: 'view',
@@ -436,6 +834,23 @@ export const abi = [
436
834
  },
437
835
  ],
438
836
  name: 'registerNewOraclePartner',
837
+ outputs: [
838
+ {
839
+ name: '',
840
+ type: 'bool',
841
+ },
842
+ ],
843
+ stateMutability: 'nonpayable',
844
+ type: 'function',
845
+ },
846
+ {
847
+ inputs: [
848
+ {
849
+ name: '_addr',
850
+ type: 'address',
851
+ },
852
+ ],
853
+ name: 'confirmNewOraclePartnerRegistration',
439
854
  outputs: [
440
855
  {
441
856
  name: '',
@@ -445,6 +860,23 @@ export const abi = [
445
860
  stateMutability: 'nonpayable',
446
861
  type: 'function',
447
862
  },
863
+ {
864
+ inputs: [
865
+ {
866
+ name: '_addr',
867
+ type: 'address',
868
+ },
869
+ ],
870
+ name: 'cancelPendingNewOraclePartner',
871
+ outputs: [
872
+ {
873
+ name: '',
874
+ type: 'bool',
875
+ },
876
+ ],
877
+ stateMutability: 'nonpayable',
878
+ type: 'function',
879
+ },
448
880
  {
449
881
  inputs: [
450
882
  {
@@ -487,6 +919,40 @@ export const abi = [
487
919
  stateMutability: 'nonpayable',
488
920
  type: 'function',
489
921
  },
922
+ {
923
+ inputs: [
924
+ {
925
+ name: '_oracleId',
926
+ type: 'uint256',
927
+ },
928
+ ],
929
+ name: 'confirmOraclePartnerUpdate',
930
+ outputs: [
931
+ {
932
+ name: '',
933
+ type: 'bool',
934
+ },
935
+ ],
936
+ stateMutability: 'nonpayable',
937
+ type: 'function',
938
+ },
939
+ {
940
+ inputs: [
941
+ {
942
+ name: '_oracleId',
943
+ type: 'uint256',
944
+ },
945
+ ],
946
+ name: 'cancelPendingOraclePartnerUpdate',
947
+ outputs: [
948
+ {
949
+ name: '',
950
+ type: 'bool',
951
+ },
952
+ ],
953
+ stateMutability: 'nonpayable',
954
+ type: 'function',
955
+ },
490
956
  {
491
957
  inputs: [
492
958
  {
@@ -521,6 +987,69 @@ export const abi = [
521
987
  stateMutability: 'nonpayable',
522
988
  type: 'function',
523
989
  },
990
+ {
991
+ inputs: [
992
+ {
993
+ name: '_oracleId',
994
+ type: 'uint256',
995
+ },
996
+ ],
997
+ name: 'confirmOraclePartnerDisable',
998
+ outputs: [
999
+ {
1000
+ name: '',
1001
+ type: 'bool',
1002
+ },
1003
+ ],
1004
+ stateMutability: 'nonpayable',
1005
+ type: 'function',
1006
+ },
1007
+ {
1008
+ inputs: [
1009
+ {
1010
+ name: '_oracleId',
1011
+ type: 'uint256',
1012
+ },
1013
+ ],
1014
+ name: 'cancelPendingOraclePartnerDisable',
1015
+ outputs: [
1016
+ {
1017
+ name: '',
1018
+ type: 'bool',
1019
+ },
1020
+ ],
1021
+ stateMutability: 'nonpayable',
1022
+ type: 'function',
1023
+ },
1024
+ {
1025
+ inputs: [
1026
+ {
1027
+ name: '_numBlocks',
1028
+ type: 'uint256',
1029
+ },
1030
+ ],
1031
+ name: 'setOraclePartnerChangeDelay',
1032
+ outputs: [
1033
+ {
1034
+ name: '',
1035
+ type: 'bool',
1036
+ },
1037
+ ],
1038
+ stateMutability: 'nonpayable',
1039
+ type: 'function',
1040
+ },
1041
+ {
1042
+ inputs: [],
1043
+ name: 'oracleChangeDelay',
1044
+ outputs: [
1045
+ {
1046
+ name: '',
1047
+ type: 'uint256',
1048
+ },
1049
+ ],
1050
+ stateMutability: 'view',
1051
+ type: 'function',
1052
+ },
524
1053
  {
525
1054
  inputs: [],
526
1055
  name: 'getPriorityOraclePartnerIds',
@@ -601,6 +1130,18 @@ export const abi = [
601
1130
  stateMutability: 'nonpayable',
602
1131
  type: 'function',
603
1132
  },
1133
+ {
1134
+ inputs: [],
1135
+ name: 'numOraclePartnersRaw',
1136
+ outputs: [
1137
+ {
1138
+ name: '',
1139
+ type: 'uint256',
1140
+ },
1141
+ ],
1142
+ stateMutability: 'view',
1143
+ type: 'function',
1144
+ },
604
1145
  {
605
1146
  inputs: [
606
1147
  {
@@ -757,70 +1298,6 @@ export const abi = [
757
1298
  stateMutability: 'view',
758
1299
  type: 'function',
759
1300
  },
760
- {
761
- inputs: [
762
- {
763
- name: 'arg0',
764
- type: 'uint256',
765
- },
766
- ],
767
- name: 'oraclePartnerInfo',
768
- outputs: [
769
- {
770
- components: [
771
- {
772
- name: 'addr',
773
- type: 'address',
774
- },
775
- {
776
- name: 'version',
777
- type: 'uint256',
778
- },
779
- {
780
- name: 'lastModified',
781
- type: 'uint256',
782
- },
783
- {
784
- name: 'description',
785
- type: 'string',
786
- },
787
- ],
788
- name: '',
789
- type: 'tuple',
790
- },
791
- ],
792
- stateMutability: 'view',
793
- type: 'function',
794
- },
795
- {
796
- inputs: [
797
- {
798
- name: 'arg0',
799
- type: 'address',
800
- },
801
- ],
802
- name: 'oraclePartnerAddrToId',
803
- outputs: [
804
- {
805
- name: '',
806
- type: 'uint256',
807
- },
808
- ],
809
- stateMutability: 'view',
810
- type: 'function',
811
- },
812
- {
813
- inputs: [],
814
- name: 'numOraclePartners',
815
- outputs: [
816
- {
817
- name: '',
818
- type: 'uint256',
819
- },
820
- ],
821
- stateMutability: 'view',
822
- type: 'function',
823
- },
824
1301
  {
825
1302
  inputs: [
826
1303
  {
@@ -850,18 +1327,6 @@ export const abi = [
850
1327
  stateMutability: 'view',
851
1328
  type: 'function',
852
1329
  },
853
- {
854
- inputs: [],
855
- name: 'ADDY_REGISTRY',
856
- outputs: [
857
- {
858
- name: '',
859
- type: 'address',
860
- },
861
- ],
862
- stateMutability: 'view',
863
- type: 'function',
864
- },
865
1330
  {
866
1331
  inputs: [],
867
1332
  name: 'ETH',
@@ -900,6 +1365,10 @@ export const abi = [
900
1365
  },
901
1366
  {
902
1367
  inputs: [
1368
+ {
1369
+ name: '_addyRegistry',
1370
+ type: 'address',
1371
+ },
903
1372
  {
904
1373
  name: '_ethAddr',
905
1374
  type: 'address',
@@ -913,8 +1382,12 @@ export const abi = [
913
1382
  type: 'uint256',
914
1383
  },
915
1384
  {
916
- name: '_addyRegistry',
917
- type: 'address',
1385
+ name: '_minOracleChangeDelay',
1386
+ type: 'uint256',
1387
+ },
1388
+ {
1389
+ name: '_maxOracleChangeDelay',
1390
+ type: 'uint256',
918
1391
  },
919
1392
  ],
920
1393
  outputs: [],
@@ -922,7 +1395,7 @@ export const abi = [
922
1395
  type: 'constructor',
923
1396
  },
924
1397
  ];
925
- export const deployAddress = '0xc56add9377Bc3a39f1B928Abc7440E43B6b10e1f';
1398
+ export const deployAddress = '0x4D97d514d92Efd711D0645fE0759fA68480facc5';
926
1399
  function getRequest(method, args, contractAddressOrOptions) {
927
1400
  const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
928
1401
  const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
@@ -951,9 +1424,13 @@ function getRequest(method, args, contractAddressOrOptions) {
951
1424
  return call;
952
1425
  }
953
1426
  export const call = {
954
- isGovernor: (...args) => getRequest('isGovernor', args),
955
- isValidLocalGovernor: (...args) => getRequest('isValidLocalGovernor', args),
956
- localGovernor: (...args) => getRequest('localGovernor', args),
1427
+ canGovern: (...args) => getRequest('canGovern', args),
1428
+ hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1429
+ governance: (...args) => getRequest('governance', args),
1430
+ pendingGov: (...args) => getRequest('pendingGov', args),
1431
+ govChangeDelay: (...args) => getRequest('govChangeDelay', args),
1432
+ MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
1433
+ MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
957
1434
  getPrice: (...args) => getRequest('getPrice', args),
958
1435
  getUsdValue: (...args) => getRequest('getUsdValue', args),
959
1436
  getAssetAmount: (...args) => getRequest('getAssetAmount', args),
@@ -963,9 +1440,11 @@ export const call = {
963
1440
  isValidNewOraclePartnerAddr: (...args) => getRequest('isValidNewOraclePartnerAddr', args),
964
1441
  isValidOraclePartnerUpdate: (...args) => getRequest('isValidOraclePartnerUpdate', args),
965
1442
  isValidOraclePartnerDisable: (...args) => getRequest('isValidOraclePartnerDisable', args),
1443
+ oracleChangeDelay: (...args) => getRequest('oracleChangeDelay', args),
966
1444
  getPriorityOraclePartnerIds: (...args) => getRequest('getPriorityOraclePartnerIds', args),
967
1445
  areValidPriorityOraclePartnerIds: (...args) => getRequest('areValidPriorityOraclePartnerIds', args),
968
1446
  isValidStaleTime: (...args) => getRequest('isValidStaleTime', args),
1447
+ numOraclePartnersRaw: (...args) => getRequest('numOraclePartnersRaw', args),
969
1448
  isValidOraclePartnerAddr: (...args) => getRequest('isValidOraclePartnerAddr', args),
970
1449
  isValidOraclePartnerId: (...args) => getRequest('isValidOraclePartnerId', args),
971
1450
  getOraclePartnerId: (...args) => getRequest('getOraclePartnerId', args),
@@ -975,12 +1454,8 @@ export const call = {
975
1454
  getNumOraclePartners: (...args) => getRequest('getNumOraclePartners', args),
976
1455
  getLastOraclePartnerAddr: (...args) => getRequest('getLastOraclePartnerAddr', args),
977
1456
  getLastOraclePartnerId: (...args) => getRequest('getLastOraclePartnerId', args),
978
- oraclePartnerInfo: (...args) => getRequest('oraclePartnerInfo', args),
979
- oraclePartnerAddrToId: (...args) => getRequest('oraclePartnerAddrToId', args),
980
- numOraclePartners: (...args) => getRequest('numOraclePartners', args),
981
1457
  priorityOraclePartnerIds: (...args) => getRequest('priorityOraclePartnerIds', args),
982
1458
  staleTime: (...args) => getRequest('staleTime', args),
983
- ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
984
1459
  ETH: (...args) => getRequest('ETH', args),
985
1460
  MIN_STALE_TIME: (...args) => getRequest('MIN_STALE_TIME', args),
986
1461
  MAX_STALE_TIME: (...args) => getRequest('MAX_STALE_TIME', args),
@@ -995,19 +1470,33 @@ function getMutation(functionName) {
995
1470
  };
996
1471
  }
997
1472
  export const mutation = {
998
- setLocalGovernor: getMutation('setLocalGovernor'),
1473
+ changeGovernance: getMutation('changeGovernance'),
1474
+ confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1475
+ cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1476
+ setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
999
1477
  registerNewOraclePartner: getMutation('registerNewOraclePartner'),
1478
+ confirmNewOraclePartnerRegistration: getMutation('confirmNewOraclePartnerRegistration'),
1479
+ cancelPendingNewOraclePartner: getMutation('cancelPendingNewOraclePartner'),
1000
1480
  updateOraclePartnerAddr: getMutation('updateOraclePartnerAddr'),
1481
+ confirmOraclePartnerUpdate: getMutation('confirmOraclePartnerUpdate'),
1482
+ cancelPendingOraclePartnerUpdate: getMutation('cancelPendingOraclePartnerUpdate'),
1001
1483
  disableOraclePartnerAddr: getMutation('disableOraclePartnerAddr'),
1484
+ confirmOraclePartnerDisable: getMutation('confirmOraclePartnerDisable'),
1485
+ cancelPendingOraclePartnerDisable: getMutation('cancelPendingOraclePartnerDisable'),
1486
+ setOraclePartnerChangeDelay: getMutation('setOraclePartnerChangeDelay'),
1002
1487
  setPriorityOraclePartnerIds: getMutation('setPriorityOraclePartnerIds'),
1003
1488
  setStaleTime: getMutation('setStaleTime'),
1004
1489
  };
1005
1490
  export function toSdk(publicClient, walletClient) {
1006
1491
  return {
1007
1492
  // Queries
1008
- isGovernor: (...args) => singleQuery(publicClient, call.isGovernor(...args)),
1009
- isValidLocalGovernor: (...args) => singleQuery(publicClient, call.isValidLocalGovernor(...args)),
1010
- localGovernor: (...args) => singleQuery(publicClient, call.localGovernor(...args)),
1493
+ canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1494
+ hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1495
+ governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1496
+ pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1497
+ govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
1498
+ MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
1499
+ MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
1011
1500
  getPrice: (...args) => singleQuery(publicClient, call.getPrice(...args)),
1012
1501
  getUsdValue: (...args) => singleQuery(publicClient, call.getUsdValue(...args)),
1013
1502
  getAssetAmount: (...args) => singleQuery(publicClient, call.getAssetAmount(...args)),
@@ -1017,9 +1506,11 @@ export function toSdk(publicClient, walletClient) {
1017
1506
  isValidNewOraclePartnerAddr: (...args) => singleQuery(publicClient, call.isValidNewOraclePartnerAddr(...args)),
1018
1507
  isValidOraclePartnerUpdate: (...args) => singleQuery(publicClient, call.isValidOraclePartnerUpdate(...args)),
1019
1508
  isValidOraclePartnerDisable: (...args) => singleQuery(publicClient, call.isValidOraclePartnerDisable(...args)),
1509
+ oracleChangeDelay: (...args) => singleQuery(publicClient, call.oracleChangeDelay(...args)),
1020
1510
  getPriorityOraclePartnerIds: (...args) => singleQuery(publicClient, call.getPriorityOraclePartnerIds(...args)),
1021
1511
  areValidPriorityOraclePartnerIds: (...args) => singleQuery(publicClient, call.areValidPriorityOraclePartnerIds(...args)),
1022
1512
  isValidStaleTime: (...args) => singleQuery(publicClient, call.isValidStaleTime(...args)),
1513
+ numOraclePartnersRaw: (...args) => singleQuery(publicClient, call.numOraclePartnersRaw(...args)),
1023
1514
  isValidOraclePartnerAddr: (...args) => singleQuery(publicClient, call.isValidOraclePartnerAddr(...args)),
1024
1515
  isValidOraclePartnerId: (...args) => singleQuery(publicClient, call.isValidOraclePartnerId(...args)),
1025
1516
  getOraclePartnerId: (...args) => singleQuery(publicClient, call.getOraclePartnerId(...args)),
@@ -1029,20 +1520,26 @@ export function toSdk(publicClient, walletClient) {
1029
1520
  getNumOraclePartners: (...args) => singleQuery(publicClient, call.getNumOraclePartners(...args)),
1030
1521
  getLastOraclePartnerAddr: (...args) => singleQuery(publicClient, call.getLastOraclePartnerAddr(...args)),
1031
1522
  getLastOraclePartnerId: (...args) => singleQuery(publicClient, call.getLastOraclePartnerId(...args)),
1032
- oraclePartnerInfo: (...args) => singleQuery(publicClient, call.oraclePartnerInfo(...args)),
1033
- oraclePartnerAddrToId: (...args) => singleQuery(publicClient, call.oraclePartnerAddrToId(...args)),
1034
- numOraclePartners: (...args) => singleQuery(publicClient, call.numOraclePartners(...args)),
1035
1523
  priorityOraclePartnerIds: (...args) => singleQuery(publicClient, call.priorityOraclePartnerIds(...args)),
1036
1524
  staleTime: (...args) => singleQuery(publicClient, call.staleTime(...args)),
1037
- ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
1038
1525
  ETH: (...args) => singleQuery(publicClient, call.ETH(...args)),
1039
1526
  MIN_STALE_TIME: (...args) => singleQuery(publicClient, call.MIN_STALE_TIME(...args)),
1040
1527
  MAX_STALE_TIME: (...args) => singleQuery(publicClient, call.MAX_STALE_TIME(...args)),
1041
1528
  // Mutations
1042
- setLocalGovernor: (...args) => mutate(walletClient, mutation.setLocalGovernor)(...args),
1529
+ changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
1530
+ confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1531
+ cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1532
+ setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
1043
1533
  registerNewOraclePartner: (...args) => mutate(walletClient, mutation.registerNewOraclePartner)(...args),
1534
+ confirmNewOraclePartnerRegistration: (...args) => mutate(walletClient, mutation.confirmNewOraclePartnerRegistration)(...args),
1535
+ cancelPendingNewOraclePartner: (...args) => mutate(walletClient, mutation.cancelPendingNewOraclePartner)(...args),
1044
1536
  updateOraclePartnerAddr: (...args) => mutate(walletClient, mutation.updateOraclePartnerAddr)(...args),
1537
+ confirmOraclePartnerUpdate: (...args) => mutate(walletClient, mutation.confirmOraclePartnerUpdate)(...args),
1538
+ cancelPendingOraclePartnerUpdate: (...args) => mutate(walletClient, mutation.cancelPendingOraclePartnerUpdate)(...args),
1045
1539
  disableOraclePartnerAddr: (...args) => mutate(walletClient, mutation.disableOraclePartnerAddr)(...args),
1540
+ confirmOraclePartnerDisable: (...args) => mutate(walletClient, mutation.confirmOraclePartnerDisable)(...args),
1541
+ cancelPendingOraclePartnerDisable: (...args) => mutate(walletClient, mutation.cancelPendingOraclePartnerDisable)(...args),
1542
+ setOraclePartnerChangeDelay: (...args) => mutate(walletClient, mutation.setOraclePartnerChangeDelay)(...args),
1046
1543
  setPriorityOraclePartnerIds: (...args) => mutate(walletClient, mutation.setPriorityOraclePartnerIds)(...args),
1047
1544
  setStaleTime: (...args) => mutate(walletClient, mutation.setStaleTime)(...args),
1048
1545
  };