Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added devnet/.DS_Store
Binary file not shown.
7 changes: 4 additions & 3 deletions devnet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,10 @@ services:
- ./config-op/genesis-reth.json:/genesis.json
- ./entrypoint:/entrypoint
- ./.env:/.env
- ./logs/op-reth-seq:/logs/reth
# Profiling data directory
- ./profiling/op-reth-seq:/profiling
# Kernel tracing filesystem for perf profiling
# Kernel tracing filesystem for perf profiling
- /sys/kernel/tracing:/sys/kernel/tracing:ro
ports:
- "8123:8545"
Expand Down Expand Up @@ -281,7 +282,7 @@ services:
- ./.env:/.env
# Profiling data directory
- ./profiling/op-reth-rpc:/profiling
# Kernel tracing filesystem for perf profiling
# Kernel tracing filesystem for perf profiling
- /sys/kernel/tracing:/sys/kernel/tracing:ro
ports:
- "8124:8545"
Expand Down Expand Up @@ -902,7 +903,7 @@ services:
- challenger
- --env-file=/app/.env

kailua-contracts:
kailua-contracts:
image: ${KAILUA_IMAGE_TAG}
container_name: kailua-contracts
environment:
Expand Down
2 changes: 2 additions & 0 deletions devnet/entrypoint/reth-seq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ CMD="op-reth node \
--rpc.eth-proof-window=10000 \
--txpool.pending-max-size=2000 \
--txpool.basefee-max-size=2000 \
--log.file.directory=/logs/reth \
--log.file.filter=debug,rpc=trace,engine=trace,engine_api=trace \
$INNERTX_FLAG"

# For flashblocks architecture
Expand Down
14 changes: 7 additions & 7 deletions devnet/example.env
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# ==============================================================================
# OP Stack Configuration
# ==============================================================================
OP_STACK_LOCAL_DIRECTORY=
SKIP_OP_STACK_BUILD=true
OP_STACK_LOCAL_DIRECTORY=/Users/cliffyang/dev/okx/optimism
SKIP_OP_STACK_BUILD=false
OP_STACK_IMAGE_TAG=op-stack:latest

# ==============================================================================
# OP Contracts Configuration
# ==============================================================================
SKIP_OP_CONTRACTS_BUILD=true
SKIP_OP_CONTRACTS_BUILD=false
OP_CONTRACTS_IMAGE_TAG=op-contracts:latest

# ==============================================================================
Expand All @@ -22,9 +22,9 @@ OP_GETH_IMAGE_TAG=op-geth:latest
# ==============================================================================
# OP Reth Configuration
# ==============================================================================
OP_RETH_LOCAL_DIRECTORY=
OP_RETH_BRANCH=
SKIP_OP_RETH_BUILD=true
OP_RETH_LOCAL_DIRECTORY=/Users/cliffyang/dev/okx/reth
OP_RETH_BRANCH=dev
SKIP_OP_RETH_BUILD=false
OP_RETH_IMAGE_TAG=op-reth:latest

# Profiling configuration for op-reth
Expand Down Expand Up @@ -170,7 +170,7 @@ LAUNCH_RPC_NODE=true
# Trusted peers enode url configurations for the shared private sequencer txpool
TRUSTED_PEERS=

FLASHBLOCK_ENABLED=true
FLASHBLOCK_ENABLED=false
FLASHBLOCK_P2P_ENABLED=false

OWNER_TYPE=transactor # safe
60 changes: 60 additions & 0 deletions local/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
make build-op PROFILE=release

rm -rf ./op_reth_data

./target/release/op-reth init \
--datadir ./op_reth_data \
--chain ../optimism/build/genesis.json

./target/release/op-reth node \
--datadir ./.op-reth \
--chain ../optimism/build/genesis.json \
--full \
--http \
--http.addr=0.0.0.0 \
--http.port=7547 \
--http.api web3,debug,eth,txpool,net \
--http.corsdomain "*" \
--ws \
--ws.addr=0.0.0.0 \
--ws.port=7546 \
--ws.api debug,eth,txpool,net \
--ws.origins "*" \
--authrpc.addr 0.0.0.0 \
--authrpc.port 8552 \
--authrpc.jwtsecret /tmp/jwt.txt \
--txpool.pending-max-count 800000 \
--txpool.pending-max-size 4096 \
--txpool.queued-max-count 800000 \
--txpool.queued-max-size 4096 \
--txpool.max-account-slots 1024 \
--discovery.v5.port 9207 \
--ipcpath /Users/yangweitao/meili/cliff.yang_dacs_at_okg.com/117/Documents/reth.ipc \
--log.file.directory ./logs/reth > op-reth.log 2>&1



cast wallet derive-private-key \
--mnemonic-path ./mnemonic.txt \
--mnemonic-index 0

{
"address": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"privateKey": "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
},
{
"address": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
"privateKey": "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
}

export RPC_URL=localhost:8545
cast balance 0x70997970C51812dc3A010C7d01b50e0d17dc79C8 --rpc-url $RPC_URL

cast send 0x70997970C51812dc3A010C7d01b50e0d17dc79C8 \
--value 0.02ether \
--rpc-url $RPC_URL \
--private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
--priority-gas-price 2gwei \
--gas-price 50gwei

cast balance
Loading