Skip to content

Commit

Permalink
Update @revoke.cash/chains
Browse files Browse the repository at this point in the history
  • Loading branch information
rkalis committed Jul 26, 2023
1 parent afc4afb commit 890bb47
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@amplitude/analytics-browser": "^1.2.3",
"@heroicons/react": "^2.0.13",
"@metamask/post-message-stream": "^5.0.0",
"@revoke.cash/chains": "^8.0.0",
"@revoke.cash/chains": "^9.0.0",
"eth-rpc-errors": "^4.0.3",
"ethers": "^5.6.9",
"extension-port-stream": "^2.0.1",
Expand Down
8 changes: 6 additions & 2 deletions src/lib/utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,14 @@ export const getChainName = (chainId: number): string => {
[ChainId.PolygonzkEVMTestnet]: 'Polygon zkEVM Testnet',
[ChainId.PulseChain]: 'PulseChain',
[ChainId.PulseChainTestnetv4]: 'PulseChain Testnet',
[ChainId.Linea]: 'Linea',
[ChainId.LineaTestnet]: 'Linea Goerli',
[ChainId.ScrollAlphaTestnet]: 'Scroll Alpha',
[ChainId.BaseGoerliTestnet]: 'Base Goerli',
[ChainId.RedlightChainMainnet]: 'Redlight',
[ChainId.GatherMainnetNetwork]: 'Gather',
[ChainId.GatherTestnetNetwork]: 'Gather Testnet',
[ChainId['Taiko(Alpha-3Testnet)']]: 'Taiko Alpha',
[ChainId.TaikoGrimsvotnL2]: 'Taiko Grimsvotn',
[ChainId.CoreBlockchainMainnet]: 'CORE',
[ChainId.KCCMainnet]: 'KCC',
[ChainId.ShimmerEVMTestnet]: 'Shimmer Testnet',
Expand Down Expand Up @@ -104,14 +105,15 @@ export const getChainExplorerUrl = (chainId: number): string | undefined => {
[ChainId.PolygonzkEVMTestnet]: 'https://testnet-zkevm.polygonscan.com',
[ChainId.PulseChain]: 'https://scan.pulsechain.com',
[ChainId.PulseChainTestnetv4]: 'https://scan.v4.testnet.pulsechain.com',
[ChainId.LineaTestnet]: 'https://explorer.goerli.linea.build',
[ChainId.LineaTestnet]: 'https://goerli.lineascan.build',
[ChainId.OasysMainnet]: 'https://scan.oasys.games',
[ChainId.OptimismGoerliTestnet]: 'https://goerli-optimism.etherscan.io',
[ChainId.FuseMainnet]: 'https://explorer.fuse.io',
[ChainId.CallistoMainnet]: 'https://explorer.callisto.network',
[ChainId.GodwokenMainnet]: 'https://www.gwscan.com',
[ChainId.Wanchain]: 'https://www.wanscan.org',
[ChainId.Canto]: 'https://tuber.build',
[ChainId.Linea]: 'https://lineascan.build',
};

const [explorer] = chains.get(chainId)?.explorers ?? [];
Expand All @@ -137,6 +139,8 @@ export const getChainRpcUrl = (chainId: number): string | undefined => {
[ChainId.LineaTestnet]: `https://linea-goerli.infura.io/v3/${infuraKey}`,
[ChainId.CoreBlockchainMainnet]: 'https://rpc-core.icecreamswap.com',
[ChainId.Base]: 'https://developer-access-mainnet.base.org',
[ChainId.Canto]: 'https://mainnode.plexnode.org:8545',
[ChainId.Linea]: `https://linea-mainnet.infura.io/v3/${infuraKey}`,
};

const [rpcUrl] = chains.get(chainId)?.rpc ?? [];
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1080,10 +1080,10 @@ __metadata:
languageName: node
linkType: hard

"@revoke.cash/chains@npm:^8.0.0":
version: 8.0.0
resolution: "@revoke.cash/chains@npm:8.0.0"
checksum: 336ba9afe41df1dc2b10c1c3adeec83259bbdba20059a7b9aae553c080b9db98416801b7635a3b8209d59a89362417b0cfa9b372ffecd2cc09f6ef7944eb38c5
"@revoke.cash/chains@npm:^9.0.0":
version: 9.0.0
resolution: "@revoke.cash/chains@npm:9.0.0"
checksum: 5a0c342c6d33f10ee176b29862d1e65e61afabb99bc9501a40748f14d2bdfeb1025503e971db6bc10b078eb3929733a01941c22dddb0d7444ccb6b0d3d8c59b3
languageName: node
linkType: hard

Expand Down Expand Up @@ -7519,7 +7519,7 @@ __metadata:
"@heroicons/react": ^2.0.13
"@localazy/cli": ^1.7.1
"@metamask/post-message-stream": ^5.0.0
"@revoke.cash/chains": ^8.0.0
"@revoke.cash/chains": ^9.0.0
"@types/chrome": ^0.0.191
"@types/object-hash": ^2.2.1
"@types/react": ^17.0.0
Expand Down

0 comments on commit 890bb47

Please sign in to comment.