@imtbl/sdk 1.48.3-alpha → 1.48.3-alpha.2
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-CrEFPCEu.js → blockchain_data-DcQ536Kq.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddFundsWidget-Co_ju-ke.js → AddFundsWidget-BTsiDIPA.js} +2 -2
- package/dist/browser/checkout/{BridgeWidget-DJBbVq0i.js → BridgeWidget-tKT3gZvJ.js} +69 -6
- package/dist/browser/checkout/{CheckoutWidget-DbHiULy1.js → CheckoutWidget-rVWH25-L.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-DzXTolCG.js → OnRampWidget-BEzfDDl2.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-D-AlpzeP.js → SaleWidget-BvR2hJpl.js} +17 -14
- package/dist/browser/checkout/{SpendingCapHero-DFOYfIWo.js → SpendingCapHero-CWT_xLtF.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-BrWzP83L.js → SwapWidget-CWpvzIdH.js} +6 -6
- package/dist/browser/checkout/{TextInputForm-APCsUHD4.js → TextInputForm-_csNElIy.js} +1 -1
- package/dist/browser/checkout/{TopUpView-BrWJlMcJ.js → TopUpView-DB5P3kx9.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-CbnY1QWY.js → WalletWidget-BarmnrNC.js} +3 -3
- package/dist/browser/checkout/{auto-track-Ck6TGRRb.js → auto-track-CETlw_Yf.js} +1 -1
- package/dist/browser/checkout/{balance-C6ghC9kD.js → balance-D2H9EYdn.js} +2 -2
- package/dist/browser/checkout/{index-Cmnc6N4J.js → index-BDzerMOU.js} +1 -1
- package/dist/browser/checkout/{index-Dd4yZoTI.js → index-BUN84kSM.js} +2 -2
- package/dist/browser/checkout/{index-BuLxhSrr.js → index-BisPAtYn.js} +1 -1
- package/dist/browser/checkout/{index-e9-pAQBe.js → index-CTDHP6cz.js} +1 -1
- package/dist/browser/checkout/{index-DL_l5Q5C.js → index-DIREbbx7.js} +94 -22
- package/dist/browser/checkout/{index-ROI-iNgW.js → index-Do1i-d1V.js} +1 -1
- package/dist/browser/checkout/{index-DW7H58bj.js → index-DrJPskUz.js} +1 -1
- package/dist/browser/checkout/{index-BzSg_aJy.js → index-OhHSzMLr.js} +1 -1
- package/dist/browser/checkout/{index.umd-BYwG1L7K.js → index.umd-CGU3J_cV.js} +1 -1
- package/dist/browser/checkout/{retry-KKUeT-Ok.js → retry-Bw5cX4ml.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +148 -10
- package/dist/{checkout-DWrcOSsc.js → checkout-BoDeeomL.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-CPbQ3gyk.js → config-9eb21Kvn.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-BohycIJl.js → index-BttRQL-q.js} +4 -4
- package/dist/{index-ByY1QCNG.js → index-Cd2-wh_U.js} +3 -3
- package/dist/{index-TnVl34o-.js → index-D46S1fXy.js} +1 -1
- package/dist/{index-DxYwmKa7.js → index-DZo92OXX.js} +1 -1
- package/dist/{index-gHH2R9NY.js → index-RxuRdoNW.js} +1 -1
- package/dist/{index-BB3S673q.js → index-fuhI5io_.js} +1 -1
- 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-C8jRsO6Z.js → minting_backend-FShe7MoD.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-vB18lNdU.js → orderbook-B8iE6-PF.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-bn2ttBkP.js → passport-B9UFP-3c.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-BcGhkbgW.js → webhook-DCFeI4sY.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-B936Pxru.js → x-CwPF_LGF.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export { dj as WidgetsFactory } from './index-
|
|
1
|
+
export { dj as WidgetsFactory } from './index-DIREbbx7.js';
|
|
@@ -176335,8 +176335,9 @@
|
|
|
176335
176335
|
fee: "Swap fee ~ {{symbol}} {{amount}}"
|
|
176336
176336
|
},
|
|
176337
176337
|
orderReview: {
|
|
176338
|
-
heading: "
|
|
176338
|
+
heading: "Order summary",
|
|
176339
176339
|
"continue": "Proceed",
|
|
176340
|
+
continueFreeMint: "Proceed for free",
|
|
176340
176341
|
payWith: {
|
|
176341
176342
|
SWAP: "Swap & Pay with {{symbol}}",
|
|
176342
176343
|
SUFFICIENT: "Pay with {{symbol}}"
|
|
@@ -176824,6 +176825,23 @@
|
|
|
176824
176825
|
body: "Make sure pop ups are enabled and follow the prompts in your wallet to connect",
|
|
176825
176826
|
actionButtonText: "Try again"
|
|
176826
176827
|
}
|
|
176828
|
+
},
|
|
176829
|
+
withdrawalQueue: {
|
|
176830
|
+
exceedsThreshold: {
|
|
176831
|
+
heading: "This withdraw will trigger a 24h delay. Withdraw less than {{threshold}} to avoid this.",
|
|
176832
|
+
body: "This withdrawal is over a security threshold that will trigger a 24hr delay. Withdraw an amount lower than {{threshold}} to have it actioned in ~20 minutes. Alternatively you can proceed and receive funds in 24hrs. ",
|
|
176833
|
+
buttons: {
|
|
176834
|
+
cancel: "Lower amount",
|
|
176835
|
+
proceed: "I understand"
|
|
176836
|
+
}
|
|
176837
|
+
},
|
|
176838
|
+
queueActivated: {
|
|
176839
|
+
heading: "This withdrawal will take 24hrs.",
|
|
176840
|
+
body: "We’re experiencing higher than normal congestion and wanted to let you know before you proceed.",
|
|
176841
|
+
buttons: {
|
|
176842
|
+
proceed: "I understand"
|
|
176843
|
+
}
|
|
176844
|
+
}
|
|
176827
176845
|
}
|
|
176828
176846
|
};
|
|
176829
176847
|
var enTranslations = {
|
|
@@ -177147,8 +177165,9 @@
|
|
|
177147
177165
|
fee: "交換手数料 ~ {{symbol}} {{amount}}"
|
|
177148
177166
|
},
|
|
177149
177167
|
orderReview: {
|
|
177150
|
-
heading: "
|
|
177168
|
+
heading: "注文の概要",
|
|
177151
177169
|
"continue": "続行",
|
|
177170
|
+
continueFreeMint: "無料で続行",
|
|
177152
177171
|
payWith: {
|
|
177153
177172
|
SWAP: "{{symbol}}でスワップ&支払い",
|
|
177154
177173
|
SUFFICIENT: "{{symbol}}で支払う"
|
|
@@ -177596,6 +177615,23 @@
|
|
|
177596
177615
|
body: "ポップアップが有効になっていることを確認し、ウォレットのプロンプトに従って接続してください。",
|
|
177597
177616
|
actionButtonText: "もう一度試す"
|
|
177598
177617
|
}
|
|
177618
|
+
},
|
|
177619
|
+
withdrawalQueue: {
|
|
177620
|
+
exceedsThreshold: {
|
|
177621
|
+
heading: "この引き出しには 24 時間の遅延が発生します。これを回避するには、{{threshold}} 未満の引き出しを行ってください。",
|
|
177622
|
+
body: "この出金はセキュリティしきい値を超えているため、24 時間の遅延が発生します。{{threshold}} 未満の金額を出金すると、約 20 分で処理されます。または、続行して 24 時間以内に資金を受け取ることもできます。",
|
|
177623
|
+
buttons: {
|
|
177624
|
+
cancel: "低い金額",
|
|
177625
|
+
proceed: "わかりました"
|
|
177626
|
+
}
|
|
177627
|
+
},
|
|
177628
|
+
queueActivated: {
|
|
177629
|
+
heading: "この引き出しには24時間かかります。",
|
|
177630
|
+
body: "通常よりも混雑がひどいため、続行する前にお知らせします。",
|
|
177631
|
+
buttons: {
|
|
177632
|
+
proceed: "わかりました"
|
|
177633
|
+
}
|
|
177634
|
+
}
|
|
177599
177635
|
}
|
|
177600
177636
|
};
|
|
177601
177637
|
var jaTranslations = {
|
|
@@ -177916,8 +177952,9 @@
|
|
|
177916
177952
|
fee: "교환 수수료 ~ {{symbol}} {{amount}}"
|
|
177917
177953
|
},
|
|
177918
177954
|
orderReview: {
|
|
177919
|
-
heading: "
|
|
177955
|
+
heading: "주문 요약",
|
|
177920
177956
|
"continue": "계속",
|
|
177957
|
+
continueFreeMint: "무료로 진행하세요",
|
|
177921
177958
|
payWith: {
|
|
177922
177959
|
SWAP: "{{symbol}}로 스왑 및 결제하기",
|
|
177923
177960
|
SUFFICIENT: "{{symbol}}로 결제"
|
|
@@ -178365,6 +178402,23 @@
|
|
|
178365
178402
|
body: "팝업이 활성화되어 있는지 확인하고 지갑의 프롬프트를 따라 연결하세요.",
|
|
178366
178403
|
actionButtonText: "다시 시도"
|
|
178367
178404
|
}
|
|
178405
|
+
},
|
|
178406
|
+
withdrawalQueue: {
|
|
178407
|
+
exceedsThreshold: {
|
|
178408
|
+
heading: "이 인출은 24시간 지연을 유발합니다. 이를 피하려면 {{threshold}}보다 적게 인출하세요.",
|
|
178409
|
+
body: "이 출금은 보안 임계값을 초과하여 24시간 지연이 발생합니다. {{threshold}}보다 적은 금액을 출금하면 약 20분 내에 처리됩니다. 아니면 진행하여 24시간 내에 자금을 받을 수 있습니다.",
|
|
178410
|
+
buttons: {
|
|
178411
|
+
cancel: "낮은 금액",
|
|
178412
|
+
proceed: "이해합니다"
|
|
178413
|
+
}
|
|
178414
|
+
},
|
|
178415
|
+
queueActivated: {
|
|
178416
|
+
heading: "인출에는 24시간이 소요됩니다.",
|
|
178417
|
+
body: "평소보다 교통 체증이 심해 진행하기 전에 알려드리고자 합니다.",
|
|
178418
|
+
buttons: {
|
|
178419
|
+
proceed: "이해합니다"
|
|
178420
|
+
}
|
|
178421
|
+
}
|
|
178368
178422
|
}
|
|
178369
178423
|
};
|
|
178370
178424
|
var koTranslations = {
|
|
@@ -178685,8 +178739,9 @@
|
|
|
178685
178739
|
fee: "交换费用 ~ {{symbol}} {{amount}}"
|
|
178686
178740
|
},
|
|
178687
178741
|
orderReview: {
|
|
178688
|
-
heading: "
|
|
178742
|
+
heading: "订单摘要",
|
|
178689
178743
|
"continue": "继续",
|
|
178744
|
+
continueFreeMint: "免费继续",
|
|
178690
178745
|
payWith: {
|
|
178691
178746
|
SWAP: "使用{{symbol}}进行交换和支付",
|
|
178692
178747
|
SUFFICIENT: "使用{{symbol}}支付"
|
|
@@ -179134,6 +179189,23 @@
|
|
|
179134
179189
|
body: "确保弹出窗口已启用,并按照钱包中的提示进行连接。",
|
|
179135
179190
|
actionButtonText: "重试"
|
|
179136
179191
|
}
|
|
179192
|
+
},
|
|
179193
|
+
withdrawalQueue: {
|
|
179194
|
+
exceedsThreshold: {
|
|
179195
|
+
heading: "此次提款将触发 24 小时延迟。提款金额不得超过 {{threshold}},以避免出现此情况。",
|
|
179196
|
+
body: "此次提款超过安全阈值,将导致 24 小时延迟。提款金额低于 {{threshold}} 可在约 20 分钟内完成。或者,您也可以继续操作并在 24 小时内收到资金。",
|
|
179197
|
+
buttons: {
|
|
179198
|
+
cancel: "较低金额",
|
|
179199
|
+
proceed: "我明白"
|
|
179200
|
+
}
|
|
179201
|
+
},
|
|
179202
|
+
queueActivated: {
|
|
179203
|
+
heading: "此次提款将耗时 24 小时。",
|
|
179204
|
+
body: "我们正面临比平常更严重的拥堵,因此我们想在您继续前通知您。",
|
|
179205
|
+
buttons: {
|
|
179206
|
+
proceed: "我明白"
|
|
179207
|
+
}
|
|
179208
|
+
}
|
|
179137
179209
|
}
|
|
179138
179210
|
};
|
|
179139
179211
|
var zhTranslations = {
|
|
@@ -211147,23 +211219,25 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211147
211219
|
return null;
|
|
211148
211220
|
}
|
|
211149
211221
|
|
|
211150
|
-
function SelectCoinDropdown({ balance, conversions, canOpen, onClick, onProceed, loading, priceDisplay, }) {
|
|
211222
|
+
function SelectCoinDropdown({ balance, conversions, isFreeMint, canOpen, onClick, onProceed, loading, priceDisplay, }) {
|
|
211151
211223
|
const { t } = useTranslation();
|
|
211152
211224
|
const { environment, config: { theme }, } = useSaleContext();
|
|
211153
211225
|
const { token, userBalance, fundsRequired } = balance.fundingItem;
|
|
211154
211226
|
const fiatAmount = calculateCryptoToFiat(fundsRequired.formattedAmount, token.symbol, conversions, '');
|
|
211155
211227
|
const balanceFiatAmount = calculateCryptoToFiat(userBalance.formattedBalance, token.symbol, conversions, '');
|
|
211228
|
+
const displayDropdown = !isFreeMint;
|
|
211156
211229
|
return (jsxs(Stack, { sx: {
|
|
211157
211230
|
w: '100%',
|
|
211158
211231
|
bradtl: 'base.borderRadius.x6',
|
|
211159
211232
|
bradtr: 'base.borderRadius.x6',
|
|
211160
211233
|
px: 'base.spacing.x4',
|
|
211234
|
+
pt: (displayDropdown ? '0' : 'base.spacing.x6'),
|
|
211161
211235
|
pb: 'base.spacing.x6',
|
|
211162
211236
|
bg: 'base.color.neutral.800',
|
|
211163
211237
|
border: '0px solid transparent',
|
|
211164
211238
|
borderTopWidth: 'base.border.size.100',
|
|
211165
211239
|
borderTopColor: 'base.color.translucent.emphasis.400',
|
|
211166
|
-
}, children: [jsxs(MenuItem, { size: "medium", children: [jsx$1(MenuItem.FramedImage, { circularFrame: true, use: (jsx$1(TokenImage, { environment: environment, theme: theme, name: token.name, src: token.icon })) }), jsx$1(MenuItem.Label, { children: t(`views.ORDER_SUMMARY.orderReview.payWith.${balance.type}`, {
|
|
211240
|
+
}, children: [displayDropdown && (jsxs(MenuItem, { size: "medium", children: [jsx$1(MenuItem.FramedImage, { circularFrame: true, use: (jsx$1(TokenImage, { environment: environment, theme: theme, name: token.name, src: token.icon })) }), jsx$1(MenuItem.Label, { children: t(`views.ORDER_SUMMARY.orderReview.payWith.${balance.type}`, {
|
|
211167
211241
|
symbol: token.symbol,
|
|
211168
211242
|
}) }), jsx$1(MenuItem.Caption, { children: `${t('views.ORDER_SUMMARY.orderReview.balance', {
|
|
211169
211243
|
amount: prettyFormatNumber(tokenValueFormat(userBalance.formattedBalance)),
|
|
@@ -211173,7 +211247,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211173
211247
|
})
|
|
211174
211248
|
: ''}` }), priceDisplay && (jsx$1(MenuItem.PriceDisplay, { fiatAmount: fiatAmount
|
|
211175
211249
|
? t('views.ORDER_SUMMARY.currency.fiat', { amount: fiatAmount })
|
|
211176
|
-
: undefined, price: tokenValueFormat(fundsRequired.formattedAmount) })), canOpen && (jsx$1(MenuItem.StatefulButtCon, { icon: "ChevronExpand", onClick: onClick })), !canOpen && loading && jsx$1(ShimmerCircle, { radius: "base.icon.size.400" })] }), jsx$1(Button, { size: "large", onClick: () => onProceed(balance), children: t('views.ORDER_SUMMARY.orderReview.continue') })] }));
|
|
211250
|
+
: undefined, price: tokenValueFormat(fundsRequired.formattedAmount) })), canOpen && (jsx$1(MenuItem.StatefulButtCon, { icon: "ChevronExpand", onClick: onClick })), !canOpen && loading && jsx$1(ShimmerCircle, { radius: "base.icon.size.400" })] })), jsx$1(Button, { size: "large", onClick: () => onProceed(balance), children: isFreeMint ? (t('views.ORDER_SUMMARY.orderReview.continueFreeMint')) : (t('views.ORDER_SUMMARY.orderReview.continue')) })] }));
|
|
211177
211251
|
}
|
|
211178
211252
|
|
|
211179
211253
|
const getTotalFeesBySymbol = (fees, tokenInfo) => fees
|
|
@@ -211359,7 +211433,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211359
211433
|
function OrderReview({ fundingBalances, conversions, collectionName, loadingBalances, transactionRequirement, onBackButtonClick, onPayWithCard, onProceedToBuy, }) {
|
|
211360
211434
|
const { eventTargetState: { eventTarget }, } = reactExports.useContext(EventTargetContext);
|
|
211361
211435
|
const { t } = useTranslation();
|
|
211362
|
-
const { provider, items, orderQuote, disabledPaymentTypes, config: { theme, environment }, } = useSaleContext();
|
|
211436
|
+
const { provider, items, orderQuote, disabledPaymentTypes, selectedCurrency, config: { theme, environment }, } = useSaleContext();
|
|
211363
211437
|
const { sendSelectedPaymentToken, sendViewFeesEvent, sendPageView } = useSaleEvent();
|
|
211364
211438
|
const [showCoinsDrawer, setShowCoinsDrawer] = reactExports.useState(false);
|
|
211365
211439
|
const [selectedCurrencyIndex, setSelectedCurrencyIndex] = reactExports.useState(0);
|
|
@@ -211369,6 +211443,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211369
211443
|
fiatAmount: '',
|
|
211370
211444
|
formattedFees: [],
|
|
211371
211445
|
});
|
|
211446
|
+
const isFreeMint = selectedCurrency?.name ? orderQuote.totalAmount[selectedCurrency.name].amount === 0 : false;
|
|
211372
211447
|
const openDrawer = () => {
|
|
211373
211448
|
setShowCoinsDrawer(true);
|
|
211374
211449
|
};
|
|
@@ -211447,7 +211522,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
211447
211522
|
border: '0px solid transparent',
|
|
211448
211523
|
borderTopWidth: 'base.border.size.100',
|
|
211449
211524
|
borderTopColor: 'base.color.translucent.emphasis.400',
|
|
211450
|
-
}, onFeesClick: () => sendViewFeesEvent(SaleWidgetViews.ORDER_SUMMARY) })), jsx$1(SelectCoinDropdown, { onClick: openDrawer, onProceed: onProceedToBuy, balance: fundingBalance, conversions: conversions, canOpen: fundingBalances.length > 1, loading: loadingBalances, priceDisplay: items.length > 1 }), jsx$1(CoinsDrawer, { conversions: conversions, balances: fundingBalances, onSelect: onSelect, onClose: closeDrawer, selectedIndex: selectedCurrencyIndex, visible: showCoinsDrawer, loading: loadingBalances, onPayWithCard: onPayWithCard, transactionRequirement: transactionRequirement, disabledPaymentTypes: disabledPaymentTypes, theme: theme, environment: environment })] }));
|
|
211525
|
+
}, onFeesClick: () => sendViewFeesEvent(SaleWidgetViews.ORDER_SUMMARY) })), jsx$1(SelectCoinDropdown, { onClick: openDrawer, onProceed: onProceedToBuy, balance: fundingBalance, conversions: conversions, isFreeMint: isFreeMint, canOpen: fundingBalances.length > 1, loading: loadingBalances, priceDisplay: items.length > 1 }), jsx$1(CoinsDrawer, { conversions: conversions, balances: fundingBalances, onSelect: onSelect, onClose: closeDrawer, selectedIndex: selectedCurrencyIndex, visible: showCoinsDrawer, loading: loadingBalances, onPayWithCard: onPayWithCard, transactionRequirement: transactionRequirement, disabledPaymentTypes: disabledPaymentTypes, theme: theme, environment: environment })] }));
|
|
211451
211526
|
}
|
|
211452
211527
|
|
|
211453
211528
|
const MAX_GAS_LIMIT = '30000000';
|
|
@@ -213700,6 +213775,42 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
213700
213775
|
|
|
213701
213776
|
const getErc20Contract = (token, signer) => new Contract$1(token, ['function transfer(address to, uint amount)'], signer);
|
|
213702
213777
|
|
|
213778
|
+
var WithdrawalQueueWarningType;
|
|
213779
|
+
(function (WithdrawalQueueWarningType) {
|
|
213780
|
+
WithdrawalQueueWarningType["TYPE_THRESHOLD"] = "exceedsThreshold";
|
|
213781
|
+
WithdrawalQueueWarningType["TYPE_ACTIVE_QUEUE"] = "queueActivated";
|
|
213782
|
+
})(WithdrawalQueueWarningType || (WithdrawalQueueWarningType = {}));
|
|
213783
|
+
function WithdrawalQueueDrawer({ visible, checkout, warningType, onCloseDrawer, onAdjustAmount, threshold, }) {
|
|
213784
|
+
const { t } = useTranslation();
|
|
213785
|
+
const bridgeWarningUrl = getRemoteImage(checkout.config.environment ?? Environment$1.PRODUCTION, '/notenougheth.svg');
|
|
213786
|
+
return (warningType && (jsx$1(Drawer, { size: warningType === WithdrawalQueueWarningType.TYPE_THRESHOLD ? 'full' : 'threeQuarter', visible: visible, onCloseDrawer: onCloseDrawer, showHeaderBar: false, children: jsxs(Drawer.Content, { testId: "withdraway-queue-bottom-sheet", sx: {
|
|
213787
|
+
display: 'flex',
|
|
213788
|
+
flexDirection: 'column',
|
|
213789
|
+
justifyContent: 'space-between',
|
|
213790
|
+
alignItems: 'center',
|
|
213791
|
+
}, children: [jsxs(Box, { sx: {
|
|
213792
|
+
display: 'flex',
|
|
213793
|
+
flexDirection: 'column',
|
|
213794
|
+
justifyContent: 'space-between',
|
|
213795
|
+
alignItems: 'center',
|
|
213796
|
+
}, children: [jsx$1(CloudImage, { sx: { paddingTop: 'base.spacing.x4', paddingBottom: 'base.spacing.x9' }, use: (jsx$1("img", { src: bridgeWarningUrl, alt: t(`drawers.withdrawalQueue.${warningType}.heading`, { threshold }) })) }), jsxs(Box, { sx: {
|
|
213797
|
+
display: 'flex',
|
|
213798
|
+
flexDirection: 'column',
|
|
213799
|
+
alignItems: 'center',
|
|
213800
|
+
gap: 'base.spacing.x4',
|
|
213801
|
+
paddingX: 'base.spacing.x6',
|
|
213802
|
+
}, children: [jsx$1(Heading, { size: "small", weight: "bold", sx: { textAlign: 'center', paddingX: 'base.spacing.x6' }, children: t(`drawers.withdrawalQueue.${warningType}.heading`, { threshold }) }), jsx$1(Body, { size: "medium", weight: "regular", sx: {
|
|
213803
|
+
color: 'base.color.text.body.secondary',
|
|
213804
|
+
textAlign: 'center',
|
|
213805
|
+
paddingX: 'base.spacing.x6',
|
|
213806
|
+
}, children: t(`drawers.withdrawalQueue.${warningType}.body`, { threshold }) })] })] }), jsxs(Box, { sx: {
|
|
213807
|
+
display: 'flex',
|
|
213808
|
+
flexDirection: 'column',
|
|
213809
|
+
paddingX: 'base.spacing.x6',
|
|
213810
|
+
width: '100%',
|
|
213811
|
+
}, children: [warningType === WithdrawalQueueWarningType.TYPE_THRESHOLD && (jsx$1(Button, { size: "large", variant: "primary", sx: { width: '100%', marginBottom: 'base.spacing.x5' }, onClick: onAdjustAmount, children: t('drawers.withdrawalQueue.exceedsThreshold.buttons.cancel') })), jsx$1(Button, { size: "large", variant: "primary", sx: { width: '100%', marginBottom: 'base.spacing.x10' }, onClick: onCloseDrawer, children: t(`drawers.withdrawalQueue.${warningType}.buttons.proceed`) })] })] }) })));
|
|
213812
|
+
}
|
|
213813
|
+
|
|
213703
213814
|
const testId = 'bridge-review-summary';
|
|
213704
213815
|
function BridgeReviewSummary() {
|
|
213705
213816
|
const { t } = useTranslation();
|
|
@@ -213722,6 +213833,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
213722
213833
|
const { isWalletConnectEnabled, getWalletLogoUrl } = useWalletConnect();
|
|
213723
213834
|
// Not enough ETH to cover gas
|
|
213724
213835
|
const [showNotEnoughGasDrawer, setShowNotEnoughGasDrawer] = reactExports.useState(false);
|
|
213836
|
+
const [withdrawalQueueWarning, setWithdrawalQueueWarning] = reactExports.useState({ visible: false });
|
|
213725
213837
|
const isTransfer = reactExports.useMemo(() => from?.network === to?.network, [from, to]);
|
|
213726
213838
|
const isDeposit = reactExports.useMemo(() => (getL2ChainId(checkout.config) === to?.network), [from, to, checkout]);
|
|
213727
213839
|
const insufficientFundsForGas = reactExports.useMemo(() => {
|
|
@@ -213807,6 +213919,20 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
213807
213919
|
destinationChainId: to?.network.toString(),
|
|
213808
213920
|
gasMultiplier: 'auto',
|
|
213809
213921
|
});
|
|
213922
|
+
if (bundledTxn.withdrawalQueueActivated) {
|
|
213923
|
+
setWithdrawalQueueWarning({
|
|
213924
|
+
visible: true,
|
|
213925
|
+
warningType: WithdrawalQueueWarningType.TYPE_ACTIVE_QUEUE,
|
|
213926
|
+
});
|
|
213927
|
+
}
|
|
213928
|
+
else if (bundledTxn.delayWithdrawalLargeAmount && bundledTxn.largeTransferThresholds) {
|
|
213929
|
+
const threshold = formatUnits(bundledTxn.largeTransferThresholds, token.decimals);
|
|
213930
|
+
setWithdrawalQueueWarning({
|
|
213931
|
+
visible: true,
|
|
213932
|
+
warningType: WithdrawalQueueWarningType.TYPE_THRESHOLD,
|
|
213933
|
+
threshold: parseInt(threshold, 10),
|
|
213934
|
+
});
|
|
213935
|
+
}
|
|
213810
213936
|
const unsignedApproveTransaction = {
|
|
213811
213937
|
contractToApprove: bundledTxn.contractToApprove,
|
|
213812
213938
|
unsignedTx: bundledTxn.unsignedApprovalTx,
|
|
@@ -214013,7 +214139,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
214013
214139
|
},
|
|
214014
214140
|
},
|
|
214015
214141
|
});
|
|
214016
|
-
} })
|
|
214142
|
+
} }), jsx$1(WithdrawalQueueDrawer, { visible: withdrawalQueueWarning.visible, warningType: withdrawalQueueWarning.warningType, checkout: checkout, onAdjustAmount: () => {
|
|
214143
|
+
setWithdrawalQueueWarning({ visible: false });
|
|
214144
|
+
viewDispatch({
|
|
214145
|
+
payload: {
|
|
214146
|
+
type: ViewActions.UPDATE_VIEW,
|
|
214147
|
+
view: {
|
|
214148
|
+
type: BridgeWidgetViews.BRIDGE_FORM,
|
|
214149
|
+
},
|
|
214150
|
+
},
|
|
214151
|
+
});
|
|
214152
|
+
}, onCloseDrawer: () => {
|
|
214153
|
+
setWithdrawalQueueWarning({ visible: false });
|
|
214154
|
+
}, threshold: withdrawalQueueWarning.threshold })] }));
|
|
214017
214155
|
}
|
|
214018
214156
|
|
|
214019
214157
|
function BridgeReview() {
|
|
@@ -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-DZo92OXX.js';
|
|
2
2
|
import { ethers, BigNumber as BigNumber$1, ContractFactory, utils as utils$2, Contract as Contract$1 } from 'ethers';
|
|
3
3
|
import globalAxios, { HttpStatusCode as HttpStatusCode$1 } from 'axios';
|
|
4
4
|
import { Web3Provider, JsonRpcProvider } from '@ethersproject/providers';
|
|
@@ -9,8 +9,8 @@ import assert from 'assert';
|
|
|
9
9
|
import { FeeAmount, Route, SwapQuoter, Pool, Trade, toHex as toHex$1, encodeRouteToPath } from '@uniswap/v3-sdk';
|
|
10
10
|
import { keccak256 as keccak256$1 } from '@ethersproject/solidity';
|
|
11
11
|
import { SwapRouter, PaymentsExtended } from '@uniswap/router-sdk';
|
|
12
|
-
import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-
|
|
13
|
-
import { B as BlockchainData } from './index-
|
|
12
|
+
import { c as constants, O as OrderStatusName, a as Orderbook, A as ActionType, T as TransactionPurpose, S as SignablePurpose } from './index-RxuRdoNW.js';
|
|
13
|
+
import { B as BlockchainData } from './index-Cd2-wh_U.js';
|
|
14
14
|
|
|
15
15
|
function bind(fn, thisArg) {
|
|
16
16
|
return function wrap() {
|
|
@@ -19206,7 +19206,7 @@ const flattenProperties = (properties) => {
|
|
|
19206
19206
|
};
|
|
19207
19207
|
|
|
19208
19208
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
19209
|
-
const SDK_VERSION = '1.48.3-alpha';
|
|
19209
|
+
const SDK_VERSION = '1.48.3-alpha.2';
|
|
19210
19210
|
const getFrameParentDomain = () => {
|
|
19211
19211
|
if (isNode()) {
|
|
19212
19212
|
return '';
|
|
@@ -24600,7 +24600,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
24600
24600
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
24601
24601
|
};
|
|
24602
24602
|
|
|
24603
|
-
const SDK_VERSION_MARKER = '1.48.3-alpha';
|
|
24603
|
+
const SDK_VERSION_MARKER = '1.48.3-alpha.2';
|
|
24604
24604
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
24605
24605
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
24606
24606
|
|
package/dist/checkout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AddFundsEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutErrorType, h as CheckoutEventType, i as CheckoutFailureEventType, j as CheckoutFlowType, k as CheckoutStatus, l as CheckoutSuccessEventType, m as CheckoutUserActionEventType, n as ConnectEventType, o as ConnectTargetLayer, E as ExchangeType, F as FeeType, p as FundingStepType, G as GasEstimateType, q as GasTokenType, I as IMMUTABLE_API_BASE_URL, r as IMTBLWidgetEvents, s as ItemType, N as NetworkFilterTypes, O as OnRampEventType, t as OrchestrationEventType, P as PostMessageHandler, u as PostMessageHandlerEventType, v as ProviderEventType, 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 getMetaMaskProviderDetail, Q as getPassportProviderDetail, U as isAddressSanctioned, V as validateProvider } from './checkout-
|
|
2
|
-
import './index-
|
|
1
|
+
export { A as AddFundsEventType, B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutErrorType, h as CheckoutEventType, i as CheckoutFailureEventType, j as CheckoutFlowType, k as CheckoutStatus, l as CheckoutSuccessEventType, m as CheckoutUserActionEventType, n as ConnectEventType, o as ConnectTargetLayer, E as ExchangeType, F as FeeType, p as FundingStepType, G as GasEstimateType, q as GasTokenType, I as IMMUTABLE_API_BASE_URL, r as IMTBLWidgetEvents, s as ItemType, N as NetworkFilterTypes, O as OnRampEventType, t as OrchestrationEventType, P as PostMessageHandler, u as PostMessageHandlerEventType, v as ProviderEventType, 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 getMetaMaskProviderDetail, Q as getPassportProviderDetail, U as isAddressSanctioned, V as validateProvider } from './checkout-BoDeeomL.js';
|
|
2
|
+
import './index-DZo92OXX.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
import 'lru-memorise';
|
|
5
5
|
import 'global-const';
|
|
@@ -11,10 +11,10 @@ import 'assert';
|
|
|
11
11
|
import '@uniswap/v3-sdk';
|
|
12
12
|
import '@ethersproject/solidity';
|
|
13
13
|
import '@uniswap/router-sdk';
|
|
14
|
-
import './index-
|
|
14
|
+
import './index-RxuRdoNW.js';
|
|
15
15
|
import 'form-data';
|
|
16
16
|
import 'ethers-v6';
|
|
17
17
|
import 'merkletreejs';
|
|
18
18
|
import '@opensea/seaport-js';
|
|
19
|
-
import './index-
|
|
20
|
-
import './index-
|
|
19
|
+
import './index-Cd2-wh_U.js';
|
|
20
|
+
import './index-D46S1fXy.js';
|
|
@@ -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-DZo92OXX.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-DZo92OXX.js';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'lru-memorise';
|
|
4
4
|
import 'global-const';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as index$2, I as ImxApiClients } from './index-
|
|
2
|
-
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-
|
|
1
|
+
import { b as index$2, I as ImxApiClients } from './index-D46S1fXy.js';
|
|
2
|
+
import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-DZo92OXX.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.48.3-alpha' };
|
|
19
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.48.3-alpha.2' };
|
|
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.48.3-alpha',
|
|
60
|
+
sdkVersion: 'ts-immutable-sdk-1.48.3-alpha.2',
|
|
61
61
|
baseConfig,
|
|
62
62
|
});
|
|
63
63
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -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-D46S1fXy.js';
|
|
2
|
+
import { E as Environment, a as addKeysToHeadersOverride } from './index-DZo92OXX.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.48.3-alpha',
|
|
24
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.48.3-alpha.2',
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -13838,7 +13838,7 @@ class MultiRollupApiClients {
|
|
|
13838
13838
|
}
|
|
13839
13839
|
|
|
13840
13840
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13841
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.48.3-alpha' };
|
|
13841
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.48.3-alpha.2' };
|
|
13842
13842
|
const createConfig = ({ basePath, headers, }) => {
|
|
13843
13843
|
if (!basePath.trim()) {
|
|
13844
13844
|
throw Error('basePath can not be empty');
|
|
@@ -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.48.3-alpha';
|
|
161
|
+
const SDK_VERSION = '1.48.3-alpha.2';
|
|
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-DZo92OXX.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';
|