@super-protocol/sdk-js 3.14.0-beta.8 → 3.14.0

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.
@@ -1,5 +1,3 @@
1
- export declare const Approval: "Approval";
2
- export declare const Transfer: "Transfer";
3
1
  export declare const TcbBenchmarkChanged: "TcbBenchmarkChanged";
4
2
  export declare const TcbCompleted: "TcbCompleted";
5
3
  export declare const TcbInitialized: "TcbInitialized";
@@ -65,296 +63,8 @@ export declare const OrderResourceCreated: "OrderResourceCreated";
65
63
  export declare const OfferStorageRequestCanceled: "OfferStorageRequestCanceled";
66
64
  export declare const OfferStorageRequestCreated: "OfferStorageRequestCreated";
67
65
  export declare const SecretRequestCreated: "SecretRequestCreated";
68
- export type AbiEvent = typeof Approval | typeof Transfer | typeof TcbBenchmarkChanged | typeof TcbCompleted | typeof TcbInitialized | typeof TcbBanned | typeof DepositPartLocked | typeof DepositPartUnlocked | typeof DepositReplenished | typeof DepositWithdrawn | typeof ProfitWithdrawn | typeof OfferCreated | typeof OfferDisabled | typeof OfferEnabled | typeof OfferVersionAdded | typeof OfferVersionDeleted | typeof SetValueOfferRestrictions | typeof TeeOfferCreated | typeof TeeOfferViolationRateChanged | typeof OrdersGroupCreated | typeof OrderCreated | typeof OrderStatusUpdated | typeof OrderAwaitingPaymentChanged | typeof OrderChangeWithdrawn | typeof OrderDepositRefilled | typeof OrderProfitWithdrawn | typeof OrderEncryptedResultUpdated | typeof OrderStarted | typeof OrderOptionsChangeRequested | typeof OrderOptionsChanged | typeof OrderSlotCountUpdateRequested | typeof OrderSlotCountUpdated | typeof RewardsClaimed | typeof SetValueOfferIgnored | typeof ProviderDepositTokenUpdated | typeof ProviderModified | typeof ProviderRegistered | typeof ProviderSecurityDepoRefilled | typeof ProviderSecurityDepoUnlocked | typeof ProviderViolationRateIncremented | typeof DepositConfiscated | typeof RewardConfiscated | typeof RewardTokenChanged | typeof StorageLocked | typeof TokenInfoUpdated | typeof TokenRemoved | typeof ValueRewardsEnabled | typeof OptionAdded | typeof OptionDeleted | typeof OptionUpdated | typeof TeeSlotAdded | typeof TeeSlotDeleted | typeof TeeSlotUpdated | typeof TcbRewardUnlocked | typeof WarningMessage | typeof ValueSlotAdded | typeof ValueSlotDeleted | typeof ValueSlotUpdated | typeof DiamondCut | typeof OwnershipTransferred | typeof LoaderSecretAccessPublicKeySessionUpdated | typeof LoaderSessionKeyUpdated | typeof OfferResourceCreated | typeof OrderResourceCreated | typeof OfferStorageRequestCanceled | typeof OfferStorageRequestCreated | typeof SecretRequestCreated;
66
+ export type AbiEvent = typeof TcbBenchmarkChanged | typeof TcbCompleted | typeof TcbInitialized | typeof TcbBanned | typeof DepositPartLocked | typeof DepositPartUnlocked | typeof DepositReplenished | typeof DepositWithdrawn | typeof ProfitWithdrawn | typeof OfferCreated | typeof OfferDisabled | typeof OfferEnabled | typeof OfferVersionAdded | typeof OfferVersionDeleted | typeof SetValueOfferRestrictions | typeof TeeOfferCreated | typeof TeeOfferViolationRateChanged | typeof OrdersGroupCreated | typeof OrderCreated | typeof OrderStatusUpdated | typeof OrderAwaitingPaymentChanged | typeof OrderChangeWithdrawn | typeof OrderDepositRefilled | typeof OrderProfitWithdrawn | typeof OrderEncryptedResultUpdated | typeof OrderStarted | typeof OrderOptionsChangeRequested | typeof OrderOptionsChanged | typeof OrderSlotCountUpdateRequested | typeof OrderSlotCountUpdated | typeof RewardsClaimed | typeof SetValueOfferIgnored | typeof ProviderDepositTokenUpdated | typeof ProviderModified | typeof ProviderRegistered | typeof ProviderSecurityDepoRefilled | typeof ProviderSecurityDepoUnlocked | typeof ProviderViolationRateIncremented | typeof DepositConfiscated | typeof RewardConfiscated | typeof RewardTokenChanged | typeof StorageLocked | typeof TokenInfoUpdated | typeof TokenRemoved | typeof ValueRewardsEnabled | typeof OptionAdded | typeof OptionDeleted | typeof OptionUpdated | typeof TeeSlotAdded | typeof TeeSlotDeleted | typeof TeeSlotUpdated | typeof TcbRewardUnlocked | typeof WarningMessage | typeof ValueSlotAdded | typeof ValueSlotDeleted | typeof ValueSlotUpdated | typeof DiamondCut | typeof OwnershipTransferred | typeof LoaderSecretAccessPublicKeySessionUpdated | typeof LoaderSessionKeyUpdated | typeof OfferResourceCreated | typeof OrderResourceCreated | typeof OfferStorageRequestCanceled | typeof OfferStorageRequestCreated | typeof SecretRequestCreated;
69
67
  export declare const abi: readonly [{
70
- readonly anonymous: false;
71
- readonly inputs: readonly [{
72
- readonly indexed: true;
73
- readonly internalType: "address";
74
- readonly name: "owner";
75
- readonly type: "address";
76
- }, {
77
- readonly indexed: true;
78
- readonly internalType: "address";
79
- readonly name: "spender";
80
- readonly type: "address";
81
- }, {
82
- readonly indexed: false;
83
- readonly internalType: "uint256";
84
- readonly name: "value";
85
- readonly type: "uint256";
86
- }];
87
- readonly name: "Approval";
88
- readonly type: "event";
89
- }, {
90
- readonly anonymous: false;
91
- readonly inputs: readonly [{
92
- readonly indexed: true;
93
- readonly internalType: "address";
94
- readonly name: "from";
95
- readonly type: "address";
96
- }, {
97
- readonly indexed: true;
98
- readonly internalType: "address";
99
- readonly name: "to";
100
- readonly type: "address";
101
- }, {
102
- readonly indexed: false;
103
- readonly internalType: "uint256";
104
- readonly name: "value";
105
- readonly type: "uint256";
106
- }];
107
- readonly name: "Transfer";
108
- readonly type: "event";
109
- }, {
110
- readonly inputs: readonly [{
111
- readonly internalType: "address";
112
- readonly name: "owner";
113
- readonly type: "address";
114
- }, {
115
- readonly internalType: "address";
116
- readonly name: "spender";
117
- readonly type: "address";
118
- }];
119
- readonly name: "allowance";
120
- readonly outputs: readonly [{
121
- readonly internalType: "uint256";
122
- readonly name: "";
123
- readonly type: "uint256";
124
- }];
125
- readonly stateMutability: "view";
126
- readonly type: "function";
127
- }, {
128
- readonly inputs: readonly [{
129
- readonly internalType: "address";
130
- readonly name: "spender";
131
- readonly type: "address";
132
- }, {
133
- readonly internalType: "uint256";
134
- readonly name: "amount";
135
- readonly type: "uint256";
136
- }];
137
- readonly name: "approve";
138
- readonly outputs: readonly [{
139
- readonly internalType: "bool";
140
- readonly name: "";
141
- readonly type: "bool";
142
- }];
143
- readonly stateMutability: "nonpayable";
144
- readonly type: "function";
145
- }, {
146
- readonly inputs: readonly [{
147
- readonly internalType: "address";
148
- readonly name: "account";
149
- readonly type: "address";
150
- }];
151
- readonly name: "balanceOf";
152
- readonly outputs: readonly [{
153
- readonly internalType: "uint256";
154
- readonly name: "";
155
- readonly type: "uint256";
156
- }];
157
- readonly stateMutability: "view";
158
- readonly type: "function";
159
- }, {
160
- readonly inputs: readonly [];
161
- readonly name: "decimals";
162
- readonly outputs: readonly [{
163
- readonly internalType: "uint8";
164
- readonly name: "";
165
- readonly type: "uint8";
166
- }];
167
- readonly stateMutability: "view";
168
- readonly type: "function";
169
- }, {
170
- readonly inputs: readonly [{
171
- readonly internalType: "address";
172
- readonly name: "spender";
173
- readonly type: "address";
174
- }, {
175
- readonly internalType: "uint256";
176
- readonly name: "subtractedValue";
177
- readonly type: "uint256";
178
- }];
179
- readonly name: "decreaseAllowance";
180
- readonly outputs: readonly [{
181
- readonly internalType: "bool";
182
- readonly name: "";
183
- readonly type: "bool";
184
- }];
185
- readonly stateMutability: "nonpayable";
186
- readonly type: "function";
187
- }, {
188
- readonly inputs: readonly [{
189
- readonly internalType: "address";
190
- readonly name: "spender";
191
- readonly type: "address";
192
- }, {
193
- readonly internalType: "uint256";
194
- readonly name: "addedValue";
195
- readonly type: "uint256";
196
- }];
197
- readonly name: "increaseAllowance";
198
- readonly outputs: readonly [{
199
- readonly internalType: "bool";
200
- readonly name: "";
201
- readonly type: "bool";
202
- }];
203
- readonly stateMutability: "nonpayable";
204
- readonly type: "function";
205
- }, {
206
- readonly inputs: readonly [];
207
- readonly name: "name";
208
- readonly outputs: readonly [{
209
- readonly internalType: "string";
210
- readonly name: "";
211
- readonly type: "string";
212
- }];
213
- readonly stateMutability: "view";
214
- readonly type: "function";
215
- }, {
216
- readonly inputs: readonly [];
217
- readonly name: "symbol";
218
- readonly outputs: readonly [{
219
- readonly internalType: "string";
220
- readonly name: "";
221
- readonly type: "string";
222
- }];
223
- readonly stateMutability: "view";
224
- readonly type: "function";
225
- }, {
226
- readonly inputs: readonly [];
227
- readonly name: "totalSupply";
228
- readonly outputs: readonly [{
229
- readonly internalType: "uint256";
230
- readonly name: "";
231
- readonly type: "uint256";
232
- }];
233
- readonly stateMutability: "view";
234
- readonly type: "function";
235
- }, {
236
- readonly inputs: readonly [{
237
- readonly internalType: "address";
238
- readonly name: "to";
239
- readonly type: "address";
240
- }, {
241
- readonly internalType: "uint256";
242
- readonly name: "amount";
243
- readonly type: "uint256";
244
- }];
245
- readonly name: "transfer";
246
- readonly outputs: readonly [{
247
- readonly internalType: "bool";
248
- readonly name: "";
249
- readonly type: "bool";
250
- }];
251
- readonly stateMutability: "nonpayable";
252
- readonly type: "function";
253
- }, {
254
- readonly inputs: readonly [{
255
- readonly internalType: "address";
256
- readonly name: "from";
257
- readonly type: "address";
258
- }, {
259
- readonly internalType: "address";
260
- readonly name: "to";
261
- readonly type: "address";
262
- }, {
263
- readonly internalType: "uint256";
264
- readonly name: "amount";
265
- readonly type: "uint256";
266
- }];
267
- readonly name: "transferFrom";
268
- readonly outputs: readonly [{
269
- readonly internalType: "bool";
270
- readonly name: "";
271
- readonly type: "bool";
272
- }];
273
- readonly stateMutability: "nonpayable";
274
- readonly type: "function";
275
- }, {
276
- readonly inputs: readonly [{
277
- readonly internalType: "uint256";
278
- readonly name: "amount";
279
- readonly type: "uint256";
280
- }];
281
- readonly name: "burn";
282
- readonly outputs: readonly [];
283
- readonly stateMutability: "nonpayable";
284
- readonly type: "function";
285
- }, {
286
- readonly inputs: readonly [{
287
- readonly internalType: "address";
288
- readonly name: "account";
289
- readonly type: "address";
290
- }, {
291
- readonly internalType: "uint256";
292
- readonly name: "amount";
293
- readonly type: "uint256";
294
- }];
295
- readonly name: "burnFrom";
296
- readonly outputs: readonly [];
297
- readonly stateMutability: "nonpayable";
298
- readonly type: "function";
299
- }, {
300
- readonly inputs: readonly [];
301
- readonly name: "DOMAIN_SEPARATOR";
302
- readonly outputs: readonly [{
303
- readonly internalType: "bytes32";
304
- readonly name: "";
305
- readonly type: "bytes32";
306
- }];
307
- readonly stateMutability: "view";
308
- readonly type: "function";
309
- }, {
310
- readonly inputs: readonly [{
311
- readonly internalType: "address";
312
- readonly name: "owner";
313
- readonly type: "address";
314
- }];
315
- readonly name: "nonces";
316
- readonly outputs: readonly [{
317
- readonly internalType: "uint256";
318
- readonly name: "";
319
- readonly type: "uint256";
320
- }];
321
- readonly stateMutability: "view";
322
- readonly type: "function";
323
- }, {
324
- readonly inputs: readonly [{
325
- readonly internalType: "address";
326
- readonly name: "owner";
327
- readonly type: "address";
328
- }, {
329
- readonly internalType: "address";
330
- readonly name: "spender";
331
- readonly type: "address";
332
- }, {
333
- readonly internalType: "uint256";
334
- readonly name: "value";
335
- readonly type: "uint256";
336
- }, {
337
- readonly internalType: "uint256";
338
- readonly name: "deadline";
339
- readonly type: "uint256";
340
- }, {
341
- readonly internalType: "uint8";
342
- readonly name: "v";
343
- readonly type: "uint8";
344
- }, {
345
- readonly internalType: "bytes32";
346
- readonly name: "r";
347
- readonly type: "bytes32";
348
- }, {
349
- readonly internalType: "bytes32";
350
- readonly name: "s";
351
- readonly type: "bytes32";
352
- }];
353
- readonly name: "permit";
354
- readonly outputs: readonly [];
355
- readonly stateMutability: "nonpayable";
356
- readonly type: "function";
357
- }, {
358
68
  readonly inputs: readonly [{
359
69
  readonly internalType: "uint256";
360
70
  readonly name: "from";
@@ -1017,6 +727,18 @@ export declare const abi: readonly [{
1017
727
  readonly outputs: readonly [];
1018
728
  readonly stateMutability: "nonpayable";
1019
729
  readonly type: "function";
730
+ }, {
731
+ readonly inputs: readonly [{
732
+ readonly internalType: "uint8";
733
+ readonly name: "bits";
734
+ readonly type: "uint8";
735
+ }, {
736
+ readonly internalType: "uint256";
737
+ readonly name: "value";
738
+ readonly type: "uint256";
739
+ }];
740
+ readonly name: "SafeCastOverflowedUintDowncast";
741
+ readonly type: "error";
1020
742
  }, {
1021
743
  readonly anonymous: false;
1022
744
  readonly inputs: readonly [{
@@ -1112,6 +834,14 @@ export declare const abi: readonly [{
1112
834
  readonly outputs: readonly [];
1113
835
  readonly stateMutability: "nonpayable";
1114
836
  readonly type: "function";
837
+ }, {
838
+ readonly inputs: readonly [{
839
+ readonly internalType: "address";
840
+ readonly name: "token";
841
+ readonly type: "address";
842
+ }];
843
+ readonly name: "SafeERC20FailedOperation";
844
+ readonly type: "error";
1115
845
  }, {
1116
846
  readonly anonymous: false;
1117
847
  readonly inputs: readonly [{
@@ -2353,6 +2083,22 @@ export declare const abi: readonly [{
2353
2083
  }];
2354
2084
  readonly stateMutability: "view";
2355
2085
  readonly type: "function";
2086
+ }, {
2087
+ readonly inputs: readonly [{
2088
+ readonly internalType: "int256";
2089
+ readonly name: "value";
2090
+ readonly type: "int256";
2091
+ }];
2092
+ readonly name: "SafeCastOverflowedIntToUint";
2093
+ readonly type: "error";
2094
+ }, {
2095
+ readonly inputs: readonly [{
2096
+ readonly internalType: "uint256";
2097
+ readonly name: "value";
2098
+ readonly type: "uint256";
2099
+ }];
2100
+ readonly name: "SafeCastOverflowedUintToInt";
2101
+ readonly type: "error";
2356
2102
  }, {
2357
2103
  readonly inputs: readonly [{
2358
2104
  readonly internalType: "uint256";
@@ -5658,6 +5404,18 @@ export declare const abi: readonly [{
5658
5404
  }];
5659
5405
  readonly stateMutability: "view";
5660
5406
  readonly type: "function";
5407
+ }, {
5408
+ readonly inputs: readonly [{
5409
+ readonly internalType: "uint8";
5410
+ readonly name: "bits";
5411
+ readonly type: "uint8";
5412
+ }, {
5413
+ readonly internalType: "int256";
5414
+ readonly name: "value";
5415
+ readonly type: "int256";
5416
+ }];
5417
+ readonly name: "SafeCastOverflowedIntDowncast";
5418
+ readonly type: "error";
5661
5419
  }, {
5662
5420
  readonly anonymous: false;
5663
5421
  readonly inputs: readonly [{
@@ -9779,26 +9537,6 @@ export declare const abi: readonly [{
9779
9537
  readonly outputs: readonly [];
9780
9538
  readonly stateMutability: "nonpayable";
9781
9539
  readonly type: "function";
9782
- }, {
9783
- readonly inputs: readonly [];
9784
- readonly name: "deployer";
9785
- readonly outputs: readonly [{
9786
- readonly internalType: "address";
9787
- readonly name: "";
9788
- readonly type: "address";
9789
- }];
9790
- readonly stateMutability: "view";
9791
- readonly type: "function";
9792
- }, {
9793
- readonly inputs: readonly [];
9794
- readonly name: "deploymentBlockNumber";
9795
- readonly outputs: readonly [{
9796
- readonly internalType: "uint64";
9797
- readonly name: "";
9798
- readonly type: "uint64";
9799
- }];
9800
- readonly stateMutability: "view";
9801
- readonly type: "function";
9802
9540
  }, {
9803
9541
  readonly anonymous: false;
9804
9542
  readonly inputs: readonly [{
@@ -9993,12 +9731,6 @@ export declare const abi: readonly [{
9993
9731
  readonly outputs: readonly [];
9994
9732
  readonly stateMutability: "nonpayable";
9995
9733
  readonly type: "function";
9996
- }, {
9997
- readonly inputs: readonly [];
9998
- readonly name: "init";
9999
- readonly outputs: readonly [];
10000
- readonly stateMutability: "nonpayable";
10001
- readonly type: "function";
10002
9734
  }, {
10003
9735
  readonly anonymous: false;
10004
9736
  readonly inputs: readonly [{
@@ -11636,46 +11368,46 @@ export declare const abi: readonly [{
11636
11368
  }, {
11637
11369
  readonly inputs: readonly [{
11638
11370
  readonly internalType: "address";
11639
- readonly name: "providerAuth";
11371
+ readonly name: "owner";
11372
+ readonly type: "address";
11373
+ }, {
11374
+ readonly internalType: "address";
11375
+ readonly name: "spender";
11640
11376
  readonly type: "address";
11641
11377
  }];
11642
- readonly name: "confiscateSecurityDeposit";
11643
- readonly outputs: readonly [];
11644
- readonly stateMutability: "nonpayable";
11378
+ readonly name: "allowance";
11379
+ readonly outputs: readonly [{
11380
+ readonly internalType: "uint256";
11381
+ readonly name: "";
11382
+ readonly type: "uint256";
11383
+ }];
11384
+ readonly stateMutability: "view";
11645
11385
  readonly type: "function";
11646
11386
  }, {
11647
11387
  readonly inputs: readonly [{
11388
+ readonly internalType: "address";
11389
+ readonly name: "spender";
11390
+ readonly type: "address";
11391
+ }, {
11648
11392
  readonly internalType: "uint256";
11649
- readonly name: "item";
11393
+ readonly name: "amount";
11650
11394
  readonly type: "uint256";
11651
11395
  }];
11652
- readonly name: "add";
11653
- readonly outputs: readonly [];
11654
- readonly stateMutability: "nonpayable";
11655
- readonly type: "function";
11656
- }, {
11657
- readonly inputs: readonly [];
11658
- readonly name: "clear";
11659
- readonly outputs: readonly [];
11660
- readonly stateMutability: "nonpayable";
11661
- readonly type: "function";
11662
- }, {
11663
- readonly inputs: readonly [];
11664
- readonly name: "getAll";
11396
+ readonly name: "approve";
11665
11397
  readonly outputs: readonly [{
11666
- readonly internalType: "uint256[]";
11398
+ readonly internalType: "bool";
11667
11399
  readonly name: "";
11668
- readonly type: "uint256[]";
11400
+ readonly type: "bool";
11669
11401
  }];
11670
- readonly stateMutability: "view";
11402
+ readonly stateMutability: "nonpayable";
11671
11403
  readonly type: "function";
11672
11404
  }, {
11673
11405
  readonly inputs: readonly [{
11674
- readonly internalType: "uint256";
11675
- readonly name: "item";
11676
- readonly type: "uint256";
11406
+ readonly internalType: "address";
11407
+ readonly name: "account";
11408
+ readonly type: "address";
11677
11409
  }];
11678
- readonly name: "getItemIndex";
11410
+ readonly name: "balanceOf";
11679
11411
  readonly outputs: readonly [{
11680
11412
  readonly internalType: "uint256";
11681
11413
  readonly name: "";
@@ -11684,47 +11416,57 @@ export declare const abi: readonly [{
11684
11416
  readonly stateMutability: "view";
11685
11417
  readonly type: "function";
11686
11418
  }, {
11687
- readonly inputs: readonly [];
11688
- readonly name: "isEmpty";
11689
- readonly outputs: readonly [{
11690
- readonly internalType: "bool";
11691
- readonly name: "";
11692
- readonly type: "bool";
11419
+ readonly inputs: readonly [{
11420
+ readonly internalType: "address";
11421
+ readonly name: "account";
11422
+ readonly type: "address";
11423
+ }, {
11424
+ readonly internalType: "uint256";
11425
+ readonly name: "amount";
11426
+ readonly type: "uint256";
11693
11427
  }];
11694
- readonly stateMutability: "view";
11428
+ readonly name: "burnFrom";
11429
+ readonly outputs: readonly [];
11430
+ readonly stateMutability: "nonpayable";
11695
11431
  readonly type: "function";
11696
11432
  }, {
11697
11433
  readonly inputs: readonly [{
11434
+ readonly internalType: "address";
11435
+ readonly name: "to";
11436
+ readonly type: "address";
11437
+ }, {
11698
11438
  readonly internalType: "uint256";
11699
- readonly name: "item";
11439
+ readonly name: "amount";
11700
11440
  readonly type: "uint256";
11701
11441
  }];
11702
- readonly name: "isExists";
11442
+ readonly name: "transfer";
11703
11443
  readonly outputs: readonly [{
11704
11444
  readonly internalType: "bool";
11705
11445
  readonly name: "";
11706
11446
  readonly type: "bool";
11707
11447
  }];
11708
- readonly stateMutability: "view";
11448
+ readonly stateMutability: "nonpayable";
11709
11449
  readonly type: "function";
11710
11450
  }, {
11711
11451
  readonly inputs: readonly [{
11452
+ readonly internalType: "address";
11453
+ readonly name: "from";
11454
+ readonly type: "address";
11455
+ }, {
11456
+ readonly internalType: "address";
11457
+ readonly name: "to";
11458
+ readonly type: "address";
11459
+ }, {
11712
11460
  readonly internalType: "uint256";
11713
- readonly name: "item";
11461
+ readonly name: "amount";
11714
11462
  readonly type: "uint256";
11715
11463
  }];
11716
- readonly name: "remove";
11717
- readonly outputs: readonly [];
11718
- readonly stateMutability: "nonpayable";
11719
- readonly type: "function";
11720
- }, {
11721
- readonly inputs: readonly [{
11722
- readonly internalType: "address";
11464
+ readonly name: "transferFrom";
11465
+ readonly outputs: readonly [{
11466
+ readonly internalType: "bool";
11723
11467
  readonly name: "";
11724
- readonly type: "address";
11468
+ readonly type: "bool";
11725
11469
  }];
11726
- readonly name: "addWhitelistAddress";
11727
- readonly outputs: readonly [];
11728
11470
  readonly stateMutability: "nonpayable";
11729
11471
  readonly type: "function";
11730
11472
  }];