@imtbl/sdk 0.31.3 → 0.33.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 +1 -1
- package/dist/browser/checkout/sdk.js +6 -6
- package/dist/browser/checkout/widgets.js +52 -52
- package/dist/{checkout_sdk.d.ts → checkout.d.ts} +23 -26
- package/dist/{checkout_sdk.js → checkout.js} +629 -617
- package/dist/config.js +1 -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 +413 -402
- package/dist/index.d.ts +386 -389
- package/dist/index.js +413 -402
- package/dist/passport.js +2 -2
- package/package.json +4 -4
|
@@ -11449,23 +11449,19 @@ type Native = {
|
|
|
11449
11449
|
symbol?: string;
|
|
11450
11450
|
name?: string;
|
|
11451
11451
|
};
|
|
11452
|
-
/**
|
|
11453
|
-
* Type representing a token, either an {@link ERC20} or {@link Native}
|
|
11454
|
-
*/
|
|
11455
|
-
type Coin = ERC20 | Native;
|
|
11456
11452
|
/**
|
|
11457
11453
|
* Type representing the overrides for the {@link Exchange} module
|
|
11458
11454
|
* @property {string} rpcURL - The RPC URL for the chain
|
|
11459
11455
|
* @property {ExchangeContracts} exchangeContracts - The DEX contract addresses
|
|
11460
11456
|
* @property {ERC20[]} commonRoutingTokens - The tokens used to find available pools for a swap
|
|
11461
|
-
* @property {
|
|
11457
|
+
* @property {Native} nativeToken - The native token of the chain
|
|
11462
11458
|
* @property {ERC20} wrappedNativeToken - The wrapped native token of the chain
|
|
11463
11459
|
*/
|
|
11464
11460
|
type ExchangeOverrides = {
|
|
11465
11461
|
rpcURL: string;
|
|
11466
11462
|
exchangeContracts: ExchangeContracts;
|
|
11467
11463
|
commonRoutingTokens: ERC20[];
|
|
11468
|
-
nativeToken:
|
|
11464
|
+
nativeToken: Native;
|
|
11469
11465
|
wrappedNativeToken: ERC20;
|
|
11470
11466
|
};
|
|
11471
11467
|
|
|
@@ -11811,6 +11807,14 @@ declare enum NetworkFilterTypes {
|
|
|
11811
11807
|
interface NetworkFilter {
|
|
11812
11808
|
chainId: ChainId;
|
|
11813
11809
|
}
|
|
11810
|
+
type NetworkDetails = {
|
|
11811
|
+
chainIdHex: string;
|
|
11812
|
+
chainName: string;
|
|
11813
|
+
rpcUrls: string[];
|
|
11814
|
+
nativeCurrency: TokenInfo;
|
|
11815
|
+
blockExplorerUrls?: string[];
|
|
11816
|
+
};
|
|
11817
|
+
type NetworkMap = Map<ChainId, NetworkDetails>;
|
|
11814
11818
|
|
|
11815
11819
|
/**
|
|
11816
11820
|
* Interface representing the parameters for {@link Checkout.sell}
|
|
@@ -11941,26 +11945,6 @@ declare enum WalletFilterTypes {
|
|
|
11941
11945
|
ALL = "all"
|
|
11942
11946
|
}
|
|
11943
11947
|
|
|
11944
|
-
/**
|
|
11945
|
-
* Base URL for the checkout API based on the environment.
|
|
11946
|
-
* @property {string} DEVELOPMENT - The base URL for the development environment.
|
|
11947
|
-
* @property {string} SANDBOX - The base URL for the sandbox environment.
|
|
11948
|
-
* @property {string} PRODUCTION - The base URL for the production environment.
|
|
11949
|
-
*/
|
|
11950
|
-
declare const CHECKOUT_API_BASE_URL: {
|
|
11951
|
-
[x: string]: string;
|
|
11952
|
-
sandbox: string;
|
|
11953
|
-
production: string;
|
|
11954
|
-
};
|
|
11955
|
-
type NetworkDetails = {
|
|
11956
|
-
chainIdHex: string;
|
|
11957
|
-
chainName: string;
|
|
11958
|
-
rpcUrls: string[];
|
|
11959
|
-
nativeCurrency: TokenInfo;
|
|
11960
|
-
blockExplorerUrls?: string[];
|
|
11961
|
-
};
|
|
11962
|
-
type NetworkMap = Map<ChainId, NetworkDetails>;
|
|
11963
|
-
|
|
11964
11948
|
/**
|
|
11965
11949
|
* An enum representing the type of exchange.
|
|
11966
11950
|
* @enum {string}
|
|
@@ -11994,6 +11978,7 @@ declare class RemoteConfigFetcher {
|
|
|
11994
11978
|
private isProduction;
|
|
11995
11979
|
private configCache;
|
|
11996
11980
|
private tokensCache;
|
|
11981
|
+
private version;
|
|
11997
11982
|
constructor(params: RemoteConfigParams);
|
|
11998
11983
|
private static makeHttpRequest;
|
|
11999
11984
|
private getEndpoint;
|
|
@@ -12973,4 +12958,16 @@ type ErrorType = {
|
|
|
12973
12958
|
};
|
|
12974
12959
|
};
|
|
12975
12960
|
|
|
12961
|
+
/**
|
|
12962
|
+
* Base URL for the checkout API based on the environment.
|
|
12963
|
+
* @property {string} DEVELOPMENT - The base URL for the development environment.
|
|
12964
|
+
* @property {string} SANDBOX - The base URL for the sandbox environment.
|
|
12965
|
+
* @property {string} PRODUCTION - The base URL for the production environment.
|
|
12966
|
+
*/
|
|
12967
|
+
declare const CHECKOUT_API_BASE_URL: {
|
|
12968
|
+
[x: string]: string;
|
|
12969
|
+
sandbox: string;
|
|
12970
|
+
production: string;
|
|
12971
|
+
};
|
|
12972
|
+
|
|
12976
12973
|
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 };
|