Skip to content

Commit

Permalink
feat: add Areon Network (#2015)
Browse files Browse the repository at this point in the history
* Create areonNetwork.ts

* Update index.ts

* Create areonNetworkTestnet.ts

* Create lovely-windows-cheer.md

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
emrahsky and jxom committed Mar 26, 2024
1 parent 660a920 commit b3b989f
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-windows-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Areon chain.
20 changes: 20 additions & 0 deletions src/chains/definitions/areonNetwork.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const areonNetwork = defineChain({
id: 463,
name: 'Areon Network',
nativeCurrency: { decimals: 18, name: 'AREA', symbol: 'AREA' },
rpcUrls: {
default: {
http: ['https://mainnet-rpc.areon.network'],
webSocket: ['wss://mainnet-ws.areon.network'],
},
},
blockExplorers: {
default: {
name: 'Areonscan',
url: 'https://areonscan.com',
},
},
testnet: false,
})
20 changes: 20 additions & 0 deletions src/chains/definitions/areonNetworkTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const areonNetwork = defineChain({
id: 462,
name: 'Areon Network Testnet',
nativeCurrency: { decimals: 18, name: 'TAREA', symbol: 'TAREA' },
rpcUrls: {
default: {
http: ['https://testnet-rpc.areon.network'],
webSocket: ['wss://testnet-ws.areon.network'],
},
},
blockExplorers: {
default: {
name: 'Areonscan',
url: 'https://areonscan.com',
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export { astar } from './definitions/astar.js'
export { astarZkEVM } from './definitions/astarZkEVM.js'
export { astarZkyoto } from './definitions/astarZkyoto.js'
export { arbitrumSepolia } from './definitions/arbitrumSepolia.js'
export { areonNetwork } from './definitions/areonNetwork.js'
export { areonNetworkTestnet } from './definitions/areonNetworkTestnet.js'

Check failure on line 16 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Release canary

Module '"./definitions/areonNetworkTestnet.js"' has no exported member 'areonNetworkTestnet'.

Check failure on line 16 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Test Environments (node-20)

Module '"./definitions/areonNetworkTestnet.js"' has no exported member 'areonNetworkTestnet'.

Check failure on line 16 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Test Environments (tsc)

Module '"./definitions/areonNetworkTestnet.js"' has no exported member 'areonNetworkTestnet'.
export { astarZkatana } from './definitions/astarZkatana.js'
export { aurora } from './definitions/aurora.js'
export { auroraTestnet } from './definitions/auroraTestnet.js'
Expand Down

0 comments on commit b3b989f

Please sign in to comment.