Skip to content

Commit

Permalink
fix!: rpc endpoint spelling (#2212)
Browse files Browse the repository at this point in the history
* fix: rpc endpoint spelling

* cl++

* proto gen

* cl--
  • Loading branch information
adamewozniak authored and robert-zaremba committed Aug 30, 2023
1 parent 9f04a78 commit 735bfae
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 154 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
- [2148](https://github.com/umee-network/umee/pull/2148) Fix MsgBeginUnbonding counting existing unbondings against max unbond twice.
- [2148](https://github.com/umee-network/umee/pull/2148) Fix MsgLeverageLiquidate CLI not actually allowing wildcard denoms.
- [2197](https://github.com/umee-network/umee/pull/2197) Allowing duplicate symbols on leverage token registry. Fix the oracle voting miss counter on duplicate symbol denoms.
- [2212](https://github.com/umee-network/umee/pull/2212) Fixes an x/oracle RPC endpoint spelling, changing "/umee/oracle/v1/valdiators/{validator_addr}/aggregate_vote" to "/umee/oracle/v1/validators/{validator_addr}/aggregate_vote"

### Improvements

Expand Down
2 changes: 1 addition & 1 deletion proto/umee/oracle/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ service Query {
rpc AggregateVote(QueryAggregateVote)
returns (QueryAggregateVoteResponse) {
option (google.api.http).get =
"/umee/oracle/v1/valdiators/{validator_addr}/aggregate_vote";
"/umee/oracle/v1/validators/{validator_addr}/aggregate_vote";
}

// AggregateVotes returns aggregate votes of all validators
Expand Down
146 changes: 73 additions & 73 deletions swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1728,74 +1728,6 @@ paths:
format: byte
tags:
- Query
/umee/oracle/v1/valdiators/{validator_addr}/aggregate_vote:
get:
summary: AggregateVote returns an aggregate vote of a validator
operationId: AggregateVote
responses:
'200':
description: A successful response.
schema:
type: object
properties:
aggregate_vote:
title: >-
aggregate_vote defines oracle aggregate vote submitted by a
validator in
the current vote period
type: object
properties:
exchange_rate_tuples:
type: array
items:
type: object
properties:
denom:
type: string
exchange_rate:
type: string
title: >-
ExchangeRateTuple - struct to store interpreted exchange
rates data to store
voter:
type: string
description: |-
AggregateExchangeRateVote - struct for voting on
the exchange rates of USD denominated in various assets.
description: |-
QueryAggregateVoteResponse is response type for the
Query/AggregateVote RPC method.
default:
description: An unexpected error response.
schema:
type: object
properties:
error:
type: string
code:
type: integer
format: int32
message:
type: string
details:
type: array
items:
type: object
properties:
type_url:
type: string
value:
type: string
format: byte
parameters:
- name: validator_addr
description: validator defines the validator address to query for.
in: path
required: true
type: string
tags:
- Query
/umee/oracle/v1/validators/aggregate_prevotes:
get:
summary: AggregatePrevotes returns aggregate prevotes of all validators
Expand Down Expand Up @@ -1989,6 +1921,74 @@ paths:
type: string
tags:
- Query
/umee/oracle/v1/validators/{validator_addr}/aggregate_vote:
get:
summary: AggregateVote returns an aggregate vote of a validator
operationId: AggregateVote
responses:
'200':
description: A successful response.
schema:
type: object
properties:
aggregate_vote:
type: object
properties:
exchange_rate_tuples:
type: array
items:
type: object
properties:
denom:
type: string
exchange_rate:
type: string
title: >-
ExchangeRateTuple - struct to store interpreted exchange
rates data to store
voter:
type: string
description: |-
AggregateExchangeRateVote - struct for voting on
the exchange rates of USD denominated in various assets.
title: >-
aggregate_vote defines oracle aggregate vote submitted by a
validator in
the current vote period
description: |-
QueryAggregateVoteResponse is response type for the
Query/AggregateVote RPC method.
default:
description: An unexpected error response.
schema:
type: object
properties:
error:
type: string
code:
type: integer
format: int32
message:
type: string
details:
type: array
items:
type: object
properties:
type_url:
type: string
value:
type: string
format: byte
parameters:
- name: validator_addr
description: validator defines the validator address to query for.
in: path
required: true
type: string
tags:
- Query
/umee/oracle/v1/validators/{validator_addr}/feeder:
get:
summary: FeederDelegation returns feeder delegation of a validator
Expand Down Expand Up @@ -4897,11 +4897,6 @@ definitions:
type: object
properties:
aggregate_vote:
title: >-
aggregate_vote defines oracle aggregate vote submitted by a validator
in
the current vote period
type: object
properties:
exchange_rate_tuples:
Expand All @@ -4921,6 +4916,11 @@ definitions:
description: |-
AggregateExchangeRateVote - struct for voting on
the exchange rates of USD denominated in various assets.
title: >-
aggregate_vote defines oracle aggregate vote submitted by a validator
in
the current vote period
description: |-
QueryAggregateVoteResponse is response type for the
Query/AggregateVote RPC method.
Expand Down
Loading

0 comments on commit 735bfae

Please sign in to comment.