Skip to content

Commit

Permalink
feat(lib/netconf): update omega version (#1617)
Browse files Browse the repository at this point in the history
Backports 1616 in preparation for omega deployment

issue: none
  • Loading branch information
arajasek authored Jul 30, 2024
1 parent 7976416 commit fac8982
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
5 changes: 4 additions & 1 deletion e2e/app/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/omni-network/omni/lib/errors"
"github.com/omni-network/omni/lib/k1util"
"github.com/omni-network/omni/lib/log"
"github.com/omni-network/omni/lib/netconf"

e2e "github.com/cometbft/cometbft/test/e2e/pkg"

Expand Down Expand Up @@ -46,7 +47,9 @@ type DeployConfig struct {
// Deploy a new e2e network. It also starts all services in order to deploy private portals.
// It also returns an optional deployed ping pong contract is enabled.
func Deploy(ctx context.Context, def Definition, cfg DeployConfig) (*pingpong.XDapp, error) {
if def.Testnet.Network.IsProtected() {
if def.Testnet.Network == netconf.Omega {
log.Warn(ctx, "Temporarily allowing protected network deploy, remove this after success", nil)
} else if def.Testnet.Network.IsProtected() {
// If a protected network needs to be deployed temporarily comment out this check.
return nil, errors.New("cannot deploy protected network", "network", def.Testnet.Network)
}
Expand Down
6 changes: 3 additions & 3 deletions lib/contracts/testdata/TestContractAddressReference.golden
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"omega": {
"avs": "0xa7b2e7830c51728832d33421670dbbe30299fd92",
"create3": "0x4bf2e538446b3faa2c439a4f8867a9052db8f1d0",
"l1bridge": "0x31a41add05110e92f4f323b8fadafe5eeba3965b",
"portal": "0x0eeaa62754a0628c062f45bd7605e57a9d3e3813",
"token": "0x764260d0a103692008e48ed60c3b3a017fd8fbae"
"l1bridge": "0x21abb45dcdceed997e2a6f7af80ea1c5cafafff6",
"portal": "0x1ce5094ee8b861674d3ad0da116d90592193c7d9",
"token": "0x21d1b3793bc3eebe2ce6aae2535315bdbd1e54c9"
}
}
10 changes: 2 additions & 8 deletions lib/netconf/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ var runid = uuid.New().String()
var (
omegaAVS = common.HexToAddress("0xa7b2e7830C51728832D33421670DbBE30299fD92")
mainnetAVS = common.HexToAddress("0xed2f4d90b073128ae6769a9A8D51547B1Df766C8")
omegaPortal = common.HexToAddress("0x0eEaA62754A0628C062F45bd7605E57a9d3e3813")
mainnetToken = common.HexToAddress("0x36e66fbbce51e4cd5bd3c62b637eb411b18949d4")

//go:embed omega/consensus-genesis.json
Expand Down Expand Up @@ -178,16 +177,11 @@ var statics = map[ID]Static{
},
Omega: {
Network: Omega,
Version: "v0.0.8",
Version: "v0.0.9",
AVSContractAddress: omegaAVS,
OmniExecutionChainID: evmchain.IDOmniOmega,
MaxValidators: maxValidators,
Portals: []Deployment{
{ChainID: evmchain.IDArbSepolia, Address: omegaPortal, DeployHeight: 64990937},
{ChainID: evmchain.IDBaseSepolia, Address: omegaPortal, DeployHeight: 12808134},
{ChainID: evmchain.IDHolesky, Address: omegaPortal, DeployHeight: 1958423},
{ChainID: evmchain.IDOpSepolia, Address: omegaPortal, DeployHeight: 14791006},
},
Portals: nil,
ConsensusGenesisJSON: omegaConsensusGenesisJSON,
ConsensusSeedTXT: omegaConsensusSeedsTXT,
ExecutionGenesisJSON: omegaExecutionGenesisJSON,
Expand Down

0 comments on commit fac8982

Please sign in to comment.