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 ExponentialCalculation
- func (*ExponentialCalculation) Descriptor() ([]byte, []int)deprecated
- func (x *ExponentialCalculation) GetA() string
- func (x *ExponentialCalculation) GetBondingTarget() string
- func (x *ExponentialCalculation) GetC() string
- func (x *ExponentialCalculation) GetMaxVariance() string
- func (x *ExponentialCalculation) GetR() string
- func (*ExponentialCalculation) ProtoMessage()
- func (x *ExponentialCalculation) ProtoReflect() protoreflect.Message
- func (x *ExponentialCalculation) Reset()
- func (x *ExponentialCalculation) String() string
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetEpochIdentifier() string
- func (x *GenesisState) GetEpochsPerPeriod() int64
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetPeriod() uint64
- func (x *GenesisState) GetSkippedEpochs() uint64
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type InflationDistribution
- func (*InflationDistribution) Descriptor() ([]byte, []int)deprecated
- func (x *InflationDistribution) GetCommunityPool() string
- func (x *InflationDistribution) GetStakingRewards() string
- func (*InflationDistribution) ProtoMessage()
- func (x *InflationDistribution) ProtoReflect() protoreflect.Message
- func (x *InflationDistribution) Reset()
- func (x *InflationDistribution) 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) GetEnableInflation() bool
- func (x *Params) GetExponentialCalculation() *ExponentialCalculation
- func (x *Params) GetInflationDistribution() *InflationDistribution
- func (x *Params) GetMintDenom() string
- func (*Params) ProtoMessage()
- func (x *Params) ProtoReflect() protoreflect.Message
- func (x *Params) Reset()
- func (x *Params) String() string
- type QueryCirculatingSupplyRequest
- func (*QueryCirculatingSupplyRequest) Descriptor() ([]byte, []int)deprecated
- func (*QueryCirculatingSupplyRequest) ProtoMessage()
- func (x *QueryCirculatingSupplyRequest) ProtoReflect() protoreflect.Message
- func (x *QueryCirculatingSupplyRequest) Reset()
- func (x *QueryCirculatingSupplyRequest) String() string
- type QueryCirculatingSupplyResponse
- func (*QueryCirculatingSupplyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCirculatingSupplyResponse) GetCirculatingSupply() *v1beta1.DecCoin
- func (*QueryCirculatingSupplyResponse) ProtoMessage()
- func (x *QueryCirculatingSupplyResponse) ProtoReflect() protoreflect.Message
- func (x *QueryCirculatingSupplyResponse) Reset()
- func (x *QueryCirculatingSupplyResponse) String() string
- type QueryClient
- type QueryEpochMintProvisionRequest
- func (*QueryEpochMintProvisionRequest) Descriptor() ([]byte, []int)deprecated
- func (*QueryEpochMintProvisionRequest) ProtoMessage()
- func (x *QueryEpochMintProvisionRequest) ProtoReflect() protoreflect.Message
- func (x *QueryEpochMintProvisionRequest) Reset()
- func (x *QueryEpochMintProvisionRequest) String() string
- type QueryEpochMintProvisionResponse
- func (*QueryEpochMintProvisionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryEpochMintProvisionResponse) GetEpochMintProvision() *v1beta1.DecCoin
- func (*QueryEpochMintProvisionResponse) ProtoMessage()
- func (x *QueryEpochMintProvisionResponse) ProtoReflect() protoreflect.Message
- func (x *QueryEpochMintProvisionResponse) Reset()
- func (x *QueryEpochMintProvisionResponse) String() string
- type QueryInflationRateRequest
- type QueryInflationRateResponse
- func (*QueryInflationRateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryInflationRateResponse) GetInflationRate() string
- func (*QueryInflationRateResponse) ProtoMessage()
- func (x *QueryInflationRateResponse) ProtoReflect() protoreflect.Message
- func (x *QueryInflationRateResponse) Reset()
- func (x *QueryInflationRateResponse) 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 QueryPeriodRequest
- type QueryPeriodResponse
- func (*QueryPeriodResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPeriodResponse) GetPeriod() uint64
- func (*QueryPeriodResponse) ProtoMessage()
- func (x *QueryPeriodResponse) ProtoReflect() protoreflect.Message
- func (x *QueryPeriodResponse) Reset()
- func (x *QueryPeriodResponse) String() string
- type QueryServer
- type QuerySkippedEpochsRequest
- type QuerySkippedEpochsResponse
- func (*QuerySkippedEpochsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySkippedEpochsResponse) GetSkippedEpochs() uint64
- func (*QuerySkippedEpochsResponse) ProtoMessage()
- func (x *QuerySkippedEpochsResponse) ProtoReflect() protoreflect.Message
- func (x *QuerySkippedEpochsResponse) Reset()
- func (x *QuerySkippedEpochsResponse) String() string
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) CirculatingSupply(context.Context, *QueryCirculatingSupplyRequest) (*QueryCirculatingSupplyResponse, error)
- func (UnimplementedQueryServer) EpochMintProvision(context.Context, *QueryEpochMintProvisionRequest) (*QueryEpochMintProvisionResponse, error)
- func (UnimplementedQueryServer) InflationRate(context.Context, *QueryInflationRateRequest) (*QueryInflationRateResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) Period(context.Context, *QueryPeriodRequest) (*QueryPeriodResponse, error)
- func (UnimplementedQueryServer) SkippedEpochs(context.Context, *QuerySkippedEpochsRequest) (*QuerySkippedEpochsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_Period_FullMethodName = "/nexus.inflation.v1.Query/Period" Query_EpochMintProvision_FullMethodName = "/nexus.inflation.v1.Query/EpochMintProvision" Query_SkippedEpochs_FullMethodName = "/nexus.inflation.v1.Query/SkippedEpochs" Query_CirculatingSupply_FullMethodName = "/nexus.inflation.v1.Query/CirculatingSupply" Query_InflationRate_FullMethodName = "/nexus.inflation.v1.Query/InflationRate" Query_Params_FullMethodName = "/nexus.inflation.v1.Query/Params" )
const (
Msg_UpdateParams_FullMethodName = "/nexus.inflation.v1.Msg/UpdateParams"
)
Variables ¶
var File_nexus_inflation_v1_genesis_proto protoreflect.FileDescriptor
var File_nexus_inflation_v1_inflation_proto protoreflect.FileDescriptor
var File_nexus_inflation_v1_query_proto protoreflect.FileDescriptor
var File_nexus_inflation_v1_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nexus.inflation.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "nexus/inflation/v1/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: "nexus.inflation.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Period", Handler: _Query_Period_Handler, }, { MethodName: "EpochMintProvision", Handler: _Query_EpochMintProvision_Handler, }, { MethodName: "SkippedEpochs", Handler: _Query_SkippedEpochs_Handler, }, { MethodName: "CirculatingSupply", Handler: _Query_CirculatingSupply_Handler, }, { MethodName: "InflationRate", Handler: _Query_InflationRate_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "nexus/inflation/v1/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 ExponentialCalculation ¶
type ExponentialCalculation struct { // initial value A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` // reduction factor R string `protobuf:"bytes,2,opt,name=r,proto3" json:"r,omitempty"` // long term inflation C string `protobuf:"bytes,3,opt,name=c,proto3" json:"c,omitempty"` // bonding target BondingTarget string `protobuf:"bytes,4,opt,name=bonding_target,json=bondingTarget,proto3" json:"bonding_target,omitempty"` // max variance MaxVariance string `protobuf:"bytes,5,opt,name=max_variance,json=maxVariance,proto3" json:"max_variance,omitempty"` // contains filtered or unexported fields }
ExponentialCalculation holds factors to calculate exponential inflation on each period. Calculation reference: periodProvision = exponentialDecay * bondingIncentive f(x) = (a * (1 - r) ^ x + c) * (1 + max_variance - bondedRatio * (max_variance / bonding_target))
func (*ExponentialCalculation) Descriptor
deprecated
func (*ExponentialCalculation) Descriptor() ([]byte, []int)
Deprecated: Use ExponentialCalculation.ProtoReflect.Descriptor instead.
func (*ExponentialCalculation) GetA ¶
func (x *ExponentialCalculation) GetA() string
func (*ExponentialCalculation) GetBondingTarget ¶
func (x *ExponentialCalculation) GetBondingTarget() string
func (*ExponentialCalculation) GetC ¶
func (x *ExponentialCalculation) GetC() string
func (*ExponentialCalculation) GetMaxVariance ¶
func (x *ExponentialCalculation) GetMaxVariance() string
func (*ExponentialCalculation) GetR ¶
func (x *ExponentialCalculation) GetR() string
func (*ExponentialCalculation) ProtoMessage ¶
func (*ExponentialCalculation) ProtoMessage()
func (*ExponentialCalculation) ProtoReflect ¶
func (x *ExponentialCalculation) ProtoReflect() protoreflect.Message
func (*ExponentialCalculation) Reset ¶
func (x *ExponentialCalculation) Reset()
func (*ExponentialCalculation) String ¶
func (x *ExponentialCalculation) String() string
type GenesisState ¶
type GenesisState struct { // params defines all the paramaters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // amount of past periods, based on the epochs per period param Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"` // inflation epoch identifier EpochIdentifier string `protobuf:"bytes,3,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty"` // number of epochs after which inflation is recalculated EpochsPerPeriod int64 `protobuf:"varint,4,opt,name=epochs_per_period,json=epochsPerPeriod,proto3" json:"epochs_per_period,omitempty"` // number of epochs that have passed while inflation is disabled SkippedEpochs uint64 `protobuf:"varint,5,opt,name=skipped_epochs,json=skippedEpochs,proto3" json:"skipped_epochs,omitempty"` // contains filtered or unexported fields }
GenesisState defines the inflation module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetEpochIdentifier ¶
func (x *GenesisState) GetEpochIdentifier() string
func (*GenesisState) GetEpochsPerPeriod ¶
func (x *GenesisState) GetEpochsPerPeriod() int64
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetPeriod ¶
func (x *GenesisState) GetPeriod() uint64
func (*GenesisState) GetSkippedEpochs ¶
func (x *GenesisState) GetSkippedEpochs() uint64
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 InflationDistribution ¶
type InflationDistribution struct { // staking_rewards defines the proportion of the minted minted_denom that is // to be allocated as staking rewards StakingRewards string `protobuf:"bytes,1,opt,name=staking_rewards,json=stakingRewards,proto3" json:"staking_rewards,omitempty"` // // usage_incentives defines the proportion of the minted minted_denom that // is // // to be allocated to the incentives module address // string usage_incentives = 2 [ // // (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", // (gogoproto.nullable) = false // // ]; // community_pool defines the proportion of the minted minted_denom that is to // be allocated to the community pool CommunityPool string `protobuf:"bytes,3,opt,name=community_pool,json=communityPool,proto3" json:"community_pool,omitempty"` // contains filtered or unexported fields }
InflationDistribution defines the distribution in which inflation is allocated through minting on each epoch (staking, incentives, community). It excludes the team vesting distribution, as this is minted once at genesis. The initial InflationDistribution can be calculated from the Nexus Token Model like this: mintDistribution1 = distribution1 / (1 - teamVestingDistribution) 0.5333333 = 40% / (1 - 25%)
func (*InflationDistribution) Descriptor
deprecated
func (*InflationDistribution) Descriptor() ([]byte, []int)
Deprecated: Use InflationDistribution.ProtoReflect.Descriptor instead.
func (*InflationDistribution) GetCommunityPool ¶
func (x *InflationDistribution) GetCommunityPool() string
func (*InflationDistribution) GetStakingRewards ¶
func (x *InflationDistribution) GetStakingRewards() string
func (*InflationDistribution) ProtoMessage ¶
func (*InflationDistribution) ProtoMessage()
func (*InflationDistribution) ProtoReflect ¶
func (x *InflationDistribution) ProtoReflect() protoreflect.Message
func (*InflationDistribution) Reset ¶
func (x *InflationDistribution) Reset()
func (*InflationDistribution) String ¶
func (x *InflationDistribution) String() string
type MsgClient ¶
type MsgClient interface { // UpdateParams updates the parameters of the x/inflation module. 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.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgServer ¶
type MsgServer interface { // UpdateParams updates the parameters of the x/inflation module. 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
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/inflation 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 }
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.
Since: cosmos-sdk 0.47
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"` // variables to calculate exponential inflation ExponentialCalculation *ExponentialCalculation `` /* 127-byte string literal not displayed */ // inflation distribution of the minted denom InflationDistribution *InflationDistribution `protobuf:"bytes,3,opt,name=inflation_distribution,json=inflationDistribution,proto3" json:"inflation_distribution,omitempty"` // parameter to enable inflation and halt increasing the skipped_epochs EnableInflation bool `protobuf:"varint,4,opt,name=enable_inflation,json=enableInflation,proto3" json:"enable_inflation,omitempty"` // contains filtered or unexported fields }
Params holds parameters for the inflation module.
func (*Params) Descriptor
deprecated
func (*Params) GetEnableInflation ¶
func (*Params) GetExponentialCalculation ¶
func (x *Params) GetExponentialCalculation() *ExponentialCalculation
func (*Params) GetInflationDistribution ¶
func (x *Params) GetInflationDistribution() *InflationDistribution
func (*Params) GetMintDenom ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryCirculatingSupplyRequest ¶
type QueryCirculatingSupplyRequest struct {
// contains filtered or unexported fields
}
QueryCirculatingSupplyRequest is the request type for the Query/CirculatingSupply RPC method.
func (*QueryCirculatingSupplyRequest) Descriptor
deprecated
func (*QueryCirculatingSupplyRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryCirculatingSupplyRequest.ProtoReflect.Descriptor instead.
func (*QueryCirculatingSupplyRequest) ProtoMessage ¶
func (*QueryCirculatingSupplyRequest) ProtoMessage()
func (*QueryCirculatingSupplyRequest) ProtoReflect ¶
func (x *QueryCirculatingSupplyRequest) ProtoReflect() protoreflect.Message
func (*QueryCirculatingSupplyRequest) Reset ¶
func (x *QueryCirculatingSupplyRequest) Reset()
func (*QueryCirculatingSupplyRequest) String ¶
func (x *QueryCirculatingSupplyRequest) String() string
type QueryCirculatingSupplyResponse ¶
type QueryCirculatingSupplyResponse struct { // total amount of coins in circulation CirculatingSupply *v1beta1.DecCoin `protobuf:"bytes,1,opt,name=circulating_supply,json=circulatingSupply,proto3" json:"circulating_supply,omitempty"` // contains filtered or unexported fields }
QueryCirculatingSupplyResponse is the response type for the Query/CirculatingSupply RPC method.
func (*QueryCirculatingSupplyResponse) Descriptor
deprecated
func (*QueryCirculatingSupplyResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryCirculatingSupplyResponse.ProtoReflect.Descriptor instead.
func (*QueryCirculatingSupplyResponse) GetCirculatingSupply ¶
func (x *QueryCirculatingSupplyResponse) GetCirculatingSupply() *v1beta1.DecCoin
func (*QueryCirculatingSupplyResponse) ProtoMessage ¶
func (*QueryCirculatingSupplyResponse) ProtoMessage()
func (*QueryCirculatingSupplyResponse) ProtoReflect ¶
func (x *QueryCirculatingSupplyResponse) ProtoReflect() protoreflect.Message
func (*QueryCirculatingSupplyResponse) Reset ¶
func (x *QueryCirculatingSupplyResponse) Reset()
func (*QueryCirculatingSupplyResponse) String ¶
func (x *QueryCirculatingSupplyResponse) String() string
type QueryClient ¶
type QueryClient interface { // Period retrieves current period. Period(ctx context.Context, in *QueryPeriodRequest, opts ...grpc.CallOption) (*QueryPeriodResponse, error) // EpochMintProvision retrieves current minting epoch provision value. EpochMintProvision(ctx context.Context, in *QueryEpochMintProvisionRequest, opts ...grpc.CallOption) (*QueryEpochMintProvisionResponse, error) // SkippedEpochs retrieves the total number of skipped epochs. SkippedEpochs(ctx context.Context, in *QuerySkippedEpochsRequest, opts ...grpc.CallOption) (*QuerySkippedEpochsResponse, error) // CirculatingSupply retrieves the total number of tokens that are in // circulation (i.e. excluding unvested tokens). CirculatingSupply(ctx context.Context, in *QueryCirculatingSupplyRequest, opts ...grpc.CallOption) (*QueryCirculatingSupplyResponse, error) // InflationRate retrieves the inflation rate of the current period. InflationRate(ctx context.Context, in *QueryInflationRateRequest, opts ...grpc.CallOption) (*QueryInflationRateResponse, error) // Params retrieves the total set of minting parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryEpochMintProvisionRequest ¶
type QueryEpochMintProvisionRequest struct {
// contains filtered or unexported fields
}
QueryEpochMintProvisionRequest is the request type for the Query/EpochMintProvision RPC method.
func (*QueryEpochMintProvisionRequest) Descriptor
deprecated
func (*QueryEpochMintProvisionRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryEpochMintProvisionRequest.ProtoReflect.Descriptor instead.
func (*QueryEpochMintProvisionRequest) ProtoMessage ¶
func (*QueryEpochMintProvisionRequest) ProtoMessage()
func (*QueryEpochMintProvisionRequest) ProtoReflect ¶
func (x *QueryEpochMintProvisionRequest) ProtoReflect() protoreflect.Message
func (*QueryEpochMintProvisionRequest) Reset ¶
func (x *QueryEpochMintProvisionRequest) Reset()
func (*QueryEpochMintProvisionRequest) String ¶
func (x *QueryEpochMintProvisionRequest) String() string
type QueryEpochMintProvisionResponse ¶
type QueryEpochMintProvisionResponse struct { // epoch_mint_provision is the current minting per epoch provision value. EpochMintProvision *v1beta1.DecCoin `protobuf:"bytes,1,opt,name=epoch_mint_provision,json=epochMintProvision,proto3" json:"epoch_mint_provision,omitempty"` // contains filtered or unexported fields }
QueryEpochMintProvisionResponse is the response type for the Query/EpochMintProvision RPC method.
func (*QueryEpochMintProvisionResponse) Descriptor
deprecated
func (*QueryEpochMintProvisionResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryEpochMintProvisionResponse.ProtoReflect.Descriptor instead.
func (*QueryEpochMintProvisionResponse) GetEpochMintProvision ¶
func (x *QueryEpochMintProvisionResponse) GetEpochMintProvision() *v1beta1.DecCoin
func (*QueryEpochMintProvisionResponse) ProtoMessage ¶
func (*QueryEpochMintProvisionResponse) ProtoMessage()
func (*QueryEpochMintProvisionResponse) ProtoReflect ¶
func (x *QueryEpochMintProvisionResponse) ProtoReflect() protoreflect.Message
func (*QueryEpochMintProvisionResponse) Reset ¶
func (x *QueryEpochMintProvisionResponse) Reset()
func (*QueryEpochMintProvisionResponse) String ¶
func (x *QueryEpochMintProvisionResponse) String() string
type QueryInflationRateRequest ¶
type QueryInflationRateRequest struct {
// contains filtered or unexported fields
}
QueryInflationRateRequest is the request type for the Query/InflationRate RPC method.
func (*QueryInflationRateRequest) Descriptor
deprecated
func (*QueryInflationRateRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryInflationRateRequest.ProtoReflect.Descriptor instead.
func (*QueryInflationRateRequest) ProtoMessage ¶
func (*QueryInflationRateRequest) ProtoMessage()
func (*QueryInflationRateRequest) ProtoReflect ¶
func (x *QueryInflationRateRequest) ProtoReflect() protoreflect.Message
func (*QueryInflationRateRequest) Reset ¶
func (x *QueryInflationRateRequest) Reset()
func (*QueryInflationRateRequest) String ¶
func (x *QueryInflationRateRequest) String() string
type QueryInflationRateResponse ¶
type QueryInflationRateResponse struct { // rate by which the total supply increases within one period InflationRate string `protobuf:"bytes,1,opt,name=inflation_rate,json=inflationRate,proto3" json:"inflation_rate,omitempty"` // contains filtered or unexported fields }
QueryInflationRateResponse is the response type for the Query/InflationRate RPC method.
func (*QueryInflationRateResponse) Descriptor
deprecated
func (*QueryInflationRateResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryInflationRateResponse.ProtoReflect.Descriptor instead.
func (*QueryInflationRateResponse) GetInflationRate ¶
func (x *QueryInflationRateResponse) GetInflationRate() string
func (*QueryInflationRateResponse) ProtoMessage ¶
func (*QueryInflationRateResponse) ProtoMessage()
func (*QueryInflationRateResponse) ProtoReflect ¶
func (x *QueryInflationRateResponse) ProtoReflect() protoreflect.Message
func (*QueryInflationRateResponse) Reset ¶
func (x *QueryInflationRateResponse) Reset()
func (*QueryInflationRateResponse) String ¶
func (x *QueryInflationRateResponse) 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 QueryPeriodRequest ¶
type QueryPeriodRequest struct {
// contains filtered or unexported fields
}
QueryPeriodRequest is the request type for the Query/Period RPC method.
func (*QueryPeriodRequest) Descriptor
deprecated
func (*QueryPeriodRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryPeriodRequest.ProtoReflect.Descriptor instead.
func (*QueryPeriodRequest) ProtoMessage ¶
func (*QueryPeriodRequest) ProtoMessage()
func (*QueryPeriodRequest) ProtoReflect ¶
func (x *QueryPeriodRequest) ProtoReflect() protoreflect.Message
func (*QueryPeriodRequest) Reset ¶
func (x *QueryPeriodRequest) Reset()
func (*QueryPeriodRequest) String ¶
func (x *QueryPeriodRequest) String() string
type QueryPeriodResponse ¶
type QueryPeriodResponse struct { // period is the current minting per epoch provision value. Period uint64 `protobuf:"varint,1,opt,name=period,proto3" json:"period,omitempty"` // contains filtered or unexported fields }
QueryPeriodResponse is the response type for the Query/Period RPC method.
func (*QueryPeriodResponse) Descriptor
deprecated
func (*QueryPeriodResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryPeriodResponse.ProtoReflect.Descriptor instead.
func (*QueryPeriodResponse) GetPeriod ¶
func (x *QueryPeriodResponse) GetPeriod() uint64
func (*QueryPeriodResponse) ProtoMessage ¶
func (*QueryPeriodResponse) ProtoMessage()
func (*QueryPeriodResponse) ProtoReflect ¶
func (x *QueryPeriodResponse) ProtoReflect() protoreflect.Message
func (*QueryPeriodResponse) Reset ¶
func (x *QueryPeriodResponse) Reset()
func (*QueryPeriodResponse) String ¶
func (x *QueryPeriodResponse) String() string
type QueryServer ¶
type QueryServer interface { // Period retrieves current period. Period(context.Context, *QueryPeriodRequest) (*QueryPeriodResponse, error) // EpochMintProvision retrieves current minting epoch provision value. EpochMintProvision(context.Context, *QueryEpochMintProvisionRequest) (*QueryEpochMintProvisionResponse, error) // SkippedEpochs retrieves the total number of skipped epochs. SkippedEpochs(context.Context, *QuerySkippedEpochsRequest) (*QuerySkippedEpochsResponse, error) // CirculatingSupply retrieves the total number of tokens that are in // circulation (i.e. excluding unvested tokens). CirculatingSupply(context.Context, *QueryCirculatingSupplyRequest) (*QueryCirculatingSupplyResponse, error) // InflationRate retrieves the inflation rate of the current period. InflationRate(context.Context, *QueryInflationRateRequest) (*QueryInflationRateResponse, error) // Params retrieves the total set of minting parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type QuerySkippedEpochsRequest ¶
type QuerySkippedEpochsRequest struct {
// contains filtered or unexported fields
}
QuerySkippedEpochsRequest is the request type for the Query/SkippedEpochs RPC method.
func (*QuerySkippedEpochsRequest) Descriptor
deprecated
func (*QuerySkippedEpochsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QuerySkippedEpochsRequest.ProtoReflect.Descriptor instead.
func (*QuerySkippedEpochsRequest) ProtoMessage ¶
func (*QuerySkippedEpochsRequest) ProtoMessage()
func (*QuerySkippedEpochsRequest) ProtoReflect ¶
func (x *QuerySkippedEpochsRequest) ProtoReflect() protoreflect.Message
func (*QuerySkippedEpochsRequest) Reset ¶
func (x *QuerySkippedEpochsRequest) Reset()
func (*QuerySkippedEpochsRequest) String ¶
func (x *QuerySkippedEpochsRequest) String() string
type QuerySkippedEpochsResponse ¶
type QuerySkippedEpochsResponse struct { // number of epochs that the inflation module has been disabled. SkippedEpochs uint64 `protobuf:"varint,1,opt,name=skipped_epochs,json=skippedEpochs,proto3" json:"skipped_epochs,omitempty"` // contains filtered or unexported fields }
QuerySkippedEpochsResponse is the response type for the Query/SkippedEpochs RPC method.
func (*QuerySkippedEpochsResponse) Descriptor
deprecated
func (*QuerySkippedEpochsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QuerySkippedEpochsResponse.ProtoReflect.Descriptor instead.
func (*QuerySkippedEpochsResponse) GetSkippedEpochs ¶
func (x *QuerySkippedEpochsResponse) GetSkippedEpochs() uint64
func (*QuerySkippedEpochsResponse) ProtoMessage ¶
func (*QuerySkippedEpochsResponse) ProtoMessage()
func (*QuerySkippedEpochsResponse) ProtoReflect ¶
func (x *QuerySkippedEpochsResponse) ProtoReflect() protoreflect.Message
func (*QuerySkippedEpochsResponse) Reset ¶
func (x *QuerySkippedEpochsResponse) Reset()
func (*QuerySkippedEpochsResponse) String ¶
func (x *QuerySkippedEpochsResponse) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
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.
func (UnimplementedQueryServer) CirculatingSupply ¶
func (UnimplementedQueryServer) CirculatingSupply(context.Context, *QueryCirculatingSupplyRequest) (*QueryCirculatingSupplyResponse, error)
func (UnimplementedQueryServer) EpochMintProvision ¶
func (UnimplementedQueryServer) EpochMintProvision(context.Context, *QueryEpochMintProvisionRequest) (*QueryEpochMintProvisionResponse, error)
func (UnimplementedQueryServer) InflationRate ¶
func (UnimplementedQueryServer) InflationRate(context.Context, *QueryInflationRateRequest) (*QueryInflationRateResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) Period ¶
func (UnimplementedQueryServer) Period(context.Context, *QueryPeriodRequest) (*QueryPeriodResponse, error)
func (UnimplementedQueryServer) SkippedEpochs ¶
func (UnimplementedQueryServer) SkippedEpochs(context.Context, *QuerySkippedEpochsRequest) (*QuerySkippedEpochsResponse, 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.