Skip to content

Commit

Permalink
feat: add Polter Testnet and Geist chains (#2994)
Browse files Browse the repository at this point in the history
* chore: add polter testnet and geist

* chore: formatting

* Update index.ts

* add pure

* add pure

---------

Co-authored-by: jxom <[email protected]>
  • Loading branch information
cinnabarhorse and jxom authored Nov 11, 2024
1 parent 63b8769 commit 82633bd
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-carpets-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Polter Testnet and Geist Mainnet
28 changes: 28 additions & 0 deletions src/chains/definitions/geist.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const geist = /*#__PURE__*/ defineChain({
id: 63157,
name: 'Geist Mainnet',
nativeCurrency: {
decimals: 18,
name: 'Aavegotchi GHST Token',
symbol: 'GHST',
},
rpcUrls: {
default: {
http: ['https://geist-mainnet.g.alchemy.com/public'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://geist-mainnet.explorer.alchemy.com',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 660735,
},
},
})
29 changes: 29 additions & 0 deletions src/chains/definitions/polterTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const polterTestnet = /*#__PURE__*/ defineChain({
id: 631571,
name: 'Polter Testnet',
nativeCurrency: {
decimals: 18,
name: 'Polter GHST',
symbol: 'GHST',
},
rpcUrls: {
default: {
http: ['https://geist-polter.g.alchemy.com/public'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://polter-testnet.explorer.alchemy.com',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 11245,
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export { fuseSparknet } from './definitions/fuseSparknet.js'
export { fusion } from './definitions/fusion.js'
export { fusionTestnet } from './definitions/fusionTestnet.js'
export { garnet } from './definitions/garnet.js'
export { geist } from './definitions/geist.js'
export { genesys } from './definitions/genesys.js'
export { glideL1Protocol } from './definitions/glideL1Protocol.js'
export { glideL2Protocol } from './definitions/glideL2Protocol.js'
Expand Down Expand Up @@ -291,6 +292,7 @@ export { phoenix } from './definitions/phoenix.js'
export { playfiAlbireo } from './definitions/playfiAlbireo.js'
export { plinga } from './definitions/plinga.js'
export { plumeTestnet } from './definitions/plumeTestnet.js'
export { polterTestnet } from './definitions/polterTestnet.js'
export { polygon } from './definitions/polygon.js'
export { polygonAmoy } from './definitions/polygonAmoy.js'
export { polygonMumbai } from './definitions/polygonMumbai.js'
Expand Down

0 comments on commit 82633bd

Please sign in to comment.