Skip to content

Commit

Permalink
feat: add op stack contracts to alfajores (wevm#2798)
Browse files Browse the repository at this point in the history
* include block created for op contracts

* revert update to op goerli

* Update olive-panthers-flow.md

---------

Co-authored-by: jxom <[email protected]>
  • Loading branch information
aaronmgdr and jxom authored Sep 30, 2024
1 parent b27b438 commit 0f83248
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-panthers-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added OP Stack contracts to Celo Alfajores.
2 changes: 2 additions & 0 deletions src/celo/chainConfig.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { contracts } from '../op-stack/contracts.js'
import { fees } from './fees.js'
import { formatters } from './formatters.js'
import { serializers } from './serializers.js'

export const chainConfig = {
contracts,
formatters,
serializers,
fees,
Expand Down
34 changes: 31 additions & 3 deletions src/chains/definitions/celoAlfajores.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { chainConfig } from '../../celo/chainConfig.js'
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 17000 // holsky
// source https://storage.googleapis.com/cel2-rollup-files/alfajores/deployment-l1.json

export const celoAlfajores = /*#__PURE__*/ defineChain({
...chainConfig,
id: 44_787,
Expand All @@ -17,16 +20,41 @@ export const celoAlfajores = /*#__PURE__*/ defineChain({
},
blockExplorers: {
default: {
name: 'Celo Explorer',
url: 'https://explorer.celo.org/alfajores',
apiUrl: 'https://explorer.celo.org/api',
name: 'Celo Alfajores Explorer',
url: 'https://celo-alfajores.blockscout.com',
apiUrl: 'https://celo-alfajores.blockscout.com/api',
},
},
contracts: {
...chainConfig.contracts,
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 14569001,
},
portal: {
[sourceId]: {
address: '0x82527353927d8D069b3B452904c942dA149BA381',
blockCreated: 2411324,
},
},
disputeGameFactory: {
[sourceId]: {
address: '0xE28AAdcd9883746c0e5068F58f9ea06027b214cb',
blockCreated: 2411324,
},
},
l2OutputOracle: {
[sourceId]: {
address: '0x4a2635e9e4f6e45817b1D402ac4904c1d1752438',
blockCreated: 2411324,
},
},
l1StandardBridge: {
[sourceId]: {
address: '0xD1B0E0581973c9eB7f886967A606b9441A897037',
blockCreated: 2411324,
},
},
},
testnet: true,
})

0 comments on commit 0f83248

Please sign in to comment.