Skip to content

Commit

Permalink
feat: add newton mainnet (#3358)
Browse files Browse the repository at this point in the history
* feat: add Newton Mainnet

* Clean code
  • Loading branch information
Yutaro-Mori-eng authored Feb 18, 2025
1 parent 6489a72 commit 8c62103
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-beds-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const newton = /*#__PURE__*/ defineChain({
id: 1012,
name: 'Newton',
nativeCurrency: {
name: 'Newton',
symbol: 'NEW',
decimals: 18,
},
rpcUrls: {
default: {
http: ['hhttps://global.rpc.mainnet.newtonproject.org'],
},
},
blockExplorers: {
default: {
name: 'NewFi explorer',
url: 'https://explorer.newtonproject.org/',
},
},
testnet: false,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ export { neonDevnet } from './definitions/neonDevnet.js'
export { neonMainnet } from './definitions/neonMainnet.js'
export { neoxMainnet } from './definitions/neoxMainnet.js'
export { neoxT4 } from './definitions/neoxT4.js'
export { newton } from './definitions/newton.js'
export { nexi } from './definitions/nexi.js'
export { nexilix } from './definitions/nexilix.js'
export { oasisTestnet } from './definitions/oasisTestnet.js'
Expand Down

0 comments on commit 8c62103

Please sign in to comment.