SHA256
Solana RPC gateway для клиента и сервера
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { getSolanaCluster } from '../services/solana-rpc-gateway.js';
|
||||
import { createTopBar } from '../components/topbar.js';
|
||||
import { iconHtml } from '../components/ui-icon.js';
|
||||
import {
|
||||
@@ -51,23 +52,13 @@ function getExplorerClusterName(endpoint) {
|
||||
}
|
||||
|
||||
function isTestRegistrationContour() {
|
||||
const solanaCluster = getExplorerClusterName(state.entrySettings.solanaServer);
|
||||
if (solanaCluster !== 'mainnet-beta') return true;
|
||||
const shineServer = String(state.entrySettings.shineServer || '').trim().toLowerCase();
|
||||
const shineServerLogin = String(state.entrySettings.shineServerLogin || '').trim().toLowerCase();
|
||||
return (
|
||||
shineServer.includes('t1.shineup.me')
|
||||
|| shineServer.includes('t2.shineup.me')
|
||||
|| shineServer.includes('t3.shineup.me')
|
||||
|| shineServer.includes('t4.shineup.me')
|
||||
|| ['t1', 't2', 't3', 't4'].includes(shineServerLogin)
|
||||
);
|
||||
return getSolanaCluster() === 'devnet';
|
||||
}
|
||||
|
||||
function makeSolanaExplorerTxUrl(signature, endpoint) {
|
||||
const cleanSignature = String(signature || '').trim();
|
||||
if (!cleanSignature) return '';
|
||||
const cluster = getExplorerClusterName(endpoint);
|
||||
const cluster = getSolanaCluster() || getExplorerClusterName(endpoint);
|
||||
const url = new URL(`https://explorer.solana.com/tx/${encodeURIComponent(cleanSignature)}`);
|
||||
if (cluster !== 'mainnet-beta') {
|
||||
url.searchParams.set('cluster', cluster);
|
||||
|
||||
Reference in New Issue
Block a user