@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
@@ -206,6 +206,157 @@ export const abi = [
206
206
  "anonymous": false,
207
207
  "type": "event"
208
208
  },
209
+ {
210
+ "name": "ChequeSettingsPending",
211
+ "inputs": [
212
+ {
213
+ "name": "user",
214
+ "type": "address",
215
+ "indexed": true
216
+ },
217
+ {
218
+ "name": "initiatedBy",
219
+ "type": "address",
220
+ "indexed": true
221
+ },
222
+ {
223
+ "name": "confirmBlock",
224
+ "type": "uint256",
225
+ "indexed": false
226
+ },
227
+ {
228
+ "name": "maxNumActiveCheques",
229
+ "type": "uint256",
230
+ "indexed": false
231
+ },
232
+ {
233
+ "name": "maxChequeUsdValue",
234
+ "type": "uint256",
235
+ "indexed": false
236
+ },
237
+ {
238
+ "name": "instantUsdThreshold",
239
+ "type": "uint256",
240
+ "indexed": false
241
+ },
242
+ {
243
+ "name": "perPeriodPaidUsdCap",
244
+ "type": "uint256",
245
+ "indexed": false
246
+ },
247
+ {
248
+ "name": "maxNumChequesPaidPerPeriod",
249
+ "type": "uint256",
250
+ "indexed": false
251
+ },
252
+ {
253
+ "name": "payCooldownBlocks",
254
+ "type": "uint256",
255
+ "indexed": false
256
+ },
257
+ {
258
+ "name": "perPeriodCreatedUsdCap",
259
+ "type": "uint256",
260
+ "indexed": false
261
+ },
262
+ {
263
+ "name": "maxNumChequesCreatedPerPeriod",
264
+ "type": "uint256",
265
+ "indexed": false
266
+ },
267
+ {
268
+ "name": "createCooldownBlocks",
269
+ "type": "uint256",
270
+ "indexed": false
271
+ },
272
+ {
273
+ "name": "periodLength",
274
+ "type": "uint256",
275
+ "indexed": false
276
+ },
277
+ {
278
+ "name": "expensiveDelayBlocks",
279
+ "type": "uint256",
280
+ "indexed": false
281
+ },
282
+ {
283
+ "name": "defaultExpiryBlocks",
284
+ "type": "uint256",
285
+ "indexed": false
286
+ },
287
+ {
288
+ "name": "canManagersCreateCheques",
289
+ "type": "bool",
290
+ "indexed": false
291
+ },
292
+ {
293
+ "name": "canManagerPay",
294
+ "type": "bool",
295
+ "indexed": false
296
+ },
297
+ {
298
+ "name": "canBePulled",
299
+ "type": "bool",
300
+ "indexed": false
301
+ }
302
+ ],
303
+ "anonymous": false,
304
+ "type": "event"
305
+ },
306
+ {
307
+ "name": "ChequeSettingsPendingConfirmed",
308
+ "inputs": [
309
+ {
310
+ "name": "user",
311
+ "type": "address",
312
+ "indexed": true
313
+ },
314
+ {
315
+ "name": "initiatedBlock",
316
+ "type": "uint256",
317
+ "indexed": false
318
+ },
319
+ {
320
+ "name": "confirmBlock",
321
+ "type": "uint256",
322
+ "indexed": false
323
+ },
324
+ {
325
+ "name": "confirmedBy",
326
+ "type": "address",
327
+ "indexed": true
328
+ }
329
+ ],
330
+ "anonymous": false,
331
+ "type": "event"
332
+ },
333
+ {
334
+ "name": "ChequeSettingsPendingCancelled",
335
+ "inputs": [
336
+ {
337
+ "name": "user",
338
+ "type": "address",
339
+ "indexed": true
340
+ },
341
+ {
342
+ "name": "initiatedBlock",
343
+ "type": "uint256",
344
+ "indexed": false
345
+ },
346
+ {
347
+ "name": "confirmBlock",
348
+ "type": "uint256",
349
+ "indexed": false
350
+ },
351
+ {
352
+ "name": "cancelledBy",
353
+ "type": "address",
354
+ "indexed": true
355
+ }
356
+ ],
357
+ "anonymous": false,
358
+ "type": "event"
359
+ },
209
360
  {
210
361
  "stateMutability": "nonpayable",
211
362
  "type": "function",
@@ -782,50 +933,255 @@ export const abi = [
782
933
  ]
783
934
  },
784
935
  {
785
- "stateMutability": "nonpayable",
936
+ "stateMutability": "view",
786
937
  "type": "function",
787
- "name": "cancelCheque",
938
+ "name": "isValidNewCheque",
788
939
  "inputs": [
789
940
  {
790
- "name": "_userWallet",
941
+ "name": "_wallet",
791
942
  "type": "address"
792
943
  },
793
944
  {
794
- "name": "_recipient",
795
- "type": "address"
796
- }
797
- ],
798
- "outputs": [
799
- {
800
- "name": "",
801
- "type": "bool"
802
- }
803
- ]
804
- },
805
- {
806
- "stateMutability": "nonpayable",
807
- "type": "function",
808
- "name": "setChequeSettings",
809
- "inputs": [
810
- {
811
- "name": "_userWallet",
945
+ "name": "_walletConfig",
812
946
  "type": "address"
813
947
  },
814
948
  {
815
- "name": "_maxNumActiveCheques",
816
- "type": "uint256"
949
+ "name": "_owner",
950
+ "type": "address"
817
951
  },
818
952
  {
819
- "name": "_maxChequeUsdValue",
820
- "type": "uint256"
953
+ "name": "_isRecipientOnWhitelist",
954
+ "type": "bool"
821
955
  },
822
956
  {
823
- "name": "_instantUsdThreshold",
824
- "type": "uint256"
957
+ "name": "_chequeSettings",
958
+ "type": "tuple",
959
+ "components": [
960
+ {
961
+ "name": "maxNumActiveCheques",
962
+ "type": "uint256"
963
+ },
964
+ {
965
+ "name": "maxChequeUsdValue",
966
+ "type": "uint256"
967
+ },
968
+ {
969
+ "name": "instantUsdThreshold",
970
+ "type": "uint256"
971
+ },
972
+ {
973
+ "name": "perPeriodPaidUsdCap",
974
+ "type": "uint256"
975
+ },
976
+ {
977
+ "name": "maxNumChequesPaidPerPeriod",
978
+ "type": "uint256"
979
+ },
980
+ {
981
+ "name": "payCooldownBlocks",
982
+ "type": "uint256"
983
+ },
984
+ {
985
+ "name": "perPeriodCreatedUsdCap",
986
+ "type": "uint256"
987
+ },
988
+ {
989
+ "name": "maxNumChequesCreatedPerPeriod",
990
+ "type": "uint256"
991
+ },
992
+ {
993
+ "name": "createCooldownBlocks",
994
+ "type": "uint256"
995
+ },
996
+ {
997
+ "name": "periodLength",
998
+ "type": "uint256"
999
+ },
1000
+ {
1001
+ "name": "expensiveDelayBlocks",
1002
+ "type": "uint256"
1003
+ },
1004
+ {
1005
+ "name": "defaultExpiryBlocks",
1006
+ "type": "uint256"
1007
+ },
1008
+ {
1009
+ "name": "allowedAssets",
1010
+ "type": "address[]"
1011
+ },
1012
+ {
1013
+ "name": "canManagersCreateCheques",
1014
+ "type": "bool"
1015
+ },
1016
+ {
1017
+ "name": "canManagerPay",
1018
+ "type": "bool"
1019
+ },
1020
+ {
1021
+ "name": "canBePulled",
1022
+ "type": "bool"
1023
+ }
1024
+ ]
825
1025
  },
826
1026
  {
827
- "name": "_perPeriodPaidUsdCap",
828
- "type": "uint256"
1027
+ "name": "_chequeData",
1028
+ "type": "tuple",
1029
+ "components": [
1030
+ {
1031
+ "name": "numChequesPaidInPeriod",
1032
+ "type": "uint256"
1033
+ },
1034
+ {
1035
+ "name": "totalUsdValuePaidInPeriod",
1036
+ "type": "uint256"
1037
+ },
1038
+ {
1039
+ "name": "totalNumChequesPaid",
1040
+ "type": "uint256"
1041
+ },
1042
+ {
1043
+ "name": "totalUsdValuePaid",
1044
+ "type": "uint256"
1045
+ },
1046
+ {
1047
+ "name": "lastChequePaidBlock",
1048
+ "type": "uint256"
1049
+ },
1050
+ {
1051
+ "name": "numChequesCreatedInPeriod",
1052
+ "type": "uint256"
1053
+ },
1054
+ {
1055
+ "name": "totalUsdValueCreatedInPeriod",
1056
+ "type": "uint256"
1057
+ },
1058
+ {
1059
+ "name": "totalNumChequesCreated",
1060
+ "type": "uint256"
1061
+ },
1062
+ {
1063
+ "name": "totalUsdValueCreated",
1064
+ "type": "uint256"
1065
+ },
1066
+ {
1067
+ "name": "lastChequeCreatedBlock",
1068
+ "type": "uint256"
1069
+ },
1070
+ {
1071
+ "name": "periodStartBlock",
1072
+ "type": "uint256"
1073
+ }
1074
+ ]
1075
+ },
1076
+ {
1077
+ "name": "_isExistingCheque",
1078
+ "type": "bool"
1079
+ },
1080
+ {
1081
+ "name": "_numActiveCheques",
1082
+ "type": "uint256"
1083
+ },
1084
+ {
1085
+ "name": "_isExistingPayee",
1086
+ "type": "bool"
1087
+ },
1088
+ {
1089
+ "name": "_timeLock",
1090
+ "type": "uint256"
1091
+ },
1092
+ {
1093
+ "name": "_recipient",
1094
+ "type": "address"
1095
+ },
1096
+ {
1097
+ "name": "_asset",
1098
+ "type": "address"
1099
+ },
1100
+ {
1101
+ "name": "_amount",
1102
+ "type": "uint256"
1103
+ },
1104
+ {
1105
+ "name": "_unlockNumBlocks",
1106
+ "type": "uint256"
1107
+ },
1108
+ {
1109
+ "name": "_expiryNumBlocks",
1110
+ "type": "uint256"
1111
+ },
1112
+ {
1113
+ "name": "_canManagerPay",
1114
+ "type": "bool"
1115
+ },
1116
+ {
1117
+ "name": "_canBePulled",
1118
+ "type": "bool"
1119
+ },
1120
+ {
1121
+ "name": "_creator",
1122
+ "type": "address"
1123
+ },
1124
+ {
1125
+ "name": "_usdValue",
1126
+ "type": "uint256"
1127
+ },
1128
+ {
1129
+ "name": "_isRecipientManager",
1130
+ "type": "bool"
1131
+ }
1132
+ ],
1133
+ "outputs": [
1134
+ {
1135
+ "name": "",
1136
+ "type": "bool"
1137
+ }
1138
+ ]
1139
+ },
1140
+ {
1141
+ "stateMutability": "nonpayable",
1142
+ "type": "function",
1143
+ "name": "cancelCheque",
1144
+ "inputs": [
1145
+ {
1146
+ "name": "_userWallet",
1147
+ "type": "address"
1148
+ },
1149
+ {
1150
+ "name": "_recipient",
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": "setChequeSettings",
1165
+ "inputs": [
1166
+ {
1167
+ "name": "_userWallet",
1168
+ "type": "address"
1169
+ },
1170
+ {
1171
+ "name": "_maxNumActiveCheques",
1172
+ "type": "uint256"
1173
+ },
1174
+ {
1175
+ "name": "_maxChequeUsdValue",
1176
+ "type": "uint256"
1177
+ },
1178
+ {
1179
+ "name": "_instantUsdThreshold",
1180
+ "type": "uint256"
1181
+ },
1182
+ {
1183
+ "name": "_perPeriodPaidUsdCap",
1184
+ "type": "uint256"
829
1185
  },
830
1186
  {
831
1187
  "name": "_maxNumChequesPaidPerPeriod",
@@ -883,6 +1239,82 @@ export const abi = [
883
1239
  }
884
1240
  ]
885
1241
  },
1242
+ {
1243
+ "stateMutability": "view",
1244
+ "type": "function",
1245
+ "name": "hasPendingChequeSettings",
1246
+ "inputs": [
1247
+ {
1248
+ "name": "_userWallet",
1249
+ "type": "address"
1250
+ }
1251
+ ],
1252
+ "outputs": [
1253
+ {
1254
+ "name": "",
1255
+ "type": "bool"
1256
+ }
1257
+ ]
1258
+ },
1259
+ {
1260
+ "stateMutability": "view",
1261
+ "type": "function",
1262
+ "name": "pendingChequeSettingsMeta",
1263
+ "inputs": [
1264
+ {
1265
+ "name": "_userWallet",
1266
+ "type": "address"
1267
+ }
1268
+ ],
1269
+ "outputs": [
1270
+ {
1271
+ "name": "",
1272
+ "type": "uint256"
1273
+ },
1274
+ {
1275
+ "name": "",
1276
+ "type": "uint256"
1277
+ },
1278
+ {
1279
+ "name": "",
1280
+ "type": "address"
1281
+ }
1282
+ ]
1283
+ },
1284
+ {
1285
+ "stateMutability": "nonpayable",
1286
+ "type": "function",
1287
+ "name": "confirmPendingChequeSettings",
1288
+ "inputs": [
1289
+ {
1290
+ "name": "_userWallet",
1291
+ "type": "address"
1292
+ }
1293
+ ],
1294
+ "outputs": [
1295
+ {
1296
+ "name": "",
1297
+ "type": "bool"
1298
+ }
1299
+ ]
1300
+ },
1301
+ {
1302
+ "stateMutability": "nonpayable",
1303
+ "type": "function",
1304
+ "name": "cancelPendingChequeSettings",
1305
+ "inputs": [
1306
+ {
1307
+ "name": "_userWallet",
1308
+ "type": "address"
1309
+ }
1310
+ ],
1311
+ "outputs": [
1312
+ {
1313
+ "name": "",
1314
+ "type": "bool"
1315
+ }
1316
+ ]
1317
+ },
886
1318
  {
887
1319
  "stateMutability": "view",
888
1320
  "type": "function",
@@ -991,6 +1423,10 @@ export const abi = [
991
1423
  "name": "isCreatorManager",
992
1424
  "type": "bool"
993
1425
  },
1426
+ {
1427
+ "name": "isRecipientManager",
1428
+ "type": "bool"
1429
+ },
994
1430
  {
995
1431
  "name": "managerSettings",
996
1432
  "type": "tuple",
@@ -1451,274 +1887,16 @@ export const abi = [
1451
1887
  ]
1452
1888
  },
1453
1889
  {
1454
- "stateMutability": "nonpayable",
1455
- "type": "constructor",
1890
+ "stateMutability": "view",
1891
+ "type": "function",
1892
+ "name": "pendingChequeSettings",
1456
1893
  "inputs": [
1457
1894
  {
1458
- "name": "_undyHq",
1895
+ "name": "arg0",
1459
1896
  "type": "address"
1460
- },
1461
- {
1462
- "name": "_minChequePeriod",
1463
- "type": "uint256"
1464
- },
1465
- {
1466
- "name": "_maxChequePeriod",
1467
- "type": "uint256"
1468
- },
1469
- {
1470
- "name": "_minExpensiveChequeDelay",
1471
- "type": "uint256"
1472
- },
1473
- {
1474
- "name": "_maxUnlockBlocks",
1475
- "type": "uint256"
1476
- },
1477
- {
1478
- "name": "_maxExpiryBlocks",
1479
- "type": "uint256"
1480
- }
1481
- ],
1482
- "outputs": []
1483
- },
1484
- {
1485
- "name": "ChequeSettingsPending",
1486
- "inputs": [
1487
- {
1488
- "name": "user",
1489
- "type": "address",
1490
- "indexed": true
1491
- },
1492
- {
1493
- "name": "initiatedBy",
1494
- "type": "address",
1495
- "indexed": true
1496
- },
1497
- {
1498
- "name": "confirmBlock",
1499
- "type": "uint256",
1500
- "indexed": false
1501
- },
1502
- {
1503
- "name": "maxNumActiveCheques",
1504
- "type": "uint256",
1505
- "indexed": false
1506
- },
1507
- {
1508
- "name": "maxChequeUsdValue",
1509
- "type": "uint256",
1510
- "indexed": false
1511
- },
1512
- {
1513
- "name": "instantUsdThreshold",
1514
- "type": "uint256",
1515
- "indexed": false
1516
- },
1517
- {
1518
- "name": "perPeriodPaidUsdCap",
1519
- "type": "uint256",
1520
- "indexed": false
1521
- },
1522
- {
1523
- "name": "maxNumChequesPaidPerPeriod",
1524
- "type": "uint256",
1525
- "indexed": false
1526
- },
1527
- {
1528
- "name": "payCooldownBlocks",
1529
- "type": "uint256",
1530
- "indexed": false
1531
- },
1532
- {
1533
- "name": "perPeriodCreatedUsdCap",
1534
- "type": "uint256",
1535
- "indexed": false
1536
- },
1537
- {
1538
- "name": "maxNumChequesCreatedPerPeriod",
1539
- "type": "uint256",
1540
- "indexed": false
1541
- },
1542
- {
1543
- "name": "createCooldownBlocks",
1544
- "type": "uint256",
1545
- "indexed": false
1546
- },
1547
- {
1548
- "name": "periodLength",
1549
- "type": "uint256",
1550
- "indexed": false
1551
- },
1552
- {
1553
- "name": "expensiveDelayBlocks",
1554
- "type": "uint256",
1555
- "indexed": false
1556
- },
1557
- {
1558
- "name": "defaultExpiryBlocks",
1559
- "type": "uint256",
1560
- "indexed": false
1561
- },
1562
- {
1563
- "name": "canManagersCreateCheques",
1564
- "type": "bool",
1565
- "indexed": false
1566
- },
1567
- {
1568
- "name": "canManagerPay",
1569
- "type": "bool",
1570
- "indexed": false
1571
- },
1572
- {
1573
- "name": "canBePulled",
1574
- "type": "bool",
1575
- "indexed": false
1576
- }
1577
- ],
1578
- "anonymous": false,
1579
- "type": "event"
1580
- },
1581
- {
1582
- "name": "ChequeSettingsPendingConfirmed",
1583
- "inputs": [
1584
- {
1585
- "name": "user",
1586
- "type": "address",
1587
- "indexed": true
1588
- },
1589
- {
1590
- "name": "initiatedBlock",
1591
- "type": "uint256",
1592
- "indexed": false
1593
- },
1594
- {
1595
- "name": "confirmBlock",
1596
- "type": "uint256",
1597
- "indexed": false
1598
- },
1599
- {
1600
- "name": "confirmedBy",
1601
- "type": "address",
1602
- "indexed": true
1603
- }
1604
- ],
1605
- "anonymous": false,
1606
- "type": "event"
1607
- },
1608
- {
1609
- "name": "ChequeSettingsPendingCancelled",
1610
- "inputs": [
1611
- {
1612
- "name": "user",
1613
- "type": "address",
1614
- "indexed": true
1615
- },
1616
- {
1617
- "name": "initiatedBlock",
1618
- "type": "uint256",
1619
- "indexed": false
1620
- },
1621
- {
1622
- "name": "confirmBlock",
1623
- "type": "uint256",
1624
- "indexed": false
1625
- },
1626
- {
1627
- "name": "cancelledBy",
1628
- "type": "address",
1629
- "indexed": true
1630
- }
1631
- ],
1632
- "anonymous": false,
1633
- "type": "event"
1634
- },
1635
- {
1636
- "stateMutability": "view",
1637
- "type": "function",
1638
- "name": "hasPendingChequeSettings",
1639
- "inputs": [
1640
- {
1641
- "name": "_userWallet",
1642
- "type": "address"
1643
- }
1644
- ],
1645
- "outputs": [
1646
- {
1647
- "name": "",
1648
- "type": "bool"
1649
- }
1650
- ]
1651
- },
1652
- {
1653
- "stateMutability": "view",
1654
- "type": "function",
1655
- "name": "pendingChequeSettingsMeta",
1656
- "inputs": [
1657
- {
1658
- "name": "_userWallet",
1659
- "type": "address"
1660
- }
1661
- ],
1662
- "outputs": [
1663
- {
1664
- "name": "",
1665
- "type": "uint256"
1666
- },
1667
- {
1668
- "name": "",
1669
- "type": "uint256"
1670
- },
1671
- {
1672
- "name": "",
1673
- "type": "address"
1674
- }
1675
- ]
1676
- },
1677
- {
1678
- "stateMutability": "nonpayable",
1679
- "type": "function",
1680
- "name": "confirmPendingChequeSettings",
1681
- "inputs": [
1682
- {
1683
- "name": "_userWallet",
1684
- "type": "address"
1685
- }
1686
- ],
1687
- "outputs": [
1688
- {
1689
- "name": "",
1690
- "type": "bool"
1691
- }
1692
- ]
1693
- },
1694
- {
1695
- "stateMutability": "nonpayable",
1696
- "type": "function",
1697
- "name": "cancelPendingChequeSettings",
1698
- "inputs": [
1699
- {
1700
- "name": "_userWallet",
1701
- "type": "address"
1702
- }
1703
- ],
1704
- "outputs": [
1705
- {
1706
- "name": "",
1707
- "type": "bool"
1708
- }
1709
- ]
1710
- },
1711
- {
1712
- "stateMutability": "view",
1713
- "type": "function",
1714
- "name": "pendingChequeSettings",
1715
- "inputs": [
1716
- {
1717
- "name": "arg0",
1718
- "type": "address"
1719
- }
1720
- ],
1721
- "outputs": [
1897
+ }
1898
+ ],
1899
+ "outputs": [
1722
1900
  {
1723
1901
  "name": "",
1724
1902
  "type": "tuple",
@@ -1808,6 +1986,37 @@ export const abi = [
1808
1986
  ]
1809
1987
  }
1810
1988
  ]
1989
+ },
1990
+ {
1991
+ "stateMutability": "nonpayable",
1992
+ "type": "constructor",
1993
+ "inputs": [
1994
+ {
1995
+ "name": "_undyHq",
1996
+ "type": "address"
1997
+ },
1998
+ {
1999
+ "name": "_minChequePeriod",
2000
+ "type": "uint256"
2001
+ },
2002
+ {
2003
+ "name": "_maxChequePeriod",
2004
+ "type": "uint256"
2005
+ },
2006
+ {
2007
+ "name": "_minExpensiveChequeDelay",
2008
+ "type": "uint256"
2009
+ },
2010
+ {
2011
+ "name": "_maxUnlockBlocks",
2012
+ "type": "uint256"
2013
+ },
2014
+ {
2015
+ "name": "_maxExpiryBlocks",
2016
+ "type": "uint256"
2017
+ }
2018
+ ],
2019
+ "outputs": []
1811
2020
  }
1812
2021
  ];
1813
2022
  export const deployAddress = '0x68ad259f7Fd1C734779EB4e8b94b826d7D11a61e';
@@ -1841,6 +2050,8 @@ function getRequest(method, args, contractAddressOrOptions) {
1841
2050
  export const call = {
1842
2051
  canCreateCheque: (...args) => getRequest('canCreateCheque', args),
1843
2052
  isValidNewCheque: (...args) => getRequest('isValidNewCheque', args),
2053
+ hasPendingChequeSettings: (...args) => getRequest('hasPendingChequeSettings', args),
2054
+ pendingChequeSettingsMeta: (...args) => getRequest('pendingChequeSettingsMeta', args),
1844
2055
  isValidChequeSettings: (...args) => getRequest('isValidChequeSettings', args),
1845
2056
  getChequeConfig: (...args) => getRequest('getChequeConfig', args),
1846
2057
  createDefaultChequeSettings: (...args) => getRequest('createDefaultChequeSettings', args),
@@ -1850,8 +2061,6 @@ export const call = {
1850
2061
  MIN_EXPENSIVE_CHEQUE_DELAY: (...args) => getRequest('MIN_EXPENSIVE_CHEQUE_DELAY', args),
1851
2062
  MAX_UNLOCK_BLOCKS: (...args) => getRequest('MAX_UNLOCK_BLOCKS', args),
1852
2063
  MAX_EXPIRY_BLOCKS: (...args) => getRequest('MAX_EXPIRY_BLOCKS', args),
1853
- hasPendingChequeSettings: (...args) => getRequest('hasPendingChequeSettings', args),
1854
- pendingChequeSettingsMeta: (...args) => getRequest('pendingChequeSettingsMeta', args),
1855
2064
  pendingChequeSettings: (...args) => getRequest('pendingChequeSettings', args),
1856
2065
  };
1857
2066
  function getMutation(functionName) {
@@ -1900,6 +2109,8 @@ export function toSdk(publicClient, walletClient, addressResolver) {
1900
2109
  // Queries
1901
2110
  canCreateCheque: (...args) => singleQuery(publicClient, call.canCreateCheque(...args), {}, addressResolver),
1902
2111
  isValidNewCheque: (...args) => singleQuery(publicClient, call.isValidNewCheque(...args), {}, addressResolver),
2112
+ hasPendingChequeSettings: (...args) => singleQuery(publicClient, call.hasPendingChequeSettings(...args), {}, addressResolver),
2113
+ pendingChequeSettingsMeta: (...args) => singleQuery(publicClient, call.pendingChequeSettingsMeta(...args), {}, addressResolver),
1903
2114
  isValidChequeSettings: (...args) => singleQuery(publicClient, call.isValidChequeSettings(...args), {}, addressResolver),
1904
2115
  getChequeConfig: (...args) => singleQuery(publicClient, call.getChequeConfig(...args), {}, addressResolver),
1905
2116
  createDefaultChequeSettings: (...args) => singleQuery(publicClient, call.createDefaultChequeSettings(...args), {}, addressResolver),
@@ -1909,8 +2120,6 @@ export function toSdk(publicClient, walletClient, addressResolver) {
1909
2120
  MIN_EXPENSIVE_CHEQUE_DELAY: (...args) => singleQuery(publicClient, call.MIN_EXPENSIVE_CHEQUE_DELAY(...args), {}, addressResolver),
1910
2121
  MAX_UNLOCK_BLOCKS: (...args) => singleQuery(publicClient, call.MAX_UNLOCK_BLOCKS(...args), {}, addressResolver),
1911
2122
  MAX_EXPIRY_BLOCKS: (...args) => singleQuery(publicClient, call.MAX_EXPIRY_BLOCKS(...args), {}, addressResolver),
1912
- hasPendingChequeSettings: (...args) => singleQuery(publicClient, call.hasPendingChequeSettings(...args), {}, addressResolver),
1913
- pendingChequeSettingsMeta: (...args) => singleQuery(publicClient, call.pendingChequeSettingsMeta(...args), {}, addressResolver),
1914
2123
  pendingChequeSettings: (...args) => singleQuery(publicClient, call.pendingChequeSettings(...args), {}, addressResolver),
1915
2124
  // Mutations
1916
2125
  createCheque: (...args) => mutate(walletClient, mutation.createCheque, { addressResolver })(...args),