@rash2x/bridge-widget 0.6.26 → 0.6.28
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/evaa-bridge.cjs +1 -1
- package/dist/evaa-bridge.mjs +1 -1
- package/dist/{index-Dv5nujkk.cjs → index-CjIST-mb.cjs} +80 -9
- package/dist/index-CjIST-mb.cjs.map +1 -0
- package/dist/{index-BBQ7KZI-.js → index-D1Vzcfyk.js} +80 -9
- package/dist/index-D1Vzcfyk.js.map +1 -0
- package/dist/{index-B4by666d.cjs → index-D6vg_rMM.cjs} +2 -2
- package/dist/{index-B4by666d.cjs.map → index-D6vg_rMM.cjs.map} +1 -1
- package/dist/{index-CNrU6f88.js → index-qwLU8D7B.js} +2 -2
- package/dist/{index-CNrU6f88.js.map → index-qwLU8D7B.js.map} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/index-BBQ7KZI-.js.map +0 -1
- package/dist/index-Dv5nujkk.cjs.map +0 -1
|
@@ -33,7 +33,7 @@ import { CardHeader, CardTitle, CardAction, Card, CardContent, CardFooter } from
|
|
|
33
33
|
const common$1 = { "connecting": "Connecting…", "initializing": "Initializing...", "loading": "Loading...", "paste": "paste", "close": "Close", "zeroPlaceholder": "0", "nativeToken": "Native Token" };
|
|
34
34
|
const wallets$1 = { "addTonWallet": "Add TON wallet", "addEvmWallet": "Add EVM wallet", "connectTonWallet": "Connect TON wallet", "connectEvmWallet": "Connect EVM wallet", "initializingMetamask": "Initializing MetaMask SDK...", "initializingTronlink": "Initializing TronLink...", "failedToConnectTon": "Failed to connect to TON wallet", "failedToDisconnect": "Failed to disconnect", "metamaskConnectionError": "MetaMask connection error", "failedToConnectMetamask": "Failed to connect to MetaMask", "failedToDisconnectMetamask": "Failed to disconnect from MetaMask", "selectWallet": "Select Wallet", "tonWallets": "TON", "evmWallets": "EVM", "tronWallets": "TRON", "tonconnect": "TonConnect", "metaMask": "WalletConnect", "walletConnect": "WalletConnect", "tronLink": "TronLink", "addTronWallet": "Add Tron wallet", "comingSoon": "Coming Soon", "connected": "CONNECTED", "connectedStatus": "Connected", "disconnect": "Disconnect", "chooseWallet": "Connect wallet", "oneWalletPerEnv": "You can only connect one wallet per environment.", "connect": "Connect", "connectTronWallet": "Connect Tron wallet", "connectWallet": "Connect wallet" };
|
|
35
35
|
const bridge$1 = { "max": "Max", "sourceNetwork": "Source network", "destinationNetwork": "Destination network", "selectToken": "Select token", "selectNetwork": "Select network", "selectSourceNetwork": "Select source network", "selectDestinationNetwork": "Select destination network", "searchToken": "Search token", "myTokens": "My tokens", "allTokens": "All tokens", "search": "Search", "select": "Select", "willChangeSourceChain": "Will change source network", "willChangeSourceNetworkAndToken": "Will change source token", "noBalancesFound": "No balances found.", "noResults": "No results", "tokenNotFound": "We couldn't find a token with that name or symbol. Please try again.", "chainNotFound": "We couldn't find a chain with that name. Please try again.", "sendToAnotherAddress": "Send to another address", "youWillReceive": "You will receive", "anotherAddressPlaceholder": "Address", "addressDoesntMatch": "Address doesn't match the {{network}} network", "checkBeforeTransfer": "Check correctness before transfer" };
|
|
36
|
-
const transaction$1 = { "enterAmount": "Enter amount", "transfer": "Transfer", "getQuote": "Get quote", "failed": "Transaction Failed", "confirm": "Confirm transaction", "signTransaction": "Sign in transaction in wallet", "quoting": "Quoting...", "inProgress": "
|
|
36
|
+
const transaction$1 = { "enterAmount": "Enter amount", "transfer": "Transfer", "getQuote": "Get quote", "failed": "Transaction Failed", "confirm": "Confirm transaction", "signTransaction": "Sign in transaction in wallet", "quoting": "Quoting...", "inProgress": "Transaction in progress...", "checkingBalance": "Checking balance...", "insufficientBalance": "Insufficient balance", "amountTooSmall": "Min {{min}}", "amountTooLarge": "Max {{max}}", "success": "Success", "successTitle": "Success", "done": "Done", "hashCopied": "Hash copied to clipboard", "bridged": "Bridged", "transferTitle": "Transfer", "hash": "Hash", "finalFee": "Final Fee", "route": "Route", "estTime": "Est. Time", "slippage": "Slippage", "minimumReceived": "Minimum received", "totalFee": "Total Fee", "noRouteFound": "No route found", "notEnoughGas": "Not enough gas", "pasteAddressToTransfer": "Paste address to transfer", "noRouteFoundForSettings": "No route found for current settings.", "tryAdjustSettings": "Try disabling Gas on Destination, or adjust amount/networks.", "quoteError": "Quote error", "steps": { "sent": "Sent", "processing": "Processing", "processingNote": "Up to 2 minutes", "completed": "Completed" } };
|
|
37
37
|
const telegram$1 = { "openWebVersion": "Open EVAA Web to Bridge", "restrictionMessage": "You can bridge between the chosen networks on EVAA web version" };
|
|
38
38
|
const app$1 = { "stargateWidgetName": "Stargate Bridge Widget", "liveWidget": "Live Widget", "getStarted": "Get Started" };
|
|
39
39
|
const settings$1 = { "title": "Settings", "gasOnDestination": "Gas on destination", "gasOnDestinationDescription": "The default amount allows you to perform a couple of transactions (e.g. Approve and Swap).", "slippageTolerance": "Slippage tolerance", "slippageToleranceDescription": "Your transaction will revert if the amount you're receiving is outside of this tolerance", "routePriority": "Route Priority", "routePriorityDescription": "Choose how your transfer is routed. Recommended picks the best overall path for cost. Fastest prioritizes speed above all else.", "highSlippageWarning": "High slippage warning", "gasPresets": { "auto": "Auto", "none": "None", "medium": "Medium", "max": "Max" }, "routePresets": { "fastest": "Fastest", "cheapest": "Cheapest", "recommended": "Recommended" } };
|
|
@@ -51,7 +51,7 @@ const en$3 = {
|
|
|
51
51
|
const common = { "connecting": "Подключение…", "initializing": "Инициализация...", "loading": "Загрузка...", "paste": "вставить", "close": "Закрыть", "zeroPlaceholder": "0", "nativeToken": "Нативный токен" };
|
|
52
52
|
const wallets = { "addTonWallet": "Добавить TON кошелёк", "addEvmWallet": "Добавить EVM кошелёк", "connectTonWallet": "Подключить TON кошелёк", "connectEvmWallet": "Подключить EVM кошелёк", "initializingMetamask": "Инициализация MetaMask SDK...", "initializingTronlink": "Инициализация TronLink...", "failedToConnectTon": "Не удалось подключиться к TON кошельку", "failedToDisconnect": "Не удалось отключиться", "metamaskConnectionError": "Ошибка подключения MetaMask", "failedToConnectMetamask": "Не удалось подключиться к MetaMask", "failedToDisconnectMetamask": "Не удалось отключиться от MetaMask", "selectWallet": "Выберите кошелёк", "tonWallets": "TON", "evmWallets": "EVM", "tronWallets": "TRON", "tonconnect": "TonConnect", "metaMask": "WalletConnect", "walletConnect": "WalletConnect", "tronLink": "TronLink", "addTronWallet": "Добавить Tron кошелёк", "comingSoon": "Скоро", "connected": "ПОДКЛЮЧЕНО", "connectedStatus": "Подключён", "disconnect": "Отключить", "chooseWallet": "Подключите кошелек", "oneWalletPerEnv": "Можно подключить только один кошелёк на окружение.", "connect": "Подключить", "connectTronWallet": "Подключить Tron кошелёк", "connectWallet": "Подключить кошелёк" };
|
|
53
53
|
const bridge = { "max": "Макс", "sourceNetwork": "Исходная сеть", "destinationNetwork": "Целевая сеть", "selectToken": "Выбрать токен", "selectNetwork": "Выбрать сеть", "selectSourceNetwork": "Выбрать исходную сеть", "selectDestinationNetwork": "Выбрать целевую сеть", "searchToken": "Поиск токена", "myTokens": "Мои токены", "allTokens": "Все токены", "search": "Поиск", "select": "Выбрать", "willChangeSourceChain": "Сменит исходную сеть", "willChangeSourceNetworkAndToken": "Сменит исходный токен", "noBalancesFound": "Балансы не найдены.", "noResults": "Нет результатов", "tokenNotFound": "Мы не смогли найти токен с таким названием или символом. Пожалуйста, попробуйте снова.", "chainNotFound": "Мы не смогли найти сеть с таким названием. Пожалуйста, попробуйте снова.", "sendToAnotherAddress": "Отправить на другой адрес", "youWillReceive": "Вы получите", "anotherAddressPlaceholder": "Адрес", "addressDoesntMatch": "Адрес не соответствует сети {{network}}", "checkBeforeTransfer": "Проверьте корректность перед переводом" };
|
|
54
|
-
const transaction = { "enterAmount": "Введите сумму", "transfer": "Перевести", "getQuote": "Получить котировку", "quoting": "Расчет котировки...", "failed": "Ошибка транзакции", "confirm": "Подтвердите транзакцию", "signTransaction": "Подпишите транзакцию в кошельке", "inProgress": "
|
|
54
|
+
const transaction = { "enterAmount": "Введите сумму", "transfer": "Перевести", "getQuote": "Получить котировку", "quoting": "Расчет котировки...", "failed": "Ошибка транзакции", "confirm": "Подтвердите транзакцию", "signTransaction": "Подпишите транзакцию в кошельке", "inProgress": "Транзакция выполняется...", "checkingBalance": "Проверка баланса...", "insufficientBalance": "Недостаточно средств", "amountTooSmall": "Минимум {{min}}", "amountTooLarge": "Максимум {{max}}", "success": "Успех", "successTitle": "Успех", "done": "Готово", "hashCopied": "Хэш скопирован в буфер обмена", "bridged": "Переведено", "transferTitle": "Перевод", "hash": "Хэш", "finalFee": "Итоговая комиссия", "route": "Маршрут", "estTime": "Время", "slippage": "Проскальзывание", "minimumReceived": "Минимум к получению", "totalFee": "Общая комиссия", "noRouteFound": "Маршрут не найден", "notEnoughGas": "Недостаточно газа", "pasteAddressToTransfer": "Укажите адрес получателя", "noRouteFoundForSettings": "Маршрут не найден для текущих настроек.", "tryAdjustSettings": "Попробуйте отключить Gas on Destination или измените сумму/сети.", "quoteError": "Ошибка котировки", "steps": { "sent": "Отправлено", "processing": "Обработка", "processingNote": "До 2 минут", "completed": "Завершено" } };
|
|
55
55
|
const telegram = { "openWebVersion": "Открыть EVAA веб для трансфера", "restrictionMessage": "Трансфер между выбранными сетями доступен только в веб-версии EVAA" };
|
|
56
56
|
const app = { "stargateWidgetName": "Виджет Stargate Bridge", "liveWidget": "Живой виджет", "getStarted": "Начало работы" };
|
|
57
57
|
const settings = { "title": "Настройки", "gasOnDestination": "Газ на назначении", "gasOnDestinationDescription": "Значение по умолчанию позволяет выполнить пару транзакций (например, Approve и Swap).", "slippageTolerance": "Толерантность к проскальзыванию", "slippageToleranceDescription": "Ваша транзакция будет отклонена, если получаемая сумма выйдет за пределы этой допустимой погрешности.", "routePriority": "Приоритет маршрута", "routePriorityDescription": "Выберите, как будет выполняться ваш трансфер. Recommended — выбирает оптимальный маршрут с учётом общей стоимости. Fastest — отдаёт приоритет максимальной скорости.", "highSlippageWarning": "Высокое проскальзывание", "gasPresets": { "auto": "Авто", "none": "Нет", "medium": "Средний", "max": "Макс" }, "routePresets": { "fastest": "Быстрейший", "cheapest": "Дешевейший", "recommended": "Рекомендуемый" } };
|
|
@@ -4353,14 +4353,85 @@ const WalletSelectModal = () => {
|
|
|
4353
4353
|
] }, category.title)) })
|
|
4354
4354
|
] }) });
|
|
4355
4355
|
};
|
|
4356
|
+
const CheckIcon = (props) => {
|
|
4357
|
+
return /* @__PURE__ */ jsx(
|
|
4358
|
+
"svg",
|
|
4359
|
+
{
|
|
4360
|
+
width: "20",
|
|
4361
|
+
height: "20",
|
|
4362
|
+
viewBox: "0 0 20 20",
|
|
4363
|
+
fill: "none",
|
|
4364
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4365
|
+
...props,
|
|
4366
|
+
children: /* @__PURE__ */ jsx(
|
|
4367
|
+
"path",
|
|
4368
|
+
{
|
|
4369
|
+
d: "M10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0ZM14.9219 6.0918C14.6056 5.81261 14.123 5.84198 13.8438 6.1582L8.7793 11.8926L5.79004 8.90332C5.49172 8.605 5.00828 8.605 4.70996 8.90332C4.41168 9.20164 4.41166 9.68509 4.70996 9.9834L7.8916 13.165C8.41076 13.6842 9.26014 13.6578 9.74609 13.1074L14.9893 7.16992C15.2685 6.85368 15.2381 6.37104 14.9219 6.0918Z",
|
|
4370
|
+
fill: "currentColor"
|
|
4371
|
+
}
|
|
4372
|
+
)
|
|
4373
|
+
}
|
|
4374
|
+
);
|
|
4375
|
+
};
|
|
4376
|
+
const CircleLinedIcon = (props) => {
|
|
4377
|
+
return /* @__PURE__ */ jsx(
|
|
4378
|
+
"svg",
|
|
4379
|
+
{
|
|
4380
|
+
width: "20",
|
|
4381
|
+
height: "20",
|
|
4382
|
+
viewBox: "0 0 20 20",
|
|
4383
|
+
fill: "none",
|
|
4384
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4385
|
+
...props,
|
|
4386
|
+
children: /* @__PURE__ */ jsx(
|
|
4387
|
+
"path",
|
|
4388
|
+
{
|
|
4389
|
+
d: "M10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0ZM10 6C7.79086 6 6 7.79086 6 10C6 12.2091 7.79086 14 10 14C12.2091 14 14 12.2091 14 10C14 7.79086 12.2091 6 10 6Z",
|
|
4390
|
+
fill: "currentColor"
|
|
4391
|
+
}
|
|
4392
|
+
)
|
|
4393
|
+
}
|
|
4394
|
+
);
|
|
4395
|
+
};
|
|
4356
4396
|
const ProgressStep = ({
|
|
4357
4397
|
icon = /* @__PURE__ */ jsx(Loader2, { className: "w-16 h-16 animate-spin" })
|
|
4358
4398
|
}) => {
|
|
4359
4399
|
const { t: t2 } = useBridgeTranslation();
|
|
4360
|
-
|
|
4400
|
+
const steps = [
|
|
4401
|
+
{
|
|
4402
|
+
icon: /* @__PURE__ */ jsx(CheckIcon, { className: "w-5 h-5 " }),
|
|
4403
|
+
title: t2("transaction.steps.sent")
|
|
4404
|
+
},
|
|
4405
|
+
{
|
|
4406
|
+
icon: /* @__PURE__ */ jsx(Loader2, { className: "w-5 h-5 text-primary animate-spin", strokeWidth: 3 }),
|
|
4407
|
+
title: t2("transaction.steps.processing"),
|
|
4408
|
+
description: t2("transaction.steps.processingNote")
|
|
4409
|
+
},
|
|
4410
|
+
{
|
|
4411
|
+
icon: /* @__PURE__ */ jsx(CircleLinedIcon, { className: "w-5 h-5" }),
|
|
4412
|
+
title: t2("transaction.steps.completed")
|
|
4413
|
+
}
|
|
4414
|
+
];
|
|
4415
|
+
return /* @__PURE__ */ jsx(DialogContent, { showCloseButton: false, className: "overflow-hidden", children: /* @__PURE__ */ jsxs("div", { className: "flex relative flex-col gap-6 flex-1 items-center justify-start text-center bg-background p-6", children: [
|
|
4361
4416
|
icon,
|
|
4362
4417
|
/* @__PURE__ */ jsx(DialogHeader, { className: "pr-0", children: /* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.inProgress") }) }),
|
|
4363
|
-
/* @__PURE__ */
|
|
4418
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
4419
|
+
/* @__PURE__ */ jsx("div", { className: "absolute left-5 top-5 bottom-5 border-l border-dashed border-foreground/50" }),
|
|
4420
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-6 relative z-10", children: steps.map((step) => /* @__PURE__ */ jsxs(
|
|
4421
|
+
"div",
|
|
4422
|
+
{
|
|
4423
|
+
className: "flex items-center gap-5 text-left",
|
|
4424
|
+
children: [
|
|
4425
|
+
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-full bg-muted flex items-center justify-center text-foreground shadow-inner", children: step.icon }),
|
|
4426
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
4427
|
+
/* @__PURE__ */ jsx("span", { className: "text-base leading-5", children: step.title }),
|
|
4428
|
+
step.description && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground leading-4", children: step.description })
|
|
4429
|
+
] })
|
|
4430
|
+
]
|
|
4431
|
+
},
|
|
4432
|
+
step.title
|
|
4433
|
+
)) })
|
|
4434
|
+
] })
|
|
4364
4435
|
] }) });
|
|
4365
4436
|
};
|
|
4366
4437
|
const FailedStep = ({
|
|
@@ -4369,7 +4440,7 @@ const FailedStep = ({
|
|
|
4369
4440
|
const { current, reset } = useTransactionStore();
|
|
4370
4441
|
const { t: t2 } = useBridgeTranslation();
|
|
4371
4442
|
return /* @__PURE__ */ jsxs(DialogContent, { showCloseButton: true, className: "overflow-hidden", children: [
|
|
4372
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col relative gap-4 flex-1 items-center justify-start text-center
|
|
4443
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col relative gap-4 flex-1 items-center justify-start text-center", children: [
|
|
4373
4444
|
icon,
|
|
4374
4445
|
/* @__PURE__ */ jsxs(DialogHeader, { className: "pr-0", children: [
|
|
4375
4446
|
/* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.failed") }),
|
|
@@ -4484,7 +4555,7 @@ const SuccessStep = ({
|
|
|
4484
4555
|
}
|
|
4485
4556
|
};
|
|
4486
4557
|
return /* @__PURE__ */ jsxs(DialogContent, { showCloseButton: true, className: "overflow-hidden", children: [
|
|
4487
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 flex-1 justify-start items-center text-center
|
|
4558
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 flex-1 justify-start items-center text-center bg-background", children: [
|
|
4488
4559
|
icon,
|
|
4489
4560
|
/* @__PURE__ */ jsx(DialogHeader, { className: "pr-0", children: /* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.success") }) }),
|
|
4490
4561
|
/* @__PURE__ */ jsxs("div", { className: "w-full space-y-2 mt-4 relative z-10 pb-14", children: [
|
|
@@ -4559,7 +4630,7 @@ const ConfirmStep = ({
|
|
|
4559
4630
|
}) => {
|
|
4560
4631
|
const { t: t2 } = useBridgeTranslation();
|
|
4561
4632
|
const { formatTime } = useCountdown(90);
|
|
4562
|
-
return /* @__PURE__ */ jsx(DialogContent, { showCloseButton: false, className: "overflow-hidden", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col relative gap-4 flex-1 items-center justify-start text-center
|
|
4633
|
+
return /* @__PURE__ */ jsx(DialogContent, { showCloseButton: false, className: "overflow-hidden", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col relative gap-4 flex-1 items-center justify-start text-center", children: [
|
|
4563
4634
|
icon,
|
|
4564
4635
|
/* @__PURE__ */ jsxs(DialogHeader, { className: "pr-0", children: [
|
|
4565
4636
|
/* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.confirm") }),
|
|
@@ -26034,7 +26105,7 @@ class WalletConnectModal {
|
|
|
26034
26105
|
}
|
|
26035
26106
|
async initUi() {
|
|
26036
26107
|
if (typeof window !== "undefined") {
|
|
26037
|
-
await import("./index-
|
|
26108
|
+
await import("./index-qwLU8D7B.js");
|
|
26038
26109
|
const modal = document.createElement("wcm-modal");
|
|
26039
26110
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
26040
26111
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -26785,4 +26856,4 @@ export {
|
|
|
26785
26856
|
getQuoteFees as y,
|
|
26786
26857
|
calculateMinReceived as z
|
|
26787
26858
|
};
|
|
26788
|
-
//# sourceMappingURL=index-
|
|
26859
|
+
//# sourceMappingURL=index-D1Vzcfyk.js.map
|