Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Jul 18, 2024
1 parent d34f41b commit 30d8e98
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 247 deletions.
7 changes: 4 additions & 3 deletions bolt-spammer-helder/.env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
EL_PROVIDER_URL=https://rpc.helder-devnets.xyz
BEACON_CLIENT_URL=
REGISTRY_ADDRESS=0xdF11D829eeC4C192774F3Ec171D822f6Cb4C14d9
PRIVATE_KEY=
REGISTRY_ABI_PATH=./registry_abi.json

# these can be used as defaults
EL_PROVIDER_URL=https://rpc.helder-devnets.xyz
REGISTRY_ADDRESS=0xdF11D829eeC4C192774F3Ec171D822f6Cb4C14d9
11 changes: 5 additions & 6 deletions bolt-spammer-helder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
To run the spammer, make sure to set the following environment variables in a `.env` file:

```text
EL_PROVIDER_URL=https://rpc.helder-devnets.xyz
BEACON_CLIENT_URL=
REGISTRY_ADDRESS=0xdF11D829eeC4C192774F3Ec171D822f6Cb4C14d9
PRIVATE_KEY=
REGISTRY_ABI_PATH=./registry_abi.json
PRIVATE_KEY=<your account private key with ETH on Helder>
BEACON_CLIENT_URL=<your beacon client HTTP endpoint>
```

This template can be found in the `env.example` file.

Then, just run the spammer with `cargo run`. It will fetch all the validators of the current epoch,
Then, just run the spammer with `cargo run`.

It will fetch all the validators of the current epoch,
and try to send a pre-confirmation to the first one registered on the Bolt registry.
If no validators are found, the program will gracefully exit. Please try again in the next epoch!
234 changes: 0 additions & 234 deletions bolt-spammer-helder/registry_abi.json

This file was deleted.

5 changes: 1 addition & 4 deletions bolt-spammer-helder/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{path::PathBuf, str::FromStr};
use std::str::FromStr;

use alloy::{
eips::eip2718::Encodable2718,
Expand Down Expand Up @@ -37,9 +37,6 @@ struct Opts {
/// Private key to sign transactions with
#[clap(short = 'k', long, env)]
private_key: String,
/// Path to the ABI file of the Bolt Registry smart contract
#[clap(short = 'a', long, env, default_value = "./registry_abi.json")]
registry_abi_path: PathBuf,
// Flag for generating a blob tx instead of a regular tx
#[clap(short, long, default_value = "false")]
blob: bool,
Expand Down

0 comments on commit 30d8e98

Please sign in to comment.