Skip to content

Commit

Permalink
Implement Cel2 migration tool (#110)
Browse files Browse the repository at this point in the history
* Add `celo-migrate` tool

* Add logic to write changes to state DB

* Minor changes

* Check that datadir exists

* Use cel2 migration header for rollup config

* Fixes from testing

* Add checks when copying deployed contracts into state db

* Review changes

* Review changes II

* Update op-chain-ops/cmd/celo-migrate/main.go

Co-authored-by: piersy <pierspowlesland@gmail.com>

---------

Co-authored-by: piersy <pierspowlesland@gmail.com>
  • Loading branch information
palango and piersy authored May 7, 2024
1 parent e5dd62e commit 3636885
Show file tree
Hide file tree
Showing 7 changed files with 441 additions and 337 deletions.
3 changes: 3 additions & 0 deletions op-chain-ops/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ ecotone-scalar:
receipt-reference-builder:
go build -o ./bin/receipt-reference-builder ./cmd/receipt-reference-builder/*.go

celo-migrate:
go build -o ./bin/celo-migrate ./cmd/celo-migrate/*.go

test:
go test ./...

Expand Down
3 changes: 3 additions & 0 deletions op-chain-ops/cmd/celo-migrate/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Celo L1 -> Cel2 migration tool

This tool allows migrating the state of a Celo chain to a state usable in op-geth.
Loading

0 comments on commit 3636885

Please sign in to comment.