@imtbl/sdk 1.63.0-alpha.9 → 1.64.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-DwwUU1Sv.js → blockchain_data-BJFFyOsZ.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-B8E3N6x9.js → AddTokensWidget-_RYa4euh.js} +6 -6
- package/dist/browser/checkout/{BridgeWidget-gwg3itHK.js → BridgeWidget-BCC7YXWj.js} +9 -8
- package/dist/browser/checkout/{CommerceWidget-CYQFnZ-A.js → CommerceWidget-B4QxFLZq.js} +17 -16
- package/dist/browser/checkout/CryptoFiatProvider-b0KhVg3Y.js +224 -0
- package/dist/browser/checkout/{EllipsizedText-D3KX5sW6.js → EllipsizedText-CF9lzi6c.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-t0smMelm.js → FeesBreakdown-BGnZxcX5.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-C83baBs8.js → HandoverContent-CESizLWk.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-ub3p8rIq.js → OnRampWidget-BrGpM6Vn.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-0ph3DWjD.js → SaleWidget-iuigaIZp.js} +15 -26
- package/dist/browser/checkout/{SpendingCapHero-H8nQnrvN.js → SpendingCapHero-B3sb2Wt1.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-DqaVk4Za.js → SwapWidget-CdXf4YYP.js} +9 -8
- package/dist/browser/checkout/{TopUpView-DAPlNPuE.js → TopUpView-Bg-huhcb.js} +6 -239
- package/dist/browser/checkout/{WalletApproveHero-BvLUtiSU.js → WalletApproveHero-DW6Uw6rT.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-DeVwOKcG.js → WalletWidget-ChYjXfAy.js} +7 -22
- package/dist/browser/checkout/{auto-track-ClJXU_n5.js → auto-track-CgS-wbin.js} +1 -1
- package/dist/browser/checkout/{index-BxMhJbRc.js → index-BjLYItcm.js} +19 -19
- package/dist/browser/checkout/{index-BPnSy0QO.js → index-BqJ9Usxu.js} +1 -1
- package/dist/browser/checkout/{index-C8xl0Xhp.js → index-C4anNRY5.js} +2 -2
- package/dist/browser/checkout/{index-Duj2Nh0X.js → index-CshBDuS0.js} +1 -1
- package/dist/browser/checkout/{index-DUx1vVkY.js → index-D6TVOnc2.js} +1 -1
- package/dist/browser/checkout/{index-DswCF863.js → index-DoYS_inI.js} +1 -1
- package/dist/browser/checkout/{index-BlnBKO4r.js → index-LCMExv1j.js} +1 -1
- package/dist/browser/checkout/{index-Chao5n40.js → index-bNCjF_qE.js} +1 -1
- package/dist/browser/checkout/{index-D5zv24LS.js → index-qYOj-RwR.js} +1 -1
- package/dist/browser/checkout/{index.umd-D99p2_JV.js → index.umd-CL6Tp5Ej.js} +1 -1
- package/dist/browser/checkout/{retry-Cm7fgqMB.js → retry-GJcGp5Sw.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-BSrhMn8U.js → useInterval-BfG2xnz-.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +6 -45
- package/dist/{checkout-BOx46Sf_.js → checkout-Cs8dXzsO.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-DSnW5YoD.js → config-COmcON31.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-GR27bJiv.js → index-27OfHl8u.js} +1 -1
- package/dist/{index-CAUG1MUU.js → index-8JzLLOmv.js} +1 -1
- package/dist/{index-BOwvi-qo.js → index-B1oIamSp.js} +4 -4
- package/dist/{index-Dzii2WmJ.js → index-BDcnlE-I.js} +1 -1
- package/dist/{index-7IG0tKUL.js → index-CPZC_4-h.js} +1 -1
- package/dist/{index-BIR0hL-c.js → index-CinJtsQi.js} +3 -3
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +14 -14
- package/dist/{minting_backend-40h00LEK.js → minting_backend-CkmXVZ0p.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-Rq59S_Fr.js → orderbook-Bi2t8guV.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-F4hUJeGI.js → passport-B9TINukj.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-C-TFw6K-.js → webhook-D45ZPknC.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-5JGJ7QiJ.js → x-C1LIWzQf.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports,
|
|
1
|
+
import { r as reactExports, dI as useBrowserLayoutEffect } from './index-BjLYItcm.js';
|
|
2
2
|
|
|
3
3
|
// Inspired by https://usehooks-ts.com/react-hook/use-interval
|
|
4
4
|
function useInterval(callback, delay) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ec as WidgetsFactory } from './index-
|
|
1
|
+
export { ec as WidgetsFactory } from './index-BjLYItcm.js';
|
|
@@ -413370,7 +413370,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
413370
413370
|
function TopUpView({ widgetEvent, checkout,
|
|
413371
413371
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
413372
413372
|
provider, // Keep this for future use
|
|
413373
|
-
showOnrampOption, showSwapOption, showBridgeOption,
|
|
413373
|
+
showOnrampOption, showSwapOption, showBridgeOption, tokenAddress, amount, analytics, onCloseButtonClick, onBackButtonClick, heading, subheading, }) {
|
|
413374
413374
|
const { t } = useTranslation();
|
|
413375
413375
|
const { userJourney } = analytics;
|
|
413376
413376
|
const { viewDispatch } = reactExports.useContext(ViewContext);
|
|
@@ -413397,15 +413397,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
413397
413397
|
useMount(() => {
|
|
413398
413398
|
page({ userJourney, screen: 'TopUp' });
|
|
413399
413399
|
});
|
|
413400
|
-
// Go to add tokens widget if available
|
|
413401
|
-
useMount(() => {
|
|
413402
|
-
if (showAddTokensOption) {
|
|
413403
|
-
orchestrationEvents$1.sendRequestAddTokensEvent(eventTarget, widgetEvent, {
|
|
413404
|
-
toTokenAddress: tokenAddress ?? '',
|
|
413405
|
-
toAmount: amount ?? '',
|
|
413406
|
-
});
|
|
413407
|
-
}
|
|
413408
|
-
}, () => showAddTokensOption !== undefined, [showAddTokensOption]);
|
|
413409
413400
|
reactExports.useEffect(() => {
|
|
413410
413401
|
if (!cryptoFiatDispatch)
|
|
413411
413402
|
return;
|
|
@@ -413586,11 +413577,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
413586
413577
|
isAvailable: true,
|
|
413587
413578
|
isEnabled: showBridgeOption,
|
|
413588
413579
|
},
|
|
413589
|
-
], [
|
|
413590
|
-
// if swap is available, don't show top up view
|
|
413591
|
-
// await for redirect to add tokens widget
|
|
413592
|
-
if (showAddTokensOption)
|
|
413593
|
-
return null;
|
|
413580
|
+
], [showBridgeOption, showOnrampOption, showSwapOption]);
|
|
413594
413581
|
return (jsx$1(SimpleLayout, { header: (jsx$1(HeaderNavigation, { onBackButtonClick: onBackButtonClick, onCloseButtonClick: onCloseButtonClick, showBack: true })), children: jsxs(Box, { sx: { paddingX: 'base.spacing.x4', paddingY: 'base.spacing.x4' }, children: [jsx$1(Heading, { size: "small", children: title }), description && (jsx$1(Body, { size: "small", sx: { color: 'base.color.text.body.secondary' }, children: description })), jsx$1(Box, { sx: { paddingY: 'base.spacing.x4' }, children: topUpFeatures
|
|
413595
413582
|
.sort((a, b) => Number(b.isAvailable) - Number(a.isAvailable))
|
|
413596
413583
|
.map((element) => element.isEnabled && (jsx$1(TopUpMenuItem, { testId: element.testId, icon: element.icon, iconVariant: element.iconVariant, intentIcon: element.intentIcon, heading: t(`${element.textConfigKey}.heading`), caption: !element.isAvailable
|
|
@@ -419460,7 +419447,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
419460
419447
|
isBridgeEnabled: action.payload.supportedTopUps.isBridgeEnabled ?? true,
|
|
419461
419448
|
isAddTokensEnabled: action.payload.supportedTopUps.isAddTokensEnabled ?? true,
|
|
419462
419449
|
isSwapAvailable: action.payload.supportedTopUps.isSwapAvailable ?? true,
|
|
419463
|
-
isAddTokensAvailable: action.payload.supportedTopUps.isAddTokensAvailable ?? true,
|
|
419464
419450
|
},
|
|
419465
419451
|
};
|
|
419466
419452
|
default:
|
|
@@ -419905,12 +419891,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
419905
419891
|
control: 'AddCoins',
|
|
419906
419892
|
controlType: 'Button',
|
|
419907
419893
|
});
|
|
419908
|
-
|
|
419909
|
-
payload: {
|
|
419910
|
-
type: ViewActions.UPDATE_VIEW,
|
|
419911
|
-
view: { type: SharedViews.TOP_UP_VIEW },
|
|
419912
|
-
},
|
|
419913
|
-
});
|
|
419894
|
+
orchestrationEvents$1.sendRequestAddTokensEvent(eventTarget, IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT, {});
|
|
419914
419895
|
};
|
|
419915
419896
|
const handleBridgeToL2OnClick = (address) => {
|
|
419916
419897
|
orchestrationEvents$1.sendRequestBridgeEvent(eventTarget, IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT, {
|
|
@@ -420165,7 +420146,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
420165
420146
|
const [walletState, walletDispatch] = reactExports.useReducer(walletReducer, { ...initialWalletState, walletConfig: { showDisconnectButton, showNetworkMenu } });
|
|
420166
420147
|
const walletReducerValues = reactExports.useMemo(() => ({ walletState, walletDispatch }), [walletState, walletDispatch]);
|
|
420167
420148
|
const viewReducerValues = reactExports.useMemo(() => ({ viewState, viewDispatch }), [viewState, viewDispatch]);
|
|
420168
|
-
const { supportedTopUps } = walletState;
|
|
420169
420149
|
const { balancesLoading, refreshBalances } = useBalance({
|
|
420170
420150
|
checkout,
|
|
420171
420151
|
provider,
|
|
@@ -420201,12 +420181,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
420201
420181
|
checkSwapAvailable = await checkout.isSwapAvailable();
|
|
420202
420182
|
}
|
|
420203
420183
|
catch { /* */ }
|
|
420204
|
-
let checkAddTokensEnabled = isAddTokensEnabled;
|
|
420205
|
-
try {
|
|
420206
|
-
const addTokensConfig = await checkout.config.remote.getConfig('addTokens');
|
|
420207
|
-
checkAddTokensEnabled = addTokensConfig.enabled && isAddTokensEnabled;
|
|
420208
|
-
}
|
|
420209
|
-
catch { /* */ }
|
|
420210
420184
|
walletDispatch({
|
|
420211
420185
|
payload: {
|
|
420212
420186
|
type: WalletActions.SET_SUPPORTED_TOP_UPS,
|
|
@@ -420215,8 +420189,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
420215
420189
|
isSwapEnabled,
|
|
420216
420190
|
isOnRampEnabled,
|
|
420217
420191
|
isSwapAvailable: checkSwapAvailable,
|
|
420218
|
-
isAddTokensEnabled
|
|
420219
|
-
isAddTokensAvailable: checkSwapAvailable && checkAddTokensEnabled,
|
|
420192
|
+
isAddTokensEnabled,
|
|
420220
420193
|
},
|
|
420221
420194
|
},
|
|
420222
420195
|
});
|
|
@@ -420278,7 +420251,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
420278
420251
|
await initialiseWallet();
|
|
420279
420252
|
};
|
|
420280
420253
|
return (jsx$1(ViewContext.Provider, { value: viewReducerValues, children: jsx$1(CryptoFiatProvider, { environment: environment, children: jsxs(WalletContext.Provider, { value: walletReducerValues, children: [viewState.view.type === SharedViews.LOADING_VIEW && (jsx$1(LoadingView, { loadingText: loadingText })), viewState.view.type === WalletWidgetViews.WALLET_BALANCES && (jsx$1(WalletBalances, { balancesLoading: balancesLoading, theme: theme, showNetworkMenu: showNetworkMenu })), viewState.view.type === WalletWidgetViews.SETTINGS
|
|
420281
|
-
&& (jsx$1(Settings, { showDisconnectButton: showDisconnectButton })), viewState.view.type === WalletWidgetViews.COIN_INFO && (jsx$1(CoinInfo, {})), viewState.view.type === SharedViews.ERROR_VIEW && (jsx$1(ErrorView, { actionText: errorActionText, onActionClick: errorAction, onCloseClick: () => sendWalletWidgetCloseEvent(eventTarget) }))
|
|
420254
|
+
&& (jsx$1(Settings, { showDisconnectButton: showDisconnectButton })), viewState.view.type === WalletWidgetViews.COIN_INFO && (jsx$1(CoinInfo, {})), viewState.view.type === SharedViews.ERROR_VIEW && (jsx$1(ErrorView, { actionText: errorActionText, onActionClick: errorAction, onCloseClick: () => sendWalletWidgetCloseEvent(eventTarget) }))] }) }) }));
|
|
420282
420255
|
}
|
|
420283
420256
|
|
|
420284
420257
|
var WalletWidget$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -422973,18 +422946,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
422973
422946
|
const [viewState, viewDispatch] = reactExports.useReducer(viewReducer, initialViewState);
|
|
422974
422947
|
const viewReducerValues = reactExports.useMemo(() => ({ viewState, viewDispatch }), [viewState, viewDispatch]);
|
|
422975
422948
|
const loadingText = viewState.view.data?.loadingText || t('views.LOADING_VIEW.text');
|
|
422976
|
-
const isAddTokensAvailable = useAsyncMemo(async () => {
|
|
422977
|
-
if (!checkout)
|
|
422978
|
-
return false;
|
|
422979
|
-
try {
|
|
422980
|
-
const isSwapAvailable = await checkout.isSwapAvailable();
|
|
422981
|
-
const addTokensConfig = (await checkout.config.remote.getConfig('addTokens'));
|
|
422982
|
-
return addTokensConfig.enabled && isSwapAvailable;
|
|
422983
|
-
}
|
|
422984
|
-
catch (error) {
|
|
422985
|
-
return false;
|
|
422986
|
-
}
|
|
422987
|
-
}, [checkout]);
|
|
422988
422949
|
reactExports.useEffect(() => {
|
|
422989
422950
|
if (!checkout || !provider)
|
|
422990
422951
|
return;
|
|
@@ -423027,7 +422988,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
423027
422988
|
customOrderData,
|
|
423028
422989
|
waitFulfillmentSettlements,
|
|
423029
422990
|
hideExcludedPaymentTypes,
|
|
423030
|
-
}, children: jsxs(CryptoFiatProvider, { environment: config.environment, children: [viewState.view.type === SharedViews.LOADING_VIEW && (jsx$1(LoadingView, { loadingText: loadingText })), viewState.view.type === SaleWidgetViews.PAYMENT_METHODS && (jsx$1(PaymentMethods, {})), viewState.view.type === SaleWidgetViews.PAY_WITH_CARD && (jsx$1(PayWithCard, {})), viewState.view.type === SaleWidgetViews.PAY_WITH_COINS && (jsx$1(PayWithCoins, {})), viewState.view.type === SaleWidgetViews.SALE_FAIL && (jsx$1(SaleErrorView, { biomeTheme: biomeTheme, errorType: viewState.view.data?.errorType, transactionHash: viewState.view.data?.transactionHash, blockExplorerLink: BlockExplorerService.getTransactionLink(chainId.current, viewState.view.data?.transactionHash) })), viewState.view.type === SaleWidgetViews.ORDER_SUMMARY && (jsx$1(OrderSummary, { subView: viewState.view.subView })), viewState.view.type === SharedViews.TOP_UP_VIEW && (jsx$1(TopUpView, { analytics: { userJourney: UserJourney.SALE }, widgetEvent: IMTBLWidgetEvents.IMTBL_SALE_WIDGET_EVENT, checkout: checkout, provider: provider, showOnrampOption: config.isOnRampEnabled, showSwapOption: false, showBridgeOption: config.isBridgeEnabled,
|
|
422991
|
+
}, children: jsxs(CryptoFiatProvider, { environment: config.environment, children: [viewState.view.type === SharedViews.LOADING_VIEW && (jsx$1(LoadingView, { loadingText: loadingText })), viewState.view.type === SaleWidgetViews.PAYMENT_METHODS && (jsx$1(PaymentMethods, {})), viewState.view.type === SaleWidgetViews.PAY_WITH_CARD && (jsx$1(PayWithCard, {})), viewState.view.type === SaleWidgetViews.PAY_WITH_COINS && (jsx$1(PayWithCoins, {})), viewState.view.type === SaleWidgetViews.SALE_FAIL && (jsx$1(SaleErrorView, { biomeTheme: biomeTheme, errorType: viewState.view.data?.errorType, transactionHash: viewState.view.data?.transactionHash, blockExplorerLink: BlockExplorerService.getTransactionLink(chainId.current, viewState.view.data?.transactionHash) })), viewState.view.type === SaleWidgetViews.ORDER_SUMMARY && (jsx$1(OrderSummary, { subView: viewState.view.subView })), viewState.view.type === SharedViews.TOP_UP_VIEW && (jsx$1(TopUpView, { analytics: { userJourney: UserJourney.SALE }, widgetEvent: IMTBLWidgetEvents.IMTBL_SALE_WIDGET_EVENT, checkout: checkout, provider: provider, showOnrampOption: config.isOnRampEnabled, showSwapOption: false, showBridgeOption: config.isBridgeEnabled, onCloseButtonClick: () => sendSaleWidgetCloseEvent(eventTarget), onBackButtonClick: () => {
|
|
423031
422992
|
viewDispatch({
|
|
423032
422993
|
payload: {
|
|
423033
422994
|
type: ViewActions.UPDATE_VIEW,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-
|
|
1
|
+
import { E as Environment$1, t as track, I as ImmutableConfiguration } from './index-BDcnlE-I.js';
|
|
2
2
|
import globalAxios, { HttpStatusCode as HttpStatusCode$1 } from 'axios';
|
|
3
3
|
import { ethers, BigNumber as BigNumber$1, ContractFactory, utils as utils$2, Contract as Contract$1 } from 'ethers';
|
|
4
4
|
import { Web3Provider, JsonRpcProvider } from '@ethersproject/providers';
|
|
@@ -8,8 +8,8 @@ import assert from 'assert';
|
|
|
8
8
|
import { FeeAmount, Route, SwapQuoter, Pool, Trade, toHex as toHex$1, encodeRouteToPath } from '@uniswap/v3-sdk';
|
|
9
9
|
import { keccak256 as keccak256$1 } from '@ethersproject/solidity';
|
|
10
10
|
import { SwapRouter, PaymentsExtended } from '@uniswap/router-sdk';
|
|
11
|
-
import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-
|
|
12
|
-
import { B as BlockchainData } from './index-
|
|
11
|
+
import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-27OfHl8u.js';
|
|
12
|
+
import { B as BlockchainData } from './index-CinJtsQi.js';
|
|
13
13
|
import detectEthereumProvider from '@metamask/detect-provider';
|
|
14
14
|
import semver from 'semver';
|
|
15
15
|
|
|
@@ -19207,7 +19207,7 @@ const flattenProperties = (properties) => {
|
|
|
19207
19207
|
};
|
|
19208
19208
|
|
|
19209
19209
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
19210
|
-
const SDK_VERSION = '1.
|
|
19210
|
+
const SDK_VERSION = '1.64.0';
|
|
19211
19211
|
const getFrameParentDomain = () => {
|
|
19212
19212
|
if (isNode()) {
|
|
19213
19213
|
return '';
|
|
@@ -24315,7 +24315,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
24315
24315
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
24316
24316
|
};
|
|
24317
24317
|
|
|
24318
|
-
const SDK_VERSION_MARKER = '1.
|
|
24318
|
+
const SDK_VERSION_MARKER = '1.64.0';
|
|
24319
24319
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
24320
24320
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
24321
24321
|
|
package/dist/checkout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AddTokensEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutError, h as CheckoutErrorType, i as CheckoutStatus, j as CommerceEventType, k as CommerceFailureEventType, l as CommerceFlowType, m as CommerceSuccessEventType, n as CommerceUserActionEventType, o as ConnectEventType, p as ConnectTargetLayer, E as ExchangeType, F as FeeType, q as FundingStepType, G as GasEstimateType, r as GasTokenType, I as IMMUTABLE_API_BASE_URL, s as IMTBLWidgetEvents, t as ItemType, N as NetworkFilterTypes, O as OnRampEventType, u as OrchestrationEventType, P as ProviderEventType, R as RoutingOutcomeType, S as SaleEventType, v as SalePaymentTypes, w as SwapDirection, x as SwapEventType, T as TokenFilterTypes, y as TransactionOrGasType, W as WalletEventType, z as WalletFilterTypes, D as WalletProviderName, H as WalletProviderRdns, J as WidgetTheme, K as WidgetType, L as getMetaMaskProviderDetail, M as getPassportProviderDetail, Q as isAddressSanctioned, U as validateProvider } from './checkout-
|
|
2
|
-
import './index-
|
|
1
|
+
export { A as AddTokensEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutError, h as CheckoutErrorType, i as CheckoutStatus, j as CommerceEventType, k as CommerceFailureEventType, l as CommerceFlowType, m as CommerceSuccessEventType, n as CommerceUserActionEventType, o as ConnectEventType, p as ConnectTargetLayer, E as ExchangeType, F as FeeType, q as FundingStepType, G as GasEstimateType, r as GasTokenType, I as IMMUTABLE_API_BASE_URL, s as IMTBLWidgetEvents, t as ItemType, N as NetworkFilterTypes, O as OnRampEventType, u as OrchestrationEventType, P as ProviderEventType, R as RoutingOutcomeType, S as SaleEventType, v as SalePaymentTypes, w as SwapDirection, x as SwapEventType, T as TokenFilterTypes, y as TransactionOrGasType, W as WalletEventType, z as WalletFilterTypes, D as WalletProviderName, H as WalletProviderRdns, J as WidgetTheme, K as WidgetType, L as getMetaMaskProviderDetail, M as getPassportProviderDetail, Q as isAddressSanctioned, U as validateProvider } from './checkout-Cs8dXzsO.js';
|
|
2
|
+
import './index-BDcnlE-I.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
import 'lru-memorise';
|
|
5
5
|
import 'global-const';
|
|
@@ -10,13 +10,13 @@ import 'assert';
|
|
|
10
10
|
import '@uniswap/v3-sdk';
|
|
11
11
|
import '@ethersproject/solidity';
|
|
12
12
|
import '@uniswap/router-sdk';
|
|
13
|
-
import './index-
|
|
13
|
+
import './index-27OfHl8u.js';
|
|
14
14
|
import 'form-data';
|
|
15
15
|
import '@opensea/seaport-js/lib/constants';
|
|
16
16
|
import 'ethers-v6';
|
|
17
17
|
import 'merkletreejs';
|
|
18
18
|
import '@opensea/seaport-js';
|
|
19
|
-
import './index-
|
|
20
|
-
import './index-
|
|
19
|
+
import './index-CinJtsQi.js';
|
|
20
|
+
import './index-CPZC_4-h.js';
|
|
21
21
|
import '@metamask/detect-provider';
|
|
22
22
|
import 'semver';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-
|
|
1
|
+
import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-BDcnlE-I.js';
|
|
2
2
|
|
|
3
3
|
var config = /*#__PURE__*/Object.freeze({
|
|
4
4
|
__proto__: null,
|
package/dist/config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-
|
|
1
|
+
export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-BDcnlE-I.js';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'lru-memorise';
|
|
4
4
|
import 'global-const';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as track, E as Environment } from './index-
|
|
1
|
+
import { t as track, E as Environment } from './index-BDcnlE-I.js';
|
|
2
2
|
import globalAxios from 'axios';
|
|
3
3
|
import FormData from 'form-data';
|
|
4
4
|
import { OrderType as OrderType$1, ItemType as ItemType$1 } from '@opensea/seaport-js/lib/constants';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as index$2, I as ImxApiClients } from './index-
|
|
2
|
-
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-
|
|
1
|
+
import { d as index$2, I as ImxApiClients } from './index-CPZC_4-h.js';
|
|
2
|
+
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-BDcnlE-I.js';
|
|
3
3
|
import globalAxios from 'axios';
|
|
4
4
|
import { keccak256 } from '@ethersproject/keccak256';
|
|
5
5
|
import { toUtf8Bytes } from '@ethersproject/strings';
|
|
@@ -16,7 +16,7 @@ import '@ethersproject/abstract-signer';
|
|
|
16
16
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
17
17
|
class ApiConfiguration extends index$2.Configuration {
|
|
18
18
|
}
|
|
19
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
19
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.64.0' };
|
|
20
20
|
/**
|
|
21
21
|
* @dev use createImmutableXConfiguration instead
|
|
22
22
|
*/
|
|
@@ -57,7 +57,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
57
57
|
coreContractAddress,
|
|
58
58
|
registrationContractAddress,
|
|
59
59
|
registrationV4ContractAddress,
|
|
60
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
60
|
+
sdkVersion: 'ts-immutable-sdk-1.64.0',
|
|
61
61
|
baseConfig,
|
|
62
62
|
});
|
|
63
63
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -158,7 +158,7 @@ const flattenProperties = (properties) => {
|
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
161
|
-
const SDK_VERSION = '1.
|
|
161
|
+
const SDK_VERSION = '1.64.0';
|
|
162
162
|
const getFrameParentDomain = () => {
|
|
163
163
|
if (isNode()) {
|
|
164
164
|
return '';
|
|
@@ -13527,7 +13527,7 @@ class MultiRollupApiClients {
|
|
|
13527
13527
|
}
|
|
13528
13528
|
|
|
13529
13529
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13530
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
13530
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.64.0' };
|
|
13531
13531
|
const createConfig = ({ basePath, headers, }) => {
|
|
13532
13532
|
if (!basePath.trim()) {
|
|
13533
13533
|
throw Error('basePath can not be empty');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as index$1 } from './index-
|
|
2
|
-
import { E as Environment, a as addKeysToHeadersOverride } from './index-
|
|
1
|
+
import { a as index$1 } from './index-CPZC_4-h.js';
|
|
2
|
+
import { E as Environment, a as addKeysToHeadersOverride } from './index-BDcnlE-I.js';
|
|
3
3
|
import globalAxios from 'axios';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -21,7 +21,7 @@ class APIError extends Error {
|
|
|
21
21
|
|
|
22
22
|
/* eslint-disable implicit-arrow-linebreak */
|
|
23
23
|
const defaultHeaders = {
|
|
24
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.
|
|
24
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.64.0',
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* createAPIConfiguration to create a custom Configuration
|