diff --git a/proto/celestia/mint/v1/genesis.proto b/proto/celestia/mint/v1/genesis.proto index f4da8cf6a0..60810ed8b3 100644 --- a/proto/celestia/mint/v1/genesis.proto +++ b/proto/celestia/mint/v1/genesis.proto @@ -9,5 +9,5 @@ option go_package = "github.com/celestiaorg/celestia-app/x/mint/types"; // GenesisState defines the mint module's genesis state. message GenesisState { // minter is a space for holding current inflation information. - Minter minter = 1 [(gogoproto.nullable) = false]; + Minter minter = 1 [ (gogoproto.nullable) = false ]; } diff --git a/proto/celestia/mint/v1/mint.proto b/proto/celestia/mint/v1/mint.proto index 47f74a9101..598fa08b87 100644 --- a/proto/celestia/mint/v1/mint.proto +++ b/proto/celestia/mint/v1/mint.proto @@ -13,23 +13,24 @@ message Minter { // current year. For example if InflationRate=0.1, then 10% of the total // supply will be minted over the course of the year. string inflation_rate = 1 [ - (cosmos_proto.scalar) = "cosmos.Dec", + (cosmos_proto.scalar) = "cosmos.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; // AnnualProvisions is the total number of tokens to be minted in the current // year due to inflation. string annual_provisions = 2 [ - (cosmos_proto.scalar) = "cosmos.Dec", + (cosmos_proto.scalar) = "cosmos.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; // GenesisTime is the timestamp of the genesis block. - google.protobuf.Timestamp genesis_time = 3 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp genesis_time = 3 [ (gogoproto.stdtime) = true ]; // PreviousBlockTime is the timestamp of the previous block. - google.protobuf.Timestamp previous_block_time = 4 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp previous_block_time = 4 + [ (gogoproto.stdtime) = true ]; // BondDenom is the denomination of the token that should be minted. string bond_denom = 5; diff --git a/proto/celestia/mint/v1/query.proto b/proto/celestia/mint/v1/query.proto index 5df7fe8706..7e402500c9 100644 --- a/proto/celestia/mint/v1/query.proto +++ b/proto/celestia/mint/v1/query.proto @@ -11,12 +11,14 @@ option go_package = "github.com/celestiaorg/celestia-app/x/mint/types"; // Query defines the gRPC querier service. service Query { // InflationRate returns the current inflation rate. - rpc InflationRate(QueryInflationRateRequest) returns (QueryInflationRateResponse) { + rpc InflationRate(QueryInflationRateRequest) + returns (QueryInflationRateResponse) { option (google.api.http).get = "/cosmos/mint/v1beta1/inflation_rate"; } // AnnualProvisions returns the current annual provisions. - rpc AnnualProvisions(QueryAnnualProvisionsRequest) returns (QueryAnnualProvisionsResponse) { + rpc AnnualProvisions(QueryAnnualProvisionsRequest) + returns (QueryAnnualProvisionsResponse) { option (google.api.http).get = "/cosmos/mint/v1beta1/annual_provisions"; } @@ -26,14 +28,18 @@ service Query { } } -// QueryInflationRateRequest is the request type for the Query/InflationRate RPC method. +// QueryInflationRateRequest is the request type for the Query/InflationRate RPC +// method. message QueryInflationRateRequest {} -// QueryInflationRateResponse is the response type for the Query/InflationRate RPC -// method. +// QueryInflationRateResponse is the response type for the Query/InflationRate +// RPC method. message QueryInflationRateResponse { // InflationRate is the current inflation rate. - bytes inflation_rate = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + bytes inflation_rate = 1 [ + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.nullable) = false + ]; } // QueryAnnualProvisionsRequest is the request type for the @@ -44,15 +50,19 @@ message QueryAnnualProvisionsRequest {} // Query/AnnualProvisions RPC method. message QueryAnnualProvisionsResponse { // AnnualProvisions is the current annual provisions. - bytes annual_provisions = 1 - [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + bytes annual_provisions = 1 [ + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.nullable) = false + ]; } -// QueryGenesisTimeRequest is the request type for the Query/GenesisTime RPC method. +// QueryGenesisTimeRequest is the request type for the Query/GenesisTime RPC +// method. message QueryGenesisTimeRequest {} -// QueryGenesisTimeResponse is the response type for the Query/GenesisTime RPC method. +// QueryGenesisTimeResponse is the response type for the Query/GenesisTime RPC +// method. message QueryGenesisTimeResponse { // GenesisTime is the timestamp associated with the first block. - google.protobuf.Timestamp genesis_time = 1 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp genesis_time = 1 [ (gogoproto.stdtime) = true ]; } diff --git a/x/mint/types/query.pb.go b/x/mint/types/query.pb.go index 27ed105d0d..e8c0b49266 100644 --- a/x/mint/types/query.pb.go +++ b/x/mint/types/query.pb.go @@ -34,7 +34,8 @@ var _ = time.Kitchen // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// QueryInflationRateRequest is the request type for the Query/InflationRate RPC method. +// QueryInflationRateRequest is the request type for the Query/InflationRate RPC +// method. type QueryInflationRateRequest struct { } @@ -71,8 +72,8 @@ func (m *QueryInflationRateRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryInflationRateRequest proto.InternalMessageInfo -// QueryInflationRateResponse is the response type for the Query/InflationRate RPC -// method. +// QueryInflationRateResponse is the response type for the Query/InflationRate +// RPC method. type QueryInflationRateResponse struct { // InflationRate is the current inflation rate. InflationRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation_rate,json=inflationRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation_rate"` @@ -189,7 +190,8 @@ func (m *QueryAnnualProvisionsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryAnnualProvisionsResponse proto.InternalMessageInfo -// QueryGenesisTimeRequest is the request type for the Query/GenesisTime RPC method. +// QueryGenesisTimeRequest is the request type for the Query/GenesisTime RPC +// method. type QueryGenesisTimeRequest struct { } @@ -226,7 +228,8 @@ func (m *QueryGenesisTimeRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryGenesisTimeRequest proto.InternalMessageInfo -// QueryGenesisTimeResponse is the response type for the Query/GenesisTime RPC method. +// QueryGenesisTimeResponse is the response type for the Query/GenesisTime RPC +// method. type QueryGenesisTimeResponse struct { // GenesisTime is the timestamp associated with the first block. GenesisTime *time.Time `protobuf:"bytes,1,opt,name=genesis_time,json=genesisTime,proto3,stdtime" json:"genesis_time,omitempty"`