Skip to content

Commit

Permalink
Merge pull request #321 from freak12techno/add-rest-commission-endpoi…
Browse files Browse the repository at this point in the history
…nt-stub

Add REST validator unclaimed commission endpoint stub
  • Loading branch information
mappum authored Oct 29, 2024
2 parents da29cf7 + e54dc90 commit fbaacb3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,15 @@ async fn distribution_delegators_rewards(address: &str) -> Value {
})
}

#[get("/cosmos/distribution/v1beta1/validators/<address>/commission")]
async fn distribution_validator_commission(address: &str) -> Value {
json!({
"commission": {
"commission": []
}
})
}

#[get("/cosmos/distribution/v1beta1/delegators/<address>/rewards/<validator_address>")]
async fn distribution_delegators_rewards_for_validator(
address: &str,
Expand Down Expand Up @@ -1466,6 +1475,7 @@ fn rocket() -> _ {
staking_validator_single_delegation,
distribution_delegators_rewards,
distribution_delegators_rewards_for_validator,
distribution_validator_commission,
minting_inflation,
minting_inflation_2,
staking_pool,
Expand Down

0 comments on commit fbaacb3

Please sign in to comment.