-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update blockchains: Evm (Blast mainnet) and more.
- Loading branch information
1 parent
b1d4760
commit c5f39f9
Showing
19 changed files
with
115 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"><link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"><link rel="manifest" href="/viz/manifest.json"><link rel="shortcut icon" href="/viz/favicon.ico"><title>React App</title><link href="/viz/static/css/main.173761dc.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/viz/static/js/main.ccd184a3.js"></script></body></html> | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"><link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"><link rel="manifest" href="/viz/manifest.json"><link rel="shortcut icon" href="/viz/favicon.ico"><title>React App</title><link href="/viz/static/css/main.173761dc.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/viz/static/js/main.afeb7326.js"></script></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"title": "Мост Blast testnet", | ||
"description": "Мост в и из Blast testnet.", | ||
"in_menu": "Мост Blast testnet", | ||
"category": "no_category" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php if (!defined('NOTLOAD')) exit('No direct script access allowed'); | ||
return '<div> | ||
<h2>2. Перевод</h2> | ||
<form> | ||
<p><label for="eth_amount">Сумма в ETH</label><br> | ||
<input type="number" min = "0" id = "eth_amount"><br> | ||
<input type="button" onclick="setMaxAmount()" value="Максимум"></p> | ||
<p><button id="run_send" onclick="sendEth()">Перевести в <span id="chain_name"></span></button></p> | ||
</form> | ||
</div>'; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php if (!defined('NOTLOAD')) exit('No direct script access allowed'); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const contracts = { | ||
"11155111": "0xc644cc19d2A9388b71dd1dEde07cFFC73237Dca8" | ||
} | ||
|
||
let contract; | ||
|
||
var toAddress = contracts[chain_id]; | ||
|
||
async function sendEth() { | ||
toAddress = contracts[chain_id]; | ||
const ethAmountInput = document.getElementById("eth_amount"); | ||
const ethAmount = ethAmountInput.value; | ||
|
||
if (!ethAmount || ethAmount <= 0) { | ||
alert("Введите корректную сумму ETH"); | ||
return; | ||
} | ||
|
||
try { | ||
const transaction = await signer.sendTransaction({ | ||
to: toAddress, | ||
value: ethers.utils.parseEther(ethAmount), | ||
}); | ||
|
||
console.log("Transaction hash:", transaction.hash); | ||
alert("Транзакция отправлена. Хеш: " + transaction.hash); | ||
|
||
// Очистить поле ввода после успешной транзакции | ||
ethAmountInput.value = ""; | ||
} catch (error) { | ||
console.error("Error:", error.message); | ||
alert("Ошибка при отправке транзакции: " + error.message); | ||
} | ||
} | ||
|
||
async function setMaxAmount() { | ||
|
||
// Получить баланс аккаунта | ||
const balance = await signer.getBalance(); | ||
|
||
// Оценить предполагаемую комиссию (может потребоваться подбирать значение в зависимости от условий сети) | ||
const gasPrice = await provider.getGasPrice(); | ||
const estimatedGasLimit = 21000; // Стандартный лимит газа для перевода | ||
const estimatedGasCost = gasPrice.mul(estimatedGasLimit); | ||
const maxAmount = ethers.utils.formatEther(balance.sub(estimatedGasCost)); | ||
|
||
// Установить максимальную сумму в поле ввода | ||
document.getElementById("eth_amount").value = maxAmount; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"evm":{"name":"EVM","services":{"games":{"name":"Игры","rockPaperScissors":"Камень, ножницы, бумага"},"no_category":{"name":"","create-token":"Создать токен","token-miner":"Токен-майнеры"}}},"rubic":{"name":"Кроссчейн обмен", "services": {}},"steem":{"name":"Steem","services":{"no_category":{"name":"","wallet":"Кошелёк","profiles":"Профили","accounts":"Аккаунты","manage":"Управление","explorer":"Explorer","help":"Справка","post":"Редактор"},"tools":{"name":"Инструменты","swap":"Swap","backup":"Бекап постов","calc":"Калькулятор","randomblockchain":"ГСЧ"}}},"minter":{"services":{"no_category":{"name":"","long":"LONG","explorer":"Explorer","wallet":"кошелёк","accounts":"Аккаунты","help":"Справка","my-coin":"Моя монета","profiles":"Профили","randomblockchain":"ГСЧ","swap":"Swap","validators":"Валидаторы"},"tools":{"name":"Инструменты","broadcast":"Broadcast"}},"name":"Minter"},"viz":{"services":{"reytings":{"name":"Рейтинги","witnesses-rewards":"Делегаты","top":"Пользователи"},"no_category":{"name":"","accounts":"Аккаунты","profiles":"Профили","projects":"Проекты","wallet":"Кошелёк"},"tools":{"name":"Инструменты","awards":"Награждение","calc":"Калькулятор","custom-generator":"JSON-генератор","manage":"Управление","polls":"Опросы","randomblockchain":"ГСЧ","search":"Viz-links","vmp":"vmp","voice-import":"Импорт в Voice"},"info":{"name":"Информация","analytics":"Аналитика","exchanges":"Обмен VIZ","explorer":"Explorer","help":"Справка"}}},"hive":{"name":"Hive","services":{"no_category":{"name":"","accounts":"Аккаунты","manage":"Управление","post":"Редактор","profiles":"Профили","wallet":"Кошелёк"},"tools":{"name":"Инструменты","backup":"Бекап постов","calc":"Калькулятор","randomblockchain":"ГСЧ","swap":"Swap"}}},"cyber":{"name":"Cyber","services":{"no_category":{"name":"","accounts":"Аккаунты","explorer":"Explorer","profiles":"Профили","validators":"Валидаторы","wallet":"Кошелёк","help":"Справка"},"tools":{"name":"Инструменты","ipfs":"IPFS","linker":"Линкер","randomblockchain":"ГСЧ"}}},"decimal":{"services":{"no_category":{"name":"","wallet":"кошелёк","accounts":"Аккаунты","explorer":"Explorer","profiles":"Профили","randomblockchain":"ГСЧ","validators":"Валидаторы"}},"name":"decimal"},"golos":{"services":{"tools":{"name":"Инструменты","post":"Редактор","api":"API","backup":"Бекап постов","calc":"Калькулятор","donate":"Донат","escrow":"Escrow","import":"Импорт статьи","instant-view":"Instant view","manage":"Управление","polls":"Опросы","randomblockchain":"ГСЧ","swap":"Swap"},"no_category":{"name":"","profiles":"Профили","accounts":"Аккаунты","explorer":"Explorer","help":"Справка","wallet":"кошелёк"},"reytings":{"name":"Рейтинги","activities":"Активность","donates":"Донаты","referrers":"Рефереры","top":"Пользователи","witnesses-rewards":"Делегаты"},"games":{"name":"Игры","stakebot":"Stake_bot"}},"name":"Golos"},"serey":{"services":{"no_category":{"name":"","wallet":"Кошелёк","accounts":"Аккаунты","manage":"Управление","profiles":"Профили"},"reytings":{"name":"Рейтинги","activities":"Активность","top":"Пользователи","witnesses-rewards":"Делегаты"},"tools":{"name":"Инструменты","backup":"Бекап постов","calc":"Калькулятор","randomblockchain":"ГСЧ"}}}} | ||
{"evm":{"name":"EVM","services":{"games":{"name":"Игры","rockPaperScissors":"Камень, ножницы, бумага"},"no_category":{"name":"","create-token":"Создать токен","token-miner":"Токен-майнеры","blast-bridge":"Мост Blast sepolia"}}},"rubic":{"name":"Кроссчейн обмен", "services": {}},"steem":{"name":"Steem","services":{"no_category":{"name":"","wallet":"Кошелёк","profiles":"Профили","accounts":"Аккаунты","manage":"Управление","explorer":"Explorer","help":"Справка","post":"Редактор"},"tools":{"name":"Инструменты","swap":"Swap","backup":"Бекап постов","calc":"Калькулятор","randomblockchain":"ГСЧ"}}},"minter":{"services":{"no_category":{"name":"","long":"LONG","explorer":"Explorer","wallet":"кошелёк","accounts":"Аккаунты","help":"Справка","my-coin":"Моя монета","profiles":"Профили","randomblockchain":"ГСЧ","swap":"Swap","validators":"Валидаторы"},"tools":{"name":"Инструменты","broadcast":"Broadcast"}},"name":"Minter"},"viz":{"services":{"reytings":{"name":"Рейтинги","witnesses-rewards":"Делегаты","top":"Пользователи"},"no_category":{"name":"","accounts":"Аккаунты","profiles":"Профили","projects":"Проекты","wallet":"Кошелёк"},"tools":{"name":"Инструменты","awards":"Награждение","calc":"Калькулятор","custom-generator":"JSON-генератор","manage":"Управление","polls":"Опросы","randomblockchain":"ГСЧ","search":"Viz-links","vmp":"vmp","voice-import":"Импорт в Voice"},"info":{"name":"Информация","analytics":"Аналитика","exchanges":"Обмен VIZ","explorer":"Explorer","help":"Справка"}}},"hive":{"name":"Hive","services":{"no_category":{"name":"","accounts":"Аккаунты","manage":"Управление","post":"Редактор","profiles":"Профили","wallet":"Кошелёк"},"tools":{"name":"Инструменты","backup":"Бекап постов","calc":"Калькулятор","randomblockchain":"ГСЧ","swap":"Swap"}}},"cyber":{"name":"Cyber","services":{"no_category":{"name":"","accounts":"Аккаунты","explorer":"Explorer","profiles":"Профили","validators":"Валидаторы","wallet":"Кошелёк","help":"Справка"},"tools":{"name":"Инструменты","ipfs":"IPFS","linker":"Линкер","randomblockchain":"ГСЧ"}}},"decimal":{"services":{"no_category":{"name":"","wallet":"кошелёк","accounts":"Аккаунты","explorer":"Explorer","profiles":"Профили","randomblockchain":"ГСЧ","validators":"Валидаторы"}},"name":"decimal"},"golos":{"services":{"tools":{"name":"Инструменты","post":"Редактор","api":"API","backup":"Бекап постов","calc":"Калькулятор","donate":"Донат","escrow":"Escrow","import":"Импорт статьи","instant-view":"Instant view","manage":"Управление","polls":"Опросы","randomblockchain":"ГСЧ","swap":"Swap"},"no_category":{"name":"","profiles":"Профили","accounts":"Аккаунты","explorer":"Explorer","help":"Справка","wallet":"кошелёк"},"reytings":{"name":"Рейтинги","activities":"Активность","donates":"Донаты","referrers":"Рефереры","top":"Пользователи","witnesses-rewards":"Делегаты"},"games":{"name":"Игры","stakebot":"Stake_bot"}},"name":"Golos"},"serey":{"services":{"no_category":{"name":"","wallet":"Кошелёк","accounts":"Аккаунты","manage":"Управление","profiles":"Профили"},"reytings":{"name":"Рейтинги","activities":"Активность","top":"Пользователи","witnesses-rewards":"Делегаты"},"tools":{"name":"Инструменты","backup":"Бекап постов","calc":"Калькулятор","randomblockchain":"ГСЧ"}}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters