How to make ovm-allowances.json
of op-migrate
#22
-
Issue DescriptionHi all. I'm trying to reproduce the Bedrock migration in the article https://blog.oplabs.co/reproduce-bedrock-migration/. The op-migrate uses 3 inputs: ovm-addresses.json, ovm-messages.json, ovm-allowances.json. but I don't know how to make ovm-allowances.json. None of the source code in the optimism-legacy repository was for generating ovm-allowance.json. Anyone who know it? repository: https://github.com/ethereum-optimism/optimism-legacy
Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @boohyung, that data can be found here: https://github.com/ethereum-optimism/optimism-legacy/tree/develop/packages/migration-data/data |
Beta Was this translation helpful? Give feedback.
-
Generating this file again is difficult, so the Bedrock migration was designed in a way where the file is untrusted -- the Bedrock migration script verifies that the inputs are correct such that you can use a file given to you by some other party and check that it is correct. If the file missed any allowances or included any extra allowances, the Bedrock migration script would fail. |
Beta Was this translation helpful? Give feedback.
ovm-allowances.json
was generated by using a legacy (OVM 1.0) node to query for allowance events. The reason this file is needed is so that we could guarantee that all ETH balances were correctly migrated as part of the Bedrock migration. Guaranteeing this required that we confirmed that every storage slot within theOVM_ETH
smart contract had been accounted for. Since this included allowances from the legacy OVM system, this meant that we also needed to generate a list of all allowances. The Bedrock migration script uses the combination of theovm-addresses
,evm-addresses
, andovm-allowances
files to verify that all storage slots within theOVM_ETH
contract are accounted for.Generating …