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
3d5e1b2a
Unverified
Commit
3d5e1b2a
authored
Aug 14, 2023
by
OptimismBot
Committed by
GitHub
Aug 14, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6743 from ethereum-optimism/move-eth-pkg
op-node: move eth package into op-service
parents
9a7381db
5dbe50d6
Changes
168
Hide whitespace changes
Inline
Side-by-side
Showing
168 changed files
with
213 additions
and
180 deletions
+213
-180
config.yml
.circleci/config.yml
+13
-0
channel.go
op-batcher/batcher/channel.go
+1
-1
channel_builder_test.go
op-batcher/batcher/channel_builder_test.go
+1
-1
channel_manager.go
op-batcher/batcher/channel_manager.go
+1
-1
channel_manager_test.go
op-batcher/batcher/channel_manager_test.go
+1
-1
channel_test.go
op-batcher/batcher/channel_test.go
+1
-1
driver.go
op-batcher/batcher/driver.go
+1
-1
metrics.go
op-batcher/metrics/metrics.go
+1
-1
noop.go
op-batcher/metrics/noop.go
+1
-1
entrypoint.go
op-bootnode/bootnode/entrypoint.go
+7
-5
config.go
op-chain-ops/genesis/config.go
+1
-1
l1_replica_test.go
op-e2e/actions/l1_replica_test.go
+1
-1
l2_batcher.go
op-e2e/actions/l2_batcher.go
+1
-1
l2_batcher_test.go
op-e2e/actions/l2_batcher_test.go
+1
-1
l2_engine.go
op-e2e/actions/l2_engine.go
+1
-1
l2_engine_test.go
op-e2e/actions/l2_engine_test.go
+1
-1
l2_proposer_test.go
op-e2e/actions/l2_proposer_test.go
+1
-1
l2_sequencer.go
op-e2e/actions/l2_sequencer.go
+1
-1
l2_verifier.go
op-e2e/actions/l2_verifier.go
+1
-1
reorg_test.go
op-e2e/actions/reorg_test.go
+1
-1
sync_test.go
op-e2e/actions/sync_test.go
+1
-1
system_config_test.go
op-e2e/actions/system_config_test.go
+1
-1
setup.go
op-e2e/e2eutils/setup.go
+1
-1
op_geth.go
op-e2e/op_geth.go
+1
-1
op_geth_test.go
op-e2e/op_geth_test.go
+5
-3
setup.go
op-e2e/setup.go
+1
-1
system_test.go
op-e2e/system_test.go
+1
-1
tracer.go
op-e2e/tracer.go
+1
-1
Makefile
op-node/Makefile
+0
-3
chains.go
op-node/chaincfg/chains.go
+1
-1
reassemble.go
op-node/cmd/batch_decoder/reassemble/reassemble.go
+1
-1
main.go
op-node/cmd/stateviz/main.go
+1
-1
metrics.go
op-node/metrics/metrics.go
+1
-1
api.go
op-node/node/api.go
+1
-1
comms.go
op-node/node/comms.go
+1
-1
node.go
op-node/node/node.go
+1
-1
runtime_config.go
op-node/node/runtime_config.go
+1
-1
server_test.go
op-node/node/server_test.go
+1
-1
gossip.go
op-node/p2p/gossip.go
+1
-1
host_test.go
op-node/p2p/host_test.go
+2
-2
node.go
op-node/p2p/node.go
+12
-10
sync.go
op-node/p2p/sync.go
+1
-1
sync_test.go
op-node/p2p/sync_test.go
+1
-1
attributes.go
op-node/rollup/derive/attributes.go
+1
-1
attributes_queue.go
op-node/rollup/derive/attributes_queue.go
+1
-1
attributes_queue_test.go
op-node/rollup/derive/attributes_queue_test.go
+1
-1
attributes_test.go
op-node/rollup/derive/attributes_test.go
+1
-1
batch.go
op-node/rollup/derive/batch.go
+1
-1
batch_queue.go
op-node/rollup/derive/batch_queue.go
+1
-1
batch_queue_test.go
op-node/rollup/derive/batch_queue_test.go
+1
-1
batches.go
op-node/rollup/derive/batches.go
+1
-1
batches_test.go
op-node/rollup/derive/batches_test.go
+1
-1
calldata_source.go
op-node/rollup/derive/calldata_source.go
+1
-1
calldata_source_test.go
op-node/rollup/derive/calldata_source_test.go
+1
-1
channel.go
op-node/rollup/derive/channel.go
+1
-1
channel_bank.go
op-node/rollup/derive/channel_bank.go
+1
-1
channel_bank_test.go
op-node/rollup/derive/channel_bank_test.go
+1
-1
channel_in_reader.go
op-node/rollup/derive/channel_in_reader.go
+1
-1
channel_test.go
op-node/rollup/derive/channel_test.go
+1
-1
engine_consolidate.go
op-node/rollup/derive/engine_consolidate.go
+1
-1
engine_queue.go
op-node/rollup/derive/engine_queue.go
+1
-1
engine_queue_test.go
op-node/rollup/derive/engine_queue_test.go
+1
-1
engine_update.go
op-node/rollup/derive/engine_update.go
+1
-1
frame_queue.go
op-node/rollup/derive/frame_queue.go
+1
-1
fuzz_parsers_test.go
op-node/rollup/derive/fuzz_parsers_test.go
+1
-1
l1_block_info.go
op-node/rollup/derive/l1_block_info.go
+1
-1
l1_block_info_test.go
op-node/rollup/derive/l1_block_info_test.go
+1
-1
l1_block_info_tob_test.go
op-node/rollup/derive/l1_block_info_tob_test.go
+1
-1
l1_retrieval.go
op-node/rollup/derive/l1_retrieval.go
+1
-1
l1_retrieval_test.go
op-node/rollup/derive/l1_retrieval_test.go
+1
-1
l1_traversal.go
op-node/rollup/derive/l1_traversal.go
+1
-1
l1_traversal_test.go
op-node/rollup/derive/l1_traversal_test.go
+1
-1
l2block_util.go
op-node/rollup/derive/l2block_util.go
+1
-1
payload_util.go
op-node/rollup/derive/payload_util.go
+1
-1
payloads_queue.go
op-node/rollup/derive/payloads_queue.go
+1
-1
payloads_queue_test.go
op-node/rollup/derive/payloads_queue_test.go
+1
-1
pipeline.go
op-node/rollup/derive/pipeline.go
+1
-1
system_config.go
op-node/rollup/derive/system_config.go
+3
-2
system_config_test.go
op-node/rollup/derive/system_config_test.go
+1
-1
random.go
op-node/rollup/derive/test/random.go
+1
-1
conf_depth.go
op-node/rollup/driver/conf_depth.go
+3
-2
conf_depth_test.go
op-node/rollup/driver/conf_depth_test.go
+3
-2
driver.go
op-node/rollup/driver/driver.go
+1
-1
l1_state.go
op-node/rollup/driver/l1_state.go
+1
-1
metered_engine.go
op-node/rollup/driver/metered_engine.go
+1
-1
metered_l1fetcher.go
op-node/rollup/driver/metered_l1fetcher.go
+1
-1
metered_l1fetcher_test.go
op-node/rollup/driver/metered_l1fetcher_test.go
+1
-1
origin_selector.go
op-node/rollup/driver/origin_selector.go
+1
-1
origin_selector_test.go
op-node/rollup/driver/origin_selector_test.go
+1
-1
sequencer.go
op-node/rollup/driver/sequencer.go
+1
-1
sequencer_test.go
op-node/rollup/driver/sequencer_test.go
+1
-1
state.go
op-node/rollup/driver/state.go
+1
-1
output_root.go
op-node/rollup/output_root.go
+1
-1
start.go
op-node/rollup/sync/start.go
+3
-2
start_test.go
op-node/rollup/sync/start_test.go
+1
-1
types.go
op-node/rollup/types.go
+1
-1
types_test.go
op-node/rollup/types_test.go
+1
-1
engine_client.go
op-node/sources/engine_client.go
+1
-1
eth_client.go
op-node/sources/eth_client.go
+1
-1
eth_client_test.go
op-node/sources/eth_client_test.go
+2
-2
l1_client.go
op-node/sources/l1_client.go
+1
-1
l2_client.go
op-node/sources/l2_client.go
+1
-1
receipts.go
op-node/sources/receipts.go
+1
-1
receipts_test.go
op-node/sources/receipts_test.go
+1
-1
rollupclient.go
op-node/sources/rollupclient.go
+1
-1
sync_client.go
op-node/sources/sync_client.go
+1
-1
types.go
op-node/sources/types.go
+1
-1
block_id.go
op-node/testutils/block_id.go
+1
-1
fake_chain.go
op-node/testutils/fake_chain.go
+3
-2
l1info.go
op-node/testutils/l1info.go
+1
-1
metrics.go
op-node/testutils/metrics.go
+1
-1
mock_engine.go
op-node/testutils/mock_engine.go
+1
-1
mock_eth_client.go
op-node/testutils/mock_eth_client.go
+1
-1
mock_l1.go
op-node/testutils/mock_l1.go
+1
-1
mock_l2.go
op-node/testutils/mock_l2.go
+1
-1
random.go
op-node/testutils/random.go
+1
-1
driver.go
op-program/client/driver/driver.go
+1
-1
driver_test.go
op-program/client/driver/driver_test.go
+1
-1
cache.go
op-program/client/l1/cache.go
+4
-2
cache_test.go
op-program/client/l1/cache_test.go
+1
-1
client.go
op-program/client/l1/client.go
+2
-1
client_test.go
op-program/client/l1/client_test.go
+8
-6
oracle.go
op-program/client/l1/oracle.go
+1
-1
oracle_test.go
op-program/client/l1/oracle_test.go
+1
-1
stub_oracle.go
op-program/client/l1/test/stub_oracle.go
+1
-1
cache.go
op-program/client/l2/cache.go
+1
-1
cache_test.go
op-program/client/l2/cache_test.go
+1
-1
engine.go
op-program/client/l2/engine.go
+1
-1
engine_backend.go
op-program/client/l2/engine_backend.go
+1
-1
engine_backend_test.go
op-program/client/l2/engine_backend_test.go
+1
-1
engine_test.go
op-program/client/l2/engine_test.go
+1
-1
block_processor.go
op-program/client/l2/engineapi/block_processor.go
+1
-1
l2_engine_api.go
op-program/client/l2/engineapi/l2_engine_api.go
+1
-1
l2_engine_api_tests.go
op-program/client/l2/engineapi/test/l2_engine_api_tests.go
+1
-1
oracle.go
op-program/client/l2/oracle.go
+1
-1
oracle_test.go
op-program/client/l2/oracle_test.go
+1
-1
stub_oracle.go
op-program/client/l2/test/stub_oracle.go
+1
-1
program.go
op-program/client/program.go
+1
-1
l2_client.go
op-program/host/l2_client.go
+1
-1
prefetcher.go
op-program/host/prefetcher/prefetcher.go
+1
-1
prefetcher_test.go
op-program/host/prefetcher/prefetcher_test.go
+1
-1
retry.go
op-program/host/prefetcher/retry.go
+1
-1
retry_test.go
op-program/host/prefetcher/retry_test.go
+1
-1
metrics.go
op-proposer/metrics/metrics.go
+1
-1
noop.go
op-proposer/metrics/noop.go
+1
-1
l2_output_submitter.go
op-proposer/proposer/l2_output_submitter.go
+1
-1
Makefile
op-service/Makefile
+7
-1
account_proof.go
op-service/eth/account_proof.go
+0
-0
account_proof_test.go
op-service/eth/account_proof_test.go
+0
-0
block_info.go
op-service/eth/block_info.go
+0
-0
heads.go
op-service/eth/heads.go
+0
-0
id.go
op-service/eth/id.go
+0
-0
label.go
op-service/eth/label.go
+0
-0
output.go
op-service/eth/output.go
+0
-0
output_test.go
op-service/eth/output_test.go
+0
-0
receipts.go
op-service/eth/receipts.go
+0
-0
ssz.go
op-service/eth/ssz.go
+0
-0
ssz_test.go
op-service/eth/ssz_test.go
+0
-0
status.go
op-service/eth/status.go
+0
-0
sync_status.go
op-service/eth/sync_status.go
+0
-0
transactions.go
op-service/eth/transactions.go
+0
-0
types.go
op-service/eth/types.go
+0
-0
types_test.go
op-service/eth/types_test.go
+0
-0
ref_metrics.go
op-service/metrics/ref_metrics.go
+1
-1
util.go
op-service/solabi/util.go
+1
-1
cheat.go
op-wheel/cheat/cheat.go
+1
-1
engine.go
op-wheel/engine/engine.go
+1
-1
Dockerfile.stateviz
ops-bedrock/Dockerfile.stateviz
+1
-0
No files found.
.circleci/config.yml
View file @
3d5e1b2a
...
...
@@ -705,6 +705,18 @@ jobs:
command
:
make fuzz
working_directory
:
op-node
fuzz-op-service
:
docker
:
-
image
:
us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest
steps
:
-
checkout
-
check-changed
:
patterns
:
op-service
-
run
:
name
:
Fuzz
command
:
make fuzz
working_directory
:
op-service
fuzz-op-chain-ops
:
docker
:
-
image
:
us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest
...
...
@@ -1241,6 +1253,7 @@ workflows:
-
semgrep-scan
-
go-mod-tidy
-
fuzz-op-node
-
fuzz-op-service
-
fuzz-op-chain-ops
-
fuzz-cannon
-
bedrock-markdown
...
...
op-batcher/batcher/channel.go
View file @
3d5e1b2a
...
...
@@ -5,8 +5,8 @@ import (
"math"
"github.com/ethereum-optimism/optimism/op-batcher/metrics"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
)
...
...
op-batcher/batcher/channel_builder_test.go
View file @
3d5e1b2a
...
...
@@ -10,10 +10,10 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-batcher/compressor"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
dtest
"github.com/ethereum-optimism/optimism/op-node/rollup/derive/test"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/trie"
...
...
op-batcher/batcher/channel_manager.go
View file @
3d5e1b2a
...
...
@@ -6,8 +6,8 @@ import (
"io"
"github.com/ethereum-optimism/optimism/op-batcher/metrics"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
...
...
op-batcher/batcher/channel_manager_test.go
View file @
3d5e1b2a
...
...
@@ -9,10 +9,10 @@ import (
"github.com/ethereum-optimism/optimism/op-batcher/compressor"
"github.com/ethereum-optimism/optimism/op-batcher/metrics"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
derivetest
"github.com/ethereum-optimism/optimism/op-node/rollup/derive/test"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
...
...
op-batcher/batcher/channel_test.go
View file @
3d5e1b2a
...
...
@@ -5,9 +5,9 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-batcher/metrics"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
...
...
op-batcher/batcher/driver.go
View file @
3d5e1b2a
...
...
@@ -11,9 +11,9 @@ import (
"time"
"github.com/ethereum-optimism/optimism/op-batcher/metrics"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
opclient
"github.com/ethereum-optimism/optimism/op-service/client"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/txmgr"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
...
...
op-batcher/metrics/metrics.go
View file @
3d5e1b2a
...
...
@@ -9,8 +9,8 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/prometheus/client_golang/prometheus"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
opmetrics
"github.com/ethereum-optimism/optimism/op-service/metrics"
txmetrics
"github.com/ethereum-optimism/optimism/op-service/txmgr/metrics"
)
...
...
op-batcher/metrics/noop.go
View file @
3d5e1b2a
package
metrics
import
(
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
opmetrics
"github.com/ethereum-optimism/optimism/op-service/metrics"
txmetrics
"github.com/ethereum-optimism/optimism/op-service/txmgr/metrics"
"github.com/ethereum/go-ethereum/core/types"
...
...
op-bootnode/bootnode/entrypoint.go
View file @
3d5e1b2a
...
...
@@ -5,18 +5,20 @@ import (
"errors"
"fmt"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/urfave/cli/v2"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
opnode
"github.com/ethereum-optimism/optimism/op-node"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/p2p"
p2pcli
"github.com/ethereum-optimism/optimism/op-node/p2p/cli"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
oplog
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/ethereum-optimism/optimism/op-service/opio"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/urfave/cli/v2"
)
type
gossipNoop
struct
{}
...
...
op-chain-ops/genesis/config.go
View file @
3d5e1b2a
...
...
@@ -21,8 +21,8 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-chain-ops/immutables"
"github.com/ethereum-optimism/optimism/op-chain-ops/state"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
var
(
...
...
op-e2e/actions/l1_replica_test.go
View file @
3d5e1b2a
...
...
@@ -13,9 +13,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
var
defaultRollupTestParams
=
&
e2eutils
.
TestParams
{
...
...
op-e2e/actions/l2_batcher.go
View file @
3d5e1b2a
...
...
@@ -17,9 +17,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-batcher/compressor"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
SyncStatusAPI
interface
{
...
...
op-e2e/actions/l2_batcher_test.go
View file @
3d5e1b2a
...
...
@@ -14,10 +14,10 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
func
TestBatcher
(
gt
*
testing
.
T
)
{
...
...
op-e2e/actions/l2_engine.go
View file @
3d5e1b2a
...
...
@@ -21,10 +21,10 @@ import (
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// L2Engine is an in-memory implementation of the Engine API,
...
...
op-e2e/actions/l2_engine_test.go
View file @
3d5e1b2a
...
...
@@ -18,9 +18,9 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
func
TestL2EngineAPI
(
gt
*
testing
.
T
)
{
...
...
op-e2e/actions/l2_proposer_test.go
View file @
3d5e1b2a
...
...
@@ -10,8 +10,8 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/bindings"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
func
TestProposer
(
gt
*
testing
.
T
)
{
...
...
op-e2e/actions/l2_sequencer.go
View file @
3d5e1b2a
...
...
@@ -7,12 +7,12 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/rollup/driver"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// MockL1OriginSelector is a shim to override the origin as sequencer, so we can force it to stay on an older origin.
...
...
op-e2e/actions/l2_verifier.go
View file @
3d5e1b2a
...
...
@@ -12,7 +12,6 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/node"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
...
...
@@ -20,6 +19,7 @@ import (
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// L2Verifier is an actor that functions like a rollup node,
...
...
op-e2e/actions/reorg_test.go
View file @
3d5e1b2a
...
...
@@ -15,10 +15,10 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
func
setupReorgTest
(
t
Testing
,
config
*
e2eutils
.
TestParams
)
(
*
e2eutils
.
SetupData
,
*
e2eutils
.
DeployParams
,
*
L1Miner
,
*
L2Sequencer
,
*
L2Engine
,
*
L2Verifier
,
*
L2Engine
,
*
L2Batcher
)
{
...
...
op-e2e/actions/sync_test.go
View file @
3d5e1b2a
...
...
@@ -6,10 +6,10 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
)
...
...
op-e2e/actions/system_config_test.go
View file @
3d5e1b2a
...
...
@@ -13,10 +13,10 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/bindings"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// TestBatcherKeyRotation tests that batcher A can operate, then be replaced with batcher B, then ignore old batcher A,
...
...
op-e2e/e2eutils/setup.go
View file @
3d5e1b2a
...
...
@@ -14,8 +14,8 @@ import (
"github.com/ethereum-optimism/optimism/op-chain-ops/genesis"
"github.com/ethereum-optimism/optimism/op-e2e/config"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
var
testingJWTSecret
=
[
32
]
byte
{
123
}
...
...
op-e2e/op_geth.go
View file @
3d5e1b2a
...
...
@@ -12,11 +12,11 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/config"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"
...
...
op-e2e/op_geth_test.go
View file @
3d5e1b2a
...
...
@@ -6,8 +6,8 @@ import (
"testing"
"time"
"github.com/
ethereum-optimism/optimism/op-node/eth
"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/
stretchr/testify/require
"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
...
...
@@ -16,7 +16,9 @@ import (
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/params"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// TestMissingGasLimit tests that op-geth cannot build a block without gas limit while optimism is active in the chain config.
...
...
op-e2e/setup.go
View file @
3d5e1b2a
...
...
@@ -46,7 +46,6 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/config"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/chaincfg"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/metrics"
rollupNode
"github.com/ethereum-optimism/optimism/op-node/node"
"github.com/ethereum-optimism/optimism/op-node/p2p"
...
...
@@ -56,6 +55,7 @@ import (
"github.com/ethereum-optimism/optimism/op-node/testlog"
proposermetrics
"github.com/ethereum-optimism/optimism/op-proposer/metrics"
l2os
"github.com/ethereum-optimism/optimism/op-proposer/proposer"
"github.com/ethereum-optimism/optimism/op-service/eth"
oplog
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/ethereum-optimism/optimism/op-service/txmgr"
)
...
...
op-e2e/system_test.go
View file @
3d5e1b2a
...
...
@@ -27,7 +27,6 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/bindings"
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/metrics"
rollupNode
"github.com/ethereum-optimism/optimism/op-node/node"
"github.com/ethereum-optimism/optimism/op-node/p2p"
...
...
@@ -36,6 +35,7 @@ import (
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/backoff"
"github.com/ethereum-optimism/optimism/op-service/eth"
oppprof
"github.com/ethereum-optimism/optimism/op-service/pprof"
)
...
...
op-e2e/tracer.go
View file @
3d5e1b2a
...
...
@@ -5,8 +5,8 @@ import (
"github.com/libp2p/go-libp2p/core/peer"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/node"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
FnTracer
struct
{
...
...
op-node/Makefile
View file @
3d5e1b2a
...
...
@@ -21,9 +21,6 @@ lint:
golangci-lint run
-E
goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint
-e
"errors.As"
-e
"errors.Is"
fuzz
:
go
test
-run
NOTAREALTEST
-v
-fuzztime
10s
-fuzz
FuzzExecutionPayloadUnmarshal ./eth
go
test
-run
NOTAREALTEST
-v
-fuzztime
10s
-fuzz
FuzzExecutionPayloadMarshalUnmarshal ./eth
go
test
-run
NOTAREALTEST
-v
-fuzztime
10s
-fuzz
FuzzOBP01 ./eth
go
test
-run
NOTAREALTEST
-v
-fuzztime
10s
-fuzz
FuzzL1InfoRoundTrip ./rollup/derive
go
test
-run
NOTAREALTEST
-v
-fuzztime
10s
-fuzz
FuzzL1InfoAgainstContract ./rollup/derive
go
test
-run
NOTAREALTEST
-v
-fuzztime
10s
-fuzz
FuzzUnmarshallLogEvent ./rollup/derive
...
...
op-node/chaincfg/chains.go
View file @
3d5e1b2a
...
...
@@ -6,8 +6,8 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
var
Mainnet
=
rollup
.
Config
{
...
...
op-node/cmd/batch_decoder/reassemble/reassemble.go
View file @
3d5e1b2a
...
...
@@ -10,8 +10,8 @@ import (
"sort"
"github.com/ethereum-optimism/optimism/op-node/cmd/batch_decoder/fetch"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
)
...
...
op-node/cmd/stateviz/main.go
View file @
3d5e1b2a
...
...
@@ -18,8 +18,8 @@ import (
"sync"
"time"
"github.com/ethereum-optimism/optimism/op-node/eth"
ophttp
"github.com/ethereum-optimism/optimism/op-node/http"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/log"
)
...
...
op-node/metrics/metrics.go
View file @
3d5e1b2a
...
...
@@ -24,7 +24,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
const
(
...
...
op-node/node/api.go
View file @
3d5e1b2a
...
...
@@ -8,9 +8,9 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/version"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
l2EthClient
interface
{
...
...
op-node/node/comms.go
View file @
3d5e1b2a
...
...
@@ -5,7 +5,7 @@ import (
"github.com/libp2p/go-libp2p/core/peer"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
// Tracer configures the OpNode to share events
...
...
op-node/node/node.go
View file @
3d5e1b2a
...
...
@@ -14,11 +14,11 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/p2p"
"github.com/ethereum-optimism/optimism/op-node/rollup/driver"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
OpNode
struct
{
...
...
op-node/node/runtime_config.go
View file @
3d5e1b2a
...
...
@@ -8,9 +8,9 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/p2p"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
var
(
...
...
op-node/node/server_test.go
View file @
3d5e1b2a
...
...
@@ -16,12 +16,12 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-node/version"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
func
TestOutputAtBlock
(
t
*
testing
.
T
)
{
...
...
op-node/p2p/gossip.go
View file @
3d5e1b2a
...
...
@@ -20,8 +20,8 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
const
(
...
...
op-node/p2p/host_test.go
View file @
3d5e1b2a
...
...
@@ -8,7 +8,6 @@ import (
"testing"
"time"
"github.com/ethereum/go-ethereum/common"
ds
"github.com/ipfs/go-datastore"
"github.com/ipfs/go-datastore/sync"
"github.com/libp2p/go-libp2p"
...
...
@@ -19,15 +18,16 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/p2p/enode"
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
func
TestingConfig
(
t
*
testing
.
T
)
*
Config
{
...
...
op-node/p2p/node.go
View file @
3d5e1b2a
...
...
@@ -8,16 +8,6 @@ import (
"strconv"
"time"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/p2p/gating"
"github.com/ethereum-optimism/optimism/op-node/p2p/monitor"
"github.com/ethereum-optimism/optimism/op-node/p2p/store"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/clock"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/p2p/discover"
"github.com/ethereum/go-ethereum/p2p/enode"
"github.com/hashicorp/go-multierror"
pubsub
"github.com/libp2p/go-libp2p-pubsub"
"github.com/libp2p/go-libp2p/core/connmgr"
...
...
@@ -27,6 +17,18 @@ import (
"github.com/libp2p/go-libp2p/core/peer"
ma
"github.com/multiformats/go-multiaddr"
manet
"github.com/multiformats/go-multiaddr/net"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/p2p/discover"
"github.com/ethereum/go-ethereum/p2p/enode"
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/p2p/gating"
"github.com/ethereum-optimism/optimism/op-node/p2p/monitor"
"github.com/ethereum-optimism/optimism/op-node/p2p/store"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/clock"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// NodeP2P is a p2p node, which can be used to gossip messages.
...
...
op-node/p2p/sync.go
View file @
3d5e1b2a
...
...
@@ -23,8 +23,8 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// StreamCtxFn provides a new context to use when handling stream requests
...
...
op-node/p2p/sync_test.go
View file @
3d5e1b2a
...
...
@@ -17,10 +17,10 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
mockPayloadFn
func
(
n
uint64
)
(
*
eth
.
ExecutionPayload
,
error
)
...
...
op-node/rollup/derive/attributes.go
View file @
3d5e1b2a
...
...
@@ -9,8 +9,8 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// L1ReceiptsFetcher fetches L1 header info and receipts for the payload attributes derivation (the info tx and deposits)
...
...
op-node/rollup/derive/attributes_queue.go
View file @
3d5e1b2a
...
...
@@ -8,8 +8,8 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// The attributes queue sits in between the batch queue and the engine queue
...
...
op-node/rollup/derive/attributes_queue_test.go
View file @
3d5e1b2a
...
...
@@ -12,10 +12,10 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// TestAttributesQueue checks that it properly uses the PreparePayloadAttributes function
...
...
op-node/rollup/derive/attributes_test.go
View file @
3d5e1b2a
...
...
@@ -14,9 +14,9 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
func
TestPreparePayloadAttributes
(
t
*
testing
.
T
)
{
...
...
op-node/rollup/derive/batch.go
View file @
3d5e1b2a
...
...
@@ -7,8 +7,8 @@ import (
"io"
"sync"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/rlp"
...
...
op-node/rollup/derive/batch_queue.go
View file @
3d5e1b2a
...
...
@@ -8,8 +8,8 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// The batch queue is responsible for ordering unordered batches & generating empty batches
...
...
op-node/rollup/derive/batch_queue_test.go
View file @
3d5e1b2a
...
...
@@ -12,10 +12,10 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
fakeBatchQueueInput
struct
{
...
...
op-node/rollup/derive/batches.go
View file @
3d5e1b2a
package
derive
import
(
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
)
...
...
op-node/rollup/derive/batches_test.go
View file @
3d5e1b2a
...
...
@@ -6,10 +6,10 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"
...
...
op-node/rollup/derive/calldata_source.go
View file @
3d5e1b2a
...
...
@@ -11,8 +11,8 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
DataIter
interface
{
...
...
op-node/rollup/derive/calldata_source_test.go
View file @
3d5e1b2a
...
...
@@ -14,10 +14,10 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
testTx
struct
{
...
...
op-node/rollup/derive/channel.go
View file @
3d5e1b2a
...
...
@@ -6,7 +6,7 @@ import (
"fmt"
"io"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/rlp"
)
...
...
op-node/rollup/derive/channel_bank.go
View file @
3d5e1b2a
...
...
@@ -7,8 +7,8 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
NextFrameProvider
interface
{
...
...
op-node/rollup/derive/channel_bank_test.go
View file @
3d5e1b2a
...
...
@@ -8,10 +8,10 @@ import (
"strings"
"testing"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
)
...
...
op-node/rollup/derive/channel_in_reader.go
View file @
3d5e1b2a
...
...
@@ -7,7 +7,7 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
// ChannelInReader reads a batch from the channel
...
...
op-node/rollup/derive/channel_test.go
View file @
3d5e1b2a
...
...
@@ -3,7 +3,7 @@ package derive
import
(
"testing"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/stretchr/testify/require"
)
...
...
op-node/rollup/derive/engine_consolidate.go
View file @
3d5e1b2a
...
...
@@ -9,7 +9,7 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
// AttributesMatchBlock checks if the L2 attributes pre-inputs match the output
...
...
op-node/rollup/derive/engine_queue.go
View file @
3d5e1b2a
...
...
@@ -12,9 +12,9 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
attributesWithParent
struct
{
...
...
op-node/rollup/derive/engine_queue_test.go
View file @
3d5e1b2a
...
...
@@ -14,12 +14,12 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
fakeAttributesQueue
struct
{
...
...
op-node/rollup/derive/engine_update.go
View file @
3d5e1b2a
...
...
@@ -8,7 +8,7 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
// isDepositTx checks an opaqueTx to determine if it is a Deposit Transaction
...
...
op-node/rollup/derive/frame_queue.go
View file @
3d5e1b2a
...
...
@@ -6,7 +6,7 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
var
_
NextFrameProvider
=
&
FrameQueue
{}
...
...
op-node/rollup/derive/fuzz_parsers_test.go
View file @
3d5e1b2a
...
...
@@ -18,8 +18,8 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum-optimism/optimism/op-bindings/bindings"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
var
(
...
...
op-node/rollup/derive/l1_block_info.go
View file @
3d5e1b2a
...
...
@@ -11,7 +11,7 @@ import (
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum-optimism/optimism/op-service/solabi"
)
...
...
op-node/rollup/derive/l1_block_info_test.go
View file @
3d5e1b2a
...
...
@@ -10,8 +10,8 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
var
_
eth
.
BlockInfo
=
(
*
testutils
.
MockBlockInfo
)(
nil
)
...
...
op-node/rollup/derive/l1_block_info_tob_test.go
View file @
3d5e1b2a
...
...
@@ -3,9 +3,9 @@ package derive
import
(
"testing"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-node/testutils/fuzzerutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
fuzz
"github.com/google/gofuzz"
"github.com/stretchr/testify/require"
)
...
...
op-node/rollup/derive/l1_retrieval.go
View file @
3d5e1b2a
...
...
@@ -7,7 +7,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
type
DataAvailabilitySource
interface
{
...
...
op-node/rollup/derive/l1_retrieval_test.go
View file @
3d5e1b2a
...
...
@@ -14,9 +14,9 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
fakeDataIter
struct
{
...
...
op-node/rollup/derive/l1_traversal.go
View file @
3d5e1b2a
...
...
@@ -11,8 +11,8 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// L1 Traversal fetches the next L1 block and exposes it through the progress API
...
...
op-node/rollup/derive/l1_traversal_test.go
View file @
3d5e1b2a
...
...
@@ -14,10 +14,10 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// TestL1TraversalNext tests that the `Next` function only returns
...
...
op-node/rollup/derive/l2block_util.go
View file @
3d5e1b2a
...
...
@@ -6,8 +6,8 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// L2BlockRefSource is a source for the generation of a L2BlockRef. E.g. a
...
...
op-node/rollup/derive/payload_util.go
View file @
3d5e1b2a
...
...
@@ -5,8 +5,8 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// PayloadToBlockRef extracts the essential L2BlockRef information from an execution payload,
...
...
op-node/rollup/derive/payloads_queue.go
View file @
3d5e1b2a
...
...
@@ -7,7 +7,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
type
payloadAndSize
struct
{
...
...
op-node/rollup/derive/payloads_queue_test.go
View file @
3d5e1b2a
...
...
@@ -7,7 +7,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
func
TestPayloadsByNumber
(
t
*
testing
.
T
)
{
...
...
op-node/rollup/derive/pipeline.go
View file @
3d5e1b2a
...
...
@@ -8,9 +8,9 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
Metrics
interface
{
...
...
op-node/rollup/derive/system_config.go
View file @
3d5e1b2a
...
...
@@ -5,13 +5,14 @@ import (
"errors"
"fmt"
"github.com/hashicorp/go-multierror"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/hashicorp/go-multierror"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/solabi"
)
...
...
op-node/rollup/derive/system_config_test.go
View file @
3d5e1b2a
...
...
@@ -4,7 +4,7 @@ import (
"math/big"
"testing"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
...
...
op-node/rollup/derive/test/random.go
View file @
3d5e1b2a
...
...
@@ -3,9 +3,9 @@ package test
import
(
"math/rand"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/trie"
)
...
...
op-node/rollup/driver/conf_depth.go
View file @
3d5e1b2a
...
...
@@ -3,9 +3,10 @@ package driver
import
(
"context"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum/go-ethereum"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// confDepth is an util that wraps the L1 input fetcher used in the pipeline,
...
...
op-node/rollup/driver/conf_depth_test.go
View file @
3d5e1b2a
...
...
@@ -6,10 +6,11 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
var
exHash
=
common
.
Hash
{
0xff
}
...
...
op-node/rollup/driver/driver.go
View file @
3d5e1b2a
...
...
@@ -7,10 +7,10 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
Metrics
interface
{
...
...
op-node/rollup/driver/l1_state.go
View file @
3d5e1b2a
...
...
@@ -3,7 +3,7 @@ package driver
import
(
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
type
L1Metrics
interface
{
...
...
op-node/rollup/driver/metered_engine.go
View file @
3d5e1b2a
...
...
@@ -6,9 +6,9 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
EngineMetrics
interface
{
...
...
op-node/rollup/driver/metered_l1fetcher.go
View file @
3d5e1b2a
...
...
@@ -4,8 +4,8 @@ import (
"context"
"time"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
)
...
...
op-node/rollup/driver/metered_l1fetcher_test.go
View file @
3d5e1b2a
...
...
@@ -6,8 +6,8 @@ import (
"testing"
"time"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/stretchr/testify/mock"
...
...
op-node/rollup/driver/origin_selector.go
View file @
3d5e1b2a
...
...
@@ -8,9 +8,9 @@ import (
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
L1Blocks
interface
{
...
...
op-node/rollup/driver/origin_selector_test.go
View file @
3d5e1b2a
...
...
@@ -4,10 +4,10 @@ import (
"context"
"testing"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
...
...
op-node/rollup/driver/sequencer.go
View file @
3d5e1b2a
...
...
@@ -10,9 +10,9 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
Downloader
interface
{
...
...
op-node/rollup/driver/sequencer_test.go
View file @
3d5e1b2a
...
...
@@ -16,12 +16,12 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
var
mockResetErr
=
fmt
.
Errorf
(
"mock reset err: %w"
,
derive
.
ErrReset
)
...
...
op-node/rollup/driver/state.go
View file @
3d5e1b2a
...
...
@@ -13,10 +13,10 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/backoff"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// Deprecated: use eth.SyncStatus instead.
...
...
op-node/rollup/output_root.go
View file @
3d5e1b2a
...
...
@@ -4,7 +4,7 @@ import (
"errors"
"github.com/ethereum-optimism/optimism/op-bindings/bindings"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
var
ErrNilProof
=
errors
.
New
(
"output root proof is nil"
)
...
...
op-node/rollup/sync/start.go
View file @
3d5e1b2a
...
...
@@ -28,11 +28,12 @@ import (
"errors"
"fmt"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
L1Chain
interface
{
...
...
op-node/rollup/sync/start_test.go
View file @
3d5e1b2a
...
...
@@ -6,10 +6,10 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
)
...
...
op-node/rollup/types.go
View file @
3d5e1b2a
...
...
@@ -12,7 +12,7 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
var
(
...
...
op-node/rollup/types_test.go
View file @
3d5e1b2a
...
...
@@ -14,7 +14,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
func
randConfig
()
*
Config
{
...
...
op-node/sources/engine_client.go
View file @
3d5e1b2a
...
...
@@ -6,9 +6,9 @@ import (
"time"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/sources/caching"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/rpc"
)
...
...
op-node/sources/eth_client.go
View file @
3d5e1b2a
...
...
@@ -22,8 +22,8 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/sources/caching"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
EthClientConfig
struct
{
...
...
op-node/sources/eth_client_test.go
View file @
3d5e1b2a
...
...
@@ -6,18 +6,18 @@ import (
"math/rand"
"testing"
"github.com/ethereum/go-ethereum"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
mockRPC
struct
{
...
...
op-node/sources/l1_client.go
View file @
3d5e1b2a
...
...
@@ -11,9 +11,9 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/sources/caching"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
L1ClientConfig
struct
{
...
...
op-node/sources/l2_client.go
View file @
3d5e1b2a
...
...
@@ -12,10 +12,10 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/sources/caching"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
L2ClientConfig
struct
{
...
...
op-node/sources/receipts.go
View file @
3d5e1b2a
...
...
@@ -12,7 +12,7 @@ import (
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum/go-ethereum/trie"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
// validateReceipts validates that the receipt contents are valid.
...
...
op-node/sources/receipts_test.go
View file @
3d5e1b2a
...
...
@@ -9,9 +9,9 @@ import (
"time"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"
...
...
op-node/sources/rollupclient.go
View file @
3d5e1b2a
...
...
@@ -7,8 +7,8 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
RollupClient
struct
{
...
...
op-node/sources/sync_client.go
View file @
3d5e1b2a
...
...
@@ -9,10 +9,10 @@ import (
"time"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/sources/caching"
"github.com/ethereum-optimism/optimism/op-service/backoff"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/log"
"github.com/libp2p/go-libp2p/core/peer"
...
...
op-node/sources/types.go
View file @
3d5e1b2a
...
...
@@ -15,7 +15,7 @@ import (
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum/go-ethereum/trie"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
type
BatchCallContextFn
func
(
ctx
context
.
Context
,
b
[]
rpc
.
BatchElem
)
error
...
...
op-node/testutils/block_id.go
View file @
3d5e1b2a
...
...
@@ -4,7 +4,7 @@ import (
"strconv"
"strings"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/common"
)
...
...
op-node/testutils/fake_chain.go
View file @
3d5e1b2a
...
...
@@ -6,11 +6,12 @@ import (
"fmt"
"math/big"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
func
FakeGenesis
(
l1
rune
,
l2
rune
,
l1GenesisNumber
int
)
rollup
.
Genesis
{
...
...
op-node/testutils/l1info.go
View file @
3d5e1b2a
...
...
@@ -5,7 +5,7 @@ import (
"math/big"
"math/rand"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
)
...
...
op-node/testutils/metrics.go
View file @
3d5e1b2a
package
testutils
import
(
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
// TestDerivationMetrics implements the metrics used in the derivation pipeline as no-op operations.
...
...
op-node/testutils/mock_engine.go
View file @
3d5e1b2a
...
...
@@ -3,7 +3,7 @@ package testutils
import
(
"context"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
type
MockEngine
struct
{
...
...
op-node/testutils/mock_eth_client.go
View file @
3d5e1b2a
...
...
@@ -8,7 +8,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
type
MockEthClient
struct
{
...
...
op-node/testutils/mock_l1.go
View file @
3d5e1b2a
...
...
@@ -3,7 +3,7 @@ package testutils
import
(
"context"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/common"
)
...
...
op-node/testutils/mock_l2.go
View file @
3d5e1b2a
...
...
@@ -5,7 +5,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
type
MockL2Client
struct
{
...
...
op-node/testutils/random.go
View file @
3d5e1b2a
...
...
@@ -6,7 +6,7 @@ import (
"math/big"
"math/rand"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
...
...
op-program/client/driver/driver.go
View file @
3d5e1b2a
...
...
@@ -6,11 +6,11 @@ import (
"fmt"
"io"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/log"
)
...
...
op-program/client/driver/driver_test.go
View file @
3d5e1b2a
...
...
@@ -7,9 +7,9 @@ import (
"io"
"testing"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
)
...
...
op-program/client/l1/cache.go
View file @
3d5e1b2a
package
l1
import
(
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/hashicorp/golang-lru/v2/simplelru"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/hashicorp/golang-lru/v2/simplelru"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// Cache size is quite high as retrieving data from the pre-image oracle can be quite expensive
...
...
op-program/client/l1/cache_test.go
View file @
3d5e1b2a
...
...
@@ -4,9 +4,9 @@ import (
"math/rand"
"testing"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-program/client/l1/test"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/stretchr/testify/require"
)
...
...
op-program/client/l1/client.go
View file @
3d5e1b2a
...
...
@@ -5,8 +5,9 @@ import (
"errors"
"fmt"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum/go-ethereum"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
...
...
op-program/client/l1/client_test.go
View file @
3d5e1b2a
...
...
@@ -5,16 +5,18 @@ import (
"math/big"
"testing"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-program/client/l1/test"
"github.com/stretchr/testify/require"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-program/client/l1/test"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
var
_
derive
.
L1Fetcher
=
(
*
OracleL1Client
)(
nil
)
...
...
op-program/client/l1/oracle.go
View file @
3d5e1b2a
...
...
@@ -7,9 +7,9 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum-optimism/optimism/op-node/eth"
preimage
"github.com/ethereum-optimism/optimism/op-preimage"
"github.com/ethereum-optimism/optimism/op-program/client/mpt"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
type
Oracle
interface
{
...
...
op-program/client/l1/oracle_test.go
View file @
3d5e1b2a
...
...
@@ -13,10 +13,10 @@ import (
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testutils"
preimage
"github.com/ethereum-optimism/optimism/op-preimage"
"github.com/ethereum-optimism/optimism/op-program/client/mpt"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// testBlock tests that the given block with receipts can be passed through the preimage oracle.
...
...
op-program/client/l1/test/stub_oracle.go
View file @
3d5e1b2a
...
...
@@ -3,7 +3,7 @@ package test
import
(
"testing"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
)
...
...
op-program/client/l2/cache.go
View file @
3d5e1b2a
package
l2
import
(
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/hashicorp/golang-lru/v2/simplelru"
...
...
op-program/client/l2/cache_test.go
View file @
3d5e1b2a
...
...
@@ -4,9 +4,9 @@ import (
"math/rand"
"testing"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-program/client/l2/test"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/require"
)
...
...
op-program/client/l2/engine.go
View file @
3d5e1b2a
...
...
@@ -6,10 +6,10 @@ import (
"fmt"
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-program/client/l2/engineapi"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
...
...
op-program/client/l2/engine_backend.go
View file @
3d5e1b2a
...
...
@@ -4,8 +4,8 @@ import (
"fmt"
"math/big"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-program/client/l2/engineapi"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus"
"github.com/ethereum/go-ethereum/consensus/beacon"
...
...
op-program/client/l2/engine_backend_test.go
View file @
3d5e1b2a
...
...
@@ -5,11 +5,11 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-chain-ops/genesis"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-program/client/l2/engineapi"
"github.com/ethereum-optimism/optimism/op-program/client/l2/engineapi/test"
l2test
"github.com/ethereum-optimism/optimism/op-program/client/l2/test"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/consensus/beacon"
...
...
op-program/client/l2/engine_test.go
View file @
3d5e1b2a
...
...
@@ -6,8 +6,8 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-node/chaincfg"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus"
"github.com/ethereum/go-ethereum/core/state"
...
...
op-program/client/l2/engineapi/block_processor.go
View file @
3d5e1b2a
...
...
@@ -5,7 +5,7 @@ import (
"fmt"
"math/big"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus"
"github.com/ethereum/go-ethereum/consensus/misc"
...
...
op-program/client/l2/engineapi/l2_engine_api.go
View file @
3d5e1b2a
...
...
@@ -8,7 +8,7 @@ import (
"fmt"
"time"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/beacon/engine"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus"
...
...
op-program/client/l2/engineapi/test/l2_engine_api_tests.go
View file @
3d5e1b2a
...
...
@@ -4,10 +4,10 @@ import (
"context"
"testing"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-program/client/l2/engineapi"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
...
...
op-program/client/l2/oracle.go
View file @
3d5e1b2a
...
...
@@ -7,9 +7,9 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum-optimism/optimism/op-node/eth"
preimage
"github.com/ethereum-optimism/optimism/op-preimage"
"github.com/ethereum-optimism/optimism/op-program/client/mpt"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// StateOracle defines the high-level API used to retrieve L2 state data pre-images
...
...
op-program/client/l2/oracle_test.go
View file @
3d5e1b2a
...
...
@@ -13,10 +13,10 @@ import (
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testutils"
preimage
"github.com/ethereum-optimism/optimism/op-preimage"
"github.com/ethereum-optimism/optimism/op-program/client/mpt"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
func
mockPreimageOracle
(
t
*
testing
.
T
)
(
po
*
PreimageOracle
,
hintsMock
*
mock
.
Mock
,
preimages
map
[
common
.
Hash
][]
byte
)
{
...
...
op-program/client/l2/test/stub_oracle.go
View file @
3d5e1b2a
...
...
@@ -3,7 +3,7 @@ package test
import
(
"testing"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/rawdb"
"github.com/ethereum/go-ethereum/core/types"
...
...
op-program/client/program.go
View file @
3d5e1b2a
...
...
@@ -11,13 +11,13 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/rollup"
preimage
"github.com/ethereum-optimism/optimism/op-preimage"
cldr
"github.com/ethereum-optimism/optimism/op-program/client/driver"
"github.com/ethereum-optimism/optimism/op-program/client/l1"
"github.com/ethereum-optimism/optimism/op-program/client/l2"
oppio
"github.com/ethereum-optimism/optimism/op-program/io"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
// Main executes the client program in a detached context and exits the current process.
...
...
op-program/host/l2_client.go
View file @
3d5e1b2a
...
...
@@ -5,9 +5,9 @@ import (
"fmt"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/sources/caching"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
)
...
...
op-program/host/prefetcher/prefetcher.go
View file @
3d5e1b2a
...
...
@@ -6,12 +6,12 @@ import (
"fmt"
"strings"
"github.com/ethereum-optimism/optimism/op-node/eth"
preimage
"github.com/ethereum-optimism/optimism/op-preimage"
"github.com/ethereum-optimism/optimism/op-program/client/l1"
"github.com/ethereum-optimism/optimism/op-program/client/l2"
"github.com/ethereum-optimism/optimism/op-program/client/mpt"
"github.com/ethereum-optimism/optimism/op-program/host/kvstore"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"
...
...
op-program/host/prefetcher/prefetcher_test.go
View file @
3d5e1b2a
...
...
@@ -13,13 +13,13 @@ import (
"github.com/ethereum/go-ethereum/rlp"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testutils"
preimage
"github.com/ethereum-optimism/optimism/op-preimage"
"github.com/ethereum-optimism/optimism/op-program/client/l1"
"github.com/ethereum-optimism/optimism/op-program/client/l2"
"github.com/ethereum-optimism/optimism/op-program/client/mpt"
"github.com/ethereum-optimism/optimism/op-program/host/kvstore"
"github.com/ethereum-optimism/optimism/op-service/eth"
)
func
TestNoHint
(
t
*
testing
.
T
)
{
...
...
op-program/host/prefetcher/retry.go
View file @
3d5e1b2a
...
...
@@ -4,8 +4,8 @@ import (
"context"
"math"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-service/backoff"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
...
...
op-program/host/prefetcher/retry_test.go
View file @
3d5e1b2a
...
...
@@ -5,10 +5,10 @@ import (
"errors"
"testing"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/backoff"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
...
...
op-proposer/metrics/metrics.go
View file @
3d5e1b2a
...
...
@@ -3,7 +3,7 @@ package metrics
import
(
"context"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
...
...
op-proposer/metrics/noop.go
View file @
3d5e1b2a
package
metrics
import
(
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
opmetrics
"github.com/ethereum-optimism/optimism/op-service/metrics"
txmetrics
"github.com/ethereum-optimism/optimism/op-service/txmgr/metrics"
)
...
...
op-proposer/proposer/l2_output_submitter.go
View file @
3d5e1b2a
...
...
@@ -17,12 +17,12 @@ import (
"github.com/urfave/cli/v2"
"github.com/ethereum-optimism/optimism/op-bindings/bindings"
"github.com/ethereum-optimism/optimism/op-node/eth"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-proposer/flags"
"github.com/ethereum-optimism/optimism/op-proposer/metrics"
opservice
"github.com/ethereum-optimism/optimism/op-service"
opclient
"github.com/ethereum-optimism/optimism/op-service/client"
"github.com/ethereum-optimism/optimism/op-service/eth"
oplog
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/ethereum-optimism/optimism/op-service/opio"
oppprof
"github.com/ethereum-optimism/optimism/op-service/pprof"
...
...
op-service/Makefile
View file @
3d5e1b2a
...
...
@@ -10,4 +10,10 @@ generate-mocks:
.PHONY
:
\
test
\
lint
\
generate-mocks
generate-mocks
\
fuzz
fuzz
:
go
test
-run
NOTAREALTEST
-v
-fuzztime
10s
-fuzz
FuzzExecutionPayloadUnmarshal ./eth
go
test
-run
NOTAREALTEST
-v
-fuzztime
10s
-fuzz
FuzzExecutionPayloadMarshalUnmarshal ./eth
go
test
-run
NOTAREALTEST
-v
-fuzztime
10s
-fuzz
FuzzOBP01 ./eth
op-
nod
e/eth/account_proof.go
→
op-
servic
e/eth/account_proof.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/account_proof_test.go
→
op-
servic
e/eth/account_proof_test.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/block_info.go
→
op-
servic
e/eth/block_info.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/heads.go
→
op-
servic
e/eth/heads.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/id.go
→
op-
servic
e/eth/id.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/label.go
→
op-
servic
e/eth/label.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/output.go
→
op-
servic
e/eth/output.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/output_test.go
→
op-
servic
e/eth/output_test.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/receipts.go
→
op-
servic
e/eth/receipts.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/ssz.go
→
op-
servic
e/eth/ssz.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/ssz_test.go
→
op-
servic
e/eth/ssz_test.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/status.go
→
op-
servic
e/eth/status.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/sync_status.go
→
op-
servic
e/eth/sync_status.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/transactions.go
→
op-
servic
e/eth/transactions.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/types.go
→
op-
servic
e/eth/types.go
View file @
3d5e1b2a
File moved
op-
nod
e/eth/types_test.go
→
op-
servic
e/eth/types_test.go
View file @
3d5e1b2a
File moved
op-service/metrics/ref_metrics.go
View file @
3d5e1b2a
...
...
@@ -4,7 +4,7 @@ import (
"encoding/binary"
"time"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/prometheus/client_golang/prometheus"
...
...
op-service/solabi/util.go
View file @
3d5e1b2a
...
...
@@ -8,7 +8,7 @@ import (
"io"
"math/big"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/common"
)
...
...
op-wheel/cheat/cheat.go
View file @
3d5e1b2a
...
...
@@ -12,7 +12,7 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/consensus/beacon"
...
...
op-wheel/engine/engine.go
View file @
3d5e1b2a
...
...
@@ -16,7 +16,7 @@ import (
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-
nod
e/eth"
"github.com/ethereum-optimism/optimism/op-
servic
e/eth"
)
type
PayloadAttributesV2
struct
{
...
...
ops-bedrock/Dockerfile.stateviz
View file @
3d5e1b2a
...
...
@@ -6,6 +6,7 @@ COPY ./go.mod /app/go.mod
COPY ./go.sum /app/go.sum
COPY ./op-bindings /app/op-bindings
COPY ./op-service /app/op-service
WORKDIR /app/op-node
RUN go mod download -x
...
...
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