Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
2e5e9398
Unverified
Commit
2e5e9398
authored
Jun 12, 2023
by
mergify[bot]
Committed by
GitHub
Jun 12, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into cleanup/delete-legacy-core-utils
parents
1bbbc90e
9576bed0
Changes
27
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
44 additions
and
398710 deletions
+44
-398710
config.yml
.circleci/config.yml
+0
-1
CODEOWNERS
.github/CODEOWNERS
+0
-1
publish-canary.yml
.github/workflows/publish-canary.yml
+0
-83
release.yml
.github/workflows/release.yml
+0
-110
go.mod
go.mod
+1
-10
go.sum
go.sum
+0
-22
geth.go
op-e2e/geth.go
+1
-12
migration_test.go
op-e2e/migration_test.go
+0
-447
package.json
packages/core-utils/package.json
+1
-1
fallback-provider.ts
packages/core-utils/src/external/ethers/fallback-provider.ts
+0
-57
index.ts
packages/core-utils/src/external/ethers/index.ts
+0
-1
.depcheckrc
packages/migration-data/.depcheckrc
+0
-13
.eslintrc.js
packages/migration-data/.eslintrc.js
+0
-3
.gitignore
packages/migration-data/.gitignore
+0
-3
.lintstagedrc.yml
packages/migration-data/.lintstagedrc.yml
+0
-2
.prettierrc.js
packages/migration-data/.prettierrc.js
+0
-3
CHANGELOG.md
packages/migration-data/CHANGELOG.md
+0
-6
LICENSE
packages/migration-data/LICENSE
+0
-22
README.md
packages/migration-data/README.md
+0
-4
cli.ts
packages/migration-data/bin/cli.ts
+0
-158
ovm-addresses.json
packages/migration-data/data/ovm-addresses.json
+0
-237540
ovm-allowances.json
packages/migration-data/data/ovm-allowances.json
+0
-88350
ovm-messages.json
packages/migration-data/data/ovm-messages.json
+0
-71698
package.json
packages/migration-data/package.json
+0
-41
advanced-query.ts
packages/migration-data/src/advanced-query.ts
+0
-50
tsconfig.json
packages/migration-data/tsconfig.json
+0
-10
yarn.lock
yarn.lock
+41
-62
No files found.
.circleci/config.yml
View file @
2e5e9398
...
...
@@ -88,7 +88,6 @@ jobs:
-
"
packages/drippie-mon/node_modules"
-
"
packages/fault-detector/node_modules"
-
"
packages/hardhat-deploy-config/node_modules"
-
"
packages/migration-data/node_modules"
-
"
packages/replica-healthcheck/node_modules"
-
"
packages/sdk/node_modules"
-
run
:
...
...
.github/CODEOWNERS
View file @
2e5e9398
...
...
@@ -8,7 +8,6 @@
/packages/chain-mon @smartcontracts
/packages/fault-detector @ethereum-optimism/devxpod
/packages/hardhat-deploy-config @ethereum-optimism/legacy-reviewers
/packages/migration-data @ethereum-optimism/legacy-reviewers
/packages/replica-healthcheck @ethereum-optimism/legacy-reviewers
/packages/sdk @ethereum-optimism/devxpod
/packages/atst @ethereum-optimism/devxpod
...
...
.github/workflows/publish-canary.yml
View file @
2e5e9398
...
...
@@ -20,10 +20,7 @@ jobs:
balance-mon
:
${{ steps.packages.outputs.balance-mon }}
drippie-mon
:
${{ steps.packages.outputs.drippie-mon }}
wd-mon
:
${{ steps.packages.outputs.wd-mon }}
contracts
:
${{ steps.packages.outputs.contracts }}
contracts-bedrock
:
${{ steps.packages.outputs.contracts-bedrock }}
replica-healthcheck
:
${{ steps.packages.outputs.replica-healthcheck }}
hardhat-node
:
${{ steps.packages.outputs.hardhat-node }}
canary-docker-tag
:
${{ steps.docker-image-name.outputs.canary-docker-tag }}
op-exporter
:
${{ steps.packages.outputs.op-exporter }}
endpoint-monitor
:
${{ steps.packages.outputs.endpoint-monitor }}
...
...
@@ -121,32 +118,6 @@ jobs:
push
:
true
tags
:
ethereumoptimism/l2geth:${{ needs.canary-publish.outputs.canary-docker-tag }}
hardhat-node
:
name
:
Publish Hardhat Node ${{ needs.canary-publish.outputs.canary-docker-tag }}
needs
:
canary-publish
if
:
needs.canary-publish.outputs.hardhat-node != ''
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
-
name
:
Build and push
uses
:
docker/build-push-action@v2
with
:
context
:
./ops/docker/hardhat
file
:
./ops/docker/hardhat/Dockerfile
push
:
true
tags
:
ethereumoptimism/hardhat-node:${{ needs.canary-publish.outputs.canary-docker-tag }}
fault-detector
:
name
:
Publish Fault Detector Version ${{ needs.canary-publish.outputs.canary-docker-tag }}
needs
:
canary-publish
...
...
@@ -255,60 +226,6 @@ jobs:
push
:
true
tags
:
ethereumoptimism/wd-mon:${{ needs.canary-publish.outputs.canary-docker-tag }}
contracts
:
name
:
Publish Deployer Version ${{ needs.canary-publish.outputs.canary-docker-tag }}
needs
:
canary-publish
if
:
needs.canary-publish.outputs.contracts != ''
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
-
name
:
Build and push
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./ops/docker/Dockerfile.packages
target
:
deployer
push
:
true
tags
:
ethereumoptimism/deployer:${{ needs.canary-publish.outputs.canary-docker-tag }}
contracts-bedrock
:
name
:
Publish deployer-bedrock Version ${{ needs.canary-publish.outputs.canary-docker-tag }}
needs
:
canary-publish
if
:
needs.canary-publish.outputs.contracts-bedrock != ''
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
-
name
:
Build and push
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./ops/docker/Dockerfile.packages
target
:
deployer-bedrock
push
:
true
tags
:
ethereumoptimism/deployer-bedrock:${{ needs.canary-publish.outputs.canary-docker-tag }}
replica-healthcheck
:
name
:
Publish Replica Healthcheck Version ${{ needs.canary-publish.outputs.canary-docker-tag }}
needs
:
canary-publish
...
...
.github/workflows/release.yml
View file @
2e5e9398
...
...
@@ -19,12 +19,8 @@ jobs:
balance-mon
:
${{ steps.packages.outputs.drippie-mon }}
drippie-mon
:
${{ steps.packages.outputs.drippie-mon }}
wd-mon
:
${{ steps.packages.outputs.wd-mon }}
contracts
:
${{ steps.packages.outputs.contracts }}
contracts-bedrock
:
${{ steps.packages.outputs.contracts-bedrock }}
replica-healthcheck
:
${{ steps.packages.outputs.replica-healthcheck }}
hardhat-node
:
${{ steps.packages.outputs.hardhat-node }}
op-exporter
:
${{ steps.packages.outputs.op-exporter }}
foundry
:
${{ steps.packages.outputs.foundry }}
endpoint-monitor
:
${{ steps.packages.outputs.endpoint-monitor }}
steps
:
...
...
@@ -106,58 +102,6 @@ jobs:
push
:
true
tags
:
ethereumoptimism/l2geth:${{ needs.release.outputs.l2geth }},ethereumoptimism/l2geth:latest
hardhat-node
:
name
:
Publish Hardhat Node ${{ needs.release.outputs.hardhat-node }}
needs
:
release
if
:
needs.release.outputs.hardhat-node != ''
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Publish Hardhat Node
uses
:
docker/build-push-action@v2
with
:
context
:
./ops/docker/hardhat
file
:
./ops/docker/hardhat/Dockerfile
push
:
true
tags
:
ethereumoptimism/hardhat-node:${{ needs.release.outputs.hardhat-node }},ethereumoptimism/hardhat-node:latest
foundry
:
name
:
Publish foundry ${{ needs.release.outputs.foundry }}
needs
:
release
if
:
needs.release.outputs.foundry != ''
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Publish foundry
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./ops/docker/foundry/Dockerfile
push
:
true
tags
:
ethereumoptimism/foundry:${{ needs.release.outputs.foundry }},ethereumoptimism/foundry:latest
op-exporter
:
name
:
Publish op-exporter Version ${{ needs.release.outputs.op-exporter}}
needs
:
release
...
...
@@ -303,60 +247,6 @@ jobs:
push
:
true
tags
:
ethereumoptimism/drippie-mon:${{ needs.release.outputs.drippie-mon }},ethereumoptimism/drippie-mon:latest
contracts
:
name
:
Publish Deployer Version ${{ needs.release.outputs.contracts }}
needs
:
release
if
:
needs.release.outputs.contracts != ''
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
-
name
:
Build and push
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./ops/docker/Dockerfile.packages
target
:
deployer
push
:
true
tags
:
ethereumoptimism/deployer:${{ needs.release.outputs.contracts }},ethereumoptimism/deployer:latest
contracts-bedrock
:
name
:
Publish deployer-bedrock Version ${{ needs.release.outputs.contracts-bedrock }}
needs
:
release
if
:
needs.release.outputs.contracts != ''
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME }}
password
:
${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }}
-
name
:
Build and push
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./ops/docker/Dockerfile.packages
target
:
deployer-bedrock
push
:
true
tags
:
ethereumoptimism/deployer-bedrock:${{ needs.release.outputs.contracts-bedrock }},ethereumoptimism/deployer-bedrock:latest
replica-healthcheck
:
name
:
Publish Replica Healthcheck Version ${{ needs.release.outputs.replica-healthcheck }}
needs
:
release
...
...
go.mod
View file @
2e5e9398
...
...
@@ -6,8 +6,6 @@ require (
github.com/btcsuite/btcd v0.23.3
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0
github.com/docker/docker v20.10.24+incompatible
github.com/docker/go-connections v0.4.0
github.com/ethereum-optimism/go-ethereum-hdwallet v0.1.3
github.com/ethereum/go-ethereum v1.11.6
github.com/fsnotify/fsnotify v1.6.0
...
...
@@ -42,7 +40,6 @@ require (
require (
github.com/DataDog/zstd v1.5.2 // indirect
github.com/Microsoft/go-winio v0.6.0 // indirect
github.com/VictoriaMetrics/fastcache v1.10.0 // indirect
github.com/allegro/bigcache v1.2.1 // indirect
github.com/benbjohnson/clock v1.3.0 // indirect
...
...
@@ -63,7 +60,7 @@ require (
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect
github.com/deepmap/oapi-codegen v1.8.2 // indirect
github.com/docker/d
istribution v2.8.2
+incompatible // indirect
github.com/docker/d
ocker v20.10.24
+incompatible // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/elastic/gosigar v0.14.2 // indirect
...
...
@@ -126,8 +123,6 @@ require (
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/pointerstructure v1.2.1 // indirect
github.com/moby/term v0.0.0-20221105221325-4eb28fa6025c // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/mr-tron/base58 v1.2.0 // indirect
github.com/multiformats/go-base36 v0.2.0 // indirect
github.com/multiformats/go-multiaddr-fmt v0.1.0 // indirect
...
...
@@ -137,8 +132,6 @@ require (
github.com/multiformats/go-multistream v0.4.1 // indirect
github.com/multiformats/go-varint v0.0.7 // indirect
github.com/onsi/ginkgo/v2 v2.8.1 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.2 // indirect
github.com/opencontainers/runtime-spec v1.0.2 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
...
...
@@ -160,7 +153,6 @@ require (
github.com/rs/cors v1.8.2 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/status-im/keycard-go v0.2.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
...
...
@@ -185,7 +177,6 @@ require (
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gotest.tools/v3 v3.4.0 // indirect
lukechampine.com/blake3 v1.1.7 // indirect
nhooyr.io/websocket v1.8.7 // indirect
)
...
...
go.sum
View file @
2e5e9398
...
...
@@ -9,7 +9,6 @@ dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D
git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg=
github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8=
github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96 h1:cTp8I5+VIoKjsnZuH8vjyaysT/ses3EvZeaV/1UkF2M=
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/toml v1.2.0 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0=
github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod h1:+3IMCy2vIlbG1XG/0ggNQv0SvxCAIpPM5b1nCz56Xno=
...
...
@@ -17,8 +16,6 @@ github.com/CloudyKit/jet/v3 v3.0.0/go.mod h1:HKQPgSJmdK8hdoAbKUUWajkHyHo4RaU5rMd
github.com/DataDog/zstd v1.5.2 h1:vUG4lAyuPCXO0TLbXvPv7EB7cNK1QV/luu55UHLrrn8=
github.com/DataDog/zstd v1.5.2/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw=
github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY=
github.com/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg=
github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE=
github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0=
github.com/VictoriaMetrics/fastcache v1.10.0 h1:5hDJnLsKLpnUEToub7ETuRu8RCkb40woBZAUiKonXzY=
github.com/VictoriaMetrics/fastcache v1.10.0/go.mod h1:tjiYeEfYXCqacuvYw/7UoDIeJaNxq6132xHICNP77w8=
...
...
@@ -124,12 +121,8 @@ github.com/dgraph-io/ristretto v0.0.2 h1:a5WaUrDa0qm0YrAAS1tUykT5El3kt62KNZZeMxQ
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
github.com/dlclark/regexp2 v1.7.0 h1:7lJfhqlPssTb1WQx4yvTHN0uElPEv52sbaECrAQxjAo=
github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8=
github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
github.com/docker/docker v20.10.24+incompatible h1:Ugvxm7a8+Gz6vqQYQQ2W7GYq5EUPaAiuPgIfVyI3dYE=
github.com/docker/docker v20.10.24+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
...
...
@@ -490,16 +483,12 @@ github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyua
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/mitchellh/pointerstructure v1.2.1 h1:ZhBBeX8tSlRpu/FFhXH4RC4OJzFlqsQhoHZAz4x7TIw=
github.com/mitchellh/pointerstructure v1.2.1/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4=
github.com/moby/term v0.0.0-20221105221325-4eb28fa6025c h1:RC8WMpjonrBfyAh6VN/POIPtYD5tRAq0qMqCRjQNK+g=
github.com/moby/term v0.0.0-20221105221325-4eb28fa6025c/go.mod h1:9OcmHNQQUTbk4XCffrLgN1NEKc2mh5u++biHVrvHsSU=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=
github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ=
github.com/mr-tron/base58 v1.1.2/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc=
github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o=
...
...
@@ -557,10 +546,6 @@ github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1y
github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro=
github.com/onsi/gomega v1.26.0 h1:03cDLK28U6hWvCAns6NeydX3zIm4SF3ci69ulidS32Q=
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/image-spec v1.0.2 h1:9yCKha/T5XdGtO0q9Q9a6T5NUCsTn/DrBg0D7ufOcFM=
github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
github.com/opencontainers/runtime-spec v1.0.2 h1:UfAcuLBJB9Coz72x1hgl8O5RVzTdNiaglX6v2DM6FI0=
github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0=
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
...
...
@@ -654,8 +639,6 @@ github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeV
github.com/shurcooL/users v0.0.0-20180125191416-49c67e49c537/go.mod h1:QJTqeLYEDaXHZDBsXlPCDqdhQuJkuw4NOtaxYe3xii4=
github.com/shurcooL/webdavfs v0.0.0-20170829043945-18c3829fa133/go.mod h1:hKmq5kWdCj2z2KEozexVbfEZIWiTjhE0+UjmZgPqehw=
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod h1:UdhH50NIW0fCiwBSr0co2m7BnFLdv4fQTgdqdJTHFeE=
...
...
@@ -864,7 +847,6 @@ golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
...
...
@@ -883,7 +865,6 @@ golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
...
...
@@ -931,7 +912,6 @@ golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapK
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
...
...
@@ -1011,8 +991,6 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o=
gotest.tools/v3 v3.4.0/go.mod h1:CtbdzLSsqVhDgMtKsx03ird5YTGB3ar27v0u/yKBW5g=
grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod h1:77eQGdRu53HpSqPFJFmuJdjuHRquDANNeA4x7B8WQ9o=
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
...
...
op-e2e/geth.go
View file @
2e5e9398
...
...
@@ -279,18 +279,7 @@ func initL2Geth(name string, l2ChainID *big.Int, genesis *core.Genesis, jwtPath
NewPayloadTimeout
:
0
,
},
}
nodeConfig
:=
&
node
.
Config
{
Name
:
fmt
.
Sprintf
(
"l2-geth-%v"
,
name
),
WSHost
:
"127.0.0.1"
,
WSPort
:
0
,
AuthAddr
:
"127.0.0.1"
,
AuthPort
:
0
,
HTTPHost
:
"127.0.0.1"
,
HTTPPort
:
0
,
WSModules
:
[]
string
{
"debug"
,
"admin"
,
"eth"
,
"txpool"
,
"net"
,
"rpc"
,
"web3"
,
"personal"
,
"engine"
},
HTTPModules
:
[]
string
{
"debug"
,
"admin"
,
"eth"
,
"txpool"
,
"net"
,
"rpc"
,
"web3"
,
"personal"
,
"engine"
},
JWTSecret
:
jwtPath
,
}
nodeConfig
:=
defaultNodeConfig
(
fmt
.
Sprintf
(
"l2-geth-%v"
,
name
),
jwtPath
)
return
createGethNode
(
true
,
nodeConfig
,
ethConfig
,
nil
,
opts
...
)
}
...
...
op-e2e/migration_test.go
deleted
100644 → 0
View file @
1bbbc90e
This diff is collapsed.
Click to expand it.
packages/core-utils/package.json
View file @
2e5e9398
...
...
@@ -40,13 +40,13 @@
"@ethersproject/contracts"
:
"^5.7.0"
,
"@ethersproject/constants"
:
"^5.7.0"
,
"@ethersproject/keccak256"
:
"^5.7.0"
,
"@ethersproject/providers"
:
"^5.7.0"
,
"@ethersproject/rlp"
:
"^5.7.0"
,
"@ethersproject/properties"
:
"^5.7.0"
,
"@ethersproject/web"
:
"^5.7.0"
,
"chai"
:
"^4.3.4"
},
"devDependencies"
:
{
"@types/node"
:
"^12.12.6"
,
"mocha"
:
"^10.0.0"
}
}
packages/core-utils/src/external/ethers/fallback-provider.ts
deleted
100644 → 0
View file @
1bbbc90e
/**
* Provider Utilities
*/
import
{
Provider
,
StaticJsonRpcProvider
,
FallbackProvider
as
EthersFallbackProvider
,
}
from
'
@ethersproject/providers
'
import
{
ConnectionInfo
}
from
'
@ethersproject/web
'
export
interface
HttpHeaders
{
[
key
:
string
]:
string
}
// Copied from @ethersproject/providers since it is not
// currently exported
export
interface
FallbackProviderConfig
{
// The Provider
provider
:
Provider
// The priority to favour this Provider; higher values are used first
priority
?:
number
// Timeout before also triggering the next provider; this does not stop
// this provider and if its result comes back before a quorum is reached
// it will be incorporated into the vote
// - lower values will cause more network traffic but may result in a
// faster retult.
stallTimeout
?:
number
// How much this provider contributes to the quorum; sometimes a specific
// provider may be more reliable or trustworthy than others, but usually
// this should be left as the default
weight
?:
number
}
export
const
FallbackProvider
=
(
config
:
string
|
FallbackProviderConfig
[],
headers
?:
HttpHeaders
)
=>
{
const
configs
=
[]
// Handle the case of a string of comma delimited urls
if
(
typeof
config
===
'
string
'
)
{
const
urls
=
config
.
split
(
'
,
'
)
for
(
const
[
i
,
url
]
of
urls
.
entries
())
{
const
connectionInfo
:
ConnectionInfo
=
{
url
}
if
(
typeof
headers
===
'
object
'
)
{
connectionInfo
.
headers
=
headers
}
configs
.
push
({
priority
:
i
,
provider
:
new
StaticJsonRpcProvider
(
connectionInfo
),
})
}
return
new
EthersFallbackProvider
(
configs
)
}
return
new
EthersFallbackProvider
(
config
)
}
packages/core-utils/src/external/ethers/index.ts
View file @
2e5e9398
...
...
@@ -2,5 +2,4 @@
* Utilities that extend or enhance the ethers.js library
*/
export
*
from
'
./fallback-provider
'
export
*
from
'
./network
'
packages/migration-data/.depcheckrc
deleted
100644 → 0
View file @
1bbbc90e
ignores: [
"@babel/eslint-parser",
"@typescript-eslint/parser",
"eslint-plugin-import",
"eslint-plugin-unicorn",
"eslint-plugin-jsdoc",
"eslint-plugin-prefer-arrow",
"eslint-plugin-react",
"@typescript-eslint/eslint-plugin",
"eslint-config-prettier",
"eslint-plugin-prettier",
"chai"
]
packages/migration-data/.eslintrc.js
deleted
100644 → 0
View file @
1bbbc90e
module
.
exports
=
{
extends
:
'
../../.eslintrc.js
'
,
}
packages/migration-data/.gitignore
deleted
100644 → 0
View file @
1bbbc90e
/data/evm-messages.json
/data/slots.json
/data/evm-addresses.json
packages/migration-data/.lintstagedrc.yml
deleted
100644 → 0
View file @
1bbbc90e
"
*.{ts,js}"
:
-
eslint
packages/migration-data/.prettierrc.js
deleted
100644 → 0
View file @
1bbbc90e
module
.
exports
=
{
...
require
(
'
../../.prettierrc.js
'
),
};
\ No newline at end of file
packages/migration-data/CHANGELOG.md
deleted
100644 → 0
View file @
1bbbc90e
# @eth-optimism/migration-data
## 0.0.2
### Patch Changes
-
1d3c749a2: Bumps the version of ts-node used
packages/migration-data/LICENSE
deleted
100644 → 0
View file @
1bbbc90e
(The MIT License)
Copyright 2020-2021 Optimism
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
packages/migration-data/README.md
deleted
100644 → 0
View file @
1bbbc90e
# @eth-optimism/migration-data
This package is a temporary space for scripts and tools being built to collect data for the upcoming Bedrock upgrade migration!
We will not be publishing this package publicly as it is not meant for end-user consumption.
packages/migration-data/bin/cli.ts
deleted
100644 → 0
View file @
1bbbc90e
import
fs
from
'
fs
'
import
{
Command
}
from
'
commander
'
import
{
ethers
}
from
'
ethers
'
import
{
getContractInterface
}
from
'
@eth-optimism/contracts
'
import
{
version
}
from
'
../package.json
'
import
{
advancedQueryFilter
}
from
'
../src/advanced-query
'
const
program
=
new
Command
()
program
.
name
(
'
migration-data-query
'
)
.
description
(
'
CLI for querying Bedrock migration data
'
)
.
version
(
version
)
program
.
command
(
'
parse-state-dump
'
)
.
description
(
'
parses state dump to json
'
)
.
option
(
'
--file <file>
'
,
'
path to state dump file
'
)
.
action
(
async
(
options
)
=>
{
const
iface
=
getContractInterface
(
'
OVM_L2ToL1MessagePasser
'
)
const
dump
=
fs
.
readFileSync
(
options
.
file
,
'
utf-8
'
)
const
addrs
:
string
[]
=
[]
const
msgs
:
any
[]
=
[]
for
(
const
line
of
dump
.
split
(
'
\n
'
))
{
if
(
line
.
startsWith
(
'
ETH
'
))
{
addrs
.
push
(
line
.
split
(
'
|
'
)[
1
].
replace
(
'
\r
'
,
''
))
}
else
if
(
line
.
startsWith
(
'
MSG
'
))
{
const
msg
=
'
0x
'
+
line
.
split
(
'
|
'
)[
2
].
replace
(
'
\r
'
,
''
)
const
parsed
=
iface
.
decodeFunctionData
(
'
passMessageToL1
'
,
msg
)
msgs
.
push
({
who
:
line
.
split
(
'
|
'
)[
1
],
msg
:
parsed
.
_message
,
})
}
}
fs
.
writeFileSync
(
'
./data/evm-addresses.json
'
,
JSON
.
stringify
(
addrs
,
null
,
2
)
)
fs
.
writeFileSync
(
'
./data/evm-messages.json
'
,
JSON
.
stringify
(
msgs
,
null
,
2
))
})
program
.
command
(
'
evm-sent-messages
'
)
.
description
(
'
queries messages sent after the EVM upgrade
'
)
.
option
(
'
--rpc <rpc>
'
,
'
rpc url to use
'
)
.
action
(
async
(
options
)
=>
{
const
provider
=
new
ethers
.
providers
.
JsonRpcProvider
(
options
.
rpc
)
const
xdm
=
new
ethers
.
Contract
(
'
0x4200000000000000000000000000000000000007
'
,
getContractInterface
(
'
L2CrossDomainMessenger
'
),
provider
)
const
sent
:
any
[]
=
await
advancedQueryFilter
(
xdm
,
{
queryFilter
:
xdm
.
filters
.
SentMessage
(),
})
const
messages
:
any
[]
=
[]
for
(
const
s
of
sent
)
{
messages
.
push
({
who
:
'
0x4200000000000000000000000000000000000007
'
,
msg
:
xdm
.
interface
.
encodeFunctionData
(
'
relayMessage
'
,
[
s
.
args
.
target
,
s
.
args
.
sender
,
s
.
args
.
message
,
s
.
args
.
messageNonce
,
]),
})
}
fs
.
writeFileSync
(
'
./data/evm-messages.json
'
,
JSON
.
stringify
(
messages
,
null
,
2
)
)
})
program
.
command
(
'
sent-slots
'
)
.
description
(
'
queries storage slots in the message passer
'
)
.
option
(
'
--rpc <rpc>
'
,
'
rpc url to use
'
)
.
action
(
async
(
options
)
=>
{
const
provider
=
new
ethers
.
providers
.
JsonRpcProvider
(
options
.
rpc
)
let
nextKey
=
'
0x
'
let
slots
:
any
[]
=
[]
while
(
nextKey
)
{
const
latestBlock
=
await
provider
.
getBlock
(
'
latest
'
)
const
ret
=
await
provider
.
send
(
'
debug_storageRangeAt
'
,
[
latestBlock
.
hash
,
0
,
'
0x4200000000000000000000000000000000000000
'
,
nextKey
,
10000
,
])
slots
=
slots
.
concat
(
Object
.
values
(
ret
.
storage
).
map
((
s
:
any
)
=>
{
return
s
.
key
})
)
// Update next key and potentially try again
nextKey
=
ret
.
nextKey
}
fs
.
writeFileSync
(
'
./data/slots.json
'
,
JSON
.
stringify
(
slots
,
null
,
2
))
})
program
.
command
(
'
accounting
'
)
.
description
(
'
verifies that we have sufficient slot data
'
)
.
action
(
async
()
=>
{
const
parseMessageFile
=
(
path
:
string
):
Array
<
{
message
:
string
slot
:
string
}
>
=>
{
const
messages
:
any
[]
=
JSON
.
parse
(
fs
.
readFileSync
(
path
,
'
utf8
'
))
return
messages
.
map
((
message
)
=>
{
return
{
message
,
slot
:
ethers
.
utils
.
keccak256
(
ethers
.
utils
.
hexConcat
([
ethers
.
utils
.
keccak256
(
ethers
.
utils
.
hexConcat
([
message
.
msg
,
message
.
who
])
),
ethers
.
constants
.
HashZero
,
])
),
}
})
}
const
ovmMessages
=
parseMessageFile
(
'
./data/ovm-messages.json
'
)
const
evmMessages
=
parseMessageFile
(
'
./data/evm-messages.json
'
)
const
slotList
:
string
[]
=
JSON
.
parse
(
fs
.
readFileSync
(
'
./data/slots.json
'
,
'
utf8
'
)
)
const
unaccounted
=
slotList
.
filter
((
slot
)
=>
{
return
(
!
ovmMessages
.
some
((
m
)
=>
m
.
slot
===
slot
)
&&
!
evmMessages
.
some
((
m
)
=>
m
.
slot
===
slot
)
)
})
console
.
log
(
`Total slots:
${
slotList
.
length
}
`
)
console
.
log
(
`Unaccounted slots:
${
unaccounted
.
length
}
`
)
})
program
.
parse
(
process
.
argv
)
packages/migration-data/data/ovm-addresses.json
deleted
100644 → 0
View file @
1bbbc90e
This diff is collapsed.
Click to expand it.
packages/migration-data/data/ovm-allowances.json
deleted
100644 → 0
View file @
1bbbc90e
This diff is collapsed.
Click to expand it.
packages/migration-data/data/ovm-messages.json
deleted
100644 → 0
View file @
1bbbc90e
This diff is collapsed.
Click to expand it.
packages/migration-data/package.json
deleted
100644 → 0
View file @
1bbbc90e
{
"private"
:
true
,
"name"
:
"@eth-optimism/migration-data"
,
"version"
:
"0.0.2"
,
"description"
:
"[Optimism] Data collection scripts for Bedrock migration"
,
"main"
:
"dist/index"
,
"types"
:
"dist/index"
,
"files"
:
[
"dist/*"
],
"scripts"
:
{
"start"
:
"ts-node ./src/service.ts"
,
"test:coverage"
:
"echo 'No tests defined.'"
,
"build"
:
"tsc -p ./tsconfig.json"
,
"clean"
:
"rimraf dist/ ./tsconfig.tsbuildinfo"
,
"lint"
:
"yarn lint:fix && yarn lint:check"
,
"pre-commit"
:
"lint-staged"
,
"lint:fix"
:
"yarn lint:check --fix"
,
"lint:check"
:
"eslint . --max-warnings=0"
},
"keywords"
:
[
"optimism"
,
"ethereum"
,
"migration"
,
"bedrock"
],
"homepage"
:
"https://github.com/ethereum-optimism/optimism/tree/develop/packages/migration-data#readme"
,
"license"
:
"MIT"
,
"author"
:
"Optimism PBC"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"https://github.com/ethereum-optimism/optimism.git"
},
"devDependencies"
:
{
"commander"
:
"^9.0.0"
,
"@eth-optimism/contracts"
:
"0.6.0"
,
"@eth-optimism/old-contracts"
:
"npm:@eth-optimism/contracts@0.4.10"
,
"ethers"
:
"^5.7.0"
,
"ts-node"
:
"^10.9.1"
}
}
packages/migration-data/src/advanced-query.ts
deleted
100644 → 0
View file @
1bbbc90e
import
{
ethers
}
from
'
ethers
'
/**
* Helper function for querying all events for a given contract/filter. Improves on the standard
* event querying functionality by decreasing the block range by half when a query errors out. If
* the query succeeds, event range will return back to the default size, and so on. Also allows
* more advanced filtering during the querying process to avoid OOM issues.
*
* @param contract Contract to query events for.
* @param options Options for the query.
* @returns Array of events.
*/
export
const
advancedQueryFilter
=
async
(
contract
:
ethers
.
Contract
,
options
:
{
queryFilter
:
ethers
.
EventFilter
filter
?:
(
event
:
ethers
.
Event
)
=>
boolean
startBlock
?:
number
endBlock
?:
number
}
):
Promise
<
ethers
.
Event
[]
>
=>
{
const
defaultStep
=
500000
const
end
=
options
.
endBlock
??
(
await
contract
.
provider
.
getBlockNumber
())
let
step
=
defaultStep
let
i
=
options
.
startBlock
??
0
let
events
:
ethers
.
Event
[]
=
[]
while
(
i
<
end
)
{
try
{
const
allEvents
=
await
contract
.
queryFilter
(
options
.
queryFilter
,
i
,
Math
.
min
(
i
+
step
,
end
)
)
const
matching
=
options
.
filter
?
allEvents
.
filter
(
options
.
filter
)
:
allEvents
events
=
events
.
concat
(
matching
)
i
+=
step
step
=
step
*
2
}
catch
(
err
)
{
step
=
Math
.
floor
(
step
/
2
)
if
(
step
<
1
)
{
throw
err
}
}
}
return
events
}
packages/migration-data/tsconfig.json
deleted
100644 → 0
View file @
1bbbc90e
{
"extends"
:
"../../tsconfig.json"
,
"compilerOptions"
:
{
"rootDir"
:
"./src"
,
"outDir"
:
"./dist"
},
"include"
:
[
"src/**/*"
]
}
yarn.lock
View file @
2e5e9398
...
...
@@ -778,27 +778,6 @@
"@ethersproject/abstract-provider" "^5.7.0"
"@ethersproject/abstract-signer" "^5.7.0"
"@eth-optimism/core-utils@^0.5.2":
version "0.5.5"
resolved "https://registry.yarnpkg.com/@eth-optimism/core-utils/-/core-utils-0.5.5.tgz#0e2bb95b23965fb51adfb8ba6841c3afd26a6411"
integrity sha512-N/uyZjHltnvnQyBOE498EGlqeYvWRUQTW6BpXhexKljEXZpnria4J4MFO9s1lJOpogLXTaS+lhM1Ic8zUNj8Pg==
dependencies:
"@ethersproject/abstract-provider" "^5.4.1"
ethers "^5.4.5"
lodash "^4.17.21"
"@eth-optimism/old-contracts@npm:@eth-optimism/contracts@0.4.10":
version "0.4.10"
resolved "https://registry.yarnpkg.com/@eth-optimism/contracts/-/contracts-0.4.10.tgz#536055ae8ad5c74ea3490245a217d1029ba51699"
integrity sha512-DjLFp7y4HAHfn4OYGKKVx7v+zpncVeg6Iro9tPevIRK9YT+8iplfrQ1JjUqxX/XG22EglqvlQiX04l5qg4ycbg==
dependencies:
"@eth-optimism/core-utils" "^0.5.2"
"@ethersproject/abstract-provider" "^5.4.1"
"@ethersproject/abstract-signer" "^5.4.1"
"@ethersproject/contracts" "^5.4.1"
"@ethersproject/hardware-wallets" "^5.4.0"
glob "^7.1.6"
"@ethereum-waffle/chai@^3.4.0":
version "3.4.0"
resolved "https://registry.yarnpkg.com/@ethereum-waffle/chai/-/chai-3.4.0.tgz#2477877410a96bf370edd64df905b04fb9aba9d5"
...
...
@@ -1117,7 +1096,7 @@
"@ethersproject/transactions" "^5.6.2"
"@ethersproject/web" "^5.6.1"
"@ethersproject/abstract-provider@5.7.0", "@ethersproject/abstract-provider@^5.
4.1", "@ethersproject/abstract-provider@^5.
7.0":
"@ethersproject/abstract-provider@5.7.0", "@ethersproject/abstract-provider@^5.7.0":
version "5.7.0"
resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz#b0a8550f88b6bf9d51f90e4795d48294630cb9ef"
integrity sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw==
...
...
@@ -1152,7 +1131,7 @@
"@ethersproject/logger" "^5.6.0"
"@ethersproject/properties" "^5.6.0"
"@ethersproject/abstract-signer@5.7.0", "@ethersproject/abstract-signer@^5.
4.1", "@ethersproject/abstract-signer@^5.
7.0":
"@ethersproject/abstract-signer@5.7.0", "@ethersproject/abstract-signer@^5.7.0":
version "5.7.0"
resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz#13f4f32117868452191a4649723cb086d2b596b2"
integrity sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ==
...
...
@@ -1342,7 +1321,7 @@
"@ethersproject/properties" "^5.6.0"
"@ethersproject/transactions" "^5.6.2"
"@ethersproject/contracts@5.7.0", "@ethersproject/contracts@^5.
4.1", "@ethersproject/contracts@^5.
7.0":
"@ethersproject/contracts@5.7.0", "@ethersproject/contracts@^5.7.0":
version "5.7.0"
resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.7.0.tgz#c305e775abd07e48aa590e1a877ed5c316f8bd1e"
integrity sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg==
...
...
@@ -1358,7 +1337,7 @@
"@ethersproject/properties" "^5.7.0"
"@ethersproject/transactions" "^5.7.0"
"@ethersproject/hardware-wallets@^5.
4.0", "@ethersproject/hardware-wallets@^5.
7.0":
"@ethersproject/hardware-wallets@^5.7.0":
version "5.7.0"
resolved "https://registry.yarnpkg.com/@ethersproject/hardware-wallets/-/hardware-wallets-5.7.0.tgz#1c902fc255e2f108af44d4c1dc46ec2c34cb669c"
integrity sha512-DjMMXIisRc8xFvEoLoYz1w7JDOYmaz/a0X9sp7Zu668RR8U1zCAyj5ow25HLRW+TCzEC5XiFetTXqS5kXonFCQ==
...
...
@@ -1687,7 +1666,7 @@
bech32 "1.1.4"
ws "7.4.6"
"@ethersproject/providers@5.7.1"
, "@ethersproject/providers@^5.7.0"
:
"@ethersproject/providers@5.7.1":
version "5.7.1"
resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.7.1.tgz#b0799b616d5579cd1067a8ebf1fc1ec74c1e122c"
integrity sha512-vZveG/DLyo+wk4Ga1yx6jSEHrLPgmTt+dFv0dv8URpVCRf0jVhalps1jq/emN/oXnMRsC7cQgAF32DcXLL7BPQ==
...
...
@@ -8700,42 +8679,6 @@ ethers@^5.0.0, ethers@^5.0.1, ethers@^5.0.2:
"@ethersproject/web" "5.4.0"
"@ethersproject/wordlists" "5.4.0"
ethers@^5.4.5, ethers@^5.7.0:
version "5.7.1"
resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.1.tgz#48c83a44900b5f006eb2f65d3ba6277047fd4f33"
integrity sha512-5krze4dRLITX7FpU8J4WscXqADiKmyeNlylmmDLbS95DaZpBhDe2YSwRQwKXWNyXcox7a3gBgm/MkGXV1O1S/Q==
dependencies:
"@ethersproject/abi" "5.7.0"
"@ethersproject/abstract-provider" "5.7.0"
"@ethersproject/abstract-signer" "5.7.0"
"@ethersproject/address" "5.7.0"
"@ethersproject/base64" "5.7.0"
"@ethersproject/basex" "5.7.0"
"@ethersproject/bignumber" "5.7.0"
"@ethersproject/bytes" "5.7.0"
"@ethersproject/constants" "5.7.0"
"@ethersproject/contracts" "5.7.0"
"@ethersproject/hash" "5.7.0"
"@ethersproject/hdnode" "5.7.0"
"@ethersproject/json-wallets" "5.7.0"
"@ethersproject/keccak256" "5.7.0"
"@ethersproject/logger" "5.7.0"
"@ethersproject/networks" "5.7.1"
"@ethersproject/pbkdf2" "5.7.0"
"@ethersproject/properties" "5.7.0"
"@ethersproject/providers" "5.7.1"
"@ethersproject/random" "5.7.0"
"@ethersproject/rlp" "5.7.0"
"@ethersproject/sha2" "5.7.0"
"@ethersproject/signing-key" "5.7.0"
"@ethersproject/solidity" "5.7.0"
"@ethersproject/strings" "5.7.0"
"@ethersproject/transactions" "5.7.0"
"@ethersproject/units" "5.7.0"
"@ethersproject/wallet" "5.7.0"
"@ethersproject/web" "5.7.1"
"@ethersproject/wordlists" "5.7.0"
ethers@^5.5.2, ethers@^5.5.3:
version "5.6.8"
resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.6.8.tgz#d36b816b4896341a80a8bbd2a44e8cb6e9b98dd4"
...
...
@@ -8772,6 +8715,42 @@ ethers@^5.5.2, ethers@^5.5.3:
"@ethersproject/web" "5.6.1"
"@ethersproject/wordlists" "5.6.1"
ethers@^5.7.0:
version "5.7.1"
resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.1.tgz#48c83a44900b5f006eb2f65d3ba6277047fd4f33"
integrity sha512-5krze4dRLITX7FpU8J4WscXqADiKmyeNlylmmDLbS95DaZpBhDe2YSwRQwKXWNyXcox7a3gBgm/MkGXV1O1S/Q==
dependencies:
"@ethersproject/abi" "5.7.0"
"@ethersproject/abstract-provider" "5.7.0"
"@ethersproject/abstract-signer" "5.7.0"
"@ethersproject/address" "5.7.0"
"@ethersproject/base64" "5.7.0"
"@ethersproject/basex" "5.7.0"
"@ethersproject/bignumber" "5.7.0"
"@ethersproject/bytes" "5.7.0"
"@ethersproject/constants" "5.7.0"
"@ethersproject/contracts" "5.7.0"
"@ethersproject/hash" "5.7.0"
"@ethersproject/hdnode" "5.7.0"
"@ethersproject/json-wallets" "5.7.0"
"@ethersproject/keccak256" "5.7.0"
"@ethersproject/logger" "5.7.0"
"@ethersproject/networks" "5.7.1"
"@ethersproject/pbkdf2" "5.7.0"
"@ethersproject/properties" "5.7.0"
"@ethersproject/providers" "5.7.1"
"@ethersproject/random" "5.7.0"
"@ethersproject/rlp" "5.7.0"
"@ethersproject/sha2" "5.7.0"
"@ethersproject/signing-key" "5.7.0"
"@ethersproject/solidity" "5.7.0"
"@ethersproject/strings" "5.7.0"
"@ethersproject/transactions" "5.7.0"
"@ethersproject/units" "5.7.0"
"@ethersproject/wallet" "5.7.0"
"@ethersproject/web" "5.7.1"
"@ethersproject/wordlists" "5.7.0"
ethjs-unit@0.1.6:
version "0.1.6"
resolved "https://registry.yarnpkg.com/ethjs-unit/-/ethjs-unit-0.1.6.tgz#c665921e476e87bce2a9d588a6fe0405b2c41699"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment