You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add gRPC gateway support for Query service and Msg service
- Generated query.pb.gw.go to handle RESTful JSON APIs for the Query service.
- Implemented MsgUpdateParams and MsgUpdateParamsResponse in tx.pb.go for governance operations.
- Created types.go to define the package structure for evmbridge types.
{"id":"junction","consumes":["application/json"],"produces":["application/json"],"swagger":"2.0","info":{"description":"Chain junction REST API","title":"HTTP API Console","contact":{"name":"junction"},"version":"version not set"},"paths":{"/junction.evmbridge.v1.Msg/UpdateParams":{"post":{"tags":["Msg"],"summary":"UpdateParams defines a (governance) operation for updating the module\nparameters. The authority defaults to the x/gov module account.","operationId":"JunctionMsg_UpdateParams","parameters":[{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","name":"body","in":"body","required":true,"schema":{"$ref":"#/definitions/junction.evmbridge.v1.MsgUpdateParams"}}],"responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/junction.evmbridge.v1.MsgUpdateParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}},"/junction/evmbridge/v1/params":{"get":{"tags":["Query"],"summary":"Parameters queries the parameters of the module.","operationId":"JunctionQuery_Params","responses":{"200":{"description":"A successful response.","schema":{"$ref":"#/definitions/junction.evmbridge.v1.QueryParamsResponse"}},"default":{"description":"An unexpected error response.","schema":{"$ref":"#/definitions/google.rpc.Status"}}}}}},"definitions":{"google.protobuf.Any":{"type":"object","properties":{"@type":{"type":"string"}},"additionalProperties":{}},"google.rpc.Status":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"details":{"type":"array","items":{"type":"object","$ref":"#/definitions/google.protobuf.Any"}},"message":{"type":"string"}}},"junction.evmbridge.v1.MsgUpdateParams":{"description":"MsgUpdateParams is the Msg/UpdateParams request type.","type":"object","properties":{"authority":{"description":"authority is the address that controls the module (defaults to x/gov unless overwritten).","type":"string"},"params":{"description":"params defines the module parameters to update.\n\nNOTE: All parameters must be supplied.","$ref":"#/definitions/junction.evmbridge.v1.Params"}}},"junction.evmbridge.v1.MsgUpdateParamsResponse":{"description":"MsgUpdateParamsResponse defines the response structure for executing a\nMsgUpdateParams message.","type":"object"},"junction.evmbridge.v1.Params":{"description":"Params defines the parameters for the module.","type":"object"},"junction.evmbridge.v1.QueryParamsResponse":{"description":"QueryParamsResponse is response type for the Query/Params RPC method.","type":"object","properties":{"params":{"description":"params holds all the parameters of this module.","$ref":"#/definitions/junction.evmbridge.v1.Params"}}}},"tags":[{"name":"Query"},{"name":"Msg"}]}
0 commit comments