@imtbl/sdk 1.63.0 → 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-Dpv5muPl.js → blockchain_data-BJFFyOsZ.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-BfDY0LwB.js → AddTokensWidget-_RYa4euh.js} +31 -24
- package/dist/browser/checkout/{BridgeWidget-DreWq2OO.js → BridgeWidget-BCC7YXWj.js} +9 -8
- package/dist/browser/checkout/{CommerceWidget-BFEo_z63.js → CommerceWidget-B4QxFLZq.js} +17 -16
- package/dist/browser/checkout/CryptoFiatProvider-b0KhVg3Y.js +224 -0
- package/dist/browser/checkout/{EllipsizedText-_yDoxF8V.js → EllipsizedText-CF9lzi6c.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-CQVi4M-W.js → FeesBreakdown-BGnZxcX5.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-D0HXf455.js → HandoverContent-CESizLWk.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-BpRLbHli.js → OnRampWidget-BrGpM6Vn.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-C-ATgwRu.js → SaleWidget-iuigaIZp.js} +15 -26
- package/dist/browser/checkout/{SpendingCapHero-DLdYNa0u.js → SpendingCapHero-B3sb2Wt1.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-Dm2cQUYh.js → SwapWidget-CdXf4YYP.js} +9 -8
- package/dist/browser/checkout/{TopUpView-Nbu5J6zy.js → TopUpView-Bg-huhcb.js} +6 -239
- package/dist/browser/checkout/{WalletApproveHero-Cc6p3CkR.js → WalletApproveHero-DW6Uw6rT.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-C25SCVnz.js → WalletWidget-ChYjXfAy.js} +7 -22
- package/dist/browser/checkout/{auto-track-1Zr4QLt3.js → auto-track-CgS-wbin.js} +1 -1
- package/dist/browser/checkout/{index-Co93fBqn.js → index-BjLYItcm.js} +24 -21
- package/dist/browser/checkout/{index-c7pVchOF.js → index-BqJ9Usxu.js} +1 -1
- package/dist/browser/checkout/{index-BYrBQsd2.js → index-C4anNRY5.js} +2 -2
- package/dist/browser/checkout/{index-DzrC5Kuy.js → index-CshBDuS0.js} +1 -1
- package/dist/browser/checkout/{index-3DC3zK0u.js → index-D6TVOnc2.js} +1 -1
- package/dist/browser/checkout/{index-t2b5ztUB.js → index-DoYS_inI.js} +1 -1
- package/dist/browser/checkout/{index-Vadzr0yp.js → index-LCMExv1j.js} +1 -1
- package/dist/browser/checkout/{index-DthkZUK5.js → index-bNCjF_qE.js} +1 -1
- package/dist/browser/checkout/{index-B7urOO_H.js → index-qYOj-RwR.js} +1 -1
- package/dist/browser/checkout/{index.umd-CwLr5uH5.js → index.umd-CL6Tp5Ej.js} +1 -1
- package/dist/browser/checkout/{retry-DqIpQ6wO.js → retry-GJcGp5Sw.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-D42dwhRA.js → useInterval-BfG2xnz-.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +36 -65
- package/dist/{checkout-Dr99AQC1.js → checkout-Cs8dXzsO.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-DkJOEY8_.js → config-COmcON31.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-DWXUkxHc.js → index-27OfHl8u.js} +1 -1
- package/dist/{index-ONuhnAdl.js → index-8JzLLOmv.js} +1 -1
- package/dist/{index-Dvd-bDuR.js → index-B1oIamSp.js} +4 -4
- package/dist/{index-CK8NRXyO.js → index-BDcnlE-I.js} +1 -1
- package/dist/{index-B7ZGqefm.js → index-CPZC_4-h.js} +1 -1
- package/dist/{index-BI-lDUrN.js → index-CinJtsQi.js} +3 -3
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +77 -7
- package/dist/index.js +14 -14
- package/dist/{minting_backend-CpZGmZ-L.js → minting_backend-CkmXVZ0p.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-BGc1pQHt.js → orderbook-Bi2t8guV.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-CsmpMk_U.js → passport-B9TINukj.js} +73 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-8q1P3n_h.js → webhook-D45ZPknC.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-BNK0EB3B.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';
|
|
@@ -133869,6 +133869,9 @@
|
|
|
133869
133869
|
geoBlockError: {
|
|
133870
133870
|
buyTokenButton: "Buy tokens",
|
|
133871
133871
|
bridgeTokenButton: "Bridge tokens"
|
|
133872
|
+
},
|
|
133873
|
+
fees: {
|
|
133874
|
+
fiatPricePrefix: "≈ USD"
|
|
133872
133875
|
}
|
|
133873
133876
|
}
|
|
133874
133877
|
};
|
|
@@ -224478,10 +224481,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
224478
224481
|
return (jsx$1(Box, { sx: responsiveStyles, testId: "simpleLayout", children: jsxs(Box, { testId: testId, sx: merge$2(simpleLayoutStyle, containerSx), children: [header && (jsx$1(Box, { sx: headerStyle(floatHeader), testId: "header", children: header })), jsxs(Box, { sx: contentStyle, testId: "main", children: [heroContent && (jsx$1(Box, { sx: heroContentStyle, children: heroContent })), children && (jsx$1(Box, { sx: { ...bodyStyle$2, ...bodyStyleOverrides }, testId: "children", children: children }))] }), footer && (jsx$1(Box, { sx: footerStyle(footerBackgroundColor), testId: "footer", children: footer }))] }) }));
|
|
224479
224482
|
}
|
|
224480
224483
|
|
|
224481
|
-
function LoadingView({ loadingText, textDuration }) {
|
|
224484
|
+
function LoadingView({ loadingText, textDuration, containerSx = {} }) {
|
|
224482
224485
|
const text = Array.isArray(loadingText) ? loadingText : [loadingText];
|
|
224483
224486
|
const duration = textDuration || 2500;
|
|
224484
|
-
return (jsx$1(SimpleLayout, { children: jsx$1(LoadingOverlay, { visible: true, children: jsx$1(LoadingOverlay.Content, { children: jsx$1(LoadingOverlay.Content.LoopingText, { text: [...text], textDuration: duration }) }) }) }));
|
|
224487
|
+
return (jsx$1(SimpleLayout, { containerSx: containerSx, children: jsx$1(LoadingOverlay, { visible: true, children: jsx$1(LoadingOverlay.Content, { children: jsx$1(LoadingOverlay.Content.LoopingText, { text: [...text], textDuration: duration }) }) }) }));
|
|
224485
224488
|
}
|
|
224486
224489
|
|
|
224487
224490
|
/**
|
|
@@ -239735,6 +239738,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
239735
239738
|
}
|
|
239736
239739
|
|
|
239737
239740
|
function RouteOption({ routeData, onClick, chains, disabled = false, isFastest = false, size = 'small', rc = jsx$1("span", {}), selected = false, }) {
|
|
239741
|
+
const { t } = useTranslation();
|
|
239738
239742
|
const { fromToken } = routeData.amountData;
|
|
239739
239743
|
const { estimate } = routeData.route.route;
|
|
239740
239744
|
const chain = chains?.find((c) => c.id === fromToken.chainId);
|
|
@@ -239752,7 +239756,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
239752
239756
|
size,
|
|
239753
239757
|
onClick: disabled ? undefined : handleClick,
|
|
239754
239758
|
};
|
|
239755
|
-
return (jsxs(MenuItem, { ...menuItemProps, children: [jsx$1(MenuItem.Label, { children: fromToken.name }), chain && (jsxs(Sticker, { position: { x: 'right', y: 'bottom' }, children: [jsx$1(Sticker.FramedImage, { use: jsx$1("img", { src: chain.iconUrl, alt: chain.name }), size: "xSmall" }), jsx$1(MenuItem.FramedImage, { circularFrame: true, use: jsx$1("img", { src: fromToken.iconUrl, alt: fromToken.name }) })] })), jsx$1(MenuItem.Caption, { children: `Balance
|
|
239759
|
+
return (jsxs(MenuItem, { ...menuItemProps, children: [jsx$1(MenuItem.Label, { children: fromToken.name }), chain && (jsxs(Sticker, { position: { x: 'right', y: 'bottom' }, children: [jsx$1(Sticker.FramedImage, { use: jsx$1("img", { src: chain.iconUrl, alt: chain.name }), size: "xSmall" }), jsx$1(MenuItem.FramedImage, { circularFrame: true, use: jsx$1("img", { src: fromToken.iconUrl, alt: fromToken.name }) })] })), jsx$1(MenuItem.Caption, { children: `Balance ${t('views.ADD_TOKENS.fees.fiatPricePrefix')} $${routeBalanceUsd}` }), jsx$1(MenuItem.PriceDisplay, { price: fromAmount, children: jsx$1(MenuItem.PriceDisplay.Caption, { children: `${t('views.ADD_TOKENS.fees.fiatPricePrefix')} $${fromAmountUsd}` }) }), jsxs(MenuItem.BottomSlot, { children: [jsx$1(MenuItem.BottomSlot.Divider, {}), jsxs(Stack, { rc: jsx$1("span", {}), direction: "row", justifyContent: "space-between", sx: {
|
|
239756
239760
|
w: '100%',
|
|
239757
239761
|
}, children: [jsxs(Body, { sx: {
|
|
239758
239762
|
...hFlex,
|
|
@@ -239762,7 +239766,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
239762
239766
|
}, size: "xSmall", children: [jsx$1(Icon, { icon: "Countdown", sx: {
|
|
239763
239767
|
w: 'base.icon.size.200',
|
|
239764
239768
|
fill: 'base.color.text.body.secondary',
|
|
239765
|
-
}, variant: "bold" }), estimatedDurationFormatted] }), jsxs(Body, { size: "xSmall", sx: { ...hFlex, ...centerFlexChildren }, children: [isFastest && (jsx$1(Badge, { badgeContent: "Fastest", variant: "emphasis", sx: { mr: 'base.spacing.x2' } })), `Fee
|
|
239769
|
+
}, variant: "bold" }), estimatedDurationFormatted] }), jsxs(Body, { size: "xSmall", sx: { ...hFlex, ...centerFlexChildren }, children: [isFastest && (jsx$1(Badge, { badgeContent: "Fastest", variant: "emphasis", sx: { mr: 'base.spacing.x2' } })), `Fee ${t('views.ADD_TOKENS.fees.fiatPricePrefix')} $${getFormattedAmounts(totalFeesUsd)}`] })] })] })] }));
|
|
239766
239770
|
}
|
|
239767
239771
|
|
|
239768
239772
|
const defaultFiatOptions = [
|
|
@@ -240507,6 +240511,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240507
240511
|
const useRoutes = () => {
|
|
240508
240512
|
const latestRequestIdRef = reactExports.useRef(0);
|
|
240509
240513
|
const { addTokensDispatch } = reactExports.useContext(AddTokensContext);
|
|
240514
|
+
const { providersState: { toProvider, }, } = useProvidersContext();
|
|
240510
240515
|
const { track } = useAnalytics();
|
|
240511
240516
|
const setRoutes = (routes) => {
|
|
240512
240517
|
addTokensDispatch({
|
|
@@ -240577,6 +240582,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240577
240582
|
toAddress,
|
|
240578
240583
|
quoteOnly,
|
|
240579
240584
|
enableBoost: true,
|
|
240585
|
+
receiveGasOnDestination: !isPassportProvider(toProvider),
|
|
240580
240586
|
}), {
|
|
240581
240587
|
retryIntervalMs: 1000,
|
|
240582
240588
|
retries: 5,
|
|
@@ -240700,6 +240706,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240700
240706
|
}, rc: jsx$1("span", { ...(onClick ? { onClick } : {}) }), children: children }));
|
|
240701
240707
|
}
|
|
240702
240708
|
function SelectedRouteOption({ checkout, routeData, chains, loading = false, withSelectedWallet = false, withSelectedToken = false, withSelectedAmount = false, insufficientBalance = false, showOnrampOption = false, onClick, }) {
|
|
240709
|
+
const { t } = useTranslation();
|
|
240703
240710
|
const { fromToken } = routeData?.amountData ?? {};
|
|
240704
240711
|
const chain = chains?.find((c) => c.id === fromToken?.chainId);
|
|
240705
240712
|
const { routeBalanceUsd, fromAmount, fromAmountUsd } = reactExports.useMemo(() => getRouteAndTokenBalances(routeData), [routeData]);
|
|
@@ -240736,7 +240743,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240736
240743
|
}
|
|
240737
240744
|
return (jsxs(SelectedRouteOptionContainer, { onClick: handleOnClick, selected: withSelectedWallet, children: [jsx$1(MenuItem.FramedIcon, { icon: icon, variant: "bold", circularFrame: true, emphasized: false }), jsx$1(MenuItem.Caption, { children: copy })] }));
|
|
240738
240745
|
}
|
|
240739
|
-
return (jsxs(SelectedRouteOptionContainer, { onClick: handleOnClick, selected: withSelectedWallet, children: [chain && (jsxs(Sticker, { position: { x: 'right', y: 'bottom' }, children: [jsx$1(Sticker.FramedImage, { use: jsx$1("img", { src: chain.iconUrl, alt: chain.name }), size: "xSmall", sx: { bottom: 'base.spacing.x2', right: 'base.spacing.x2' } }), jsx$1(MenuItem.FramedImage, { circularFrame: true, padded: true, use: jsx$1("img", { src: fromToken?.iconUrl, alt: fromToken?.name }) })] })), jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { w: '100%' }, children: [jsxs(Stack, { gap: "0px", children: [jsx$1(MenuItem.Label, { children: fromToken?.name }), jsx$1(MenuItem.Caption, { children: `Balance
|
|
240746
|
+
return (jsxs(SelectedRouteOptionContainer, { onClick: handleOnClick, selected: withSelectedWallet, children: [chain && (jsxs(Sticker, { position: { x: 'right', y: 'bottom' }, children: [jsx$1(Sticker.FramedImage, { use: jsx$1("img", { src: chain.iconUrl, alt: chain.name }), size: "xSmall", sx: { bottom: 'base.spacing.x2', right: 'base.spacing.x2' } }), jsx$1(MenuItem.FramedImage, { circularFrame: true, padded: true, use: jsx$1("img", { src: fromToken?.iconUrl, alt: fromToken?.name }) })] })), jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { w: '100%' }, children: [jsxs(Stack, { gap: "0px", children: [jsx$1(MenuItem.Label, { children: fromToken?.name }), jsx$1(MenuItem.Caption, { children: `Balance ${t('views.ADD_TOKENS.fees.fiatPricePrefix')} $${routeBalanceUsd}` })] }), jsx$1(MenuItem.PriceDisplay, { price: fromAmount, children: jsx$1(MenuItem.PriceDisplay.Caption, { children: `${t('views.ADD_TOKENS.fees.fiatPricePrefix')} $${fromAmountUsd}` }) })] })] }));
|
|
240740
240747
|
}
|
|
240741
240748
|
|
|
240742
240749
|
const disabledStyles = {
|
|
@@ -240953,7 +240960,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
240953
240960
|
onPayWithCard?.();
|
|
240954
240961
|
}, children: [jsx$1(MenuItem.FramedIcon, { icon: "BankCard", variant: "bold", emphasized: false }), jsx$1(MenuItem.Label, { children: "Pay with Card" })] }));
|
|
240955
240962
|
}, [onClose, onPayWithCard]);
|
|
240956
|
-
return (jsx$1(ConnectWalletDrawer, { heading: insufficientBalance ? 'Choose another option' : '
|
|
240963
|
+
return (jsx$1(ConnectWalletDrawer, { heading: insufficientBalance ? 'Choose another option' : 'Send from', visible: visible, onClose: onClose, providerType: "from", walletOptions: walletOptions, disabledOptions: disabledOptions, bottomSlot: payWithCardItem, onConnect: handleOnConnect, onError: handleOnError }));
|
|
240957
240964
|
}
|
|
240958
240965
|
|
|
240959
240966
|
function convertToUsd(tokens, amount, token) {
|
|
@@ -244028,6 +244035,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
244028
244035
|
const { addTokensState: { squid, chains, balances, tokens, selectedAmount, routes, selectedRouteData, selectedToken, isSwapAvailable, }, addTokensDispatch, } = reactExports.useContext(AddTokensContext);
|
|
244029
244036
|
const { viewDispatch } = reactExports.useContext(ViewContext);
|
|
244030
244037
|
const { track, page } = useAnalytics();
|
|
244038
|
+
const { t } = useTranslation();
|
|
244031
244039
|
const { eventTargetState: { eventTarget }, } = reactExports.useContext(EventTargetContext);
|
|
244032
244040
|
const [showOptionsDrawer, setShowOptionsDrawer] = reactExports.useState(false);
|
|
244033
244041
|
const [showPayWithDrawer, setShowPayWithDrawer] = reactExports.useState(false);
|
|
@@ -244188,9 +244196,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
244188
244196
|
});
|
|
244189
244197
|
setAllowedTokens(updatedTokens);
|
|
244190
244198
|
if (toTokenAddress) {
|
|
244191
|
-
const
|
|
244192
|
-
if (
|
|
244193
|
-
setSelectedToken(
|
|
244199
|
+
const preselectedToken = updatedTokens.find((token) => token.address?.toLowerCase() === toTokenAddress.toLowerCase());
|
|
244200
|
+
if (preselectedToken) {
|
|
244201
|
+
setSelectedToken(preselectedToken);
|
|
244194
244202
|
}
|
|
244195
244203
|
}
|
|
244196
244204
|
addTokensDispatch({
|
|
@@ -244289,8 +244297,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
244289
244297
|
};
|
|
244290
244298
|
const shouldShowOnRampOption = reactExports.useMemo(() => {
|
|
244291
244299
|
if (showOnrampOption && selectedToken) {
|
|
244292
|
-
const
|
|
244293
|
-
return !!
|
|
244300
|
+
const isAllowedToken = onRampAllowedTokens.find((token) => token.address?.toLowerCase() === selectedToken.address?.toLowerCase());
|
|
244301
|
+
return !!isAllowedToken;
|
|
244294
244302
|
}
|
|
244295
244303
|
return false;
|
|
244296
244304
|
}, [selectedToken, onRampAllowedTokens, showOnrampOption]);
|
|
@@ -244342,14 +244350,15 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
244342
244350
|
boxShadow: ({ base }) => `0 0 0 ${base.border.size[200]} ${base.color.text.body.primary}`,
|
|
244343
244351
|
},
|
|
244344
244352
|
} })),
|
|
244345
|
-
}), children: tokenChoiceOptions }), showInitialEmptyState ? (jsx$1(Body, { children: "Add Token" })) : (jsxs(HeroFormControl, { validationStatus: inputValue === '0' ? 'error' : 'success', children: [jsxs(HeroFormControl.Label, { children: ["Add", ' ', selectedToken.symbol] }), jsx$1(HeroTextInput, { testId: "add-tokens-amount-input", type: "number", value: inputValue, onChange: (value) => handleOnAmountInputChange(value), placeholder: "0", maxTextSize: "xLarge" }),
|
|
244353
|
+
}), children: tokenChoiceOptions }), showInitialEmptyState ? (jsx$1(Body, { children: "Add Token" })) : (jsxs(HeroFormControl, { validationStatus: inputValue === '0' ? 'error' : 'success', children: [jsxs(HeroFormControl.Label, { children: ["Add", ' ', selectedToken.symbol] }), jsx$1(HeroTextInput, { testId: "add-tokens-amount-input", type: "number", value: inputValue, onChange: (value) => handleOnAmountInputChange(value), placeholder: "0", maxTextSize: "xLarge" }), jsx$1(HeroFormControl.Caption, { children: `${t('views.ADD_TOKENS.fees.fiatPricePrefix')}
|
|
244354
|
+
$${getFormattedNumberWithDecimalPlaces(selectedAmountUsd)}` })] }))] }), jsxs(Stack, { testId: "bottomSection", sx: {
|
|
244346
244355
|
alignSelf: 'stretch',
|
|
244347
244356
|
p: 'base.spacing.x3',
|
|
244348
244357
|
pb: 'base.spacing.x5',
|
|
244349
244358
|
bg: 'base.color.neutral.800',
|
|
244350
244359
|
bradtl: 'base.borderRadius.x8',
|
|
244351
244360
|
bradtr: 'base.borderRadius.x8',
|
|
244352
|
-
}, gap: "base.spacing.x4", children: [jsxs(Stack, { gap: "0px", children: [jsxs(SelectedWallet, { label: "
|
|
244361
|
+
}, gap: "base.spacing.x4", children: [jsxs(Stack, { gap: "0px", children: [jsxs(SelectedWallet, { label: "Send from", providerInfo: {
|
|
244353
244362
|
...fromProviderInfo,
|
|
244354
244363
|
address: fromAddress,
|
|
244355
244364
|
}, onClick: (event) => {
|
|
@@ -411633,10 +411642,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411633
411642
|
}
|
|
411634
411643
|
|
|
411635
411644
|
function RouteFees({ visible, onClose, routeData, totalAmount, totalFiatAmount, }) {
|
|
411645
|
+
const { t } = useTranslation();
|
|
411636
411646
|
const feeCosts = reactExports.useMemo(() => routeData?.route.estimate.feeCosts.map((fee) => ({
|
|
411637
411647
|
label: fee.name,
|
|
411638
411648
|
amount: getFormattedNumber(fee.amount, fee.token.decimals),
|
|
411639
|
-
fiatAmount:
|
|
411649
|
+
fiatAmount: `${t('views.ADD_TOKENS.fees.fiatPricePrefix')}${getFormattedAmounts(fee.amountUsd)}`,
|
|
411640
411650
|
token: {
|
|
411641
411651
|
name: fee.token.name,
|
|
411642
411652
|
symbol: fee.token.symbol,
|
|
@@ -411649,7 +411659,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411649
411659
|
const gasCosts = reactExports.useMemo(() => routeData?.route.estimate.gasCosts.map((fee) => ({
|
|
411650
411660
|
label: 'Gas (transaction)',
|
|
411651
411661
|
amount: getFormattedNumber(fee.amount, fee.token.decimals),
|
|
411652
|
-
fiatAmount:
|
|
411662
|
+
fiatAmount: `${t('views.ADD_TOKENS.fees.fiatPricePrefix')}${getFormattedAmounts(fee.amountUsd)}`,
|
|
411653
411663
|
token: {
|
|
411654
411664
|
name: fee.token.name,
|
|
411655
411665
|
symbol: fee.token.symbol,
|
|
@@ -411768,7 +411778,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411768
411778
|
alignItems: 'center',
|
|
411769
411779
|
c: 'base.color.text.body.secondary',
|
|
411770
411780
|
cursor: 'pointer',
|
|
411771
|
-
}, children: ["Included fees", `
|
|
411781
|
+
}, children: ["Included fees", ` ${t$b('views.ADD_TOKENS.fees.fiatPricePrefix')} $${getFormattedAmounts(totalFeesUsd)}`, jsx$1(Icon, { icon: "ChevronExpand", sx: { ml: 'base.spacing.x2', w: 'base.icon.size.200' } })] }));
|
|
411772
411782
|
}
|
|
411773
411783
|
return (jsx$1(Body, { size: "small", sx: {
|
|
411774
411784
|
...hFlex,
|
|
@@ -411848,7 +411858,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411848
411858
|
const formattedDuration = route
|
|
411849
411859
|
? getDurationFormatted(route.route.estimate.estimatedRouteDuration)
|
|
411850
411860
|
: '';
|
|
411851
|
-
return (jsxs(SimpleLayout, { header: (jsxs(Stack, { rc: jsx$1("header", {}), direction: "row", sx: {
|
|
411861
|
+
return (jsxs(SimpleLayout, { containerSx: { bg: 'transparent' }, header: (jsxs(Stack, { rc: jsx$1("header", {}), direction: "row", sx: {
|
|
411852
411862
|
pt: 'base.spacing.x4',
|
|
411853
411863
|
px: 'base.spacing.x5',
|
|
411854
411864
|
h: 'base.spacing.x18',
|
|
@@ -411865,7 +411875,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411865
411875
|
fontSize: 'inherit',
|
|
411866
411876
|
lineHeight: 'inherit',
|
|
411867
411877
|
c: 'inherit',
|
|
411868
|
-
} })] })] }), jsx$1(PriceDisplay, { price: getFormattedNumber(route.route.estimate.fromAmount, route.route.estimate.fromToken.decimals), sx: { flexShrink: 0, alignSelf: 'flex-start' }, children: jsx$1(PriceDisplay.Caption, { size: "small", children:
|
|
411878
|
+
} })] })] }), jsx$1(PriceDisplay, { price: getFormattedNumber(route.route.estimate.fromAmount, route.route.estimate.fromToken.decimals), sx: { flexShrink: 0, alignSelf: 'flex-start' }, children: jsx$1(PriceDisplay.Caption, { size: "small", children: `${t$b('views.ADD_TOKENS.fees.fiatPricePrefix')} $${route?.route.estimate.fromAmountUSD ?? ''}` }) })] }), jsx$1(Stack, { sx: {
|
|
411869
411879
|
pos: 'relative',
|
|
411870
411880
|
w: 'base.spacing.x16',
|
|
411871
411881
|
ml: 'base.spacing.x7',
|
|
@@ -411893,7 +411903,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411893
411903
|
fontSize: 'inherit',
|
|
411894
411904
|
lineHeight: 'inherit',
|
|
411895
411905
|
c: 'inherit',
|
|
411896
|
-
} })] })] }), jsx$1(PriceDisplay, { price: getFormattedNumber(route?.route.estimate.toAmount, route?.route.estimate.toToken.decimals), sx: { flexShrink: 0, alignSelf: 'flex-start' }, children: jsx$1(PriceDisplay.Caption, { size: "small", children:
|
|
411906
|
+
} })] })] }), jsx$1(PriceDisplay, { price: getFormattedNumber(route?.route.estimate.toAmount, route?.route.estimate.toToken.decimals), sx: { flexShrink: 0, alignSelf: 'flex-start' }, children: jsx$1(PriceDisplay.Caption, { size: "small", children: `${t$b('views.ADD_TOKENS.fees.fiatPricePrefix')} $${route?.route.estimate.toAmountUSD ?? ''}` }) })] }), jsx$1(Stack, { sx: {
|
|
411897
411907
|
pos: 'relative',
|
|
411898
411908
|
w: 'base.spacing.x16',
|
|
411899
411909
|
ml: 'base.spacing.x7',
|
|
@@ -411903,7 +411913,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
411903
411913
|
top: '-8px',
|
|
411904
411914
|
h: 'base.spacing.x5',
|
|
411905
411915
|
},
|
|
411906
|
-
} }), jsxs(Stack, { direction: "row", gap: "base.spacing.x6", sx: { py: 'base.spacing.x5', px: 'base.spacing.x7' }, alignItems: "center", children: [jsx$1(Stack, { direction: "row", sx: { w: 'base.spacing.x12' }, justifyContent: "center", children: jsx$1(FramedIcon, { icon: "Countdown", variant: "bold", size: "medium", circularFrame: true }) }), jsx$1(Body, { size: "small", sx: { flex: 1, c: 'base.color.text.body.secondary' }, children: formattedDuration }), routeFees] })] }), jsx$1(Button, { size: "large", onClick: handleTransaction, disabled: proceedDisabled, sx: { mx: 'base.spacing.x3' }, children: proceedDisabled ? 'Processing' : 'Proceed' }), jsx$1(SquidFooter, {})] })), !route && !showAddressMissmatchDrawer && jsx$1(LoadingView, { loadingText: "Securing quote" })] }), jsx$1(RouteFees, { routeData: route, visible: showFeeBreakdown, onClose: () => setShowFeeBreakdown(false), totalAmount: totalFees, totalFiatAmount: totalFeesUsd }), jsx$1(AddressMissmatchDrawer, { visible: showAddressMissmatchDrawer, onClick: () => {
|
|
411916
|
+
} }), jsxs(Stack, { direction: "row", gap: "base.spacing.x6", sx: { py: 'base.spacing.x5', px: 'base.spacing.x7' }, alignItems: "center", children: [jsx$1(Stack, { direction: "row", sx: { w: 'base.spacing.x12' }, justifyContent: "center", children: jsx$1(FramedIcon, { icon: "Countdown", variant: "bold", size: "medium", circularFrame: true }) }), jsx$1(Body, { size: "small", sx: { flex: 1, c: 'base.color.text.body.secondary' }, children: formattedDuration }), routeFees] })] }), jsx$1(Button, { size: "large", onClick: handleTransaction, disabled: proceedDisabled, sx: { mx: 'base.spacing.x3' }, children: proceedDisabled ? 'Processing' : 'Proceed' }), jsx$1(SquidFooter, {})] })), !route && !showAddressMissmatchDrawer && (jsx$1(LoadingView, { loadingText: "Securing quote", containerSx: { bg: 'transparent' } }))] }), jsx$1(RouteFees, { routeData: route, visible: showFeeBreakdown, onClose: () => setShowFeeBreakdown(false), totalAmount: totalFees, totalFiatAmount: totalFeesUsd }), jsx$1(AddressMissmatchDrawer, { visible: showAddressMissmatchDrawer, onClick: () => {
|
|
411907
411917
|
setShowAddressMissmatchDrawer(false);
|
|
411908
411918
|
viewDispatch({
|
|
411909
411919
|
payload: {
|
|
@@ -413360,7 +413370,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
413360
413370
|
function TopUpView({ widgetEvent, checkout,
|
|
413361
413371
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
413362
413372
|
provider, // Keep this for future use
|
|
413363
|
-
showOnrampOption, showSwapOption, showBridgeOption,
|
|
413373
|
+
showOnrampOption, showSwapOption, showBridgeOption, tokenAddress, amount, analytics, onCloseButtonClick, onBackButtonClick, heading, subheading, }) {
|
|
413364
413374
|
const { t } = useTranslation();
|
|
413365
413375
|
const { userJourney } = analytics;
|
|
413366
413376
|
const { viewDispatch } = reactExports.useContext(ViewContext);
|
|
@@ -413387,15 +413397,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
413387
413397
|
useMount(() => {
|
|
413388
413398
|
page({ userJourney, screen: 'TopUp' });
|
|
413389
413399
|
});
|
|
413390
|
-
// Go to add tokens widget if available
|
|
413391
|
-
useMount(() => {
|
|
413392
|
-
if (showAddTokensOption) {
|
|
413393
|
-
orchestrationEvents$1.sendRequestAddTokensEvent(eventTarget, widgetEvent, {
|
|
413394
|
-
toTokenAddress: tokenAddress ?? '',
|
|
413395
|
-
toAmount: amount ?? '',
|
|
413396
|
-
});
|
|
413397
|
-
}
|
|
413398
|
-
}, () => showAddTokensOption !== undefined, [showAddTokensOption]);
|
|
413399
413400
|
reactExports.useEffect(() => {
|
|
413400
413401
|
if (!cryptoFiatDispatch)
|
|
413401
413402
|
return;
|
|
@@ -413576,11 +413577,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
413576
413577
|
isAvailable: true,
|
|
413577
413578
|
isEnabled: showBridgeOption,
|
|
413578
413579
|
},
|
|
413579
|
-
], [
|
|
413580
|
-
// if swap is available, don't show top up view
|
|
413581
|
-
// await for redirect to add tokens widget
|
|
413582
|
-
if (showAddTokensOption)
|
|
413583
|
-
return null;
|
|
413580
|
+
], [showBridgeOption, showOnrampOption, showSwapOption]);
|
|
413584
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
|
|
413585
413582
|
.sort((a, b) => Number(b.isAvailable) - Number(a.isAvailable))
|
|
413586
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
|
|
@@ -419450,7 +419447,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
419450
419447
|
isBridgeEnabled: action.payload.supportedTopUps.isBridgeEnabled ?? true,
|
|
419451
419448
|
isAddTokensEnabled: action.payload.supportedTopUps.isAddTokensEnabled ?? true,
|
|
419452
419449
|
isSwapAvailable: action.payload.supportedTopUps.isSwapAvailable ?? true,
|
|
419453
|
-
isAddTokensAvailable: action.payload.supportedTopUps.isAddTokensAvailable ?? true,
|
|
419454
419450
|
},
|
|
419455
419451
|
};
|
|
419456
419452
|
default:
|
|
@@ -419895,12 +419891,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
419895
419891
|
control: 'AddCoins',
|
|
419896
419892
|
controlType: 'Button',
|
|
419897
419893
|
});
|
|
419898
|
-
|
|
419899
|
-
payload: {
|
|
419900
|
-
type: ViewActions.UPDATE_VIEW,
|
|
419901
|
-
view: { type: SharedViews.TOP_UP_VIEW },
|
|
419902
|
-
},
|
|
419903
|
-
});
|
|
419894
|
+
orchestrationEvents$1.sendRequestAddTokensEvent(eventTarget, IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT, {});
|
|
419904
419895
|
};
|
|
419905
419896
|
const handleBridgeToL2OnClick = (address) => {
|
|
419906
419897
|
orchestrationEvents$1.sendRequestBridgeEvent(eventTarget, IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT, {
|
|
@@ -420155,7 +420146,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
420155
420146
|
const [walletState, walletDispatch] = reactExports.useReducer(walletReducer, { ...initialWalletState, walletConfig: { showDisconnectButton, showNetworkMenu } });
|
|
420156
420147
|
const walletReducerValues = reactExports.useMemo(() => ({ walletState, walletDispatch }), [walletState, walletDispatch]);
|
|
420157
420148
|
const viewReducerValues = reactExports.useMemo(() => ({ viewState, viewDispatch }), [viewState, viewDispatch]);
|
|
420158
|
-
const { supportedTopUps } = walletState;
|
|
420159
420149
|
const { balancesLoading, refreshBalances } = useBalance({
|
|
420160
420150
|
checkout,
|
|
420161
420151
|
provider,
|
|
@@ -420191,12 +420181,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
420191
420181
|
checkSwapAvailable = await checkout.isSwapAvailable();
|
|
420192
420182
|
}
|
|
420193
420183
|
catch { /* */ }
|
|
420194
|
-
let checkAddTokensEnabled = isAddTokensEnabled;
|
|
420195
|
-
try {
|
|
420196
|
-
const addTokensConfig = await checkout.config.remote.getConfig('addTokens');
|
|
420197
|
-
checkAddTokensEnabled = addTokensConfig.enabled && isAddTokensEnabled;
|
|
420198
|
-
}
|
|
420199
|
-
catch { /* */ }
|
|
420200
420184
|
walletDispatch({
|
|
420201
420185
|
payload: {
|
|
420202
420186
|
type: WalletActions.SET_SUPPORTED_TOP_UPS,
|
|
@@ -420205,8 +420189,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
420205
420189
|
isSwapEnabled,
|
|
420206
420190
|
isOnRampEnabled,
|
|
420207
420191
|
isSwapAvailable: checkSwapAvailable,
|
|
420208
|
-
isAddTokensEnabled
|
|
420209
|
-
isAddTokensAvailable: checkSwapAvailable && checkAddTokensEnabled,
|
|
420192
|
+
isAddTokensEnabled,
|
|
420210
420193
|
},
|
|
420211
420194
|
},
|
|
420212
420195
|
});
|
|
@@ -420268,7 +420251,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
420268
420251
|
await initialiseWallet();
|
|
420269
420252
|
};
|
|
420270
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
|
|
420271
|
-
&& (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) }))] }) }) }));
|
|
420272
420255
|
}
|
|
420273
420256
|
|
|
420274
420257
|
var WalletWidget$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -422963,18 +422946,6 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
422963
422946
|
const [viewState, viewDispatch] = reactExports.useReducer(viewReducer, initialViewState);
|
|
422964
422947
|
const viewReducerValues = reactExports.useMemo(() => ({ viewState, viewDispatch }), [viewState, viewDispatch]);
|
|
422965
422948
|
const loadingText = viewState.view.data?.loadingText || t('views.LOADING_VIEW.text');
|
|
422966
|
-
const isAddTokensAvailable = useAsyncMemo(async () => {
|
|
422967
|
-
if (!checkout)
|
|
422968
|
-
return false;
|
|
422969
|
-
try {
|
|
422970
|
-
const isSwapAvailable = await checkout.isSwapAvailable();
|
|
422971
|
-
const addTokensConfig = (await checkout.config.remote.getConfig('addTokens'));
|
|
422972
|
-
return addTokensConfig.enabled && isSwapAvailable;
|
|
422973
|
-
}
|
|
422974
|
-
catch (error) {
|
|
422975
|
-
return false;
|
|
422976
|
-
}
|
|
422977
|
-
}, [checkout]);
|
|
422978
422949
|
reactExports.useEffect(() => {
|
|
422979
422950
|
if (!checkout || !provider)
|
|
422980
422951
|
return;
|
|
@@ -423017,7 +422988,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
423017
422988
|
customOrderData,
|
|
423018
422989
|
waitFulfillmentSettlements,
|
|
423019
422990
|
hideExcludedPaymentTypes,
|
|
423020
|
-
}, 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: () => {
|
|
423021
422992
|
viewDispatch({
|
|
423022
422993
|
payload: {
|
|
423023
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
|