Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetMinter() *Minter
- func (x *GenesisState) GetParams() *Params
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type Minter
- func (*Minter) Descriptor() ([]byte, []int)deprecated
- func (x *Minter) GetAnnualProvisions() string
- func (x *Minter) GetData() []byte
- func (x *Minter) GetInflation() string
- func (*Minter) ProtoMessage()
- func (x *Minter) ProtoReflect() protoreflect.Message
- func (x *Minter) Reset()
- func (x *Minter) String() string
- type MsgClient
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type Params
- func (*Params) Descriptor() ([]byte, []int)deprecated
- func (x *Params) GetBlocksPerYear() uint64
- func (x *Params) GetGoalBonded() string
- func (x *Params) GetInflationMax() string
- func (x *Params) GetInflationMin() string
- func (x *Params) GetInflationRateChange() string
- func (x *Params) GetMaxSupply() string
- func (x *Params) GetMintDenom() string
- func (*Params) ProtoMessage()
- func (x *Params) ProtoReflect() protoreflect.Message
- func (x *Params) Reset()
- func (x *Params) String() string
- type QueryAnnualProvisionsRequest
- func (*QueryAnnualProvisionsRequest) Descriptor() ([]byte, []int)deprecated
- func (*QueryAnnualProvisionsRequest) ProtoMessage()
- func (x *QueryAnnualProvisionsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAnnualProvisionsRequest) Reset()
- func (x *QueryAnnualProvisionsRequest) String() string
- type QueryAnnualProvisionsResponse
- func (*QueryAnnualProvisionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAnnualProvisionsResponse) GetAnnualProvisions() []byte
- func (*QueryAnnualProvisionsResponse) ProtoMessage()
- func (x *QueryAnnualProvisionsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAnnualProvisionsResponse) Reset()
- func (x *QueryAnnualProvisionsResponse) String() string
- type QueryClient
- type QueryInflationRequest
- type QueryInflationResponse
- func (*QueryInflationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryInflationResponse) GetInflation() []byte
- func (*QueryInflationResponse) ProtoMessage()
- func (x *QueryInflationResponse) ProtoReflect() protoreflect.Message
- func (x *QueryInflationResponse) Reset()
- func (x *QueryInflationResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) AnnualProvisions(context.Context, *QueryAnnualProvisionsRequest) (*QueryAnnualProvisionsResponse, error)
- func (UnimplementedQueryServer) Inflation(context.Context, *QueryInflationRequest) (*QueryInflationResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Params_FullMethodName = "/cosmos.mint.v1beta1.Query/Params" Query_Inflation_FullMethodName = "/cosmos.mint.v1beta1.Query/Inflation" Query_AnnualProvisions_FullMethodName = "/cosmos.mint.v1beta1.Query/AnnualProvisions" )
const (
Msg_UpdateParams_FullMethodName = "/cosmos.mint.v1beta1.Msg/UpdateParams"
)
Variables ¶
var File_cosmos_mint_v1beta1_genesis_proto protoreflect.FileDescriptor
var File_cosmos_mint_v1beta1_mint_proto protoreflect.FileDescriptor
var File_cosmos_mint_v1beta1_query_proto protoreflect.FileDescriptor
var File_cosmos_mint_v1beta1_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.mint.v1beta1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/mint/v1beta1/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.mint.v1beta1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "Inflation", Handler: _Query_Inflation_Handler, }, { MethodName: "AnnualProvisions", Handler: _Query_AnnualProvisions_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/mint/v1beta1/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct { // minter is a space for holding current inflation information. Minter *Minter `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter,omitempty"` // params defines all the parameters of the module. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
GenesisState defines the mint module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetMinter ¶
func (x *GenesisState) GetMinter() *Minter
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type Minter ¶
type Minter struct { // current annual inflation rate Inflation string `protobuf:"bytes,1,opt,name=inflation,proto3" json:"inflation,omitempty"` // current annual expected provisions AnnualProvisions string `protobuf:"bytes,2,opt,name=annual_provisions,json=annualProvisions,proto3" json:"annual_provisions,omitempty"` // data is any custom data that the user might want to put in the minter, to // be used in the minting process. Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Minter represents the minting state.
func (*Minter) Descriptor
deprecated
func (*Minter) GetAnnualProvisions ¶
func (*Minter) GetInflation ¶
func (*Minter) ProtoMessage ¶
func (*Minter) ProtoMessage()
func (*Minter) ProtoReflect ¶
func (x *Minter) ProtoReflect() protoreflect.Message
type MsgClient ¶
type MsgClient interface { // UpdateParams defines a governance operation for updating the x/mint module // parameters. The authority is defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Msg defines the x/mint Msg service.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgServer ¶
type MsgServer interface { // UpdateParams defines a governance operation for updating the x/mint module // parameters. The authority is defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility.
Msg defines the x/mint Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/mint parameters to update. // // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type Params ¶
type Params struct { // type of coin to mint MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` // maximum annual change in inflation rate InflationRateChange string `protobuf:"bytes,2,opt,name=inflation_rate_change,json=inflationRateChange,proto3" json:"inflation_rate_change,omitempty"` // maximum inflation rate InflationMax string `protobuf:"bytes,3,opt,name=inflation_max,json=inflationMax,proto3" json:"inflation_max,omitempty"` // minimum inflation rate InflationMin string `protobuf:"bytes,4,opt,name=inflation_min,json=inflationMin,proto3" json:"inflation_min,omitempty"` // goal of percent bonded atoms GoalBonded string `protobuf:"bytes,5,opt,name=goal_bonded,json=goalBonded,proto3" json:"goal_bonded,omitempty"` // expected blocks per year BlocksPerYear uint64 `protobuf:"varint,6,opt,name=blocks_per_year,json=blocksPerYear,proto3" json:"blocks_per_year,omitempty"` // maximum supply for the token MaxSupply string `protobuf:"bytes,7,opt,name=max_supply,json=maxSupply,proto3" json:"max_supply,omitempty"` // contains filtered or unexported fields }
Params defines the parameters for the x/mint module.
func (*Params) Descriptor
deprecated
func (*Params) GetBlocksPerYear ¶
func (*Params) GetGoalBonded ¶
func (*Params) GetInflationMax ¶
func (*Params) GetInflationMin ¶
func (*Params) GetInflationRateChange ¶
func (*Params) GetMaxSupply ¶
func (*Params) GetMintDenom ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryAnnualProvisionsRequest ¶
type QueryAnnualProvisionsRequest struct {
// contains filtered or unexported fields
}
QueryAnnualProvisionsRequest is the request type for the Query/AnnualProvisions RPC method.
func (*QueryAnnualProvisionsRequest) Descriptor
deprecated
func (*QueryAnnualProvisionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAnnualProvisionsRequest.ProtoReflect.Descriptor instead.
func (*QueryAnnualProvisionsRequest) ProtoMessage ¶
func (*QueryAnnualProvisionsRequest) ProtoMessage()
func (*QueryAnnualProvisionsRequest) ProtoReflect ¶
func (x *QueryAnnualProvisionsRequest) ProtoReflect() protoreflect.Message
func (*QueryAnnualProvisionsRequest) Reset ¶
func (x *QueryAnnualProvisionsRequest) Reset()
func (*QueryAnnualProvisionsRequest) String ¶
func (x *QueryAnnualProvisionsRequest) String() string
type QueryAnnualProvisionsResponse ¶
type QueryAnnualProvisionsResponse struct { // annual_provisions is the current minting annual provisions value. AnnualProvisions []byte `protobuf:"bytes,1,opt,name=annual_provisions,json=annualProvisions,proto3" json:"annual_provisions,omitempty"` // contains filtered or unexported fields }
QueryAnnualProvisionsResponse is the response type for the Query/AnnualProvisions RPC method.
func (*QueryAnnualProvisionsResponse) Descriptor
deprecated
func (*QueryAnnualProvisionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAnnualProvisionsResponse.ProtoReflect.Descriptor instead.
func (*QueryAnnualProvisionsResponse) GetAnnualProvisions ¶
func (x *QueryAnnualProvisionsResponse) GetAnnualProvisions() []byte
func (*QueryAnnualProvisionsResponse) ProtoMessage ¶
func (*QueryAnnualProvisionsResponse) ProtoMessage()
func (*QueryAnnualProvisionsResponse) ProtoReflect ¶
func (x *QueryAnnualProvisionsResponse) ProtoReflect() protoreflect.Message
func (*QueryAnnualProvisionsResponse) Reset ¶
func (x *QueryAnnualProvisionsResponse) Reset()
func (*QueryAnnualProvisionsResponse) String ¶
func (x *QueryAnnualProvisionsResponse) String() string
type QueryClient ¶
type QueryClient interface { // Params returns the total set of minting parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Inflation returns the current minting inflation value. Inflation(ctx context.Context, in *QueryInflationRequest, opts ...grpc.CallOption) (*QueryInflationResponse, error) // AnnualProvisions current minting annual provisions value. AnnualProvisions(ctx context.Context, in *QueryAnnualProvisionsRequest, opts ...grpc.CallOption) (*QueryAnnualProvisionsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Query provides defines the gRPC querier service.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryInflationRequest ¶
type QueryInflationRequest struct {
// contains filtered or unexported fields
}
QueryInflationRequest is the request type for the Query/Inflation RPC method.
func (*QueryInflationRequest) Descriptor
deprecated
func (*QueryInflationRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryInflationRequest.ProtoReflect.Descriptor instead.
func (*QueryInflationRequest) ProtoMessage ¶
func (*QueryInflationRequest) ProtoMessage()
func (*QueryInflationRequest) ProtoReflect ¶
func (x *QueryInflationRequest) ProtoReflect() protoreflect.Message
func (*QueryInflationRequest) Reset ¶
func (x *QueryInflationRequest) Reset()
func (*QueryInflationRequest) String ¶
func (x *QueryInflationRequest) String() string
type QueryInflationResponse ¶
type QueryInflationResponse struct { // inflation is the current minting inflation value. Inflation []byte `protobuf:"bytes,1,opt,name=inflation,proto3" json:"inflation,omitempty"` // contains filtered or unexported fields }
QueryInflationResponse is the response type for the Query/Inflation RPC method.
func (*QueryInflationResponse) Descriptor
deprecated
func (*QueryInflationResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryInflationResponse.ProtoReflect.Descriptor instead.
func (*QueryInflationResponse) GetInflation ¶
func (x *QueryInflationResponse) GetInflation() []byte
func (*QueryInflationResponse) ProtoMessage ¶
func (*QueryInflationResponse) ProtoMessage()
func (*QueryInflationResponse) ProtoReflect ¶
func (x *QueryInflationResponse) ProtoReflect() protoreflect.Message
func (*QueryInflationResponse) Reset ¶
func (x *QueryInflationResponse) Reset()
func (*QueryInflationResponse) String ¶
func (x *QueryInflationResponse) String() string
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params defines the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryServer ¶
type QueryServer interface { // Params returns the total set of minting parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Inflation returns the current minting inflation value. Inflation(context.Context, *QueryInflationRequest) (*QueryInflationResponse, error) // AnnualProvisions current minting annual provisions value. AnnualProvisions(context.Context, *QueryAnnualProvisionsRequest) (*QueryAnnualProvisionsResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility.
Query provides defines the gRPC querier service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedQueryServer) AnnualProvisions ¶
func (UnimplementedQueryServer) AnnualProvisions(context.Context, *QueryAnnualProvisionsRequest) (*QueryAnnualProvisionsResponse, error)
func (UnimplementedQueryServer) Inflation ¶
func (UnimplementedQueryServer) Inflation(context.Context, *QueryInflationRequest) (*QueryInflationResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.