You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollups contracts are not begin deployed in a deterministic fashion on devnet, which forced us to change the address book used by cartesi-rollups-cli to make the relevant addresses match.
We must amend the deployment process so the whole deployment is deterministic.
✔️ Solution
Use a tool (possibly forge script) that uses the CREATE2 opcode to perform the deployment (see tutorial).
marcelstanley
changed the title
Tests: Deploy Rollups contracts deterministically using foundry-rs
Deploy Rollups contracts deterministically on devnet
Jan 5, 2024
After some experimentation and further consideration, we have decided to backtrack on using foundry-rs and to use rollups-contracts's own deployment script instead.
There are a couple of reasons for that:
even though we used the same deterministic deployer as rollups-contracts and the right salt, we never got the same deployment addresses for the contracts
the process became cumbersome and considerably more complex than we expected
Besides all that, the scope of this task has grown to also convert all shell code to Go.
marcelstanley
changed the title
Deploy Rollups contracts deterministically on devnet
Deploy Rollups contracts deterministically on devnet in Go
Jan 19, 2024
📚 Context
Rollups contracts are not begin deployed in a deterministic fashion on
devnet
, which forced us to change the address book used bycartesi-rollups-cli
to make the relevant addresses match.We must amend the deployment process so the whole deployment is deterministic.
✔️ Solution
Use a tool (possibly forge script) that uses theCREATE2
opcode to perform the deployment (see tutorial).Note: Besides being used by rollups-contracts, there's also a mention about using safe-singleton-factory at foundry-rs/foundry#2638 (comment) pointing to https://github.com/bgd-labs/aave-helpers/blob/6cc788d1346e6bcaf8f02878841eb74662c87c17/src/ScriptUtils.sol#L87.Use rollups-contracts deployment tools.
📈 Subtasks
devnet
cartesi-rollups-cli
The text was updated successfully, but these errors were encountered: