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

default contracts & configs #33

Closed
wants to merge 34 commits into from
Closed

default contracts & configs #33

wants to merge 34 commits into from

Conversation

zeroXbrock
Copy link
Member

  • add contracts under testfile crate
  • add module default_templates to generate TestConfig templates that can be used as starting points or full test configs
  • add DefaultConfig enum which configures preset examples (one test case FillBlock included)
  • add template command to CLI to write templates from default_templates to testfiles

example: fill blocks with as much gas as possible

# in contender/cli:

# this will create testfile.toml by default. To change it, add flag '-o <filename>'
cargo run -- template -b fillblock -r http://localhost:8545
cargo run -- setup ./testfile.toml http://localhost:8545 -p 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
cargo run -- spam ./testfile.toml http://localhost:8545 -p 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --tpb 2 -d 3

@zeroXbrock
Copy link
Member Author

nope, don't need all these submodules

@zeroXbrock zeroXbrock closed this Dec 4, 2024
@zeroXbrock zeroXbrock deleted the fill-block branch December 4, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant