types

package
v2.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeMint = ModuleName

	AttributeKeyBondedRatio      = "bonded_ratio"
	AttributeKeyInflation        = "inflation"
	AttributeKeyAnnualProvisions = "annual_provisions"
)

Minting module event types

View Source
const (
	ModuleName = "mint"

	// StoreKey is the default store key for mint
	StoreKey = ModuleName

	// QuerierRoute is the querier route for the minting store.
	QuerierRoute = StoreKey

	QueryParameters           = "parameters"
	QueryInflation            = "inflation"
	QueryAnnualProvisions     = "annual_provisions"
	QueryTotalMintedProvision = "total_minted_provision"
	QueryBlockProvision       = "block_provision"
	QueryCirculatingSupply    = "circulating_supply"
	QueryBondedRatio          = "bonded_ratio"
)

Variables

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 (
	MinterKey                     = []byte{prefixMinter}
	KeyPrefixTotalMintedProvision = []byte{prefixTotalMintedProvision}
)

MinterKey is the key to use for the keeper store.

View Source
var (
	ErrInvalidLengthMint        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMint          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMint = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyMintDenom             = []byte("MintDenom")
	KeyInflationParameters   = []byte("InflationParameters")
	KeyInflationDistribution = []byte("InflationDistribution")
	KeyFoundationAddress     = []byte("FoundationAddress")
)

Parameter store keys

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 DefaultInflationDenom = config.BaseDenom

Functions

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the KeyTable for this module.

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)

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis validates the provided genesis state to ensure the expected invariants holds.

func ValidateMinter

func ValidateMinter(minter Minter) error

ValidateMinter sanity-checks the given Minter.

Types

type AccountKeeper

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

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
	MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error
}

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 GenesisState

type GenesisState struct {
	// minter is a space for holding current inflation information.
	Minter Minter `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter"`
	// params defines all the paramaters of the module.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

GenesisState defines the mint module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState creates a default GenesisState object

func NewGenesisState

func NewGenesisState(minter Minter, params Params) *GenesisState

NewGenesisState creates a new GenesisState object

func (*GenesisState) Descriptor

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

func (*GenesisState) GetMinter

func (m *GenesisState) GetMinter() Minter

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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) 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 minted_denom allocated to validators and delegators.
	StakingRewards github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */
	// foundation defines the proportion of the minted minted_denom allocated to the Astra Foundation.
	Foundation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=foundation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"foundation"`
	// community_pool defines the proportion of the minted minted_denom allocated to the community pool.
	CommunityPool github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */
}

InflationDistribution defines how the block rewards are distributed to each module/component (i.e, Staking Rewards, Astra Foundation, and the Community Pool).

By default, for each block/epoch reward:

  • 88% will be allocated as Staking Rewards;
  • 10% will be allocated to the Astra Foundation;
  • 2% will be allocated to the Community Pool.

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 InflationParameters

type InflationParameters struct {
	// inflation_rate_change is the maximum annual change in inflation rate.
	InflationRateChange github_com_cosmos_cosmos_sdk_types.Dec `` /* 189-byte string literal not displayed */
	// inflation_max is the maximum inflation rate.
	InflationMax github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
	// inflation_min is the minimum inflation rate.
	InflationMin github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
	// goal_bonded is the expected ratio of token in stake versus the total supply.
	GoalBonded github_com_cosmos_cosmos_sdk_types.Dec `` /* 150-byte string literal not displayed */
	// blocks_per_year is the expected number of blocks per year.
	BlocksPerYear uint64 `` /* 126-byte string literal not displayed */
}

InflationParameters defines how new provisions are minted through inflation. In order to best capture the fluctuation of the market, provisions are minted through a dynamic inflation mechanism. That is, the protocol expects a pre-determined portion of tokens in stake, this portion is called `goal_bonded`. It is the ratio between the staked tokens and the total supply of tokens (i.e, staked + non-staked tokens).

The `inflation_rate` is first set at genesis, and is adjusted at the beginning of each block. At the beginning of a block, if the %-bonded (i.e, the current ration: staked / (staked + nonstaked)) is less than `goal_bonded`, the `inflation_rat` will be increased until it reaches to `inflation_max` to incentivize more stake; if the %-bonded is greater than `goal_bonded`, the `inflation_rate` will be decreased until it reaches to `inflation_min` to disincentivize staking. If the %-bonded is equal to `goal_bonded`, the `inflation_rate` will stay unchanged.

More formally, the `inflation_rate` is adjusted as follows:

inflation_rate = inflation_rate + (1 - current_bonded/goal_bonded) * inflation_rate_change / blocks_per_year.

func (*InflationParameters) Descriptor

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

func (*InflationParameters) GetBlocksPerYear

func (m *InflationParameters) GetBlocksPerYear() uint64

func (*InflationParameters) Marshal

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

func (*InflationParameters) MarshalTo

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

func (*InflationParameters) MarshalToSizedBuffer

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

func (*InflationParameters) ProtoMessage

func (*InflationParameters) ProtoMessage()

func (*InflationParameters) Reset

func (m *InflationParameters) Reset()

func (*InflationParameters) Size

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

func (*InflationParameters) String

func (m *InflationParameters) String() string

func (*InflationParameters) Unmarshal

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

func (*InflationParameters) XXX_DiscardUnknown

func (m *InflationParameters) XXX_DiscardUnknown()

func (*InflationParameters) XXX_Marshal

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

func (*InflationParameters) XXX_Merge

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

func (*InflationParameters) XXX_Size

func (m *InflationParameters) XXX_Size() int

func (*InflationParameters) XXX_Unmarshal

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

type Minter

type Minter struct {
	// inflation is the current annual inflation rate.
	Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"`
	// annual_provisions is the current annual expected provisions.
	AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec `` /* 174-byte string literal not displayed */
}

Minter represents the minting state.

func DefaultInitialMinter

func DefaultInitialMinter() Minter

DefaultInitialMinter returns a default initial Minter object for a new chain which uses an inflation rate of 10%.

func InitialMinter

func InitialMinter(inflation sdk.Dec) Minter

InitialMinter returns an initial Minter object with a given inflation value.

func NewMinter

func NewMinter(inflation, annualProvisions sdk.Dec) Minter

NewMinter returns a new Minter object with the given inflation and annual provisions values.

func (Minter) BlockProvision

func (m Minter) BlockProvision(params Params) sdk.Coin

BlockProvision returns the provisions for a block based on the annual provisions rate.

func (*Minter) Descriptor

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

func (*Minter) Marshal

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

func (*Minter) MarshalTo

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

func (*Minter) MarshalToSizedBuffer

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

func (Minter) NextAnnualProvisions

func (m Minter) NextAnnualProvisions(_ Params, totalSupply sdk.Int) sdk.Dec

NextAnnualProvisions returns the annual provisions based on current total supply and inflation rate.

func (Minter) NextInflationRate

func (m Minter) NextInflationRate(params Params, bondedRatio sdk.Dec) sdk.Dec

NextInflationRate returns the new inflation rate for the next hour.

func (*Minter) ProtoMessage

func (*Minter) ProtoMessage()

func (*Minter) Reset

func (m *Minter) Reset()

func (*Minter) Size

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

func (*Minter) String

func (m *Minter) String() string

func (*Minter) Unmarshal

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

func (*Minter) XXX_DiscardUnknown

func (m *Minter) XXX_DiscardUnknown()

func (*Minter) XXX_Marshal

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

func (*Minter) XXX_Merge

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

func (*Minter) XXX_Size

func (m *Minter) XXX_Size() int

func (*Minter) XXX_Unmarshal

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

type Params

type Params struct {
	// mint_denom indicates the type of coin to mint.
	MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"`
	// inflation_parameters consists of parameters which define how inflation is calculated.
	InflationParameters InflationParameters `protobuf:"bytes,2,opt,name=inflation_parameters,json=inflationParameters,proto3" json:"inflation_parameters"`
	// inflation_distribution consists of parameters which block/epoch provision is distributed.
	InflationDistribution InflationDistribution `protobuf:"bytes,3,opt,name=inflation_distribution,json=inflationDistribution,proto3" json:"inflation_distribution"`
	// foundation_address is the address of the Astra Foundation for a portion of receiving provision.
	FoundationAddress string `protobuf:"bytes,4,opt,name=foundation_address,json=foundationAddress,proto3" json:"foundation_address,omitempty"`
}

Params holds parameters for the mint module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns the default parameters for this module.

func NewParams

func NewParams(
	mintDenom string,
	inflationParameters InflationParameters,
	inflationDistribution InflationDistribution,
	foundationAddress string,
) Params

func (*Params) Descriptor

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

func (*Params) GetFoundationAddress

func (m *Params) GetFoundationAddress() string

func (*Params) GetInflationDistribution

func (m *Params) GetInflationDistribution() InflationDistribution

func (*Params) GetInflationParameters

func (m *Params) GetInflationParameters() InflationParameters

func (*Params) GetMintDenom

func (m *Params) GetMintDenom() string

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

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs implements params.ParamSet.

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 (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate checks the correctness of the current Params.

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 QueryAnnualProvisionsRequest

type QueryAnnualProvisionsRequest struct {
}

QueryAnnualProvisionsRequest is the request type for the Query/AnnualProvisions RPC method.

func (*QueryAnnualProvisionsRequest) Descriptor

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

func (*QueryAnnualProvisionsRequest) Marshal

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

func (*QueryAnnualProvisionsRequest) MarshalTo

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

func (*QueryAnnualProvisionsRequest) MarshalToSizedBuffer

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

func (*QueryAnnualProvisionsRequest) ProtoMessage

func (*QueryAnnualProvisionsRequest) ProtoMessage()

func (*QueryAnnualProvisionsRequest) Reset

func (m *QueryAnnualProvisionsRequest) Reset()

func (*QueryAnnualProvisionsRequest) Size

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

func (*QueryAnnualProvisionsRequest) String

func (*QueryAnnualProvisionsRequest) Unmarshal

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

func (*QueryAnnualProvisionsRequest) XXX_DiscardUnknown

func (m *QueryAnnualProvisionsRequest) XXX_DiscardUnknown()

func (*QueryAnnualProvisionsRequest) XXX_Marshal

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

func (*QueryAnnualProvisionsRequest) XXX_Merge

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

func (*QueryAnnualProvisionsRequest) XXX_Size

func (m *QueryAnnualProvisionsRequest) XXX_Size() int

func (*QueryAnnualProvisionsRequest) XXX_Unmarshal

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

type QueryAnnualProvisionsResponse

type QueryAnnualProvisionsResponse struct {
	// annual_provisions is the current minting annual provisions value.
	AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */
}

QueryAnnualProvisionsResponse is the response type for the Query/AnnualProvisions RPC method.

func (*QueryAnnualProvisionsResponse) Descriptor

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

func (*QueryAnnualProvisionsResponse) Marshal

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

func (*QueryAnnualProvisionsResponse) MarshalTo

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

func (*QueryAnnualProvisionsResponse) MarshalToSizedBuffer

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

func (*QueryAnnualProvisionsResponse) ProtoMessage

func (*QueryAnnualProvisionsResponse) ProtoMessage()

func (*QueryAnnualProvisionsResponse) Reset

func (m *QueryAnnualProvisionsResponse) Reset()

func (*QueryAnnualProvisionsResponse) Size

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

func (*QueryAnnualProvisionsResponse) String

func (*QueryAnnualProvisionsResponse) Unmarshal

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

func (*QueryAnnualProvisionsResponse) XXX_DiscardUnknown

func (m *QueryAnnualProvisionsResponse) XXX_DiscardUnknown()

func (*QueryAnnualProvisionsResponse) XXX_Marshal

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

func (*QueryAnnualProvisionsResponse) XXX_Merge

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

func (*QueryAnnualProvisionsResponse) XXX_Size

func (m *QueryAnnualProvisionsResponse) XXX_Size() int

func (*QueryAnnualProvisionsResponse) XXX_Unmarshal

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

type QueryBlockProvisionRequest

type QueryBlockProvisionRequest struct {
}

QueryTotalMintedProvision is the request type for the Query/BlockProvision RPC method.

func (*QueryBlockProvisionRequest) Descriptor

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

func (*QueryBlockProvisionRequest) Marshal

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

func (*QueryBlockProvisionRequest) MarshalTo

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

func (*QueryBlockProvisionRequest) MarshalToSizedBuffer

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

func (*QueryBlockProvisionRequest) ProtoMessage

func (*QueryBlockProvisionRequest) ProtoMessage()

func (*QueryBlockProvisionRequest) Reset

func (m *QueryBlockProvisionRequest) Reset()

func (*QueryBlockProvisionRequest) Size

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

func (*QueryBlockProvisionRequest) String

func (m *QueryBlockProvisionRequest) String() string

func (*QueryBlockProvisionRequest) Unmarshal

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

func (*QueryBlockProvisionRequest) XXX_DiscardUnknown

func (m *QueryBlockProvisionRequest) XXX_DiscardUnknown()

func (*QueryBlockProvisionRequest) XXX_Marshal

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

func (*QueryBlockProvisionRequest) XXX_Merge

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

func (*QueryBlockProvisionRequest) XXX_Size

func (m *QueryBlockProvisionRequest) XXX_Size() int

func (*QueryBlockProvisionRequest) XXX_Unmarshal

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

type QueryBlockProvisionResponse

type QueryBlockProvisionResponse struct {
	// total amount of provisions minted via block rewards.
	Provision types.Coin `protobuf:"bytes,1,opt,name=provision,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"provision"`
}

QueryTotalMintedProvisionResponse is the response type for the Query/BlockProvision RPC method.

func (*QueryBlockProvisionResponse) Descriptor

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

func (*QueryBlockProvisionResponse) GetProvision

func (m *QueryBlockProvisionResponse) GetProvision() types.Coin

func (*QueryBlockProvisionResponse) Marshal

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

func (*QueryBlockProvisionResponse) MarshalTo

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

func (*QueryBlockProvisionResponse) MarshalToSizedBuffer

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

func (*QueryBlockProvisionResponse) ProtoMessage

func (*QueryBlockProvisionResponse) ProtoMessage()

func (*QueryBlockProvisionResponse) Reset

func (m *QueryBlockProvisionResponse) Reset()

func (*QueryBlockProvisionResponse) Size

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

func (*QueryBlockProvisionResponse) String

func (m *QueryBlockProvisionResponse) String() string

func (*QueryBlockProvisionResponse) Unmarshal

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

func (*QueryBlockProvisionResponse) XXX_DiscardUnknown

func (m *QueryBlockProvisionResponse) XXX_DiscardUnknown()

func (*QueryBlockProvisionResponse) XXX_Marshal

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

func (*QueryBlockProvisionResponse) XXX_Merge

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

func (*QueryBlockProvisionResponse) XXX_Size

func (m *QueryBlockProvisionResponse) XXX_Size() int

func (*QueryBlockProvisionResponse) XXX_Unmarshal

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

type QueryBondedRatioRequest

type QueryBondedRatioRequest struct {
}

QueryBondedRatioRequest is the request type for the Query/BondedRatio RPC method.

func (*QueryBondedRatioRequest) Descriptor

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

func (*QueryBondedRatioRequest) Marshal

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

func (*QueryBondedRatioRequest) MarshalTo

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

func (*QueryBondedRatioRequest) MarshalToSizedBuffer

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

func (*QueryBondedRatioRequest) ProtoMessage

func (*QueryBondedRatioRequest) ProtoMessage()

func (*QueryBondedRatioRequest) Reset

func (m *QueryBondedRatioRequest) Reset()

func (*QueryBondedRatioRequest) Size

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

func (*QueryBondedRatioRequest) String

func (m *QueryBondedRatioRequest) String() string

func (*QueryBondedRatioRequest) Unmarshal

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

func (*QueryBondedRatioRequest) XXX_DiscardUnknown

func (m *QueryBondedRatioRequest) XXX_DiscardUnknown()

func (*QueryBondedRatioRequest) XXX_Marshal

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

func (*QueryBondedRatioRequest) XXX_Merge

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

func (*QueryBondedRatioRequest) XXX_Size

func (m *QueryBondedRatioRequest) XXX_Size() int

func (*QueryBondedRatioRequest) XXX_Unmarshal

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

type QueryBondedRatioResponse

type QueryBondedRatioResponse struct {
	BondedRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 134-byte string literal not displayed */
}

QueryBondedRatioResponse is the response type for the Query/BondedRatio RPC method.

func (*QueryBondedRatioResponse) Descriptor

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

func (*QueryBondedRatioResponse) Marshal

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

func (*QueryBondedRatioResponse) MarshalTo

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

func (*QueryBondedRatioResponse) MarshalToSizedBuffer

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

func (*QueryBondedRatioResponse) ProtoMessage

func (*QueryBondedRatioResponse) ProtoMessage()

func (*QueryBondedRatioResponse) Reset

func (m *QueryBondedRatioResponse) Reset()

func (*QueryBondedRatioResponse) Size

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

func (*QueryBondedRatioResponse) String

func (m *QueryBondedRatioResponse) String() string

func (*QueryBondedRatioResponse) Unmarshal

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

func (*QueryBondedRatioResponse) XXX_DiscardUnknown

func (m *QueryBondedRatioResponse) XXX_DiscardUnknown()

func (*QueryBondedRatioResponse) XXX_Marshal

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

func (*QueryBondedRatioResponse) XXX_Merge

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

func (*QueryBondedRatioResponse) XXX_Size

func (m *QueryBondedRatioResponse) XXX_Size() int

func (*QueryBondedRatioResponse) XXX_Unmarshal

func (m *QueryBondedRatioResponse) 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 {
	// 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 {
	// Params returns the total set of minting parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Inflation returns the current minting inflation value.
	Inflation(ctx context.Context, in *QueryInflationRequest, opts ...grpc.CallOption) (*QueryInflationResponse, error)
	// AnnualProvisions returns the current minting annual provisions.
	AnnualProvisions(ctx context.Context, in *QueryAnnualProvisionsRequest, opts ...grpc.CallOption) (*QueryAnnualProvisionsResponse, error)
	// TotalMintedProvision returns the total minted provisions.
	TotalMintedProvision(ctx context.Context, in *QueryTotalMintedProvisionRequest, opts ...grpc.CallOption) (*QueryTotalMintedProvisionResponse, error)
	// BlockProvision returns the current block provisions.
	BlockProvision(ctx context.Context, in *QueryBlockProvisionRequest, opts ...grpc.CallOption) (*QueryBlockProvisionResponse, 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)
	// GetBondedRatio returns the current ratio between staked tokens vs total supply.
	GetBondedRatio(ctx context.Context, in *QueryBondedRatioRequest, opts ...grpc.CallOption) (*QueryBondedRatioResponse, 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 QueryInflationRequest

type QueryInflationRequest struct {
}

QueryInflationRequest is the request type for the Query/Inflation RPC method.

func (*QueryInflationRequest) Descriptor

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

func (*QueryInflationRequest) Marshal

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

func (*QueryInflationRequest) MarshalTo

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

func (*QueryInflationRequest) MarshalToSizedBuffer

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

func (*QueryInflationRequest) ProtoMessage

func (*QueryInflationRequest) ProtoMessage()

func (*QueryInflationRequest) Reset

func (m *QueryInflationRequest) Reset()

func (*QueryInflationRequest) Size

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

func (*QueryInflationRequest) String

func (m *QueryInflationRequest) String() string

func (*QueryInflationRequest) Unmarshal

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

func (*QueryInflationRequest) XXX_DiscardUnknown

func (m *QueryInflationRequest) XXX_DiscardUnknown()

func (*QueryInflationRequest) XXX_Marshal

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

func (*QueryInflationRequest) XXX_Merge

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

func (*QueryInflationRequest) XXX_Size

func (m *QueryInflationRequest) XXX_Size() int

func (*QueryInflationRequest) XXX_Unmarshal

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

type QueryInflationResponse

type QueryInflationResponse struct {
	// inflation is the current minting inflation value.
	Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"`
}

QueryInflationResponse is the response type for the Query/Inflation RPC method.

func (*QueryInflationResponse) Descriptor

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

func (*QueryInflationResponse) Marshal

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

func (*QueryInflationResponse) MarshalTo

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

func (*QueryInflationResponse) MarshalToSizedBuffer

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

func (*QueryInflationResponse) ProtoMessage

func (*QueryInflationResponse) ProtoMessage()

func (*QueryInflationResponse) Reset

func (m *QueryInflationResponse) Reset()

func (*QueryInflationResponse) Size

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

func (*QueryInflationResponse) String

func (m *QueryInflationResponse) String() string

func (*QueryInflationResponse) Unmarshal

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

func (*QueryInflationResponse) XXX_DiscardUnknown

func (m *QueryInflationResponse) XXX_DiscardUnknown()

func (*QueryInflationResponse) XXX_Marshal

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

func (*QueryInflationResponse) XXX_Merge

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

func (*QueryInflationResponse) XXX_Size

func (m *QueryInflationResponse) XXX_Size() int

func (*QueryInflationResponse) XXX_Unmarshal

func (m *QueryInflationResponse) 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 QueryServer

type QueryServer interface {
	// Params returns the total set of minting parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Inflation returns the current minting inflation value.
	Inflation(context.Context, *QueryInflationRequest) (*QueryInflationResponse, error)
	// AnnualProvisions returns the current minting annual provisions.
	AnnualProvisions(context.Context, *QueryAnnualProvisionsRequest) (*QueryAnnualProvisionsResponse, error)
	// TotalMintedProvision returns the total minted provisions.
	TotalMintedProvision(context.Context, *QueryTotalMintedProvisionRequest) (*QueryTotalMintedProvisionResponse, error)
	// BlockProvision returns the current block provisions.
	BlockProvision(context.Context, *QueryBlockProvisionRequest) (*QueryBlockProvisionResponse, error)
	// CirculatingSupply retrieves the total number of tokens that are in
	// circulation (i.e. excluding unVested tokens).
	CirculatingSupply(context.Context, *QueryCirculatingSupplyRequest) (*QueryCirculatingSupplyResponse, error)
	// GetBondedRatio returns the current ratio between staked tokens vs total supply.
	GetBondedRatio(context.Context, *QueryBondedRatioRequest) (*QueryBondedRatioResponse, error)
}

QueryServer is the server API for Query service.

type QueryTotalMintedProvisionRequest

type QueryTotalMintedProvisionRequest struct {
}

QueryTotalMintedProvision is the request type for the Query/TotalMintedProvision RPC method.

func (*QueryTotalMintedProvisionRequest) Descriptor

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

func (*QueryTotalMintedProvisionRequest) Marshal

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

func (*QueryTotalMintedProvisionRequest) MarshalTo

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

func (*QueryTotalMintedProvisionRequest) MarshalToSizedBuffer

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

func (*QueryTotalMintedProvisionRequest) ProtoMessage

func (*QueryTotalMintedProvisionRequest) ProtoMessage()

func (*QueryTotalMintedProvisionRequest) Reset

func (*QueryTotalMintedProvisionRequest) Size

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

func (*QueryTotalMintedProvisionRequest) String

func (*QueryTotalMintedProvisionRequest) Unmarshal

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

func (*QueryTotalMintedProvisionRequest) XXX_DiscardUnknown

func (m *QueryTotalMintedProvisionRequest) XXX_DiscardUnknown()

func (*QueryTotalMintedProvisionRequest) XXX_Marshal

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

func (*QueryTotalMintedProvisionRequest) XXX_Merge

func (*QueryTotalMintedProvisionRequest) XXX_Size

func (m *QueryTotalMintedProvisionRequest) XXX_Size() int

func (*QueryTotalMintedProvisionRequest) XXX_Unmarshal

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

type QueryTotalMintedProvisionResponse

type QueryTotalMintedProvisionResponse struct {
	// total amount of provisions minted via block rewards.
	TotalMintedProvision types.DecCoin `` /* 170-byte string literal not displayed */
}

QueryTotalMintedProvisionResponse is the response type for the Query/TotalMintedProvision RPC method.

func (*QueryTotalMintedProvisionResponse) Descriptor

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

func (*QueryTotalMintedProvisionResponse) GetTotalMintedProvision

func (m *QueryTotalMintedProvisionResponse) GetTotalMintedProvision() types.DecCoin

func (*QueryTotalMintedProvisionResponse) Marshal

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

func (*QueryTotalMintedProvisionResponse) MarshalTo

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

func (*QueryTotalMintedProvisionResponse) MarshalToSizedBuffer

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

func (*QueryTotalMintedProvisionResponse) ProtoMessage

func (*QueryTotalMintedProvisionResponse) ProtoMessage()

func (*QueryTotalMintedProvisionResponse) Reset

func (*QueryTotalMintedProvisionResponse) Size

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

func (*QueryTotalMintedProvisionResponse) String

func (*QueryTotalMintedProvisionResponse) Unmarshal

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

func (*QueryTotalMintedProvisionResponse) XXX_DiscardUnknown

func (m *QueryTotalMintedProvisionResponse) XXX_DiscardUnknown()

func (*QueryTotalMintedProvisionResponse) XXX_Marshal

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

func (*QueryTotalMintedProvisionResponse) XXX_Merge

func (*QueryTotalMintedProvisionResponse) XXX_Size

func (m *QueryTotalMintedProvisionResponse) XXX_Size() int

func (*QueryTotalMintedProvisionResponse) XXX_Unmarshal

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

type StakingKeeper

type StakingKeeper interface {
	StakingTokenSupply(ctx sdk.Context) sdk.Int
	BondedRatio(ctx sdk.Context) sdk.Dec
}

StakingKeeper defines the expected staking keeper

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AnnualProvisions

func (*UnimplementedQueryServer) BlockProvision

func (*UnimplementedQueryServer) CirculatingSupply

func (*UnimplementedQueryServer) GetBondedRatio

func (*UnimplementedQueryServer) Inflation

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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