diff --git a/public/svg/Shardeum.svg b/public/svg/Shardeum.svg new file mode 100644 index 0000000000..61930c7f2a --- /dev/null +++ b/public/svg/Shardeum.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + diff --git a/src/components/Faucets.js b/src/components/Faucets.js index 73a43f9461..e7249383d4 100644 --- a/src/components/Faucets.js +++ b/src/components/Faucets.js @@ -70,6 +70,13 @@ const Faucets = () => { title: "Fuse Sparknet Faucet", function: () => {}, link: "https://chaindrop.org/?chainid=123&token=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + { + id: "8082", + value: "Shardeum", + title: "Shardeum Testnet", + function: () => {}, + link: "https://chaindrop.org/?chainid=8082&token=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" } ]; diff --git a/src/components/VerifyAlias.js b/src/components/VerifyAlias.js index 1565d9ec11..78b1026eb2 100644 --- a/src/components/VerifyAlias.js +++ b/src/components/VerifyAlias.js @@ -55,6 +55,10 @@ const VerifyAlias = ({ aliasEthAccount, setAliasVerified }) => { 123: { label: "Fuse SPARK", url: "https://chaindrop.org/?chainid=123&token=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + }, + 8082: { + label: "Testnet SHM", + url: "https://chaindrop.org/?chainid=8082&token=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" } } diff --git a/src/config/config-dev.js b/src/config/config-dev.js index 61f964515e..708a37e6f6 100644 --- a/src/config/config-dev.js +++ b/src/config/config-dev.js @@ -29,7 +29,8 @@ export const config = { 420, // optimism goerli testnet 1442, // polygon zkevm testnet 421613, // arbitrum testnet - 123 // fuse testnet + 123, // fuse testnet + 8082 // shardeum testnet ], /** @@ -177,5 +178,12 @@ export const CHAIN_DETAILS = { chainId: 123, rpcUrl: 'https://rpc.fusespark.io', commAddress: '0x7eBb54D86CF928115965DB596a3E600404dD8039' + }, + 8082: { + label: "Shardeum Testnet", + name: "SHARDEUM_TESTNET", + chainId: 8082, + rpcUrl: 'https://sphinx.shardeum.org/', + commAddress: '0x9cb3bd7550b5c92baa056fc0f08132f49508145f' } } \ No newline at end of file diff --git a/src/config/config-staging.js b/src/config/config-staging.js index b139ce91d2..c3af86635d 100644 --- a/src/config/config-staging.js +++ b/src/config/config-staging.js @@ -30,7 +30,8 @@ export const config = { 420, // optimism goerli testnet 1442, // polygon zkevm testnet 421613, // arbitrum testnet - 123 // fuse testnet + 123, // fuse testnet + 8082 // shardeum testnet ], /** @@ -168,5 +169,12 @@ export const CHAIN_DETAILS = { chainId: 123, rpcUrl: 'https://rpc.fusespark.io', commAddress: '0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa' + }, + 8082: { + label: "Shardeum Testnet", + name: "SHARDEUM_TESTNET", + chainId: 8082, + rpcUrl: 'https://sphinx.shardeum.org/', + commAddress: '0x3a680290a18f3000973d04d6d1c6f91a7294f27a' } } \ No newline at end of file diff --git a/src/connectors/chains.ts b/src/connectors/chains.ts index 70ffcd8d44..a6d6c44ead 100644 --- a/src/connectors/chains.ts +++ b/src/connectors/chains.ts @@ -39,6 +39,12 @@ const SPARK: AddEthereumChainParameter['nativeCurrency'] = { decimals: 18, } +const SHM: AddEthereumChainParameter['nativeCurrency'] = { + name: 'SHM', + symbol: 'SHM', + decimals: 18, +} + interface BasicChainInformation { urls: string[] name: string @@ -179,6 +185,12 @@ export const TESTNET_CHAINS: ChainConfig = { urls: ['https://rpc.fusespark.io'], nativeCurrency: SPARK, blockExplorerUrls: ['https://explorer.fusespark.io/'], + }, + 8082: { + name: "Shardeum Testnet", + urls: ['https://sphinx.shardeum.org/'], + nativeCurrency: SHM, + blockExplorerUrls: ['https://explorer-sphinx.shardeum.org/'], } } diff --git a/src/helpers/CaipHelper.ts b/src/helpers/CaipHelper.ts index 3f177da32e..6a235fe129 100644 --- a/src/helpers/CaipHelper.ts +++ b/src/helpers/CaipHelper.ts @@ -1,7 +1,7 @@ // Internal Configs import { appConfig } from '../config'; -export const Eip155EnabledIds: Array = [1, 56, 137, 10, 1101, 42161, 11155111, 97, 80001, 420, 1442, 421613, 122, 123]; +export const Eip155EnabledIds: Array = [1, 56, 137, 10, 1101, 42161, 11155111, 97, 80001, 420, 1442, 421613, 122, 123, 8082]; // Types type CAIPProps = { diff --git a/src/helpers/UtilityHelper.ts b/src/helpers/UtilityHelper.ts index 03cf1b017b..751d7778bb 100644 --- a/src/helpers/UtilityHelper.ts +++ b/src/helpers/UtilityHelper.ts @@ -52,7 +52,8 @@ export const MaskedAliasChannels:{ 42161: {}, 421613: {}, 122: {}, - 123: {} + 123: {}, + 8082: {} } export const findObject = (data: any,parentArray: any[],property: string ): boolean => { @@ -116,7 +117,8 @@ export const networkName = { 42161: "ArbitrumOne Mainnet", 421613: "Arbitrum Testnet", 122: "Fuse Mainnet", - 123: "Fuse Testnet" + 123: "Fuse Testnet", + 8082: "Shardeum Testnet" }; export const chainNameBackendStandard = { @@ -139,7 +141,8 @@ export const aliasChainIdToChainName={ 1101: "POLYGONZKEVM", 1442: "POLYGONZKEVM", 122: "FUSE", - 123: "FUSE" + 123: "FUSE", + 8082: "SHARDEUM" } export const aliasChainIdsMapping = { @@ -233,6 +236,13 @@ export const NETWORK_DETAILS = { nativeCurrency: {name: 'Fuse', symbol: 'Fuse', decimals: 18}, rpcUrls: ['https://rpc.fuse.io'], blockExplorerUrls: [' https://explorer.fuse.io/'] + }, + SHARDEUM_TESTNET: { + chainId: utils.hexValue(8082), + chainName: 'Shardeum Testnet', + nativeCurrency: {name: 'SHM', symbol: 'SHM', decimals: 18}, + rpcUrls: ['https://sphinx.shardeum.org/'], + blockExplorerUrls: ['https://explorer-sphinx.shardeum.org/'] } }; @@ -255,7 +265,8 @@ export const LOGO_FROM_CHAIN_ID: { 421613: "Arbitrum.svg", 11155111: "Ethereum.svg", 122: "Fuse.svg", - 123: "Fuse.svg" + 123: "Fuse.svg", + 8082: "Shardeum.svg" } export type getAliasResponseType = {