Skip to content

Commit

Permalink
Add Arthera
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatyana Stemkovski committed May 21, 2024
1 parent d25f3a7 commit 8d487a4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/crypto/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export enum ChainId {
Polygon = 137,
Mumbai = 80001,
Arbitrum = 42161,
Arthera = 10242,
Avalanche = 43114,
Base = 8453,
Blast = 81457,
Expand Down Expand Up @@ -114,7 +115,7 @@ export const SUPPORTED_NETWORKS: SupportedNetworkList = {
chainId: ChainId.Arbitrum,
name: 'Arbitrum',
color: 'linear-gradient(90deg, rgba(161,128,217,1) 0%, rgba(130,71,229,1) 100%)',
icon: generateIconUrl(ChainId.Polygon, 'svg'),
icon: generateIconUrl(ChainId.Arbitrum, 'svg'),
env: 'mainnet',
scanLink: 'arbiscan.io',
scanName: 'Arbiscan',
Expand All @@ -127,11 +128,28 @@ export const SUPPORTED_NETWORKS: SupportedNetworkList = {
}
}
},
[ChainId.Arthera]: {
chainId: ChainId.Arthera,
name: 'Arthera',
color: 'linear-gradient(90deg, rgba(161,128,217,1) 0%, rgba(130,71,229,1) 100%)',
icon: generateIconUrl(ChainId.Arthera, 'svg'),
env: 'mainnet',
scanLink: 'explorer.arthera.net',
scanName: 'Arthera explorer',
coingecko: '',
rpc: {
rpcUrl: `https://rpc.arthera.net`,
nativeCurrency: {
symbol: 'AA',
name: 'AA'
}
}
},
[ChainId.Avalanche]: {
chainId: ChainId.Avalanche,
name: 'Avalanche',
color: 'linear-gradient(90deg, rgba(161,128,217,1) 0%, rgba(130,71,229,1) 100%)',
icon: generateIconUrl(ChainId.Polygon, 'svg'),
icon: generateIconUrl(ChainId.Avalanche, 'svg'),
env: 'mainnet',
scanLink: 'snowtrace.io',
scanName: 'Snowtrace',
Expand Down
7 changes: 7 additions & 0 deletions src/crypto/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ export const providerCacheReference: Record<ChainId, ProviderCache> = {
cacheHit: 0,
cacheMiss: 0
},
[ChainId.Arthera]: {
lastUdated: 0,
cacheHit: 0,
cacheMiss: 0
},
[ChainId.Base]: {
lastUdated: 0,
cacheHit: 0,
Expand Down Expand Up @@ -230,6 +235,8 @@ const getRpcEnvName = (chainId: ChainId): EnvUtils.EnvName => {
return EnvUtils.EnvName.MAINNET_RPC_HOSTS;
case ChainId.Goerli:
return EnvUtils.EnvName.GOERLI_RPC_HOSTS;
case ChainId.Arthera:
return EnvUtils.EnvName.ARTHERA_RPC_HOSTS;
case ChainId.Base:
return EnvUtils.EnvName.BASE_RPC_HOSTS;
case ChainId.Blast:
Expand Down
2 changes: 2 additions & 0 deletions src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export namespace EnvUtils {
CHAIN_SRC = 'CHAIN_SRC',
MAINNET_RPC_HOSTS = 'MAINNET_RPC_HOSTS',
GOERLI_RPC_HOSTS = 'GOERLI_RPC_HOSTS',
ARTHERA_RPC_HOSTS = 'ARTHERA_RPC_HOSTS',
BASE_RPC_HOSTS = 'BASE_RPC_HOSTS',
BLAST_RPC_HOSTS = 'BLAST_RPC_HOSTS',
BSC_RPC_HOSTS = 'BSC_RPC_HOSTS',
Expand Down Expand Up @@ -37,6 +38,7 @@ export namespace EnvUtils {
GATSBY_CHAIN_SRC = 'GATSBY_CHAIN_SRC',
GATSBY_MAINNET_RPC_HOSTS = 'GATSBY_MAINNET_RPC_HOSTS',
GATSBY_GOERLI_RPC_HOSTS = 'GATSBY_GOERLI_RPC_HOSTS',
GATSBY_ARTHERA_RPC_HOSTS = 'GATSBY_ARTHERA_RPC_HOSTS',
GATSBY_BASE_RPC_HOSTS = 'GATSBY_BASE_RPC_HOSTS',
GATSBY_BLAST_RPC_HOSTS = 'GATSBY_BLAST_RPC_HOSTS',
GATSBY_BSC_RPC_HOSTS = 'GATSBY_BSC_RPC_HOSTS',
Expand Down

0 comments on commit 8d487a4

Please sign in to comment.