Skip to content

Commit

Permalink
feat(chains): add Artela Testnet chain (#2479)
Browse files Browse the repository at this point in the history
* feat: add Artela Testnet chain

* Update dry-mirrors-remain.md

---------

Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
keyding and jxom committed Jul 6, 2024
1 parent 662d7d9 commit 5028b3f
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dry-mirrors-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Artela Testnet chain.
1 change: 0 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

export const artelaTestnet = /*#__PURE__*/ defineChain({
id: 11822,
name: 'Artela Testnet',
nativeCurrency: { name: 'ART', symbol: 'ART', decimals: 18 },
rpcUrls: {
default: {
http: ['https://betanet-rpc1.artela.network'],
},
},
blockExplorers: {
default: {
name: 'Artela',
url: 'https://betanet-scan.artela.network',
apiUrl: 'https://betanet-scan.artela.network/api',
},
},
contracts: {
multicall3: {
address: '0xd07c8635f76e8745Ee7092fbb6e8fbc5FeF09DD7',
blockCreated: 7001871,
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export { astarZkyoto } from './definitions/astarZkyoto.js'
export { arbitrumSepolia } from './definitions/arbitrumSepolia.js'
export { areonNetwork } from './definitions/areonNetwork.js'
export { areonNetworkTestnet } from './definitions/areonNetworkTestnet.js'
export { artelaTestnet } from './definitions/artelaTestnet.js'
export { aurora } from './definitions/aurora.js'
export { auroraTestnet } from './definitions/auroraTestnet.js'
export { auroria } from './definitions/auroria.js'
Expand Down

0 comments on commit 5028b3f

Please sign in to comment.