Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CalculateEpochMintProvision(periodMintProvisions sdk.DecCoins, period uint64, epochsPerPeriod int64) sdk.Dec
- func DefaultPeriodMintProvisions() []sdk.DecCoin
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type AuthzKeeper
- type BankKeeper
- type DistrKeeper
- type DistributionKeeper
- type FeegrantKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetEpochIdentifier() string
- func (m *GenesisState) GetEpochsPerPeriod() int64
- func (m *GenesisState) GetInflationDistribution() InflationDistribution
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPeriod() uint64
- func (m *GenesisState) GetPeriodMintProvisions() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (m *GenesisState) GetSkippedEpochs() uint64
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type GroupKeeper
- type InflationDistribution
- func (*InflationDistribution) Descriptor() ([]byte, []int)
- func (d InflationDistribution) Equal(d2 *InflationDistribution) bool
- func (m *InflationDistribution) GetOtherShares() []*InflationShare
- func (m *InflationDistribution) Marshal() (dAtA []byte, err error)
- func (m *InflationDistribution) MarshalTo(dAtA []byte) (int, error)
- func (m *InflationDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InflationDistribution) ProtoMessage()
- func (m *InflationDistribution) Reset()
- func (m *InflationDistribution) Size() (n int)
- func (m *InflationDistribution) String() string
- func (m *InflationDistribution) Unmarshal(dAtA []byte) error
- func (m *InflationDistribution) XXX_DiscardUnknown()
- func (m *InflationDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InflationDistribution) XXX_Merge(src proto.Message)
- func (m *InflationDistribution) XXX_Size() int
- func (m *InflationDistribution) XXX_Unmarshal(b []byte) error
- type InflationShare
- func (*InflationShare) Descriptor() ([]byte, []int)
- func (m *InflationShare) GetAddress() string
- func (m *InflationShare) GetName() string
- func (m *InflationShare) Marshal() (dAtA []byte, err error)
- func (m *InflationShare) MarshalTo(dAtA []byte) (int, error)
- func (m *InflationShare) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InflationShare) ProtoMessage()
- func (m *InflationShare) Reset()
- func (m *InflationShare) Size() (n int)
- func (m *InflationShare) String() string
- func (m *InflationShare) Unmarshal(dAtA []byte) error
- func (m *InflationShare) XXX_DiscardUnknown()
- func (m *InflationShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InflationShare) XXX_Merge(src proto.Message)
- func (m *InflationShare) XXX_Size() int
- func (m *InflationShare) XXX_Unmarshal(b []byte) error
- type MintKeeper
- type MsgClient
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m MsgUpdateParams) GetSignBytes() []byte
- func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type NftKeeper
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetEnableInflation() bool
- func (m *Params) GetInflationDistribution() InflationDistribution
- func (m *Params) GetMintDenom() string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type SlashingKeeper
- type StakingKeeper
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( EventTypeMint = ModuleName AttributeKeyEpochProvisions = "epoch_provisions" AttributeEpochNumber = "epoch_number" )
const ( // ModuleName defines the module name ModuleName = "inflation" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_inflation" )
const (
DefaultIndex uint64 = 1
)
DefaultIndex is the default global index
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") ErrSample = sdkerrors.Register(ModuleName, 1101, "sample error") )
x/inflation module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthInflation = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowInflation = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupInflation = fmt.Errorf("proto: unexpected end of group") )
var ( ParamsKey = []byte("params_inflation") PeriodKey = []byte("period_inflation") EpochIdentifierKey = []byte("epoch_identifier_inflation") EpochsPerPeriodKey = []byte("epochs_per_period_inflation") SkippedEpochsKey = []byte("skipped_epochs_inflation") PeriodMintProvisionsKey = []byte("period_mint_provisions_inflation") InflationDistributionKey = []byte("inflation_distribution_inflation") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func CalculateEpochMintProvision ¶
func CalculateEpochMintProvision( periodMintProvisions sdk.DecCoins, period uint64, epochsPerPeriod int64, ) sdk.Dec
CalculateEpochMintProvision returns mint provision per epoch
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected interface for the Account module.
type AuthzKeeper ¶
type AuthzKeeper interface {
GetAuthorizations(sdk.Context, sdk.AccAddress, sdk.AccAddress) ([]authz.Authorization, error)
}
AuthzKeeper defines the expected interface for the Authz module.
type BankKeeper ¶
type BankKeeper interface { SpendableCoins(sdk.Context, sdk.AccAddress) sdk.Coins MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error HasSupply(ctx sdk.Context, denom string) bool GetSupply(ctx sdk.Context, denom string) sdk.Coin }
BankKeeper defines the expected interface for the Bank module.
type DistrKeeper ¶
type DistributionKeeper ¶
type DistributionKeeper interface { GetFeePoolCommunityCoins(sdk.Context) sdk.DecCoins FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error }
DistributionKeeper defines the expected interface for the Distribution module.
type FeegrantKeeper ¶
type FeegrantKeeper interface {
GrantAllowance(sdk.Context, sdk.AccAddress, sdk.AccAddress, feegrant.FeeAllowanceI) error
}
FeegrantKeeper defines the expected interface for the FeeGrant module.
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // period is the amount of past periods, based on the epochs per period param Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"` // epoch_identifier for inflation EpochIdentifier string `protobuf:"bytes,3,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty"` // epochs_per_period is the 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"` // skipped_epochs is the 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"` PeriodMintProvisions github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 170-byte string literal not displayed */ // inflation_distribution defines the initial distribution of inflation InflationDistribution InflationDistribution `protobuf:"bytes,7,opt,name=inflation_distribution,json=inflationDistribution,proto3" json:"inflation_distribution"` }
GenesisState defines the inflation module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetEpochIdentifier ¶
func (m *GenesisState) GetEpochIdentifier() string
func (*GenesisState) GetEpochsPerPeriod ¶
func (m *GenesisState) GetEpochsPerPeriod() int64
func (*GenesisState) GetInflationDistribution ¶
func (m *GenesisState) GetInflationDistribution() InflationDistribution
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPeriod ¶
func (m *GenesisState) GetPeriod() uint64
func (*GenesisState) GetPeriodMintProvisions ¶
func (m *GenesisState) GetPeriodMintProvisions() github_com_cosmos_cosmos_sdk_types.DecCoins
func (*GenesisState) GetSkippedEpochs ¶
func (m *GenesisState) GetSkippedEpochs() uint64
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type GroupKeeper ¶
GroupKeeper defines the expected interface for the Group module.
type InflationDistribution ¶
type InflationDistribution struct {}
InflationDistribution defines the distribution in which inflation is allocated through minting on each epoch (staking, incentives, community).
func DefaultInflationDistribution ¶
func DefaultInflationDistribution() InflationDistribution
func (*InflationDistribution) Descriptor ¶
func (*InflationDistribution) Descriptor() ([]byte, []int)
func (InflationDistribution) Equal ¶
func (d InflationDistribution) Equal(d2 *InflationDistribution) bool
func (*InflationDistribution) GetOtherShares ¶
func (m *InflationDistribution) GetOtherShares() []*InflationShare
func (*InflationDistribution) Marshal ¶
func (m *InflationDistribution) Marshal() (dAtA []byte, err error)
func (*InflationDistribution) MarshalTo ¶
func (m *InflationDistribution) MarshalTo(dAtA []byte) (int, error)
func (*InflationDistribution) MarshalToSizedBuffer ¶
func (m *InflationDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InflationDistribution) ProtoMessage ¶
func (*InflationDistribution) ProtoMessage()
func (*InflationDistribution) Reset ¶
func (m *InflationDistribution) Reset()
func (*InflationDistribution) Size ¶
func (m *InflationDistribution) Size() (n int)
func (*InflationDistribution) String ¶
func (m *InflationDistribution) String() string
func (*InflationDistribution) Unmarshal ¶
func (m *InflationDistribution) Unmarshal(dAtA []byte) error
func (*InflationDistribution) XXX_DiscardUnknown ¶
func (m *InflationDistribution) XXX_DiscardUnknown()
func (*InflationDistribution) XXX_Marshal ¶
func (m *InflationDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InflationDistribution) XXX_Merge ¶
func (m *InflationDistribution) XXX_Merge(src proto.Message)
func (*InflationDistribution) XXX_Size ¶
func (m *InflationDistribution) XXX_Size() int
func (*InflationDistribution) XXX_Unmarshal ¶
func (m *InflationDistribution) XXX_Unmarshal(b []byte) error
type InflationShare ¶
type InflationShare struct {}
InflationShare represents the share information for various roles other than validators.
func (*InflationShare) Descriptor ¶
func (*InflationShare) Descriptor() ([]byte, []int)
func (*InflationShare) GetAddress ¶
func (m *InflationShare) GetAddress() string
func (*InflationShare) GetName ¶
func (m *InflationShare) GetName() string
func (*InflationShare) Marshal ¶
func (m *InflationShare) Marshal() (dAtA []byte, err error)
func (*InflationShare) MarshalToSizedBuffer ¶
func (m *InflationShare) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InflationShare) ProtoMessage ¶
func (*InflationShare) ProtoMessage()
func (*InflationShare) Reset ¶
func (m *InflationShare) Reset()
func (*InflationShare) Size ¶
func (m *InflationShare) Size() (n int)
func (*InflationShare) String ¶
func (m *InflationShare) String() string
func (*InflationShare) Unmarshal ¶
func (m *InflationShare) Unmarshal(dAtA []byte) error
func (*InflationShare) XXX_DiscardUnknown ¶
func (m *InflationShare) XXX_DiscardUnknown()
func (*InflationShare) XXX_Marshal ¶
func (m *InflationShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InflationShare) XXX_Merge ¶
func (m *InflationShare) XXX_Merge(src proto.Message)
func (*InflationShare) XXX_Size ¶
func (m *InflationShare) XXX_Size() int
func (*InflationShare) XXX_Unmarshal ¶
func (m *InflationShare) XXX_Unmarshal(b []byte) error
type MintKeeper ¶
MintKeeper defines the expected interface for the Mint module.
type MsgClient ¶
type MsgClient interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶
type MsgServer interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for 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 module parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
Since: cosmos-sdk 0.47
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (MsgUpdateParams) GetSignBytes ¶
func (m MsgUpdateParams) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg interface.
func (*MsgUpdateParams) GetSigners ¶
func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message.
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type ParamSubspace ¶
type ParamSubspace interface { Get(sdk.Context, []byte, interface{}) Set(sdk.Context, []byte, interface{}) }
ParamSubspace defines the expected Subspace interface for parameters.
type Params ¶
type Params struct { // mint_denom specifies the type of coin to mint MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` // inflation_distribution of the minted denom InflationDistribution InflationDistribution `protobuf:"bytes,2,opt,name=inflation_distribution,json=inflationDistribution,proto3" json:"inflation_distribution"` // enable_inflation is the parameter that enables inflation and halts increasing the skipped_epochs EnableInflation bool `protobuf:"varint,3,opt,name=enable_inflation,json=enableInflation,proto3" json:"enable_inflation,omitempty"` }
Params holds parameters for the inflation module.
func (*Params) Descriptor ¶
func (*Params) GetEnableInflation ¶
func (*Params) GetInflationDistribution ¶
func (m *Params) GetInflationDistribution() InflationDistribution
func (*Params) GetMintDenom ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. 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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type SlashingKeeper ¶
type SlashingKeeper interface {
Slash(ctx sdk.Context, consAddr sdk.ConsAddress, fraction sdk.Dec, power, distributionHeight int64)
}
SlashingKeeper defines the expected interface for the Slashing module.
type StakingKeeper ¶
type StakingKeeper interface { TotalBondedTokens(sdk.Context) math.Int // BondedRatio the fraction of the staking tokens which are currently bonded BondedRatio(ctx sdk.Context) sdk.Dec StakingTokenSupply(ctx sdk.Context) math.Int }
StakingKeeper defines the expected interface for the Staking module.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)