@super-protocol/sdk-js 3.7.4 → 3.8.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.
- package/dist/cjs/contracts/abi.d.ts +367 -120
- package/dist/cjs/contracts/abi.js +527 -199
- package/dist/cjs/models/Offer.d.ts +1 -5
- package/dist/cjs/models/Offer.js +2 -18
- package/dist/cjs/models/Order.d.ts +0 -2
- package/dist/cjs/models/Order.js +2 -24
- package/dist/cjs/models/TeeOffer.d.ts +0 -4
- package/dist/cjs/models/TeeOffer.js +1 -17
- package/dist/cjs/staticModels/Offers.d.ts +9 -1
- package/dist/cjs/staticModels/Offers.js +21 -1
- package/dist/cjs/staticModels/Orders.d.ts +0 -9
- package/dist/cjs/staticModels/Orders.js +1 -33
- package/dist/cjs/staticModels/Superpro.d.ts +1 -0
- package/dist/cjs/staticModels/Superpro.js +5 -1
- package/dist/cjs/types/Order.d.ts +4 -0
- package/dist/cjs/types/Superpro.d.ts +0 -1
- package/dist/cjs/types/Superpro.js +1 -2
- package/dist/cjs/types/TokenInfo.d.ts +1 -0
- package/dist/cjs/utils/order/process-order.js +6 -1
- package/dist/cjs/utils/tokens/get-tokens-info.js +2 -1
- package/dist/mjs/contracts/abi.d.ts +367 -120
- package/dist/mjs/contracts/abi.js +525 -197
- package/dist/mjs/models/Offer.d.ts +1 -5
- package/dist/mjs/models/Offer.js +2 -18
- package/dist/mjs/models/Order.d.ts +0 -2
- package/dist/mjs/models/Order.js +2 -24
- package/dist/mjs/models/TeeOffer.d.ts +0 -4
- package/dist/mjs/models/TeeOffer.js +1 -17
- package/dist/mjs/staticModels/Offers.d.ts +9 -1
- package/dist/mjs/staticModels/Offers.js +21 -1
- package/dist/mjs/staticModels/Orders.d.ts +0 -9
- package/dist/mjs/staticModels/Orders.js +1 -33
- package/dist/mjs/staticModels/Superpro.d.ts +1 -0
- package/dist/mjs/staticModels/Superpro.js +5 -1
- package/dist/mjs/types/Order.d.ts +4 -0
- package/dist/mjs/types/Superpro.d.ts +0 -1
- package/dist/mjs/types/Superpro.js +1 -2
- package/dist/mjs/types/TokenInfo.d.ts +1 -0
- package/dist/mjs/utils/order/process-order.js +6 -1
- package/dist/mjs/utils/tokens/get-tokens-info.js +2 -1
- package/package.json +1 -1
|
@@ -21,7 +21,6 @@ export declare const OrderStatusUpdated: "OrderStatusUpdated";
|
|
|
21
21
|
export declare const OrderAwaitingPaymentChanged: "OrderAwaitingPaymentChanged";
|
|
22
22
|
export declare const OrderChangeWithdrawn: "OrderChangeWithdrawn";
|
|
23
23
|
export declare const OrderDepositRefilled: "OrderDepositRefilled";
|
|
24
|
-
export declare const OrderOptionsDepositSpentChanged: "OrderOptionsDepositSpentChanged";
|
|
25
24
|
export declare const OrderProfitWithdrawn: "OrderProfitWithdrawn";
|
|
26
25
|
export declare const OrderEncryptedResultUpdated: "OrderEncryptedResultUpdated";
|
|
27
26
|
export declare const OrderStarted: "OrderStarted";
|
|
@@ -39,10 +38,10 @@ export declare const ProviderSecurityDepoUnlocked: "ProviderSecurityDepoUnlocked
|
|
|
39
38
|
export declare const ProviderViolationRateIncremented: "ProviderViolationRateIncremented";
|
|
40
39
|
export declare const DepositConfiscated: "DepositConfiscated";
|
|
41
40
|
export declare const RewardConfiscated: "RewardConfiscated";
|
|
42
|
-
export declare const PrimaryTokenStatusChanged: "PrimaryTokenStatusChanged";
|
|
43
41
|
export declare const RewardTokenChanged: "RewardTokenChanged";
|
|
44
42
|
export declare const TokenInfoUpdated: "TokenInfoUpdated";
|
|
45
43
|
export declare const TokenRemoved: "TokenRemoved";
|
|
44
|
+
export declare const ValueRewardsEnabled: "ValueRewardsEnabled";
|
|
46
45
|
export declare const OptionAdded: "OptionAdded";
|
|
47
46
|
export declare const OptionDeleted: "OptionDeleted";
|
|
48
47
|
export declare const OptionUpdated: "OptionUpdated";
|
|
@@ -63,7 +62,7 @@ export declare const OrderResourceCreated: "OrderResourceCreated";
|
|
|
63
62
|
export declare const OfferStorageRequestCanceled: "OfferStorageRequestCanceled";
|
|
64
63
|
export declare const OfferStorageRequestCreated: "OfferStorageRequestCreated";
|
|
65
64
|
export declare const SecretRequestCreated: "SecretRequestCreated";
|
|
66
|
-
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 SetValueOfferRestrictions | typeof TeeOfferCreated | typeof TeeOfferViolationRateChanged | typeof OrdersGroupCreated | typeof OrderCreated | typeof OrderStatusUpdated | typeof OrderAwaitingPaymentChanged | typeof OrderChangeWithdrawn | typeof OrderDepositRefilled | typeof
|
|
65
|
+
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 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 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;
|
|
67
66
|
export declare const abi: readonly [{
|
|
68
67
|
readonly anonymous: false;
|
|
69
68
|
readonly inputs: readonly [{
|
|
@@ -2276,36 +2275,6 @@ export declare const abi: readonly [{
|
|
|
2276
2275
|
}];
|
|
2277
2276
|
readonly stateMutability: "view";
|
|
2278
2277
|
readonly type: "function";
|
|
2279
|
-
}, {
|
|
2280
|
-
readonly inputs: readonly [{
|
|
2281
|
-
readonly internalType: "uint256";
|
|
2282
|
-
readonly name: "offerId";
|
|
2283
|
-
readonly type: "uint256";
|
|
2284
|
-
}, {
|
|
2285
|
-
readonly internalType: "uint256";
|
|
2286
|
-
readonly name: "slotId";
|
|
2287
|
-
readonly type: "uint256";
|
|
2288
|
-
}, {
|
|
2289
|
-
readonly internalType: "uint32";
|
|
2290
|
-
readonly name: "slotCount";
|
|
2291
|
-
readonly type: "uint32";
|
|
2292
|
-
}, {
|
|
2293
|
-
readonly internalType: "uint256[]";
|
|
2294
|
-
readonly name: "optionsIds";
|
|
2295
|
-
readonly type: "uint256[]";
|
|
2296
|
-
}, {
|
|
2297
|
-
readonly internalType: "uint32[]";
|
|
2298
|
-
readonly name: "optionsCount";
|
|
2299
|
-
readonly type: "uint32[]";
|
|
2300
|
-
}];
|
|
2301
|
-
readonly name: "getOfferMinDeposit";
|
|
2302
|
-
readonly outputs: readonly [{
|
|
2303
|
-
readonly internalType: "uint256";
|
|
2304
|
-
readonly name: "";
|
|
2305
|
-
readonly type: "uint256";
|
|
2306
|
-
}];
|
|
2307
|
-
readonly stateMutability: "view";
|
|
2308
|
-
readonly type: "function";
|
|
2309
2278
|
}, {
|
|
2310
2279
|
readonly inputs: readonly [{
|
|
2311
2280
|
readonly internalType: "uint256";
|
|
@@ -2392,6 +2361,41 @@ export declare const abi: readonly [{
|
|
|
2392
2361
|
}];
|
|
2393
2362
|
readonly stateMutability: "view";
|
|
2394
2363
|
readonly type: "function";
|
|
2364
|
+
}, {
|
|
2365
|
+
readonly inputs: readonly [{
|
|
2366
|
+
readonly internalType: "uint256";
|
|
2367
|
+
readonly name: "offerId";
|
|
2368
|
+
readonly type: "uint256";
|
|
2369
|
+
}, {
|
|
2370
|
+
readonly internalType: "uint256";
|
|
2371
|
+
readonly name: "slotId";
|
|
2372
|
+
readonly type: "uint256";
|
|
2373
|
+
}];
|
|
2374
|
+
readonly name: "getOfferSlotUsage";
|
|
2375
|
+
readonly outputs: readonly [{
|
|
2376
|
+
readonly components: readonly [{
|
|
2377
|
+
readonly internalType: "uint256";
|
|
2378
|
+
readonly name: "price";
|
|
2379
|
+
readonly type: "uint256";
|
|
2380
|
+
}, {
|
|
2381
|
+
readonly internalType: "enum PriceType";
|
|
2382
|
+
readonly name: "priceType";
|
|
2383
|
+
readonly type: "uint8";
|
|
2384
|
+
}, {
|
|
2385
|
+
readonly internalType: "uint64";
|
|
2386
|
+
readonly name: "minTimeMinutes";
|
|
2387
|
+
readonly type: "uint64";
|
|
2388
|
+
}, {
|
|
2389
|
+
readonly internalType: "uint64";
|
|
2390
|
+
readonly name: "maxTimeMinutes";
|
|
2391
|
+
readonly type: "uint64";
|
|
2392
|
+
}];
|
|
2393
|
+
readonly internalType: "struct SlotUsage";
|
|
2394
|
+
readonly name: "";
|
|
2395
|
+
readonly type: "tuple";
|
|
2396
|
+
}];
|
|
2397
|
+
readonly stateMutability: "view";
|
|
2398
|
+
readonly type: "function";
|
|
2395
2399
|
}, {
|
|
2396
2400
|
readonly inputs: readonly [{
|
|
2397
2401
|
readonly internalType: "uint256";
|
|
@@ -3554,26 +3558,6 @@ export declare const abi: readonly [{
|
|
|
3554
3558
|
}];
|
|
3555
3559
|
readonly name: "OrderDepositRefilled";
|
|
3556
3560
|
readonly type: "event";
|
|
3557
|
-
}, {
|
|
3558
|
-
readonly anonymous: false;
|
|
3559
|
-
readonly inputs: readonly [{
|
|
3560
|
-
readonly indexed: true;
|
|
3561
|
-
readonly internalType: "address";
|
|
3562
|
-
readonly name: "consumer";
|
|
3563
|
-
readonly type: "address";
|
|
3564
|
-
}, {
|
|
3565
|
-
readonly indexed: true;
|
|
3566
|
-
readonly internalType: "uint256";
|
|
3567
|
-
readonly name: "orderId";
|
|
3568
|
-
readonly type: "uint256";
|
|
3569
|
-
}, {
|
|
3570
|
-
readonly indexed: false;
|
|
3571
|
-
readonly internalType: "uint256";
|
|
3572
|
-
readonly name: "value";
|
|
3573
|
-
readonly type: "uint256";
|
|
3574
|
-
}];
|
|
3575
|
-
readonly name: "OrderOptionsDepositSpentChanged";
|
|
3576
|
-
readonly type: "event";
|
|
3577
3561
|
}, {
|
|
3578
3562
|
readonly anonymous: false;
|
|
3579
3563
|
readonly inputs: readonly [{
|
|
@@ -3687,20 +3671,6 @@ export declare const abi: readonly [{
|
|
|
3687
3671
|
readonly outputs: readonly [];
|
|
3688
3672
|
readonly stateMutability: "nonpayable";
|
|
3689
3673
|
readonly type: "function";
|
|
3690
|
-
}, {
|
|
3691
|
-
readonly inputs: readonly [{
|
|
3692
|
-
readonly internalType: "uint256";
|
|
3693
|
-
readonly name: "orderId";
|
|
3694
|
-
readonly type: "uint256";
|
|
3695
|
-
}, {
|
|
3696
|
-
readonly internalType: "uint256";
|
|
3697
|
-
readonly name: "value";
|
|
3698
|
-
readonly type: "uint256";
|
|
3699
|
-
}];
|
|
3700
|
-
readonly name: "setOptionsDepositSpent";
|
|
3701
|
-
readonly outputs: readonly [];
|
|
3702
|
-
readonly stateMutability: "nonpayable";
|
|
3703
|
-
readonly type: "function";
|
|
3704
3674
|
}, {
|
|
3705
3675
|
readonly anonymous: false;
|
|
3706
3676
|
readonly inputs: readonly [{
|
|
@@ -3736,20 +3706,6 @@ export declare const abi: readonly [{
|
|
|
3736
3706
|
}];
|
|
3737
3707
|
readonly name: "OrderStarted";
|
|
3738
3708
|
readonly type: "event";
|
|
3739
|
-
}, {
|
|
3740
|
-
readonly inputs: readonly [{
|
|
3741
|
-
readonly internalType: "uint256";
|
|
3742
|
-
readonly name: "orderId";
|
|
3743
|
-
readonly type: "uint256";
|
|
3744
|
-
}];
|
|
3745
|
-
readonly name: "calculateOrderCurrentPrice";
|
|
3746
|
-
readonly outputs: readonly [{
|
|
3747
|
-
readonly internalType: "uint256";
|
|
3748
|
-
readonly name: "resultedPrice";
|
|
3749
|
-
readonly type: "uint256";
|
|
3750
|
-
}];
|
|
3751
|
-
readonly stateMutability: "view";
|
|
3752
|
-
readonly type: "function";
|
|
3753
3709
|
}, {
|
|
3754
3710
|
readonly inputs: readonly [{
|
|
3755
3711
|
readonly internalType: "uint256";
|
|
@@ -3769,6 +3725,10 @@ export declare const abi: readonly [{
|
|
|
3769
3725
|
readonly internalType: "uint256";
|
|
3770
3726
|
readonly name: "orderId";
|
|
3771
3727
|
readonly type: "uint256";
|
|
3728
|
+
}, {
|
|
3729
|
+
readonly internalType: "bool";
|
|
3730
|
+
readonly name: "checkRelations";
|
|
3731
|
+
readonly type: "bool";
|
|
3772
3732
|
}];
|
|
3773
3733
|
readonly name: "cancelOrderByApp";
|
|
3774
3734
|
readonly outputs: readonly [];
|
|
@@ -3991,6 +3951,196 @@ export declare const abi: readonly [{
|
|
|
3991
3951
|
readonly outputs: readonly [];
|
|
3992
3952
|
readonly stateMutability: "nonpayable";
|
|
3993
3953
|
readonly type: "function";
|
|
3954
|
+
}, {
|
|
3955
|
+
readonly inputs: readonly [{
|
|
3956
|
+
readonly internalType: "uint256[]";
|
|
3957
|
+
readonly name: "optionsIds";
|
|
3958
|
+
readonly type: "uint256[]";
|
|
3959
|
+
}, {
|
|
3960
|
+
readonly internalType: "uint32[]";
|
|
3961
|
+
readonly name: "optionsCounts";
|
|
3962
|
+
readonly type: "uint32[]";
|
|
3963
|
+
}, {
|
|
3964
|
+
readonly components: readonly [{
|
|
3965
|
+
readonly internalType: "bool";
|
|
3966
|
+
readonly name: "includeFixed";
|
|
3967
|
+
readonly type: "bool";
|
|
3968
|
+
}, {
|
|
3969
|
+
readonly internalType: "bool";
|
|
3970
|
+
readonly name: "includePerHour";
|
|
3971
|
+
readonly type: "bool";
|
|
3972
|
+
}];
|
|
3973
|
+
readonly internalType: "struct PriceTypeFilter";
|
|
3974
|
+
readonly name: "filter";
|
|
3975
|
+
readonly type: "tuple";
|
|
3976
|
+
}];
|
|
3977
|
+
readonly name: "calculateMinOptionsCostFiltered";
|
|
3978
|
+
readonly outputs: readonly [{
|
|
3979
|
+
readonly internalType: "uint256";
|
|
3980
|
+
readonly name: "minCost";
|
|
3981
|
+
readonly type: "uint256";
|
|
3982
|
+
}];
|
|
3983
|
+
readonly stateMutability: "view";
|
|
3984
|
+
readonly type: "function";
|
|
3985
|
+
}, {
|
|
3986
|
+
readonly inputs: readonly [{
|
|
3987
|
+
readonly internalType: "uint256";
|
|
3988
|
+
readonly name: "offerId";
|
|
3989
|
+
readonly type: "uint256";
|
|
3990
|
+
}, {
|
|
3991
|
+
readonly components: readonly [{
|
|
3992
|
+
readonly internalType: "uint256";
|
|
3993
|
+
readonly name: "slotId";
|
|
3994
|
+
readonly type: "uint256";
|
|
3995
|
+
}, {
|
|
3996
|
+
readonly internalType: "uint32";
|
|
3997
|
+
readonly name: "slotCount";
|
|
3998
|
+
readonly type: "uint32";
|
|
3999
|
+
}, {
|
|
4000
|
+
readonly internalType: "uint256[]";
|
|
4001
|
+
readonly name: "optionsIds";
|
|
4002
|
+
readonly type: "uint256[]";
|
|
4003
|
+
}, {
|
|
4004
|
+
readonly internalType: "uint32[]";
|
|
4005
|
+
readonly name: "optionsCount";
|
|
4006
|
+
readonly type: "uint32[]";
|
|
4007
|
+
}];
|
|
4008
|
+
readonly internalType: "struct OrderSlots";
|
|
4009
|
+
readonly name: "orderSetup";
|
|
4010
|
+
readonly type: "tuple";
|
|
4011
|
+
}];
|
|
4012
|
+
readonly name: "calculateMinOrderCost";
|
|
4013
|
+
readonly outputs: readonly [{
|
|
4014
|
+
readonly internalType: "uint256";
|
|
4015
|
+
readonly name: "";
|
|
4016
|
+
readonly type: "uint256";
|
|
4017
|
+
}];
|
|
4018
|
+
readonly stateMutability: "view";
|
|
4019
|
+
readonly type: "function";
|
|
4020
|
+
}, {
|
|
4021
|
+
readonly inputs: readonly [{
|
|
4022
|
+
readonly internalType: "uint256";
|
|
4023
|
+
readonly name: "offerId";
|
|
4024
|
+
readonly type: "uint256";
|
|
4025
|
+
}, {
|
|
4026
|
+
readonly components: readonly [{
|
|
4027
|
+
readonly internalType: "uint256";
|
|
4028
|
+
readonly name: "slotId";
|
|
4029
|
+
readonly type: "uint256";
|
|
4030
|
+
}, {
|
|
4031
|
+
readonly internalType: "uint32";
|
|
4032
|
+
readonly name: "slotCount";
|
|
4033
|
+
readonly type: "uint32";
|
|
4034
|
+
}, {
|
|
4035
|
+
readonly internalType: "uint256[]";
|
|
4036
|
+
readonly name: "optionsIds";
|
|
4037
|
+
readonly type: "uint256[]";
|
|
4038
|
+
}, {
|
|
4039
|
+
readonly internalType: "uint32[]";
|
|
4040
|
+
readonly name: "optionsCount";
|
|
4041
|
+
readonly type: "uint32[]";
|
|
4042
|
+
}];
|
|
4043
|
+
readonly internalType: "struct OrderSlots";
|
|
4044
|
+
readonly name: "orderSetup";
|
|
4045
|
+
readonly type: "tuple";
|
|
4046
|
+
}, {
|
|
4047
|
+
readonly components: readonly [{
|
|
4048
|
+
readonly internalType: "bool";
|
|
4049
|
+
readonly name: "includeFixed";
|
|
4050
|
+
readonly type: "bool";
|
|
4051
|
+
}, {
|
|
4052
|
+
readonly internalType: "bool";
|
|
4053
|
+
readonly name: "includePerHour";
|
|
4054
|
+
readonly type: "bool";
|
|
4055
|
+
}];
|
|
4056
|
+
readonly internalType: "struct PriceTypeFilter";
|
|
4057
|
+
readonly name: "filter";
|
|
4058
|
+
readonly type: "tuple";
|
|
4059
|
+
}];
|
|
4060
|
+
readonly name: "calculateMinOrderCostFiltered";
|
|
4061
|
+
readonly outputs: readonly [{
|
|
4062
|
+
readonly internalType: "uint256";
|
|
4063
|
+
readonly name: "minCost";
|
|
4064
|
+
readonly type: "uint256";
|
|
4065
|
+
}];
|
|
4066
|
+
readonly stateMutability: "view";
|
|
4067
|
+
readonly type: "function";
|
|
4068
|
+
}, {
|
|
4069
|
+
readonly inputs: readonly [{
|
|
4070
|
+
readonly internalType: "uint256";
|
|
4071
|
+
readonly name: "offerId";
|
|
4072
|
+
readonly type: "uint256";
|
|
4073
|
+
}, {
|
|
4074
|
+
readonly internalType: "uint256";
|
|
4075
|
+
readonly name: "slotId";
|
|
4076
|
+
readonly type: "uint256";
|
|
4077
|
+
}, {
|
|
4078
|
+
readonly internalType: "uint32";
|
|
4079
|
+
readonly name: "slotCount";
|
|
4080
|
+
readonly type: "uint32";
|
|
4081
|
+
}, {
|
|
4082
|
+
readonly components: readonly [{
|
|
4083
|
+
readonly internalType: "bool";
|
|
4084
|
+
readonly name: "includeFixed";
|
|
4085
|
+
readonly type: "bool";
|
|
4086
|
+
}, {
|
|
4087
|
+
readonly internalType: "bool";
|
|
4088
|
+
readonly name: "includePerHour";
|
|
4089
|
+
readonly type: "bool";
|
|
4090
|
+
}];
|
|
4091
|
+
readonly internalType: "struct PriceTypeFilter";
|
|
4092
|
+
readonly name: "filter";
|
|
4093
|
+
readonly type: "tuple";
|
|
4094
|
+
}];
|
|
4095
|
+
readonly name: "calculateMinSlotCostFiltered";
|
|
4096
|
+
readonly outputs: readonly [{
|
|
4097
|
+
readonly internalType: "uint256";
|
|
4098
|
+
readonly name: "";
|
|
4099
|
+
readonly type: "uint256";
|
|
4100
|
+
}];
|
|
4101
|
+
readonly stateMutability: "view";
|
|
4102
|
+
readonly type: "function";
|
|
4103
|
+
}, {
|
|
4104
|
+
readonly inputs: readonly [{
|
|
4105
|
+
readonly internalType: "uint256";
|
|
4106
|
+
readonly name: "orderId";
|
|
4107
|
+
readonly type: "uint256";
|
|
4108
|
+
}];
|
|
4109
|
+
readonly name: "calculateOrderCurrentCost";
|
|
4110
|
+
readonly outputs: readonly [{
|
|
4111
|
+
readonly internalType: "uint256";
|
|
4112
|
+
readonly name: "";
|
|
4113
|
+
readonly type: "uint256";
|
|
4114
|
+
}];
|
|
4115
|
+
readonly stateMutability: "view";
|
|
4116
|
+
readonly type: "function";
|
|
4117
|
+
}, {
|
|
4118
|
+
readonly inputs: readonly [{
|
|
4119
|
+
readonly internalType: "uint256";
|
|
4120
|
+
readonly name: "orderId";
|
|
4121
|
+
readonly type: "uint256";
|
|
4122
|
+
}, {
|
|
4123
|
+
readonly components: readonly [{
|
|
4124
|
+
readonly internalType: "bool";
|
|
4125
|
+
readonly name: "includeFixed";
|
|
4126
|
+
readonly type: "bool";
|
|
4127
|
+
}, {
|
|
4128
|
+
readonly internalType: "bool";
|
|
4129
|
+
readonly name: "includePerHour";
|
|
4130
|
+
readonly type: "bool";
|
|
4131
|
+
}];
|
|
4132
|
+
readonly internalType: "struct PriceTypeFilter";
|
|
4133
|
+
readonly name: "filter";
|
|
4134
|
+
readonly type: "tuple";
|
|
4135
|
+
}];
|
|
4136
|
+
readonly name: "calculateOrderCurrentCostFiltered";
|
|
4137
|
+
readonly outputs: readonly [{
|
|
4138
|
+
readonly internalType: "uint256";
|
|
4139
|
+
readonly name: "resultedCost";
|
|
4140
|
+
readonly type: "uint256";
|
|
4141
|
+
}];
|
|
4142
|
+
readonly stateMutability: "view";
|
|
4143
|
+
readonly type: "function";
|
|
3994
4144
|
}, {
|
|
3995
4145
|
readonly inputs: readonly [{
|
|
3996
4146
|
readonly internalType: "uint256";
|
|
@@ -4061,6 +4211,53 @@ export declare const abi: readonly [{
|
|
|
4061
4211
|
}];
|
|
4062
4212
|
readonly stateMutability: "view";
|
|
4063
4213
|
readonly type: "function";
|
|
4214
|
+
}, {
|
|
4215
|
+
readonly inputs: readonly [{
|
|
4216
|
+
readonly components: readonly [{
|
|
4217
|
+
readonly internalType: "uint256";
|
|
4218
|
+
readonly name: "price";
|
|
4219
|
+
readonly type: "uint256";
|
|
4220
|
+
}, {
|
|
4221
|
+
readonly internalType: "enum PriceType";
|
|
4222
|
+
readonly name: "priceType";
|
|
4223
|
+
readonly type: "uint8";
|
|
4224
|
+
}, {
|
|
4225
|
+
readonly internalType: "uint64";
|
|
4226
|
+
readonly name: "minTimeMinutes";
|
|
4227
|
+
readonly type: "uint64";
|
|
4228
|
+
}, {
|
|
4229
|
+
readonly internalType: "uint64";
|
|
4230
|
+
readonly name: "maxTimeMinutes";
|
|
4231
|
+
readonly type: "uint64";
|
|
4232
|
+
}];
|
|
4233
|
+
readonly internalType: "struct SlotUsage";
|
|
4234
|
+
readonly name: "usage";
|
|
4235
|
+
readonly type: "tuple";
|
|
4236
|
+
}, {
|
|
4237
|
+
readonly internalType: "uint256";
|
|
4238
|
+
readonly name: "startTime";
|
|
4239
|
+
readonly type: "uint256";
|
|
4240
|
+
}, {
|
|
4241
|
+
readonly internalType: "uint256";
|
|
4242
|
+
readonly name: "modifiedTime";
|
|
4243
|
+
readonly type: "uint256";
|
|
4244
|
+
}, {
|
|
4245
|
+
readonly internalType: "uint256";
|
|
4246
|
+
readonly name: "currentTime";
|
|
4247
|
+
readonly type: "uint256";
|
|
4248
|
+
}, {
|
|
4249
|
+
readonly internalType: "uint256";
|
|
4250
|
+
readonly name: "slotCount";
|
|
4251
|
+
readonly type: "uint256";
|
|
4252
|
+
}];
|
|
4253
|
+
readonly name: "calculateUsageCost";
|
|
4254
|
+
readonly outputs: readonly [{
|
|
4255
|
+
readonly internalType: "uint256";
|
|
4256
|
+
readonly name: "";
|
|
4257
|
+
readonly type: "uint256";
|
|
4258
|
+
}];
|
|
4259
|
+
readonly stateMutability: "pure";
|
|
4260
|
+
readonly type: "function";
|
|
4064
4261
|
}, {
|
|
4065
4262
|
readonly inputs: readonly [{
|
|
4066
4263
|
readonly internalType: "enum OfferGroup";
|
|
@@ -4139,20 +4336,6 @@ export declare const abi: readonly [{
|
|
|
4139
4336
|
}];
|
|
4140
4337
|
readonly stateMutability: "view";
|
|
4141
4338
|
readonly type: "function";
|
|
4142
|
-
}, {
|
|
4143
|
-
readonly inputs: readonly [{
|
|
4144
|
-
readonly internalType: "uint256";
|
|
4145
|
-
readonly name: "orderId";
|
|
4146
|
-
readonly type: "uint256";
|
|
4147
|
-
}];
|
|
4148
|
-
readonly name: "getOptionsDepositSpent";
|
|
4149
|
-
readonly outputs: readonly [{
|
|
4150
|
-
readonly internalType: "uint256";
|
|
4151
|
-
readonly name: "";
|
|
4152
|
-
readonly type: "uint256";
|
|
4153
|
-
}];
|
|
4154
|
-
readonly stateMutability: "view";
|
|
4155
|
-
readonly type: "function";
|
|
4156
4339
|
}, {
|
|
4157
4340
|
readonly inputs: readonly [{
|
|
4158
4341
|
readonly internalType: "uint256";
|
|
@@ -4281,6 +4464,29 @@ export declare const abi: readonly [{
|
|
|
4281
4464
|
}];
|
|
4282
4465
|
readonly stateMutability: "view";
|
|
4283
4466
|
readonly type: "function";
|
|
4467
|
+
}, {
|
|
4468
|
+
readonly inputs: readonly [{
|
|
4469
|
+
readonly internalType: "uint256";
|
|
4470
|
+
readonly name: "orderId";
|
|
4471
|
+
readonly type: "uint256";
|
|
4472
|
+
}];
|
|
4473
|
+
readonly name: "getOrderCostAuxiliaryData";
|
|
4474
|
+
readonly outputs: readonly [{
|
|
4475
|
+
readonly components: readonly [{
|
|
4476
|
+
readonly internalType: "uint256";
|
|
4477
|
+
readonly name: "lastModifiedTimestamp";
|
|
4478
|
+
readonly type: "uint256";
|
|
4479
|
+
}, {
|
|
4480
|
+
readonly internalType: "uint256";
|
|
4481
|
+
readonly name: "accumulatedCostSpentPerHour";
|
|
4482
|
+
readonly type: "uint256";
|
|
4483
|
+
}];
|
|
4484
|
+
readonly internalType: "struct OrderCostAuxiliaryData";
|
|
4485
|
+
readonly name: "";
|
|
4486
|
+
readonly type: "tuple";
|
|
4487
|
+
}];
|
|
4488
|
+
readonly stateMutability: "view";
|
|
4489
|
+
readonly type: "function";
|
|
4284
4490
|
}, {
|
|
4285
4491
|
readonly inputs: readonly [{
|
|
4286
4492
|
readonly internalType: "uint256";
|
|
@@ -6318,25 +6524,10 @@ export declare const abi: readonly [{
|
|
|
6318
6524
|
readonly inputs: readonly [{
|
|
6319
6525
|
readonly indexed: true;
|
|
6320
6526
|
readonly internalType: "address";
|
|
6321
|
-
readonly name: "tokenAddress";
|
|
6322
|
-
readonly type: "address";
|
|
6323
|
-
}, {
|
|
6324
|
-
readonly indexed: false;
|
|
6325
|
-
readonly internalType: "bool";
|
|
6326
|
-
readonly name: "enable";
|
|
6327
|
-
readonly type: "bool";
|
|
6328
|
-
}];
|
|
6329
|
-
readonly name: "PrimaryTokenStatusChanged";
|
|
6330
|
-
readonly type: "event";
|
|
6331
|
-
}, {
|
|
6332
|
-
readonly anonymous: false;
|
|
6333
|
-
readonly inputs: readonly [{
|
|
6334
|
-
readonly indexed: false;
|
|
6335
|
-
readonly internalType: "address";
|
|
6336
6527
|
readonly name: "oldToken";
|
|
6337
6528
|
readonly type: "address";
|
|
6338
6529
|
}, {
|
|
6339
|
-
readonly indexed:
|
|
6530
|
+
readonly indexed: true;
|
|
6340
6531
|
readonly internalType: "address";
|
|
6341
6532
|
readonly name: "token";
|
|
6342
6533
|
readonly type: "address";
|
|
@@ -6356,12 +6547,12 @@ export declare const abi: readonly [{
|
|
|
6356
6547
|
readonly name: "protocolCommissionPercent";
|
|
6357
6548
|
readonly type: "uint32";
|
|
6358
6549
|
}, {
|
|
6359
|
-
readonly indexed:
|
|
6550
|
+
readonly indexed: true;
|
|
6360
6551
|
readonly internalType: "bool";
|
|
6361
6552
|
readonly name: "isPrimary";
|
|
6362
6553
|
readonly type: "bool";
|
|
6363
6554
|
}, {
|
|
6364
|
-
readonly indexed:
|
|
6555
|
+
readonly indexed: true;
|
|
6365
6556
|
readonly internalType: "bool";
|
|
6366
6557
|
readonly name: "isNew";
|
|
6367
6558
|
readonly type: "bool";
|
|
@@ -6378,6 +6569,16 @@ export declare const abi: readonly [{
|
|
|
6378
6569
|
}];
|
|
6379
6570
|
readonly name: "TokenRemoved";
|
|
6380
6571
|
readonly type: "event";
|
|
6572
|
+
}, {
|
|
6573
|
+
readonly anonymous: false;
|
|
6574
|
+
readonly inputs: readonly [{
|
|
6575
|
+
readonly indexed: true;
|
|
6576
|
+
readonly internalType: "bool";
|
|
6577
|
+
readonly name: "value";
|
|
6578
|
+
readonly type: "bool";
|
|
6579
|
+
}];
|
|
6580
|
+
readonly name: "ValueRewardsEnabled";
|
|
6581
|
+
readonly type: "event";
|
|
6381
6582
|
}, {
|
|
6382
6583
|
readonly inputs: readonly [{
|
|
6383
6584
|
readonly internalType: "enum ParamName";
|
|
@@ -6542,6 +6743,20 @@ export declare const abi: readonly [{
|
|
|
6542
6743
|
}];
|
|
6543
6744
|
readonly stateMutability: "view";
|
|
6544
6745
|
readonly type: "function";
|
|
6746
|
+
}, {
|
|
6747
|
+
readonly inputs: readonly [{
|
|
6748
|
+
readonly internalType: "address";
|
|
6749
|
+
readonly name: "tokenAddress";
|
|
6750
|
+
readonly type: "address";
|
|
6751
|
+
}];
|
|
6752
|
+
readonly name: "getTokenStorageRequestFee";
|
|
6753
|
+
readonly outputs: readonly [{
|
|
6754
|
+
readonly internalType: "uint256";
|
|
6755
|
+
readonly name: "";
|
|
6756
|
+
readonly type: "uint256";
|
|
6757
|
+
}];
|
|
6758
|
+
readonly stateMutability: "view";
|
|
6759
|
+
readonly type: "function";
|
|
6545
6760
|
}, {
|
|
6546
6761
|
readonly inputs: readonly [];
|
|
6547
6762
|
readonly name: "getTokens";
|
|
@@ -6567,8 +6782,12 @@ export declare const abi: readonly [{
|
|
|
6567
6782
|
readonly internalType: "bool";
|
|
6568
6783
|
readonly name: "considerInProviderReward";
|
|
6569
6784
|
readonly type: "bool";
|
|
6785
|
+
}, {
|
|
6786
|
+
readonly internalType: "uint256";
|
|
6787
|
+
readonly name: "storageRequestFee";
|
|
6788
|
+
readonly type: "uint256";
|
|
6570
6789
|
}];
|
|
6571
|
-
readonly internalType: "struct
|
|
6790
|
+
readonly internalType: "struct TokenInfo";
|
|
6572
6791
|
readonly name: "tokenInfo";
|
|
6573
6792
|
readonly type: "tuple";
|
|
6574
6793
|
}];
|
|
@@ -6684,10 +6903,6 @@ export declare const abi: readonly [{
|
|
|
6684
6903
|
readonly internalType: "uint256";
|
|
6685
6904
|
readonly name: "offerSecurityDeposit";
|
|
6686
6905
|
readonly type: "uint256";
|
|
6687
|
-
}, {
|
|
6688
|
-
readonly internalType: "uint256";
|
|
6689
|
-
readonly name: "storageRequestFee";
|
|
6690
|
-
readonly type: "uint256";
|
|
6691
6906
|
}, {
|
|
6692
6907
|
readonly internalType: "uint256";
|
|
6693
6908
|
readonly name: "epochLengthSeconds";
|
|
@@ -6789,8 +7004,12 @@ export declare const abi: readonly [{
|
|
|
6789
7004
|
readonly internalType: "bool";
|
|
6790
7005
|
readonly name: "considerInProviderReward";
|
|
6791
7006
|
readonly type: "bool";
|
|
7007
|
+
}, {
|
|
7008
|
+
readonly internalType: "uint256";
|
|
7009
|
+
readonly name: "storageRequestFee";
|
|
7010
|
+
readonly type: "uint256";
|
|
6792
7011
|
}];
|
|
6793
|
-
readonly internalType: "struct
|
|
7012
|
+
readonly internalType: "struct TokenInfo[]";
|
|
6794
7013
|
readonly name: "tokens";
|
|
6795
7014
|
readonly type: "tuple[]";
|
|
6796
7015
|
}];
|
|
@@ -6798,6 +7017,16 @@ export declare const abi: readonly [{
|
|
|
6798
7017
|
readonly outputs: readonly [];
|
|
6799
7018
|
readonly stateMutability: "nonpayable";
|
|
6800
7019
|
readonly type: "function";
|
|
7020
|
+
}, {
|
|
7021
|
+
readonly inputs: readonly [{
|
|
7022
|
+
readonly internalType: "bool";
|
|
7023
|
+
readonly name: "value";
|
|
7024
|
+
readonly type: "bool";
|
|
7025
|
+
}];
|
|
7026
|
+
readonly name: "setupValueRewards";
|
|
7027
|
+
readonly outputs: readonly [];
|
|
7028
|
+
readonly stateMutability: "nonpayable";
|
|
7029
|
+
readonly type: "function";
|
|
6801
7030
|
}, {
|
|
6802
7031
|
readonly anonymous: false;
|
|
6803
7032
|
readonly inputs: readonly [{
|
|
@@ -7979,7 +8208,7 @@ export declare const abi: readonly [{
|
|
|
7979
8208
|
readonly name: "getCheapestValueOffersPrice";
|
|
7980
8209
|
readonly outputs: readonly [{
|
|
7981
8210
|
readonly internalType: "uint256";
|
|
7982
|
-
readonly name: "
|
|
8211
|
+
readonly name: "";
|
|
7983
8212
|
readonly type: "uint256";
|
|
7984
8213
|
}];
|
|
7985
8214
|
readonly stateMutability: "view";
|
|
@@ -10058,6 +10287,24 @@ export declare const abi: readonly [{
|
|
|
10058
10287
|
}];
|
|
10059
10288
|
readonly stateMutability: "view";
|
|
10060
10289
|
readonly type: "function";
|
|
10290
|
+
}, {
|
|
10291
|
+
readonly inputs: readonly [{
|
|
10292
|
+
readonly internalType: "uint256";
|
|
10293
|
+
readonly name: "offerId";
|
|
10294
|
+
readonly type: "uint256";
|
|
10295
|
+
}, {
|
|
10296
|
+
readonly internalType: "uint64";
|
|
10297
|
+
readonly name: "version";
|
|
10298
|
+
readonly type: "uint64";
|
|
10299
|
+
}];
|
|
10300
|
+
readonly name: "getOfferStorageRequestsFee";
|
|
10301
|
+
readonly outputs: readonly [{
|
|
10302
|
+
readonly internalType: "uint256";
|
|
10303
|
+
readonly name: "";
|
|
10304
|
+
readonly type: "uint256";
|
|
10305
|
+
}];
|
|
10306
|
+
readonly stateMutability: "view";
|
|
10307
|
+
readonly type: "function";
|
|
10061
10308
|
}, {
|
|
10062
10309
|
readonly inputs: readonly [{
|
|
10063
10310
|
readonly internalType: "uint256";
|