@imtbl/sdk 0.13.1-alpha → 0.13.2-alpha
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/blockchain_data.js +1 -1
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.js +119 -6
- package/dist/checkout_widgets.js +1 -1
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +8 -8
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +125 -10
- package/dist/index.d.ts +509 -91
- package/dist/index.js +125 -10
- package/dist/orderbook.d.ts +963 -71
- package/dist/orderbook.js +20 -3
- package/dist/passport.js +2 -2
- package/package.json +1 -1
package/dist/orderbook.js
CHANGED
|
@@ -553,6 +553,13 @@ var ProtocolData;
|
|
|
553
553
|
})(ProtocolData.order_type || (ProtocolData.order_type = {}));
|
|
554
554
|
})(ProtocolData || (ProtocolData = {}));
|
|
555
555
|
|
|
556
|
+
var FeeType;
|
|
557
|
+
(function (FeeType) {
|
|
558
|
+
FeeType["MAKER_MARKETPLACE"] = "MAKER_MARKETPLACE";
|
|
559
|
+
FeeType["TAKER_MARKETPLACE"] = "TAKER_MARKETPLACE";
|
|
560
|
+
FeeType["PROTOCOL"] = "PROTOCOL";
|
|
561
|
+
FeeType["ROYALTY"] = "ROYALTY";
|
|
562
|
+
})(FeeType || (FeeType = {}));
|
|
556
563
|
var TransactionPurpose;
|
|
557
564
|
(function (TransactionPurpose) {
|
|
558
565
|
TransactionPurpose["APPROVAL"] = "APPROVAL";
|
|
@@ -915,7 +922,11 @@ class ImmutableApiClient {
|
|
|
915
922
|
contract_address: orderComponents.consideration[0].token,
|
|
916
923
|
},
|
|
917
924
|
],
|
|
918
|
-
fees: makerFee ? [
|
|
925
|
+
fees: makerFee ? [{
|
|
926
|
+
amount: makerFee.amount,
|
|
927
|
+
fee_type: makerFee.type,
|
|
928
|
+
recipient: makerFee.recipient,
|
|
929
|
+
}] : [],
|
|
919
930
|
end_time: new Date(parseInt(`${orderComponents.endTime.toString()}000`, 10)).toISOString(),
|
|
920
931
|
protocol_data: {
|
|
921
932
|
order_type: ProtocolData.order_type.FULL_RESTRICTED,
|
|
@@ -1088,7 +1099,13 @@ class Orderbook {
|
|
|
1088
1099
|
const fulfillmentDataRes = await this.apiClient.fulfillmentData([
|
|
1089
1100
|
{
|
|
1090
1101
|
order_id: listingId,
|
|
1091
|
-
fee: takerFee
|
|
1102
|
+
fee: takerFee
|
|
1103
|
+
? {
|
|
1104
|
+
amount: takerFee.amount,
|
|
1105
|
+
fee_type: takerFee.type,
|
|
1106
|
+
recipient: takerFee.recipient,
|
|
1107
|
+
}
|
|
1108
|
+
: undefined,
|
|
1092
1109
|
},
|
|
1093
1110
|
]);
|
|
1094
1111
|
if (fulfillmentDataRes.result.length !== 1) {
|
|
@@ -1131,4 +1148,4 @@ const constants = {
|
|
|
1131
1148
|
estimatedFulfillmentGasGwei: ESTIMATED_FULFILLMENT_GAS_GWEI,
|
|
1132
1149
|
};
|
|
1133
1150
|
|
|
1134
|
-
export { ActionType, Orderbook, SignablePurpose, TransactionPurpose, constants };
|
|
1151
|
+
export { ActionType, FeeType, OrderStatus, Orderbook, SignablePurpose, TransactionPurpose, constants };
|
package/dist/passport.js
CHANGED
|
@@ -1457,7 +1457,7 @@ class MultiRollupApiClients {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
|
|
1459
1459
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1460
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.13.
|
|
1460
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.13.2-alpha' };
|
|
1461
1461
|
const createConfig = ({ basePath, headers, }) => {
|
|
1462
1462
|
if (!basePath.trim()) {
|
|
1463
1463
|
throw Error('basePath can not be empty');
|
|
@@ -1513,7 +1513,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
1513
1513
|
chainID,
|
|
1514
1514
|
coreContractAddress,
|
|
1515
1515
|
registrationContractAddress,
|
|
1516
|
-
sdkVersion: 'ts-immutable-sdk-0.13.
|
|
1516
|
+
sdkVersion: 'ts-immutable-sdk-0.13.2-alpha',
|
|
1517
1517
|
});
|
|
1518
1518
|
/**
|
|
1519
1519
|
* Sets `sdkVersion` at the time of build
|
package/package.json
CHANGED