@spicenet-io/spiceflow-core 0.3.11 → 0.3.12

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.
@@ -2,6 +2,9 @@ export declare const spicenetWalletManagerAbi: readonly [{
2
2
  readonly type: "constructor";
3
3
  readonly inputs: readonly [];
4
4
  readonly stateMutability: "nonpayable";
5
+ }, {
6
+ readonly type: "receive";
7
+ readonly stateMutability: "payable";
5
8
  }, {
6
9
  readonly type: "function";
7
10
  readonly name: "DEFAULT_ADMIN_ROLE";
@@ -12,6 +15,36 @@ export declare const spicenetWalletManagerAbi: readonly [{
12
15
  readonly internalType: "bytes32";
13
16
  }];
14
17
  readonly stateMutability: "view";
18
+ }, {
19
+ readonly type: "function";
20
+ readonly name: "PAUSER_ROLE";
21
+ readonly inputs: readonly [];
22
+ readonly outputs: readonly [{
23
+ readonly name: "";
24
+ readonly type: "bytes32";
25
+ readonly internalType: "bytes32";
26
+ }];
27
+ readonly stateMutability: "view";
28
+ }, {
29
+ readonly type: "function";
30
+ readonly name: "RELAYER_ROLE";
31
+ readonly inputs: readonly [];
32
+ readonly outputs: readonly [{
33
+ readonly name: "";
34
+ readonly type: "bytes32";
35
+ readonly internalType: "bytes32";
36
+ }];
37
+ readonly stateMutability: "view";
38
+ }, {
39
+ readonly type: "function";
40
+ readonly name: "UNPAUSER_ROLE";
41
+ readonly inputs: readonly [];
42
+ readonly outputs: readonly [{
43
+ readonly name: "";
44
+ readonly type: "bytes32";
45
+ readonly internalType: "bytes32";
46
+ }];
47
+ readonly stateMutability: "view";
15
48
  }, {
16
49
  readonly type: "function";
17
50
  readonly name: "UPGRADER_ROLE";
@@ -32,6 +65,112 @@ export declare const spicenetWalletManagerAbi: readonly [{
32
65
  readonly internalType: "string";
33
66
  }];
34
67
  readonly stateMutability: "view";
68
+ }, {
69
+ readonly type: "function";
70
+ readonly name: "adminProcessWithdrawalRequestEvents";
71
+ readonly inputs: readonly [{
72
+ readonly name: "requests";
73
+ readonly type: "tuple[]";
74
+ readonly internalType: "struct ISpicenetEscrow.WithdrawalRequest[]";
75
+ readonly components: readonly [{
76
+ readonly name: "idempotenceKey";
77
+ readonly type: "bytes32";
78
+ readonly internalType: "bytes32";
79
+ }, {
80
+ readonly name: "forUser";
81
+ readonly type: "string";
82
+ readonly internalType: "string";
83
+ }, {
84
+ readonly name: "nbf";
85
+ readonly type: "uint256";
86
+ readonly internalType: "uint256";
87
+ }, {
88
+ readonly name: "exp";
89
+ readonly type: "uint256";
90
+ readonly internalType: "uint256";
91
+ }, {
92
+ readonly name: "metadata";
93
+ readonly type: "string";
94
+ readonly internalType: "string";
95
+ }, {
96
+ readonly name: "transfers";
97
+ readonly type: "tuple[]";
98
+ readonly internalType: "struct ISpicenetEscrow.TokenTransfer[]";
99
+ readonly components: readonly [{
100
+ readonly name: "token";
101
+ readonly type: "address";
102
+ readonly internalType: "address";
103
+ }, {
104
+ readonly name: "to";
105
+ readonly type: "address";
106
+ readonly internalType: "address";
107
+ }, {
108
+ readonly name: "amount";
109
+ readonly type: "uint256";
110
+ readonly internalType: "uint256";
111
+ }];
112
+ }];
113
+ }];
114
+ readonly outputs: readonly [];
115
+ readonly stateMutability: "nonpayable";
116
+ }, {
117
+ readonly type: "function";
118
+ readonly name: "adminSetWithdrawalInfos";
119
+ readonly inputs: readonly [{
120
+ readonly name: "idempotenceKeys";
121
+ readonly type: "bytes32[]";
122
+ readonly internalType: "bytes32[]";
123
+ }, {
124
+ readonly name: "withdrawalInfos";
125
+ readonly type: "tuple[]";
126
+ readonly internalType: "struct ISpicenetEscrow.WithdrawalInfo[]";
127
+ readonly components: readonly [{
128
+ readonly name: "forUser";
129
+ readonly type: "string";
130
+ readonly internalType: "string";
131
+ }, {
132
+ readonly name: "blockNumber";
133
+ readonly type: "uint256";
134
+ readonly internalType: "uint256";
135
+ }, {
136
+ readonly name: "nbf";
137
+ readonly type: "uint256";
138
+ readonly internalType: "uint256";
139
+ }, {
140
+ readonly name: "exp";
141
+ readonly type: "uint256";
142
+ readonly internalType: "uint256";
143
+ }, {
144
+ readonly name: "metadata";
145
+ readonly type: "string";
146
+ readonly internalType: "string";
147
+ }];
148
+ }];
149
+ readonly outputs: readonly [];
150
+ readonly stateMutability: "nonpayable";
151
+ }, {
152
+ readonly type: "function";
153
+ readonly name: "adminWithdraw";
154
+ readonly inputs: readonly [{
155
+ readonly name: "transfers";
156
+ readonly type: "tuple[]";
157
+ readonly internalType: "struct ISpicenetEscrow.TokenTransfer[]";
158
+ readonly components: readonly [{
159
+ readonly name: "token";
160
+ readonly type: "address";
161
+ readonly internalType: "address";
162
+ }, {
163
+ readonly name: "to";
164
+ readonly type: "address";
165
+ readonly internalType: "address";
166
+ }, {
167
+ readonly name: "amount";
168
+ readonly type: "uint256";
169
+ readonly internalType: "uint256";
170
+ }];
171
+ }];
172
+ readonly outputs: readonly [];
173
+ readonly stateMutability: "nonpayable";
35
174
  }, {
36
175
  readonly type: "function";
37
176
  readonly name: "getRoleAdmin";
@@ -103,11 +242,11 @@ export declare const spicenetWalletManagerAbi: readonly [{
103
242
  readonly outputs: readonly [{
104
243
  readonly name: "";
105
244
  readonly type: "tuple";
106
- readonly internalType: "struct SpicenetWithdrawalManagerV1.WithdrawalInfo";
245
+ readonly internalType: "struct ISpicenetEscrow.WithdrawalInfo";
107
246
  readonly components: readonly [{
108
- readonly name: "processed";
109
- readonly type: "bool";
110
- readonly internalType: "bool";
247
+ readonly name: "forUser";
248
+ readonly type: "string";
249
+ readonly internalType: "string";
111
250
  }, {
112
251
  readonly name: "blockNumber";
113
252
  readonly type: "uint256";
@@ -169,17 +308,37 @@ export declare const spicenetWalletManagerAbi: readonly [{
169
308
  }];
170
309
  readonly outputs: readonly [];
171
310
  readonly stateMutability: "nonpayable";
311
+ }, {
312
+ readonly type: "function";
313
+ readonly name: "pause";
314
+ readonly inputs: readonly [];
315
+ readonly outputs: readonly [];
316
+ readonly stateMutability: "nonpayable";
317
+ }, {
318
+ readonly type: "function";
319
+ readonly name: "paused";
320
+ readonly inputs: readonly [];
321
+ readonly outputs: readonly [{
322
+ readonly name: "";
323
+ readonly type: "bool";
324
+ readonly internalType: "bool";
325
+ }];
326
+ readonly stateMutability: "view";
172
327
  }, {
173
328
  readonly type: "function";
174
329
  readonly name: "processWithdrawal";
175
330
  readonly inputs: readonly [{
176
331
  readonly name: "request";
177
332
  readonly type: "tuple";
178
- readonly internalType: "struct SpicenetWithdrawalManagerV1.WithdrawalRequest";
333
+ readonly internalType: "struct ISpicenetEscrow.WithdrawalRequest";
179
334
  readonly components: readonly [{
180
335
  readonly name: "idempotenceKey";
181
336
  readonly type: "bytes32";
182
337
  readonly internalType: "bytes32";
338
+ }, {
339
+ readonly name: "forUser";
340
+ readonly type: "string";
341
+ readonly internalType: "string";
183
342
  }, {
184
343
  readonly name: "nbf";
185
344
  readonly type: "uint256";
@@ -195,7 +354,7 @@ export declare const spicenetWalletManagerAbi: readonly [{
195
354
  }, {
196
355
  readonly name: "transfers";
197
356
  readonly type: "tuple[]";
198
- readonly internalType: "struct SpicenetWithdrawalManagerV1.TokenTransfer[]";
357
+ readonly internalType: "struct ISpicenetEscrow.TokenTransfer[]";
199
358
  readonly components: readonly [{
200
359
  readonly name: "token";
201
360
  readonly type: "address";
@@ -251,41 +410,6 @@ export declare const spicenetWalletManagerAbi: readonly [{
251
410
  }];
252
411
  readonly outputs: readonly [];
253
412
  readonly stateMutability: "nonpayable";
254
- }, {
255
- readonly type: "function";
256
- readonly name: "setWithdrawalInfo";
257
- readonly inputs: readonly [{
258
- readonly name: "idempotenceKey";
259
- readonly type: "bytes32";
260
- readonly internalType: "bytes32";
261
- }, {
262
- readonly name: "withdrawalInfo";
263
- readonly type: "tuple";
264
- readonly internalType: "struct SpicenetWithdrawalManagerV1.WithdrawalInfo";
265
- readonly components: readonly [{
266
- readonly name: "processed";
267
- readonly type: "bool";
268
- readonly internalType: "bool";
269
- }, {
270
- readonly name: "blockNumber";
271
- readonly type: "uint256";
272
- readonly internalType: "uint256";
273
- }, {
274
- readonly name: "nbf";
275
- readonly type: "uint256";
276
- readonly internalType: "uint256";
277
- }, {
278
- readonly name: "exp";
279
- readonly type: "uint256";
280
- readonly internalType: "uint256";
281
- }, {
282
- readonly name: "metadata";
283
- readonly type: "string";
284
- readonly internalType: "string";
285
- }];
286
- }];
287
- readonly outputs: readonly [];
288
- readonly stateMutability: "nonpayable";
289
413
  }, {
290
414
  readonly type: "function";
291
415
  readonly name: "supportsInterface";
@@ -300,6 +424,12 @@ export declare const spicenetWalletManagerAbi: readonly [{
300
424
  readonly internalType: "bool";
301
425
  }];
302
426
  readonly stateMutability: "view";
427
+ }, {
428
+ readonly type: "function";
429
+ readonly name: "unpause";
430
+ readonly inputs: readonly [];
431
+ readonly outputs: readonly [];
432
+ readonly stateMutability: "nonpayable";
303
433
  }, {
304
434
  readonly type: "function";
305
435
  readonly name: "upgradeToAndCall";
@@ -324,6 +454,36 @@ export declare const spicenetWalletManagerAbi: readonly [{
324
454
  readonly internalType: "uint64";
325
455
  }];
326
456
  readonly anonymous: false;
457
+ }, {
458
+ readonly type: "event";
459
+ readonly name: "NativeTransfer";
460
+ readonly inputs: readonly [{
461
+ readonly name: "from";
462
+ readonly type: "address";
463
+ readonly indexed: true;
464
+ readonly internalType: "address";
465
+ }, {
466
+ readonly name: "to";
467
+ readonly type: "address";
468
+ readonly indexed: true;
469
+ readonly internalType: "address";
470
+ }, {
471
+ readonly name: "value";
472
+ readonly type: "uint256";
473
+ readonly indexed: false;
474
+ readonly internalType: "uint256";
475
+ }];
476
+ readonly anonymous: false;
477
+ }, {
478
+ readonly type: "event";
479
+ readonly name: "Paused";
480
+ readonly inputs: readonly [{
481
+ readonly name: "account";
482
+ readonly type: "address";
483
+ readonly indexed: false;
484
+ readonly internalType: "address";
485
+ }];
486
+ readonly anonymous: false;
327
487
  }, {
328
488
  readonly type: "event";
329
489
  readonly name: "RoleAdminChanged";
@@ -384,6 +544,16 @@ export declare const spicenetWalletManagerAbi: readonly [{
384
544
  readonly internalType: "address";
385
545
  }];
386
546
  readonly anonymous: false;
547
+ }, {
548
+ readonly type: "event";
549
+ readonly name: "Unpaused";
550
+ readonly inputs: readonly [{
551
+ readonly name: "account";
552
+ readonly type: "address";
553
+ readonly indexed: false;
554
+ readonly internalType: "address";
555
+ }];
556
+ readonly anonymous: false;
387
557
  }, {
388
558
  readonly type: "event";
389
559
  readonly name: "Upgraded";
@@ -398,14 +568,28 @@ export declare const spicenetWalletManagerAbi: readonly [{
398
568
  readonly type: "event";
399
569
  readonly name: "WithdrawalProcessed";
400
570
  readonly inputs: readonly [{
571
+ readonly name: "idempotenceKey";
572
+ readonly type: "bytes32";
573
+ readonly indexed: true;
574
+ readonly internalType: "bytes32";
575
+ }, {
576
+ readonly name: "forUser";
577
+ readonly type: "string";
578
+ readonly indexed: true;
579
+ readonly internalType: "string";
580
+ }, {
401
581
  readonly name: "request";
402
582
  readonly type: "tuple";
403
583
  readonly indexed: false;
404
- readonly internalType: "struct SpicenetWithdrawalManagerV1.WithdrawalRequest";
584
+ readonly internalType: "struct ISpicenetEscrow.WithdrawalRequest";
405
585
  readonly components: readonly [{
406
586
  readonly name: "idempotenceKey";
407
587
  readonly type: "bytes32";
408
588
  readonly internalType: "bytes32";
589
+ }, {
590
+ readonly name: "forUser";
591
+ readonly type: "string";
592
+ readonly internalType: "string";
409
593
  }, {
410
594
  readonly name: "nbf";
411
595
  readonly type: "uint256";
@@ -421,7 +605,7 @@ export declare const spicenetWalletManagerAbi: readonly [{
421
605
  }, {
422
606
  readonly name: "transfers";
423
607
  readonly type: "tuple[]";
424
- readonly internalType: "struct SpicenetWithdrawalManagerV1.TokenTransfer[]";
608
+ readonly internalType: "struct ISpicenetEscrow.TokenTransfer[]";
425
609
  readonly components: readonly [{
426
610
  readonly name: "token";
427
611
  readonly type: "address";
@@ -474,10 +658,30 @@ export declare const spicenetWalletManagerAbi: readonly [{
474
658
  readonly type: "error";
475
659
  readonly name: "ERC1967NonPayable";
476
660
  readonly inputs: readonly [];
661
+ }, {
662
+ readonly type: "error";
663
+ readonly name: "EnforcedPause";
664
+ readonly inputs: readonly [];
665
+ }, {
666
+ readonly type: "error";
667
+ readonly name: "ExpectedPause";
668
+ readonly inputs: readonly [];
477
669
  }, {
478
670
  readonly type: "error";
479
671
  readonly name: "FailedCall";
480
672
  readonly inputs: readonly [];
673
+ }, {
674
+ readonly type: "error";
675
+ readonly name: "InsufficientBalance";
676
+ readonly inputs: readonly [{
677
+ readonly name: "balance";
678
+ readonly type: "uint256";
679
+ readonly internalType: "uint256";
680
+ }, {
681
+ readonly name: "needed";
682
+ readonly type: "uint256";
683
+ readonly internalType: "uint256";
684
+ }];
481
685
  }, {
482
686
  readonly type: "error";
483
687
  readonly name: "InvalidInitialization";
@@ -516,11 +720,11 @@ export declare const spicenetWalletManagerAbi: readonly [{
516
720
  }, {
517
721
  readonly name: "withdrawalInfo";
518
722
  readonly type: "tuple";
519
- readonly internalType: "struct SpicenetWithdrawalManagerV1.WithdrawalInfo";
723
+ readonly internalType: "struct ISpicenetEscrow.WithdrawalInfo";
520
724
  readonly components: readonly [{
521
- readonly name: "processed";
522
- readonly type: "bool";
523
- readonly internalType: "bool";
725
+ readonly name: "forUser";
726
+ readonly type: "string";
727
+ readonly internalType: "string";
524
728
  }, {
525
729
  readonly name: "blockNumber";
526
730
  readonly type: "uint256";
@@ -1 +1 @@
1
- {"version":3,"file":"spicenetWalletManager.d.ts","sourceRoot":"","sources":["../../src/abis/spicenetWalletManager.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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