@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
@@ -3,14 +3,13 @@ import { ParseEventLogsReturnType, Log, RpcLog, PublicClient, WalletClient } fro
3
3
  type ExtractArgs<T> = T extends (...args: infer P) => any ? P : never;
4
4
  type Address = `0x${string}`;
5
5
  export declare const abi: readonly [{
6
- readonly type: "event";
7
6
  readonly name: "Transfer";
8
7
  readonly inputs: readonly [{
9
8
  readonly name: "sender";
10
9
  readonly type: "address";
11
10
  readonly indexed: true;
12
11
  }, {
13
- readonly name: "receiver";
12
+ readonly name: "recipient";
14
13
  readonly type: "address";
15
14
  readonly indexed: true;
16
15
  }, {
@@ -19,8 +18,8 @@ export declare const abi: readonly [{
19
18
  readonly indexed: false;
20
19
  }];
21
20
  readonly anonymous: false;
22
- }, {
23
21
  readonly type: "event";
22
+ }, {
24
23
  readonly name: "Approval";
25
24
  readonly inputs: readonly [{
26
25
  readonly name: "owner";
@@ -36,37 +35,141 @@ export declare const abi: readonly [{
36
35
  readonly indexed: false;
37
36
  }];
38
37
  readonly anonymous: false;
38
+ readonly type: "event";
39
+ }, {
40
+ readonly name: "BlacklistModified";
41
+ readonly inputs: readonly [{
42
+ readonly name: "addr";
43
+ readonly type: "address";
44
+ readonly indexed: true;
45
+ }, {
46
+ readonly name: "isBlacklisted";
47
+ readonly type: "bool";
48
+ readonly indexed: false;
49
+ }];
50
+ readonly anonymous: false;
51
+ readonly type: "event";
39
52
  }, {
53
+ readonly name: "HqChangeInitiated";
54
+ readonly inputs: readonly [{
55
+ readonly name: "prevHq";
56
+ readonly type: "address";
57
+ readonly indexed: true;
58
+ }, {
59
+ readonly name: "newHq";
60
+ readonly type: "address";
61
+ readonly indexed: true;
62
+ }, {
63
+ readonly name: "confirmBlock";
64
+ readonly type: "uint256";
65
+ readonly indexed: false;
66
+ }];
67
+ readonly anonymous: false;
68
+ readonly type: "event";
69
+ }, {
70
+ readonly name: "HqChangeConfirmed";
71
+ readonly inputs: readonly [{
72
+ readonly name: "prevHq";
73
+ readonly type: "address";
74
+ readonly indexed: true;
75
+ }, {
76
+ readonly name: "newHq";
77
+ readonly type: "address";
78
+ readonly indexed: true;
79
+ }, {
80
+ readonly name: "initiatedBlock";
81
+ readonly type: "uint256";
82
+ readonly indexed: false;
83
+ }, {
84
+ readonly name: "confirmBlock";
85
+ readonly type: "uint256";
86
+ readonly indexed: false;
87
+ }];
88
+ readonly anonymous: false;
89
+ readonly type: "event";
90
+ }, {
91
+ readonly name: "HqChangeCancelled";
92
+ readonly inputs: readonly [{
93
+ readonly name: "cancelledHq";
94
+ readonly type: "address";
95
+ readonly indexed: true;
96
+ }, {
97
+ readonly name: "initiatedBlock";
98
+ readonly type: "uint256";
99
+ readonly indexed: false;
100
+ }, {
101
+ readonly name: "confirmBlock";
102
+ readonly type: "uint256";
103
+ readonly indexed: false;
104
+ }];
105
+ readonly anonymous: false;
106
+ readonly type: "event";
107
+ }, {
108
+ readonly name: "TokenPauseModified";
109
+ readonly inputs: readonly [{
110
+ readonly name: "isPaused";
111
+ readonly type: "bool";
112
+ readonly indexed: false;
113
+ }];
114
+ readonly anonymous: false;
115
+ readonly type: "event";
116
+ }, {
117
+ readonly name: "InitialUndyHqSet";
118
+ readonly inputs: readonly [{
119
+ readonly name: "hq";
120
+ readonly type: "address";
121
+ readonly indexed: true;
122
+ }, {
123
+ readonly name: "timeLock";
124
+ readonly type: "uint256";
125
+ readonly indexed: false;
126
+ }];
127
+ readonly anonymous: false;
128
+ readonly type: "event";
129
+ }, {
130
+ readonly name: "HqChangeTimeLockModified";
131
+ readonly inputs: readonly [{
132
+ readonly name: "prevTimeLock";
133
+ readonly type: "uint256";
134
+ readonly indexed: false;
135
+ }, {
136
+ readonly name: "newTimeLock";
137
+ readonly type: "uint256";
138
+ readonly indexed: false;
139
+ }];
140
+ readonly anonymous: false;
141
+ readonly type: "event";
142
+ }, {
143
+ readonly stateMutability: "view";
40
144
  readonly type: "function";
41
145
  readonly name: "name";
42
- readonly stateMutability: "pure";
43
146
  readonly inputs: readonly [];
44
147
  readonly outputs: readonly [{
45
148
  readonly name: "";
46
149
  readonly type: "string";
47
150
  }];
48
151
  }, {
152
+ readonly stateMutability: "view";
49
153
  readonly type: "function";
50
154
  readonly name: "symbol";
51
- readonly stateMutability: "pure";
52
155
  readonly inputs: readonly [];
53
156
  readonly outputs: readonly [{
54
157
  readonly name: "";
55
158
  readonly type: "string";
56
159
  }];
57
160
  }, {
161
+ readonly stateMutability: "view";
58
162
  readonly type: "function";
59
163
  readonly name: "decimals";
60
- readonly stateMutability: "pure";
61
164
  readonly inputs: readonly [];
62
165
  readonly outputs: readonly [{
63
166
  readonly name: "";
64
167
  readonly type: "uint8";
65
168
  }];
66
169
  }, {
170
+ readonly stateMutability: "nonpayable";
67
171
  readonly type: "function";
68
172
  readonly name: "transfer";
69
- readonly stateMutability: "nonpayable";
70
173
  readonly inputs: readonly [{
71
174
  readonly name: "_recipient";
72
175
  readonly type: "address";
@@ -79,9 +182,9 @@ export declare const abi: readonly [{
79
182
  readonly type: "bool";
80
183
  }];
81
184
  }, {
185
+ readonly stateMutability: "nonpayable";
82
186
  readonly type: "function";
83
187
  readonly name: "transferFrom";
84
- readonly stateMutability: "nonpayable";
85
188
  readonly inputs: readonly [{
86
189
  readonly name: "_sender";
87
190
  readonly type: "address";
@@ -97,9 +200,24 @@ export declare const abi: readonly [{
97
200
  readonly type: "bool";
98
201
  }];
99
202
  }, {
203
+ readonly stateMutability: "nonpayable";
100
204
  readonly type: "function";
101
205
  readonly name: "approve";
206
+ readonly inputs: readonly [{
207
+ readonly name: "_spender";
208
+ readonly type: "address";
209
+ }, {
210
+ readonly name: "_amount";
211
+ readonly type: "uint256";
212
+ }];
213
+ readonly outputs: readonly [{
214
+ readonly name: "";
215
+ readonly type: "bool";
216
+ }];
217
+ }, {
102
218
  readonly stateMutability: "nonpayable";
219
+ readonly type: "function";
220
+ readonly name: "increaseAllowance";
103
221
  readonly inputs: readonly [{
104
222
  readonly name: "_spender";
105
223
  readonly type: "address";
@@ -112,9 +230,45 @@ export declare const abi: readonly [{
112
230
  readonly type: "bool";
113
231
  }];
114
232
  }, {
233
+ readonly stateMutability: "nonpayable";
115
234
  readonly type: "function";
116
- readonly name: "permit";
235
+ readonly name: "decreaseAllowance";
236
+ readonly inputs: readonly [{
237
+ readonly name: "_spender";
238
+ readonly type: "address";
239
+ }, {
240
+ readonly name: "_amount";
241
+ readonly type: "uint256";
242
+ }];
243
+ readonly outputs: readonly [{
244
+ readonly name: "";
245
+ readonly type: "bool";
246
+ }];
247
+ }, {
117
248
  readonly stateMutability: "nonpayable";
249
+ readonly type: "function";
250
+ readonly name: "burn";
251
+ readonly inputs: readonly [{
252
+ readonly name: "_amount";
253
+ readonly type: "uint256";
254
+ }];
255
+ readonly outputs: readonly [{
256
+ readonly name: "";
257
+ readonly type: "bool";
258
+ }];
259
+ }, {
260
+ readonly stateMutability: "view";
261
+ readonly type: "function";
262
+ readonly name: "DOMAIN_SEPARATOR";
263
+ readonly inputs: readonly [];
264
+ readonly outputs: readonly [{
265
+ readonly name: "";
266
+ readonly type: "bytes32";
267
+ }];
268
+ }, {
269
+ readonly stateMutability: "nonpayable";
270
+ readonly type: "function";
271
+ readonly name: "permit";
118
272
  readonly inputs: readonly [{
119
273
  readonly name: "_owner";
120
274
  readonly type: "address";
@@ -122,10 +276,10 @@ export declare const abi: readonly [{
122
276
  readonly name: "_spender";
123
277
  readonly type: "address";
124
278
  }, {
125
- readonly name: "_amount";
279
+ readonly name: "_value";
126
280
  readonly type: "uint256";
127
281
  }, {
128
- readonly name: "_expiry";
282
+ readonly name: "_deadline";
129
283
  readonly type: "uint256";
130
284
  }, {
131
285
  readonly name: "_signature";
@@ -136,62 +290,344 @@ export declare const abi: readonly [{
136
290
  readonly type: "bool";
137
291
  }];
138
292
  }, {
293
+ readonly stateMutability: "nonpayable";
139
294
  readonly type: "function";
140
- readonly name: "totalSupply";
295
+ readonly name: "setBlacklist";
296
+ readonly inputs: readonly [{
297
+ readonly name: "_addr";
298
+ readonly type: "address";
299
+ }, {
300
+ readonly name: "_shouldBlacklist";
301
+ readonly type: "bool";
302
+ }];
303
+ readonly outputs: readonly [{
304
+ readonly name: "";
305
+ readonly type: "bool";
306
+ }];
307
+ }, {
308
+ readonly stateMutability: "nonpayable";
309
+ readonly type: "function";
310
+ readonly name: "burnBlacklistTokens";
311
+ readonly inputs: readonly [{
312
+ readonly name: "_addr";
313
+ readonly type: "address";
314
+ }];
315
+ readonly outputs: readonly [{
316
+ readonly name: "";
317
+ readonly type: "bool";
318
+ }];
319
+ }, {
320
+ readonly stateMutability: "nonpayable";
321
+ readonly type: "function";
322
+ readonly name: "burnBlacklistTokens";
323
+ readonly inputs: readonly [{
324
+ readonly name: "_addr";
325
+ readonly type: "address";
326
+ }, {
327
+ readonly name: "_amount";
328
+ readonly type: "uint256";
329
+ }];
330
+ readonly outputs: readonly [{
331
+ readonly name: "";
332
+ readonly type: "bool";
333
+ }];
334
+ }, {
141
335
  readonly stateMutability: "view";
336
+ readonly type: "function";
337
+ readonly name: "hasPendingHqChange";
142
338
  readonly inputs: readonly [];
143
339
  readonly outputs: readonly [{
144
340
  readonly name: "";
145
- readonly type: "uint256";
341
+ readonly type: "bool";
146
342
  }];
147
343
  }, {
344
+ readonly stateMutability: "nonpayable";
148
345
  readonly type: "function";
149
- readonly name: "balanceOf";
346
+ readonly name: "initiateHqChange";
347
+ readonly inputs: readonly [{
348
+ readonly name: "_newHq";
349
+ readonly type: "address";
350
+ }];
351
+ readonly outputs: readonly [];
352
+ }, {
353
+ readonly stateMutability: "nonpayable";
354
+ readonly type: "function";
355
+ readonly name: "confirmHqChange";
356
+ readonly inputs: readonly [];
357
+ readonly outputs: readonly [{
358
+ readonly name: "";
359
+ readonly type: "bool";
360
+ }];
361
+ }, {
362
+ readonly stateMutability: "nonpayable";
363
+ readonly type: "function";
364
+ readonly name: "cancelHqChange";
365
+ readonly inputs: readonly [];
366
+ readonly outputs: readonly [];
367
+ }, {
150
368
  readonly stateMutability: "view";
369
+ readonly type: "function";
370
+ readonly name: "isValidNewUndyHq";
151
371
  readonly inputs: readonly [{
152
- readonly name: "arg0";
372
+ readonly name: "_newHq";
153
373
  readonly type: "address";
154
374
  }];
155
375
  readonly outputs: readonly [{
156
376
  readonly name: "";
377
+ readonly type: "bool";
378
+ }];
379
+ }, {
380
+ readonly stateMutability: "nonpayable";
381
+ readonly type: "function";
382
+ readonly name: "setHqChangeTimeLock";
383
+ readonly inputs: readonly [{
384
+ readonly name: "_newTimeLock";
385
+ readonly type: "uint256";
386
+ }];
387
+ readonly outputs: readonly [{
388
+ readonly name: "";
389
+ readonly type: "bool";
390
+ }];
391
+ }, {
392
+ readonly stateMutability: "view";
393
+ readonly type: "function";
394
+ readonly name: "isValidHqChangeTimeLock";
395
+ readonly inputs: readonly [{
396
+ readonly name: "_newTimeLock";
157
397
  readonly type: "uint256";
158
398
  }];
399
+ readonly outputs: readonly [{
400
+ readonly name: "";
401
+ readonly type: "bool";
402
+ }];
159
403
  }, {
404
+ readonly stateMutability: "view";
160
405
  readonly type: "function";
161
- readonly name: "allowance";
406
+ readonly name: "minHqTimeLock";
407
+ readonly inputs: readonly [];
408
+ readonly outputs: readonly [{
409
+ readonly name: "";
410
+ readonly type: "uint256";
411
+ }];
412
+ }, {
162
413
  readonly stateMutability: "view";
414
+ readonly type: "function";
415
+ readonly name: "maxHqTimeLock";
416
+ readonly inputs: readonly [];
417
+ readonly outputs: readonly [{
418
+ readonly name: "";
419
+ readonly type: "uint256";
420
+ }];
421
+ }, {
422
+ readonly stateMutability: "nonpayable";
423
+ readonly type: "function";
424
+ readonly name: "pause";
163
425
  readonly inputs: readonly [{
164
- readonly name: "arg0";
426
+ readonly name: "_shouldPause";
427
+ readonly type: "bool";
428
+ }];
429
+ readonly outputs: readonly [];
430
+ }, {
431
+ readonly stateMutability: "nonpayable";
432
+ readonly type: "function";
433
+ readonly name: "finishTokenSetup";
434
+ readonly inputs: readonly [{
435
+ readonly name: "_newHq";
436
+ readonly type: "address";
437
+ }];
438
+ readonly outputs: readonly [{
439
+ readonly name: "";
440
+ readonly type: "bool";
441
+ }];
442
+ }, {
443
+ readonly stateMutability: "nonpayable";
444
+ readonly type: "function";
445
+ readonly name: "finishTokenSetup";
446
+ readonly inputs: readonly [{
447
+ readonly name: "_newHq";
165
448
  readonly type: "address";
166
449
  }, {
167
- readonly name: "arg1";
450
+ readonly name: "_timeLock";
451
+ readonly type: "uint256";
452
+ }];
453
+ readonly outputs: readonly [{
454
+ readonly name: "";
455
+ readonly type: "bool";
456
+ }];
457
+ }, {
458
+ readonly stateMutability: "view";
459
+ readonly type: "function";
460
+ readonly name: "undyHq";
461
+ readonly inputs: readonly [];
462
+ readonly outputs: readonly [{
463
+ readonly name: "";
168
464
  readonly type: "address";
169
465
  }];
466
+ }, {
467
+ readonly stateMutability: "view";
468
+ readonly type: "function";
469
+ readonly name: "blacklisted";
470
+ readonly inputs: readonly [{
471
+ readonly name: "arg0";
472
+ readonly type: "address";
473
+ }];
474
+ readonly outputs: readonly [{
475
+ readonly name: "";
476
+ readonly type: "bool";
477
+ }];
478
+ }, {
479
+ readonly stateMutability: "view";
480
+ readonly type: "function";
481
+ readonly name: "isPaused";
482
+ readonly inputs: readonly [];
483
+ readonly outputs: readonly [{
484
+ readonly name: "";
485
+ readonly type: "bool";
486
+ }];
487
+ }, {
488
+ readonly stateMutability: "view";
489
+ readonly type: "function";
490
+ readonly name: "pendingHq";
491
+ readonly inputs: readonly [];
492
+ readonly outputs: readonly [{
493
+ readonly name: "";
494
+ readonly type: "tuple";
495
+ readonly components: readonly [{
496
+ readonly name: "newHq";
497
+ readonly type: "address";
498
+ }, {
499
+ readonly name: "initiatedBlock";
500
+ readonly type: "uint256";
501
+ }, {
502
+ readonly name: "confirmBlock";
503
+ readonly type: "uint256";
504
+ }];
505
+ }];
506
+ }, {
507
+ readonly stateMutability: "view";
508
+ readonly type: "function";
509
+ readonly name: "hqChangeTimeLock";
510
+ readonly inputs: readonly [];
170
511
  readonly outputs: readonly [{
171
512
  readonly name: "";
172
513
  readonly type: "uint256";
173
514
  }];
174
515
  }, {
516
+ readonly stateMutability: "view";
175
517
  readonly type: "function";
176
- readonly name: "nonces";
518
+ readonly name: "balanceOf";
519
+ readonly inputs: readonly [{
520
+ readonly name: "arg0";
521
+ readonly type: "address";
522
+ }];
523
+ readonly outputs: readonly [{
524
+ readonly name: "";
525
+ readonly type: "uint256";
526
+ }];
527
+ }, {
177
528
  readonly stateMutability: "view";
529
+ readonly type: "function";
530
+ readonly name: "allowance";
178
531
  readonly inputs: readonly [{
179
532
  readonly name: "arg0";
180
533
  readonly type: "address";
534
+ }, {
535
+ readonly name: "arg1";
536
+ readonly type: "address";
181
537
  }];
182
538
  readonly outputs: readonly [{
183
539
  readonly name: "";
184
540
  readonly type: "uint256";
185
541
  }];
186
542
  }, {
543
+ readonly stateMutability: "view";
187
544
  readonly type: "function";
188
- readonly name: "DOMAIN_SEPARATOR";
545
+ readonly name: "totalSupply";
546
+ readonly inputs: readonly [];
547
+ readonly outputs: readonly [{
548
+ readonly name: "";
549
+ readonly type: "uint256";
550
+ }];
551
+ }, {
189
552
  readonly stateMutability: "view";
553
+ readonly type: "function";
554
+ readonly name: "TOKEN_NAME";
190
555
  readonly inputs: readonly [];
191
556
  readonly outputs: readonly [{
192
557
  readonly name: "";
193
- readonly type: "bytes32";
558
+ readonly type: "string";
194
559
  }];
560
+ }, {
561
+ readonly stateMutability: "view";
562
+ readonly type: "function";
563
+ readonly name: "TOKEN_SYMBOL";
564
+ readonly inputs: readonly [];
565
+ readonly outputs: readonly [{
566
+ readonly name: "";
567
+ readonly type: "string";
568
+ }];
569
+ }, {
570
+ readonly stateMutability: "view";
571
+ readonly type: "function";
572
+ readonly name: "TOKEN_DECIMALS";
573
+ readonly inputs: readonly [];
574
+ readonly outputs: readonly [{
575
+ readonly name: "";
576
+ readonly type: "uint8";
577
+ }];
578
+ }, {
579
+ readonly stateMutability: "view";
580
+ readonly type: "function";
581
+ readonly name: "VERSION";
582
+ readonly inputs: readonly [];
583
+ readonly outputs: readonly [{
584
+ readonly name: "";
585
+ readonly type: "string";
586
+ }];
587
+ }, {
588
+ readonly stateMutability: "view";
589
+ readonly type: "function";
590
+ readonly name: "nonces";
591
+ readonly inputs: readonly [{
592
+ readonly name: "arg0";
593
+ readonly type: "address";
594
+ }];
595
+ readonly outputs: readonly [{
596
+ readonly name: "";
597
+ readonly type: "uint256";
598
+ }];
599
+ }, {
600
+ readonly stateMutability: "nonpayable";
601
+ readonly type: "constructor";
602
+ readonly inputs: readonly [{
603
+ readonly name: "_tokenName";
604
+ readonly type: "string";
605
+ }, {
606
+ readonly name: "_tokenSymbol";
607
+ readonly type: "string";
608
+ }, {
609
+ readonly name: "_tokenDecimals";
610
+ readonly type: "uint8";
611
+ }, {
612
+ readonly name: "_undyHq";
613
+ readonly type: "address";
614
+ }, {
615
+ readonly name: "_initialGov";
616
+ readonly type: "address";
617
+ }, {
618
+ readonly name: "_minHqTimeLock";
619
+ readonly type: "uint256";
620
+ }, {
621
+ readonly name: "_maxHqTimeLock";
622
+ readonly type: "uint256";
623
+ }, {
624
+ readonly name: "_initialSupply";
625
+ readonly type: "uint256";
626
+ }, {
627
+ readonly name: "_initialSupplyRecipient";
628
+ readonly type: "address";
629
+ }];
630
+ readonly outputs: readonly [];
195
631
  }];
196
632
  export declare const deployAddress: Address | undefined;
197
633
  export type Contract = {
@@ -199,21 +635,57 @@ export type Contract = {
199
635
  name: () => Promise<string>;
200
636
  symbol: () => Promise<string>;
201
637
  decimals: () => Promise<number>;
202
- totalSupply: () => Promise<bigint>;
638
+ DOMAIN_SEPARATOR: () => Promise<`0x${string}`>;
639
+ hasPendingHqChange: () => Promise<boolean>;
640
+ isValidNewUndyHq: (newHq: `0x${string}`) => Promise<boolean>;
641
+ isValidHqChangeTimeLock: (newTimeLock: bigint) => Promise<boolean>;
642
+ minHqTimeLock: () => Promise<bigint>;
643
+ maxHqTimeLock: () => Promise<bigint>;
644
+ undyHq: () => Promise<`0x${string}`>;
645
+ blacklisted: (arg0: `0x${string}`) => Promise<boolean>;
646
+ isPaused: () => Promise<boolean>;
647
+ pendingHq: () => Promise<{
648
+ newHq: `0x${string}`;
649
+ initiatedBlock: bigint;
650
+ confirmBlock: bigint;
651
+ }>;
652
+ hqChangeTimeLock: () => Promise<bigint>;
203
653
  balanceOf: (arg0: `0x${string}`) => Promise<bigint>;
204
654
  allowance: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
655
+ totalSupply: () => Promise<bigint>;
656
+ TOKEN_NAME: () => Promise<string>;
657
+ TOKEN_SYMBOL: () => Promise<string>;
658
+ TOKEN_DECIMALS: () => Promise<number>;
659
+ VERSION: () => Promise<string>;
205
660
  nonces: (arg0: `0x${string}`) => Promise<bigint>;
206
- DOMAIN_SEPARATOR: () => Promise<`0x${string}`>;
207
661
  };
208
662
  mutations: {
209
663
  transfer: (recipient: `0x${string}`, amount: bigint) => Promise<boolean>;
210
664
  transferFrom: (sender: `0x${string}`, recipient: `0x${string}`, amount: bigint) => Promise<boolean>;
211
665
  approve: (spender: `0x${string}`, amount: bigint) => Promise<boolean>;
212
- permit: (owner: `0x${string}`, spender: `0x${string}`, amount: bigint, expiry: bigint, signature: `0x${string}`) => Promise<boolean>;
666
+ increaseAllowance: (spender: `0x${string}`, amount: bigint) => Promise<boolean>;
667
+ decreaseAllowance: (spender: `0x${string}`, amount: bigint) => Promise<boolean>;
668
+ burn: (amount: bigint) => Promise<boolean>;
669
+ permit: (owner: `0x${string}`, spender: `0x${string}`, value: bigint, deadline: bigint, signature: `0x${string}`) => Promise<boolean>;
670
+ setBlacklist: (addr: `0x${string}`, shouldBlacklist: boolean) => Promise<boolean>;
671
+ burnBlacklistTokens: (addr: `0x${string}`, amount?: bigint) => Promise<boolean>;
672
+ initiateHqChange: (newHq: `0x${string}`) => Promise<void>;
673
+ confirmHqChange: () => Promise<boolean>;
674
+ cancelHqChange: () => Promise<void>;
675
+ setHqChangeTimeLock: (newTimeLock: bigint) => Promise<boolean>;
676
+ pause: (shouldPause: boolean) => Promise<void>;
677
+ finishTokenSetup: (newHq: `0x${string}`, timeLock?: bigint) => Promise<boolean>;
213
678
  };
214
679
  events: {
215
- Transfer: (sender: `0x${string}`, receiver: `0x${string}`, amount: bigint) => Promise<void>;
680
+ Transfer: (sender: `0x${string}`, recipient: `0x${string}`, amount: bigint) => Promise<void>;
216
681
  Approval: (owner: `0x${string}`, spender: `0x${string}`, amount: bigint) => Promise<void>;
682
+ BlacklistModified: (addr: `0x${string}`, isBlacklisted: boolean) => Promise<void>;
683
+ HqChangeInitiated: (prevHq: `0x${string}`, newHq: `0x${string}`, confirmBlock: bigint) => Promise<void>;
684
+ HqChangeConfirmed: (prevHq: `0x${string}`, newHq: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
685
+ HqChangeCancelled: (cancelledHq: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
686
+ TokenPauseModified: (isPaused: boolean) => Promise<void>;
687
+ InitialUndyHqSet: (hq: `0x${string}`, timeLock: bigint) => Promise<void>;
688
+ HqChangeTimeLockModified: (prevTimeLock: bigint, newTimeLock: bigint) => Promise<void>;
217
689
  };
218
690
  };
219
691
  export type Calls = keyof Contract['calls'];
@@ -269,19 +741,72 @@ export type SDK = {
269
741
  topic: Address;
270
742
  parse: (events: (RpcLog | Log)[]) => ParsedEvent<'Approval'>[];
271
743
  };
744
+ BlacklistModified: {
745
+ topic: Address;
746
+ parse: (events: (RpcLog | Log)[]) => ParsedEvent<'BlacklistModified'>[];
747
+ };
748
+ HqChangeInitiated: {
749
+ topic: Address;
750
+ parse: (events: (RpcLog | Log)[]) => ParsedEvent<'HqChangeInitiated'>[];
751
+ };
752
+ HqChangeConfirmed: {
753
+ topic: Address;
754
+ parse: (events: (RpcLog | Log)[]) => ParsedEvent<'HqChangeConfirmed'>[];
755
+ };
756
+ HqChangeCancelled: {
757
+ topic: Address;
758
+ parse: (events: (RpcLog | Log)[]) => ParsedEvent<'HqChangeCancelled'>[];
759
+ };
760
+ TokenPauseModified: {
761
+ topic: Address;
762
+ parse: (events: (RpcLog | Log)[]) => ParsedEvent<'TokenPauseModified'>[];
763
+ };
764
+ InitialUndyHqSet: {
765
+ topic: Address;
766
+ parse: (events: (RpcLog | Log)[]) => ParsedEvent<'InitialUndyHqSet'>[];
767
+ };
768
+ HqChangeTimeLockModified: {
769
+ topic: Address;
770
+ parse: (events: (RpcLog | Log)[]) => ParsedEvent<'HqChangeTimeLockModified'>[];
771
+ };
272
772
  };
273
773
  name: (...args: ExtractArgs<Contract['calls']['name']>) => Promise<CallReturn<'name'>>;
274
774
  symbol: (...args: ExtractArgs<Contract['calls']['symbol']>) => Promise<CallReturn<'symbol'>>;
275
775
  decimals: (...args: ExtractArgs<Contract['calls']['decimals']>) => Promise<CallReturn<'decimals'>>;
276
- totalSupply: (...args: ExtractArgs<Contract['calls']['totalSupply']>) => Promise<CallReturn<'totalSupply'>>;
776
+ DOMAIN_SEPARATOR: (...args: ExtractArgs<Contract['calls']['DOMAIN_SEPARATOR']>) => Promise<CallReturn<'DOMAIN_SEPARATOR'>>;
777
+ hasPendingHqChange: (...args: ExtractArgs<Contract['calls']['hasPendingHqChange']>) => Promise<CallReturn<'hasPendingHqChange'>>;
778
+ isValidNewUndyHq: (...args: ExtractArgs<Contract['calls']['isValidNewUndyHq']>) => Promise<CallReturn<'isValidNewUndyHq'>>;
779
+ isValidHqChangeTimeLock: (...args: ExtractArgs<Contract['calls']['isValidHqChangeTimeLock']>) => Promise<CallReturn<'isValidHqChangeTimeLock'>>;
780
+ minHqTimeLock: (...args: ExtractArgs<Contract['calls']['minHqTimeLock']>) => Promise<CallReturn<'minHqTimeLock'>>;
781
+ maxHqTimeLock: (...args: ExtractArgs<Contract['calls']['maxHqTimeLock']>) => Promise<CallReturn<'maxHqTimeLock'>>;
782
+ undyHq: (...args: ExtractArgs<Contract['calls']['undyHq']>) => Promise<CallReturn<'undyHq'>>;
783
+ blacklisted: (...args: ExtractArgs<Contract['calls']['blacklisted']>) => Promise<CallReturn<'blacklisted'>>;
784
+ isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
785
+ pendingHq: (...args: ExtractArgs<Contract['calls']['pendingHq']>) => Promise<CallReturn<'pendingHq'>>;
786
+ hqChangeTimeLock: (...args: ExtractArgs<Contract['calls']['hqChangeTimeLock']>) => Promise<CallReturn<'hqChangeTimeLock'>>;
277
787
  balanceOf: (...args: ExtractArgs<Contract['calls']['balanceOf']>) => Promise<CallReturn<'balanceOf'>>;
278
788
  allowance: (...args: ExtractArgs<Contract['calls']['allowance']>) => Promise<CallReturn<'allowance'>>;
789
+ totalSupply: (...args: ExtractArgs<Contract['calls']['totalSupply']>) => Promise<CallReturn<'totalSupply'>>;
790
+ TOKEN_NAME: (...args: ExtractArgs<Contract['calls']['TOKEN_NAME']>) => Promise<CallReturn<'TOKEN_NAME'>>;
791
+ TOKEN_SYMBOL: (...args: ExtractArgs<Contract['calls']['TOKEN_SYMBOL']>) => Promise<CallReturn<'TOKEN_SYMBOL'>>;
792
+ TOKEN_DECIMALS: (...args: ExtractArgs<Contract['calls']['TOKEN_DECIMALS']>) => Promise<CallReturn<'TOKEN_DECIMALS'>>;
793
+ VERSION: (...args: ExtractArgs<Contract['calls']['VERSION']>) => Promise<CallReturn<'VERSION'>>;
279
794
  nonces: (...args: ExtractArgs<Contract['calls']['nonces']>) => Promise<CallReturn<'nonces'>>;
280
- DOMAIN_SEPARATOR: (...args: ExtractArgs<Contract['calls']['DOMAIN_SEPARATOR']>) => Promise<CallReturn<'DOMAIN_SEPARATOR'>>;
281
795
  transfer: (...args: ExtractArgs<Contract['mutations']['transfer']>) => Promise<Address>;
282
796
  transferFrom: (...args: ExtractArgs<Contract['mutations']['transferFrom']>) => Promise<Address>;
283
797
  approve: (...args: ExtractArgs<Contract['mutations']['approve']>) => Promise<Address>;
798
+ increaseAllowance: (...args: ExtractArgs<Contract['mutations']['increaseAllowance']>) => Promise<Address>;
799
+ decreaseAllowance: (...args: ExtractArgs<Contract['mutations']['decreaseAllowance']>) => Promise<Address>;
800
+ burn: (...args: ExtractArgs<Contract['mutations']['burn']>) => Promise<Address>;
284
801
  permit: (...args: ExtractArgs<Contract['mutations']['permit']>) => Promise<Address>;
802
+ setBlacklist: (...args: ExtractArgs<Contract['mutations']['setBlacklist']>) => Promise<Address>;
803
+ burnBlacklistTokens: (...args: ExtractArgs<Contract['mutations']['burnBlacklistTokens']>) => Promise<Address>;
804
+ initiateHqChange: (...args: ExtractArgs<Contract['mutations']['initiateHqChange']>) => Promise<Address>;
805
+ confirmHqChange: (...args: ExtractArgs<Contract['mutations']['confirmHqChange']>) => Promise<Address>;
806
+ cancelHqChange: (...args: ExtractArgs<Contract['mutations']['cancelHqChange']>) => Promise<Address>;
807
+ setHqChangeTimeLock: (...args: ExtractArgs<Contract['mutations']['setHqChangeTimeLock']>) => Promise<Address>;
808
+ pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
809
+ finishTokenSetup: (...args: ExtractArgs<Contract['mutations']['finishTokenSetup']>) => Promise<Address>;
285
810
  };
286
811
  export declare function toSdk(deployAddress: Address, publicClient?: PublicClient, walletClient?: WalletClient, addressResolver?: AddressResolverFunction): SDK;
287
812
  export {};