Skip to content

Commit

Permalink
fix cli cmd for x/reporter (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
akremstudy authored Jan 8, 2025
1 parent d03b7a3 commit dc700cf
Show file tree
Hide file tree
Showing 5 changed files with 180 additions and 120 deletions.
58 changes: 30 additions & 28 deletions api/layer/reporter/query.pulsar.go

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

2 changes: 1 addition & 1 deletion proto/layer/reporter/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ service Query {
}
// AvailableTips queries the tips available for withdrawal for a given selector.
rpc AvailableTipsByQuery(QueryAvailableTipsRequest) returns (QueryAvailableTipsResponse) {
option (google.api.http).get = "/tellor-io/layer/reporter/available-tips/{selector_address}";
option (google.api.http).get = "/tellor-io/layer/reporter/available-tips/{selector_address}/{reporter_address}/{query_id}/{meta_id}";
}
// RewardClaimStatus queries if a query's reward was already claimed by querymeta.Id
rpc RewardClaimStatus(QueryRewardClaimStatusRequest) returns (QueryRewardClaimStatusResponse) {
Expand Down
11 changes: 10 additions & 1 deletion x/reporter/module/autocli.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
RpcMethod: "AvailableTipsByQuery",
Use: "available-tips-by-query",
Short: "Query how much how much tips a selector has",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "selector_address"}},
PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "selector_address"}, {ProtoField: "reporter_address"}, {ProtoField: "query_id"}, {ProtoField: "meta_id"}},
},
{
RpcMethod: "RewardClaimStatus",
Expand Down Expand Up @@ -112,6 +112,15 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
{ProtoField: "query_id"},
},
},
{
RpcMethod: "WithdrawTipLegacy",
Use: "withdraw-tip-legacy [selector-address] [validator-address]",
Short: "Send a WithdrawTip tx",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{
{ProtoField: "selector_address"},
{ProtoField: "validator_address"},
},
},
// this line is used by ignite scaffolding # autocli/tx
},
},
Expand Down
Loading

0 comments on commit dc700cf

Please sign in to comment.