@imtbl/sdk 0.30.4 → 0.31.0
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 +2 -2
- package/dist/browser/checkout/sdk.js +6 -6
- package/dist/browser/checkout/widgets.js +2 -2
- package/dist/checkout_sdk.d.ts +30 -9
- package/dist/checkout_sdk.js +155 -124
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +158 -127
- package/dist/index.d.ts +37 -10
- package/dist/index.js +158 -127
- package/dist/orderbook.d.ts +2 -2
- package/dist/orderbook.js +11 -11
- package/dist/passport.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14949,7 +14949,7 @@ type ERC20Item$1 = {
|
|
|
14949
14949
|
/**
|
|
14950
14950
|
* A string representing the starting price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum).
|
|
14951
14951
|
*/
|
|
14952
|
-
|
|
14952
|
+
amount: string;
|
|
14953
14953
|
};
|
|
14954
14954
|
|
|
14955
14955
|
type ERC721Item$1 = {
|
|
@@ -14975,7 +14975,7 @@ type NativeItem$1 = {
|
|
|
14975
14975
|
/**
|
|
14976
14976
|
* A string representing the starting price at which the user is willing to sell the token. This value is provided in the smallest unit of the token (e.g., wei for Ethereum).
|
|
14977
14977
|
*/
|
|
14978
|
-
|
|
14978
|
+
amount: string;
|
|
14979
14979
|
};
|
|
14980
14980
|
|
|
14981
14981
|
type Item = (NativeItem$1 | ERC20Item$1 | ERC721Item$1);
|
|
@@ -15905,7 +15905,7 @@ declare namespace provider_d {
|
|
|
15905
15905
|
*/
|
|
15906
15906
|
declare enum ChainId {
|
|
15907
15907
|
IMTBL_ZKEVM_MAINNET = 13371,
|
|
15908
|
-
IMTBL_ZKEVM_TESTNET =
|
|
15908
|
+
IMTBL_ZKEVM_TESTNET = 13473,
|
|
15909
15909
|
IMTBL_ZKEVM_DEVNET = 13433,
|
|
15910
15910
|
ETHEREUM = 1,
|
|
15911
15911
|
SEPOLIA = 11155111
|
|
@@ -16732,17 +16732,38 @@ type ExchangeOverrides = {
|
|
|
16732
16732
|
|
|
16733
16733
|
interface CheckoutOverrides {
|
|
16734
16734
|
}
|
|
16735
|
+
interface CheckoutFeatureConfiguration {
|
|
16736
|
+
enable: boolean;
|
|
16737
|
+
}
|
|
16738
|
+
/**
|
|
16739
|
+
* A type representing the on-ramp configurations for the checkout SDK.
|
|
16740
|
+
* @property {boolean} enable - To enable on-ramp feature in Checkout sdk.
|
|
16741
|
+
*/
|
|
16742
|
+
interface CheckoutOnRampConfiguration extends CheckoutFeatureConfiguration {
|
|
16743
|
+
}
|
|
16744
|
+
/**
|
|
16745
|
+
* A type representing the swap configurations for the checkout SDK.
|
|
16746
|
+
* @property {boolean} enable - To enable swap feature in Checkout sdk.
|
|
16747
|
+
*/
|
|
16748
|
+
interface CheckoutSwapConfiguration extends CheckoutFeatureConfiguration {
|
|
16749
|
+
}
|
|
16750
|
+
/**
|
|
16751
|
+
* A type representing the bridge configurations for the checkout SDK.
|
|
16752
|
+
* @property {boolean} enable - To enable bridge feature in Checkout sdk.
|
|
16753
|
+
*/
|
|
16754
|
+
interface CheckoutBridgeConfiguration extends CheckoutFeatureConfiguration {
|
|
16755
|
+
}
|
|
16735
16756
|
/**
|
|
16736
16757
|
* A type representing checkout SDK configurations.
|
|
16737
|
-
* @property {
|
|
16738
|
-
* @property {
|
|
16739
|
-
* @property {
|
|
16740
|
-
* @property {Passport} passport - To enable passport wallet
|
|
16758
|
+
* @property {CheckoutOnRampConfiguration} onRamp - To configure the on-ramp feature.
|
|
16759
|
+
* @property {CheckoutSwapConfiguration} swap - To configure the swap feature.
|
|
16760
|
+
* @property {CheckoutBridgeConfiguration} bridge - To configure the bridge feature.
|
|
16761
|
+
* @property {Passport} passport - To enable passport wallet integration.
|
|
16741
16762
|
*/
|
|
16742
16763
|
interface CheckoutModuleConfiguration extends ModuleConfiguration<CheckoutOverrides> {
|
|
16743
|
-
|
|
16744
|
-
|
|
16745
|
-
|
|
16764
|
+
onRamp?: CheckoutOnRampConfiguration;
|
|
16765
|
+
swap?: CheckoutSwapConfiguration;
|
|
16766
|
+
bridge?: CheckoutBridgeConfiguration;
|
|
16746
16767
|
passport?: Passport;
|
|
16747
16768
|
}
|
|
16748
16769
|
/**
|
|
@@ -18243,13 +18264,16 @@ type checkout_sdk_d_CheckConnectionParams = CheckConnectionParams;
|
|
|
18243
18264
|
type checkout_sdk_d_CheckConnectionResult = CheckConnectionResult;
|
|
18244
18265
|
type checkout_sdk_d_Checkout = Checkout;
|
|
18245
18266
|
declare const checkout_sdk_d_Checkout: typeof Checkout;
|
|
18267
|
+
type checkout_sdk_d_CheckoutBridgeConfiguration = CheckoutBridgeConfiguration;
|
|
18246
18268
|
type checkout_sdk_d_CheckoutConfiguration = CheckoutConfiguration;
|
|
18247
18269
|
declare const checkout_sdk_d_CheckoutConfiguration: typeof CheckoutConfiguration;
|
|
18248
18270
|
type checkout_sdk_d_CheckoutErrorType = CheckoutErrorType;
|
|
18249
18271
|
declare const checkout_sdk_d_CheckoutErrorType: typeof CheckoutErrorType;
|
|
18250
18272
|
type checkout_sdk_d_CheckoutModuleConfiguration = CheckoutModuleConfiguration;
|
|
18273
|
+
type checkout_sdk_d_CheckoutOnRampConfiguration = CheckoutOnRampConfiguration;
|
|
18251
18274
|
type checkout_sdk_d_CheckoutStatus = CheckoutStatus;
|
|
18252
18275
|
declare const checkout_sdk_d_CheckoutStatus: typeof CheckoutStatus;
|
|
18276
|
+
type checkout_sdk_d_CheckoutSwapConfiguration = CheckoutSwapConfiguration;
|
|
18253
18277
|
type checkout_sdk_d_CheckoutWidgetsConfig = CheckoutWidgetsConfig;
|
|
18254
18278
|
type checkout_sdk_d_ConnectEventType = ConnectEventType;
|
|
18255
18279
|
declare const checkout_sdk_d_ConnectEventType: typeof ConnectEventType;
|
|
@@ -18433,10 +18457,13 @@ declare namespace checkout_sdk_d {
|
|
|
18433
18457
|
checkout_sdk_d_CheckConnectionParams as CheckConnectionParams,
|
|
18434
18458
|
checkout_sdk_d_CheckConnectionResult as CheckConnectionResult,
|
|
18435
18459
|
checkout_sdk_d_Checkout as Checkout,
|
|
18460
|
+
checkout_sdk_d_CheckoutBridgeConfiguration as CheckoutBridgeConfiguration,
|
|
18436
18461
|
checkout_sdk_d_CheckoutConfiguration as CheckoutConfiguration,
|
|
18437
18462
|
checkout_sdk_d_CheckoutErrorType as CheckoutErrorType,
|
|
18438
18463
|
checkout_sdk_d_CheckoutModuleConfiguration as CheckoutModuleConfiguration,
|
|
18464
|
+
checkout_sdk_d_CheckoutOnRampConfiguration as CheckoutOnRampConfiguration,
|
|
18439
18465
|
checkout_sdk_d_CheckoutStatus as CheckoutStatus,
|
|
18466
|
+
checkout_sdk_d_CheckoutSwapConfiguration as CheckoutSwapConfiguration,
|
|
18440
18467
|
checkout_sdk_d_CheckoutWidgetsConfig as CheckoutWidgetsConfig,
|
|
18441
18468
|
checkout_sdk_d_ConnectEventType as ConnectEventType,
|
|
18442
18469
|
checkout_sdk_d_ConnectParams as ConnectParams,
|