-
Notifications
You must be signed in to change notification settings - Fork 35
Composite Scenarios Execution - Setup parallely, spam parallely (and in stages) #242
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
base: main
Are you sure you want to change the base?
Changes from 4 commits
9d7a6bf
171b220
7c91fdf
bb62181
4b15167
cdf64f4
34c9dd3
e4c262d
52ba64c
2a437b2
b40f725
92e08ec
6f9e430
d264c62
bfbd5ea
7629a88
ad913cc
dd613f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| setup: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be cool if we didn't have to manually call setup. Feels like manually specifying rpc_urls for setup could get confusing in a large file (i.e. the user tries to spam on an alternate chain but forgets to run setup on that chain). Instead, we could check if the scenario TOML file has any setup directives, then run |
||
| simpler: | ||
| testfile: ./scenarios/simpler.toml | ||
| min_balance: 12.1 | ||
|
|
||
| uniV2: | ||
| testfile: ./scenarios/uniV2.toml | ||
| rpc_url: http://localhost:8545 # Optional | ||
| min_balance: "11" | ||
| env: | ||
| - Key1=Valu1 | ||
| - Key2=Valu2 | ||
| private_keys: # Optional (these Private keys are from Anvil) | ||
| - 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | ||
| - 0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d | ||
|
||
| tx_type: eip1559 # Optional | ||
|
|
||
| uniV3: | ||
| testfile: ./scenarios/simple.toml | ||
| rpc_url: http://localhost:8545 # Optional | ||
| min_balance: 0.01 # Optional | ||
| tx_type: eip1559 # Optional | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,7 @@ serde_json = { workspace = true } | |
| tracing = { workspace = true } | ||
| tracing-subscriber = { workspace = true } | ||
| webbrowser = { workspace = true } | ||
| yaml-rust2 = "0.10.2" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know I specified yaml when I wrote the issue but I wonder if toml would be better -- wdyt?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Toml can be nice, since we're using it for the other configurations too. For this case, I would prefer YAML solely because of the readability and syntax familiarity with Docker compose syntax. |
||
| op-alloy-network = { workspace = true } | ||
|
|
||
| [dev-dependencies] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this should be in the project root -- maybe it would fit better under
scenarios/? Or we could have a new directory calledcomposite-scenarios/or something like that.We should also use valid values, so that users with a simple node (e.g. anvil w/ default config) running on localhost:8545 can run the compose file without error. Any advanced examples we want to show off should go in a document under
docs/.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should also enforce a
.compose.tomlfilename restriction, so users don't accidentally try to run core scenario files as compose files