@imtbl/sdk 1.1.1-alpha → 1.1.2

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/index.cjs CHANGED
@@ -173,7 +173,7 @@ const flattenProperties$1 = (properties) => {
173
173
  };
174
174
 
175
175
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
176
- const SDK_VERSION$1 = '1.1.1-alpha';
176
+ const SDK_VERSION$1 = '1.1.2';
177
177
  let initialised$1 = false;
178
178
  const isInitialised$1 = () => initialised$1;
179
179
  const getReferrer$1 = () => {
@@ -10940,7 +10940,7 @@ class MultiRollupApiClients {
10940
10940
  }
10941
10941
 
10942
10942
  // eslint-disable-next-line @typescript-eslint/naming-convention
10943
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.1.1-alpha' };
10943
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.1.2' };
10944
10944
  const createConfig = ({ basePath, headers, }) => {
10945
10945
  if (!basePath.trim()) {
10946
10946
  throw Error('basePath can not be empty');
@@ -11012,7 +11012,7 @@ class APIError extends Error {
11012
11012
 
11013
11013
  /* eslint-disable implicit-arrow-linebreak */
11014
11014
  const defaultHeaders = {
11015
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.1.1-alpha',
11015
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.1.2',
11016
11016
  };
11017
11017
  /**
11018
11018
  * createAPIConfiguration to create a custom Configuration
@@ -11451,7 +11451,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11451
11451
  chainID,
11452
11452
  coreContractAddress,
11453
11453
  registrationContractAddress,
11454
- sdkVersion: 'ts-immutable-sdk-1.1.1-alpha',
11454
+ sdkVersion: 'ts-immutable-sdk-1.1.2',
11455
11455
  });
11456
11456
  /**
11457
11457
  * Sets `sdkVersion` at the time of build
@@ -35595,7 +35595,8 @@ const CHILD_ERC20_BRIDGE = [
35595
35595
  const doesChainSupportEIP1559$1 = (feeData) => !!feeData.maxFeePerGas && !!feeData.maxPriorityFeePerGas;
35596
35596
  const getGasPriceInWei$1 = (feeData) => {
35597
35597
  if (doesChainSupportEIP1559$1(feeData)) {
35598
- return BigNumber.from(feeData.maxFeePerGas).add(BigNumber.from(feeData.maxPriorityFeePerGas));
35598
+ // EIP1559 we need to add a tip for the miner to the base fee
35599
+ return BigNumber.from(feeData.lastBaseFeePerGas).add(BigNumber.from(feeData.maxPriorityFeePerGas));
35599
35600
  }
35600
35601
  if (feeData.gasPrice)
35601
35602
  return BigNumber.from(feeData.gasPrice);
@@ -35636,9 +35637,9 @@ var BridgeFeeActions;
35636
35637
  */
35637
35638
  var BridgeMethodsGasLimit;
35638
35639
  (function (BridgeMethodsGasLimit) {
35639
- BridgeMethodsGasLimit[BridgeMethodsGasLimit["DEPOSIT_SOURCE"] = 200000] = "DEPOSIT_SOURCE";
35640
+ BridgeMethodsGasLimit[BridgeMethodsGasLimit["DEPOSIT_SOURCE"] = 150000] = "DEPOSIT_SOURCE";
35640
35641
  BridgeMethodsGasLimit[BridgeMethodsGasLimit["DEPOSIT_DESTINATION"] = 200000] = "DEPOSIT_DESTINATION";
35641
- BridgeMethodsGasLimit[BridgeMethodsGasLimit["WITHDRAW_SOURCE"] = 200000] = "WITHDRAW_SOURCE";
35642
+ BridgeMethodsGasLimit[BridgeMethodsGasLimit["WITHDRAW_SOURCE"] = 150000] = "WITHDRAW_SOURCE";
35642
35643
  BridgeMethodsGasLimit[BridgeMethodsGasLimit["WITHDRAW_DESTINATION"] = 250000] = "WITHDRAW_DESTINATION";
35643
35644
  BridgeMethodsGasLimit[BridgeMethodsGasLimit["MAP_TOKEN_SOURCE"] = 200000] = "MAP_TOKEN_SOURCE";
35644
35645
  BridgeMethodsGasLimit[BridgeMethodsGasLimit["MAP_TOKEN_DESTINATION"] = 200000] = "MAP_TOKEN_DESTINATION";
@@ -36715,7 +36716,7 @@ const flattenProperties = (properties) => {
36715
36716
  };
36716
36717
 
36717
36718
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
36718
- const SDK_VERSION = '1.1.1-alpha';
36719
+ const SDK_VERSION = '1.1.2';
36719
36720
  let initialised = false;
36720
36721
  const isInitialised = () => initialised;
36721
36722
  const getReferrer = () => {
@@ -41818,7 +41819,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
41818
41819
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
41819
41820
  };
41820
41821
 
41821
- const SDK_VERSION_MARKER = '1.1.1-alpha';
41822
+ const SDK_VERSION_MARKER = '1.1.2';
41822
41823
  // This SDK version is replaced by the `yarn build` command ran on the root level
41823
41824
  const globalPackageVersion = () => SDK_VERSION_MARKER;
41824
41825
 
@@ -42701,7 +42702,8 @@ async function gasEstimator(params, readOnlyProviders, config) {
42701
42702
  const doesChainSupportEIP1559 = (feeData) => !!feeData.maxFeePerGas && !!feeData.maxPriorityFeePerGas;
42702
42703
  const getGasPriceInWei = (feeData) => {
42703
42704
  if (doesChainSupportEIP1559(feeData)) {
42704
- return ethers.BigNumber.from(feeData.maxFeePerGas).add(ethers.BigNumber.from(feeData.maxPriorityFeePerGas));
42705
+ // EIP1559 we need to add a tip for the miner to the base fee
42706
+ return ethers.BigNumber.from(feeData.lastBaseFeePerGas).add(ethers.BigNumber.from(feeData.maxPriorityFeePerGas));
42705
42707
  }
42706
42708
  if (feeData.gasPrice)
42707
42709
  return ethers.BigNumber.from(feeData.gasPrice);
package/dist/index.js CHANGED
@@ -151,7 +151,7 @@ const flattenProperties$1 = (properties) => {
151
151
  };
152
152
 
153
153
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
154
- const SDK_VERSION$1 = '1.1.1-alpha';
154
+ const SDK_VERSION$1 = '1.1.2';
155
155
  let initialised$1 = false;
156
156
  const isInitialised$1 = () => initialised$1;
157
157
  const getReferrer$1 = () => {
@@ -10918,7 +10918,7 @@ class MultiRollupApiClients {
10918
10918
  }
10919
10919
 
10920
10920
  // eslint-disable-next-line @typescript-eslint/naming-convention
10921
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.1.1-alpha' };
10921
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.1.2' };
10922
10922
  const createConfig = ({ basePath, headers, }) => {
10923
10923
  if (!basePath.trim()) {
10924
10924
  throw Error('basePath can not be empty');
@@ -10990,7 +10990,7 @@ class APIError extends Error {
10990
10990
 
10991
10991
  /* eslint-disable implicit-arrow-linebreak */
10992
10992
  const defaultHeaders = {
10993
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.1.1-alpha',
10993
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.1.2',
10994
10994
  };
10995
10995
  /**
10996
10996
  * createAPIConfiguration to create a custom Configuration
@@ -11429,7 +11429,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11429
11429
  chainID,
11430
11430
  coreContractAddress,
11431
11431
  registrationContractAddress,
11432
- sdkVersion: 'ts-immutable-sdk-1.1.1-alpha',
11432
+ sdkVersion: 'ts-immutable-sdk-1.1.2',
11433
11433
  });
11434
11434
  /**
11435
11435
  * Sets `sdkVersion` at the time of build
@@ -35573,7 +35573,8 @@ const CHILD_ERC20_BRIDGE = [
35573
35573
  const doesChainSupportEIP1559$1 = (feeData) => !!feeData.maxFeePerGas && !!feeData.maxPriorityFeePerGas;
35574
35574
  const getGasPriceInWei$1 = (feeData) => {
35575
35575
  if (doesChainSupportEIP1559$1(feeData)) {
35576
- return BigNumber.from(feeData.maxFeePerGas).add(BigNumber.from(feeData.maxPriorityFeePerGas));
35576
+ // EIP1559 we need to add a tip for the miner to the base fee
35577
+ return BigNumber.from(feeData.lastBaseFeePerGas).add(BigNumber.from(feeData.maxPriorityFeePerGas));
35577
35578
  }
35578
35579
  if (feeData.gasPrice)
35579
35580
  return BigNumber.from(feeData.gasPrice);
@@ -35614,9 +35615,9 @@ var BridgeFeeActions;
35614
35615
  */
35615
35616
  var BridgeMethodsGasLimit;
35616
35617
  (function (BridgeMethodsGasLimit) {
35617
- BridgeMethodsGasLimit[BridgeMethodsGasLimit["DEPOSIT_SOURCE"] = 200000] = "DEPOSIT_SOURCE";
35618
+ BridgeMethodsGasLimit[BridgeMethodsGasLimit["DEPOSIT_SOURCE"] = 150000] = "DEPOSIT_SOURCE";
35618
35619
  BridgeMethodsGasLimit[BridgeMethodsGasLimit["DEPOSIT_DESTINATION"] = 200000] = "DEPOSIT_DESTINATION";
35619
- BridgeMethodsGasLimit[BridgeMethodsGasLimit["WITHDRAW_SOURCE"] = 200000] = "WITHDRAW_SOURCE";
35620
+ BridgeMethodsGasLimit[BridgeMethodsGasLimit["WITHDRAW_SOURCE"] = 150000] = "WITHDRAW_SOURCE";
35620
35621
  BridgeMethodsGasLimit[BridgeMethodsGasLimit["WITHDRAW_DESTINATION"] = 250000] = "WITHDRAW_DESTINATION";
35621
35622
  BridgeMethodsGasLimit[BridgeMethodsGasLimit["MAP_TOKEN_SOURCE"] = 200000] = "MAP_TOKEN_SOURCE";
35622
35623
  BridgeMethodsGasLimit[BridgeMethodsGasLimit["MAP_TOKEN_DESTINATION"] = 200000] = "MAP_TOKEN_DESTINATION";
@@ -36693,7 +36694,7 @@ const flattenProperties = (properties) => {
36693
36694
  };
36694
36695
 
36695
36696
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
36696
- const SDK_VERSION = '1.1.1-alpha';
36697
+ const SDK_VERSION = '1.1.2';
36697
36698
  let initialised = false;
36698
36699
  const isInitialised = () => initialised;
36699
36700
  const getReferrer = () => {
@@ -41796,7 +41797,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
41796
41797
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
41797
41798
  };
41798
41799
 
41799
- const SDK_VERSION_MARKER = '1.1.1-alpha';
41800
+ const SDK_VERSION_MARKER = '1.1.2';
41800
41801
  // This SDK version is replaced by the `yarn build` command ran on the root level
41801
41802
  const globalPackageVersion = () => SDK_VERSION_MARKER;
41802
41803
 
@@ -42679,7 +42680,8 @@ async function gasEstimator(params, readOnlyProviders, config) {
42679
42680
  const doesChainSupportEIP1559 = (feeData) => !!feeData.maxFeePerGas && !!feeData.maxPriorityFeePerGas;
42680
42681
  const getGasPriceInWei = (feeData) => {
42681
42682
  if (doesChainSupportEIP1559(feeData)) {
42682
- return BigNumber$1.from(feeData.maxFeePerGas).add(BigNumber$1.from(feeData.maxPriorityFeePerGas));
42683
+ // EIP1559 we need to add a tip for the miner to the base fee
42684
+ return BigNumber$1.from(feeData.lastBaseFeePerGas).add(BigNumber$1.from(feeData.maxPriorityFeePerGas));
42683
42685
  }
42684
42686
  if (feeData.gasPrice)
42685
42687
  return BigNumber$1.from(feeData.gasPrice);
package/dist/orderbook.js CHANGED
@@ -126,7 +126,7 @@ const flattenProperties = (properties) => {
126
126
  };
127
127
 
128
128
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
129
- const SDK_VERSION = '1.1.1-alpha';
129
+ const SDK_VERSION = '1.1.2';
130
130
  let initialised = false;
131
131
  const isInitialised = () => initialised;
132
132
  const getReferrer = () => {
package/dist/passport.js CHANGED
@@ -8724,7 +8724,7 @@ class MultiRollupApiClients {
8724
8724
  }
8725
8725
 
8726
8726
  // eslint-disable-next-line @typescript-eslint/naming-convention
8727
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.1.1-alpha' };
8727
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.1.2' };
8728
8728
  const createConfig = ({ basePath, headers, }) => {
8729
8729
  if (!basePath.trim()) {
8730
8730
  throw Error('basePath can not be empty');
@@ -8904,7 +8904,7 @@ const flattenProperties = (properties) => {
8904
8904
  };
8905
8905
 
8906
8906
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
8907
- const SDK_VERSION = '1.1.1-alpha';
8907
+ const SDK_VERSION = '1.1.2';
8908
8908
  let initialised = false;
8909
8909
  const isInitialised = () => initialised;
8910
8910
  const getReferrer = () => {
@@ -9079,7 +9079,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9079
9079
  chainID,
9080
9080
  coreContractAddress,
9081
9081
  registrationContractAddress,
9082
- sdkVersion: 'ts-immutable-sdk-1.1.1-alpha',
9082
+ sdkVersion: 'ts-immutable-sdk-1.1.2',
9083
9083
  });
9084
9084
  /**
9085
9085
  * Sets `sdkVersion` at the time of build
package/dist/x.js CHANGED
@@ -131,7 +131,7 @@ const flattenProperties = (properties) => {
131
131
  };
132
132
 
133
133
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
134
- const SDK_VERSION = '1.1.1-alpha';
134
+ const SDK_VERSION = '1.1.2';
135
135
  let initialised = false;
136
136
  const isInitialised = () => initialised;
137
137
  const getReferrer = () => {
@@ -270,7 +270,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
270
270
  chainID,
271
271
  coreContractAddress,
272
272
  registrationContractAddress,
273
- sdkVersion: 'ts-immutable-sdk-1.1.1-alpha',
273
+ sdkVersion: 'ts-immutable-sdk-1.1.2',
274
274
  });
275
275
  /**
276
276
  * 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": "1.1.1-alpha",
4
+ "version": "1.1.2",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",