Skip to content

Commit

Permalink
chore: add cosmos.base.node.v1beta1.Service/Config for REST api
Browse files Browse the repository at this point in the history
  • Loading branch information
dudong2 committed Nov 16, 2022
1 parent 92112b8 commit 725aaad
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 2 deletions.
3 changes: 3 additions & 0 deletions client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@
},
{
"url": "./tmp-swagger-gen/lbm/wasm/v1/query.swagger.json"
},
{
"url": "./tmp-swagger-gen/cosmos/base/node/v1beta1/query.swagger.json"
}
]
}
2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45711,6 +45711,45 @@ paths:
type: string
tags:
- Query
/cosmos/base/node/v1beta1/config:
get:
summary: Config queries for the operator configuration.
operationId: Config
responses:
'200':
description: A successful response.
schema:
type: object
properties:
minimum_gas_price:
type: string
description: >-
ConfigResponse defines the response structure for the Config gRPC
query.
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
tags:
- Service
securityDefinitions:
kms:
type: basic
Expand Down Expand Up @@ -72494,3 +72533,9 @@ definitions:
description: >-
QueryInactiveContractsResponse is the response type for the
Query/InactiveContract RPC method.
cosmos.base.node.v1beta1.ConfigResponse:
type: object
properties:
minimum_gas_price:
type: string
description: ConfigResponse defines the response structure for the Config gRPC query.
2 changes: 1 addition & 1 deletion server/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
func NewRollbackCmd(appCreator types.AppCreator, defaultNodeHome string) *cobra.Command {
cmd := &cobra.Command{
Use: "rollback",
Short: "rollback cosmos-sdk and tendermint state by one height",
Short: "rollback lbm-sdk and tendermint state by one height",
Long: `
A state rollback is performed to recover from an incorrect application state transition,
when Tendermint has persisted an incorrect app hash and is thus unable to make
Expand Down
3 changes: 3 additions & 0 deletions simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,9 @@ func (app *SimApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APICon
// Register new tendermint queries routes from grpc-gateway.
tmservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)

// Register node gRPC service for grpc-gateway.
nodeservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)

// Register legacy and grpc-gateway routes for all modules.
ModuleBasics.RegisterRESTRoutes(clientCtx, apiSvr.Router)
ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
Expand Down

0 comments on commit 725aaad

Please sign in to comment.