Обновить настройки серверов и выбор Solana RPC

This commit is contained in:
AidarKC
2026-12-05 18:07:01 +03:00
parent 5664da6fc1
commit 37a04dde4d
16 changed files with 240 additions and 145 deletions
-17
View File
@@ -246,20 +246,3 @@ export async function refreshDeviceBalance({ endpoint, deviceAddress, targetNode
setText(targetNode, `Баланс device: ${formatSol(balance.sol, 6)} SOL (${balance.lamports} lamports)`);
return balance;
}
export function buildDevnetTopupUrl(walletAddress) {
const cleanWallet = String(walletAddress || '').trim();
const url = new URL('../devnet-topup-view', window.location.href);
if (cleanWallet) {
url.searchParams.set('wallet', cleanWallet);
}
return url.toString();
}
export function openDevnetTopup(walletAddress) {
const cleanWallet = String(walletAddress || '').trim();
if (!cleanWallet) {
throw new Error('Сначала укажите device-адрес');
}
window.open(buildDevnetTopupUrl(cleanWallet), '_blank', 'noopener');
}