@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/checkout.js CHANGED
@@ -138,7 +138,7 @@ const flattenProperties$1 = (properties) => {
138
138
  };
139
139
 
140
140
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
141
- const SDK_VERSION$1 = '1.1.1-alpha';
141
+ const SDK_VERSION$1 = '1.1.2';
142
142
  let initialised$1 = false;
143
143
  const isInitialised$1 = () => initialised$1;
144
144
  const getReferrer$1 = () => {
@@ -15967,7 +15967,8 @@ const CHILD_ERC20_BRIDGE = [
15967
15967
  const doesChainSupportEIP1559$1 = (feeData) => !!feeData.maxFeePerGas && !!feeData.maxPriorityFeePerGas;
15968
15968
  const getGasPriceInWei$1 = (feeData) => {
15969
15969
  if (doesChainSupportEIP1559$1(feeData)) {
15970
- return BigNumber.from(feeData.maxFeePerGas).add(BigNumber.from(feeData.maxPriorityFeePerGas));
15970
+ // EIP1559 we need to add a tip for the miner to the base fee
15971
+ return BigNumber.from(feeData.lastBaseFeePerGas).add(BigNumber.from(feeData.maxPriorityFeePerGas));
15971
15972
  }
15972
15973
  if (feeData.gasPrice)
15973
15974
  return BigNumber.from(feeData.gasPrice);
@@ -16008,9 +16009,9 @@ var BridgeFeeActions;
16008
16009
  */
16009
16010
  var BridgeMethodsGasLimit;
16010
16011
  (function (BridgeMethodsGasLimit) {
16011
- BridgeMethodsGasLimit[BridgeMethodsGasLimit["DEPOSIT_SOURCE"] = 200000] = "DEPOSIT_SOURCE";
16012
+ BridgeMethodsGasLimit[BridgeMethodsGasLimit["DEPOSIT_SOURCE"] = 150000] = "DEPOSIT_SOURCE";
16012
16013
  BridgeMethodsGasLimit[BridgeMethodsGasLimit["DEPOSIT_DESTINATION"] = 200000] = "DEPOSIT_DESTINATION";
16013
- BridgeMethodsGasLimit[BridgeMethodsGasLimit["WITHDRAW_SOURCE"] = 200000] = "WITHDRAW_SOURCE";
16014
+ BridgeMethodsGasLimit[BridgeMethodsGasLimit["WITHDRAW_SOURCE"] = 150000] = "WITHDRAW_SOURCE";
16014
16015
  BridgeMethodsGasLimit[BridgeMethodsGasLimit["WITHDRAW_DESTINATION"] = 250000] = "WITHDRAW_DESTINATION";
16015
16016
  BridgeMethodsGasLimit[BridgeMethodsGasLimit["MAP_TOKEN_SOURCE"] = 200000] = "MAP_TOKEN_SOURCE";
16016
16017
  BridgeMethodsGasLimit[BridgeMethodsGasLimit["MAP_TOKEN_DESTINATION"] = 200000] = "MAP_TOKEN_DESTINATION";
@@ -17087,7 +17088,7 @@ const flattenProperties = (properties) => {
17087
17088
  };
17088
17089
 
17089
17090
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
17090
- const SDK_VERSION = '1.1.1-alpha';
17091
+ const SDK_VERSION = '1.1.2';
17091
17092
  let initialised = false;
17092
17093
  const isInitialised = () => initialised;
17093
17094
  const getReferrer = () => {
@@ -26852,7 +26853,7 @@ class APIError extends Error {
26852
26853
 
26853
26854
  /* eslint-disable implicit-arrow-linebreak */
26854
26855
  const defaultHeaders = {
26855
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.1.1-alpha',
26856
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.1.2',
26856
26857
  };
26857
26858
  /**
26858
26859
  * createAPIConfiguration to create a custom Configuration
@@ -28214,7 +28215,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
28214
28215
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
28215
28216
  };
28216
28217
 
28217
- const SDK_VERSION_MARKER = '1.1.1-alpha';
28218
+ const SDK_VERSION_MARKER = '1.1.2';
28218
28219
  // This SDK version is replaced by the `yarn build` command ran on the root level
28219
28220
  const globalPackageVersion = () => SDK_VERSION_MARKER;
28220
28221
 
@@ -29097,7 +29098,8 @@ async function gasEstimator(params, readOnlyProviders, config) {
29097
29098
  const doesChainSupportEIP1559 = (feeData) => !!feeData.maxFeePerGas && !!feeData.maxPriorityFeePerGas;
29098
29099
  const getGasPriceInWei = (feeData) => {
29099
29100
  if (doesChainSupportEIP1559(feeData)) {
29100
- return BigNumber$1.from(feeData.maxFeePerGas).add(BigNumber$1.from(feeData.maxPriorityFeePerGas));
29101
+ // EIP1559 we need to add a tip for the miner to the base fee
29102
+ return BigNumber$1.from(feeData.lastBaseFeePerGas).add(BigNumber$1.from(feeData.maxPriorityFeePerGas));
29101
29103
  }
29102
29104
  if (feeData.gasPrice)
29103
29105
  return BigNumber$1.from(feeData.gasPrice);
package/dist/config.js CHANGED
@@ -127,7 +127,7 @@ const flattenProperties = (properties) => {
127
127
  };
128
128
 
129
129
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
130
- const SDK_VERSION = '1.1.1-alpha';
130
+ const SDK_VERSION = '1.1.2';
131
131
  let initialised = false;
132
132
  const isInitialised = () => initialised;
133
133
  const getReferrer = () => {