Skip to content

Commit 37873ad

Browse files
committed
Improve VersionTable
remove unused genesisfile reference, add evm chain id
1 parent f396f57 commit 37873ad

File tree

3 files changed

+9
-42
lines changed

3 files changed

+9
-42
lines changed

content/evm/installing-seid-cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To install seid, locate the version you wish to use [here](https://github.com/se
2323

2424
<div id="binary-versions" className="w-full mt-4 mb-6 px-1">
2525
<div className="overflow-hidden rounded-lg border border-neutral-200 dark:border-neutral-800">
26-
<VersionTable showGenesis={false} />
26+
<VersionTable />
2727
</div>
2828
</div>
2929

content/node/index.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import Link from 'next/link';
5353
<div id="binary-versions" className="w-full">
5454
<h2 className="text-2xl font-bold text-neutral-800 dark:text-neutral-100 mb-4">Network Versions</h2>
5555
<div className="overflow-hidden rounded-lg border border-neutral-200 dark:border-neutral-800">
56-
<VersionTable showGenesis={false} />
56+
<VersionTable />
5757
</div>
5858
</div>
5959

@@ -252,9 +252,7 @@ For more information see [here](https://pkg.go.dev/cmd/go#hdr-GOPATH_environment
252252
<div className="mb-4">
253253
<h5 className="text-lg font-semibold text-neutral-800 dark:text-neutral-200 mb-3 mt-4">Initialize Chain Files</h5>
254254

255-
<Callout type="info">
256-
Default init mode is **full** (RPC/P2P bind to all interfaces). For **validator** or **seed** nodes, use `--mode validator` or `--mode seed` so RPC and P2P bind to localhost only. See the [Validator Operations Guide](/node/validators) for the full validator init example.
257-
</Callout>
255+
<Callout type="info">Default init mode is **full** (RPC/P2P bind to all interfaces). For **validator** or **seed** nodes, use `--mode validator` or `--mode seed` so RPC and P2P bind to localhost only. See the [Validator Operations Guide](/node/validators) for the full validator init example.</Callout>
258256

259257
Peers can be found here -
260258

src/components/VersionFetcher/VersionTable.tsx

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,39 @@
11
'use client';
22

3-
import React, { useState, useEffect } from 'react';
3+
import React, { useState } from 'react';
44
import VersionFetcher from './VersionFetcher';
5-
import { CopyButton } from '../CopyButton';
65

7-
interface VersionTableProps {
8-
showGenesis?: boolean;
9-
}
10-
11-
const VersionTable: React.FC<VersionTableProps> = ({ showGenesis = true }) => {
6+
const VersionTable: React.FC = () => {
127
const [mainnetVersion, setMainnetVersion] = useState('');
138
const [testnetVersion, setTestnetVersion] = useState('');
149

15-
useEffect(() => {
16-
console.log('showGenesis prop:', showGenesis);
17-
}, [showGenesis]);
18-
1910
return (
2011
<>
2112
<VersionFetcher chainId='pacific-1' rpcEndpoint='https://rpc.sei-apis.com' setVersion={setMainnetVersion} />
22-
<VersionFetcher chainId='atlantic-2' rpcEndpoint='https://rpc.atlantic-2.seinetwork.io' setVersion={setTestnetVersion} />
13+
<VersionFetcher chainId='atlantic-2' rpcEndpoint='https://rpc-testnet.sei-apis.com/' setVersion={setTestnetVersion} />
2314

2415
<table className='min-w-full divide-y divide-neutral-200 dark:divide-neutral-800'>
2516
<thead className='bg-neutral-50 dark:bg-neutral-900/50'>
2617
<tr>
2718
<th className='px-4 py-3 text-left text-sm font-medium text-neutral-900 dark:text-neutral-100'>Network</th>
2819
<th className='px-4 py-3 text-left text-sm font-medium text-neutral-900 dark:text-neutral-100'>Version</th>
2920
<th className='px-4 py-3 text-left text-sm font-medium text-neutral-900 dark:text-neutral-100'>Chain ID</th>
30-
{showGenesis && <th className='px-4 py-3 text-left text-sm font-medium text-neutral-900 dark:text-neutral-100'>Genesis File</th>}
21+
<th className='px-4 py-3 text-left text-sm font-medium text-neutral-900 dark:text-neutral-100'>EVM Chain ID</th>
3122
</tr>
3223
</thead>
3324
<tbody className='divide-y divide-neutral-200 dark:divide-neutral-800 bg-neutral-50 dark:bg-neutral-900/30'>
3425
<tr>
3526
<td className='px-4 py-3 text-sm font-medium text-neutral-900 dark:text-neutral-100'>Mainnet</td>
3627
<td className='px-4 py-3 text-sm text-neutral-600 dark:text-neutral-400'>{mainnetVersion || 'Fetching...'}</td>
3728
<td className='px-4 py-3 text-sm text-neutral-600 dark:text-neutral-400'>pacific-1</td>
38-
{showGenesis && (
39-
<td className='px-4 py-3 text-sm'>
40-
<div className='inline-flex items-center space-x-2'>
41-
<a
42-
href='https://raw.githubusercontent.com/sei-protocol/testnet/refs/heads/main/pacific-1/genesis.json'
43-
className='text-red-600 hover:text-red-800 dark:text-red-300 dark:hover:text-red-200 bg-red-50 hover:bg-red-100 dark:bg-red-900/20 dark:hover:bg-red-900/30 px-2 py-0.5 rounded'>
44-
Genesis
45-
</a>
46-
<CopyButton textToCopy='https://raw.githubusercontent.com/sei-protocol/testnet/refs/heads/main/pacific-1/genesis.json' />
47-
</div>
48-
</td>
49-
)}
29+
<td className='px-4 py-3 text-sm text-neutral-600 dark:text-neutral-400'>1329</td>
5030
</tr>
5131

5232
<tr>
5333
<td className='px-4 py-3 text-sm font-medium text-neutral-900 dark:text-neutral-100'>Testnet</td>
5434
<td className='px-4 py-3 text-sm text-neutral-600 dark:text-neutral-400'>{testnetVersion || 'Fetching...'}</td>
5535
<td className='px-4 py-3 text-sm text-neutral-600 dark:text-neutral-400'>atlantic-2</td>
56-
{showGenesis && (
57-
<td className='px-4 py-3 text-sm'>
58-
<div className='inline-flex items-center space-x-2'>
59-
<a
60-
href='https://raw.githubusercontent.com/sei-protocol/testnet/refs/heads/main/atlantic-2/genesis.json'
61-
className='text-red-600 hover:text-red-800 dark:text-red-300 dark:hover:text-red-200 bg-red-50 hover:bg-red-100 dark:bg-red-900/20 dark:hover:bg-red-900/30 px-2 py-0.5 rounded'>
62-
Genesis
63-
</a>
64-
<CopyButton textToCopy='https://raw.githubusercontent.com/sei-protocol/testnet/refs/heads/main/atlantic-2/genesis.json' />
65-
</div>
66-
</td>
67-
)}
36+
<td className='px-4 py-3 text-sm text-neutral-600 dark:text-neutral-400'>1328</td>
6837
</tr>
6938
</tbody>
7039
</table>

0 commit comments

Comments
 (0)