@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/checkout_sdk.d.ts
CHANGED
|
@@ -10644,7 +10644,7 @@ declare class Passport {
|
|
|
10644
10644
|
*/
|
|
10645
10645
|
declare enum ChainId {
|
|
10646
10646
|
IMTBL_ZKEVM_MAINNET = 13371,
|
|
10647
|
-
IMTBL_ZKEVM_TESTNET =
|
|
10647
|
+
IMTBL_ZKEVM_TESTNET = 13473,
|
|
10648
10648
|
IMTBL_ZKEVM_DEVNET = 13433,
|
|
10649
10649
|
ETHEREUM = 1,
|
|
10650
10650
|
SEPOLIA = 11155111
|
|
@@ -11471,17 +11471,38 @@ type ExchangeOverrides = {
|
|
|
11471
11471
|
|
|
11472
11472
|
interface CheckoutOverrides {
|
|
11473
11473
|
}
|
|
11474
|
+
interface CheckoutFeatureConfiguration {
|
|
11475
|
+
enable: boolean;
|
|
11476
|
+
}
|
|
11477
|
+
/**
|
|
11478
|
+
* A type representing the on-ramp configurations for the checkout SDK.
|
|
11479
|
+
* @property {boolean} enable - To enable on-ramp feature in Checkout sdk.
|
|
11480
|
+
*/
|
|
11481
|
+
interface CheckoutOnRampConfiguration extends CheckoutFeatureConfiguration {
|
|
11482
|
+
}
|
|
11483
|
+
/**
|
|
11484
|
+
* A type representing the swap configurations for the checkout SDK.
|
|
11485
|
+
* @property {boolean} enable - To enable swap feature in Checkout sdk.
|
|
11486
|
+
*/
|
|
11487
|
+
interface CheckoutSwapConfiguration extends CheckoutFeatureConfiguration {
|
|
11488
|
+
}
|
|
11489
|
+
/**
|
|
11490
|
+
* A type representing the bridge configurations for the checkout SDK.
|
|
11491
|
+
* @property {boolean} enable - To enable bridge feature in Checkout sdk.
|
|
11492
|
+
*/
|
|
11493
|
+
interface CheckoutBridgeConfiguration extends CheckoutFeatureConfiguration {
|
|
11494
|
+
}
|
|
11474
11495
|
/**
|
|
11475
11496
|
* A type representing checkout SDK configurations.
|
|
11476
|
-
* @property {
|
|
11477
|
-
* @property {
|
|
11478
|
-
* @property {
|
|
11479
|
-
* @property {Passport} passport - To enable passport wallet
|
|
11497
|
+
* @property {CheckoutOnRampConfiguration} onRamp - To configure the on-ramp feature.
|
|
11498
|
+
* @property {CheckoutSwapConfiguration} swap - To configure the swap feature.
|
|
11499
|
+
* @property {CheckoutBridgeConfiguration} bridge - To configure the bridge feature.
|
|
11500
|
+
* @property {Passport} passport - To enable passport wallet integration.
|
|
11480
11501
|
*/
|
|
11481
11502
|
interface CheckoutModuleConfiguration extends ModuleConfiguration<CheckoutOverrides> {
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11503
|
+
onRamp?: CheckoutOnRampConfiguration;
|
|
11504
|
+
swap?: CheckoutSwapConfiguration;
|
|
11505
|
+
bridge?: CheckoutBridgeConfiguration;
|
|
11485
11506
|
passport?: Passport;
|
|
11486
11507
|
}
|
|
11487
11508
|
/**
|
|
@@ -12952,4 +12973,4 @@ type ErrorType = {
|
|
|
12952
12973
|
};
|
|
12953
12974
|
};
|
|
12954
12975
|
|
|
12955
|
-
export { AllowedNetworkConfig, AvailableRoutingOptions, BalanceDelta, BridgeEventType, BridgeFailed, BridgeFundingStep, BridgeSuccess, BridgeWidgetConfiguration, BridgeWidgetParams, BuyOrder, BuyParams, BuyResult, BuyResultFailed, BuyResultInsufficientFunds, BuyResultSuccess, BuyToken, CHECKOUT_API_BASE_URL, CancelParams, CancelResult, CancelResultFailed, CancelResultSuccess, ChainId, ChainName, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutConfiguration, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutStatus, CheckoutWidgetsConfig, ConnectEventType, ConnectParams, ConnectResult, ConnectTargetLayer, ConnectWidgetConfiguration, ConnectWidgetParams, ConnectionFailed, ConnectionSuccess, DexConfig, ERC20ItemRequirement, ERC721Balance, ERC721ItemRequirement, ErrorType, ExchangeType, Fee, FeePercentage, FeeToken, FiatRampParams, FulfillmentTransaction, FundingItem, FundingRoute, FundingStep, FundingStepType, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasToken, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, IMTBLWidgetEvents, IWidgetsFactory, ItemBalance, ItemType, NativeItemRequirement, NetworkFilter, NetworkFilterTypes, NetworkInfo, NoRouteOptions, NoRoutesFound, OnRampEventType, OnRampFailed, OnRampFundingStep, OnRampProviderFees, OnRampSuccess, OnRampWidgetParams, OnrampWidgetConfiguration, OrchestrationEvent, OrchestrationEventData, OrchestrationEventType, OrderFee, ProviderEvent, ProviderEventType, ProviderUpdated, RemoteConfiguration, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, RoutesFound, RoutingOutcome, RoutingOutcomeType, SaleEventType, SaleFailed, SaleItem, SaleSuccess, SaleTransactionSuccess, SaleWidgetConfiguration, SaleWidgetParams, SellOrder, SellParams, SellResult, SellResultFailed, SellResultInsufficientFunds, SellResultSuccess, SellToken, SemanticVersion, SendTransactionParams, SendTransactionResult, SmartCheckoutInsufficient, SmartCheckoutParams, SmartCheckoutResult, SmartCheckoutRouter, SmartCheckoutSufficient, SwapEventType, SwapFailed, SwapFundingStep, SwapRejected, SwapSuccess, SwapWidgetConfiguration, SwapWidgetParams, SwitchNetworkParams, SwitchNetworkResult, TokenAmountEstimate, TokenBalance, TokenFilter, TokenFilterTypes, TokenInfo, TransactionOrGasType, TransactionRequirement, WalletDisconnect, WalletEventType, WalletFilter, WalletFilterTypes, WalletInfo, WalletNetworkSwitch, WalletProviderName, WalletWidgetConfiguration, WalletWidgetParams, Widget, WidgetConfiguration, WidgetConfigurations, WidgetEvent, WidgetEventData, WidgetEventTypes, WidgetParameters, WidgetProperties, WidgetTheme, WidgetType };
|
|
12976
|
+
export { AllowedNetworkConfig, AvailableRoutingOptions, BalanceDelta, BridgeEventType, BridgeFailed, BridgeFundingStep, BridgeSuccess, BridgeWidgetConfiguration, BridgeWidgetParams, BuyOrder, BuyParams, BuyResult, BuyResultFailed, BuyResultInsufficientFunds, BuyResultSuccess, BuyToken, CHECKOUT_API_BASE_URL, CancelParams, CancelResult, CancelResultFailed, CancelResultSuccess, ChainId, ChainName, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutBridgeConfiguration, CheckoutConfiguration, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutOnRampConfiguration, CheckoutStatus, CheckoutSwapConfiguration, CheckoutWidgetsConfig, ConnectEventType, ConnectParams, ConnectResult, ConnectTargetLayer, ConnectWidgetConfiguration, ConnectWidgetParams, ConnectionFailed, ConnectionSuccess, DexConfig, ERC20ItemRequirement, ERC721Balance, ERC721ItemRequirement, ErrorType, ExchangeType, Fee, FeePercentage, FeeToken, FiatRampParams, FulfillmentTransaction, FundingItem, FundingRoute, FundingStep, FundingStepType, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasToken, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, IMTBLWidgetEvents, IWidgetsFactory, ItemBalance, ItemType, NativeItemRequirement, NetworkFilter, NetworkFilterTypes, NetworkInfo, NoRouteOptions, NoRoutesFound, OnRampEventType, OnRampFailed, OnRampFundingStep, OnRampProviderFees, OnRampSuccess, OnRampWidgetParams, OnrampWidgetConfiguration, OrchestrationEvent, OrchestrationEventData, OrchestrationEventType, OrderFee, ProviderEvent, ProviderEventType, ProviderUpdated, RemoteConfiguration, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, RoutesFound, RoutingOutcome, RoutingOutcomeType, SaleEventType, SaleFailed, SaleItem, SaleSuccess, SaleTransactionSuccess, SaleWidgetConfiguration, SaleWidgetParams, SellOrder, SellParams, SellResult, SellResultFailed, SellResultInsufficientFunds, SellResultSuccess, SellToken, SemanticVersion, SendTransactionParams, SendTransactionResult, SmartCheckoutInsufficient, SmartCheckoutParams, SmartCheckoutResult, SmartCheckoutRouter, SmartCheckoutSufficient, SwapEventType, SwapFailed, SwapFundingStep, SwapRejected, SwapSuccess, SwapWidgetConfiguration, SwapWidgetParams, SwitchNetworkParams, SwitchNetworkResult, TokenAmountEstimate, TokenBalance, TokenFilter, TokenFilterTypes, TokenInfo, TransactionOrGasType, TransactionRequirement, WalletDisconnect, WalletEventType, WalletFilter, WalletFilterTypes, WalletInfo, WalletNetworkSwitch, WalletProviderName, WalletWidgetConfiguration, WalletWidgetParams, Widget, WidgetConfiguration, WidgetConfigurations, WidgetEvent, WidgetEventData, WidgetEventTypes, WidgetParameters, WidgetProperties, WidgetTheme, WidgetType };
|