Skip to content

Commit

Permalink
docs: fix small documentation typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine committed Oct 25, 2023
1 parent a69b501 commit e8cc50e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions wasmbinding/stargate_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
WasmAcceptedStargateQueries: Specifies which `QueryRequest::Stargate` types
can be sent to the application.
### On Stargate Queries
### On Stargate Queries:
A Stargate query is encoded the same way as abci_query, with path and protobuf
encoded request data. The format is defined in
Expand All @@ -45,10 +45,10 @@ requests and responses.
}
```
### Relationship with the protobuf message
### Relationship with Protobuf Message:
A protobuf message with type URL "/cosmos.bank.v1beta1.QueryBalanceResponse"
gives communicates a lot of information. From this type URL, we know:
communicates a lot of information. From this type URL, we know:
- The protobuf message has package "cosmos.bank.v1beta1"
- The protobuf message has name "QueryBalanceResponse"
Expand All @@ -60,7 +60,7 @@ service description, not the type URL. In this example:
- The method name for this request on that service is "Balance"
This results in the expected `Stargate.path` of "/[SERVICE_NAME]/[METHOD]".
By conention, the gRPC query service corresponding to a package is always
By convention, the gRPC query service corresponding to a package is always
"[PB_MSG.PACKAGE].Query".
Given only the `PB_MSG.PACKAGE` and the `PB_MSG.NAME` of either the query
Expand Down Expand Up @@ -101,24 +101,24 @@ func WasmAcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries {
"/cosmos.gov.v1.Query/Params": new(gov.QueryParamsResponse),
"/cosmos.gov.v1.Query/Vote": new(gov.QueryVoteResponse),

// nibiru.tokenfactory
// nibiru tokenfactory
"/nibiru.tokenfactory.v1.Query/Denoms": new(tokenfactory.QueryDenomsResponse),
"/nibiru.tokenfactory.v1.Query/Params": new(tokenfactory.QueryParamsResponse),
"/nibiru.tokenfactory.v1.Query/DenomInfo": new(tokenfactory.QueryDenomInfoResponse),

// nibiru.epochs
// nibiru epochs
"/nibiru.epochs.v1.Query/EpochInfos": new(epochs.QueryEpochInfosResponse),
"/nibiru.epochs.v1.Query/CurrentEpoch": new(epochs.QueryCurrentEpochResponse),

// nibiru - inflation
// nibiru inflation
"/nibiru.inflation.v1.Query/Period": new(inflation.QueryPeriodResponse),
"/nibiru.inflation.v1.Query/EpochMintProvision": new(inflation.QueryEpochMintProvisionResponse),
"/nibiru.inflation.v1.Query/SkippedEpochs": new(inflation.QuerySkippedEpochsResponse),
"/nibiru.inflation.v1.Query/CirculatingSupply": new(inflation.QueryCirculatingSupplyResponse),
"/nibiru.inflation.v1.Query/InflationRate": new(inflation.QueryInflationRateResponse),
"/nibiru.inflation.v1.Query/Params": new(inflation.QueryParamsResponse),

// nibiru.oracle
// nibiru oracle
"/nibiru.oracle.v1.Query/ExchangeRate": new(oracle.QueryExchangeRateResponse),
"/nibiru.oracle.v1.Query/ExchangeRateTwap": new(oracle.QueryExchangeRateResponse),
"/nibiru.oracle.v1.Query/ExchangeRates": new(oracle.QueryExchangeRatesResponse),
Expand All @@ -132,10 +132,10 @@ func WasmAcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries {
"/nibiru.oracle.v1.Query/AggregateVotes": new(oracle.QueryAggregateVotesResponse),
"/nibiru.oracle.v1.Query/Params": new(oracle.QueryParamsResponse),

// nibiru.sudo
// nibiru sudo
"/nibiru.sudo.v1.Query/QuerySudoers": new(sudotypes.QuerySudoersResponse),

// nibiru.devgas
// nibiru devgas
"/nibiru.devgas.v1.Query/FeeShares": new(devgas.QueryFeeSharesResponse),
"/nibiru.devgas.v1.Query/FeeShare": new(devgas.QueryFeeShareResponse),
"/nibiru.devgas.v1.Query/Params": new(devgas.QueryParamsResponse),
Expand Down

0 comments on commit e8cc50e

Please sign in to comment.