Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
feat: add EOS EVM and EOS EVM testnet (#375)
Browse files Browse the repository at this point in the history
* feat(chains): add eos and eos testnet

* export chains

* add changeset
  • Loading branch information
DenisCarriere authored Jul 2, 2023
1 parent d642e1d commit 97dbd44
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/seven-snakes-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/chains": minor
---

Added EOS EVM and EOS EVM Testnet chains
2 changes: 2 additions & 0 deletions packages/chains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const { chains, provider } = configureChains(
- `cronosTestnet`
- `edgeware`
- `edgewareTestnet`
- `eos`
- `eosTestnet`
- `fantom`
- `fantomTestnet`
- `foundry`
Expand Down
26 changes: 26 additions & 0 deletions packages/chains/src/eos.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { Chain } from './types'

export const eos = {
id: 17777,
name: 'EOS EVM',
network: 'eos',
nativeCurrency: {
decimals: 18,
name: 'EOS',
symbol: 'EOS',
},
rpcUrls: {
default: { http: ['https://api.evm.eosnetwork.com'] },
public: { http: ['https://api.evm.eosnetwork.com'] },
},
blockExplorers: {
etherscan: {
name: 'EOS EVM Explorer',
url: 'https://explorer.evm.eosnetwork.com',
},
default: {
name: 'EOS EVM Explorer',
url: 'https://explorer.evm.eosnetwork.com',
},
},
} as const satisfies Chain
27 changes: 27 additions & 0 deletions packages/chains/src/eosTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Chain } from './types'

export const eosTestnet = {
id: 15557,
name: 'EOS EVM Testnet',
network: 'eos',
nativeCurrency: {
decimals: 18,
name: 'EOS',
symbol: 'EOS',
},
rpcUrls: {
default: { http: ['https://api.testnet.evm.eosnetwork.com'] },
public: { http: ['https://api.testnet.evm.eosnetwork.com'] },
},
blockExplorers: {
etherscan: {
name: 'EOS EVM Testnet Explorer',
url: 'https://explorer.testnet.evm.eosnetwork.com',
},
default: {
name: 'EOS EVM Testnet Explorer',
url: 'https://explorer.testnet.evm.eosnetwork.com',
},
},
testnet: true,
} as const satisfies Chain
2 changes: 2 additions & 0 deletions packages/chains/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export { dfk } from './dfk'
export { dogechain } from './dogechain'
export { edgeware } from './edgeware'
export { edgewareTestnet } from './edgewareTestnet'
export { eos } from './eos'
export { eosTestnet } from './eosTestnet'
export { evmos } from './evmos'
export { evmosTestnet } from './evmosTestnet'
export { ekta } from './ekta'
Expand Down

0 comments on commit 97dbd44

Please sign in to comment.