@imtbl/sdk 0.39.3 → 0.39.5

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.
@@ -11447,8 +11447,8 @@ interface CancelParams {
11447
11447
  type ExchangeContracts = {
11448
11448
  multicall: string;
11449
11449
  coreFactory: string;
11450
- quoterV2: string;
11451
- peripheryRouter: string;
11450
+ quoter: string;
11451
+ swapRouter: string;
11452
11452
  immutableSwapProxy: string;
11453
11453
  };
11454
11454
  /**
package/dist/checkout.js CHANGED
@@ -19402,7 +19402,7 @@ class Router {
19402
19402
  return await this.getBestQuoteFromRoutes(routes, amountSpecified, tradeType);
19403
19403
  }
19404
19404
  async getBestQuoteFromRoutes(routes, amountSpecified, tradeType) {
19405
- const quotes = await getQuotesForRoutes(this.provider, this.routingContracts.quoterV2, routes, amountSpecified, tradeType);
19405
+ const quotes = await getQuotesForRoutes(this.provider, this.routingContracts.quoter, routes, amountSpecified, tradeType);
19406
19406
  if (quotes.length === 0) {
19407
19407
  throw new NoRoutesAvailableError();
19408
19408
  }
@@ -20043,10 +20043,10 @@ function adjustQuoteWithFees(ourQuote, amountSpecified, fees, nativeTokenService
20043
20043
 
20044
20044
  const CONTRACTS_FOR_CHAIN_ID = {
20045
20045
  [IMMUTABLE_TESTNET_CHAIN_ID]: {
20046
- multicall: '0x4DB567A44451b27C1fAd7f52e1cDf64b915d62f9',
20047
- coreFactory: '0xb18c44b211065E69844FbA9AE146DA362104AfBf',
20048
- quoterV2: '0x87854A7D4b9BaC3D37f4516A1Ac7F36fB5ad539f',
20049
- peripheryRouter: '0x786ec643F231960D4C1A4E336990F8E7bF8f1277',
20046
+ multicall: '0x4857Dfd11c712e862eC362cEee29F7974B70EfcD',
20047
+ coreFactory: '0x56c2162254b0E4417288786eE402c2B41d4e181e',
20048
+ quoter: '0xF6Ad3CcF71Abb3E12beCf6b3D2a74C963859ADCd',
20049
+ swapRouter: '0x0b012055F770AE7BB7a8303968A7Fb6088A2296e',
20050
20050
  immutableSwapProxy: '0xDdBDa144cEbe1cCd68E746CDff8a6e4Be51A9e98',
20051
20051
  },
20052
20052
  };
@@ -20155,7 +20155,7 @@ class Exchange {
20155
20155
  this.wrappedNativeToken = config.chain.wrappedNativeToken;
20156
20156
  this.nativeTokenService = new NativeTokenService(this.nativeToken, this.wrappedNativeToken);
20157
20157
  this.secondaryFees = config.secondaryFees;
20158
- this.routerContractAddress = config.chain.contracts.peripheryRouter;
20158
+ this.routerContractAddress = config.chain.contracts.swapRouter;
20159
20159
  this.swapProxyContractAddress = config.chain.contracts.immutableSwapProxy;
20160
20160
  this.provider = new ethers.providers.StaticJsonRpcProvider({
20161
20161
  url: config.chain.rpcUrl,
@@ -25801,7 +25801,7 @@ class APIError extends Error {
25801
25801
 
25802
25802
  /* eslint-disable implicit-arrow-linebreak */
25803
25803
  const defaultHeaders = {
25804
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.3',
25804
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.5',
25805
25805
  };
25806
25806
  /**
25807
25807
  * createAPIConfiguration to create a custom Configuration
@@ -27150,7 +27150,7 @@ const GAS_OVERRIDES = {
27150
27150
  maxPriorityFeePerGas: BigNumber$1.from(101e9),
27151
27151
  };
27152
27152
 
27153
- const SDK_VERSION_MARKER = '0.39.3';
27153
+ const SDK_VERSION_MARKER = '0.39.5';
27154
27154
  // This SDK version is replaced by the `yarn build` command ran on the root level
27155
27155
  const globalPackageVersion = () => SDK_VERSION_MARKER;
27156
27156
 
@@ -17,7 +17,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
17
17
  chainID,
18
18
  coreContractAddress,
19
19
  registrationContractAddress,
20
- sdkVersion: 'ts-immutable-sdk-0.39.3',
20
+ sdkVersion: 'ts-immutable-sdk-0.39.5',
21
21
  });
22
22
  /**
23
23
  * Sets `sdkVersion` at the time of build