Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to OP stack v1.3.0 #67

Merged
merged 44 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9df1613
clarify default deployment name
norswap Nov 26, 2023
c58d365
update setup to install optimism 1.3.0
norswap Nov 26, 2023
92a4d36
update geth dependency
norswap Nov 26, 2023
76548b8
update L2 chain ID default to match Optimism monorepo default
norswap Nov 26, 2023
ceb21ea
add function to send JSON-RPC requests
norswap Nov 26, 2023
c4cf3f5
avoid spurious errors when killing an already terminated process
norswap Nov 26, 2023
91776a9
modfiy the deploy config templates to match monorepo, reformat, and i…
norswap Nov 26, 2023
e5c5674
rename
norswap Nov 26, 2023
c26f1b4
avoid double exception reporting
norswap Nov 26, 2023
fec939a
generate JWT secret in node / engine directly if it does not exist
norswap Nov 26, 2023
73c97f3
fix doc
norswap Nov 26, 2023
6b39cd1
reformat
norswap Nov 26, 2023
f5e81b1
add deployer_account config matching deployer_key
norswap Nov 26, 2023
8c682c4
change signer account/key to match monorepo
norswap Nov 26, 2023
7b5121a
improve config doc
norswap Nov 26, 2023
422d674
add new config options for op stack v1.3.0
norswap Nov 26, 2023
6c3a9c6
update roll-op to work with op stack v1.3.0
norswap Nov 26, 2023
1c8e0ce
improve cleaning commands
norswap Nov 26, 2023
b923e9d
enable --yes for l1 and devnet commands as well
norswap Nov 26, 2023
760ac7c
make help less unwieldy
norswap Nov 26, 2023
c974314
add custom tag for correct optimism monorepo version, only checkout i…
norswap Nov 27, 2023
525aa7a
update required Go version, improve & clarify installation process
norswap Nov 27, 2023
255130f
fix race condition that makes on_exit trigger when we call `kill` or …
norswap Nov 27, 2023
8a8607c
update getting-started config
norswap Nov 27, 2023
33fe4fb
update config to split the remote urls into components & enable compo…
norswap Nov 27, 2023
888b8cb
fix incorrect url in the tmp L1 case
norswap Nov 27, 2023
c6f234a
update values for doc config
norswap Nov 27, 2023
5abd48d
clarify source of devnet config
norswap Nov 27, 2023
a4c4a58
update default config to be no less snappy than the doc / prod config
norswap Nov 27, 2023
18ebcb2
misc doc
norswap Nov 27, 2023
6e2b218
make the default config be the devnet config (effectively already use…
norswap Nov 27, 2023
1656597
document the various configs
norswap Nov 27, 2023
401e19f
revert adding the 's' suffix
norswap Nov 27, 2023
b72eea5
ignore jwt.txt
norswap Nov 27, 2023
5177ab7
clarify allow_non_finalized
norswap Nov 28, 2023
1113322
fix batch inbox address auto-generation from chain ID
norswap Nov 28, 2023
91db3dd
fix config example, regularize key format
norswap Nov 28, 2023
067f3a8
improve RPC URL handling to allow for path component for the L1 and h…
norswap Nov 28, 2023
f12b4bf
fix option name and automatically set l1_rpc_for_node_url if not set
norswap Nov 28, 2023
5e6c0fd
can't have both --unlocked and a private key
norswap Nov 28, 2023
a30acd3
overriden by the main script anyway, but this is the default there
norswap Nov 28, 2023
8acfd89
deploy salt
norswap Nov 28, 2023
5016f23
avoid awk, which swallows errors; also no need to set timestamp expli…
norswap Nov 28, 2023
3f58eb5
lint & format
norswap Nov 28, 2023
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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@
# Private configuration
/.env
/config.toml

# Misc

## jwt file path in optimism doc config
jwt.txt
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lint-fix:
@ruff check . --fix
.PHONY: lint-fix

AUTOPEP8_EXCLUDES=optimism,op-geth,venv,account-abstraction
AUTOPEP8_EXCLUDES=bin,venv,optimism,op-geth,account-abstraction,paymaster,blockscout
AUTOPEP8_OPTIONS=--recursive . --exclude $(AUTOPEP8_EXCLUDES) --max-line-length 100

format-check:
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ always for your permission before installing anything outside the current direct
## Usage

```
usage: rollop [-h] [--name NAME] [--preset {dev,prod}] [--config CONFIG_PATH] [--clean] [--stack-trace] [--no-ansi-esc] <command> ...
usage: rollop <options> <command> <command_options> ...

Helps you spin up an op-stack rollup.
Use `rollop <command> --help` to get more detailed help for a command.
Expand All @@ -70,11 +70,12 @@ commands:

-- MAIN COMMANDS --

help show this help message and exit~~~~
help show this help message and exit
setup installs prerequisites and builds the optimism repository
devnet starts a local devnet, comprising an L1 node and all L2 components
clean cleans up deployment outputs and databases
l2 deploys and starts a local L2 blockchain
aa starts an ERC-4337 bundler and a paymaster signer service

-- GRANULAR COMMANDS --

Expand All @@ -89,8 +90,9 @@ commands:
-- CLEANUP --

clean-build cleans up build outputs (but not deployment outputs or databases)
clean-l1 cleans up deployment outputs & databases for L1
clean-l2 cleans up deployment outputs & databases for L2
clean-aa cleans up deployment outputs for account abstraction
clean-l1 cleans up deployment outputs & databases for L1, deploy config is preserved
clean-l2 cleans up deployment outputs & databases for L2, deploy config is preserved
```

You can also use the `roll.py` script directly as `./roll.py` or `python3 roll.py` as an
Expand All @@ -102,7 +104,7 @@ repository and can be symlinked if required.
```bash
./rollop setup
./rollop setup --yes # auto-install all dependencies
./rollop --clean devnet
./rollop --clean devnet # default deployment name is "rollup"

# equivalent with a different deployment name
./rollop --clean --name=testing --preset=dev --config=config.toml.example devnet
Expand Down
4 changes: 2 additions & 2 deletions account_abstraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def start_bundler(config: Config):
bundler_key = bundler_key[2:]

env = {**os.environ,
"ERC4337_BUNDLER_ETH_CLIENT_URL": config.l2_engine_rpc,
"ERC4337_BUNDLER_ETH_CLIENT_URL": config.l2_engine_rpc_url,
"ERC4337_BUNDLER_PRIVATE_KEY": bundler_key}

log_file_path = "logs/stackup_bundler.log"
Expand Down Expand Up @@ -163,7 +163,7 @@ def start_paymaster(config: Config):
).strip().split(' ')[-1]

env = {**os.environ,
"RPC_URL": config.l2_engine_rpc,
"RPC_URL": config.l2_engine_rpc_url,
"PAYMASTER_RPC_URL": "http://localhost:3000",
"ENTRYPOINT_ADDRESS": entrypoint_address,
"SIMPLE_ACCOUNT_FACTORY_ADDRESS": simple_account_factory_address,
Expand Down
5 changes: 5 additions & 0 deletions block_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ def launch_blockscout():


####################################################################################################

def clean():
pass # TODO

####################################################################################################
Loading