@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
@@ -279,7 +279,7 @@ export const abi = [
279
279
  "type": "event"
280
280
  },
281
281
  {
282
- "name": "PayeePending",
282
+ "name": "PendingGlobalPayeeSettingsSet",
283
283
  "inputs": [
284
284
  {
285
285
  "name": "user",
@@ -287,82 +287,17 @@ export const abi = [
287
287
  "indexed": true
288
288
  },
289
289
  {
290
- "name": "payee",
290
+ "name": "initiatedBy",
291
291
  "type": "address",
292
292
  "indexed": true
293
293
  },
294
294
  {
295
- "name": "confirmBlock",
296
- "type": "uint256",
297
- "indexed": false
298
- },
299
- {
300
- "name": "addedBy",
301
- "type": "address",
302
- "indexed": true
303
- },
304
- {
305
- "name": "canPull",
306
- "type": "bool",
307
- "indexed": false
308
- },
309
- {
310
- "name": "periodLength",
311
- "type": "uint256",
312
- "indexed": false
313
- },
314
- {
315
- "name": "maxNumTxsPerPeriod",
316
- "type": "uint256",
317
- "indexed": false
318
- },
319
- {
320
- "name": "txCooldownBlocks",
321
- "type": "uint256",
322
- "indexed": false
323
- },
324
- {
325
- "name": "failOnZeroPrice",
326
- "type": "bool",
327
- "indexed": false
328
- },
329
- {
330
- "name": "primaryAsset",
331
- "type": "address",
332
- "indexed": false
333
- },
334
- {
335
- "name": "onlyPrimaryAsset",
336
- "type": "bool",
337
- "indexed": false
338
- },
339
- {
340
- "name": "unitPerTxCap",
341
- "type": "uint256",
342
- "indexed": false
343
- },
344
- {
345
- "name": "unitPerPeriodCap",
346
- "type": "uint256",
347
- "indexed": false
348
- },
349
- {
350
- "name": "unitLifetimeCap",
351
- "type": "uint256",
352
- "indexed": false
353
- },
354
- {
355
- "name": "usdPerTxCap",
356
- "type": "uint256",
357
- "indexed": false
358
- },
359
- {
360
- "name": "usdPerPeriodCap",
295
+ "name": "initiatedBlock",
361
296
  "type": "uint256",
362
297
  "indexed": false
363
298
  },
364
299
  {
365
- "name": "usdLifetimeCap",
300
+ "name": "confirmBlock",
366
301
  "type": "uint256",
367
302
  "indexed": false
368
303
  }
@@ -371,7 +306,7 @@ export const abi = [
371
306
  "type": "event"
372
307
  },
373
308
  {
374
- "name": "PayeePendingConfirmed",
309
+ "name": "PendingGlobalPayeeSettingsConfirmed",
375
310
  "inputs": [
376
311
  {
377
312
  "name": "user",
@@ -379,7 +314,7 @@ export const abi = [
379
314
  "indexed": true
380
315
  },
381
316
  {
382
- "name": "payee",
317
+ "name": "confirmedBy",
383
318
  "type": "address",
384
319
  "indexed": true
385
320
  },
@@ -392,18 +327,13 @@ export const abi = [
392
327
  "name": "confirmBlock",
393
328
  "type": "uint256",
394
329
  "indexed": false
395
- },
396
- {
397
- "name": "confirmedBy",
398
- "type": "address",
399
- "indexed": true
400
330
  }
401
331
  ],
402
332
  "anonymous": false,
403
333
  "type": "event"
404
334
  },
405
335
  {
406
- "name": "PayeePendingCancelled",
336
+ "name": "PendingGlobalPayeeSettingsCancelled",
407
337
  "inputs": [
408
338
  {
409
339
  "name": "user",
@@ -411,7 +341,7 @@ export const abi = [
411
341
  "indexed": true
412
342
  },
413
343
  {
414
- "name": "payee",
344
+ "name": "cancelledBy",
415
345
  "type": "address",
416
346
  "indexed": true
417
347
  },
@@ -424,11 +354,6 @@ export const abi = [
424
354
  "name": "confirmBlock",
425
355
  "type": "uint256",
426
356
  "indexed": false
427
- },
428
- {
429
- "name": "cancelledBy",
430
- "type": "address",
431
- "indexed": true
432
357
  }
433
358
  ],
434
359
  "anonymous": false,
@@ -500,79 +425,11 @@ export const abi = [
500
425
  {
501
426
  "stateMutability": "nonpayable",
502
427
  "type": "function",
503
- "name": "addPayee",
428
+ "name": "confirmPendingGlobalPayeeSettings",
504
429
  "inputs": [
505
430
  {
506
431
  "name": "_userWallet",
507
432
  "type": "address"
508
- },
509
- {
510
- "name": "_payee",
511
- "type": "address"
512
- },
513
- {
514
- "name": "_canPull",
515
- "type": "bool"
516
- },
517
- {
518
- "name": "_periodLength",
519
- "type": "uint256"
520
- },
521
- {
522
- "name": "_maxNumTxsPerPeriod",
523
- "type": "uint256"
524
- },
525
- {
526
- "name": "_txCooldownBlocks",
527
- "type": "uint256"
528
- },
529
- {
530
- "name": "_failOnZeroPrice",
531
- "type": "bool"
532
- },
533
- {
534
- "name": "_primaryAsset",
535
- "type": "address"
536
- },
537
- {
538
- "name": "_onlyPrimaryAsset",
539
- "type": "bool"
540
- },
541
- {
542
- "name": "_unitLimits",
543
- "type": "tuple",
544
- "components": [
545
- {
546
- "name": "perTxCap",
547
- "type": "uint256"
548
- },
549
- {
550
- "name": "perPeriodCap",
551
- "type": "uint256"
552
- },
553
- {
554
- "name": "lifetimeCap",
555
- "type": "uint256"
556
- }
557
- ]
558
- },
559
- {
560
- "name": "_usdLimits",
561
- "type": "tuple",
562
- "components": [
563
- {
564
- "name": "perTxCap",
565
- "type": "uint256"
566
- },
567
- {
568
- "name": "perPeriodCap",
569
- "type": "uint256"
570
- },
571
- {
572
- "name": "lifetimeCap",
573
- "type": "uint256"
574
- }
575
- ]
576
433
  }
577
434
  ],
578
435
  "outputs": [
@@ -585,83 +442,11 @@ export const abi = [
585
442
  {
586
443
  "stateMutability": "nonpayable",
587
444
  "type": "function",
588
- "name": "addPayee",
445
+ "name": "cancelPendingGlobalPayeeSettings",
589
446
  "inputs": [
590
447
  {
591
448
  "name": "_userWallet",
592
449
  "type": "address"
593
- },
594
- {
595
- "name": "_payee",
596
- "type": "address"
597
- },
598
- {
599
- "name": "_canPull",
600
- "type": "bool"
601
- },
602
- {
603
- "name": "_periodLength",
604
- "type": "uint256"
605
- },
606
- {
607
- "name": "_maxNumTxsPerPeriod",
608
- "type": "uint256"
609
- },
610
- {
611
- "name": "_txCooldownBlocks",
612
- "type": "uint256"
613
- },
614
- {
615
- "name": "_failOnZeroPrice",
616
- "type": "bool"
617
- },
618
- {
619
- "name": "_primaryAsset",
620
- "type": "address"
621
- },
622
- {
623
- "name": "_onlyPrimaryAsset",
624
- "type": "bool"
625
- },
626
- {
627
- "name": "_unitLimits",
628
- "type": "tuple",
629
- "components": [
630
- {
631
- "name": "perTxCap",
632
- "type": "uint256"
633
- },
634
- {
635
- "name": "perPeriodCap",
636
- "type": "uint256"
637
- },
638
- {
639
- "name": "lifetimeCap",
640
- "type": "uint256"
641
- }
642
- ]
643
- },
644
- {
645
- "name": "_usdLimits",
646
- "type": "tuple",
647
- "components": [
648
- {
649
- "name": "perTxCap",
650
- "type": "uint256"
651
- },
652
- {
653
- "name": "perPeriodCap",
654
- "type": "uint256"
655
- },
656
- {
657
- "name": "lifetimeCap",
658
- "type": "uint256"
659
- }
660
- ]
661
- },
662
- {
663
- "name": "_startDelay",
664
- "type": "uint256"
665
450
  }
666
451
  ],
667
452
  "outputs": [
@@ -747,14 +532,6 @@ export const abi = [
747
532
  "type": "uint256"
748
533
  }
749
534
  ]
750
- },
751
- {
752
- "name": "_startDelay",
753
- "type": "uint256"
754
- },
755
- {
756
- "name": "_activationLength",
757
- "type": "uint256"
758
535
  }
759
536
  ],
760
537
  "outputs": [
@@ -767,7 +544,7 @@ export const abi = [
767
544
  {
768
545
  "stateMutability": "nonpayable",
769
546
  "type": "function",
770
- "name": "updatePayee",
547
+ "name": "addPayee",
771
548
  "inputs": [
772
549
  {
773
550
  "name": "_userWallet",
@@ -840,27 +617,10 @@ export const abi = [
840
617
  "type": "uint256"
841
618
  }
842
619
  ]
843
- }
844
- ],
845
- "outputs": [
846
- {
847
- "name": "",
848
- "type": "bool"
849
- }
850
- ]
851
- },
852
- {
853
- "stateMutability": "nonpayable",
854
- "type": "function",
855
- "name": "removePayee",
856
- "inputs": [
857
- {
858
- "name": "_userWallet",
859
- "type": "address"
860
620
  },
861
621
  {
862
- "name": "_payee",
863
- "type": "address"
622
+ "name": "_startDelay",
623
+ "type": "uint256"
864
624
  }
865
625
  ],
866
626
  "outputs": [
@@ -873,7 +633,7 @@ export const abi = [
873
633
  {
874
634
  "stateMutability": "nonpayable",
875
635
  "type": "function",
876
- "name": "addPendingPayee",
636
+ "name": "addPayee",
877
637
  "inputs": [
878
638
  {
879
639
  "name": "_userWallet",
@@ -946,94 +706,13 @@ export const abi = [
946
706
  "type": "uint256"
947
707
  }
948
708
  ]
949
- }
950
- ],
951
- "outputs": [
952
- {
953
- "name": "",
954
- "type": "bool"
955
- }
956
- ]
957
- },
958
- {
959
- "stateMutability": "nonpayable",
960
- "type": "function",
961
- "name": "addPendingPayee",
962
- "inputs": [
963
- {
964
- "name": "_userWallet",
965
- "type": "address"
966
- },
967
- {
968
- "name": "_payee",
969
- "type": "address"
970
- },
971
- {
972
- "name": "_canPull",
973
- "type": "bool"
974
- },
975
- {
976
- "name": "_periodLength",
977
- "type": "uint256"
978
- },
979
- {
980
- "name": "_maxNumTxsPerPeriod",
981
- "type": "uint256"
982
709
  },
983
710
  {
984
- "name": "_txCooldownBlocks",
711
+ "name": "_startDelay",
985
712
  "type": "uint256"
986
713
  },
987
714
  {
988
- "name": "_failOnZeroPrice",
989
- "type": "bool"
990
- },
991
- {
992
- "name": "_primaryAsset",
993
- "type": "address"
994
- },
995
- {
996
- "name": "_onlyPrimaryAsset",
997
- "type": "bool"
998
- },
999
- {
1000
- "name": "_unitLimits",
1001
- "type": "tuple",
1002
- "components": [
1003
- {
1004
- "name": "perTxCap",
1005
- "type": "uint256"
1006
- },
1007
- {
1008
- "name": "perPeriodCap",
1009
- "type": "uint256"
1010
- },
1011
- {
1012
- "name": "lifetimeCap",
1013
- "type": "uint256"
1014
- }
1015
- ]
1016
- },
1017
- {
1018
- "name": "_usdLimits",
1019
- "type": "tuple",
1020
- "components": [
1021
- {
1022
- "name": "perTxCap",
1023
- "type": "uint256"
1024
- },
1025
- {
1026
- "name": "perPeriodCap",
1027
- "type": "uint256"
1028
- },
1029
- {
1030
- "name": "lifetimeCap",
1031
- "type": "uint256"
1032
- }
1033
- ]
1034
- },
1035
- {
1036
- "name": "_startDelay",
715
+ "name": "_activationLength",
1037
716
  "type": "uint256"
1038
717
  }
1039
718
  ],
@@ -1047,7 +726,7 @@ export const abi = [
1047
726
  {
1048
727
  "stateMutability": "nonpayable",
1049
728
  "type": "function",
1050
- "name": "addPendingPayee",
729
+ "name": "updatePayee",
1051
730
  "inputs": [
1052
731
  {
1053
732
  "name": "_userWallet",
@@ -1120,14 +799,6 @@ export const abi = [
1120
799
  "type": "uint256"
1121
800
  }
1122
801
  ]
1123
- },
1124
- {
1125
- "name": "_startDelay",
1126
- "type": "uint256"
1127
- },
1128
- {
1129
- "name": "_activationLength",
1130
- "type": "uint256"
1131
802
  }
1132
803
  ],
1133
804
  "outputs": [
@@ -1140,28 +811,7 @@ export const abi = [
1140
811
  {
1141
812
  "stateMutability": "nonpayable",
1142
813
  "type": "function",
1143
- "name": "confirmPendingPayee",
1144
- "inputs": [
1145
- {
1146
- "name": "_userWallet",
1147
- "type": "address"
1148
- },
1149
- {
1150
- "name": "_payee",
1151
- "type": "address"
1152
- }
1153
- ],
1154
- "outputs": [
1155
- {
1156
- "name": "",
1157
- "type": "bool"
1158
- }
1159
- ]
1160
- },
1161
- {
1162
- "stateMutability": "nonpayable",
1163
- "type": "function",
1164
- "name": "cancelPendingPayee",
814
+ "name": "removePayee",
1165
815
  "inputs": [
1166
816
  {
1167
817
  "name": "_userWallet",
@@ -1531,31 +1181,6 @@ export const abi = [
1531
1181
  }
1532
1182
  ]
1533
1183
  },
1534
- {
1535
- "stateMutability": "view",
1536
- "type": "function",
1537
- "name": "canAddPendingPayee",
1538
- "inputs": [
1539
- {
1540
- "name": "_userWallet",
1541
- "type": "address"
1542
- },
1543
- {
1544
- "name": "_payee",
1545
- "type": "address"
1546
- },
1547
- {
1548
- "name": "_caller",
1549
- "type": "address"
1550
- }
1551
- ],
1552
- "outputs": [
1553
- {
1554
- "name": "",
1555
- "type": "bool"
1556
- }
1557
- ]
1558
- },
1559
1184
  {
1560
1185
  "stateMutability": "view",
1561
1186
  "type": "function",
@@ -1654,6 +1279,10 @@ export const abi = [
1654
1279
  "name": "isWhitelisted",
1655
1280
  "type": "bool"
1656
1281
  },
1282
+ {
1283
+ "name": "isManager",
1284
+ "type": "bool"
1285
+ },
1657
1286
  {
1658
1287
  "name": "isExistingCheque",
1659
1288
  "type": "bool"
@@ -1953,6 +1582,93 @@ export const abi = [
1953
1582
  }
1954
1583
  ]
1955
1584
  },
1585
+ {
1586
+ "stateMutability": "view",
1587
+ "type": "function",
1588
+ "name": "pendingGlobalPayeeSettings",
1589
+ "inputs": [
1590
+ {
1591
+ "name": "arg0",
1592
+ "type": "address"
1593
+ }
1594
+ ],
1595
+ "outputs": [
1596
+ {
1597
+ "name": "",
1598
+ "type": "tuple",
1599
+ "components": [
1600
+ {
1601
+ "name": "settings",
1602
+ "type": "tuple",
1603
+ "components": [
1604
+ {
1605
+ "name": "defaultPeriodLength",
1606
+ "type": "uint256"
1607
+ },
1608
+ {
1609
+ "name": "startDelay",
1610
+ "type": "uint256"
1611
+ },
1612
+ {
1613
+ "name": "activationLength",
1614
+ "type": "uint256"
1615
+ },
1616
+ {
1617
+ "name": "maxNumTxsPerPeriod",
1618
+ "type": "uint256"
1619
+ },
1620
+ {
1621
+ "name": "txCooldownBlocks",
1622
+ "type": "uint256"
1623
+ },
1624
+ {
1625
+ "name": "failOnZeroPrice",
1626
+ "type": "bool"
1627
+ },
1628
+ {
1629
+ "name": "usdLimits",
1630
+ "type": "tuple",
1631
+ "components": [
1632
+ {
1633
+ "name": "perTxCap",
1634
+ "type": "uint256"
1635
+ },
1636
+ {
1637
+ "name": "perPeriodCap",
1638
+ "type": "uint256"
1639
+ },
1640
+ {
1641
+ "name": "lifetimeCap",
1642
+ "type": "uint256"
1643
+ }
1644
+ ]
1645
+ },
1646
+ {
1647
+ "name": "canPayOwner",
1648
+ "type": "bool"
1649
+ },
1650
+ {
1651
+ "name": "canPull",
1652
+ "type": "bool"
1653
+ }
1654
+ ]
1655
+ },
1656
+ {
1657
+ "name": "initiatedBlock",
1658
+ "type": "uint256"
1659
+ },
1660
+ {
1661
+ "name": "confirmBlock",
1662
+ "type": "uint256"
1663
+ },
1664
+ {
1665
+ "name": "currentOwner",
1666
+ "type": "address"
1667
+ }
1668
+ ]
1669
+ }
1670
+ ]
1671
+ },
1956
1672
  {
1957
1673
  "stateMutability": "nonpayable",
1958
1674
  "type": "constructor",
@@ -2016,7 +1732,6 @@ function getRequest(method, args, contractAddressOrOptions) {
2016
1732
  export const call = {
2017
1733
  isValidNewPayee: (...args) => getRequest('isValidNewPayee', args),
2018
1734
  isValidPayeeUpdate: (...args) => getRequest('isValidPayeeUpdate', args),
2019
- canAddPendingPayee: (...args) => getRequest('canAddPendingPayee', args),
2020
1735
  isValidGlobalPayeeSettings: (...args) => getRequest('isValidGlobalPayeeSettings', args),
2021
1736
  getPayeeConfig: (...args) => getRequest('getPayeeConfig', args),
2022
1737
  createDefaultGlobalPayeeSettings: (...args) => getRequest('createDefaultGlobalPayeeSettings', args),
@@ -2026,6 +1741,7 @@ export const call = {
2026
1741
  MIN_ACTIVATION_LENGTH: (...args) => getRequest('MIN_ACTIVATION_LENGTH', args),
2027
1742
  MAX_ACTIVATION_LENGTH: (...args) => getRequest('MAX_ACTIVATION_LENGTH', args),
2028
1743
  MAX_START_DELAY: (...args) => getRequest('MAX_START_DELAY', args),
1744
+ pendingGlobalPayeeSettings: (...args) => getRequest('pendingGlobalPayeeSettings', args),
2029
1745
  };
2030
1746
  function getMutation(functionName) {
2031
1747
  return {
@@ -2038,12 +1754,11 @@ function getMutation(functionName) {
2038
1754
  }
2039
1755
  export const mutation = {
2040
1756
  setGlobalPayeeSettings: getMutation('setGlobalPayeeSettings'),
1757
+ confirmPendingGlobalPayeeSettings: getMutation('confirmPendingGlobalPayeeSettings'),
1758
+ cancelPendingGlobalPayeeSettings: getMutation('cancelPendingGlobalPayeeSettings'),
2041
1759
  addPayee: getMutation('addPayee'),
2042
1760
  updatePayee: getMutation('updatePayee'),
2043
1761
  removePayee: getMutation('removePayee'),
2044
- addPendingPayee: getMutation('addPendingPayee'),
2045
- confirmPendingPayee: getMutation('confirmPendingPayee'),
2046
- cancelPendingPayee: getMutation('cancelPendingPayee'),
2047
1762
  };
2048
1763
  export function parseEvents(eventName, events) {
2049
1764
  return events.map((event) => {
@@ -2069,14 +1784,13 @@ export function toSdk(publicClient, walletClient, addressResolver) {
2069
1784
  PayeeUpdated: { topic: getEventTopic('PayeeUpdated'), parse: (events) => parseEvents('PayeeUpdated', events) },
2070
1785
  PayeeRemoved: { topic: getEventTopic('PayeeRemoved'), parse: (events) => parseEvents('PayeeRemoved', events) },
2071
1786
  GlobalPayeeSettingsModified: { topic: getEventTopic('GlobalPayeeSettingsModified'), parse: (events) => parseEvents('GlobalPayeeSettingsModified', events) },
2072
- PayeePending: { topic: getEventTopic('PayeePending'), parse: (events) => parseEvents('PayeePending', events) },
2073
- PayeePendingConfirmed: { topic: getEventTopic('PayeePendingConfirmed'), parse: (events) => parseEvents('PayeePendingConfirmed', events) },
2074
- PayeePendingCancelled: { topic: getEventTopic('PayeePendingCancelled'), parse: (events) => parseEvents('PayeePendingCancelled', events) },
1787
+ PendingGlobalPayeeSettingsSet: { topic: getEventTopic('PendingGlobalPayeeSettingsSet'), parse: (events) => parseEvents('PendingGlobalPayeeSettingsSet', events) },
1788
+ PendingGlobalPayeeSettingsConfirmed: { topic: getEventTopic('PendingGlobalPayeeSettingsConfirmed'), parse: (events) => parseEvents('PendingGlobalPayeeSettingsConfirmed', events) },
1789
+ PendingGlobalPayeeSettingsCancelled: { topic: getEventTopic('PendingGlobalPayeeSettingsCancelled'), parse: (events) => parseEvents('PendingGlobalPayeeSettingsCancelled', events) },
2075
1790
  },
2076
1791
  // Queries
2077
1792
  isValidNewPayee: (...args) => singleQuery(publicClient, call.isValidNewPayee(...args), {}, addressResolver),
2078
1793
  isValidPayeeUpdate: (...args) => singleQuery(publicClient, call.isValidPayeeUpdate(...args), {}, addressResolver),
2079
- canAddPendingPayee: (...args) => singleQuery(publicClient, call.canAddPendingPayee(...args), {}, addressResolver),
2080
1794
  isValidGlobalPayeeSettings: (...args) => singleQuery(publicClient, call.isValidGlobalPayeeSettings(...args), {}, addressResolver),
2081
1795
  getPayeeConfig: (...args) => singleQuery(publicClient, call.getPayeeConfig(...args), {}, addressResolver),
2082
1796
  createDefaultGlobalPayeeSettings: (...args) => singleQuery(publicClient, call.createDefaultGlobalPayeeSettings(...args), {}, addressResolver),
@@ -2086,13 +1800,13 @@ export function toSdk(publicClient, walletClient, addressResolver) {
2086
1800
  MIN_ACTIVATION_LENGTH: (...args) => singleQuery(publicClient, call.MIN_ACTIVATION_LENGTH(...args), {}, addressResolver),
2087
1801
  MAX_ACTIVATION_LENGTH: (...args) => singleQuery(publicClient, call.MAX_ACTIVATION_LENGTH(...args), {}, addressResolver),
2088
1802
  MAX_START_DELAY: (...args) => singleQuery(publicClient, call.MAX_START_DELAY(...args), {}, addressResolver),
1803
+ pendingGlobalPayeeSettings: (...args) => singleQuery(publicClient, call.pendingGlobalPayeeSettings(...args), {}, addressResolver),
2089
1804
  // Mutations
2090
1805
  setGlobalPayeeSettings: (...args) => mutate(walletClient, mutation.setGlobalPayeeSettings, { addressResolver })(...args),
1806
+ confirmPendingGlobalPayeeSettings: (...args) => mutate(walletClient, mutation.confirmPendingGlobalPayeeSettings, { addressResolver })(...args),
1807
+ cancelPendingGlobalPayeeSettings: (...args) => mutate(walletClient, mutation.cancelPendingGlobalPayeeSettings, { addressResolver })(...args),
2091
1808
  addPayee: (...args) => mutate(walletClient, mutation.addPayee, { addressResolver })(...args),
2092
1809
  updatePayee: (...args) => mutate(walletClient, mutation.updatePayee, { addressResolver })(...args),
2093
1810
  removePayee: (...args) => mutate(walletClient, mutation.removePayee, { addressResolver })(...args),
2094
- addPendingPayee: (...args) => mutate(walletClient, mutation.addPendingPayee, { addressResolver })(...args),
2095
- confirmPendingPayee: (...args) => mutate(walletClient, mutation.confirmPendingPayee, { addressResolver })(...args),
2096
- cancelPendingPayee: (...args) => mutate(walletClient, mutation.cancelPendingPayee, { addressResolver })(...args),
2097
1811
  };
2098
1812
  }