@imtbl/sdk 0.13.1-alpha → 0.13.1-alpha.1

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/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 ? [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.1-alpha' };
1460
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.13.1-alpha.1' };
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.1-alpha',
1516
+ sdkVersion: 'ts-immutable-sdk-0.13.1-alpha.1',
1517
1517
  });
1518
1518
  /**
1519
1519
  * Sets `sdkVersion` at the time of build
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "0.13.1-alpha",
4
+ "version": "0.13.1-alpha.1",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",