Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade alfajores to op #2714

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nasty-doors-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

update celo alfajores chain to include op contract addresses
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'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for easier review this is

const contracts = {
  gasPriceOracle: { address: '0x420000000000000000000000000000000000000F' },
  l1Block: { address: '0x4200000000000000000000000000000000000015' },
  l2CrossDomainMessenger: {
    address: '0x4200000000000000000000000000000000000007',
  },
  l2Erc721Bridge: { address: '0x4200000000000000000000000000000000000014' },
  l2StandardBridge: { address: '0x4200000000000000000000000000000000000010' },
  l2ToL1MessagePasser: {
    address: '0x4200000000000000000000000000000000000016',
  },
} 

import { fees } from './fees.js'
import { formatters } from './formatters.js'
import { serializers } from './serializers.js'

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

const sourceId = 11_155_111 // sepolia

export const celoAlfajores = /*#__PURE__*/ defineChain({
...chainConfig,
id: 44_787,
Expand All @@ -23,10 +25,36 @@ export const celoAlfajores = /*#__PURE__*/ defineChain({
},
},
contracts: {
...chainConfig.contracts,
multicall3: {
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
blockCreated: 14569001,
},
portal: {
[sourceId]: {
address: '0x969d247cB586C0bF02212B9ae6e690e8b0d762bA',
},
},
disputeGameFactory: {
[sourceId]: {
address: '0xB0C46509E24a0745d201114016fD666D6D1E3f8e',
},
},
l2OutputOracle: {
[sourceId]: {
address: '0x58eeeEC56C6e92b1898367fa7372ab3f6483F054',
},
},
l1StandardBridge: {
[sourceId]: {
address: '0x65E8f629B13535f902020668Fe73aEc24e52F5D8',
},
},
l2StandardBridge: {
[sourceId]: {
address: '0x4200000000000000000000000000000000000010',
},
},
},
testnet: true,
})
Loading