Skip to content

Commit

Permalink
feat: add SuperchainTokenBridge to interop applier
Browse files Browse the repository at this point in the history
  • Loading branch information
tremarkley committed Oct 17, 2024
1 parent 475d118 commit 89d53e1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.3

require (
github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef
github.com/ethereum-optimism/optimism v1.9.4-0.20241016180232-3f65402acca0
github.com/ethereum-optimism/optimism v1.9.4-0.20241017231226-27c12a132d32
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20241002103526-9083af857790
github.com/ethereum/go-ethereum v1.14.11
github.com/joho/godotenv v1.5.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ github.com/ethereum-optimism/op-geth v1.101411.0-rc.1 h1:xRheNbOM+Js9a+dqVt5LmBq
github.com/ethereum-optimism/op-geth v1.101411.0-rc.1/go.mod h1:7S4pp8KHBmEmKkRjL1BPOc6jY9hW+64YeMUjR3RVLw4=
github.com/ethereum-optimism/optimism v1.9.4-0.20241016180232-3f65402acca0 h1:Yof8WmPC4iC0gH0BeTYxu3GVc0SXXHWXXpDevbR6/Ts=
github.com/ethereum-optimism/optimism v1.9.4-0.20241016180232-3f65402acca0/go.mod h1:Xghe72cmK8ehQipbTp2TZSaiaKNIFKz2LWxKccAu5bg=
github.com/ethereum-optimism/optimism v1.9.4-0.20241017231226-27c12a132d32 h1:0aL9mA2eP6HTUtGkATxJ+I4cELWp2uG1hALwRPAWvqg=
github.com/ethereum-optimism/optimism v1.9.4-0.20241017231226-27c12a132d32/go.mod h1:Xghe72cmK8ehQipbTp2TZSaiaKNIFKz2LWxKccAu5bg=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20241002103526-9083af857790 h1:yZlEBCdD0izqzTvmhET1roNSzMfXL50DhL+dALYlnXk=
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20241002103526-9083af857790/go.mod h1:XaVXL9jg8BcyOeugECgIUGa9Y3DjYJj71RHmb5qon6M=
github.com/ethereum/c-kzg-4844 v1.0.0 h1:0X1LBXxaEtYD9xsyj9B9ctQEZIpnvVDeoBx8aHEwTNA=
Expand Down
1 change: 1 addition & 0 deletions interop/applier.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var interopPredeploys = []common.Address{
predeploys.L1BlockAddr,
predeploys.SuperchainWETHAddr,
predeploys.ETHLiquidityAddr,
predeploys.SuperchainTokenBridgeAddr,
}

type predeploy struct {
Expand Down
3 changes: 1 addition & 2 deletions opsimulator/opsimulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
const (
host = "127.0.0.1"
l2NativeSuperchainERC20Addr = "0x420beeF000000000000000000000000000000001"
superchainTokenBridgeAddr = "0x4200000000000000000000000000000000000028"
)

type OpSimulator struct {
Expand Down Expand Up @@ -203,7 +202,7 @@ func (opSim *OpSimulator) startBackgroundTasks() {

// Log SuperchainTokenBridge events
opSim.bgTasks.Go(func() error {
superchainTokenBridge, err := bindings.NewSuperchainTokenBridge(common.HexToAddress(superchainTokenBridgeAddr), opSim.Chain.EthClient())
superchainTokenBridge, err := bindings.NewSuperchainTokenBridge(predeploys.SuperchainTokenBridgeAddr, opSim.Chain.EthClient())
if err != nil {
return fmt.Errorf("failed to create SuperchainTokenBridge contract: %w", err)
}
Expand Down

0 comments on commit 89d53e1

Please sign in to comment.