Skip to content

Commit

Permalink
feat: add Ape Chain (#2893)
Browse files Browse the repository at this point in the history
* Add Ape Chain

* Update stupid-pears-wink.md

---------

Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
akshatmittal and jxom authored Oct 20, 2024
1 parent 8e45821 commit 6219548
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/stupid-pears-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

const sourceId = 42_161 // Arbitrum One

export const apeChain = /*#__PURE__*/ defineChain({
id: 33139,
name: 'Ape Chain',
nativeCurrency: {
name: 'ApeCoin',
symbol: 'APE',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://rpc.apechain.com/http'],
webSocket: ['wss://rpc.apechain.com/ws'],
},
},
blockExplorers: {
default: {
name: 'Apescan',
url: 'https://apescan.io',
apiUrl: 'https://api.apescan.io',
},
},
contracts: {
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 20889,
},
},
sourceId,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export { alienxHalTestnet } from './definitions/alienXHalTestnet.js'
export { ancient8 } from './definitions/ancient8.js'
export { ancient8Sepolia } from './definitions/ancient8Sepolia.js'
export { anvil } from './definitions/anvil.js'
export { apeChain } from './definitions/apeChain.js'
export { apexTestnet } from './definitions/apexTestnet.js'
export { arbitrum } from './definitions/arbitrum.js'
export { arbitrumGoerli } from './definitions/arbitrumGoerli.js'
Expand Down

0 comments on commit 6219548

Please sign in to comment.