@imtbl/sdk 1.78.3 → 1.78.4
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-DZwc2fu2.js → blockchain_data-PTGoxxUk.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-hN4Oz8Ns.js → AddTokensWidget-B9bjgGFL.js} +3 -3
- package/dist/browser/checkout/{BridgeWidget-A_pLUANI.js → BridgeWidget-1JpgUJ9B.js} +6 -6
- package/dist/browser/checkout/{CommerceWidget-BoKaAY5y.js → CommerceWidget-DGTwB2pR.js} +13 -13
- package/dist/browser/checkout/{FeesBreakdown-Cnmi6JuS.js → FeesBreakdown-CSf772jM.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-CYqTRHSC.js → OnRampWidget-DD2u_4kS.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-DIW0k6AY.js → SaleWidget-BKXRdb-F.js} +10 -10
- package/dist/browser/checkout/{SpendingCapHero-Dp3KVsiY.js → SpendingCapHero-Dfpj4gVQ.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-CO4Ks4Im.js → SwapWidget-CapNhDxH.js} +68 -11
- package/dist/browser/checkout/{TokenImage-BNq0SnBY.js → TokenImage-cuy99Q3z.js} +1 -1
- package/dist/browser/checkout/{TopUpView-CHsQmxQQ.js → TopUpView-DSHHu1bC.js} +1 -1
- package/dist/browser/checkout/{WalletApproveHero-Bj4aKxP9.js → WalletApproveHero-DNP71VT8.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-BsKIkdBf.js → WalletWidget-D5CQtFOw.js} +3 -3
- package/dist/browser/checkout/{auto-track-BM5HqFI3.js → auto-track-ZSD3meU5.js} +1 -1
- package/dist/browser/checkout/{index-D9AyMqDS.js → index-B3PdDan9.js} +1 -1
- package/dist/browser/checkout/{index-D-MV_CPF.js → index-BUjxwhbn.js} +1 -1
- package/dist/browser/checkout/{index-Cp7l-bwg.js → index-DwoF2xE9.js} +1 -1
- package/dist/browser/checkout/{index-DubSxoZp.js → index-UWwEBJUL.js} +1 -1
- package/dist/browser/checkout/{index-DatkoxOH.js → index-a9WCTqrO.js} +1 -1
- package/dist/browser/checkout/{index-D0Nv1xcY.js → index-gx60kT98.js} +1 -1
- package/dist/browser/checkout/{index-CNJ98XFR.js → index-riGT8jUx.js} +2 -2
- package/dist/browser/checkout/{index-BDZfw_Cp.js → index-zhSt3pns.js} +35 -27
- package/dist/browser/checkout/{index.umd-Dyg-Hme-.js → index.umd-CR1xvgEn.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-WSD1wTJp.js → useInterval-0yXsNl1l.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +78 -13
- package/dist/{checkout-D85H2UOr.js → checkout-oPpuXY4L.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-DRAyKVu-.js → config-BWfb83cE.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-CCDv6Cyl.js → index-Bl7On7mL.js} +1 -1
- package/dist/{index-0O2fcy0v.js → index-Bw8fn1Wa.js} +1 -1
- package/dist/{index-BNliR-wj.js → index-CSoPbsbu.js} +3 -3
- package/dist/{index-CylHn7jn.js → index-DicbPhj8.js} +4 -4
- package/dist/{index-CyF8Dbrm.js → index-PHKSQRIK.js} +1 -1
- package/dist/{index-DcwsoYMg.js → index-Q-ssUIWm.js} +97 -16
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +103 -22
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -14
- package/dist/{minting_backend-DeDeOgv8.js → minting_backend--5_apAXv.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-DeNPn-Ds.js → orderbook-BgsCWy3W.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-KAsDtSFi.js → passport-0-rakGej.js} +3 -3
- package/dist/passport.d.ts +1 -1
- package/dist/passport.js +4 -4
- package/dist/version.json +1 -1
- package/dist/{webhook-BMfjDENm.js → webhook-8wr5kAkj.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-DYmEE5xd.js → x-BzOMkL8a.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, dp as useBrowserLayoutEffect } from './index-
|
|
1
|
+
import { r as reactExports, dp as useBrowserLayoutEffect } from './index-zhSt3pns.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 { dW as WidgetsFactory } from './index-
|
|
1
|
+
export { dW as WidgetsFactory } from './index-zhSt3pns.js';
|
|
@@ -132997,7 +132997,7 @@
|
|
|
132997
132997
|
drawer: {
|
|
132998
132998
|
options: {
|
|
132999
132999
|
heading: "Pay from",
|
|
133000
|
-
moreOptionsDividerText: "
|
|
133000
|
+
moreOptionsDividerText: "Other ways to Pay",
|
|
133001
133001
|
loadingText1: "Finding the best value",
|
|
133002
133002
|
loadingText2: "across all chains",
|
|
133003
133003
|
noRoutes: {
|
|
@@ -133009,6 +133009,7 @@
|
|
|
133009
133009
|
caption: "Swap tokens on this network.",
|
|
133010
133010
|
disabledCaption: "Currently not available."
|
|
133011
133011
|
},
|
|
133012
|
+
changeWallet: "Choose another wallet",
|
|
133012
133013
|
debit: {
|
|
133013
133014
|
heading: "Debit Card",
|
|
133014
133015
|
caption: "",
|
|
@@ -134243,7 +134244,7 @@
|
|
|
134243
134244
|
drawer: {
|
|
134244
134245
|
options: {
|
|
134245
134246
|
heading: "支払い元",
|
|
134246
|
-
moreOptionsDividerText: "
|
|
134247
|
+
moreOptionsDividerText: "その他の支払い方法",
|
|
134247
134248
|
loadingText1: "最適な価値を検索中",
|
|
134248
134249
|
loadingText2: "すべてのチェーンを横断",
|
|
134249
134250
|
noRoutes: {
|
|
@@ -134255,6 +134256,7 @@
|
|
|
134255
134256
|
caption: "このネットワークでトークンを交換します。",
|
|
134256
134257
|
disabledCaption: "現在利用できません。"
|
|
134257
134258
|
},
|
|
134259
|
+
changeWallet: "別のウォレットを選択",
|
|
134258
134260
|
debit: {
|
|
134259
134261
|
heading: "デビットカード",
|
|
134260
134262
|
caption: "",
|
|
@@ -135517,6 +135519,7 @@
|
|
|
135517
135519
|
caption: "이 네트워크에서 토큰을 교환합니다.",
|
|
135518
135520
|
disabledCaption: "현재 이용할 수 없습니다."
|
|
135519
135521
|
},
|
|
135522
|
+
changeWallet: "다른 지갑 선택",
|
|
135520
135523
|
debit: {
|
|
135521
135524
|
heading: "직불 카드",
|
|
135522
135525
|
caption: "",
|
|
@@ -136767,7 +136770,7 @@
|
|
|
136767
136770
|
drawer: {
|
|
136768
136771
|
options: {
|
|
136769
136772
|
heading: "支付来源",
|
|
136770
|
-
moreOptionsDividerText: "
|
|
136773
|
+
moreOptionsDividerText: "其他支付方式",
|
|
136771
136774
|
loadingText1: "寻找最佳价值",
|
|
136772
136775
|
loadingText2: "跨所有链",
|
|
136773
136776
|
noRoutes: {
|
|
@@ -136779,6 +136782,7 @@
|
|
|
136779
136782
|
caption: "在此网络上交换代币。",
|
|
136780
136783
|
disabledCaption: "当前不可用。"
|
|
136781
136784
|
},
|
|
136785
|
+
changeWallet: "选择另一个钱包",
|
|
136782
136786
|
debit: {
|
|
136783
136787
|
heading: "借记卡",
|
|
136784
136788
|
caption: "",
|
|
@@ -250274,7 +250278,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
250274
250278
|
size,
|
|
250275
250279
|
rc,
|
|
250276
250280
|
};
|
|
250277
|
-
return (jsxs(MenuItem, { ...menuItemProps, children: [jsx$1(MenuItem.FramedIcon, { icon: icon[type], variant: "bold", emphasized: false }), jsx$1(MenuItem.Label, { children: t(`views.PURCHASE.drawer.options.${type}.heading`) }), jsx$1(MenuItem.Caption, { children: t(`views.PURCHASE.drawer.options.${type}.${disabled ? 'disabledCaption' : 'caption'}`) })
|
|
250281
|
+
return (jsxs(MenuItem, { ...menuItemProps, children: [jsx$1(MenuItem.FramedIcon, { icon: icon[type], variant: "bold", emphasized: false }), jsx$1(MenuItem.Label, { children: t(`views.PURCHASE.drawer.options.${type}.heading`) }), jsx$1(MenuItem.Caption, { children: t(`views.PURCHASE.drawer.options.${type}.${disabled ? 'disabledCaption' : 'caption'}`) })] }));
|
|
250278
250282
|
}
|
|
250279
250283
|
|
|
250280
250284
|
const emptyRouteBalance = {
|
|
@@ -250340,7 +250344,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
250340
250344
|
FiatOptionType$1.DEBIT,
|
|
250341
250345
|
FiatOptionType$1.CREDIT,
|
|
250342
250346
|
];
|
|
250343
|
-
function RouteOptions$1({ checkout, routes, chains, onCardClick, onRouteClick, onDirectCryptoPayClick, size, showOnrampOption,
|
|
250347
|
+
function RouteOptions$1({ checkout, routes, chains, onCardClick, onRouteClick, onDirectCryptoPayClick, onChangeWalletClick, size, showOnrampOption,
|
|
250344
250348
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
250345
250349
|
showDirectCryptoPayOption, insufficientBalance, selectedIndex, selectedRouteType, directCryptoPayRoutes, }) {
|
|
250346
250350
|
const { t } = useTranslation();
|
|
@@ -250350,10 +250354,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
250350
250354
|
&& (directCryptoPayRoutes?.map((routeData, index) => (jsx$1(DirectCryptoPayOption, { size: size, routeData: routeData, chains: chains, onClick: () => onDirectCryptoPayClick(routeData, index), isFastest: index === 0, selected: index === selectedIndex
|
|
250351
250355
|
&& (selectedRouteType === DirectCryptoPayOptionType.IMMUTABLE_ZKEVM || !selectedRouteType), rc: jsx$1(motion.div, { variants: listItemVariants }) }, `direct-crypto-pay-option-${routeData.amountData.fromToken.chainId}-`
|
|
250352
250356
|
+ `${routeData.amountData.fromToken.address}`)))), (routes && routes.length > 0)
|
|
250353
|
-
&& routes?.map((routeData, index) => (jsx$1(RouteOption$1, { size: size, routeData: routeData, chains: chains, onClick: () => onRouteClick(routeData, index), isFastest: directCryptoPayRoutes && directCryptoPayRoutes.length > 0 ? false : index === 0, selected: index === selectedIndex && selectedRouteType === SquidRouteOptionType.SQUID_ROUTE, rc: jsx$1(motion.div, { variants: listItemVariants }) }, `route-option-${routeData.amountData.fromToken.chainId}-${routeData.amountData.fromToken.address}`))), noRoutes && (jsxs(Banner, { children: [jsx$1(Banner.Icon, { icon: "InformationCircle" }), jsx$1(Banner.Title, { children: t('views.PURCHASE.drawer.options.noRoutes.heading') }), jsx$1(Banner.Caption, { children: t('views.PURCHASE.drawer.options.noRoutes.caption') })] })), !routes?.length && !insufficientBalance && renderLoading(), showOnrampOption && (jsxs(Fragment$1, { children: [jsx$1(Divider, { size: "xSmall", sx: { my: 'base.spacing.x2' }, children: t('views.PURCHASE.drawer.options.moreOptionsDividerText') }), defaultFiatOptions$1.map((type, idx) => (jsx$1(FiatOption$1, { type: type, size: size, onClick: onCardClick, rc: jsx$1(motion.div, { custom: idx, variants: listItemVariants }) }, `fiat-option-${type}`)))] }))] }));
|
|
250357
|
+
&& routes?.map((routeData, index) => (jsx$1(RouteOption$1, { size: size, routeData: routeData, chains: chains, onClick: () => onRouteClick(routeData, index), isFastest: directCryptoPayRoutes && directCryptoPayRoutes.length > 0 ? false : index === 0, selected: index === selectedIndex && selectedRouteType === SquidRouteOptionType.SQUID_ROUTE, rc: jsx$1(motion.div, { variants: listItemVariants }) }, `route-option-${routeData.amountData.fromToken.chainId}-${routeData.amountData.fromToken.address}`))), noRoutes && (jsxs(Banner, { children: [jsx$1(Banner.Icon, { icon: "InformationCircle" }), jsx$1(Banner.Title, { children: t('views.PURCHASE.drawer.options.noRoutes.heading') }), jsx$1(Banner.Caption, { children: t('views.PURCHASE.drawer.options.noRoutes.caption') })] })), !routes?.length && !insufficientBalance && renderLoading(), showOnrampOption && (routes?.length || insufficientBalance) && (jsxs(Fragment$1, { children: [jsx$1(Divider, { size: "xSmall", sx: { my: 'base.spacing.x2' }, children: t('views.PURCHASE.drawer.options.moreOptionsDividerText') }), jsxs(MenuItem, { emphasized: true, onClick: onChangeWalletClick, size: "small", children: [jsx$1(MenuItem.FramedIcon, { icon: "Wallet", variant: "bold", emphasized: false }), jsx$1(MenuItem.Label, { children: t('views.PURCHASE.drawer.options.changeWallet') })] }), defaultFiatOptions$1.map((type, idx) => (jsx$1(FiatOption$1, { type: type, size: size, onClick: onCardClick, rc: jsx$1(motion.div, { custom: idx, variants: listItemVariants }) }, `fiat-option-${type}`)))] }))] }));
|
|
250354
250358
|
}
|
|
250355
250359
|
|
|
250356
|
-
function RouteOptionsDrawer$1({ checkout, routes, chains, visible, onClose, onRouteClick, onCardClick, onDirectCryptoPayClick, showOnrampOption, showDirectCryptoPayOption,
|
|
250360
|
+
function RouteOptionsDrawer$1({ checkout, routes, chains, visible, onClose, onRouteClick, onCardClick, onDirectCryptoPayClick, onChangeWalletClick, showOnrampOption, showDirectCryptoPayOption,
|
|
250357
250361
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
250358
250362
|
showSwapOption,
|
|
250359
250363
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -250374,6 +250378,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
250374
250378
|
setSelectedRouteType(DirectCryptoPayOptionType.IMMUTABLE_ZKEVM);
|
|
250375
250379
|
onDirectCryptoPayClick(route);
|
|
250376
250380
|
};
|
|
250381
|
+
const handleOnChangeWalletClick = () => {
|
|
250382
|
+
onClose();
|
|
250383
|
+
onChangeWalletClick();
|
|
250384
|
+
};
|
|
250377
250385
|
reactExports.useEffect(() => {
|
|
250378
250386
|
if (!visible) {
|
|
250379
250387
|
return;
|
|
@@ -250396,7 +250404,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
250396
250404
|
return (jsx$1(Drawer, { size: "full", visible: visible, showHeaderBar: false, onCloseDrawer: onClose, children: jsxs(Drawer.Content, { rc: jsx$1(motion.div, { variants: listVariants, initial: "hidden", animate: "show" }), sx: {
|
|
250397
250405
|
pt: 'base.spacing.x3',
|
|
250398
250406
|
px: 'base.spacing.x3',
|
|
250399
|
-
}, children: [jsxs(MenuItem, { size: "xSmall", children: [jsx$1(MenuItem.FramedImage, { padded: true, emphasized: true, use: (jsx$1("img", { src: fromProviderInfo?.icon, alt: fromProviderInfo?.name })), sx: { mx: 'base.spacing.x2' } }), jsx$1(MenuItem.Label, { children: fromProviderInfo?.name }), jsx$1(MenuItem.Caption, { children: jsx$1(EllipsizedText, { text: fromAddress ?? '', sx: { c: 'inherit', fontSize: 'inherit' } }) }), jsx$1(MenuItem.StatefulButtCon, { icon: "ChevronExpand", onClick: onClose })] }), jsx$1(RouteOptions$1, { size: "small", checkout: checkout, routes: routes, chains: chains, onCardClick: onCardClick, onRouteClick: handleOnRouteClick, onDirectCryptoPayClick: handleOnDirectCryptoPayClick, showOnrampOption: showOnrampOption, showDirectCryptoPayOption: showDirectCryptoPayOption, insufficientBalance: insufficientBalance, selectedIndex: selectedRouteIndex.current, selectedRouteType: selectedRouteType, directCryptoPayRoutes: directCryptoPayRoutes })] }) }));
|
|
250407
|
+
}, children: [jsxs(MenuItem, { size: "xSmall", children: [jsx$1(MenuItem.FramedImage, { padded: true, emphasized: true, use: (jsx$1("img", { src: fromProviderInfo?.icon, alt: fromProviderInfo?.name })), sx: { mx: 'base.spacing.x2' } }), jsx$1(MenuItem.Label, { children: fromProviderInfo?.name }), jsx$1(MenuItem.Caption, { children: jsx$1(EllipsizedText, { text: fromAddress ?? '', sx: { c: 'inherit', fontSize: 'inherit' } }) }), jsx$1(MenuItem.StatefulButtCon, { icon: "ChevronExpand", onClick: onClose })] }), jsx$1(RouteOptions$1, { size: "small", checkout: checkout, routes: routes, chains: chains, onCardClick: onCardClick, onRouteClick: handleOnRouteClick, onDirectCryptoPayClick: handleOnDirectCryptoPayClick, onChangeWalletClick: handleOnChangeWalletClick, showOnrampOption: showOnrampOption, showDirectCryptoPayOption: showDirectCryptoPayOption, insufficientBalance: insufficientBalance, selectedIndex: selectedRouteIndex.current, selectedRouteType: selectedRouteType, directCryptoPayRoutes: directCryptoPayRoutes })] }) }));
|
|
250400
250408
|
}
|
|
250401
250409
|
|
|
250402
250410
|
function PurchaseSelectedRouteOption({ checkout, routeData, chains, loading = false, insufficientBalance = false, directCryptoPay = false, showOnrampOption = false, onClick, }) {
|
|
@@ -251027,7 +251035,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
251027
251035
|
address: toAddress,
|
|
251028
251036
|
}, onClick: () => setShowDeliverToWalletDrawer(true), disabled: lockedToProvider })] }), jsx$1(Button, { testId: "purchase-proceed-button", size: "large", variant: readyToProceed ? 'primary' : 'secondary', disabled: !readyToProceed, sx: { opacity: readyToProceed ? 1 : 0.5 }, onClick: handleProceedClick, children: t$b('views.PURCHASE.review.buttonText') }), jsx$1(SquidFooter, {})] })] }), jsx$1(PurchasePayWithWalletDrawer, { visible: showPayWithWalletDrawer, walletOptions: walletOptions, onClose: () => {
|
|
251029
251037
|
setShowPayWithWalletDrawer(false);
|
|
251030
|
-
}, onPayWithCard: handlePayWithCardClick, onConnect: handleWalletConnected, insufficientBalance: insufficientBalance, showOnRampOption: shouldShowOnRampOption }), jsx$1(PurchaseDeliverToWalletDrawer, { visible: showDeliverToWalletDrawer, walletOptions: walletOptions, onClose: handleDeliverToWalletClose, onConnect: () => undefined }), jsx$1(RouteOptionsDrawer$1, { checkout: checkout, routes: routes, chains: chains, showSwapOption: showSwapOption, showBridgeOption: showBridgeOption, showDirectCryptoPayOption: true, visible: showOptionsDrawer, onClose: () => setShowOptionsDrawer(false), onCardClick: handlePayWithCardClick, onRouteClick: handleRouteClick, onDirectCryptoPayClick: handleDirectCryptoPayClick, insufficientBalance: insufficientBalance, directCryptoPayRoutes: directCryptoPayRoutes })] }));
|
|
251038
|
+
}, onPayWithCard: handlePayWithCardClick, onConnect: handleWalletConnected, insufficientBalance: insufficientBalance, showOnRampOption: shouldShowOnRampOption }), jsx$1(PurchaseDeliverToWalletDrawer, { visible: showDeliverToWalletDrawer, walletOptions: walletOptions, onClose: handleDeliverToWalletClose, onConnect: () => undefined }), jsx$1(RouteOptionsDrawer$1, { checkout: checkout, routes: routes, chains: chains, showSwapOption: showSwapOption, showBridgeOption: showBridgeOption, showOnrampOption: shouldShowOnRampOption, showDirectCryptoPayOption: true, visible: showOptionsDrawer, onClose: () => setShowOptionsDrawer(false), onCardClick: handlePayWithCardClick, onRouteClick: handleRouteClick, onDirectCryptoPayClick: handleDirectCryptoPayClick, onChangeWalletClick: () => setShowPayWithWalletDrawer(true), insufficientBalance: insufficientBalance, directCryptoPayRoutes: directCryptoPayRoutes })] }));
|
|
251031
251039
|
}
|
|
251032
251040
|
|
|
251033
251041
|
/**
|
|
@@ -440161,6 +440169,23 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
440161
440169
|
formatZeroAmount,
|
|
440162
440170
|
network,
|
|
440163
440171
|
]);
|
|
440172
|
+
const openUnableToSwapDrawer = reactExports.useCallback((error) => {
|
|
440173
|
+
setShowNotEnoughImxDrawer(false);
|
|
440174
|
+
setShowUnableToSwapDrawer(true);
|
|
440175
|
+
track({
|
|
440176
|
+
userJourney: UserJourney.SWAP,
|
|
440177
|
+
screen: 'SwapCoins',
|
|
440178
|
+
control: 'UnableToSwapDrawer',
|
|
440179
|
+
controlType: 'Button',
|
|
440180
|
+
extras: {
|
|
440181
|
+
fromToken,
|
|
440182
|
+
toToken,
|
|
440183
|
+
fromAmount,
|
|
440184
|
+
toAmount,
|
|
440185
|
+
error: 'message' in error ? error.message : error,
|
|
440186
|
+
},
|
|
440187
|
+
});
|
|
440188
|
+
}, [track, fromToken, toToken, fromAmount, toAmount]);
|
|
440164
440189
|
const tokensOptionsTo = reactExports.useMemo(() => allowedTokens
|
|
440165
440190
|
.map((token) => ({
|
|
440166
440191
|
id: formatTokenOptionsId(token.symbol, token.address),
|
|
@@ -440246,8 +440271,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
440246
440271
|
// eslint-disable-next-line no-console
|
|
440247
440272
|
console.error('Error fetching quote.', error);
|
|
440248
440273
|
resetQuote();
|
|
440249
|
-
|
|
440250
|
-
setShowUnableToSwapDrawer(true);
|
|
440274
|
+
openUnableToSwapDrawer(error);
|
|
440251
440275
|
}
|
|
440252
440276
|
}
|
|
440253
440277
|
if (!silently) {
|
|
@@ -440304,8 +440328,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
440304
440328
|
catch (error) {
|
|
440305
440329
|
if (!error.cancelled) {
|
|
440306
440330
|
resetQuote();
|
|
440307
|
-
|
|
440308
|
-
setShowUnableToSwapDrawer(true);
|
|
440331
|
+
openUnableToSwapDrawer(error);
|
|
440309
440332
|
}
|
|
440310
440333
|
}
|
|
440311
440334
|
if (!silently) {
|
|
@@ -440433,6 +440456,17 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
440433
440456
|
setFromToken(selected.token);
|
|
440434
440457
|
setFromBalance(selected.formattedBalance);
|
|
440435
440458
|
setFromTokenError('');
|
|
440459
|
+
track({
|
|
440460
|
+
userJourney: UserJourney.SWAP,
|
|
440461
|
+
screen: 'SwapCoins',
|
|
440462
|
+
control: 'SelectFrom',
|
|
440463
|
+
controlType: 'Select',
|
|
440464
|
+
extras: {
|
|
440465
|
+
fromBalance: selected.formattedBalance,
|
|
440466
|
+
fromToken: selected.token,
|
|
440467
|
+
fromAmount,
|
|
440468
|
+
},
|
|
440469
|
+
});
|
|
440436
440470
|
}, [toToken]);
|
|
440437
440471
|
const onFromTextInputFocus = () => {
|
|
440438
440472
|
setDirection(SwapDirection.FROM);
|
|
@@ -440448,6 +440482,17 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
440448
440482
|
setLoading(true);
|
|
440449
440483
|
}
|
|
440450
440484
|
setFromAmount(value);
|
|
440485
|
+
track({
|
|
440486
|
+
userJourney: UserJourney.SWAP,
|
|
440487
|
+
screen: 'SwapCoins',
|
|
440488
|
+
control: 'InputFrom',
|
|
440489
|
+
controlType: 'TextInput',
|
|
440490
|
+
extras: {
|
|
440491
|
+
fromBalance,
|
|
440492
|
+
fromToken,
|
|
440493
|
+
fromAmount: value,
|
|
440494
|
+
},
|
|
440495
|
+
});
|
|
440451
440496
|
};
|
|
440452
440497
|
const textInputMaxButtonClick = () => {
|
|
440453
440498
|
if (!fromBalance)
|
|
@@ -440489,6 +440534,16 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
440489
440534
|
}
|
|
440490
440535
|
setToToken(selected);
|
|
440491
440536
|
setToTokenError('');
|
|
440537
|
+
track({
|
|
440538
|
+
userJourney: UserJourney.SWAP,
|
|
440539
|
+
screen: 'SwapCoins',
|
|
440540
|
+
control: 'SelectTo',
|
|
440541
|
+
controlType: 'Select',
|
|
440542
|
+
extras: {
|
|
440543
|
+
toToken: selected,
|
|
440544
|
+
toAmount,
|
|
440545
|
+
},
|
|
440546
|
+
});
|
|
440492
440547
|
}, [fromToken]);
|
|
440493
440548
|
const onToTextInputFocus = () => {
|
|
440494
440549
|
setDirection(SwapDirection.TO);
|
|
@@ -440505,6 +440560,16 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
440505
440560
|
setLoading(true);
|
|
440506
440561
|
}
|
|
440507
440562
|
setToAmount(value);
|
|
440563
|
+
track({
|
|
440564
|
+
userJourney: UserJourney.SWAP,
|
|
440565
|
+
screen: 'SwapCoins',
|
|
440566
|
+
control: 'InputTo',
|
|
440567
|
+
controlType: 'TextInput',
|
|
440568
|
+
extras: {
|
|
440569
|
+
toToken,
|
|
440570
|
+
toAmount: value,
|
|
440571
|
+
},
|
|
440572
|
+
});
|
|
440508
440573
|
};
|
|
440509
440574
|
const openNotEnoughImxDrawer = () => {
|
|
440510
440575
|
setShowUnableToSwapDrawer(false);
|
|
@@ -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-Bl7On7mL.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-Bw8fn1Wa.js';
|
|
12
|
+
import { B as BlockchainData } from './index-CSoPbsbu.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.78.
|
|
19210
|
+
const SDK_VERSION = '1.78.4';
|
|
19211
19211
|
const getFrameParentDomain = () => {
|
|
19212
19212
|
if (isNode()) {
|
|
19213
19213
|
return '';
|
|
@@ -24328,7 +24328,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
24328
24328
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
24329
24329
|
};
|
|
24330
24330
|
|
|
24331
|
-
const SDK_VERSION_MARKER = '1.78.
|
|
24331
|
+
const SDK_VERSION_MARKER = '1.78.4';
|
|
24332
24332
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
24333
24333
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
24334
24334
|
|
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, v as PurchaseEventType, R as RoutingOutcomeType, S as SaleEventType, w as SalePaymentTypes, x as SwapDirection, y as SwapEventType, T as TokenFilterTypes, z as TransactionOrGasType, W as WalletEventType, D as WalletFilterTypes, H as WalletProviderName, J as WalletProviderRdns, K as WidgetTheme, L as WidgetType, M as fetchRiskAssessment, Q as getMetaMaskProviderDetail, U as getPassportProviderDetail, V as isAddressSanctioned, X 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, v as PurchaseEventType, R as RoutingOutcomeType, S as SaleEventType, w as SalePaymentTypes, x as SwapDirection, y as SwapEventType, T as TokenFilterTypes, z as TransactionOrGasType, W as WalletEventType, D as WalletFilterTypes, H as WalletProviderName, J as WalletProviderRdns, K as WidgetTheme, L as WidgetType, M as fetchRiskAssessment, Q as getMetaMaskProviderDetail, U as getPassportProviderDetail, V as isAddressSanctioned, X as validateProvider } from './checkout-oPpuXY4L.js';
|
|
2
|
+
import './index-Bl7On7mL.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
import 'lru-memorise';
|
|
5
5
|
import 'global-const';
|
|
@@ -10,12 +10,12 @@ 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-Bw8fn1Wa.js';
|
|
14
14
|
import 'form-data';
|
|
15
15
|
import 'ethers-v6';
|
|
16
16
|
import 'merkletreejs';
|
|
17
17
|
import '@opensea/seaport-js';
|
|
18
|
-
import './index-
|
|
19
|
-
import './index-
|
|
18
|
+
import './index-CSoPbsbu.js';
|
|
19
|
+
import './index-Q-ssUIWm.js';
|
|
20
20
|
import '@metamask/detect-provider';
|
|
21
21
|
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-Bl7On7mL.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-Bl7On7mL.js';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'lru-memorise';
|
|
4
4
|
import 'global-const';
|
|
@@ -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.78.
|
|
161
|
+
const SDK_VERSION = '1.78.4';
|
|
162
162
|
const getFrameParentDomain = () => {
|
|
163
163
|
if (isNode()) {
|
|
164
164
|
return '';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as track, E as Environment } from './index-
|
|
1
|
+
import { t as track, E as Environment } from './index-Bl7On7mL.js';
|
|
2
2
|
import globalAxios from 'axios';
|
|
3
3
|
import FormData from 'form-data';
|
|
4
4
|
import { providers, BigNumber, constants as constants$1 } from 'ethers';
|
|
@@ -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-Q-ssUIWm.js';
|
|
2
|
+
import { E as Environment, a as addKeysToHeadersOverride } from './index-Bl7On7mL.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.78.
|
|
24
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.78.4',
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -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-Q-ssUIWm.js';
|
|
2
|
+
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-Bl7On7mL.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.78.
|
|
19
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.78.4' };
|
|
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.78.
|
|
60
|
+
sdkVersion: 'ts-immutable-sdk-1.78.4',
|
|
61
61
|
baseConfig,
|
|
62
62
|
});
|
|
63
63
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|