@imtbl/sdk 0.39.3 → 0.39.4

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
@@ -4256,7 +4256,7 @@ class MultiRollupApiClients {
4256
4256
  }
4257
4257
 
4258
4258
  // eslint-disable-next-line @typescript-eslint/naming-convention
4259
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.39.3' };
4259
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.39.4' };
4260
4260
  const createConfig = ({ basePath, headers, }) => {
4261
4261
  if (!basePath.trim()) {
4262
4262
  throw Error('basePath can not be empty');
@@ -4316,7 +4316,7 @@ class APIError extends Error {
4316
4316
 
4317
4317
  /* eslint-disable implicit-arrow-linebreak */
4318
4318
  const defaultHeaders = {
4319
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.3',
4319
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.4',
4320
4320
  };
4321
4321
  /**
4322
4322
  * createAPIConfiguration to create a custom Configuration
@@ -4755,7 +4755,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
4755
4755
  chainID,
4756
4756
  coreContractAddress,
4757
4757
  registrationContractAddress,
4758
- sdkVersion: 'ts-immutable-sdk-0.39.3',
4758
+ sdkVersion: 'ts-immutable-sdk-0.39.4',
4759
4759
  });
4760
4760
  /**
4761
4761
  * Sets `sdkVersion` at the time of build
@@ -33685,7 +33685,7 @@ class Router {
33685
33685
  return await this.getBestQuoteFromRoutes(routes, amountSpecified, tradeType);
33686
33686
  }
33687
33687
  async getBestQuoteFromRoutes(routes, amountSpecified, tradeType) {
33688
- const quotes = await getQuotesForRoutes(this.provider, this.routingContracts.quoterV2, routes, amountSpecified, tradeType);
33688
+ const quotes = await getQuotesForRoutes(this.provider, this.routingContracts.quoter, routes, amountSpecified, tradeType);
33689
33689
  if (quotes.length === 0) {
33690
33690
  throw new NoRoutesAvailableError();
33691
33691
  }
@@ -34326,10 +34326,10 @@ function adjustQuoteWithFees(ourQuote, amountSpecified, fees, nativeTokenService
34326
34326
 
34327
34327
  const CONTRACTS_FOR_CHAIN_ID = {
34328
34328
  [IMMUTABLE_TESTNET_CHAIN_ID]: {
34329
- multicall: '0x4DB567A44451b27C1fAd7f52e1cDf64b915d62f9',
34330
- coreFactory: '0xb18c44b211065E69844FbA9AE146DA362104AfBf',
34331
- quoterV2: '0x87854A7D4b9BaC3D37f4516A1Ac7F36fB5ad539f',
34332
- peripheryRouter: '0x786ec643F231960D4C1A4E336990F8E7bF8f1277',
34329
+ multicall: '0x4857Dfd11c712e862eC362cEee29F7974B70EfcD',
34330
+ coreFactory: '0x56c2162254b0E4417288786eE402c2B41d4e181e',
34331
+ quoter: '0xF6Ad3CcF71Abb3E12beCf6b3D2a74C963859ADCd',
34332
+ swapRouter: '0x0b012055F770AE7BB7a8303968A7Fb6088A2296e',
34333
34333
  immutableSwapProxy: '0xDdBDa144cEbe1cCd68E746CDff8a6e4Be51A9e98',
34334
34334
  },
34335
34335
  };
@@ -34438,7 +34438,7 @@ class Exchange {
34438
34438
  this.wrappedNativeToken = config.chain.wrappedNativeToken;
34439
34439
  this.nativeTokenService = new NativeTokenService(this.nativeToken, this.wrappedNativeToken);
34440
34440
  this.secondaryFees = config.secondaryFees;
34441
- this.routerContractAddress = config.chain.contracts.peripheryRouter;
34441
+ this.routerContractAddress = config.chain.contracts.swapRouter;
34442
34442
  this.swapProxyContractAddress = config.chain.contracts.immutableSwapProxy;
34443
34443
  this.provider = new ethers.ethers.providers.StaticJsonRpcProvider({
34444
34444
  url: config.chain.rpcUrl,
@@ -35482,7 +35482,7 @@ const GAS_OVERRIDES = {
35482
35482
  maxPriorityFeePerGas: ethers.BigNumber.from(101e9),
35483
35483
  };
35484
35484
 
35485
- const SDK_VERSION_MARKER = '0.39.3';
35485
+ const SDK_VERSION_MARKER = '0.39.4';
35486
35486
  // This SDK version is replaced by the `yarn build` command ran on the root level
35487
35487
  const globalPackageVersion = () => SDK_VERSION_MARKER;
35488
35488
 
package/dist/index.d.ts CHANGED
@@ -17759,8 +17759,8 @@ interface CancelParams {
17759
17759
  type ExchangeContracts = {
17760
17760
  multicall: string;
17761
17761
  coreFactory: string;
17762
- quoterV2: string;
17763
- peripheryRouter: string;
17762
+ quoter: string;
17763
+ swapRouter: string;
17764
17764
  immutableSwapProxy: string;
17765
17765
  };
17766
17766
  /**
package/dist/index.js CHANGED
@@ -4234,7 +4234,7 @@ class MultiRollupApiClients {
4234
4234
  }
4235
4235
 
4236
4236
  // eslint-disable-next-line @typescript-eslint/naming-convention
4237
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.39.3' };
4237
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.39.4' };
4238
4238
  const createConfig = ({ basePath, headers, }) => {
4239
4239
  if (!basePath.trim()) {
4240
4240
  throw Error('basePath can not be empty');
@@ -4294,7 +4294,7 @@ class APIError extends Error {
4294
4294
 
4295
4295
  /* eslint-disable implicit-arrow-linebreak */
4296
4296
  const defaultHeaders = {
4297
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.3',
4297
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.39.4',
4298
4298
  };
4299
4299
  /**
4300
4300
  * createAPIConfiguration to create a custom Configuration
@@ -4733,7 +4733,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
4733
4733
  chainID,
4734
4734
  coreContractAddress,
4735
4735
  registrationContractAddress,
4736
- sdkVersion: 'ts-immutable-sdk-0.39.3',
4736
+ sdkVersion: 'ts-immutable-sdk-0.39.4',
4737
4737
  });
4738
4738
  /**
4739
4739
  * Sets `sdkVersion` at the time of build
@@ -33663,7 +33663,7 @@ class Router {
33663
33663
  return await this.getBestQuoteFromRoutes(routes, amountSpecified, tradeType);
33664
33664
  }
33665
33665
  async getBestQuoteFromRoutes(routes, amountSpecified, tradeType) {
33666
- const quotes = await getQuotesForRoutes(this.provider, this.routingContracts.quoterV2, routes, amountSpecified, tradeType);
33666
+ const quotes = await getQuotesForRoutes(this.provider, this.routingContracts.quoter, routes, amountSpecified, tradeType);
33667
33667
  if (quotes.length === 0) {
33668
33668
  throw new NoRoutesAvailableError();
33669
33669
  }
@@ -34304,10 +34304,10 @@ function adjustQuoteWithFees(ourQuote, amountSpecified, fees, nativeTokenService
34304
34304
 
34305
34305
  const CONTRACTS_FOR_CHAIN_ID = {
34306
34306
  [IMMUTABLE_TESTNET_CHAIN_ID]: {
34307
- multicall: '0x4DB567A44451b27C1fAd7f52e1cDf64b915d62f9',
34308
- coreFactory: '0xb18c44b211065E69844FbA9AE146DA362104AfBf',
34309
- quoterV2: '0x87854A7D4b9BaC3D37f4516A1Ac7F36fB5ad539f',
34310
- peripheryRouter: '0x786ec643F231960D4C1A4E336990F8E7bF8f1277',
34307
+ multicall: '0x4857Dfd11c712e862eC362cEee29F7974B70EfcD',
34308
+ coreFactory: '0x56c2162254b0E4417288786eE402c2B41d4e181e',
34309
+ quoter: '0xF6Ad3CcF71Abb3E12beCf6b3D2a74C963859ADCd',
34310
+ swapRouter: '0x0b012055F770AE7BB7a8303968A7Fb6088A2296e',
34311
34311
  immutableSwapProxy: '0xDdBDa144cEbe1cCd68E746CDff8a6e4Be51A9e98',
34312
34312
  },
34313
34313
  };
@@ -34416,7 +34416,7 @@ class Exchange {
34416
34416
  this.wrappedNativeToken = config.chain.wrappedNativeToken;
34417
34417
  this.nativeTokenService = new NativeTokenService(this.nativeToken, this.wrappedNativeToken);
34418
34418
  this.secondaryFees = config.secondaryFees;
34419
- this.routerContractAddress = config.chain.contracts.peripheryRouter;
34419
+ this.routerContractAddress = config.chain.contracts.swapRouter;
34420
34420
  this.swapProxyContractAddress = config.chain.contracts.immutableSwapProxy;
34421
34421
  this.provider = new ethers.providers.StaticJsonRpcProvider({
34422
34422
  url: config.chain.rpcUrl,
@@ -35460,7 +35460,7 @@ const GAS_OVERRIDES = {
35460
35460
  maxPriorityFeePerGas: BigNumber$1.from(101e9),
35461
35461
  };
35462
35462
 
35463
- const SDK_VERSION_MARKER = '0.39.3';
35463
+ const SDK_VERSION_MARKER = '0.39.4';
35464
35464
  // This SDK version is replaced by the `yarn build` command ran on the root level
35465
35465
  const globalPackageVersion = () => SDK_VERSION_MARKER;
35466
35466
 
package/dist/passport.js CHANGED
@@ -2349,7 +2349,7 @@ class MultiRollupApiClients {
2349
2349
  }
2350
2350
 
2351
2351
  // eslint-disable-next-line @typescript-eslint/naming-convention
2352
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.39.3' };
2352
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.39.4' };
2353
2353
  const createConfig = ({ basePath, headers, }) => {
2354
2354
  if (!basePath.trim()) {
2355
2355
  throw Error('basePath can not be empty');
@@ -2405,7 +2405,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2405
2405
  chainID,
2406
2406
  coreContractAddress,
2407
2407
  registrationContractAddress,
2408
- sdkVersion: 'ts-immutable-sdk-0.39.3',
2408
+ sdkVersion: 'ts-immutable-sdk-0.39.4',
2409
2409
  });
2410
2410
  /**
2411
2411
  * 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.39.3",
4
+ "version": "0.39.4",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",