Skip to content

Commit

Permalink
feat: add 0G Newton Testnet (#3324)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yutaro-Mori-eng authored Feb 9, 2025
1 parent 01a74e9 commit 0a32b1e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-poems-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const zeroG = /*#__PURE__*/ defineChain({
id: 16_600,
name: '0G Newton Testnet',
nativeCurrency: { name: 'A0GI', symbol: 'A0GI', decimals: 18 },
rpcUrls: {
default: {
http: ['https://evmrpc-testnet.0g.ai'],
},
},
blockExplorers: {
default: {
name: '0G BlockChain Explorer',
url: 'https://chainscan-newton.0g.ai',
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ export { yooldoVerse } from './definitions/yooldoVerse.js'
export { yooldoVerseTestnet } from './definitions/yooldoVerseTestnet.js'
export { zenchainTestnet } from './definitions/zenchainTestnet.js'
export { zeniq } from './definitions/zeniq.js'
export { zeroG } from './definitions/0g.js'
export { zetachain } from './definitions/zetachain.js'
export { zetachainAthensTestnet } from './definitions/zetachainAthensTestnet.js'
export { zhejiang } from './definitions/zhejiang.js'
Expand Down

0 comments on commit 0a32b1e

Please sign in to comment.