@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.
@@ -11451,6 +11451,16 @@ type ExchangeContracts = {
11451
11451
  swapRouter: string;
11452
11452
  immutableSwapProxy: string;
11453
11453
  };
11454
+ /**
11455
+ * Type representing the secondary fees for a swap
11456
+ * @property {string} recipient - The fee recipient address
11457
+ * @property {number} basisPoints - The fee percentage in basis points
11458
+ * @example 100 basis points = 1%
11459
+ */
11460
+ type SecondaryFee = {
11461
+ recipient: string;
11462
+ basisPoints: number;
11463
+ };
11454
11464
  /**
11455
11465
  * Type representing an ERC20 token
11456
11466
  * @property {string} type - The token type, used to discriminate between {@link ERC20} and {@link Native}
@@ -11610,6 +11620,8 @@ type DexConfig = {
11610
11620
  overrides?: ExchangeOverrides;
11611
11621
  /** An array of tokens compatible with the DEX. */
11612
11622
  tokens?: TokenInfo[];
11623
+ /** An array of secondary fees to be applied to swaps */
11624
+ secondaryFees?: SecondaryFee[];
11613
11625
  };
11614
11626
  /**
11615
11627
  * A type representing the configuration for the Bridge for all the supported chains.
package/dist/checkout.js CHANGED
@@ -25851,7 +25851,7 @@ class APIError extends Error {
25851
25851
 
25852
25852
  /* eslint-disable implicit-arrow-linebreak */
25853
25853
  const defaultHeaders = {
25854
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.41.1',
25854
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.41.2',
25855
25855
  };
25856
25856
  /**
25857
25857
  * createAPIConfiguration to create a custom Configuration
@@ -27201,7 +27201,7 @@ const GAS_OVERRIDES = {
27201
27201
  maxPriorityFeePerGas: BigNumber$1.from(101e9),
27202
27202
  };
27203
27203
 
27204
- const SDK_VERSION_MARKER = '0.41.1';
27204
+ const SDK_VERSION_MARKER = '0.41.2';
27205
27205
  // This SDK version is replaced by the `yarn build` command ran on the root level
27206
27206
  const globalPackageVersion = () => SDK_VERSION_MARKER;
27207
27207
 
@@ -27952,6 +27952,7 @@ async function createExchangeInstance(chainId, config) {
27952
27952
  environment: config.environment,
27953
27953
  }),
27954
27954
  overrides: dexConfig?.overrides,
27955
+ secondaryFees: dexConfig?.secondaryFees,
27955
27956
  });
27956
27957
  }
27957
27958
  function createOrderbookInstance(config) {
@@ -17,7 +17,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
17
17
  chainID,
18
18
  coreContractAddress,
19
19
  registrationContractAddress,
20
- sdkVersion: 'ts-immutable-sdk-0.41.1',
20
+ sdkVersion: 'ts-immutable-sdk-0.41.2',
21
21
  });
22
22
  /**
23
23
  * Sets `sdkVersion` at the time of build