Skip to content

Commit

Permalink
add reclaim rent workflow (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
segfaultdoc committed Mar 28, 2023
1 parent 1c19c82 commit c1cbf7f
Show file tree
Hide file tree
Showing 11 changed files with 410 additions and 57 deletions.
169 changes: 142 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion tip-distributor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = "Collection of binaries used to distribute MEV rewards to delegato

[dependencies]
anchor-lang = { path = "../anchor/lang" }
clap = { version = "3.2.5", features = ["derive", "env"] }
clap = { version = "4.1.11", features = ["derive", "env"] }
env_logger = "0.9.0"
futures = "0.3.21"
im = "15.1.0"
Expand Down Expand Up @@ -45,3 +45,7 @@ path = "src/bin/merkle-root-uploader.rs"
[[bin]]
name = "solana-claim-mev-tips"
path = "src/bin/claim-mev-tips.rs"

[[bin]]
name = "solana-reclaim-rent"
path = "src/bin/reclaim-rent.rs"
10 changes: 5 additions & 5 deletions tip-distributor/src/bin/claim-mev-tips.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ use {
};

#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
#[command(author, version, about, long_about = None)]
struct Args {
/// Path to JSON file containing the [GeneratedMerkleTreeCollection] object.
#[clap(long, env)]
#[arg(long, env)]
merkle_trees_path: PathBuf,

/// RPC to send transactions through
#[clap(long, env)]
#[arg(long, env)]
rpc_url: String,

/// Tip distribution program ID
#[clap(long, env)]
#[arg(long, env)]
tip_distribution_program_id: String,

/// Path to keypair
#[clap(long, env)]
#[arg(long, env)]
keypair_path: PathBuf,
}

Expand Down
6 changes: 3 additions & 3 deletions tip-distributor/src/bin/merkle-root-generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ use {
};

#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
#[command(author, version, about, long_about = None)]
struct Args {
/// Path to JSON file containing the [StakeMetaCollection] object.
#[clap(long, env)]
#[arg(long, env)]
stake_meta_coll_path: PathBuf,

/// Path to JSON file to get populated with tree node data.
#[clap(long, env)]
#[arg(long, env)]
out_path: PathBuf,
}

Expand Down
Loading

0 comments on commit c1cbf7f

Please sign in to comment.