@super-protocol/sdk-js 2.2.0-beta.99 → 2.2.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 +245 -28
- package/dist/cjs/contracts/abi.js +313 -33
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +7 -3
- package/dist/cjs/models/Offer.d.ts +11 -1
- package/dist/cjs/models/Offer.js +45 -5
- package/dist/cjs/models/TeeOffer.js +9 -6
- package/dist/cjs/proto/Compression.d.ts +1 -1
- package/dist/cjs/proto/TRI.d.ts +3 -3
- package/dist/cjs/proto/TeeProperties.d.ts +5 -5
- package/dist/cjs/providers/storage/S3StorageProvider.js +5 -8
- package/dist/cjs/providers/storage/StorjCredentialsManager.js +25 -2
- package/dist/cjs/providers/storage/StorjStorageProvider.js +25 -2
- package/dist/cjs/staticModels/Consensus.d.ts +3 -2
- package/dist/cjs/staticModels/Consensus.js +22 -11
- package/dist/cjs/staticModels/OfferResources.d.ts +1 -0
- package/dist/cjs/staticModels/OfferResources.js +10 -1
- package/dist/cjs/staticModels/Offers.js +6 -3
- package/dist/cjs/staticModels/Superpro.d.ts +6 -2
- package/dist/cjs/staticModels/Superpro.js +51 -1
- package/dist/cjs/staticModels/TeeOffers.js +2 -2
- package/dist/cjs/tee/QuoteParser.js +7 -5
- package/dist/cjs/tee/QuoteValidator.d.ts +2 -0
- package/dist/cjs/tee/QuoteValidator.js +24 -7
- package/dist/cjs/tee/TcbSerializer.d.ts +20 -0
- package/dist/cjs/tee/TcbSerializer.js +27 -0
- package/dist/cjs/tee/TeeBlockVerifier.d.ts +0 -4
- package/dist/cjs/tee/TeeBlockVerifier.js +5 -46
- package/dist/cjs/tee/TeeCertificateService.d.ts +13 -0
- package/dist/cjs/tee/TeeCertificateService.js +42 -0
- package/dist/cjs/tee/helpers.d.ts +1 -1
- package/dist/cjs/tee/helpers.js +2 -7
- package/dist/cjs/types/Offer.d.ts +14 -3
- package/dist/cjs/types/Offer.js +9 -2
- package/dist/cjs/types/TokenInfo.d.ts +4 -0
- package/dist/cjs/types/TokenInfo.js +3 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.js +2 -1
- package/dist/cjs/utils/schema-validators/index.d.ts +1 -0
- package/dist/cjs/utils/schema-validators/index.js +6 -0
- package/dist/cjs/utils/schema-validators/validator.d.ts +7 -0
- package/dist/cjs/utils/schema-validators/validator.js +49 -0
- package/dist/mjs/contracts/abi.d.ts +245 -28
- package/dist/mjs/contracts/abi.js +311 -31
- package/dist/mjs/index.d.ts +3 -0
- package/dist/mjs/index.js +4 -1
- package/dist/mjs/models/Offer.d.ts +11 -1
- package/dist/mjs/models/Offer.js +46 -6
- package/dist/mjs/models/TeeOffer.js +9 -6
- package/dist/mjs/proto/Compression.d.ts +1 -1
- package/dist/mjs/proto/TRI.d.ts +3 -3
- package/dist/mjs/proto/TeeProperties.d.ts +5 -5
- package/dist/mjs/providers/storage/S3StorageProvider.js +5 -8
- package/dist/mjs/providers/storage/StorjCredentialsManager.js +2 -2
- package/dist/mjs/providers/storage/StorjStorageProvider.js +2 -2
- package/dist/mjs/staticModels/Consensus.d.ts +3 -2
- package/dist/mjs/staticModels/Consensus.js +22 -11
- package/dist/mjs/staticModels/OfferResources.d.ts +1 -0
- package/dist/mjs/staticModels/OfferResources.js +10 -1
- package/dist/mjs/staticModels/Offers.js +6 -3
- package/dist/mjs/staticModels/Superpro.d.ts +6 -2
- package/dist/mjs/staticModels/Superpro.js +48 -1
- package/dist/mjs/staticModels/TeeOffers.js +2 -2
- package/dist/mjs/tee/QuoteParser.js +7 -5
- package/dist/mjs/tee/QuoteValidator.d.ts +2 -0
- package/dist/mjs/tee/QuoteValidator.js +24 -7
- package/dist/mjs/tee/TcbSerializer.d.ts +20 -0
- package/dist/mjs/tee/TcbSerializer.js +23 -0
- package/dist/mjs/tee/TeeBlockVerifier.d.ts +0 -4
- package/dist/mjs/tee/TeeBlockVerifier.js +5 -46
- package/dist/mjs/tee/TeeCertificateService.d.ts +13 -0
- package/dist/mjs/tee/TeeCertificateService.js +35 -0
- package/dist/mjs/tee/helpers.d.ts +1 -1
- package/dist/mjs/tee/helpers.js +2 -7
- package/dist/mjs/types/Offer.d.ts +14 -3
- package/dist/mjs/types/Offer.js +8 -1
- package/dist/mjs/types/TokenInfo.d.ts +4 -0
- package/dist/mjs/types/TokenInfo.js +2 -0
- package/dist/mjs/types/index.d.ts +1 -0
- package/dist/mjs/types/index.js +2 -1
- package/dist/mjs/utils/schema-validators/index.d.ts +1 -0
- package/dist/mjs/utils/schema-validators/index.js +2 -0
- package/dist/mjs/utils/schema-validators/validator.d.ts +7 -0
- package/dist/mjs/utils/schema-validators/validator.js +45 -0
- package/package.json +5 -4
|
@@ -12,6 +12,7 @@ export declare const DepositWithdrawn: "DepositWithdrawn";
|
|
|
12
12
|
export declare const OfferCreated: "OfferCreated";
|
|
13
13
|
export declare const OfferDisabled: "OfferDisabled";
|
|
14
14
|
export declare const OfferEnabled: "OfferEnabled";
|
|
15
|
+
export declare const SetValueOfferRestrictions: "SetValueOfferRestrictions";
|
|
15
16
|
export declare const TeeOfferCreated: "TeeOfferCreated";
|
|
16
17
|
export declare const TeeOfferViolationRateChanged: "TeeOfferViolationRateChanged";
|
|
17
18
|
export declare const OrdersGroupCreated: "OrdersGroupCreated";
|
|
@@ -54,7 +55,7 @@ export declare const OrderResourceCreated: "OrderResourceCreated";
|
|
|
54
55
|
export declare const OfferStorageRequestCanceled: "OfferStorageRequestCanceled";
|
|
55
56
|
export declare const OfferStorageRequestCreated: "OfferStorageRequestCreated";
|
|
56
57
|
export declare const SecretRequestCreated: "SecretRequestCreated";
|
|
57
|
-
export type AbiEvent = typeof Approval | typeof Transfer | typeof RewardsClaimed | typeof TcbBenchmarkChanged | typeof TcbCompleted | typeof TcbInitialized | typeof TcbBanned | typeof DepositPartLocked | typeof DepositPartUnlocked | typeof DepositReplenished | typeof DepositWithdrawn | typeof OfferCreated | typeof OfferDisabled | typeof OfferEnabled | typeof TeeOfferCreated | typeof TeeOfferViolationRateChanged | typeof OrdersGroupCreated | typeof OrderCreated | typeof OrderStatusUpdated | typeof OrderAwaitingPaymentChanged | typeof OrderDepositRefilled | typeof OrderOptionsDepositSpentChanged | typeof OrderProfitUnlocked | typeof OrderChangeWithdrawn | typeof OrderEncryptedResultUpdated | typeof OrderProfitWithdrawn | typeof OrderStarted | typeof OrderOptionsChangeRequested | typeof OrderOptionsChanged | typeof OrderSlotCountUpdateRequested | typeof OrderSlotCountUpdated | typeof ProviderModified | typeof ProviderRegistered | typeof ProviderSecurityDepoRefilled | typeof ProviderSecurityDepoUnlocked | typeof ProviderViolationRateIncremented | 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 LoaderSecretPublicKeySessionUpdated | typeof LoaderSessionKeyUpdated | typeof OfferResourceCreated | typeof OrderResourceCreated | typeof OfferStorageRequestCanceled | typeof OfferStorageRequestCreated | typeof SecretRequestCreated;
|
|
58
|
+
export type AbiEvent = typeof Approval | typeof Transfer | typeof RewardsClaimed | typeof TcbBenchmarkChanged | typeof TcbCompleted | typeof TcbInitialized | typeof TcbBanned | typeof DepositPartLocked | typeof DepositPartUnlocked | typeof DepositReplenished | typeof DepositWithdrawn | typeof OfferCreated | typeof OfferDisabled | typeof OfferEnabled | typeof SetValueOfferRestrictions | typeof TeeOfferCreated | typeof TeeOfferViolationRateChanged | typeof OrdersGroupCreated | typeof OrderCreated | typeof OrderStatusUpdated | typeof OrderAwaitingPaymentChanged | typeof OrderDepositRefilled | typeof OrderOptionsDepositSpentChanged | typeof OrderProfitUnlocked | typeof OrderChangeWithdrawn | typeof OrderEncryptedResultUpdated | typeof OrderProfitWithdrawn | typeof OrderStarted | typeof OrderOptionsChangeRequested | typeof OrderOptionsChanged | typeof OrderSlotCountUpdateRequested | typeof OrderSlotCountUpdated | typeof ProviderModified | typeof ProviderRegistered | typeof ProviderSecurityDepoRefilled | typeof ProviderSecurityDepoUnlocked | typeof ProviderViolationRateIncremented | 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 LoaderSecretPublicKeySessionUpdated | typeof LoaderSessionKeyUpdated | typeof OfferResourceCreated | typeof OrderResourceCreated | typeof OfferStorageRequestCanceled | typeof OfferStorageRequestCreated | typeof SecretRequestCreated;
|
|
58
59
|
export declare const abi: readonly [{
|
|
59
60
|
readonly anonymous: false;
|
|
60
61
|
readonly inputs: readonly [{
|
|
@@ -1248,6 +1249,20 @@ export declare const abi: readonly [{
|
|
|
1248
1249
|
}];
|
|
1249
1250
|
readonly stateMutability: "view";
|
|
1250
1251
|
readonly type: "function";
|
|
1252
|
+
}, {
|
|
1253
|
+
readonly inputs: readonly [{
|
|
1254
|
+
readonly internalType: "address";
|
|
1255
|
+
readonly name: "beneficiary";
|
|
1256
|
+
readonly type: "address";
|
|
1257
|
+
}, {
|
|
1258
|
+
readonly internalType: "uint256";
|
|
1259
|
+
readonly name: "amount";
|
|
1260
|
+
readonly type: "uint256";
|
|
1261
|
+
}];
|
|
1262
|
+
readonly name: "increaseForByApp";
|
|
1263
|
+
readonly outputs: readonly [];
|
|
1264
|
+
readonly stateMutability: "nonpayable";
|
|
1265
|
+
readonly type: "function";
|
|
1251
1266
|
}, {
|
|
1252
1267
|
readonly inputs: readonly [{
|
|
1253
1268
|
readonly internalType: "address";
|
|
@@ -1439,6 +1454,34 @@ export declare const abi: readonly [{
|
|
|
1439
1454
|
}];
|
|
1440
1455
|
readonly name: "OfferEnabled";
|
|
1441
1456
|
readonly type: "event";
|
|
1457
|
+
}, {
|
|
1458
|
+
readonly anonymous: false;
|
|
1459
|
+
readonly inputs: readonly [{
|
|
1460
|
+
readonly indexed: true;
|
|
1461
|
+
readonly internalType: "uint256";
|
|
1462
|
+
readonly name: "orderId";
|
|
1463
|
+
readonly type: "uint256";
|
|
1464
|
+
}, {
|
|
1465
|
+
readonly components: readonly [{
|
|
1466
|
+
readonly internalType: "uint256[]";
|
|
1467
|
+
readonly name: "offers";
|
|
1468
|
+
readonly type: "uint256[]";
|
|
1469
|
+
}, {
|
|
1470
|
+
readonly internalType: "enum OfferType[]";
|
|
1471
|
+
readonly name: "types";
|
|
1472
|
+
readonly type: "uint8[]";
|
|
1473
|
+
}, {
|
|
1474
|
+
readonly internalType: "uint64[]";
|
|
1475
|
+
readonly name: "versions";
|
|
1476
|
+
readonly type: "uint64[]";
|
|
1477
|
+
}];
|
|
1478
|
+
readonly indexed: false;
|
|
1479
|
+
readonly internalType: "struct ValueOfferRestrictionsSpecification";
|
|
1480
|
+
readonly name: "specification";
|
|
1481
|
+
readonly type: "tuple";
|
|
1482
|
+
}];
|
|
1483
|
+
readonly name: "SetValueOfferRestrictions";
|
|
1484
|
+
readonly type: "event";
|
|
1442
1485
|
}, {
|
|
1443
1486
|
readonly anonymous: false;
|
|
1444
1487
|
readonly inputs: readonly [{
|
|
@@ -1509,6 +1552,10 @@ export declare const abi: readonly [{
|
|
|
1509
1552
|
readonly internalType: "string";
|
|
1510
1553
|
readonly name: "argsPublicKey";
|
|
1511
1554
|
readonly type: "string";
|
|
1555
|
+
}, {
|
|
1556
|
+
readonly internalType: "enum TeeOfferSubtype";
|
|
1557
|
+
readonly name: "subtype";
|
|
1558
|
+
readonly type: "uint8";
|
|
1512
1559
|
}];
|
|
1513
1560
|
readonly internalType: "struct TeeOfferInfo";
|
|
1514
1561
|
readonly name: "info";
|
|
@@ -1555,10 +1602,6 @@ export declare const abi: readonly [{
|
|
|
1555
1602
|
readonly internalType: "bool";
|
|
1556
1603
|
readonly name: "enabled";
|
|
1557
1604
|
readonly type: "bool";
|
|
1558
|
-
}, {
|
|
1559
|
-
readonly internalType: "enum TeeOfferSubtype";
|
|
1560
|
-
readonly name: "subtype";
|
|
1561
|
-
readonly type: "uint8";
|
|
1562
1605
|
}];
|
|
1563
1606
|
readonly name: "createTeeOffer";
|
|
1564
1607
|
readonly outputs: readonly [];
|
|
@@ -1569,6 +1612,10 @@ export declare const abi: readonly [{
|
|
|
1569
1612
|
readonly internalType: "address";
|
|
1570
1613
|
readonly name: "providerAuth";
|
|
1571
1614
|
readonly type: "address";
|
|
1615
|
+
}, {
|
|
1616
|
+
readonly internalType: "enum OfferType";
|
|
1617
|
+
readonly name: "offerType";
|
|
1618
|
+
readonly type: "uint8";
|
|
1572
1619
|
}, {
|
|
1573
1620
|
readonly components: readonly [{
|
|
1574
1621
|
readonly internalType: "string";
|
|
@@ -1576,11 +1623,11 @@ export declare const abi: readonly [{
|
|
|
1576
1623
|
readonly type: "string";
|
|
1577
1624
|
}, {
|
|
1578
1625
|
readonly internalType: "enum OfferGroup";
|
|
1579
|
-
readonly name: "
|
|
1626
|
+
readonly name: "group_DEPRECATED";
|
|
1580
1627
|
readonly type: "uint8";
|
|
1581
1628
|
}, {
|
|
1582
1629
|
readonly internalType: "enum OfferType";
|
|
1583
|
-
readonly name: "
|
|
1630
|
+
readonly name: "offerType_DEPRECATED";
|
|
1584
1631
|
readonly type: "uint8";
|
|
1585
1632
|
}, {
|
|
1586
1633
|
readonly internalType: "bool";
|
|
@@ -1628,7 +1675,15 @@ export declare const abi: readonly [{
|
|
|
1628
1675
|
readonly type: "string";
|
|
1629
1676
|
}, {
|
|
1630
1677
|
readonly internalType: "string";
|
|
1631
|
-
readonly name: "
|
|
1678
|
+
readonly name: "signatureKeyHash";
|
|
1679
|
+
readonly type: "string";
|
|
1680
|
+
}, {
|
|
1681
|
+
readonly internalType: "enum ValueOfferSubtype";
|
|
1682
|
+
readonly name: "subtype";
|
|
1683
|
+
readonly type: "uint8";
|
|
1684
|
+
}, {
|
|
1685
|
+
readonly internalType: "string";
|
|
1686
|
+
readonly name: "hardwareContext";
|
|
1632
1687
|
readonly type: "string";
|
|
1633
1688
|
}];
|
|
1634
1689
|
readonly internalType: "struct ValueOfferInfo";
|
|
@@ -1841,6 +1896,10 @@ export declare const abi: readonly [{
|
|
|
1841
1896
|
readonly internalType: "string";
|
|
1842
1897
|
readonly name: "argsPublicKey";
|
|
1843
1898
|
readonly type: "string";
|
|
1899
|
+
}, {
|
|
1900
|
+
readonly internalType: "enum TeeOfferSubtype";
|
|
1901
|
+
readonly name: "subtype";
|
|
1902
|
+
readonly type: "uint8";
|
|
1844
1903
|
}];
|
|
1845
1904
|
readonly internalType: "struct TeeOfferInfo";
|
|
1846
1905
|
readonly name: "newInfo";
|
|
@@ -1876,11 +1935,11 @@ export declare const abi: readonly [{
|
|
|
1876
1935
|
readonly type: "string";
|
|
1877
1936
|
}, {
|
|
1878
1937
|
readonly internalType: "enum OfferGroup";
|
|
1879
|
-
readonly name: "
|
|
1938
|
+
readonly name: "group_DEPRECATED";
|
|
1880
1939
|
readonly type: "uint8";
|
|
1881
1940
|
}, {
|
|
1882
1941
|
readonly internalType: "enum OfferType";
|
|
1883
|
-
readonly name: "
|
|
1942
|
+
readonly name: "offerType_DEPRECATED";
|
|
1884
1943
|
readonly type: "uint8";
|
|
1885
1944
|
}, {
|
|
1886
1945
|
readonly internalType: "bool";
|
|
@@ -1928,7 +1987,15 @@ export declare const abi: readonly [{
|
|
|
1928
1987
|
readonly type: "string";
|
|
1929
1988
|
}, {
|
|
1930
1989
|
readonly internalType: "string";
|
|
1931
|
-
readonly name: "
|
|
1990
|
+
readonly name: "signatureKeyHash";
|
|
1991
|
+
readonly type: "string";
|
|
1992
|
+
}, {
|
|
1993
|
+
readonly internalType: "enum ValueOfferSubtype";
|
|
1994
|
+
readonly name: "subtype";
|
|
1995
|
+
readonly type: "uint8";
|
|
1996
|
+
}, {
|
|
1997
|
+
readonly internalType: "string";
|
|
1998
|
+
readonly name: "hardwareContext";
|
|
1932
1999
|
readonly type: "string";
|
|
1933
2000
|
}];
|
|
1934
2001
|
readonly internalType: "struct ValueOfferInfo";
|
|
@@ -1966,6 +2033,20 @@ export declare const abi: readonly [{
|
|
|
1966
2033
|
readonly outputs: readonly [];
|
|
1967
2034
|
readonly stateMutability: "nonpayable";
|
|
1968
2035
|
readonly type: "function";
|
|
2036
|
+
}, {
|
|
2037
|
+
readonly inputs: readonly [{
|
|
2038
|
+
readonly internalType: "uint256";
|
|
2039
|
+
readonly name: "offerId";
|
|
2040
|
+
readonly type: "uint256";
|
|
2041
|
+
}, {
|
|
2042
|
+
readonly internalType: "enum ValueOfferSubtype";
|
|
2043
|
+
readonly name: "newSubtype";
|
|
2044
|
+
readonly type: "uint8";
|
|
2045
|
+
}];
|
|
2046
|
+
readonly name: "setValueOfferSubtype";
|
|
2047
|
+
readonly outputs: readonly [];
|
|
2048
|
+
readonly stateMutability: "nonpayable";
|
|
2049
|
+
readonly type: "function";
|
|
1969
2050
|
}, {
|
|
1970
2051
|
readonly inputs: readonly [{
|
|
1971
2052
|
readonly internalType: "uint256";
|
|
@@ -2011,6 +2092,10 @@ export declare const abi: readonly [{
|
|
|
2011
2092
|
readonly internalType: "string";
|
|
2012
2093
|
readonly name: "argsPublicKey";
|
|
2013
2094
|
readonly type: "string";
|
|
2095
|
+
}, {
|
|
2096
|
+
readonly internalType: "enum TeeOfferSubtype";
|
|
2097
|
+
readonly name: "subtype";
|
|
2098
|
+
readonly type: "uint8";
|
|
2014
2099
|
}];
|
|
2015
2100
|
readonly internalType: "struct TeeOfferInfo";
|
|
2016
2101
|
readonly name: "info";
|
|
@@ -2019,10 +2104,6 @@ export declare const abi: readonly [{
|
|
|
2019
2104
|
readonly internalType: "bool";
|
|
2020
2105
|
readonly name: "enabled";
|
|
2021
2106
|
readonly type: "bool";
|
|
2022
|
-
}, {
|
|
2023
|
-
readonly internalType: "enum TeeOfferSubtype";
|
|
2024
|
-
readonly name: "subtype";
|
|
2025
|
-
readonly type: "uint8";
|
|
2026
2107
|
}];
|
|
2027
2108
|
readonly internalType: "struct TeeOfferData[]";
|
|
2028
2109
|
readonly name: "";
|
|
@@ -2054,6 +2135,10 @@ export declare const abi: readonly [{
|
|
|
2054
2135
|
readonly internalType: "address";
|
|
2055
2136
|
readonly name: "providerAuth";
|
|
2056
2137
|
readonly type: "address";
|
|
2138
|
+
}, {
|
|
2139
|
+
readonly internalType: "enum OfferType";
|
|
2140
|
+
readonly name: "offerType";
|
|
2141
|
+
readonly type: "uint8";
|
|
2057
2142
|
}, {
|
|
2058
2143
|
readonly components: readonly [{
|
|
2059
2144
|
readonly internalType: "string";
|
|
@@ -2061,11 +2146,11 @@ export declare const abi: readonly [{
|
|
|
2061
2146
|
readonly type: "string";
|
|
2062
2147
|
}, {
|
|
2063
2148
|
readonly internalType: "enum OfferGroup";
|
|
2064
|
-
readonly name: "
|
|
2149
|
+
readonly name: "group_DEPRECATED";
|
|
2065
2150
|
readonly type: "uint8";
|
|
2066
2151
|
}, {
|
|
2067
2152
|
readonly internalType: "enum OfferType";
|
|
2068
|
-
readonly name: "
|
|
2153
|
+
readonly name: "offerType_DEPRECATED";
|
|
2069
2154
|
readonly type: "uint8";
|
|
2070
2155
|
}, {
|
|
2071
2156
|
readonly internalType: "bool";
|
|
@@ -2113,7 +2198,15 @@ export declare const abi: readonly [{
|
|
|
2113
2198
|
readonly type: "string";
|
|
2114
2199
|
}, {
|
|
2115
2200
|
readonly internalType: "string";
|
|
2116
|
-
readonly name: "
|
|
2201
|
+
readonly name: "signatureKeyHash";
|
|
2202
|
+
readonly type: "string";
|
|
2203
|
+
}, {
|
|
2204
|
+
readonly internalType: "enum ValueOfferSubtype";
|
|
2205
|
+
readonly name: "subtype";
|
|
2206
|
+
readonly type: "uint8";
|
|
2207
|
+
}, {
|
|
2208
|
+
readonly internalType: "string";
|
|
2209
|
+
readonly name: "hardwareContext";
|
|
2117
2210
|
readonly type: "string";
|
|
2118
2211
|
}];
|
|
2119
2212
|
readonly internalType: "struct ValueOfferInfo";
|
|
@@ -2255,7 +2348,7 @@ export declare const abi: readonly [{
|
|
|
2255
2348
|
readonly type: "uint64[]";
|
|
2256
2349
|
}];
|
|
2257
2350
|
readonly internalType: "struct ValueOfferRestrictionsSpecification";
|
|
2258
|
-
readonly name: "";
|
|
2351
|
+
readonly name: "ret";
|
|
2259
2352
|
readonly type: "tuple";
|
|
2260
2353
|
}];
|
|
2261
2354
|
readonly stateMutability: "view";
|
|
@@ -2393,6 +2486,10 @@ export declare const abi: readonly [{
|
|
|
2393
2486
|
readonly internalType: "string";
|
|
2394
2487
|
readonly name: "argsPublicKey";
|
|
2395
2488
|
readonly type: "string";
|
|
2489
|
+
}, {
|
|
2490
|
+
readonly internalType: "enum TeeOfferSubtype";
|
|
2491
|
+
readonly name: "subtype";
|
|
2492
|
+
readonly type: "uint8";
|
|
2396
2493
|
}];
|
|
2397
2494
|
readonly internalType: "struct TeeOfferInfo";
|
|
2398
2495
|
readonly name: "info";
|
|
@@ -2401,10 +2498,6 @@ export declare const abi: readonly [{
|
|
|
2401
2498
|
readonly internalType: "bool";
|
|
2402
2499
|
readonly name: "enabled";
|
|
2403
2500
|
readonly type: "bool";
|
|
2404
|
-
}, {
|
|
2405
|
-
readonly internalType: "enum TeeOfferSubtype";
|
|
2406
|
-
readonly name: "subtype";
|
|
2407
|
-
readonly type: "uint8";
|
|
2408
2501
|
}];
|
|
2409
2502
|
readonly internalType: "struct TeeOfferData";
|
|
2410
2503
|
readonly name: "ret";
|
|
@@ -2486,6 +2579,10 @@ export declare const abi: readonly [{
|
|
|
2486
2579
|
readonly internalType: "address";
|
|
2487
2580
|
readonly name: "providerAuth";
|
|
2488
2581
|
readonly type: "address";
|
|
2582
|
+
}, {
|
|
2583
|
+
readonly internalType: "enum OfferType";
|
|
2584
|
+
readonly name: "offerType";
|
|
2585
|
+
readonly type: "uint8";
|
|
2489
2586
|
}, {
|
|
2490
2587
|
readonly components: readonly [{
|
|
2491
2588
|
readonly internalType: "string";
|
|
@@ -2493,11 +2590,11 @@ export declare const abi: readonly [{
|
|
|
2493
2590
|
readonly type: "string";
|
|
2494
2591
|
}, {
|
|
2495
2592
|
readonly internalType: "enum OfferGroup";
|
|
2496
|
-
readonly name: "
|
|
2593
|
+
readonly name: "group_DEPRECATED";
|
|
2497
2594
|
readonly type: "uint8";
|
|
2498
2595
|
}, {
|
|
2499
2596
|
readonly internalType: "enum OfferType";
|
|
2500
|
-
readonly name: "
|
|
2597
|
+
readonly name: "offerType_DEPRECATED";
|
|
2501
2598
|
readonly type: "uint8";
|
|
2502
2599
|
}, {
|
|
2503
2600
|
readonly internalType: "bool";
|
|
@@ -2545,7 +2642,15 @@ export declare const abi: readonly [{
|
|
|
2545
2642
|
readonly type: "string";
|
|
2546
2643
|
}, {
|
|
2547
2644
|
readonly internalType: "string";
|
|
2548
|
-
readonly name: "
|
|
2645
|
+
readonly name: "signatureKeyHash";
|
|
2646
|
+
readonly type: "string";
|
|
2647
|
+
}, {
|
|
2648
|
+
readonly internalType: "enum ValueOfferSubtype";
|
|
2649
|
+
readonly name: "subtype";
|
|
2650
|
+
readonly type: "uint8";
|
|
2651
|
+
}, {
|
|
2652
|
+
readonly internalType: "string";
|
|
2653
|
+
readonly name: "hardwareContext";
|
|
2549
2654
|
readonly type: "string";
|
|
2550
2655
|
}];
|
|
2551
2656
|
readonly internalType: "struct ValueOfferInfo";
|
|
@@ -2562,6 +2667,20 @@ export declare const abi: readonly [{
|
|
|
2562
2667
|
}];
|
|
2563
2668
|
readonly stateMutability: "view";
|
|
2564
2669
|
readonly type: "function";
|
|
2670
|
+
}, {
|
|
2671
|
+
readonly inputs: readonly [{
|
|
2672
|
+
readonly internalType: "uint256";
|
|
2673
|
+
readonly name: "offerId";
|
|
2674
|
+
readonly type: "uint256";
|
|
2675
|
+
}];
|
|
2676
|
+
readonly name: "getValueOfferSubtype";
|
|
2677
|
+
readonly outputs: readonly [{
|
|
2678
|
+
readonly internalType: "enum ValueOfferSubtype";
|
|
2679
|
+
readonly name: "";
|
|
2680
|
+
readonly type: "uint8";
|
|
2681
|
+
}];
|
|
2682
|
+
readonly stateMutability: "view";
|
|
2683
|
+
readonly type: "function";
|
|
2565
2684
|
}, {
|
|
2566
2685
|
readonly inputs: readonly [{
|
|
2567
2686
|
readonly internalType: "uint256";
|
|
@@ -4851,6 +4970,10 @@ export declare const abi: readonly [{
|
|
|
4851
4970
|
readonly internalType: "enum OfferType";
|
|
4852
4971
|
readonly name: "offerType";
|
|
4853
4972
|
readonly type: "uint8";
|
|
4973
|
+
}, {
|
|
4974
|
+
readonly internalType: "bool";
|
|
4975
|
+
readonly name: "enabled";
|
|
4976
|
+
readonly type: "bool";
|
|
4854
4977
|
}];
|
|
4855
4978
|
readonly name: "addProviderOffer";
|
|
4856
4979
|
readonly outputs: readonly [];
|
|
@@ -4989,6 +5112,25 @@ export declare const abi: readonly [{
|
|
|
4989
5112
|
readonly outputs: readonly [];
|
|
4990
5113
|
readonly stateMutability: "nonpayable";
|
|
4991
5114
|
readonly type: "function";
|
|
5115
|
+
}, {
|
|
5116
|
+
readonly inputs: readonly [{
|
|
5117
|
+
readonly components: readonly [{
|
|
5118
|
+
readonly internalType: "address";
|
|
5119
|
+
readonly name: "tokenContractAddress";
|
|
5120
|
+
readonly type: "address";
|
|
5121
|
+
}, {
|
|
5122
|
+
readonly internalType: "uint32";
|
|
5123
|
+
readonly name: "protocolCommissionPercent";
|
|
5124
|
+
readonly type: "uint32";
|
|
5125
|
+
}];
|
|
5126
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5127
|
+
readonly name: "newTokens";
|
|
5128
|
+
readonly type: "tuple[]";
|
|
5129
|
+
}];
|
|
5130
|
+
readonly name: "addTokens";
|
|
5131
|
+
readonly outputs: readonly [];
|
|
5132
|
+
readonly stateMutability: "nonpayable";
|
|
5133
|
+
readonly type: "function";
|
|
4992
5134
|
}, {
|
|
4993
5135
|
readonly inputs: readonly [{
|
|
4994
5136
|
readonly internalType: "enum ParamName";
|
|
@@ -5003,6 +5145,16 @@ export declare const abi: readonly [{
|
|
|
5003
5145
|
}];
|
|
5004
5146
|
readonly stateMutability: "view";
|
|
5005
5147
|
readonly type: "function";
|
|
5148
|
+
}, {
|
|
5149
|
+
readonly inputs: readonly [];
|
|
5150
|
+
readonly name: "getProtocolCommissionDenominator";
|
|
5151
|
+
readonly outputs: readonly [{
|
|
5152
|
+
readonly internalType: "uint32";
|
|
5153
|
+
readonly name: "";
|
|
5154
|
+
readonly type: "uint32";
|
|
5155
|
+
}];
|
|
5156
|
+
readonly stateMutability: "pure";
|
|
5157
|
+
readonly type: "function";
|
|
5006
5158
|
}, {
|
|
5007
5159
|
readonly inputs: readonly [];
|
|
5008
5160
|
readonly name: "getProtocolIncomeDistribution";
|
|
@@ -5013,7 +5165,7 @@ export declare const abi: readonly [{
|
|
|
5013
5165
|
readonly type: "address";
|
|
5014
5166
|
}, {
|
|
5015
5167
|
readonly internalType: "uint16";
|
|
5016
|
-
readonly name: "
|
|
5168
|
+
readonly name: "percent";
|
|
5017
5169
|
readonly type: "uint16";
|
|
5018
5170
|
}];
|
|
5019
5171
|
readonly internalType: "struct ProtocolIncomeRecipient[]";
|
|
@@ -5052,6 +5204,49 @@ export declare const abi: readonly [{
|
|
|
5052
5204
|
}];
|
|
5053
5205
|
readonly stateMutability: "view";
|
|
5054
5206
|
readonly type: "function";
|
|
5207
|
+
}, {
|
|
5208
|
+
readonly inputs: readonly [];
|
|
5209
|
+
readonly name: "getTokens";
|
|
5210
|
+
readonly outputs: readonly [{
|
|
5211
|
+
readonly components: readonly [{
|
|
5212
|
+
readonly internalType: "address";
|
|
5213
|
+
readonly name: "tokenContractAddress";
|
|
5214
|
+
readonly type: "address";
|
|
5215
|
+
}, {
|
|
5216
|
+
readonly internalType: "uint32";
|
|
5217
|
+
readonly name: "protocolCommissionPercent";
|
|
5218
|
+
readonly type: "uint32";
|
|
5219
|
+
}];
|
|
5220
|
+
readonly internalType: "struct TokenInfo[]";
|
|
5221
|
+
readonly name: "";
|
|
5222
|
+
readonly type: "tuple[]";
|
|
5223
|
+
}];
|
|
5224
|
+
readonly stateMutability: "view";
|
|
5225
|
+
readonly type: "function";
|
|
5226
|
+
}, {
|
|
5227
|
+
readonly inputs: readonly [{
|
|
5228
|
+
readonly internalType: "address";
|
|
5229
|
+
readonly name: "tokenContractAddress";
|
|
5230
|
+
readonly type: "address";
|
|
5231
|
+
}];
|
|
5232
|
+
readonly name: "isTokenExists";
|
|
5233
|
+
readonly outputs: readonly [{
|
|
5234
|
+
readonly internalType: "bool";
|
|
5235
|
+
readonly name: "";
|
|
5236
|
+
readonly type: "bool";
|
|
5237
|
+
}];
|
|
5238
|
+
readonly stateMutability: "view";
|
|
5239
|
+
readonly type: "function";
|
|
5240
|
+
}, {
|
|
5241
|
+
readonly inputs: readonly [{
|
|
5242
|
+
readonly internalType: "address[]";
|
|
5243
|
+
readonly name: "tokensAddresses";
|
|
5244
|
+
readonly type: "address[]";
|
|
5245
|
+
}];
|
|
5246
|
+
readonly name: "removeTokens";
|
|
5247
|
+
readonly outputs: readonly [];
|
|
5248
|
+
readonly stateMutability: "nonpayable";
|
|
5249
|
+
readonly type: "function";
|
|
5055
5250
|
}, {
|
|
5056
5251
|
readonly inputs: readonly [{
|
|
5057
5252
|
readonly internalType: "enum ParamName";
|
|
@@ -5131,7 +5326,7 @@ export declare const abi: readonly [{
|
|
|
5131
5326
|
readonly type: "address";
|
|
5132
5327
|
}, {
|
|
5133
5328
|
readonly internalType: "uint16";
|
|
5134
|
-
readonly name: "
|
|
5329
|
+
readonly name: "percent";
|
|
5135
5330
|
readonly type: "uint16";
|
|
5136
5331
|
}];
|
|
5137
5332
|
readonly internalType: "struct ProtocolIncomeRecipient[]";
|
|
@@ -7855,6 +8050,28 @@ export declare const abi: readonly [{
|
|
|
7855
8050
|
readonly outputs: readonly [];
|
|
7856
8051
|
readonly stateMutability: "nonpayable";
|
|
7857
8052
|
readonly type: "function";
|
|
8053
|
+
}, {
|
|
8054
|
+
readonly inputs: readonly [{
|
|
8055
|
+
readonly internalType: "uint256";
|
|
8056
|
+
readonly name: "teeOfferIssuerId";
|
|
8057
|
+
readonly type: "uint256";
|
|
8058
|
+
}, {
|
|
8059
|
+
readonly internalType: "uint256";
|
|
8060
|
+
readonly name: "teeOfferKeeperId";
|
|
8061
|
+
readonly type: "uint256";
|
|
8062
|
+
}, {
|
|
8063
|
+
readonly internalType: "uint256";
|
|
8064
|
+
readonly name: "offerId";
|
|
8065
|
+
readonly type: "uint256";
|
|
8066
|
+
}, {
|
|
8067
|
+
readonly internalType: "uint64";
|
|
8068
|
+
readonly name: "offerVersion";
|
|
8069
|
+
readonly type: "uint64";
|
|
8070
|
+
}];
|
|
8071
|
+
readonly name: "removeOfferResource";
|
|
8072
|
+
readonly outputs: readonly [];
|
|
8073
|
+
readonly stateMutability: "nonpayable";
|
|
8074
|
+
readonly type: "function";
|
|
7858
8075
|
}, {
|
|
7859
8076
|
readonly inputs: readonly [{
|
|
7860
8077
|
readonly components: readonly [{
|