Skip to content

Commit

Permalink
feat: add Funki Mainnet (#2513)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangtan282 authored Jul 22, 2024
1 parent 3354c46 commit 3af06fe
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-shrimps-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Add Funki Mainnet
38 changes: 38 additions & 0 deletions src/chains/definitions/funkiMainnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { chainConfig } from '../../op-stack/chainConfig.js'
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 1 // mainnet

export const funkiMainnet = /*#__PURE__*/ defineChain({
...chainConfig,
id: 33979,
network: 'funkiMainnet',
name: 'Funki',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc-mainnet.funkichain.com'],
},
},
blockExplorers: {
default: {
name: 'Funki Mainnet Explorer',
url: 'https://funkiscan.io',
},
},
contracts: {
...chainConfig.contracts,
l2OutputOracleProxy: {
[sourceId]: {
address: '0x1A9aE6486caEc0504657351ac473B3dF8A1367cb',
},
},
l1StandardBridge: {
[sourceId]: {
address: '0x64F1e21412f61e9Ceda3b65FcFC5A4739c7eBBeE',
blockCreated: 20325722,
},
},
},
sourceId,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export { flowTestnet } from './definitions/flowTestnet.js'
export { foundry } from './definitions/foundry.js'
export { fraxtal } from './definitions/fraxtal.js'
export { fraxtalTestnet } from './definitions/fraxtalTestnet.js'
export { funkiMainnet } from './definitions/funkiMainnet.js'
export { funkiSepolia } from './definitions/funkiSepolia.js'
export { fuse } from './definitions/fuse.js'
export { fuseSparknet } from './definitions/fuseSparknet.js'
Expand Down

0 comments on commit 3af06fe

Please sign in to comment.