@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/blockchain_data.js +1 -1
- package/dist/browser/checkout/sdk.js +2 -2
- package/dist/browser/checkout/widgets.js +58 -58
- package/dist/checkout.d.ts +12 -0
- package/dist/checkout.js +3 -2
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +3 -3
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.d.ts +12 -0
- package/dist/index.js +5 -4
- package/dist/passport.js +2 -2
- package/package.json +1 -1
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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