Skip to content

Commit

Permalink
feat: added assetchain mainnet (wevm#2800)
Browse files Browse the repository at this point in the history
* feat: added assetchain mainnet

* Update lovely-pillows-shave.md

* Update lovely-pillows-shave.md

---------

Co-authored-by: jxom <[email protected]>
  • Loading branch information
CeoFred and jxom authored Oct 1, 2024
1 parent 0f83248 commit be02ea5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-pillows-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const assetChain = /*#__PURE__*/ defineChain({
id: 42_420,
name: 'AssetChain Mainnet',
nativeCurrency: {
decimals: 18,
name: 'Real World Asset',
symbol: 'RWA',
},
rpcUrls: {
default: { http: ['https://mainnet-rpc.assetchain.org'] },
},
blockExplorers: {
default: {
name: 'Asset Chain Explorer',
url: 'https://scan.assetchain.org',
apiUrl: 'https://scan.assetchain.org/api',
},
},
testnet: false,
contracts: {},
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export { apexTestnet } from './definitions/apexTestnet.js'
export { arbitrum } from './definitions/arbitrum.js'
export { arbitrumGoerli } from './definitions/arbitrumGoerli.js'
export { arbitrumNova } from './definitions/arbitrumNova.js'
export { assetChain } from './definitions/assetChain.js'
export { assetChainTestnet } from './definitions/assetChainTestnet.js'
export { astar } from './definitions/astar.js'
export { astarZkEVM } from './definitions/astarZkEVM.js'
Expand Down

0 comments on commit be02ea5

Please sign in to comment.