viem
Version:
41 lines (38 loc) • 941 B
text/typescript
import { defineChain } from '../../utils/chain/defineChain.js'
import { chainConfig } from '../opStack/chainConfig.js'
const sourceId = 1 // mainnet
export const optimism = /*#__PURE__*/ defineChain({
...chainConfig,
id: 10,
name: 'OP Mainnet',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://mainnet.optimism.io'],
},
},
blockExplorers: {
default: {
name: 'Optimism Explorer',
url: 'https://explorer.optimism.io',
},
},
contracts: {
...chainConfig.contracts,
l2OutputOracle: {
[sourceId]: {
address: '0xdfe97868233d1aa22e815a266982f2cf17685a27',
},
},
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 4286263,
},
portal: {
[sourceId]: {
address: '0xbEb5Fc579115071764c7423A4f12eDde41f106Ed',
},
},
},
sourceId,
})