Skip to content

Commit

Permalink
v1.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mytonwalletorg committed Feb 6, 2024
1 parent 3cf3363 commit 95d939a
Show file tree
Hide file tree
Showing 24 changed files with 91 additions and 87 deletions.
1 change: 1 addition & 0 deletions changelogs/1.18.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bug fixes and performance improvements
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mytonwallet",
"version": "1.18.0",
"version": "1.18.1",
"description": "The most feature-rich web wallet and browser extension for TON – with support of multi-accounts, tokens (jettons), NFT, TON DNS, TON Sites, TON Proxy, and TON Magic.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion public/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.18.0
1.18.1
3 changes: 3 additions & 0 deletions src/api/blockchains/ton/util/tonapiio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Api, HttpClient } from 'tonapi-sdk-js';
import type { ApiNetwork } from '../../../types';

import { TONAPIIO_MAINNET_URL, TONAPIIO_TESTNET_URL } from '../../../../config';
import fetchWithTimeout from '../../../../util/fetchWithTimeout';
import { getEnvironment } from '../../../environment';

const MAX_LIMIT = 1000;
Expand All @@ -20,10 +21,12 @@ function getApi(network: ApiNetwork) {
mainnet: new Api(new HttpClient({
baseUrl: TONAPIIO_MAINNET_URL,
baseApiParams: { headers },
customFetch: fetchWithTimeout as typeof fetch,
})),
testnet: new Api(new HttpClient({
baseUrl: TONAPIIO_TESTNET_URL,
baseApiParams: { headers },
customFetch: fetchWithTimeout as typeof fetch,
})),
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/api/blockchains/ton/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function getWalletInfo(network: ApiNetwork, walletOrAddress: TonWal
const {
account_state: accountState,
wallet: isWallet,
seqno,
seqno = 0,
balance,
last_transaction_id: {
lt,
Expand Down
2 changes: 1 addition & 1 deletion src/api/methods/polling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const LONG_BACKEND_POLLING_INTERVAL = 60000; // 1 min

const FIRST_TRANSACTIONS_LIMIT = 50;

const NFT_FULL_POLLING_INTERVAL = 30000; // 30 sec
const NFT_FULL_POLLING_INTERVAL = 60000; // 60 sec
const NFT_FULL_UPDATE_FREQUNCY = Math.round(NFT_FULL_POLLING_INTERVAL / POLLING_INTERVAL);
const DOUBLE_CHECK_TOKENS_PAUSE = 30000; // 30 sec

Expand Down
3 changes: 0 additions & 3 deletions src/components/Dialogs.module.scss

This file was deleted.

5 changes: 2 additions & 3 deletions src/components/Dialogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import useLang from '../hooks/useLang';
import Button from './ui/Button';
import Modal from './ui/Modal';

import styles from './Dialogs.module.scss';
import modalStyles from './ui/Modal.module.scss';

type StateProps = {
Expand All @@ -27,7 +26,7 @@ const Dialogs: FC<StateProps> = ({ dialogs }) => {
const [isModalOpen, openModal, closeModal] = useFlag();

const message = dialogs[dialogs.length - 1];
const title = lang('Something went wrong.');
const title = lang('Something went wrong');

useEffect(() => {
if (IS_DELEGATING_BOTTOM_SHEET || IS_DELEGATED_BOTTOM_SHEET) {
Expand Down Expand Up @@ -58,7 +57,7 @@ const Dialogs: FC<StateProps> = ({ dialogs }) => {
onClose={closeModal}
onCloseAnimationEnd={dismissDialog}
>
<div className={styles.content}>
<div>
{renderText(lang(message))}
</div>
<div className={modalStyles.buttons}>
Expand Down
9 changes: 7 additions & 2 deletions src/components/main/sections/Actions/PortraitActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { IS_CAPACITOR, TON_TOKEN_SLUG, USDT_TRON_TOKEN_SLUG } from '../../../../
import buildClassName from '../../../../util/buildClassName';
import { clearLaunchUrl, getLaunchUrl } from '../../../../util/capacitor';
import { processDeeplink } from '../../../../util/processDeeplink';
import { IS_DELEGATING_BOTTOM_SHEET } from '../../../../util/windowEnvironment';

import useFlag from '../../../../hooks/useFlag';
import useLang from '../../../../hooks/useLang';
Expand Down Expand Up @@ -110,9 +111,13 @@ function PortraitActions({
onReceiveClick,
];

await BottomSheet.disable();
if (IS_DELEGATING_BOTTOM_SHEET) {
await BottomSheet.disable();
}
const result = await ActionSheet.showActions({ options });
await BottomSheet.enable();
if (IS_DELEGATING_BOTTOM_SHEET) {
await BottomSheet.enable();
}

actionByIndex[result.index]?.();
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/receive/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function Content({
<div className={buildClassName(styles.qrCode, !qrCode && styles.qrCodeHidden)} ref={qrCodeRef} />

{isLedger && (
<div className={buildClassName(styles.contentTitle, styles.c)}>
<div className={styles.contentTitle}>
{renderText(lang('$ledger_verify_address'))}
{' '}
<a href="#" onClick={handleVerify} className={styles.dottedLink}>
Expand Down
7 changes: 6 additions & 1 deletion src/components/receive/ReceiveModal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
text-align: center;
}

.qrCode:not(.qrCodeHidden) + .contentTitle {
margin-top: 1rem;
margin-bottom: 0;
}

.qrCode {
position: relative;

Expand Down Expand Up @@ -125,4 +130,4 @@

.actionButton {
max-width: 100% !important;
}
}
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const PROXY_HOSTS = process.env.PROXY_HOSTS;

export const TINY_TRANSFER_MAX_COST = 0.01;

export const LANG_CACHE_NAME = 'mtw-lang-63';
export const LANG_CACHE_NAME = 'mtw-lang-64';

export const LANG_LIST: LangItem[] = [{
langCode: 'en',
Expand Down
4 changes: 2 additions & 2 deletions src/global/actions/api/staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ addActionHandler('submitStakingPassword', async (global, actions, payload) => {

if (!result) {
actions.showDialog({
message: 'Unstaking was unsuccessful. Try again later',
message: 'Unstaking was unsuccessful. Try again later.',
});
global = getGlobal();

Expand All @@ -198,7 +198,7 @@ addActionHandler('submitStakingPassword', async (global, actions, payload) => {

if (!result) {
actions.showDialog({
message: 'Staking was unsuccessful. Try again later',
message: 'Staking was unsuccessful. Try again later.',
});

global = getGlobal();
Expand Down
4 changes: 2 additions & 2 deletions src/global/actions/ui/initial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ addActionHandler('showError', (global, actions, { error } = {}) => {
break;

case ApiTransactionError.UnsuccesfulTransfer:
actions.showDialog({ message: 'Transfer was unsuccessful. Try again later' });
actions.showDialog({ message: 'Transfer was unsuccessful. Try again later.' });
break;

case ApiTransactionError.UnsupportedHardwareOperation:
actions.showDialog({ message: 'Unfortunately, this operation is not yet supported by Ledger wallet' });
actions.showDialog({ message: 'Unfortunately, this operation is not yet supported by Ledger wallet.' });
break;

case ApiCommonError.ServerError:
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ About: Über
Exit: Beenden
Remove Wallet: Wallet entfernen
Something went wrong.: Etwas ist schiefgegangen.
Something went wrong: Etwas ist schiefgegangen
Logo: Logo
$about_description1: Kryptowährungen sicher speichern, dezentrale Apps erkunden und Blockchain-Zahlungen mit der **Geschwindigkeit des Lichts** durchführen.
$about_description2: Die wallet ist **nicht treuhänderisch und sicher**. Die Entwickler haben **keinen** Zugriff auf Ihre Gelder, Browserverlauf oder andere Informationen.
Expand Down Expand Up @@ -245,9 +246,9 @@ Staked: Gestakt
Unstake Requested: Unstaking angefordert
Unstaked: Ungestakt
The network fee has slightly changed, try sending again.: Die Netzwerkgebühr hat sich geringfügig geändert, versuchen Sie es erneut zu senden.
Transfer was unsuccessful. Try again later: Die Überweisung war nicht erfolgreich. Versuchen Sie es später erneut.
Unstaking was unsuccessful. Try again later: Das unstaken war nicht erfolgreich. Versuchen Sie es später erneut.
Staking was unsuccessful. Try again later: Das Staken war nicht erfolgreich. Versuchen Sie es später erneut.
Transfer was unsuccessful. Try again later.: Die Überweisung war nicht erfolgreich. Versuchen Sie es später erneut.
Unstaking was unsuccessful. Try again later.: Das unstaken war nicht erfolgreich. Versuchen Sie es später erneut.
Staking was unsuccessful. Try again later.: Das Staken war nicht erfolgreich. Versuchen Sie es später erneut.
Invalid amount: Ungültiger Betrag
Invalid address: Ungültige Adresse
Domain is not connected to a wallet: Die Domain ist nicht mit einer Wallet verbunden.
Expand Down Expand Up @@ -340,7 +341,7 @@ Message is encrypted.: Die Nachricht ist verschlüsselt.
$dapp_ledger_warning1: Sie sind dabei, eine Mehrweg-Transaktion mit Ihrer **Ledger**-Wallet durchzuführen. Sie müssen jede zugrunde liegende Transaktion **manuell nacheinander** signieren.
$dapp_ledger_warning2: Bitte nehmen Sie sich Zeit und unterbrechen Sie den Prozess nicht.
Agree: Zustimmen
Unfortunately, this operation is not yet supported by Ledger wallet: Die Hardware-Wallet unterstützt dieses Datenformat nicht
Unfortunately, this operation is not yet supported by Ledger wallet.: Die Hardware-Wallet unterstützt dieses Datenformat nicht.
Swap: Tausch
You sell: Sie verkaufen
You buy: Sie kaufen
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ About: About
Exit: Exit
Remove Wallet: Remove Wallet
Something went wrong.: Something went wrong.
Something went wrong: Something went wrong
Logo: Logo
$about_description1: Securely store crypto, explore decentralized apps, and make blockchain payments at the **speed of light**.
$about_description2: The wallet is **non-custodial and safe**. The developers **do not** have access to your funds, browser history or any other information.
Expand Down Expand Up @@ -243,9 +244,9 @@ Staked: Staked
Unstake Requested: Unstake Requested
Unstaked: Unstaked
The network fee has slightly changed, try sending again.: The network fee has slightly changed, try sending again.
Transfer was unsuccessful. Try again later: Transfer was unsuccessful. Try again later
Unstaking was unsuccessful. Try again later: Unstaking was unsuccessful. Try again later
Staking was unsuccessful. Try again later: Staking was unsuccessful. Try again later
Transfer was unsuccessful. Try again later.: Transfer was unsuccessful. Try again later.
Unstaking was unsuccessful. Try again later.: Unstaking was unsuccessful. Try again later.
Staking was unsuccessful. Try again later.: Staking was unsuccessful. Try again later.
Invalid amount: Invalid amount
Invalid address: Invalid address
Domain is not connected to a wallet: Domain is not connected to a wallet
Expand Down Expand Up @@ -337,7 +338,7 @@ Message is encrypted.: Message is encrypted.
$dapp_ledger_warning1: You are about to send a multi-way transaction using your **Ledger** wallet. You will need to sign each underlying transaction **one by one manually**.
$dapp_ledger_warning2: Please take your time and do not interrupt the process.
Agree: Agree
Unfortunately, this operation is not yet supported by Ledger wallet: Unfortunately, this operation is not yet supported by Ledger wallet
Unfortunately, this operation is not yet supported by Ledger wallet.: Unfortunately, this operation is not yet supported by Ledger wallet.
Swap: Swap
You sell: You sell
You buy: You buy
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ About: Acerca de
Exit: Salir
Remove Wallet: Salir
Something went wrong.: Oops! Algo salió mal.
Something went wrong: Oops! Algo salió mal
Logo: Logotipo
$about_description1: Almacene criptomonedas de forma segura, explore aplicaciones descentralizadas y realice pagos blockchain a la **velocidad de la luz**.
$about_description2: Un monedero **sin custodia y seguro**. Los desarrolladores **no** tienen acceso a sus activos, historial del navegador o cualquier otra información.
Expand Down Expand Up @@ -242,9 +243,9 @@ Staked: Apostado
Unstake Requested: Retiro solicitado
Unstaked: Retirado
The network fee has slightly changed, try sending again.: La comisión de red ha cambiado ligeramente, inténtalo de nuevo.
Transfer was unsuccessful. Try again later: La transferencia no tuvo éxito. Inténtalo de nuevo más tarde
Unstaking was unsuccessful. Try again later: El retiro no tuvo éxito. Inténtalo de nuevo más tarde
Staking was unsuccessful. Try again later: El staking no tuvo éxito. Inténtalo de nuevo más tarde
Transfer was unsuccessful. Try again later.: La transferencia no tuvo éxito. Inténtalo de nuevo más tarde.
Unstaking was unsuccessful. Try again later.: El retiro no tuvo éxito. Inténtalo de nuevo más tarde.
Staking was unsuccessful. Try again later.: El staking no tuvo éxito. Inténtalo de nuevo más tarde.
Invalid amount: Cantidad no válida
Invalid address: Dirección no válida
Domain is not connected to a wallet: El dominio no está conectado a un monedero
Expand Down Expand Up @@ -337,7 +338,7 @@ Message is encrypted.: El mensaje está encriptado.
$dapp_ledger_warning1: Estás a punto de enviar una transacción multi-direccional utilizando tu monedero **Ledger**. Necesitarás firmar cada transacción subyacente **una por una manualmente**.
$dapp_ledger_warning2: Por favor, tómate tu tiempo y no interrumpas el proceso.
Agree: Aceptar
Unfortunately, this operation is not yet supported by Ledger wallet: Desafortunadamente, esta operación aún no es compatible con Ledger wallet
Unfortunately, this operation is not yet supported by Ledger wallet.: Desafortunadamente, esta operación aún no es compatible con Ledger wallet.
Swap: Intercambiar
You sell: Usted vende
You buy: Usted compra
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/ru.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ About: О MyTonWallet
Exit: Выйти
Remove Wallet: Выход
Something went wrong.: Упс, что-то пошло не так.
Something went wrong: Упс, что-то пошло не так
Logo: Логотип
$about_description1: Безопасно храните криптовалюту, пользуйтесь децентрализованными приложениями и совершайте платежи в блокчейне **со скоростью света**.
$about_description2: Кошелёк **управляется только вами**. Разработчики **не имеют доступа** к вашим средствам, истории браузера или любой другой информации.
Expand Down Expand Up @@ -238,9 +239,9 @@ Staked: Стейкинг
Unstake Requested: Запрос депозита
Unstaked: Вывод стейка
The network fee has slightly changed, try sending again.: Комиссия за сеть немного изменилась, попробуйте отправить ещё раз.
Transfer was unsuccessful. Try again later: С переводом что-то пошло не так. Попробуйте ещё раз.
Unstaking was unsuccessful. Try again later: Не удалось вывести депозит. Попробуйте ещё раз.
Staking was unsuccessful. Try again later: Не удалось внести депозит. Попробуйте ещё раз.
Transfer was unsuccessful. Try again later.: С переводом что-то пошло не так. Попробуйте ещё раз.
Unstaking was unsuccessful. Try again later.: Не удалось вывести депозит. Попробуйте ещё раз.
Staking was unsuccessful. Try again later.: Не удалось внести депозит. Попробуйте ещё раз.
Invalid amount: Некорректная сумма
Invalid address: Некорректный адрес
Domain is not connected to a wallet: Домен не подключён к кошельку
Expand Down Expand Up @@ -332,7 +333,7 @@ Message is encrypted.: Сообщение зашифровано.
$dapp_ledger_warning1: Вы собираетесь отправить многоадресную транзакцию, используя свой кошелёк **Ledger**. Вам нужно будет подписать каждую базовую транзакцию **по одной вручную**.
$dapp_ledger_warning2: Пожалуйста, не торопитесь и не прерывайте процесс.
Agree: Согласен
Unfortunately, this operation is not yet supported by Ledger wallet: К сожалению, эта операция еще не поддерживается Ledger кошельком
Unfortunately, this operation is not yet supported by Ledger wallet.: К сожалению, эта операция еще не поддерживается Ledger кошельком.
Swap: Обмен
You sell: Вы продаёте
You buy: Вы покупаете
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/tr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ About: Hakkında
Exit: Çıkış
Remove Wallet: Cüzdanı kaldırın
Something went wrong.: Bir şeyler ters gitti.
Something went wrong: Bir şeyler ters gitti
Logo: Logo
$about_description1: Kriptoyu güvenle saklayın, merkeziyetsiz uygulamaları keşfedin ve **ışık hızında** blok zinciri ödemeleri yapın.
$about_description2: Cüzdan **non-custodial ve güvenli** bir cüzdandır. Geliştiricilerin paranıza, tarayıcı geçmişinize veya diğer bilgilerinize erişimi **yoktur**.
Expand Down Expand Up @@ -244,9 +245,9 @@ Staked: Stake edildi
Unstake Requested: Unstake talep edildi
Unstaked: Unstake gerçekleşti
The network fee has slightly changed, try sending again.: Ağ ücreti bir miktar değişti, tekrar göndermeyi deneyin.
Transfer was unsuccessful. Try again later: Transfer başarısız oldu. Daha sonra tekrar deneyin
Unstaking was unsuccessful. Try again later: Unstake işlemi başarısız oldu. Daha sonra tekrar deneyin
Staking was unsuccessful. Try again later: Staking işlemi başarısız oldu. Daha sonra tekrar deneyin
Transfer was unsuccessful. Try again later.: Transfer başarısız oldu. Daha sonra tekrar deneyin.
Unstaking was unsuccessful. Try again later.: Unstake işlemi başarısız oldu. Daha sonra tekrar deneyin.
Staking was unsuccessful. Try again later.: Staking işlemi başarısız oldu. Daha sonra tekrar deneyin.
Invalid amount: Geçersiz tutar
Invalid address: Geçersiz adres
Domain is not connected to a wallet: Alan adı bir cüzdana bağlı değil
Expand Down Expand Up @@ -338,7 +339,7 @@ Message is encrypted.: Mesaj şifrelenmiştir.
$dapp_ledger_warning1: "**Ledger** cüzdanınızı kullanarak çok yönlü bir işlem göndermek üzeresiniz. İlgili her işlemi **tek tek manuel olarak** imzalamanız gerekecektir."
$dapp_ledger_warning2: Lütfen acele etmeyin ve süreci kesintiye uğratmayın.
Agree: Kabul et
Unfortunately, this operation is not yet supported by Ledger wallet: Donanım cüzdanı bu veri biçimini desteklemiyor
Unfortunately, this operation is not yet supported by Ledger wallet.: Donanım cüzdanı bu veri biçimini desteklemiyor.
Swap: Takas
You sell: Satıyorsunuz
You buy: Alıyorsunuz
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/zh-Hans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Settings: 设置
About: 关于
Exit: 离开
Remove Wallet: 离开
Something went wrong.: 什么地方出错了···
Something went wrong: 什么地方出错了···
Logo: Logo
$about_description1: 安全地存储加密货币,探索 dAPP 并以**光速**进行区块链支付
Expand Down Expand Up @@ -232,9 +233,9 @@ at APY %1$s%: 当前年回报率 %1$s%
Staked: 已质押
Unstaked: 已解除质押
The network fee has slightly changed, try sending again.: 网络费用已有细微变动,请尝试重新发送。
Transfer was unsuccessful. Try again later: 转账未成功。请稍等片刻并再试一次
Unstaking was unsuccessful. Try again later: 解除质押未成功。请稍等片刻并再试一次
Staking was unsuccessful. Try again later: 质押未成功。请稍等片刻并再试一次
Transfer was unsuccessful. Try again later.: 转账未成功。请稍等片刻并再试一次
Unstaking was unsuccessful. Try again later.: 解除质押未成功。请稍等片刻并再试一次
Staking was unsuccessful. Try again later.: 质押未成功。请稍等片刻并再试一次
Invalid amount: 非法数额
Invalid address: 非法地址
Domain is not connected to a wallet: 此域名没有链接至任何钱包地址
Expand Down Expand Up @@ -323,7 +324,7 @@ Message is encrypted.: 消息已加密。
$dapp_ledger_warning1: 您即将使用您的**Ledger**钱包发送多方交易。您需要手动**逐个**签署每笔底层交易。
$dapp_ledger_warning2: 请慢慢来,不要中断过程。
Agree: 同意
Unfortunately, this operation is not yet supported by Ledger wallet: 不幸的是,该操作尚未由Ledger Wallet支持
Unfortunately, this operation is not yet supported by Ledger wallet.: 不幸的是,该操作尚未由Ledger Wallet支持
Swap: 交换
You sell: 您卖出
You buy: 您购买
Expand Down
Loading

0 comments on commit 95d939a

Please sign in to comment.