forked from blockscout/frontend
-
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.
Merge pull request #29 from codingknite/wvm-archiver
wvm archiver
- Loading branch information
Showing
10 changed files
with
297 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
interface Props { | ||
address: string | undefined; | ||
} | ||
|
||
const wvmNetworks = [ | ||
{ | ||
archive_pool_address: '0x0000000000000000000000000000000000000000', | ||
archiver_address: '0xE5e289FC97C63f64B1EC5e061d7f176e02eBE5A0', | ||
backfill_address: '', | ||
block_time: 2.0, | ||
name: 'GOATDev', | ||
network_chain_id: 2345, | ||
network_rpc: 'http://3.15.141.150:8545', | ||
start_block: 20902, | ||
wvm_chain_id: 9496, | ||
wvm_rpc: 'https://testnet-rpc.wvm.dev', | ||
}, | ||
{ | ||
archive_pool_address: '0xa2A0D977847805fE224B789D8C4d3D711ab251e7', | ||
archiver_address: '0x197f818c1313DC58b32D88078ecdfB40EA822614', | ||
backfill_address: '0x123463a4B065722E99115D6c222f267d9cABb524', | ||
block_time: 9.0, | ||
name: 'Metis', | ||
network_chain_id: 1088, | ||
network_rpc: 'https://andromeda.metis.io/?owner=1088', | ||
start_block: 18574702, | ||
wvm_chain_id: 9496, | ||
wvm_rpc: 'https://testnet-rpc.wvm.dev', | ||
}, | ||
{ | ||
archive_pool_address: '0x0000000000000000000000000000000000000000', | ||
archiver_address: '0xA6dC883ea2A6acb576A933B4d38D13d6069d9fBE', | ||
backfill_address: '', | ||
block_time: 2.0, | ||
name: 'RSS3 VSL Mainnet', | ||
network_chain_id: 12553, | ||
network_rpc: 'https://rpc.rss3.io', | ||
start_block: 6888111, | ||
wvm_chain_id: 9496, | ||
wvm_rpc: 'https://testnet-rpc.wvm.dev', | ||
}, | ||
{ | ||
archive_pool_address: '0x0000000000000000000000000000000000000000', | ||
archiver_address: '0x2D76d7B140d078C575eAAD109168c606FE9d506C', | ||
backfill_address: '0x55dA54ee977FBe734d5250F0558bc4B2FBe36b2a', | ||
block_time: 0.38999998569488525, | ||
name: 'SEI', | ||
network_chain_id: 1329, | ||
network_rpc: 'https://evm-rpc.sei-apis.com', | ||
start_block: 105238600, | ||
wvm_chain_id: 9496, | ||
wvm_rpc: 'https://testnet-rpc.wvm.dev', | ||
}, | ||
]; | ||
|
||
export function useWvmArchiver({ address }: Props) { | ||
const isWvmNetwork = wvmNetworks.find((network) => network.archiver_address === address); | ||
|
||
if (isWvmNetwork) { | ||
return true; | ||
} | ||
|
||
return false; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { TagLabel, Tooltip } from '@chakra-ui/react'; | ||
import React from 'react'; | ||
|
||
import Tag from 'ui/shared/chakra/Tag'; | ||
import IconSvg from 'ui/shared/IconSvg'; | ||
|
||
const WvmArchiverTag = () => { | ||
|
||
return ( | ||
<Tooltip> | ||
<Tag | ||
color="#fff" | ||
backgroundColor="#52224D" | ||
display="flex" | ||
padding="2px 5px" | ||
> | ||
<IconSvg name="gear_slim" boxSize={ 2.5 } mr={ 1 } flexShrink={ 0 }/> | ||
<TagLabel display="block">wvm-archiver</TagLabel> | ||
</Tag> | ||
</Tooltip> | ||
); | ||
}; | ||
|
||
export default WvmArchiverTag; |
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
Oops, something went wrong.