types

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "treasury"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_treasury"
)
View Source
const (
	AttributeEpochNumber    = "epoch_number"
	AttributeEpochProvision = "epoch_provision"
)

Variables

View Source
var (
	ErrInvalidLengthDistribution        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDistribution          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDistribution = 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 (
	ErrInvalidLengthMinter        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMinter          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMinter = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyMintDenom                    = []byte("MintDenom")
	KeyGenesisEpochProvision        = []byte("GenesisEpochProvision")
	KeyEpochIdentifier              = []byte("EpochIdentifier")
	KeyReductionPeriodEpochs        = []byte("ReductionPeriodEpochs")
	KeyReductionFactor              = []byte("ReductionFactor")
	KeyAllocationRatio              = []byte("AllocationRatio")
	KeyRewardDistributionStartEpoch = []byte("RewardDistributionStartEpoch")
	KeyEcosystemPoolAddress         = []byte("EcosystemPoolAddress")
	KeyDeveloperPoolAddress         = []byte("DeveloperPoolAddress")
	KeyRewardPoolAddress            = []byte("RewardPoolAddress")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
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 (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/treasury module sentinel errors

View Source
var LastReductionEpochKey = []byte{0x03}
View Source
var MinterKey = []byte{0x00}

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

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
	HasAccount(ctx sdk.Context, addr sdk.AccAddress) bool
	SetModuleAccount(ctx sdk.Context, s types.ModuleAccountI)
	GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type DistrKeeper

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

type Distribution

type Distribution struct {
	// staking pool defines the proportion of the minted mint denom that is to be
	// allocated as staking rewards.
	StakingPool github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */
	// ecosystem pool defines the proportion of the minted mint denom that is
	// to be allocated as ecosystem pool incentives.
	EcosystemPool github_com_cosmos_cosmos_sdk_types.Dec `` /* 152-byte string literal not displayed */
	// developer pool defines the proportion of the minted mint denom
	// to pay dApp developers
	DeveloperPool github_com_cosmos_cosmos_sdk_types.Dec `` /* 152-byte string literal not displayed */
	// reward pool defines the proportion of the minted mint denom that is to be
	// allocated for rewards activities.
	RewardPool github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */
	// community pool defines the proportion of the minted mint denom that is
	// to be allocated to the community pool incentives.
	CommunityPool github_com_cosmos_cosmos_sdk_types.Dec `` /* 152-byte string literal not displayed */
}

func (*Distribution) Descriptor

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

func (*Distribution) Marshal

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

func (*Distribution) MarshalTo

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

func (*Distribution) MarshalToSizedBuffer

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

func (*Distribution) ProtoMessage

func (*Distribution) ProtoMessage()

func (*Distribution) Reset

func (m *Distribution) Reset()

func (*Distribution) Size

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

func (*Distribution) String

func (m *Distribution) String() string

func (*Distribution) Unmarshal

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

func (*Distribution) XXX_DiscardUnknown

func (m *Distribution) XXX_DiscardUnknown()

func (*Distribution) XXX_Marshal

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

func (*Distribution) XXX_Merge

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

func (*Distribution) XXX_Size

func (m *Distribution) XXX_Size() int

func (*Distribution) XXX_Unmarshal

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

type EpochKeeper

type EpochKeeper interface {
	GetEpoch(ctx sdk.Context, id string) epochtypes.Epoch
}

type GenesisState

type GenesisState struct {
	// params defines all the paramaters of the treasury module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// minter is an abstraction for holding current rewards information.
	Minter Minter `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter"`
	// reduction start epoch is the first epoch in which the reduction of mint begins.
	ReductionStartEpoch int64 `protobuf:"varint,3,opt,name=reductionStartEpoch,proto3" json:"reduction_start_epoch,omitempty" yaml:"reduction_start_epoch"`
}

GenesisState defines the treasury module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func NewGenesisState

func NewGenesisState(minter Minter, params Params, reductionStartEpoch int64) *GenesisState

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

func (m *GenesisState) GetReductionStartEpoch() int64

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 MintHooks

type MintHooks interface {
	AfterDistributeMintedCoin(ctx sdk.Context, mintedCoin sdk.Coin)
}

type Minter

type Minter struct {
	// provision represent rewards for the current epoch.
	Provision github_com_cosmos_cosmos_sdk_types.Dec `` /* 138-byte string literal not displayed */
}

Minter represents the minting state.

func DefaultInitialMinter

func DefaultInitialMinter() Minter

func InitialMinter

func InitialMinter() Minter

func NewMinter

func NewMinter(epochProvision sdk.Dec) Minter

func (*Minter) Descriptor

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

func (Minter) EpochProvision

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

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

func (m Minter) NextEpochProvision(params Params) sdk.Dec

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

func (m Minter) Validate() 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 MultiMintHooks

type MultiMintHooks []MintHooks

func NewMultiMintHooks

func NewMultiMintHooks(hooks ...MintHooks) MultiMintHooks

func (MultiMintHooks) AfterDistributeMintedCoin

func (h MultiMintHooks) AfterDistributeMintedCoin(ctx sdk.Context, mintedCoin sdk.Coin)

type Params

type Params struct {
	// mint_denom is the denom of the coin to mint.
	MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"`
	// genesis epoch provision from the first epoch.
	GenesisEpochProvision github_com_cosmos_cosmos_sdk_types.Dec `` /* 207-byte string literal not displayed */
	// epoch identifier is the mint epoch identifier e.g. (hour, day, week).
	// See module "epoch"
	EpochIdentifier string `` /* 130-byte string literal not displayed */
	// reduction period in epochs is the number of epochs it takes
	// to reduce the rewards.
	ReductionPeriodEpochs int64 `` /* 158-byte string literal not displayed */
	// reduction factor is the reduction multiplier to execute
	// at the end of each period set by reduction period in epochs.
	ReductionFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 180-byte string literal not displayed */
	// distribution defines the distribution proportions of the minted
	// denom. In other words, defines which stakeholders will receive the minted
	// denoms and how much.
	Distribution Distribution `protobuf:"bytes,6,opt,name=distribution,proto3" json:"distribution"`
	// minting rewards distribution start epoch defines start epoch to distribute minting
	// rewards
	RewardDistributionStartEpoch int64 `` /* 189-byte string literal not displayed */
	// The ecosystem pool address to send the reward to
	// If empty the minted coin will be send to community pool
	EcosystemPoolAddress string `` /* 153-byte string literal not displayed */
	// The developer pool address to send the reward to
	// If empty the minted coin will be send to community pool
	DeveloperPoolAddress string `` /* 153-byte string literal not displayed */
	// The reward pool address to send the reward to
	// If empty the minted coin will be send to community pool
	RewardPoolAddress string `` /* 142-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

func NewParams

func NewParams(
	mintDenom string, genesisEpochProvision sdk.Dec, epochIdentifier string, reductionFactor sdk.Dec,
	reductionPeriodEpochs int64, distribution Distribution, rewardDistributionStartEpoch int64,
	ecosystemPoolAddress string, developerPoolAddress string, rewardPoolAddress string,
) Params

func (*Params) Descriptor

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

func (*Params) GetDeveloperPoolAddress

func (m *Params) GetDeveloperPoolAddress() string

func (*Params) GetDistribution

func (m *Params) GetDistribution() Distribution

func (*Params) GetEcosystemPoolAddress

func (m *Params) GetEcosystemPoolAddress() string

func (*Params) GetEpochIdentifier

func (m *Params) GetEpochIdentifier() string

func (*Params) GetMintDenom

func (m *Params) GetMintDenom() string

func (*Params) GetReductionPeriodEpochs

func (m *Params) GetReductionPeriodEpochs() int64

func (*Params) GetRewardDistributionStartEpoch

func (m *Params) GetRewardDistributionStartEpoch() int64

func (*Params) GetRewardPoolAddress

func (m *Params) GetRewardPoolAddress() 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

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

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 QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Returns the current minting epoch provisions value
	EpochProvision(ctx context.Context, in *QueryEpochProvisionRequest, opts ...grpc.CallOption) (*QueryEpochProvisionResponse, 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 QueryEpochProvisionRequest

type QueryEpochProvisionRequest struct {
}

func (*QueryEpochProvisionRequest) Descriptor

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

func (*QueryEpochProvisionRequest) Marshal

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

func (*QueryEpochProvisionRequest) MarshalTo

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

func (*QueryEpochProvisionRequest) MarshalToSizedBuffer

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

func (*QueryEpochProvisionRequest) ProtoMessage

func (*QueryEpochProvisionRequest) ProtoMessage()

func (*QueryEpochProvisionRequest) Reset

func (m *QueryEpochProvisionRequest) Reset()

func (*QueryEpochProvisionRequest) Size

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

func (*QueryEpochProvisionRequest) String

func (m *QueryEpochProvisionRequest) String() string

func (*QueryEpochProvisionRequest) Unmarshal

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

func (*QueryEpochProvisionRequest) XXX_DiscardUnknown

func (m *QueryEpochProvisionRequest) XXX_DiscardUnknown()

func (*QueryEpochProvisionRequest) XXX_Marshal

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

func (*QueryEpochProvisionRequest) XXX_Merge

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

func (*QueryEpochProvisionRequest) XXX_Size

func (m *QueryEpochProvisionRequest) XXX_Size() int

func (*QueryEpochProvisionRequest) XXX_Unmarshal

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

type QueryEpochProvisionResponse

type QueryEpochProvisionResponse struct {
	EpochProvision github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */
}

func (*QueryEpochProvisionResponse) Descriptor

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

func (*QueryEpochProvisionResponse) Marshal

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

func (*QueryEpochProvisionResponse) MarshalTo

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

func (*QueryEpochProvisionResponse) MarshalToSizedBuffer

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

func (*QueryEpochProvisionResponse) ProtoMessage

func (*QueryEpochProvisionResponse) ProtoMessage()

func (*QueryEpochProvisionResponse) Reset

func (m *QueryEpochProvisionResponse) Reset()

func (*QueryEpochProvisionResponse) Size

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

func (*QueryEpochProvisionResponse) String

func (m *QueryEpochProvisionResponse) String() string

func (*QueryEpochProvisionResponse) Unmarshal

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

func (*QueryEpochProvisionResponse) XXX_DiscardUnknown

func (m *QueryEpochProvisionResponse) XXX_DiscardUnknown()

func (*QueryEpochProvisionResponse) XXX_Marshal

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

func (*QueryEpochProvisionResponse) XXX_Merge

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

func (*QueryEpochProvisionResponse) XXX_Size

func (m *QueryEpochProvisionResponse) XXX_Size() int

func (*QueryEpochProvisionResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Returns the current minting epoch provisions value
	EpochProvision(context.Context, *QueryEpochProvisionRequest) (*QueryEpochProvisionResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) EpochProvision

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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