Skip to content

Commit 014aad6

Browse files
Eteriaiojxom
andauthored
feat: add Eteria (#3907)
* Add files via upload * Update eteria.ts * Update eteria.ts * Update index.ts * Create weak-cougars-sin.md * Update eteria.ts * Update weak-cougars-sin.md * Update index.ts --------- Co-authored-by: jxom <[email protected]>
1 parent d4104d3 commit 014aad6

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.changeset/weak-cougars-sin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
Added Eteria chain.

src/chains/definitions/eteria.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const eteria = /*#__PURE__*/ defineChain({
4+
id: 140,
5+
name: 'Eteria',
6+
nativeCurrency: { name: 'Eteria', symbol: 'ERA', decimals: 18 },
7+
rpcUrls: {
8+
default: {
9+
http: ['https://mainnet.eteria.io/v1'],
10+
},
11+
},
12+
blockExplorers: {
13+
default: {
14+
name: 'Eteria Explorer',
15+
url: 'https://explorer.eteria.io',
16+
apiUrl: 'https://explorer.eteria.io/api',
17+
},
18+
}
19+
})

src/chains/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ export { enuls } from './definitions/enuls.js'
164164
export { eon } from './definitions/eon.js'
165165
export { eos } from './definitions/eos.js'
166166
export { eosTestnet } from './definitions/eosTestnet.js'
167+
export { eteria } from './definitions/eteria.js'
167168
export { etherlink } from './definitions/etherlink.js'
168169
export { etherlinkTestnet } from './definitions/etherlinkTestnet.js'
169170
export { ethernity } from './definitions/ethernity.js'

0 commit comments

Comments
 (0)