@imtbl/sdk 0.28.8 → 0.28.9-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/orderbook.js CHANGED
@@ -861,15 +861,12 @@ function getOrderComponentsFromMessage(orderMessage) {
861
861
 
862
862
  // Add 20% more gas than estimate to prevent out of gas errors
863
863
  // This can always be overwritten by the user signing the transaction
864
- function prepareTransaction(transactionMethods,
865
- // chainId is required for EIP155
866
- chainId) {
864
+ function prepareTransaction(transactionMethods) {
867
865
  return async () => {
868
866
  const transaction = await transactionMethods.buildTransaction();
869
867
  transaction.gasLimit = await transactionMethods.estimateGas();
870
868
  transaction.gasLimit = transaction.gasLimit
871
869
  .add(transaction.gasLimit.div(5));
872
- transaction.chainId = chainId;
873
870
  return transaction;
874
871
  };
875
872
  }
@@ -963,7 +960,7 @@ class Seaport {
963
960
  listingActions.push({
964
961
  type: ActionType.TRANSACTION,
965
962
  purpose: TransactionPurpose.APPROVAL,
966
- buildTransaction: prepareTransaction(approvalAction.transactionMethods, (await this.provider.getNetwork()).chainId),
963
+ buildTransaction: prepareTransaction(approvalAction.transactionMethods),
967
964
  });
968
965
  }
969
966
  const createAction = seaportActions.find((action) => action.type === 'create');
@@ -1004,7 +1001,7 @@ class Seaport {
1004
1001
  if (approvalAction) {
1005
1002
  fulfillmentActions.push({
1006
1003
  type: ActionType.TRANSACTION,
1007
- buildTransaction: prepareTransaction(approvalAction.transactionMethods, (await this.provider.getNetwork()).chainId),
1004
+ buildTransaction: prepareTransaction(approvalAction.transactionMethods),
1008
1005
  purpose: TransactionPurpose.APPROVAL,
1009
1006
  });
1010
1007
  }
@@ -1014,7 +1011,7 @@ class Seaport {
1014
1011
  }
1015
1012
  fulfillmentActions.push({
1016
1013
  type: ActionType.TRANSACTION,
1017
- buildTransaction: prepareTransaction(fulfilOrderAction.transactionMethods, (await this.provider.getNetwork()).chainId),
1014
+ buildTransaction: prepareTransaction(fulfilOrderAction.transactionMethods),
1018
1015
  purpose: TransactionPurpose.FULFILL_ORDER,
1019
1016
  });
1020
1017
  return {
@@ -1044,7 +1041,7 @@ class Seaport {
1044
1041
  if (approvalAction) {
1045
1042
  fulfillmentActions.push({
1046
1043
  type: ActionType.TRANSACTION,
1047
- buildTransaction: prepareTransaction(approvalAction.transactionMethods, (await this.provider.getNetwork()).chainId),
1044
+ buildTransaction: prepareTransaction(approvalAction.transactionMethods),
1048
1045
  purpose: TransactionPurpose.APPROVAL,
1049
1046
  });
1050
1047
  }
@@ -1054,7 +1051,7 @@ class Seaport {
1054
1051
  }
1055
1052
  fulfillmentActions.push({
1056
1053
  type: ActionType.TRANSACTION,
1057
- buildTransaction: prepareTransaction(fulfilOrderAction.transactionMethods, (await this.provider.getNetwork()).chainId),
1054
+ buildTransaction: prepareTransaction(fulfilOrderAction.transactionMethods),
1058
1055
  purpose: TransactionPurpose.FULFILL_ORDER,
1059
1056
  });
1060
1057
  return {
@@ -1071,7 +1068,7 @@ class Seaport {
1071
1068
  const cancellationTransaction = await seaportLib.cancelOrders(orderComponents, account);
1072
1069
  return {
1073
1070
  type: ActionType.TRANSACTION,
1074
- buildTransaction: prepareTransaction(cancellationTransaction, (await this.provider.getNetwork()).chainId),
1071
+ buildTransaction: prepareTransaction(cancellationTransaction),
1075
1072
  purpose: TransactionPurpose.CANCEL,
1076
1073
  };
1077
1074
  }
package/dist/passport.js CHANGED
@@ -2072,7 +2072,7 @@ class MultiRollupApiClients {
2072
2072
  }
2073
2073
 
2074
2074
  // eslint-disable-next-line @typescript-eslint/naming-convention
2075
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.28.8' };
2075
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.28.9-alpha' };
2076
2076
  const createConfig = ({ basePath, headers, }) => {
2077
2077
  if (!basePath.trim()) {
2078
2078
  throw Error('basePath can not be empty');
@@ -2128,7 +2128,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2128
2128
  chainID,
2129
2129
  coreContractAddress,
2130
2130
  registrationContractAddress,
2131
- sdkVersion: 'ts-immutable-sdk-0.28.8',
2131
+ sdkVersion: 'ts-immutable-sdk-0.28.9-alpha',
2132
2132
  });
2133
2133
  /**
2134
2134
  * 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.28.8",
4
+ "version": "0.28.9-alpha",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
@@ -90,14 +90,6 @@
90
90
  "./provider": {
91
91
  "types": "./dist/provider.d.ts",
92
92
  "import": "./dist/provider.js"
93
- },
94
- "./checkout_sdk": {
95
- "types": "./dist/checkout_sdk.d.ts",
96
- "import": "./dist/checkout_sdk.js"
97
- },
98
- "./checkout_widgets": {
99
- "types": "./dist/checkout_widgets.d.ts",
100
- "import": "./dist/checkout_widgets.js"
101
93
  }
102
94
  },
103
95
  "files": [