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

Add quick start command #63

Closed
dmarzzz opened this issue Dec 18, 2024 · 2 comments
Closed

Add quick start command #63

dmarzzz opened this issue Dec 18, 2024 · 2 comments

Comments

@dmarzzz
Copy link
Member

dmarzzz commented Dec 18, 2024

No description provided.

@zeroXbrock
Copy link
Member

zeroXbrock commented Jan 7, 2025

We have a zero-config command contender run that has (at the moment) a single default scenario to run.
Try this:

Run anvil with timed blocks:

anvil -b 1

Then in another shell, run this:

cargo run -- run fill-block http://localhost:8545

if you want to run this on a live network, you just need to add a private key:

cargo run -- run fill-block $RPC_URL -p $YOUR_PRV_KEY

The fill-block scenario will just fill a block to its gas limit.
There's a secret environment variable that allows you to fill less than 100% of the block if desired:

export C_FILL_PERCENT=50
cargo run -- run fill-block $RPC_URL -p $YOUR_PRV_KEY

This just needs to be documented.

@zeroXbrock
Copy link
Member

added examples in readme to illustrate the zero-config option (currently only fill-block but may expand later) in this pr: #78

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

No branches or pull requests

2 participants