@imtbl/sdk 0.41.1 → 0.41.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
@@ -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.41.1' };
4259
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.41.2' };
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.41.1',
4319
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.41.2',
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.41.1',
4758
+ sdkVersion: 'ts-immutable-sdk-0.41.2',
4759
4759
  });
4760
4760
  /**
4761
4761
  * Sets `sdkVersion` at the time of build
@@ -35533,7 +35533,7 @@ const GAS_OVERRIDES = {
35533
35533
  maxPriorityFeePerGas: ethers.BigNumber.from(101e9),
35534
35534
  };
35535
35535
 
35536
- const SDK_VERSION_MARKER = '0.41.1';
35536
+ const SDK_VERSION_MARKER = '0.41.2';
35537
35537
  // This SDK version is replaced by the `yarn build` command ran on the root level
35538
35538
  const globalPackageVersion = () => SDK_VERSION_MARKER;
35539
35539
 
@@ -36284,6 +36284,7 @@ async function createExchangeInstance(chainId, config) {
36284
36284
  environment: config.environment,
36285
36285
  }),
36286
36286
  overrides: dexConfig?.overrides,
36287
+ secondaryFees: dexConfig?.secondaryFees,
36287
36288
  });
36288
36289
  }
36289
36290
  function createOrderbookInstance(config) {
package/dist/index.d.ts CHANGED
@@ -17768,6 +17768,16 @@ type ExchangeContracts = {
17768
17768
  swapRouter: string;
17769
17769
  immutableSwapProxy: string;
17770
17770
  };
17771
+ /**
17772
+ * Type representing the secondary fees for a swap
17773
+ * @property {string} recipient - The fee recipient address
17774
+ * @property {number} basisPoints - The fee percentage in basis points
17775
+ * @example 100 basis points = 1%
17776
+ */
17777
+ type SecondaryFee = {
17778
+ recipient: string;
17779
+ basisPoints: number;
17780
+ };
17771
17781
  /**
17772
17782
  * Type representing an ERC20 token
17773
17783
  * @property {string} type - The token type, used to discriminate between {@link ERC20} and {@link Native}
@@ -17927,6 +17937,8 @@ type DexConfig = {
17927
17937
  overrides?: ExchangeOverrides;
17928
17938
  /** An array of tokens compatible with the DEX. */
17929
17939
  tokens?: TokenInfo[];
17940
+ /** An array of secondary fees to be applied to swaps */
17941
+ secondaryFees?: SecondaryFee[];
17930
17942
  };
17931
17943
  /**
17932
17944
  * A type representing the configuration for the Bridge for all the supported chains.
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.41.1' };
4237
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.41.2' };
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.41.1',
4297
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.41.2',
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.41.1',
4736
+ sdkVersion: 'ts-immutable-sdk-0.41.2',
4737
4737
  });
4738
4738
  /**
4739
4739
  * Sets `sdkVersion` at the time of build
@@ -35511,7 +35511,7 @@ const GAS_OVERRIDES = {
35511
35511
  maxPriorityFeePerGas: BigNumber$1.from(101e9),
35512
35512
  };
35513
35513
 
35514
- const SDK_VERSION_MARKER = '0.41.1';
35514
+ const SDK_VERSION_MARKER = '0.41.2';
35515
35515
  // This SDK version is replaced by the `yarn build` command ran on the root level
35516
35516
  const globalPackageVersion = () => SDK_VERSION_MARKER;
35517
35517
 
@@ -36262,6 +36262,7 @@ async function createExchangeInstance(chainId, config) {
36262
36262
  environment: config.environment,
36263
36263
  }),
36264
36264
  overrides: dexConfig?.overrides,
36265
+ secondaryFees: dexConfig?.secondaryFees,
36265
36266
  });
36266
36267
  }
36267
36268
  function createOrderbookInstance(config) {
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.41.1' };
2352
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.41.2' };
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.41.1',
2408
+ sdkVersion: 'ts-immutable-sdk-0.41.2',
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.41.1",
4
+ "version": "0.41.2",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",