types

package
v1.2.0-post.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeInflation = ModuleName

	AttributeKeyEpochProvisions = "epoch_provisions"
	AttributeEpochNumber        = "epoch_number"
)

Minting module event types

View Source
const (
	// module name
	ModuleName = "inflation"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// RouterKey to be used for message routing
	RouterKey = ModuleName
)

constants

View Source
const (
	TypeMsgEditInflationParams = "edit_inflation_params"
	TypeMsgToggleInflation     = "toggle_inflation"
)

oracle message types

Variables

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthInflation        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowInflation          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupInflation = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyInflationEnabled      = []byte("InflationEnabled")
	KeyHasInflationStarted   = []byte("HasInflationStarted")
	KeyPolynomialFactors     = []byte("PolynomialFactors")
	KeyInflationDistribution = []byte("InflationDistribution")
	KeyEpochsPerPeriod       = []byte("EpochsPerPeriod")
	KeyPeriodsPerYear        = []byte("PeriodsPerYear")
	KeyMaxPeriod             = []byte("MaxPeriod")
)
View Source
var (
	DefaultInflation         = false
	DefaultPolynomialFactors = []sdk.Dec{
		sdk.MustNewDecFromStr("-0.000147085524"),
		sdk.MustNewDecFromStr("0.074291982762"),
		sdk.MustNewDecFromStr("-18.867415611180"),
		sdk.MustNewDecFromStr("3128.641926954698"),
		sdk.MustNewDecFromStr("-334834.740631598223"),
		sdk.MustNewDecFromStr("17827464.906540066004"),
	}
	DefaultInflationDistribution = InflationDistribution{
		CommunityPool:     sdk.NewDecWithPrec(35_4825, 6),
		StakingRewards:    sdk.NewDecWithPrec(28_1250, 6),
		StrategicReserves: sdk.NewDecWithPrec(36_3925, 6),
	}
	DefaultEpochsPerPeriod = uint64(30)
	DefaultPeriodsPerYear  = uint64(12)
	DefaultMaxPeriod       = uint64(8 * 12) // 8 years with 360 days per year
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (

	// ModuleCdc references the global x/inflation module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/staking and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func CalculateEpochMintProvision

func CalculateEpochMintProvision(
	params Params,
	period uint64,
) sdk.Dec

CalculateEpochMintProvision returns mint provision per epoch

func GrpcQueryServiceDesc added in v1.0.0

func GrpcQueryServiceDesc() grpc.ServiceDesc

GrpcQueryServiceDesc represents the query server's RPC service specification. This gives access to the service name and method names needed for stargate queries.

func RegisterInterfaces added in v1.2.0

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the x/inflation interfaces types with the interface registry

func RegisterLegacyAminoCodec added in v1.2.0

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/inflation interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgHandler added in v1.2.0

func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMsgHandlerClient added in v1.2.0

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.

func RegisterMsgHandlerFromEndpoint added in v1.2.0

func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMsgHandlerServer added in v1.2.0

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer 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 RegisterMsgHandlerFromEndpoint instead.

func RegisterMsgServer added in v1.2.0

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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

type AccountKeeper interface {
	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI
	GetAccount(sdk.Context, sdk.AccAddress) types.AccountI
	SetAccount(sdk.Context, types.AccountI)
}

AccountKeeper defines the contract required for account APIs.

type BankKeeper

type BankKeeper interface {
	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
	SendCoinsFromAccountToModule(
		ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins,
	) error
	MintCoins(ctx sdk.Context, name 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 contract needed to be fulfilled for banking and supply dependencies.

type DistrKeeper

type DistrKeeper interface {
	FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}

DistrKeeper defines the contract needed to be fulfilled for distribution keeper

type EventInflationDistribution added in v1.2.0

type EventInflationDistribution struct {
	StakingRewards   types.Coin `protobuf:"bytes,1,opt,name=staking_rewards,json=stakingRewards,proto3" json:"staking_rewards" yaml:"staking_rewards"`
	StrategicReserve types.Coin `protobuf:"bytes,2,opt,name=strategic_reserve,json=strategicReserve,proto3" json:"strategic_reserve" yaml:"strategic_reserve"`
	CommunityPool    types.Coin `protobuf:"bytes,3,opt,name=community_pool,json=communityPool,proto3" json:"community_pool" yaml:"community_pool"`
}

EventInflationDistribution: Emitted when NIBI tokens are minted on the network based on Nibiru's inflation schedule.

func (*EventInflationDistribution) Descriptor added in v1.2.0

func (*EventInflationDistribution) Descriptor() ([]byte, []int)

func (*EventInflationDistribution) GetCommunityPool added in v1.2.0

func (m *EventInflationDistribution) GetCommunityPool() types.Coin

func (*EventInflationDistribution) GetStakingRewards added in v1.2.0

func (m *EventInflationDistribution) GetStakingRewards() types.Coin

func (*EventInflationDistribution) GetStrategicReserve added in v1.2.0

func (m *EventInflationDistribution) GetStrategicReserve() types.Coin

func (*EventInflationDistribution) Marshal added in v1.2.0

func (m *EventInflationDistribution) Marshal() (dAtA []byte, err error)

func (*EventInflationDistribution) MarshalTo added in v1.2.0

func (m *EventInflationDistribution) MarshalTo(dAtA []byte) (int, error)

func (*EventInflationDistribution) MarshalToSizedBuffer added in v1.2.0

func (m *EventInflationDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventInflationDistribution) ProtoMessage added in v1.2.0

func (*EventInflationDistribution) ProtoMessage()

func (*EventInflationDistribution) Reset added in v1.2.0

func (m *EventInflationDistribution) Reset()

func (*EventInflationDistribution) Size added in v1.2.0

func (m *EventInflationDistribution) Size() (n int)

func (*EventInflationDistribution) String added in v1.2.0

func (m *EventInflationDistribution) String() string

func (*EventInflationDistribution) Unmarshal added in v1.2.0

func (m *EventInflationDistribution) Unmarshal(dAtA []byte) error

func (*EventInflationDistribution) XXX_DiscardUnknown added in v1.2.0

func (m *EventInflationDistribution) XXX_DiscardUnknown()

func (*EventInflationDistribution) XXX_Marshal added in v1.2.0

func (m *EventInflationDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventInflationDistribution) XXX_Merge added in v1.2.0

func (m *EventInflationDistribution) XXX_Merge(src proto.Message)

func (*EventInflationDistribution) XXX_Size added in v1.2.0

func (m *EventInflationDistribution) XXX_Size() int

func (*EventInflationDistribution) XXX_Unmarshal added in v1.2.0

func (m *EventInflationDistribution) XXX_Unmarshal(b []byte) error

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"`
	// skipped_epochs is the number of epochs that have passed while inflation is
	// disabled
	SkippedEpochs uint64 `protobuf:"varint,3,opt,name=skipped_epochs,json=skippedEpochs,proto3" json:"skipped_epochs,omitempty"`
}

GenesisState defines the inflation module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState creates a default GenesisState object

func NewGenesisState

func NewGenesisState(
	params Params,
	period uint64,
	skippedEpochs uint64,
) GenesisState

NewGenesisState creates a new GenesisState object

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPeriod

func (m *GenesisState) GetPeriod() uint64

func (*GenesisState) GetSkippedEpochs

func (m *GenesisState) GetSkippedEpochs() uint64

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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 InflationDistribution

type InflationDistribution struct {
	// staking_rewards defines the proportion of the minted_denom that is
	// to be allocated as staking rewards
	StakingRewards github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */
	// community_pool defines the proportion of the minted_denom that is to
	// be allocated to the community pool
	CommunityPool github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */
	// strategic_reserves defines the proportion of the minted_denom that
	// is to be allocated to the strategic reserves module address
	StrategicReserves github_com_cosmos_cosmos_sdk_types.Dec `` /* 152-byte string literal not displayed */
}

InflationDistribution defines the distribution in which inflation is allocated through minting on each epoch (staking, community, strategic). It excludes the team vesting distribution.

func (*InflationDistribution) Descriptor

func (*InflationDistribution) Descriptor() ([]byte, []int)

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 MsgClient added in v1.2.0

type MsgClient interface {
	// ToggleInflation defines a method to enable or disable inflation.
	ToggleInflation(ctx context.Context, in *MsgToggleInflation, opts ...grpc.CallOption) (*MsgToggleInflationResponse, error)
	// EditInflationParams defines a method to edit the inflation params.
	EditInflationParams(ctx context.Context, in *MsgEditInflationParams, opts ...grpc.CallOption) (*MsgEditInflationParamsResponse, 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 added in v1.2.0

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgEditInflationParams added in v1.2.0

type MsgEditInflationParams struct {
	Sender                string                                   `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	InflationEnabled      bool                                     `protobuf:"varint,2,opt,name=inflation_enabled,json=inflationEnabled,proto3" json:"inflation_enabled,omitempty"`
	PolynomialFactors     []github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */
	InflationDistribution *InflationDistribution                   `protobuf:"bytes,4,opt,name=inflation_distribution,json=inflationDistribution,proto3" json:"inflation_distribution,omitempty"`
	EpochsPerPeriod       *github_com_cosmos_cosmos_sdk_types.Int  `` /* 158-byte string literal not displayed */
	PeriodsPerYear        *github_com_cosmos_cosmos_sdk_types.Int  `` /* 155-byte string literal not displayed */
	MaxPeriod             *github_com_cosmos_cosmos_sdk_types.Int  `` /* 138-byte string literal not displayed */
}

func (*MsgEditInflationParams) Descriptor added in v1.2.0

func (*MsgEditInflationParams) Descriptor() ([]byte, []int)

func (MsgEditInflationParams) GetSignBytes added in v1.2.0

func (msg MsgEditInflationParams) GetSignBytes() []byte

GetSignBytes implements legacytx.LegacyMsg

func (MsgEditInflationParams) GetSigners added in v1.2.0

func (msg MsgEditInflationParams) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgEditInflationParams) Marshal added in v1.2.0

func (m *MsgEditInflationParams) Marshal() (dAtA []byte, err error)

func (*MsgEditInflationParams) MarshalTo added in v1.2.0

func (m *MsgEditInflationParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgEditInflationParams) MarshalToSizedBuffer added in v1.2.0

func (m *MsgEditInflationParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgEditInflationParams) ProtoMessage added in v1.2.0

func (*MsgEditInflationParams) ProtoMessage()

func (*MsgEditInflationParams) Reset added in v1.2.0

func (m *MsgEditInflationParams) Reset()

func (MsgEditInflationParams) Route added in v1.2.0

func (msg MsgEditInflationParams) Route() string

Route implements legacytx.LegacyMsg

func (*MsgEditInflationParams) Size added in v1.2.0

func (m *MsgEditInflationParams) Size() (n int)

func (*MsgEditInflationParams) String added in v1.2.0

func (m *MsgEditInflationParams) String() string

func (MsgEditInflationParams) Type added in v1.2.0

func (msg MsgEditInflationParams) Type() string

Type implements legacytx.LegacyMsg

func (*MsgEditInflationParams) Unmarshal added in v1.2.0

func (m *MsgEditInflationParams) Unmarshal(dAtA []byte) error

func (MsgEditInflationParams) ValidateBasic added in v1.2.0

func (m MsgEditInflationParams) ValidateBasic() error

func (*MsgEditInflationParams) XXX_DiscardUnknown added in v1.2.0

func (m *MsgEditInflationParams) XXX_DiscardUnknown()

func (*MsgEditInflationParams) XXX_Marshal added in v1.2.0

func (m *MsgEditInflationParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgEditInflationParams) XXX_Merge added in v1.2.0

func (m *MsgEditInflationParams) XXX_Merge(src proto.Message)

func (*MsgEditInflationParams) XXX_Size added in v1.2.0

func (m *MsgEditInflationParams) XXX_Size() int

func (*MsgEditInflationParams) XXX_Unmarshal added in v1.2.0

func (m *MsgEditInflationParams) XXX_Unmarshal(b []byte) error

type MsgEditInflationParamsResponse added in v1.2.0

type MsgEditInflationParamsResponse struct {
}

func (*MsgEditInflationParamsResponse) Descriptor added in v1.2.0

func (*MsgEditInflationParamsResponse) Descriptor() ([]byte, []int)

func (*MsgEditInflationParamsResponse) Marshal added in v1.2.0

func (m *MsgEditInflationParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgEditInflationParamsResponse) MarshalTo added in v1.2.0

func (m *MsgEditInflationParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgEditInflationParamsResponse) MarshalToSizedBuffer added in v1.2.0

func (m *MsgEditInflationParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgEditInflationParamsResponse) ProtoMessage added in v1.2.0

func (*MsgEditInflationParamsResponse) ProtoMessage()

func (*MsgEditInflationParamsResponse) Reset added in v1.2.0

func (m *MsgEditInflationParamsResponse) Reset()

func (*MsgEditInflationParamsResponse) Size added in v1.2.0

func (m *MsgEditInflationParamsResponse) Size() (n int)

func (*MsgEditInflationParamsResponse) String added in v1.2.0

func (*MsgEditInflationParamsResponse) Unmarshal added in v1.2.0

func (m *MsgEditInflationParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgEditInflationParamsResponse) XXX_DiscardUnknown added in v1.2.0

func (m *MsgEditInflationParamsResponse) XXX_DiscardUnknown()

func (*MsgEditInflationParamsResponse) XXX_Marshal added in v1.2.0

func (m *MsgEditInflationParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgEditInflationParamsResponse) XXX_Merge added in v1.2.0

func (m *MsgEditInflationParamsResponse) XXX_Merge(src proto.Message)

func (*MsgEditInflationParamsResponse) XXX_Size added in v1.2.0

func (m *MsgEditInflationParamsResponse) XXX_Size() int

func (*MsgEditInflationParamsResponse) XXX_Unmarshal added in v1.2.0

func (m *MsgEditInflationParamsResponse) XXX_Unmarshal(b []byte) error

type MsgServer added in v1.2.0

type MsgServer interface {
	// ToggleInflation defines a method to enable or disable inflation.
	ToggleInflation(context.Context, *MsgToggleInflation) (*MsgToggleInflationResponse, error)
	// EditInflationParams defines a method to edit the inflation params.
	EditInflationParams(context.Context, *MsgEditInflationParams) (*MsgEditInflationParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgToggleInflation added in v1.2.0

type MsgToggleInflation struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Enable bool   `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty" yaml:"enable"`
}

MsgToggleInflation defines a message to enable or disable inflation.

func (*MsgToggleInflation) Descriptor added in v1.2.0

func (*MsgToggleInflation) Descriptor() ([]byte, []int)

func (MsgToggleInflation) GetSignBytes added in v1.2.0

func (msg MsgToggleInflation) GetSignBytes() []byte

GetSignBytes implements legacytx.LegacyMsg

func (MsgToggleInflation) GetSigners added in v1.2.0

func (msg MsgToggleInflation) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgToggleInflation) Marshal added in v1.2.0

func (m *MsgToggleInflation) Marshal() (dAtA []byte, err error)

func (*MsgToggleInflation) MarshalTo added in v1.2.0

func (m *MsgToggleInflation) MarshalTo(dAtA []byte) (int, error)

func (*MsgToggleInflation) MarshalToSizedBuffer added in v1.2.0

func (m *MsgToggleInflation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgToggleInflation) ProtoMessage added in v1.2.0

func (*MsgToggleInflation) ProtoMessage()

func (*MsgToggleInflation) Reset added in v1.2.0

func (m *MsgToggleInflation) Reset()

func (MsgToggleInflation) Route added in v1.2.0

func (msg MsgToggleInflation) Route() string

------------------------------------------------- MsgToggleInflation Route implements legacytx.LegacyMsg

func (*MsgToggleInflation) Size added in v1.2.0

func (m *MsgToggleInflation) Size() (n int)

func (*MsgToggleInflation) String added in v1.2.0

func (m *MsgToggleInflation) String() string

func (MsgToggleInflation) Type added in v1.2.0

func (msg MsgToggleInflation) Type() string

Type implements legacytx.LegacyMsg

func (*MsgToggleInflation) Unmarshal added in v1.2.0

func (m *MsgToggleInflation) Unmarshal(dAtA []byte) error

func (MsgToggleInflation) ValidateBasic added in v1.2.0

func (m MsgToggleInflation) ValidateBasic() error

func (*MsgToggleInflation) XXX_DiscardUnknown added in v1.2.0

func (m *MsgToggleInflation) XXX_DiscardUnknown()

func (*MsgToggleInflation) XXX_Marshal added in v1.2.0

func (m *MsgToggleInflation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgToggleInflation) XXX_Merge added in v1.2.0

func (m *MsgToggleInflation) XXX_Merge(src proto.Message)

func (*MsgToggleInflation) XXX_Size added in v1.2.0

func (m *MsgToggleInflation) XXX_Size() int

func (*MsgToggleInflation) XXX_Unmarshal added in v1.2.0

func (m *MsgToggleInflation) XXX_Unmarshal(b []byte) error

type MsgToggleInflationResponse added in v1.2.0

type MsgToggleInflationResponse struct {
}

func (*MsgToggleInflationResponse) Descriptor added in v1.2.0

func (*MsgToggleInflationResponse) Descriptor() ([]byte, []int)

func (*MsgToggleInflationResponse) Marshal added in v1.2.0

func (m *MsgToggleInflationResponse) Marshal() (dAtA []byte, err error)

func (*MsgToggleInflationResponse) MarshalTo added in v1.2.0

func (m *MsgToggleInflationResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgToggleInflationResponse) MarshalToSizedBuffer added in v1.2.0

func (m *MsgToggleInflationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgToggleInflationResponse) ProtoMessage added in v1.2.0

func (*MsgToggleInflationResponse) ProtoMessage()

func (*MsgToggleInflationResponse) Reset added in v1.2.0

func (m *MsgToggleInflationResponse) Reset()

func (*MsgToggleInflationResponse) Size added in v1.2.0

func (m *MsgToggleInflationResponse) Size() (n int)

func (*MsgToggleInflationResponse) String added in v1.2.0

func (m *MsgToggleInflationResponse) String() string

func (*MsgToggleInflationResponse) Unmarshal added in v1.2.0

func (m *MsgToggleInflationResponse) Unmarshal(dAtA []byte) error

func (*MsgToggleInflationResponse) XXX_DiscardUnknown added in v1.2.0

func (m *MsgToggleInflationResponse) XXX_DiscardUnknown()

func (*MsgToggleInflationResponse) XXX_Marshal added in v1.2.0

func (m *MsgToggleInflationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgToggleInflationResponse) XXX_Merge added in v1.2.0

func (m *MsgToggleInflationResponse) XXX_Merge(src proto.Message)

func (*MsgToggleInflationResponse) XXX_Size added in v1.2.0

func (m *MsgToggleInflationResponse) XXX_Size() int

func (*MsgToggleInflationResponse) XXX_Unmarshal added in v1.2.0

func (m *MsgToggleInflationResponse) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	// inflation_enabled is the parameter that enables inflation and halts
	// increasing the skipped_epochs
	InflationEnabled bool `protobuf:"varint,1,opt,name=inflation_enabled,json=inflationEnabled,proto3" json:"inflation_enabled,omitempty"`
	// polynomial_factors takes in the variables to calculate polynomial
	// inflation
	PolynomialFactors []github_com_cosmos_cosmos_sdk_types.Dec `` /* 152-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"`
	// epochs_per_period is the number of epochs that must pass before a new
	// period is created
	EpochsPerPeriod uint64 `protobuf:"varint,4,opt,name=epochs_per_period,json=epochsPerPeriod,proto3" json:"epochs_per_period,omitempty"`
	// periods_per_year is the number of periods that occur in a year
	PeriodsPerYear uint64 `protobuf:"varint,5,opt,name=periods_per_year,json=periodsPerYear,proto3" json:"periods_per_year,omitempty"`
	// max_period is the maximum number of periods that have inflation being
	// paid off. After this period, inflation will be disabled.
	MaxPeriod uint64 `protobuf:"varint,6,opt,name=max_period,json=maxPeriod,proto3" json:"max_period,omitempty"`
	// has_inflation_started is the parameter that indicates if inflation has
	// started. It's set to false at the starts, and stays at true when we toggle
	// inflation on. It's used to track num skipped epochs
	HasInflationStarted bool `protobuf:"varint,7,opt,name=has_inflation_started,json=hasInflationStarted,proto3" json:"has_inflation_started,omitempty"`
}

Params holds parameters for the inflation module.

func DefaultParams

func DefaultParams() Params

default minting module parameters

func NewParams

func NewParams(
	polynomialCalculation []sdk.Dec,
	inflationDistribution InflationDistribution,
	inflationEnabled bool,
	hasInflationStarted bool,
	epochsPerPeriod,
	periodsPerYear,
	maxPeriod uint64,
) Params

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetEpochsPerPeriod

func (m *Params) GetEpochsPerPeriod() uint64

func (*Params) GetHasInflationStarted added in v1.2.0

func (m *Params) GetHasInflationStarted() bool

func (*Params) GetInflationDistribution

func (m *Params) GetInflationDistribution() InflationDistribution

func (*Params) GetInflationEnabled

func (m *Params) GetInflationEnabled() bool

func (*Params) GetMaxPeriod added in v1.1.0

func (m *Params) GetMaxPeriod() uint64

func (*Params) GetPeriodsPerYear added in v1.1.0

func (m *Params) GetPeriodsPerYear() uint64

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryCirculatingSupplyRequest

type QueryCirculatingSupplyRequest struct {
}

QueryCirculatingSupplyRequest is the request type for the Query/CirculatingSupply RPC method.

func (*QueryCirculatingSupplyRequest) Descriptor

func (*QueryCirculatingSupplyRequest) Descriptor() ([]byte, []int)

func (*QueryCirculatingSupplyRequest) Marshal

func (m *QueryCirculatingSupplyRequest) Marshal() (dAtA []byte, err error)

func (*QueryCirculatingSupplyRequest) MarshalTo

func (m *QueryCirculatingSupplyRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryCirculatingSupplyRequest) MarshalToSizedBuffer

func (m *QueryCirculatingSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCirculatingSupplyRequest) ProtoMessage

func (*QueryCirculatingSupplyRequest) ProtoMessage()

func (*QueryCirculatingSupplyRequest) Reset

func (m *QueryCirculatingSupplyRequest) Reset()

func (*QueryCirculatingSupplyRequest) Size

func (m *QueryCirculatingSupplyRequest) Size() (n int)

func (*QueryCirculatingSupplyRequest) String

func (*QueryCirculatingSupplyRequest) Unmarshal

func (m *QueryCirculatingSupplyRequest) Unmarshal(dAtA []byte) error

func (*QueryCirculatingSupplyRequest) XXX_DiscardUnknown

func (m *QueryCirculatingSupplyRequest) XXX_DiscardUnknown()

func (*QueryCirculatingSupplyRequest) XXX_Marshal

func (m *QueryCirculatingSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCirculatingSupplyRequest) XXX_Merge

func (m *QueryCirculatingSupplyRequest) XXX_Merge(src proto.Message)

func (*QueryCirculatingSupplyRequest) XXX_Size

func (m *QueryCirculatingSupplyRequest) XXX_Size() int

func (*QueryCirculatingSupplyRequest) XXX_Unmarshal

func (m *QueryCirculatingSupplyRequest) XXX_Unmarshal(b []byte) error

type QueryCirculatingSupplyResponse

type QueryCirculatingSupplyResponse struct {
	// circulating_supply is the total amount of coins in circulation
	CirculatingSupply types.DecCoin `` /* 159-byte string literal not displayed */
}

QueryCirculatingSupplyResponse is the response type for the Query/CirculatingSupply RPC method.

func (*QueryCirculatingSupplyResponse) Descriptor

func (*QueryCirculatingSupplyResponse) Descriptor() ([]byte, []int)

func (*QueryCirculatingSupplyResponse) GetCirculatingSupply

func (m *QueryCirculatingSupplyResponse) GetCirculatingSupply() types.DecCoin

func (*QueryCirculatingSupplyResponse) Marshal

func (m *QueryCirculatingSupplyResponse) Marshal() (dAtA []byte, err error)

func (*QueryCirculatingSupplyResponse) MarshalTo

func (m *QueryCirculatingSupplyResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryCirculatingSupplyResponse) MarshalToSizedBuffer

func (m *QueryCirculatingSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCirculatingSupplyResponse) ProtoMessage

func (*QueryCirculatingSupplyResponse) ProtoMessage()

func (*QueryCirculatingSupplyResponse) Reset

func (m *QueryCirculatingSupplyResponse) Reset()

func (*QueryCirculatingSupplyResponse) Size

func (m *QueryCirculatingSupplyResponse) Size() (n int)

func (*QueryCirculatingSupplyResponse) String

func (*QueryCirculatingSupplyResponse) Unmarshal

func (m *QueryCirculatingSupplyResponse) Unmarshal(dAtA []byte) error

func (*QueryCirculatingSupplyResponse) XXX_DiscardUnknown

func (m *QueryCirculatingSupplyResponse) XXX_DiscardUnknown()

func (*QueryCirculatingSupplyResponse) XXX_Marshal

func (m *QueryCirculatingSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCirculatingSupplyResponse) XXX_Merge

func (m *QueryCirculatingSupplyResponse) XXX_Merge(src proto.Message)

func (*QueryCirculatingSupplyResponse) XXX_Size

func (m *QueryCirculatingSupplyResponse) XXX_Size() int

func (*QueryCirculatingSupplyResponse) XXX_Unmarshal

func (m *QueryCirculatingSupplyResponse) XXX_Unmarshal(b []byte) error

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryEpochMintProvisionRequest

type QueryEpochMintProvisionRequest struct {
}

QueryEpochMintProvisionRequest is the request type for the Query/EpochMintProvision RPC method.

func (*QueryEpochMintProvisionRequest) Descriptor

func (*QueryEpochMintProvisionRequest) Descriptor() ([]byte, []int)

func (*QueryEpochMintProvisionRequest) Marshal

func (m *QueryEpochMintProvisionRequest) Marshal() (dAtA []byte, err error)

func (*QueryEpochMintProvisionRequest) MarshalTo

func (m *QueryEpochMintProvisionRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryEpochMintProvisionRequest) MarshalToSizedBuffer

func (m *QueryEpochMintProvisionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEpochMintProvisionRequest) ProtoMessage

func (*QueryEpochMintProvisionRequest) ProtoMessage()

func (*QueryEpochMintProvisionRequest) Reset

func (m *QueryEpochMintProvisionRequest) Reset()

func (*QueryEpochMintProvisionRequest) Size

func (m *QueryEpochMintProvisionRequest) Size() (n int)

func (*QueryEpochMintProvisionRequest) String

func (*QueryEpochMintProvisionRequest) Unmarshal

func (m *QueryEpochMintProvisionRequest) Unmarshal(dAtA []byte) error

func (*QueryEpochMintProvisionRequest) XXX_DiscardUnknown

func (m *QueryEpochMintProvisionRequest) XXX_DiscardUnknown()

func (*QueryEpochMintProvisionRequest) XXX_Marshal

func (m *QueryEpochMintProvisionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEpochMintProvisionRequest) XXX_Merge

func (m *QueryEpochMintProvisionRequest) XXX_Merge(src proto.Message)

func (*QueryEpochMintProvisionRequest) XXX_Size

func (m *QueryEpochMintProvisionRequest) XXX_Size() int

func (*QueryEpochMintProvisionRequest) XXX_Unmarshal

func (m *QueryEpochMintProvisionRequest) XXX_Unmarshal(b []byte) error

type QueryEpochMintProvisionResponse

type QueryEpochMintProvisionResponse struct {
	// epoch_mint_provision is the current minting per epoch provision value.
	EpochMintProvision types.DecCoin `` /* 164-byte string literal not displayed */
}

QueryEpochMintProvisionResponse is the response type for the Query/EpochMintProvision RPC method.

func (*QueryEpochMintProvisionResponse) Descriptor

func (*QueryEpochMintProvisionResponse) Descriptor() ([]byte, []int)

func (*QueryEpochMintProvisionResponse) GetEpochMintProvision

func (m *QueryEpochMintProvisionResponse) GetEpochMintProvision() types.DecCoin

func (*QueryEpochMintProvisionResponse) Marshal

func (m *QueryEpochMintProvisionResponse) Marshal() (dAtA []byte, err error)

func (*QueryEpochMintProvisionResponse) MarshalTo

func (m *QueryEpochMintProvisionResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryEpochMintProvisionResponse) MarshalToSizedBuffer

func (m *QueryEpochMintProvisionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEpochMintProvisionResponse) ProtoMessage

func (*QueryEpochMintProvisionResponse) ProtoMessage()

func (*QueryEpochMintProvisionResponse) Reset

func (*QueryEpochMintProvisionResponse) Size

func (m *QueryEpochMintProvisionResponse) Size() (n int)

func (*QueryEpochMintProvisionResponse) String

func (*QueryEpochMintProvisionResponse) Unmarshal

func (m *QueryEpochMintProvisionResponse) Unmarshal(dAtA []byte) error

func (*QueryEpochMintProvisionResponse) XXX_DiscardUnknown

func (m *QueryEpochMintProvisionResponse) XXX_DiscardUnknown()

func (*QueryEpochMintProvisionResponse) XXX_Marshal

func (m *QueryEpochMintProvisionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEpochMintProvisionResponse) XXX_Merge

func (m *QueryEpochMintProvisionResponse) XXX_Merge(src proto.Message)

func (*QueryEpochMintProvisionResponse) XXX_Size

func (m *QueryEpochMintProvisionResponse) XXX_Size() int

func (*QueryEpochMintProvisionResponse) XXX_Unmarshal

func (m *QueryEpochMintProvisionResponse) XXX_Unmarshal(b []byte) error

type QueryInflationRateRequest

type QueryInflationRateRequest struct {
}

QueryInflationRateRequest is the request type for the Query/InflationRate RPC method.

func (*QueryInflationRateRequest) Descriptor

func (*QueryInflationRateRequest) Descriptor() ([]byte, []int)

func (*QueryInflationRateRequest) Marshal

func (m *QueryInflationRateRequest) Marshal() (dAtA []byte, err error)

func (*QueryInflationRateRequest) MarshalTo

func (m *QueryInflationRateRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryInflationRateRequest) MarshalToSizedBuffer

func (m *QueryInflationRateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryInflationRateRequest) ProtoMessage

func (*QueryInflationRateRequest) ProtoMessage()

func (*QueryInflationRateRequest) Reset

func (m *QueryInflationRateRequest) Reset()

func (*QueryInflationRateRequest) Size

func (m *QueryInflationRateRequest) Size() (n int)

func (*QueryInflationRateRequest) String

func (m *QueryInflationRateRequest) String() string

func (*QueryInflationRateRequest) Unmarshal

func (m *QueryInflationRateRequest) Unmarshal(dAtA []byte) error

func (*QueryInflationRateRequest) XXX_DiscardUnknown

func (m *QueryInflationRateRequest) XXX_DiscardUnknown()

func (*QueryInflationRateRequest) XXX_Marshal

func (m *QueryInflationRateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryInflationRateRequest) XXX_Merge

func (m *QueryInflationRateRequest) XXX_Merge(src proto.Message)

func (*QueryInflationRateRequest) XXX_Size

func (m *QueryInflationRateRequest) XXX_Size() int

func (*QueryInflationRateRequest) XXX_Unmarshal

func (m *QueryInflationRateRequest) XXX_Unmarshal(b []byte) error

type QueryInflationRateResponse

type QueryInflationRateResponse struct {
	// inflation_rate by which the total supply increases within one period
	InflationRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */
}

QueryInflationRateResponse is the response type for the Query/InflationRate RPC method.

func (*QueryInflationRateResponse) Descriptor

func (*QueryInflationRateResponse) Descriptor() ([]byte, []int)

func (*QueryInflationRateResponse) Marshal

func (m *QueryInflationRateResponse) Marshal() (dAtA []byte, err error)

func (*QueryInflationRateResponse) MarshalTo

func (m *QueryInflationRateResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryInflationRateResponse) MarshalToSizedBuffer

func (m *QueryInflationRateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryInflationRateResponse) ProtoMessage

func (*QueryInflationRateResponse) ProtoMessage()

func (*QueryInflationRateResponse) Reset

func (m *QueryInflationRateResponse) Reset()

func (*QueryInflationRateResponse) Size

func (m *QueryInflationRateResponse) Size() (n int)

func (*QueryInflationRateResponse) String

func (m *QueryInflationRateResponse) String() string

func (*QueryInflationRateResponse) Unmarshal

func (m *QueryInflationRateResponse) Unmarshal(dAtA []byte) error

func (*QueryInflationRateResponse) XXX_DiscardUnknown

func (m *QueryInflationRateResponse) XXX_DiscardUnknown()

func (*QueryInflationRateResponse) XXX_Marshal

func (m *QueryInflationRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryInflationRateResponse) XXX_Merge

func (m *QueryInflationRateResponse) XXX_Merge(src proto.Message)

func (*QueryInflationRateResponse) XXX_Size

func (m *QueryInflationRateResponse) XXX_Size() int

func (*QueryInflationRateResponse) XXX_Unmarshal

func (m *QueryInflationRateResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the 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 defines the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the 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 QueryPeriodRequest

type QueryPeriodRequest struct {
}

QueryPeriodRequest is the request type for the Query/Period RPC method.

func (*QueryPeriodRequest) Descriptor

func (*QueryPeriodRequest) Descriptor() ([]byte, []int)

func (*QueryPeriodRequest) Marshal

func (m *QueryPeriodRequest) Marshal() (dAtA []byte, err error)

func (*QueryPeriodRequest) MarshalTo

func (m *QueryPeriodRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryPeriodRequest) MarshalToSizedBuffer

func (m *QueryPeriodRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPeriodRequest) ProtoMessage

func (*QueryPeriodRequest) ProtoMessage()

func (*QueryPeriodRequest) Reset

func (m *QueryPeriodRequest) Reset()

func (*QueryPeriodRequest) Size

func (m *QueryPeriodRequest) Size() (n int)

func (*QueryPeriodRequest) String

func (m *QueryPeriodRequest) String() string

func (*QueryPeriodRequest) Unmarshal

func (m *QueryPeriodRequest) Unmarshal(dAtA []byte) error

func (*QueryPeriodRequest) XXX_DiscardUnknown

func (m *QueryPeriodRequest) XXX_DiscardUnknown()

func (*QueryPeriodRequest) XXX_Marshal

func (m *QueryPeriodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPeriodRequest) XXX_Merge

func (m *QueryPeriodRequest) XXX_Merge(src proto.Message)

func (*QueryPeriodRequest) XXX_Size

func (m *QueryPeriodRequest) XXX_Size() int

func (*QueryPeriodRequest) XXX_Unmarshal

func (m *QueryPeriodRequest) XXX_Unmarshal(b []byte) error

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"`
}

QueryPeriodResponse is the response type for the Query/Period RPC method.

func (*QueryPeriodResponse) Descriptor

func (*QueryPeriodResponse) Descriptor() ([]byte, []int)

func (*QueryPeriodResponse) GetPeriod

func (m *QueryPeriodResponse) GetPeriod() uint64

func (*QueryPeriodResponse) Marshal

func (m *QueryPeriodResponse) Marshal() (dAtA []byte, err error)

func (*QueryPeriodResponse) MarshalTo

func (m *QueryPeriodResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryPeriodResponse) MarshalToSizedBuffer

func (m *QueryPeriodResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPeriodResponse) ProtoMessage

func (*QueryPeriodResponse) ProtoMessage()

func (*QueryPeriodResponse) Reset

func (m *QueryPeriodResponse) Reset()

func (*QueryPeriodResponse) Size

func (m *QueryPeriodResponse) Size() (n int)

func (*QueryPeriodResponse) String

func (m *QueryPeriodResponse) String() string

func (*QueryPeriodResponse) Unmarshal

func (m *QueryPeriodResponse) Unmarshal(dAtA []byte) error

func (*QueryPeriodResponse) XXX_DiscardUnknown

func (m *QueryPeriodResponse) XXX_DiscardUnknown()

func (*QueryPeriodResponse) XXX_Marshal

func (m *QueryPeriodResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPeriodResponse) XXX_Merge

func (m *QueryPeriodResponse) XXX_Merge(src proto.Message)

func (*QueryPeriodResponse) XXX_Size

func (m *QueryPeriodResponse) XXX_Size() int

func (*QueryPeriodResponse) XXX_Unmarshal

func (m *QueryPeriodResponse) XXX_Unmarshal(b []byte) error

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)
}

QueryServer is the server API for Query service.

type QuerySkippedEpochsRequest

type QuerySkippedEpochsRequest struct {
}

QuerySkippedEpochsRequest is the request type for the Query/SkippedEpochs RPC method.

func (*QuerySkippedEpochsRequest) Descriptor

func (*QuerySkippedEpochsRequest) Descriptor() ([]byte, []int)

func (*QuerySkippedEpochsRequest) Marshal

func (m *QuerySkippedEpochsRequest) Marshal() (dAtA []byte, err error)

func (*QuerySkippedEpochsRequest) MarshalTo

func (m *QuerySkippedEpochsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QuerySkippedEpochsRequest) MarshalToSizedBuffer

func (m *QuerySkippedEpochsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySkippedEpochsRequest) ProtoMessage

func (*QuerySkippedEpochsRequest) ProtoMessage()

func (*QuerySkippedEpochsRequest) Reset

func (m *QuerySkippedEpochsRequest) Reset()

func (*QuerySkippedEpochsRequest) Size

func (m *QuerySkippedEpochsRequest) Size() (n int)

func (*QuerySkippedEpochsRequest) String

func (m *QuerySkippedEpochsRequest) String() string

func (*QuerySkippedEpochsRequest) Unmarshal

func (m *QuerySkippedEpochsRequest) Unmarshal(dAtA []byte) error

func (*QuerySkippedEpochsRequest) XXX_DiscardUnknown

func (m *QuerySkippedEpochsRequest) XXX_DiscardUnknown()

func (*QuerySkippedEpochsRequest) XXX_Marshal

func (m *QuerySkippedEpochsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySkippedEpochsRequest) XXX_Merge

func (m *QuerySkippedEpochsRequest) XXX_Merge(src proto.Message)

func (*QuerySkippedEpochsRequest) XXX_Size

func (m *QuerySkippedEpochsRequest) XXX_Size() int

func (*QuerySkippedEpochsRequest) XXX_Unmarshal

func (m *QuerySkippedEpochsRequest) XXX_Unmarshal(b []byte) error

type QuerySkippedEpochsResponse

type QuerySkippedEpochsResponse struct {
	// skipped_epochs is the 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"`
}

QuerySkippedEpochsResponse is the response type for the Query/SkippedEpochs RPC method.

func (*QuerySkippedEpochsResponse) Descriptor

func (*QuerySkippedEpochsResponse) Descriptor() ([]byte, []int)

func (*QuerySkippedEpochsResponse) GetSkippedEpochs

func (m *QuerySkippedEpochsResponse) GetSkippedEpochs() uint64

func (*QuerySkippedEpochsResponse) Marshal

func (m *QuerySkippedEpochsResponse) Marshal() (dAtA []byte, err error)

func (*QuerySkippedEpochsResponse) MarshalTo

func (m *QuerySkippedEpochsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QuerySkippedEpochsResponse) MarshalToSizedBuffer

func (m *QuerySkippedEpochsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySkippedEpochsResponse) ProtoMessage

func (*QuerySkippedEpochsResponse) ProtoMessage()

func (*QuerySkippedEpochsResponse) Reset

func (m *QuerySkippedEpochsResponse) Reset()

func (*QuerySkippedEpochsResponse) Size

func (m *QuerySkippedEpochsResponse) Size() (n int)

func (*QuerySkippedEpochsResponse) String

func (m *QuerySkippedEpochsResponse) String() string

func (*QuerySkippedEpochsResponse) Unmarshal

func (m *QuerySkippedEpochsResponse) Unmarshal(dAtA []byte) error

func (*QuerySkippedEpochsResponse) XXX_DiscardUnknown

func (m *QuerySkippedEpochsResponse) XXX_DiscardUnknown()

func (*QuerySkippedEpochsResponse) XXX_Marshal

func (m *QuerySkippedEpochsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySkippedEpochsResponse) XXX_Merge

func (m *QuerySkippedEpochsResponse) XXX_Merge(src proto.Message)

func (*QuerySkippedEpochsResponse) XXX_Size

func (m *QuerySkippedEpochsResponse) XXX_Size() int

func (*QuerySkippedEpochsResponse) XXX_Unmarshal

func (m *QuerySkippedEpochsResponse) XXX_Unmarshal(b []byte) error

type StakingKeeper

type StakingKeeper interface {
	// BondedRatio the fraction of the staking tokens which are currently bonded
	BondedRatio(ctx sdk.Context) sdk.Dec
	StakingTokenSupply(ctx sdk.Context) sdkmath.Int
	TotalBondedTokens(ctx sdk.Context) sdkmath.Int
}

StakingKeeper expected staking keeper

type SudoKeeper added in v1.1.0

type SudoKeeper interface {
	GetRootAddr(ctx sdk.Context) (sdk.AccAddress, error)
	CheckPermissions(contract sdk.AccAddress, ctx sdk.Context) error
}

type UnimplementedMsgServer added in v1.2.0

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) EditInflationParams added in v1.2.0

func (*UnimplementedMsgServer) ToggleInflation added in v1.2.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CirculatingSupply

func (*UnimplementedQueryServer) EpochMintProvision

func (*UnimplementedQueryServer) InflationRate

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Period

func (*UnimplementedQueryServer) SkippedEpochs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL