@underscore-finance/sdk 1.2.20-next.0 → 1.2.20-next.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 (93) hide show
  1. package/AGENTS.md +28 -18
  2. package/abis.json +23476 -12295
  3. package/dist/contracts/Addys.d.ts +124 -0
  4. package/dist/contracts/Addys.d.ts.map +1 -0
  5. package/dist/contracts/Addys.js +134 -0
  6. package/dist/contracts/AgentSenderGeneric.d.ts +795 -153
  7. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -1
  8. package/dist/contracts/AgentSenderGeneric.js +892 -97
  9. package/dist/contracts/AgentSenderSpecial.d.ts +127 -0
  10. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -1
  11. package/dist/contracts/AgentSenderSpecial.js +139 -0
  12. package/dist/contracts/AgentSenderSpecialAdmin.d.ts +984 -0
  13. package/dist/contracts/AgentSenderSpecialAdmin.d.ts.map +1 -0
  14. package/dist/contracts/AgentSenderSpecialAdmin.js +1185 -0
  15. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +1010 -75
  16. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +1 -1
  17. package/dist/contracts/AgentSenderSpecialSigHelper.js +1240 -0
  18. package/dist/contracts/AgentWrapper.d.ts +164 -6
  19. package/dist/contracts/AgentWrapper.d.ts.map +1 -1
  20. package/dist/contracts/AgentWrapper.js +219 -6
  21. package/dist/contracts/ChequeBook.d.ts +360 -204
  22. package/dist/contracts/ChequeBook.d.ts.map +1 -1
  23. package/dist/contracts/ChequeBook.js +507 -298
  24. package/dist/contracts/DefaultsLocal.d.ts +320 -0
  25. package/dist/contracts/DefaultsLocal.d.ts.map +1 -0
  26. package/dist/contracts/DefaultsLocal.js +350 -0
  27. package/dist/contracts/ERC20.d.ts +552 -27
  28. package/dist/contracts/ERC20.d.ts.map +1 -1
  29. package/dist/contracts/ERC20.js +713 -66
  30. package/dist/contracts/EarnVault.d.ts +284 -255
  31. package/dist/contracts/EarnVault.d.ts.map +1 -1
  32. package/dist/contracts/EarnVault.js +488 -456
  33. package/dist/contracts/EarnVaultAgent.d.ts +127 -0
  34. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -1
  35. package/dist/contracts/EarnVaultAgent.js +139 -0
  36. package/dist/contracts/EarnVaultWallet.d.ts +777 -0
  37. package/dist/contracts/EarnVaultWallet.d.ts.map +1 -0
  38. package/dist/contracts/EarnVaultWallet.js +987 -0
  39. package/dist/contracts/Erc20Token.d.ts +813 -0
  40. package/dist/contracts/Erc20Token.d.ts.map +1 -0
  41. package/dist/contracts/Erc20Token.js +1006 -0
  42. package/dist/contracts/HighCommand.d.ts +40 -0
  43. package/dist/contracts/HighCommand.d.ts.map +1 -1
  44. package/dist/contracts/HighCommand.js +45 -0
  45. package/dist/contracts/Kernel.d.ts +4 -0
  46. package/dist/contracts/Kernel.d.ts.map +1 -1
  47. package/dist/contracts/Kernel.js +4 -0
  48. package/dist/contracts/Ledger.d.ts +4 -75
  49. package/dist/contracts/Ledger.d.ts.map +1 -1
  50. package/dist/contracts/Ledger.js +4 -99
  51. package/dist/contracts/LevgVault.d.ts +299 -299
  52. package/dist/contracts/LevgVault.d.ts.map +1 -1
  53. package/dist/contracts/LevgVault.js +530 -530
  54. package/dist/contracts/LevgVaultAgent.d.ts +127 -69
  55. package/dist/contracts/LevgVaultAgent.d.ts.map +1 -1
  56. package/dist/contracts/LevgVaultAgent.js +134 -79
  57. package/dist/contracts/LevgVaultWallet.d.ts +1119 -0
  58. package/dist/contracts/LevgVaultWallet.d.ts.map +1 -0
  59. package/dist/contracts/LevgVaultWallet.js +1439 -0
  60. package/dist/contracts/LocalGov.d.ts +427 -0
  61. package/dist/contracts/LocalGov.d.ts.map +1 -0
  62. package/dist/contracts/LocalGov.js +507 -0
  63. package/dist/contracts/Migrator.d.ts +160 -0
  64. package/dist/contracts/Migrator.d.ts.map +1 -1
  65. package/dist/contracts/Migrator.js +187 -0
  66. package/dist/contracts/Ownership.d.ts +414 -0
  67. package/dist/contracts/Ownership.d.ts.map +1 -0
  68. package/dist/contracts/Ownership.js +472 -0
  69. package/dist/contracts/Paymaster.d.ts +119 -322
  70. package/dist/contracts/Paymaster.d.ts.map +1 -1
  71. package/dist/contracts/Paymaster.js +118 -404
  72. package/dist/contracts/Sentinel.d.ts +9 -6
  73. package/dist/contracts/Sentinel.d.ts.map +1 -1
  74. package/dist/contracts/Sentinel.js +8 -4
  75. package/dist/contracts/UndyToken.d.ts +821 -0
  76. package/dist/contracts/UndyToken.d.ts.map +1 -0
  77. package/dist/contracts/UndyToken.js +1017 -0
  78. package/dist/contracts/UserWalletConfig.d.ts +334 -317
  79. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  80. package/dist/contracts/UserWalletConfig.js +391 -371
  81. package/dist/contracts/UserWalletSignatureHelper.d.ts +1520 -514
  82. package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -1
  83. package/dist/contracts/UserWalletSignatureHelper.js +1906 -549
  84. package/dist/contracts/VaultErc20Token.d.ts +522 -0
  85. package/dist/contracts/VaultErc20Token.d.ts.map +1 -0
  86. package/dist/contracts/VaultErc20Token.js +658 -0
  87. package/dist/contracts/index.d.ts +10 -0
  88. package/dist/contracts/index.d.ts.map +1 -1
  89. package/dist/contracts/index.js +10 -0
  90. package/dist/contracts/sdk.d.ts +20 -0
  91. package/dist/contracts/sdk.d.ts.map +1 -1
  92. package/dist/contracts/sdk.js +20 -0
  93. package/package.json +1 -1
@@ -219,86 +219,34 @@ export declare const abi: readonly [{
219
219
  readonly anonymous: false;
220
220
  readonly type: "event";
221
221
  }, {
222
- readonly name: "PayeePending";
222
+ readonly name: "PendingGlobalPayeeSettingsSet";
223
223
  readonly inputs: readonly [{
224
224
  readonly name: "user";
225
225
  readonly type: "address";
226
226
  readonly indexed: true;
227
227
  }, {
228
- readonly name: "payee";
229
- readonly type: "address";
230
- readonly indexed: true;
231
- }, {
232
- readonly name: "confirmBlock";
233
- readonly type: "uint256";
234
- readonly indexed: false;
235
- }, {
236
- readonly name: "addedBy";
228
+ readonly name: "initiatedBy";
237
229
  readonly type: "address";
238
230
  readonly indexed: true;
239
231
  }, {
240
- readonly name: "canPull";
241
- readonly type: "bool";
242
- readonly indexed: false;
243
- }, {
244
- readonly name: "periodLength";
245
- readonly type: "uint256";
246
- readonly indexed: false;
247
- }, {
248
- readonly name: "maxNumTxsPerPeriod";
249
- readonly type: "uint256";
250
- readonly indexed: false;
251
- }, {
252
- readonly name: "txCooldownBlocks";
253
- readonly type: "uint256";
254
- readonly indexed: false;
255
- }, {
256
- readonly name: "failOnZeroPrice";
257
- readonly type: "bool";
258
- readonly indexed: false;
259
- }, {
260
- readonly name: "primaryAsset";
261
- readonly type: "address";
262
- readonly indexed: false;
263
- }, {
264
- readonly name: "onlyPrimaryAsset";
265
- readonly type: "bool";
266
- readonly indexed: false;
267
- }, {
268
- readonly name: "unitPerTxCap";
269
- readonly type: "uint256";
270
- readonly indexed: false;
271
- }, {
272
- readonly name: "unitPerPeriodCap";
273
- readonly type: "uint256";
274
- readonly indexed: false;
275
- }, {
276
- readonly name: "unitLifetimeCap";
277
- readonly type: "uint256";
278
- readonly indexed: false;
279
- }, {
280
- readonly name: "usdPerTxCap";
281
- readonly type: "uint256";
282
- readonly indexed: false;
283
- }, {
284
- readonly name: "usdPerPeriodCap";
232
+ readonly name: "initiatedBlock";
285
233
  readonly type: "uint256";
286
234
  readonly indexed: false;
287
235
  }, {
288
- readonly name: "usdLifetimeCap";
236
+ readonly name: "confirmBlock";
289
237
  readonly type: "uint256";
290
238
  readonly indexed: false;
291
239
  }];
292
240
  readonly anonymous: false;
293
241
  readonly type: "event";
294
242
  }, {
295
- readonly name: "PayeePendingConfirmed";
243
+ readonly name: "PendingGlobalPayeeSettingsConfirmed";
296
244
  readonly inputs: readonly [{
297
245
  readonly name: "user";
298
246
  readonly type: "address";
299
247
  readonly indexed: true;
300
248
  }, {
301
- readonly name: "payee";
249
+ readonly name: "confirmedBy";
302
250
  readonly type: "address";
303
251
  readonly indexed: true;
304
252
  }, {
@@ -309,21 +257,17 @@ export declare const abi: readonly [{
309
257
  readonly name: "confirmBlock";
310
258
  readonly type: "uint256";
311
259
  readonly indexed: false;
312
- }, {
313
- readonly name: "confirmedBy";
314
- readonly type: "address";
315
- readonly indexed: true;
316
260
  }];
317
261
  readonly anonymous: false;
318
262
  readonly type: "event";
319
263
  }, {
320
- readonly name: "PayeePendingCancelled";
264
+ readonly name: "PendingGlobalPayeeSettingsCancelled";
321
265
  readonly inputs: readonly [{
322
266
  readonly name: "user";
323
267
  readonly type: "address";
324
268
  readonly indexed: true;
325
269
  }, {
326
- readonly name: "payee";
270
+ readonly name: "cancelledBy";
327
271
  readonly type: "address";
328
272
  readonly indexed: true;
329
273
  }, {
@@ -334,10 +278,6 @@ export declare const abi: readonly [{
334
278
  readonly name: "confirmBlock";
335
279
  readonly type: "uint256";
336
280
  readonly indexed: false;
337
- }, {
338
- readonly name: "cancelledBy";
339
- readonly type: "address";
340
- readonly indexed: true;
341
281
  }];
342
282
  readonly anonymous: false;
343
283
  readonly type: "event";
@@ -390,60 +330,10 @@ export declare const abi: readonly [{
390
330
  }, {
391
331
  readonly stateMutability: "nonpayable";
392
332
  readonly type: "function";
393
- readonly name: "addPayee";
333
+ readonly name: "confirmPendingGlobalPayeeSettings";
394
334
  readonly inputs: readonly [{
395
335
  readonly name: "_userWallet";
396
336
  readonly type: "address";
397
- }, {
398
- readonly name: "_payee";
399
- readonly type: "address";
400
- }, {
401
- readonly name: "_canPull";
402
- readonly type: "bool";
403
- }, {
404
- readonly name: "_periodLength";
405
- readonly type: "uint256";
406
- }, {
407
- readonly name: "_maxNumTxsPerPeriod";
408
- readonly type: "uint256";
409
- }, {
410
- readonly name: "_txCooldownBlocks";
411
- readonly type: "uint256";
412
- }, {
413
- readonly name: "_failOnZeroPrice";
414
- readonly type: "bool";
415
- }, {
416
- readonly name: "_primaryAsset";
417
- readonly type: "address";
418
- }, {
419
- readonly name: "_onlyPrimaryAsset";
420
- readonly type: "bool";
421
- }, {
422
- readonly name: "_unitLimits";
423
- readonly type: "tuple";
424
- readonly components: readonly [{
425
- readonly name: "perTxCap";
426
- readonly type: "uint256";
427
- }, {
428
- readonly name: "perPeriodCap";
429
- readonly type: "uint256";
430
- }, {
431
- readonly name: "lifetimeCap";
432
- readonly type: "uint256";
433
- }];
434
- }, {
435
- readonly name: "_usdLimits";
436
- readonly type: "tuple";
437
- readonly components: readonly [{
438
- readonly name: "perTxCap";
439
- readonly type: "uint256";
440
- }, {
441
- readonly name: "perPeriodCap";
442
- readonly type: "uint256";
443
- }, {
444
- readonly name: "lifetimeCap";
445
- readonly type: "uint256";
446
- }];
447
337
  }];
448
338
  readonly outputs: readonly [{
449
339
  readonly name: "";
@@ -452,63 +342,10 @@ export declare const abi: readonly [{
452
342
  }, {
453
343
  readonly stateMutability: "nonpayable";
454
344
  readonly type: "function";
455
- readonly name: "addPayee";
345
+ readonly name: "cancelPendingGlobalPayeeSettings";
456
346
  readonly inputs: readonly [{
457
347
  readonly name: "_userWallet";
458
348
  readonly type: "address";
459
- }, {
460
- readonly name: "_payee";
461
- readonly type: "address";
462
- }, {
463
- readonly name: "_canPull";
464
- readonly type: "bool";
465
- }, {
466
- readonly name: "_periodLength";
467
- readonly type: "uint256";
468
- }, {
469
- readonly name: "_maxNumTxsPerPeriod";
470
- readonly type: "uint256";
471
- }, {
472
- readonly name: "_txCooldownBlocks";
473
- readonly type: "uint256";
474
- }, {
475
- readonly name: "_failOnZeroPrice";
476
- readonly type: "bool";
477
- }, {
478
- readonly name: "_primaryAsset";
479
- readonly type: "address";
480
- }, {
481
- readonly name: "_onlyPrimaryAsset";
482
- readonly type: "bool";
483
- }, {
484
- readonly name: "_unitLimits";
485
- readonly type: "tuple";
486
- readonly components: readonly [{
487
- readonly name: "perTxCap";
488
- readonly type: "uint256";
489
- }, {
490
- readonly name: "perPeriodCap";
491
- readonly type: "uint256";
492
- }, {
493
- readonly name: "lifetimeCap";
494
- readonly type: "uint256";
495
- }];
496
- }, {
497
- readonly name: "_usdLimits";
498
- readonly type: "tuple";
499
- readonly components: readonly [{
500
- readonly name: "perTxCap";
501
- readonly type: "uint256";
502
- }, {
503
- readonly name: "perPeriodCap";
504
- readonly type: "uint256";
505
- }, {
506
- readonly name: "lifetimeCap";
507
- readonly type: "uint256";
508
- }];
509
- }, {
510
- readonly name: "_startDelay";
511
- readonly type: "uint256";
512
349
  }];
513
350
  readonly outputs: readonly [{
514
351
  readonly name: "";
@@ -571,12 +408,6 @@ export declare const abi: readonly [{
571
408
  readonly name: "lifetimeCap";
572
409
  readonly type: "uint256";
573
410
  }];
574
- }, {
575
- readonly name: "_startDelay";
576
- readonly type: "uint256";
577
- }, {
578
- readonly name: "_activationLength";
579
- readonly type: "uint256";
580
411
  }];
581
412
  readonly outputs: readonly [{
582
413
  readonly name: "";
@@ -585,7 +416,7 @@ export declare const abi: readonly [{
585
416
  }, {
586
417
  readonly stateMutability: "nonpayable";
587
418
  readonly type: "function";
588
- readonly name: "updatePayee";
419
+ readonly name: "addPayee";
589
420
  readonly inputs: readonly [{
590
421
  readonly name: "_userWallet";
591
422
  readonly type: "address";
@@ -639,83 +470,9 @@ export declare const abi: readonly [{
639
470
  readonly name: "lifetimeCap";
640
471
  readonly type: "uint256";
641
472
  }];
642
- }];
643
- readonly outputs: readonly [{
644
- readonly name: "";
645
- readonly type: "bool";
646
- }];
647
- }, {
648
- readonly stateMutability: "nonpayable";
649
- readonly type: "function";
650
- readonly name: "removePayee";
651
- readonly inputs: readonly [{
652
- readonly name: "_userWallet";
653
- readonly type: "address";
654
- }, {
655
- readonly name: "_payee";
656
- readonly type: "address";
657
- }];
658
- readonly outputs: readonly [{
659
- readonly name: "";
660
- readonly type: "bool";
661
- }];
662
- }, {
663
- readonly stateMutability: "nonpayable";
664
- readonly type: "function";
665
- readonly name: "addPendingPayee";
666
- readonly inputs: readonly [{
667
- readonly name: "_userWallet";
668
- readonly type: "address";
669
- }, {
670
- readonly name: "_payee";
671
- readonly type: "address";
672
- }, {
673
- readonly name: "_canPull";
674
- readonly type: "bool";
675
- }, {
676
- readonly name: "_periodLength";
677
- readonly type: "uint256";
678
- }, {
679
- readonly name: "_maxNumTxsPerPeriod";
680
- readonly type: "uint256";
681
473
  }, {
682
- readonly name: "_txCooldownBlocks";
474
+ readonly name: "_startDelay";
683
475
  readonly type: "uint256";
684
- }, {
685
- readonly name: "_failOnZeroPrice";
686
- readonly type: "bool";
687
- }, {
688
- readonly name: "_primaryAsset";
689
- readonly type: "address";
690
- }, {
691
- readonly name: "_onlyPrimaryAsset";
692
- readonly type: "bool";
693
- }, {
694
- readonly name: "_unitLimits";
695
- readonly type: "tuple";
696
- readonly components: readonly [{
697
- readonly name: "perTxCap";
698
- readonly type: "uint256";
699
- }, {
700
- readonly name: "perPeriodCap";
701
- readonly type: "uint256";
702
- }, {
703
- readonly name: "lifetimeCap";
704
- readonly type: "uint256";
705
- }];
706
- }, {
707
- readonly name: "_usdLimits";
708
- readonly type: "tuple";
709
- readonly components: readonly [{
710
- readonly name: "perTxCap";
711
- readonly type: "uint256";
712
- }, {
713
- readonly name: "perPeriodCap";
714
- readonly type: "uint256";
715
- }, {
716
- readonly name: "lifetimeCap";
717
- readonly type: "uint256";
718
- }];
719
476
  }];
720
477
  readonly outputs: readonly [{
721
478
  readonly name: "";
@@ -724,7 +481,7 @@ export declare const abi: readonly [{
724
481
  }, {
725
482
  readonly stateMutability: "nonpayable";
726
483
  readonly type: "function";
727
- readonly name: "addPendingPayee";
484
+ readonly name: "addPayee";
728
485
  readonly inputs: readonly [{
729
486
  readonly name: "_userWallet";
730
487
  readonly type: "address";
@@ -781,6 +538,9 @@ export declare const abi: readonly [{
781
538
  }, {
782
539
  readonly name: "_startDelay";
783
540
  readonly type: "uint256";
541
+ }, {
542
+ readonly name: "_activationLength";
543
+ readonly type: "uint256";
784
544
  }];
785
545
  readonly outputs: readonly [{
786
546
  readonly name: "";
@@ -789,7 +549,7 @@ export declare const abi: readonly [{
789
549
  }, {
790
550
  readonly stateMutability: "nonpayable";
791
551
  readonly type: "function";
792
- readonly name: "addPendingPayee";
552
+ readonly name: "updatePayee";
793
553
  readonly inputs: readonly [{
794
554
  readonly name: "_userWallet";
795
555
  readonly type: "address";
@@ -843,12 +603,6 @@ export declare const abi: readonly [{
843
603
  readonly name: "lifetimeCap";
844
604
  readonly type: "uint256";
845
605
  }];
846
- }, {
847
- readonly name: "_startDelay";
848
- readonly type: "uint256";
849
- }, {
850
- readonly name: "_activationLength";
851
- readonly type: "uint256";
852
606
  }];
853
607
  readonly outputs: readonly [{
854
608
  readonly name: "";
@@ -857,22 +611,7 @@ export declare const abi: readonly [{
857
611
  }, {
858
612
  readonly stateMutability: "nonpayable";
859
613
  readonly type: "function";
860
- readonly name: "confirmPendingPayee";
861
- readonly inputs: readonly [{
862
- readonly name: "_userWallet";
863
- readonly type: "address";
864
- }, {
865
- readonly name: "_payee";
866
- readonly type: "address";
867
- }];
868
- readonly outputs: readonly [{
869
- readonly name: "";
870
- readonly type: "bool";
871
- }];
872
- }, {
873
- readonly stateMutability: "nonpayable";
874
- readonly type: "function";
875
- readonly name: "cancelPendingPayee";
614
+ readonly name: "removePayee";
876
615
  readonly inputs: readonly [{
877
616
  readonly name: "_userWallet";
878
617
  readonly type: "address";
@@ -1141,24 +880,6 @@ export declare const abi: readonly [{
1141
880
  readonly name: "";
1142
881
  readonly type: "bool";
1143
882
  }];
1144
- }, {
1145
- readonly stateMutability: "view";
1146
- readonly type: "function";
1147
- readonly name: "canAddPendingPayee";
1148
- readonly inputs: readonly [{
1149
- readonly name: "_userWallet";
1150
- readonly type: "address";
1151
- }, {
1152
- readonly name: "_payee";
1153
- readonly type: "address";
1154
- }, {
1155
- readonly name: "_caller";
1156
- readonly type: "address";
1157
- }];
1158
- readonly outputs: readonly [{
1159
- readonly name: "";
1160
- readonly type: "bool";
1161
- }];
1162
883
  }, {
1163
884
  readonly stateMutability: "view";
1164
885
  readonly type: "function";
@@ -1231,6 +952,9 @@ export declare const abi: readonly [{
1231
952
  }, {
1232
953
  readonly name: "isWhitelisted";
1233
954
  readonly type: "bool";
955
+ }, {
956
+ readonly name: "isManager";
957
+ readonly type: "bool";
1234
958
  }, {
1235
959
  readonly name: "isExistingCheque";
1236
960
  readonly type: "bool";
@@ -1450,6 +1174,69 @@ export declare const abi: readonly [{
1450
1174
  readonly name: "";
1451
1175
  readonly type: "uint256";
1452
1176
  }];
1177
+ }, {
1178
+ readonly stateMutability: "view";
1179
+ readonly type: "function";
1180
+ readonly name: "pendingGlobalPayeeSettings";
1181
+ readonly inputs: readonly [{
1182
+ readonly name: "arg0";
1183
+ readonly type: "address";
1184
+ }];
1185
+ readonly outputs: readonly [{
1186
+ readonly name: "";
1187
+ readonly type: "tuple";
1188
+ readonly components: readonly [{
1189
+ readonly name: "settings";
1190
+ readonly type: "tuple";
1191
+ readonly components: readonly [{
1192
+ readonly name: "defaultPeriodLength";
1193
+ readonly type: "uint256";
1194
+ }, {
1195
+ readonly name: "startDelay";
1196
+ readonly type: "uint256";
1197
+ }, {
1198
+ readonly name: "activationLength";
1199
+ readonly type: "uint256";
1200
+ }, {
1201
+ readonly name: "maxNumTxsPerPeriod";
1202
+ readonly type: "uint256";
1203
+ }, {
1204
+ readonly name: "txCooldownBlocks";
1205
+ readonly type: "uint256";
1206
+ }, {
1207
+ readonly name: "failOnZeroPrice";
1208
+ readonly type: "bool";
1209
+ }, {
1210
+ readonly name: "usdLimits";
1211
+ readonly type: "tuple";
1212
+ readonly components: readonly [{
1213
+ readonly name: "perTxCap";
1214
+ readonly type: "uint256";
1215
+ }, {
1216
+ readonly name: "perPeriodCap";
1217
+ readonly type: "uint256";
1218
+ }, {
1219
+ readonly name: "lifetimeCap";
1220
+ readonly type: "uint256";
1221
+ }];
1222
+ }, {
1223
+ readonly name: "canPayOwner";
1224
+ readonly type: "bool";
1225
+ }, {
1226
+ readonly name: "canPull";
1227
+ readonly type: "bool";
1228
+ }];
1229
+ }, {
1230
+ readonly name: "initiatedBlock";
1231
+ readonly type: "uint256";
1232
+ }, {
1233
+ readonly name: "confirmBlock";
1234
+ readonly type: "uint256";
1235
+ }, {
1236
+ readonly name: "currentOwner";
1237
+ readonly type: "address";
1238
+ }];
1239
+ }];
1453
1240
  }, {
1454
1241
  readonly stateMutability: "nonpayable";
1455
1242
  readonly type: "constructor";
@@ -1495,7 +1282,6 @@ export type Contract = {
1495
1282
  perPeriodCap: bigint;
1496
1283
  lifetimeCap: bigint;
1497
1284
  }) => Promise<boolean>;
1498
- canAddPendingPayee: (userWallet: `0x${string}`, payee: `0x${string}`, caller: `0x${string}`) => Promise<boolean>;
1499
1285
  isValidGlobalPayeeSettings: (userWallet: `0x${string}`, defaultPeriodLength: bigint, startDelay: bigint, activationLength: bigint, maxNumTxsPerPeriod: bigint, txCooldownBlocks: bigint, failOnZeroPrice: boolean, usdLimits: {
1500
1286
  perTxCap: bigint;
1501
1287
  perPeriodCap: bigint;
@@ -1506,6 +1292,7 @@ export type Contract = {
1506
1292
  wallet: `0x${string}`;
1507
1293
  isRegisteredPayee: boolean;
1508
1294
  isWhitelisted: boolean;
1295
+ isManager: boolean;
1509
1296
  isExistingCheque: boolean;
1510
1297
  payeeSettings: {
1511
1298
  startBlock: bigint;
@@ -1567,6 +1354,26 @@ export type Contract = {
1567
1354
  MIN_ACTIVATION_LENGTH: () => Promise<bigint>;
1568
1355
  MAX_ACTIVATION_LENGTH: () => Promise<bigint>;
1569
1356
  MAX_START_DELAY: () => Promise<bigint>;
1357
+ pendingGlobalPayeeSettings: (arg0: `0x${string}`) => Promise<{
1358
+ settings: {
1359
+ defaultPeriodLength: bigint;
1360
+ startDelay: bigint;
1361
+ activationLength: bigint;
1362
+ maxNumTxsPerPeriod: bigint;
1363
+ txCooldownBlocks: bigint;
1364
+ failOnZeroPrice: boolean;
1365
+ usdLimits: {
1366
+ perTxCap: bigint;
1367
+ perPeriodCap: bigint;
1368
+ lifetimeCap: bigint;
1369
+ };
1370
+ canPayOwner: boolean;
1371
+ canPull: boolean;
1372
+ };
1373
+ initiatedBlock: bigint;
1374
+ confirmBlock: bigint;
1375
+ currentOwner: `0x${string}`;
1376
+ }>;
1570
1377
  };
1571
1378
  mutations: {
1572
1379
  setGlobalPayeeSettings: (userWallet: `0x${string}`, defaultPeriodLength: bigint, startDelay: bigint, activationLength: bigint, maxNumTxsPerPeriod: bigint, txCooldownBlocks: bigint, failOnZeroPrice: boolean, usdLimits: {
@@ -1574,6 +1381,8 @@ export type Contract = {
1574
1381
  perPeriodCap: bigint;
1575
1382
  lifetimeCap: bigint;
1576
1383
  }, canPull: boolean) => Promise<boolean>;
1384
+ confirmPendingGlobalPayeeSettings: (userWallet: `0x${string}`) => Promise<boolean>;
1385
+ cancelPendingGlobalPayeeSettings: (userWallet: `0x${string}`) => Promise<boolean>;
1577
1386
  addPayee: (userWallet: `0x${string}`, payee: `0x${string}`, canPull: boolean, periodLength: bigint, maxNumTxsPerPeriod: bigint, txCooldownBlocks: bigint, failOnZeroPrice: boolean, primaryAsset: `0x${string}`, onlyPrimaryAsset: boolean, unitLimits: {
1578
1387
  perTxCap: bigint;
1579
1388
  perPeriodCap: bigint;
@@ -1593,26 +1402,15 @@ export type Contract = {
1593
1402
  lifetimeCap: bigint;
1594
1403
  }) => Promise<boolean>;
1595
1404
  removePayee: (userWallet: `0x${string}`, payee: `0x${string}`) => Promise<boolean>;
1596
- addPendingPayee: (userWallet: `0x${string}`, payee: `0x${string}`, canPull: boolean, periodLength: bigint, maxNumTxsPerPeriod: bigint, txCooldownBlocks: bigint, failOnZeroPrice: boolean, primaryAsset: `0x${string}`, onlyPrimaryAsset: boolean, unitLimits: {
1597
- perTxCap: bigint;
1598
- perPeriodCap: bigint;
1599
- lifetimeCap: bigint;
1600
- }, usdLimits: {
1601
- perTxCap: bigint;
1602
- perPeriodCap: bigint;
1603
- lifetimeCap: bigint;
1604
- }, startDelay?: bigint, activationLength?: bigint) => Promise<boolean>;
1605
- confirmPendingPayee: (userWallet: `0x${string}`, payee: `0x${string}`) => Promise<boolean>;
1606
- cancelPendingPayee: (userWallet: `0x${string}`, payee: `0x${string}`) => Promise<boolean>;
1607
1405
  };
1608
1406
  events: {
1609
1407
  PayeeAdded: (user: `0x${string}`, payee: `0x${string}`, startBlock: bigint, expiryBlock: bigint, canPull: boolean, periodLength: bigint, maxNumTxsPerPeriod: bigint, txCooldownBlocks: bigint, failOnZeroPrice: boolean, primaryAsset: `0x${string}`, onlyPrimaryAsset: boolean, unitPerTxCap: bigint, unitPerPeriodCap: bigint, unitLifetimeCap: bigint, usdPerTxCap: bigint, usdPerPeriodCap: bigint, usdLifetimeCap: bigint) => Promise<void>;
1610
1408
  PayeeUpdated: (user: `0x${string}`, payee: `0x${string}`, startBlock: bigint, expiryBlock: bigint, canPull: boolean, periodLength: bigint, maxNumTxsPerPeriod: bigint, txCooldownBlocks: bigint, failOnZeroPrice: boolean, primaryAsset: `0x${string}`, onlyPrimaryAsset: boolean, unitPerTxCap: bigint, unitPerPeriodCap: bigint, unitLifetimeCap: bigint, usdPerTxCap: bigint, usdPerPeriodCap: bigint, usdLifetimeCap: bigint) => Promise<void>;
1611
1409
  PayeeRemoved: (user: `0x${string}`, payee: `0x${string}`, removedBy: `0x${string}`) => Promise<void>;
1612
1410
  GlobalPayeeSettingsModified: (user: `0x${string}`, defaultPeriodLength: bigint, startDelay: bigint, activationLength: bigint, maxNumTxsPerPeriod: bigint, txCooldownBlocks: bigint, failOnZeroPrice: boolean, canPayOwner: boolean, canPull: boolean, usdPerTxCap: bigint, usdPerPeriodCap: bigint, usdLifetimeCap: bigint) => Promise<void>;
1613
- PayeePending: (user: `0x${string}`, payee: `0x${string}`, confirmBlock: bigint, addedBy: `0x${string}`, canPull: boolean, periodLength: bigint, maxNumTxsPerPeriod: bigint, txCooldownBlocks: bigint, failOnZeroPrice: boolean, primaryAsset: `0x${string}`, onlyPrimaryAsset: boolean, unitPerTxCap: bigint, unitPerPeriodCap: bigint, unitLifetimeCap: bigint, usdPerTxCap: bigint, usdPerPeriodCap: bigint, usdLifetimeCap: bigint) => Promise<void>;
1614
- PayeePendingConfirmed: (user: `0x${string}`, payee: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, confirmedBy: `0x${string}`) => Promise<void>;
1615
- PayeePendingCancelled: (user: `0x${string}`, payee: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint, cancelledBy: `0x${string}`) => Promise<void>;
1411
+ PendingGlobalPayeeSettingsSet: (user: `0x${string}`, initiatedBy: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
1412
+ PendingGlobalPayeeSettingsConfirmed: (user: `0x${string}`, confirmedBy: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
1413
+ PendingGlobalPayeeSettingsCancelled: (user: `0x${string}`, cancelledBy: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
1616
1414
  };
1617
1415
  };
1618
1416
  export type Calls = keyof Contract['calls'];
@@ -1676,22 +1474,21 @@ export type SDK = {
1676
1474
  topic: Address;
1677
1475
  parse: (events: (RpcLog | Log)[]) => ParsedEvent<'GlobalPayeeSettingsModified'>[];
1678
1476
  };
1679
- PayeePending: {
1477
+ PendingGlobalPayeeSettingsSet: {
1680
1478
  topic: Address;
1681
- parse: (events: (RpcLog | Log)[]) => ParsedEvent<'PayeePending'>[];
1479
+ parse: (events: (RpcLog | Log)[]) => ParsedEvent<'PendingGlobalPayeeSettingsSet'>[];
1682
1480
  };
1683
- PayeePendingConfirmed: {
1481
+ PendingGlobalPayeeSettingsConfirmed: {
1684
1482
  topic: Address;
1685
- parse: (events: (RpcLog | Log)[]) => ParsedEvent<'PayeePendingConfirmed'>[];
1483
+ parse: (events: (RpcLog | Log)[]) => ParsedEvent<'PendingGlobalPayeeSettingsConfirmed'>[];
1686
1484
  };
1687
- PayeePendingCancelled: {
1485
+ PendingGlobalPayeeSettingsCancelled: {
1688
1486
  topic: Address;
1689
- parse: (events: (RpcLog | Log)[]) => ParsedEvent<'PayeePendingCancelled'>[];
1487
+ parse: (events: (RpcLog | Log)[]) => ParsedEvent<'PendingGlobalPayeeSettingsCancelled'>[];
1690
1488
  };
1691
1489
  };
1692
1490
  isValidNewPayee: (...args: ExtractArgs<Contract['calls']['isValidNewPayee']>) => Promise<CallReturn<'isValidNewPayee'>>;
1693
1491
  isValidPayeeUpdate: (...args: ExtractArgs<Contract['calls']['isValidPayeeUpdate']>) => Promise<CallReturn<'isValidPayeeUpdate'>>;
1694
- canAddPendingPayee: (...args: ExtractArgs<Contract['calls']['canAddPendingPayee']>) => Promise<CallReturn<'canAddPendingPayee'>>;
1695
1492
  isValidGlobalPayeeSettings: (...args: ExtractArgs<Contract['calls']['isValidGlobalPayeeSettings']>) => Promise<CallReturn<'isValidGlobalPayeeSettings'>>;
1696
1493
  getPayeeConfig: (...args: ExtractArgs<Contract['calls']['getPayeeConfig']>) => Promise<CallReturn<'getPayeeConfig'>>;
1697
1494
  createDefaultGlobalPayeeSettings: (...args: ExtractArgs<Contract['calls']['createDefaultGlobalPayeeSettings']>) => Promise<CallReturn<'createDefaultGlobalPayeeSettings'>>;
@@ -1701,13 +1498,13 @@ export type SDK = {
1701
1498
  MIN_ACTIVATION_LENGTH: (...args: ExtractArgs<Contract['calls']['MIN_ACTIVATION_LENGTH']>) => Promise<CallReturn<'MIN_ACTIVATION_LENGTH'>>;
1702
1499
  MAX_ACTIVATION_LENGTH: (...args: ExtractArgs<Contract['calls']['MAX_ACTIVATION_LENGTH']>) => Promise<CallReturn<'MAX_ACTIVATION_LENGTH'>>;
1703
1500
  MAX_START_DELAY: (...args: ExtractArgs<Contract['calls']['MAX_START_DELAY']>) => Promise<CallReturn<'MAX_START_DELAY'>>;
1501
+ pendingGlobalPayeeSettings: (...args: ExtractArgs<Contract['calls']['pendingGlobalPayeeSettings']>) => Promise<CallReturn<'pendingGlobalPayeeSettings'>>;
1704
1502
  setGlobalPayeeSettings: (...args: ExtractArgs<Contract['mutations']['setGlobalPayeeSettings']>) => Promise<Address>;
1503
+ confirmPendingGlobalPayeeSettings: (...args: ExtractArgs<Contract['mutations']['confirmPendingGlobalPayeeSettings']>) => Promise<Address>;
1504
+ cancelPendingGlobalPayeeSettings: (...args: ExtractArgs<Contract['mutations']['cancelPendingGlobalPayeeSettings']>) => Promise<Address>;
1705
1505
  addPayee: (...args: ExtractArgs<Contract['mutations']['addPayee']>) => Promise<Address>;
1706
1506
  updatePayee: (...args: ExtractArgs<Contract['mutations']['updatePayee']>) => Promise<Address>;
1707
1507
  removePayee: (...args: ExtractArgs<Contract['mutations']['removePayee']>) => Promise<Address>;
1708
- addPendingPayee: (...args: ExtractArgs<Contract['mutations']['addPendingPayee']>) => Promise<Address>;
1709
- confirmPendingPayee: (...args: ExtractArgs<Contract['mutations']['confirmPendingPayee']>) => Promise<Address>;
1710
- cancelPendingPayee: (...args: ExtractArgs<Contract['mutations']['cancelPendingPayee']>) => Promise<Address>;
1711
1508
  };
1712
1509
  export declare function toSdk(publicClient?: PublicClient, walletClient?: WalletClient, addressResolver?: AddressResolverFunction): SDK;
1713
1510
  export {};