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

Deploy Optimism v1 Settlement Contract(s) to Cevmos #24

Closed
Tracked by #28
jbowen93 opened this issue Mar 4, 2022 · 5 comments
Closed
Tracked by #28

Deploy Optimism v1 Settlement Contract(s) to Cevmos #24

jbowen93 opened this issue Mar 4, 2022 · 5 comments
Assignees

Comments

@jbowen93
Copy link

jbowen93 commented Mar 4, 2022

We should attempt to deploy the Optimism Contracts to Cevmos and see what breaks.

@jbowen93 jbowen93 self-assigned this Mar 4, 2022
@jbowen93
Copy link
Author

jbowen93 commented Mar 7, 2022

As part of this I should learn how Hardhat works

@jbowen93
Copy link
Author

jbowen93 commented Mar 7, 2022

Deploy command

export CONTRACTS_TARGET_NETWORK=cevmos
export CONTRACTS_DEPLOYER_KEY=<validator-key>
export CONTRACTS_RPC_URL=http://127.0.0.1:8545
npx hardhat --show-stack-traces deploy \
  --network cevmos \
  --ovm-address-manager-owner 0x667dc8Ea9dc5a41e8f26D39b3bd01e5e309455Ae \
  --ovm-proposer-address 0x667dc8Ea9dc5a41e8f26D39b3bd01e5e309455Ae \
  --ovm-sequencer-address 0x667dc8Ea9dc5a41e8f26D39b3bd01e5e309455Ae \
  --ovm-relayer-address 0x667dc8Ea9dc5a41e8f26D39b3bd01e5e309455Ae \
  --scc-fraud-proof-window 604800 \
  --scc-sequencer-publish-window 12592000

@jbowen93
Copy link
Author

jbowen93 commented Mar 7, 2022

Deployed Successfully?

deploying "Lib_AddressManager" (tx: 0x2f559a0c978857af1505b45749f66b433355b6fc1f0f2b71c5614cafb88a46ad)...: deployed at 0xa759eE2D2A16A028490E662B093e32b3F684b324 with 405088 gas
Registering address for OVM_L2CrossDomainMessenger to 0x4200000000000000000000000000000000000007...
✓ Registered address for OVM_L2CrossDomainMessenger
Registering address for OVM_DecompressionPrecompileAddress to 0x4200000000000000000000000000000000000005...
✓ Registered address for OVM_DecompressionPrecompileAddress
Registering address for OVM_Sequencer to 0x667dc8Ea9dc5a41e8f26D39b3bd01e5e309455Ae...
✓ Registered address for OVM_Sequencer
Registering address for OVM_Proposer to 0x667dc8Ea9dc5a41e8f26D39b3bd01e5e309455Ae...
✓ Registered address for OVM_Proposer
Registering address for OVM_L2BatchMessageRelayer to 0x667dc8Ea9dc5a41e8f26D39b3bd01e5e309455Ae...
✓ Registered address for OVM_L2BatchMessageRelayer
deploying "OVM_ChainStorageContainer:CTC:batches" (tx: 0x97fd6c5642341dacf41ee0497c69d027e3cdd7c811b1a511ddde8238e20d5e14)...: deployed at 0x556E5Ff6FF84133677A3Ab6Ec8dC337087feA350 with 962133 gas
Registering address for OVM_ChainStorageContainer:CTC:batches to 0x556E5Ff6FF84133677A3Ab6Ec8dC337087feA350...
✓ Registered address for OVM_ChainStorageContainer:CTC:batches
deploying "OVM_ChainStorageContainer:CTC:queue" (tx: 0x25d3bea9f9ed1d2d595d35803903aa341217f09aa1f3ec332790d56d268570d7)...: deployed at 0x5feED9D6AaBeCe50b1f344420bAdD8e2e765616F with 962133 gas
Registering address for OVM_ChainStorageContainer:CTC:queue to 0x5feED9D6AaBeCe50b1f344420bAdD8e2e765616F...
✓ Registered address for OVM_ChainStorageContainer:CTC:queue
deploying "OVM_ChainStorageContainer:SCC:batches" (tx: 0x4aafe06bcbb62eb69c54ff3a124fdf3d1d7e95c084e5bbbcf5ea13651e2ebecb)...: deployed at 0x06e10D4e7F7C495119486b96d82b96fE6aab1Cb9 with 962073 gas
Registering address for OVM_ChainStorageContainer:SCC:batches to 0x06e10D4e7F7C495119486b96d82b96fE6aab1Cb9...
✓ Registered address for OVM_ChainStorageContainer:SCC:batches
deploying "OVM_CanonicalTransactionChain" (tx: 0xda642c00bd8d4604cc001147253f34d88c519dc521a05db910727d7b8c0303c6)...: deployed at 0x6dBb6c116E160Ee5f5B2D193654A9C3DDB7EF7B9 with 2822139 gas
Registering address for OVM_CanonicalTransactionChain to 0x6dBb6c116E160Ee5f5B2D193654A9C3DDB7EF7B9...
✓ Registered address for OVM_CanonicalTransactionChain
deploying "OVM_StateCommitmentChain" (tx: 0x1fe6c3f35cf2f3b1520ba6b73f3f87a7c7d01f01f1e5628429fae62777d64a89)...: deployed at 0x8b3705F45b224F6Fe774Be417EB5C7627Ff532ff with 1621307 gas
Registering address for OVM_StateCommitmentChain to 0x8b3705F45b224F6Fe774Be417EB5C7627Ff532ff...
✓ Registered address for OVM_StateCommitmentChain
deploying "mockOVM_BondManager" (tx: 0xc43d2a74127b97b21d68771de9f849ac75472112bb89428092039538c9720b8e)...: deployed at 0xF56310D40E66Be75BcDCF521aC7E82A691Da3358 with 289629 gas
deploying "OVM_L1CrossDomainMessenger" (tx: 0xd932542804c4a96c1a64a16c5c45f634ba6d7c8f1397441f61faf952acf0de60)...: deployed at 0x22Cc0562Fba0c2F7BeAE78E9C570384e8D732ec6 with 2214921 gas
deploying "Proxy__OVM_L1CrossDomainMessenger" (tx: 0x6146854f015e1585bd111ead1f3f063f3a7a38f1f2fd79289a6cdbb9f41bfc1e)...: deployed at 0xbf6f2E6E384a62D8B2f48837318d100ed1fD5d54 with 216156 gas
deploying "OVM_ExecutionManager" (tx: 0x6381c1d47e91dc1f46ab411ca199c48b0a304ad3abef2728cb529dd074d4e0b7)...: deployed at 0x6D6c0C8a7B7D00AC7177b72a52158e4Bc089DFa8 with 3567143 gas
Registering address for OVM_ExecutionManager to 0x6D6c0C8a7B7D00AC7177b72a52158e4Bc089DFa8...
✓ Registered address for OVM_ExecutionManager
deploying "OVM_FraudVerifier" (tx: 0xc4633cce8aa251dba612bccf32bc092e3f6332deead4aa25149175a1d6cce281)...: deployed at 0xC272DD19C1DF7A5b6eDc478Dad350448B3bDf2FB with 1378135 gas
Registering address for OVM_FraudVerifier to 0xC272DD19C1DF7A5b6eDc478Dad350448B3bDf2FB...
✓ Registered address for OVM_FraudVerifier
deploying "OVM_StateManagerFactory" (tx: 0xb744efd913bc2ce95cc45e2b2876e54793c287890c9f40aa6339a36f77dc24c4)...: deployed at 0x4C254AB74B2000C2917a95045D7ad8EB2c24f7f9 with 1153245 gas
Registering address for OVM_StateManagerFactory to 0x4C254AB74B2000C2917a95045D7ad8EB2c24f7f9...
✓ Registered address for OVM_StateManagerFactory
deploying "OVM_StateTransitionerFactory" (tx: 0x37bf684d9eb8f48b60099ff673ffcb56ff2c6bc99ae4bc9f245302432fdda686)...: deployed at 0x68184d05401D776c7D186730fBB263C90954874E with 4077623 gas
Registering address for OVM_StateTransitionerFactory to 0x68184d05401D776c7D186730fBB263C90954874E...
✓ Registered address for OVM_StateTransitionerFactory
deploying "OVM_SafetyChecker" (tx: 0x942ee822d308cc5e7440816cbb029227232d6ddadcba8d37e8a8bbb7b5f882bb)...: deployed at 0x38Cadfff619546B50eB46A3419B08fB6B8E26cdE with 234686 gas
Registering address for OVM_SafetyChecker to 0x38Cadfff619546B50eB46A3419B08fB6B8E26cdE...
✓ Registered address for OVM_SafetyChecker
deploying "OVM_L1MultiMessageRelayer" (tx: 0xc29dee94d0c074ab62216ee2fdcc85eddab9b8c27c48ce438ec7209dd1ce4cb7)...: deployed at 0xc596d279Ae0aff9b00a05bd49D74DC63dBa28c07 with 597627 gas
Registering address for OVM_L1MultiMessageRelayer to 0xc596d279Ae0aff9b00a05bd49D74DC63dBa28c07...
✓ Registered address for OVM_L1MultiMessageRelayer
deploying "OVM_L1ETHGateway" (tx: 0x2a70bdfc2bec6ed7005a9a06260ddf0d08f97f6b76388347945efc71f3643ed9)...: deployed at 0x89c0203B3B15D8a4167C11319e77aD40c50b15f4 with 601114 gas
deploying "Proxy__OVM_L1ETHGateway" (tx: 0x000d96a78ee57ea2c3b7c5e7ecc109d1d6d6a5a297686d4a4cac2f6b8c8dca5c)...: deployed at 0x89f2C7093d27803F3c29A3F1e2Af91C7D689e050 with 216036 gas
✓ Not changing owner of Lib_AddressManager because it's already correctly set

@jbowen93
Copy link
Author

jbowen93 commented Mar 7, 2022

Need to figure out how to appropriately test this...

@jbowen93 jbowen93 changed the title Deploy Optimism Settlement Contract to Cevmos Deploy Optimism v1 Settlement Contract(s) to Cevmos Mar 10, 2022
@jbowen93
Copy link
Author

We're not going to use Optimism v1 contracts so closing this issue in favor #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant