@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
|
@@ -218,6 +218,35 @@ export const abi = [
|
|
|
218
218
|
name: 'AgentFactoryFundsRecovered',
|
|
219
219
|
type: 'event',
|
|
220
220
|
},
|
|
221
|
+
{
|
|
222
|
+
anonymous: false,
|
|
223
|
+
inputs: [
|
|
224
|
+
{
|
|
225
|
+
indexed: true,
|
|
226
|
+
name: 'caller',
|
|
227
|
+
type: 'address',
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
name: 'RecoveryCallerSet',
|
|
231
|
+
type: 'event',
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
anonymous: false,
|
|
235
|
+
inputs: [
|
|
236
|
+
{
|
|
237
|
+
indexed: true,
|
|
238
|
+
name: 'addr',
|
|
239
|
+
type: 'address',
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
indexed: false,
|
|
243
|
+
name: 'canCancel',
|
|
244
|
+
type: 'bool',
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
name: 'CanCriticalCancelSet',
|
|
248
|
+
type: 'event',
|
|
249
|
+
},
|
|
221
250
|
{
|
|
222
251
|
anonymous: false,
|
|
223
252
|
inputs: [
|
|
@@ -235,11 +264,82 @@ export const abi = [
|
|
|
235
264
|
inputs: [
|
|
236
265
|
{
|
|
237
266
|
indexed: true,
|
|
238
|
-
name: '
|
|
267
|
+
name: 'prevGov',
|
|
239
268
|
type: 'address',
|
|
240
269
|
},
|
|
270
|
+
{
|
|
271
|
+
indexed: true,
|
|
272
|
+
name: 'newGov',
|
|
273
|
+
type: 'address',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
indexed: false,
|
|
277
|
+
name: 'confirmBlock',
|
|
278
|
+
type: 'uint256',
|
|
279
|
+
},
|
|
241
280
|
],
|
|
242
|
-
name: '
|
|
281
|
+
name: 'GovChangeInitiated',
|
|
282
|
+
type: 'event',
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
anonymous: false,
|
|
286
|
+
inputs: [
|
|
287
|
+
{
|
|
288
|
+
indexed: true,
|
|
289
|
+
name: 'prevGov',
|
|
290
|
+
type: 'address',
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
indexed: true,
|
|
294
|
+
name: 'newGov',
|
|
295
|
+
type: 'address',
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
indexed: false,
|
|
299
|
+
name: 'initiatedBlock',
|
|
300
|
+
type: 'uint256',
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
indexed: false,
|
|
304
|
+
name: 'confirmBlock',
|
|
305
|
+
type: 'uint256',
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
name: 'GovChangeConfirmed',
|
|
309
|
+
type: 'event',
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
anonymous: false,
|
|
313
|
+
inputs: [
|
|
314
|
+
{
|
|
315
|
+
indexed: true,
|
|
316
|
+
name: 'cancelledGov',
|
|
317
|
+
type: 'address',
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
indexed: false,
|
|
321
|
+
name: 'initiatedBlock',
|
|
322
|
+
type: 'uint256',
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
indexed: false,
|
|
326
|
+
name: 'confirmBlock',
|
|
327
|
+
type: 'uint256',
|
|
328
|
+
},
|
|
329
|
+
],
|
|
330
|
+
name: 'GovChangeCancelled',
|
|
331
|
+
type: 'event',
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
anonymous: false,
|
|
335
|
+
inputs: [
|
|
336
|
+
{
|
|
337
|
+
indexed: false,
|
|
338
|
+
name: 'delayBlocks',
|
|
339
|
+
type: 'uint256',
|
|
340
|
+
},
|
|
341
|
+
],
|
|
342
|
+
name: 'GovChangeDelaySet',
|
|
243
343
|
type: 'event',
|
|
244
344
|
},
|
|
245
345
|
{
|
|
@@ -249,7 +349,19 @@ export const abi = [
|
|
|
249
349
|
type: 'address',
|
|
250
350
|
},
|
|
251
351
|
],
|
|
252
|
-
name: '
|
|
352
|
+
name: 'canGovern',
|
|
353
|
+
outputs: [
|
|
354
|
+
{
|
|
355
|
+
name: '',
|
|
356
|
+
type: 'bool',
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
stateMutability: 'view',
|
|
360
|
+
type: 'function',
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
inputs: [],
|
|
364
|
+
name: 'hasPendingGovChange',
|
|
253
365
|
outputs: [
|
|
254
366
|
{
|
|
255
367
|
name: '',
|
|
@@ -262,44 +374,110 @@ export const abi = [
|
|
|
262
374
|
{
|
|
263
375
|
inputs: [
|
|
264
376
|
{
|
|
265
|
-
name: '
|
|
377
|
+
name: '_newGov',
|
|
266
378
|
type: 'address',
|
|
267
379
|
},
|
|
268
380
|
],
|
|
269
|
-
name: '
|
|
381
|
+
name: 'changeGovernance',
|
|
382
|
+
outputs: [],
|
|
383
|
+
stateMutability: 'nonpayable',
|
|
384
|
+
type: 'function',
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
inputs: [],
|
|
388
|
+
name: 'confirmGovernanceChange',
|
|
389
|
+
outputs: [],
|
|
390
|
+
stateMutability: 'nonpayable',
|
|
391
|
+
type: 'function',
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
inputs: [],
|
|
395
|
+
name: 'cancelGovernanceChange',
|
|
396
|
+
outputs: [],
|
|
397
|
+
stateMutability: 'nonpayable',
|
|
398
|
+
type: 'function',
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
inputs: [
|
|
402
|
+
{
|
|
403
|
+
name: '_numBlocks',
|
|
404
|
+
type: 'uint256',
|
|
405
|
+
},
|
|
406
|
+
],
|
|
407
|
+
name: 'setGovernanceChangeDelay',
|
|
408
|
+
outputs: [],
|
|
409
|
+
stateMutability: 'nonpayable',
|
|
410
|
+
type: 'function',
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
inputs: [],
|
|
414
|
+
name: 'governance',
|
|
270
415
|
outputs: [
|
|
271
416
|
{
|
|
272
417
|
name: '',
|
|
273
|
-
type: '
|
|
418
|
+
type: 'address',
|
|
274
419
|
},
|
|
275
420
|
],
|
|
276
421
|
stateMutability: 'view',
|
|
277
422
|
type: 'function',
|
|
278
423
|
},
|
|
279
424
|
{
|
|
280
|
-
inputs: [
|
|
425
|
+
inputs: [],
|
|
426
|
+
name: 'pendingGov',
|
|
427
|
+
outputs: [
|
|
281
428
|
{
|
|
282
|
-
|
|
283
|
-
|
|
429
|
+
components: [
|
|
430
|
+
{
|
|
431
|
+
name: 'newGov',
|
|
432
|
+
type: 'address',
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
name: 'initiatedBlock',
|
|
436
|
+
type: 'uint256',
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
name: 'confirmBlock',
|
|
440
|
+
type: 'uint256',
|
|
441
|
+
},
|
|
442
|
+
],
|
|
443
|
+
name: '',
|
|
444
|
+
type: 'tuple',
|
|
284
445
|
},
|
|
285
446
|
],
|
|
286
|
-
|
|
447
|
+
stateMutability: 'view',
|
|
448
|
+
type: 'function',
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
inputs: [],
|
|
452
|
+
name: 'govChangeDelay',
|
|
287
453
|
outputs: [
|
|
288
454
|
{
|
|
289
455
|
name: '',
|
|
290
|
-
type: '
|
|
456
|
+
type: 'uint256',
|
|
291
457
|
},
|
|
292
458
|
],
|
|
293
|
-
stateMutability: '
|
|
459
|
+
stateMutability: 'view',
|
|
294
460
|
type: 'function',
|
|
295
461
|
},
|
|
296
462
|
{
|
|
297
463
|
inputs: [],
|
|
298
|
-
name: '
|
|
464
|
+
name: 'MIN_GOV_CHANGE_DELAY',
|
|
299
465
|
outputs: [
|
|
300
466
|
{
|
|
301
467
|
name: '',
|
|
302
|
-
type: '
|
|
468
|
+
type: 'uint256',
|
|
469
|
+
},
|
|
470
|
+
],
|
|
471
|
+
stateMutability: 'view',
|
|
472
|
+
type: 'function',
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
inputs: [],
|
|
476
|
+
name: 'MAX_GOV_CHANGE_DELAY',
|
|
477
|
+
outputs: [
|
|
478
|
+
{
|
|
479
|
+
name: '',
|
|
480
|
+
type: 'uint256',
|
|
303
481
|
},
|
|
304
482
|
],
|
|
305
483
|
stateMutability: 'view',
|
|
@@ -602,6 +780,108 @@ export const abi = [
|
|
|
602
780
|
stateMutability: 'nonpayable',
|
|
603
781
|
type: 'function',
|
|
604
782
|
},
|
|
783
|
+
{
|
|
784
|
+
inputs: [
|
|
785
|
+
{
|
|
786
|
+
name: '_wallet',
|
|
787
|
+
type: 'address',
|
|
788
|
+
},
|
|
789
|
+
],
|
|
790
|
+
name: 'recoverTrialFunds',
|
|
791
|
+
outputs: [
|
|
792
|
+
{
|
|
793
|
+
name: '',
|
|
794
|
+
type: 'bool',
|
|
795
|
+
},
|
|
796
|
+
],
|
|
797
|
+
stateMutability: 'nonpayable',
|
|
798
|
+
type: 'function',
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
inputs: [
|
|
802
|
+
{
|
|
803
|
+
name: '_wallet',
|
|
804
|
+
type: 'address',
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
components: [
|
|
808
|
+
{
|
|
809
|
+
name: 'legoId',
|
|
810
|
+
type: 'uint256',
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
name: 'vaultToken',
|
|
814
|
+
type: 'address',
|
|
815
|
+
},
|
|
816
|
+
],
|
|
817
|
+
name: '_opportunities',
|
|
818
|
+
type: 'tuple[]',
|
|
819
|
+
},
|
|
820
|
+
],
|
|
821
|
+
name: 'recoverTrialFunds',
|
|
822
|
+
outputs: [
|
|
823
|
+
{
|
|
824
|
+
name: '',
|
|
825
|
+
type: 'bool',
|
|
826
|
+
},
|
|
827
|
+
],
|
|
828
|
+
stateMutability: 'nonpayable',
|
|
829
|
+
type: 'function',
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
inputs: [
|
|
833
|
+
{
|
|
834
|
+
components: [
|
|
835
|
+
{
|
|
836
|
+
name: 'wallet',
|
|
837
|
+
type: 'address',
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
components: [
|
|
841
|
+
{
|
|
842
|
+
name: 'legoId',
|
|
843
|
+
type: 'uint256',
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
name: 'vaultToken',
|
|
847
|
+
type: 'address',
|
|
848
|
+
},
|
|
849
|
+
],
|
|
850
|
+
name: 'opportunities',
|
|
851
|
+
type: 'tuple[]',
|
|
852
|
+
},
|
|
853
|
+
],
|
|
854
|
+
name: '_recoveries',
|
|
855
|
+
type: 'tuple[]',
|
|
856
|
+
},
|
|
857
|
+
],
|
|
858
|
+
name: 'recoverTrialFundsMany',
|
|
859
|
+
outputs: [
|
|
860
|
+
{
|
|
861
|
+
name: '',
|
|
862
|
+
type: 'bool',
|
|
863
|
+
},
|
|
864
|
+
],
|
|
865
|
+
stateMutability: 'nonpayable',
|
|
866
|
+
type: 'function',
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
inputs: [
|
|
870
|
+
{
|
|
871
|
+
name: '_caller',
|
|
872
|
+
type: 'address',
|
|
873
|
+
},
|
|
874
|
+
],
|
|
875
|
+
name: 'setRecoveryCaller',
|
|
876
|
+
outputs: [
|
|
877
|
+
{
|
|
878
|
+
name: '',
|
|
879
|
+
type: 'bool',
|
|
880
|
+
},
|
|
881
|
+
],
|
|
882
|
+
stateMutability: 'nonpayable',
|
|
883
|
+
type: 'function',
|
|
884
|
+
},
|
|
605
885
|
{
|
|
606
886
|
inputs: [
|
|
607
887
|
{
|
|
@@ -743,42 +1023,32 @@ export const abi = [
|
|
|
743
1023
|
{
|
|
744
1024
|
inputs: [
|
|
745
1025
|
{
|
|
746
|
-
name: '
|
|
1026
|
+
name: '_addr',
|
|
747
1027
|
type: 'address',
|
|
748
1028
|
},
|
|
749
1029
|
],
|
|
750
|
-
name: '
|
|
1030
|
+
name: 'canCancelCriticalAction',
|
|
751
1031
|
outputs: [
|
|
752
1032
|
{
|
|
753
1033
|
name: '',
|
|
754
1034
|
type: 'bool',
|
|
755
1035
|
},
|
|
756
1036
|
],
|
|
757
|
-
stateMutability: '
|
|
1037
|
+
stateMutability: 'view',
|
|
758
1038
|
type: 'function',
|
|
759
1039
|
},
|
|
760
1040
|
{
|
|
761
1041
|
inputs: [
|
|
762
1042
|
{
|
|
763
|
-
name: '
|
|
1043
|
+
name: '_addr',
|
|
764
1044
|
type: 'address',
|
|
765
1045
|
},
|
|
766
1046
|
{
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
name: 'legoId',
|
|
770
|
-
type: 'uint256',
|
|
771
|
-
},
|
|
772
|
-
{
|
|
773
|
-
name: 'vaultToken',
|
|
774
|
-
type: 'address',
|
|
775
|
-
},
|
|
776
|
-
],
|
|
777
|
-
name: '_opportunities',
|
|
778
|
-
type: 'tuple[]',
|
|
1047
|
+
name: '_canCancel',
|
|
1048
|
+
type: 'bool',
|
|
779
1049
|
},
|
|
780
1050
|
],
|
|
781
|
-
name: '
|
|
1051
|
+
name: 'setCanCriticalCancel',
|
|
782
1052
|
outputs: [
|
|
783
1053
|
{
|
|
784
1054
|
name: '',
|
|
@@ -822,6 +1092,18 @@ export const abi = [
|
|
|
822
1092
|
stateMutability: 'view',
|
|
823
1093
|
type: 'function',
|
|
824
1094
|
},
|
|
1095
|
+
{
|
|
1096
|
+
inputs: [],
|
|
1097
|
+
name: 'recoveryCaller',
|
|
1098
|
+
outputs: [
|
|
1099
|
+
{
|
|
1100
|
+
name: '',
|
|
1101
|
+
type: 'address',
|
|
1102
|
+
},
|
|
1103
|
+
],
|
|
1104
|
+
stateMutability: 'view',
|
|
1105
|
+
type: 'function',
|
|
1106
|
+
},
|
|
825
1107
|
{
|
|
826
1108
|
inputs: [],
|
|
827
1109
|
name: 'userWalletTemplate',
|
|
@@ -1028,6 +1310,23 @@ export const abi = [
|
|
|
1028
1310
|
stateMutability: 'view',
|
|
1029
1311
|
type: 'function',
|
|
1030
1312
|
},
|
|
1313
|
+
{
|
|
1314
|
+
inputs: [
|
|
1315
|
+
{
|
|
1316
|
+
name: 'arg0',
|
|
1317
|
+
type: 'address',
|
|
1318
|
+
},
|
|
1319
|
+
],
|
|
1320
|
+
name: 'canCriticalCancel',
|
|
1321
|
+
outputs: [
|
|
1322
|
+
{
|
|
1323
|
+
name: '',
|
|
1324
|
+
type: 'bool',
|
|
1325
|
+
},
|
|
1326
|
+
],
|
|
1327
|
+
stateMutability: 'view',
|
|
1328
|
+
type: 'function',
|
|
1329
|
+
},
|
|
1031
1330
|
{
|
|
1032
1331
|
inputs: [],
|
|
1033
1332
|
name: 'isActivated',
|
|
@@ -1064,6 +1363,30 @@ export const abi = [
|
|
|
1064
1363
|
stateMutability: 'view',
|
|
1065
1364
|
type: 'function',
|
|
1066
1365
|
},
|
|
1366
|
+
{
|
|
1367
|
+
inputs: [],
|
|
1368
|
+
name: 'MIN_OWNER_CHANGE_DELAY',
|
|
1369
|
+
outputs: [
|
|
1370
|
+
{
|
|
1371
|
+
name: '',
|
|
1372
|
+
type: 'uint256',
|
|
1373
|
+
},
|
|
1374
|
+
],
|
|
1375
|
+
stateMutability: 'view',
|
|
1376
|
+
type: 'function',
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
inputs: [],
|
|
1380
|
+
name: 'MAX_OWNER_CHANGE_DELAY',
|
|
1381
|
+
outputs: [
|
|
1382
|
+
{
|
|
1383
|
+
name: '',
|
|
1384
|
+
type: 'uint256',
|
|
1385
|
+
},
|
|
1386
|
+
],
|
|
1387
|
+
stateMutability: 'view',
|
|
1388
|
+
type: 'function',
|
|
1389
|
+
},
|
|
1067
1390
|
{
|
|
1068
1391
|
inputs: [
|
|
1069
1392
|
{
|
|
@@ -1086,13 +1409,21 @@ export const abi = [
|
|
|
1086
1409
|
name: '_agentTemplate',
|
|
1087
1410
|
type: 'address',
|
|
1088
1411
|
},
|
|
1412
|
+
{
|
|
1413
|
+
name: '_minOwnerChangeDelay',
|
|
1414
|
+
type: 'uint256',
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
name: '_maxOwnerChangeDelay',
|
|
1418
|
+
type: 'uint256',
|
|
1419
|
+
},
|
|
1089
1420
|
],
|
|
1090
1421
|
outputs: [],
|
|
1091
1422
|
stateMutability: 'nonpayable',
|
|
1092
1423
|
type: 'constructor',
|
|
1093
1424
|
},
|
|
1094
1425
|
];
|
|
1095
|
-
export const deployAddress = '
|
|
1426
|
+
export const deployAddress = '0x484637E77C66eaE88C8Edb64E09c5057F52866BE';
|
|
1096
1427
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
1097
1428
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
1098
1429
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -1121,9 +1452,13 @@ function getRequest(method, args, contractAddressOrOptions) {
|
|
|
1121
1452
|
return call;
|
|
1122
1453
|
}
|
|
1123
1454
|
export const call = {
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1455
|
+
canGovern: (...args) => getRequest('canGovern', args),
|
|
1456
|
+
hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
|
|
1457
|
+
governance: (...args) => getRequest('governance', args),
|
|
1458
|
+
pendingGov: (...args) => getRequest('pendingGov', args),
|
|
1459
|
+
govChangeDelay: (...args) => getRequest('govChangeDelay', args),
|
|
1460
|
+
MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
|
|
1461
|
+
MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
|
|
1127
1462
|
currentUserWalletTemplate: (...args) => getRequest('currentUserWalletTemplate', args),
|
|
1128
1463
|
currentUserWalletConfigTemplate: (...args) => getRequest('currentUserWalletConfigTemplate', args),
|
|
1129
1464
|
currentAgentTemplate: (...args) => getRequest('currentAgentTemplate', args),
|
|
@@ -1133,7 +1468,9 @@ export const call = {
|
|
|
1133
1468
|
isValidAgentSetup: (...args) => getRequest('isValidAgentSetup', args),
|
|
1134
1469
|
isValidAgentTemplate: (...args) => getRequest('isValidAgentTemplate', args),
|
|
1135
1470
|
isValidTrialFundsData: (...args) => getRequest('isValidTrialFundsData', args),
|
|
1471
|
+
canCancelCriticalAction: (...args) => getRequest('canCancelCriticalAction', args),
|
|
1136
1472
|
trialFundsData: (...args) => getRequest('trialFundsData', args),
|
|
1473
|
+
recoveryCaller: (...args) => getRequest('recoveryCaller', args),
|
|
1137
1474
|
userWalletTemplate: (...args) => getRequest('userWalletTemplate', args),
|
|
1138
1475
|
userWalletConfig: (...args) => getRequest('userWalletConfig', args),
|
|
1139
1476
|
isUserWallet: (...args) => getRequest('isUserWallet', args),
|
|
@@ -1146,9 +1483,12 @@ export const call = {
|
|
|
1146
1483
|
numAgentsAllowed: (...args) => getRequest('numAgentsAllowed', args),
|
|
1147
1484
|
whitelist: (...args) => getRequest('whitelist', args),
|
|
1148
1485
|
shouldEnforceWhitelist: (...args) => getRequest('shouldEnforceWhitelist', args),
|
|
1486
|
+
canCriticalCancel: (...args) => getRequest('canCriticalCancel', args),
|
|
1149
1487
|
isActivated: (...args) => getRequest('isActivated', args),
|
|
1150
1488
|
ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
|
|
1151
1489
|
WETH_ADDR: (...args) => getRequest('WETH_ADDR', args),
|
|
1490
|
+
MIN_OWNER_CHANGE_DELAY: (...args) => getRequest('MIN_OWNER_CHANGE_DELAY', args),
|
|
1491
|
+
MAX_OWNER_CHANGE_DELAY: (...args) => getRequest('MAX_OWNER_CHANGE_DELAY', args),
|
|
1152
1492
|
};
|
|
1153
1493
|
function getMutation(functionName) {
|
|
1154
1494
|
return {
|
|
@@ -1160,28 +1500,38 @@ function getMutation(functionName) {
|
|
|
1160
1500
|
};
|
|
1161
1501
|
}
|
|
1162
1502
|
export const mutation = {
|
|
1163
|
-
|
|
1503
|
+
changeGovernance: getMutation('changeGovernance'),
|
|
1504
|
+
confirmGovernanceChange: getMutation('confirmGovernanceChange'),
|
|
1505
|
+
cancelGovernanceChange: getMutation('cancelGovernanceChange'),
|
|
1506
|
+
setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
|
|
1164
1507
|
createUserWallet: getMutation('createUserWallet'),
|
|
1165
1508
|
setUserWalletTemplate: getMutation('setUserWalletTemplate'),
|
|
1166
1509
|
setUserWalletConfigTemplate: getMutation('setUserWalletConfigTemplate'),
|
|
1167
1510
|
createAgent: getMutation('createAgent'),
|
|
1168
1511
|
setAgentTemplate: getMutation('setAgentTemplate'),
|
|
1169
1512
|
setTrialFundsData: getMutation('setTrialFundsData'),
|
|
1513
|
+
recoverTrialFunds: getMutation('recoverTrialFunds'),
|
|
1514
|
+
recoverTrialFundsMany: getMutation('recoverTrialFundsMany'),
|
|
1515
|
+
setRecoveryCaller: getMutation('setRecoveryCaller'),
|
|
1170
1516
|
setWhitelist: getMutation('setWhitelist'),
|
|
1171
1517
|
setShouldEnforceWhitelist: getMutation('setShouldEnforceWhitelist'),
|
|
1172
1518
|
setNumUserWalletsAllowed: getMutation('setNumUserWalletsAllowed'),
|
|
1173
1519
|
setNumAgentsAllowed: getMutation('setNumAgentsAllowed'),
|
|
1174
1520
|
setAgentBlacklist: getMutation('setAgentBlacklist'),
|
|
1175
1521
|
recoverFunds: getMutation('recoverFunds'),
|
|
1176
|
-
|
|
1522
|
+
setCanCriticalCancel: getMutation('setCanCriticalCancel'),
|
|
1177
1523
|
activate: getMutation('activate'),
|
|
1178
1524
|
};
|
|
1179
1525
|
export function toSdk(publicClient, walletClient) {
|
|
1180
1526
|
return {
|
|
1181
1527
|
// Queries
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1528
|
+
canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
|
|
1529
|
+
hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
|
|
1530
|
+
governance: (...args) => singleQuery(publicClient, call.governance(...args)),
|
|
1531
|
+
pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
|
|
1532
|
+
govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
|
|
1533
|
+
MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
|
|
1534
|
+
MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
|
|
1185
1535
|
currentUserWalletTemplate: (...args) => singleQuery(publicClient, call.currentUserWalletTemplate(...args)),
|
|
1186
1536
|
currentUserWalletConfigTemplate: (...args) => singleQuery(publicClient, call.currentUserWalletConfigTemplate(...args)),
|
|
1187
1537
|
currentAgentTemplate: (...args) => singleQuery(publicClient, call.currentAgentTemplate(...args)),
|
|
@@ -1191,7 +1541,9 @@ export function toSdk(publicClient, walletClient) {
|
|
|
1191
1541
|
isValidAgentSetup: (...args) => singleQuery(publicClient, call.isValidAgentSetup(...args)),
|
|
1192
1542
|
isValidAgentTemplate: (...args) => singleQuery(publicClient, call.isValidAgentTemplate(...args)),
|
|
1193
1543
|
isValidTrialFundsData: (...args) => singleQuery(publicClient, call.isValidTrialFundsData(...args)),
|
|
1544
|
+
canCancelCriticalAction: (...args) => singleQuery(publicClient, call.canCancelCriticalAction(...args)),
|
|
1194
1545
|
trialFundsData: (...args) => singleQuery(publicClient, call.trialFundsData(...args)),
|
|
1546
|
+
recoveryCaller: (...args) => singleQuery(publicClient, call.recoveryCaller(...args)),
|
|
1195
1547
|
userWalletTemplate: (...args) => singleQuery(publicClient, call.userWalletTemplate(...args)),
|
|
1196
1548
|
userWalletConfig: (...args) => singleQuery(publicClient, call.userWalletConfig(...args)),
|
|
1197
1549
|
isUserWallet: (...args) => singleQuery(publicClient, call.isUserWallet(...args)),
|
|
@@ -1204,24 +1556,33 @@ export function toSdk(publicClient, walletClient) {
|
|
|
1204
1556
|
numAgentsAllowed: (...args) => singleQuery(publicClient, call.numAgentsAllowed(...args)),
|
|
1205
1557
|
whitelist: (...args) => singleQuery(publicClient, call.whitelist(...args)),
|
|
1206
1558
|
shouldEnforceWhitelist: (...args) => singleQuery(publicClient, call.shouldEnforceWhitelist(...args)),
|
|
1559
|
+
canCriticalCancel: (...args) => singleQuery(publicClient, call.canCriticalCancel(...args)),
|
|
1207
1560
|
isActivated: (...args) => singleQuery(publicClient, call.isActivated(...args)),
|
|
1208
1561
|
ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
|
|
1209
1562
|
WETH_ADDR: (...args) => singleQuery(publicClient, call.WETH_ADDR(...args)),
|
|
1563
|
+
MIN_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_OWNER_CHANGE_DELAY(...args)),
|
|
1564
|
+
MAX_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_OWNER_CHANGE_DELAY(...args)),
|
|
1210
1565
|
// Mutations
|
|
1211
|
-
|
|
1566
|
+
changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
|
|
1567
|
+
confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
|
|
1568
|
+
cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
|
|
1569
|
+
setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
|
|
1212
1570
|
createUserWallet: (...args) => mutate(walletClient, mutation.createUserWallet)(...args),
|
|
1213
1571
|
setUserWalletTemplate: (...args) => mutate(walletClient, mutation.setUserWalletTemplate)(...args),
|
|
1214
1572
|
setUserWalletConfigTemplate: (...args) => mutate(walletClient, mutation.setUserWalletConfigTemplate)(...args),
|
|
1215
1573
|
createAgent: (...args) => mutate(walletClient, mutation.createAgent)(...args),
|
|
1216
1574
|
setAgentTemplate: (...args) => mutate(walletClient, mutation.setAgentTemplate)(...args),
|
|
1217
1575
|
setTrialFundsData: (...args) => mutate(walletClient, mutation.setTrialFundsData)(...args),
|
|
1576
|
+
recoverTrialFunds: (...args) => mutate(walletClient, mutation.recoverTrialFunds)(...args),
|
|
1577
|
+
recoverTrialFundsMany: (...args) => mutate(walletClient, mutation.recoverTrialFundsMany)(...args),
|
|
1578
|
+
setRecoveryCaller: (...args) => mutate(walletClient, mutation.setRecoveryCaller)(...args),
|
|
1218
1579
|
setWhitelist: (...args) => mutate(walletClient, mutation.setWhitelist)(...args),
|
|
1219
1580
|
setShouldEnforceWhitelist: (...args) => mutate(walletClient, mutation.setShouldEnforceWhitelist)(...args),
|
|
1220
1581
|
setNumUserWalletsAllowed: (...args) => mutate(walletClient, mutation.setNumUserWalletsAllowed)(...args),
|
|
1221
1582
|
setNumAgentsAllowed: (...args) => mutate(walletClient, mutation.setNumAgentsAllowed)(...args),
|
|
1222
1583
|
setAgentBlacklist: (...args) => mutate(walletClient, mutation.setAgentBlacklist)(...args),
|
|
1223
1584
|
recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
|
|
1224
|
-
|
|
1585
|
+
setCanCriticalCancel: (...args) => mutate(walletClient, mutation.setCanCriticalCancel)(...args),
|
|
1225
1586
|
activate: (...args) => mutate(walletClient, mutation.activate)(...args),
|
|
1226
1587
|
};
|
|
1227
1588
|
}
|