Skip to content

Commit

Permalink
feat: claim rewards (#552)
Browse files Browse the repository at this point in the history
* checkpoint

* make the cli async:

* no-verify

* go

* checkpoint

* checkpoint

* checkpoint

* checkpoint

* checkpoint

* more cleanup

* finished cleanup

* checkpoint

* clean

* add warning

* do it

* cleanup main.rs

* fianl cleanup:

* comments

* undo this:
  • Loading branch information
guibescos authored Jan 8, 2025
1 parent 83400a3 commit 7e5ab90
Show file tree
Hide file tree
Showing 5 changed files with 356 additions and 28 deletions.
42 changes: 22 additions & 20 deletions staking/Cargo.lock

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

2 changes: 2 additions & 0 deletions staking/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ uriparse = "0.6.4"
solana-remote-wallet = "1.18.16"
solana-account-decoder = "1.18.16"
chrono = "0.4.38"
futures = "0.3.31"
tokio = "1.42.0"
tokio-stream = "0.1.17"
4 changes: 4 additions & 0 deletions staking/cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ pub enum Action {
},
SaveStakeAccountsSnapshot {},
CloseAllPublisherCaps {},
ClaimRewards {
#[clap(long, help = "Minimum staked tokens")]
min_staked: u64,
},
}

pub enum SignerSource {
Expand Down
Loading

0 comments on commit 7e5ab90

Please sign in to comment.