Skip to content

Commit

Permalink
chore: Fix lint and update README
Browse files Browse the repository at this point in the history
* fix lint error introduced in previous PR.
* Update readme with instructions to run linter and also add tx-fuzz
  running instructions
  • Loading branch information
vdamle committed Dec 13, 2024
1 parent 6cbfdd3 commit c96dedb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,14 @@ optimism_package:
- rollup-boost
```

#### Run tx-fuzz to send l2 transactions

Compile https://github.com/MariusVanDerWijden/tx-fuzz locally per instructions in the repo. Run tx-fuzz against the l2 EL client's RPC URL and using the pre-funded wallet

```
./livefuzzer spam --sk "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" --rpc http://127.0.0.1:<port> --slot-time 2
```
### Additional configurations
Please find examples of additional configurations in the [test folder](.github/tests/).
Expand Down Expand Up @@ -535,3 +543,11 @@ kurtosis service logs <enclave-name> <service-name> -f . (-f tails the log)
kurtosis service stop <enclave-name> <service-name>
kurtosis service start <enclave-name> <service-name>
```
## Contributing
If you have made changes and would like to submit a PR, test locally and make sure to run `lint` on your changes
```
kurtosis lint --format .
```
2 changes: 1 addition & 1 deletion main.star
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def run(plan, args):
l1_priv_key,
l1_config_env_vars,
optimism_args_with_right_defaults,
l1_network
l1_network,
)

for chain in optimism_args_with_right_defaults.chains:
Expand Down
14 changes: 6 additions & 8 deletions src/contracts/contract_deployer.star
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ FUND_SCRIPT_FILEPATH = "../../static_files/scripts"
utils = import_module("../util.star")


def deploy_contracts(
plan,
priv_key,
l1_config_env_vars,
optimism_args,
l1_network
):
def deploy_contracts(plan, priv_key, l1_config_env_vars, optimism_args, l1_network):
l2_chain_ids = ",".join(
[str(chain.network_params.network_id) for chain in optimism_args.chains]
)
Expand Down Expand Up @@ -164,7 +158,11 @@ def deploy_contracts(
name="op-deployer-fund",
description="Collect keys, and fund addresses",
image=utils.DEPLOYMENT_UTILS_IMAGE,
env_vars={"PRIVATE_KEY": str(priv_key), "FUND_VALUE": "10ether", "L1_NETWORK": str(l1_network)}
env_vars={
"PRIVATE_KEY": str(priv_key),
"FUND_VALUE": "10ether",
"L1_NETWORK": str(l1_network),
}
| l1_config_env_vars,
store=[
StoreSpec(
Expand Down

0 comments on commit c96dedb

Please sign in to comment.