Skip to content

Commit

Permalink
feat: add Polynomial network (#3359)
Browse files Browse the repository at this point in the history
  • Loading branch information
mubaris authored Feb 18, 2025
1 parent 8c62103 commit 5998188
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-hats-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const polynomial = /*#__PURE__*/ defineChain({
id: 8008,
name: 'Polynomial',
nativeCurrency: {
decimals: 18,
name: 'Ether',
symbol: 'ETH',
},
rpcUrls: {
default: {
http: ['https://rpc.polynomial.fi'],
},
},
blockExplorers: {
default: {
name: 'Polynomial Scan',
url: 'https://polynomialscan.io',
},
},
testnet: false,
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
},
},
})
28 changes: 28 additions & 0 deletions src/chains/definitions/polynomialSepolia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const polynomialSepolia = /*#__PURE__*/ defineChain({
id: 80008,
name: 'Polynomia Sepolia',
nativeCurrency: {
decimals: 18,
name: 'Ether',
symbol: 'ETH',
},
rpcUrls: {
default: {
http: ['https://rpc.sepolia.polynomial.fi'],
},
},
blockExplorers: {
default: {
name: 'Polynomial Scan',
url: 'https://sepolia.polynomialscan.io',
},
},
testnet: true,
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
},
},
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ export { polygonZkEvm } from './definitions/polygonZkEvm.js'
export { polygonZkEvmCardona } from './definitions/polygonZkEvmCardona.js'
/** @deprecated Use `polygonZkEvmCardona` instead. */
export { polygonZkEvmTestnet } from './definitions/polygonZkEvmTestnet.js'
export { polynomial } from './definitions/polynomial.js'
export { polynomialSepolia } from './definitions/polynomialSepolia.js'
export { premiumBlockTestnet } from './definitions/premiumBlock.js'
export { pulsechain } from './definitions/pulsechain.js'
export { pulsechainV4 } from './definitions/pulsechainV4.js'
Expand Down

0 comments on commit 5998188

Please sign in to comment.