types

package
v7.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeFeeAccrual = "fee_accrual"

	AttributeKeyCellar        = "cellar"
	AttributeKeyTokenContract = "token_contract"
	AttributeKeyDenom         = "denom"
	AttributeKeyAmount        = "amount"
	AttributeKeyCount         = "count"

	AttributeValueCategory = ModuleName
)

cellarfees module event types

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "cellarfees"

	// StoreKey is the store key string for cellarfees
	StoreKey = ModuleName

	// RouterKey is the message route for cellarfees
	RouterKey = ModuleName

	// QuerierRoute is the querier route for cellarfees
	QuerierRoute = ModuleName
)
View Source
const (

	// key for storing the reward supply after the latest increase
	LastRewardSupplyPeakKey

	// key for storing fee accrual counts
	FeeAccrualCountersKey
)
View Source
const (
	DefaultFeeAccrualAuctionThreshold uint64 = 2
	// Rough number of blocks in 28 days, the time it takes to unbond
	DefaultRewardEmissionPeriod uint64 = 403200
	// Initial rate at which an auction should decrease the price of the relevant coin from it's starting price.
	// This value was determined experimentally. It is the initial rate at which it takes ~48 hours for the unit
	// price to hit 0 usomm, assuming a decrease acceleration rate of 0.001.
	DefaultInitialPriceDecreaseRate string = "0.0000648"
	// Blocks between each auction price decrease
	DefaultPriceDecreaseBlockInterval uint64 = 10
	// Blocks between each auction
	DefaultAuctionInterval uint64 = 15000
)
View Source
const DefaultParamspace = ModuleName

Variables

View Source
var (
	ErrInvalidLengthCellarfees        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCellarfees          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCellarfees = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidFeeAccrualAuctionThreshold = errorsmod.Register(ModuleName, 2, "invalid fee accrual auction threshold")
	ErrInvalidRewardEmissionPeriod       = errorsmod.Register(ModuleName, 3, "invalid reward emission period")
	ErrInvalidInitialPriceDecreaseRate   = errorsmod.Register(ModuleName, 4, "invalid initial price decrease rate")
	ErrInvalidPriceDecreaseBlockInterval = errorsmod.Register(ModuleName, 5, "invalid price decrease block interval")
	ErrInvalidFeeAccrualCounters         = errorsmod.Register(ModuleName, 6, "invalid fee accrual counters")
	ErrInvalidLastRewardSupplyPeak       = errorsmod.Register(ModuleName, 7, "invalid last reward supply peak")
	ErrInvalidAuctionInterval            = errorsmod.Register(ModuleName, 8, "invalid interval blocks between auctions")
)

x/cellarfees module sentinel errors

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 (
	KeyFeeAccrualAuctionThreshold = []byte("FeeAccrualAuctionThreshold")
	KeyRewardEmissionPeriod       = []byte("RewardEmissionPeriod")
	KeyInitialPriceDecreaseRate   = []byte("InitialPriceDecreaseRate")
	KeyPriceDecreaseBlockInterval = []byte("PriceDecreaseBlockInterval")
	KeyAuctionInterval            = []byte("AuctionInterval")
)

Parameter keys

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

Functions

func GetFeeAccrualCountersKey

func GetFeeAccrualCountersKey() []byte

GetFeeAccrualCountersKey returns the key prefix

func GetLastRewardSupplyPeakKey

func GetLastRewardSupplyPeakKey() []byte

GetLastRewardSupplyPeakKey returns the key prefix

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

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 {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI

	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, name string) types.ModuleAccountI
}

AccountKeeper defines the expected account keeper.

type AuctionKeeper

type AuctionKeeper interface {
	GetActiveAuctions(ctx sdk.Context) []*auctiontypes.Auction
	BeginAuction(ctx sdk.Context,
		startingTokensForSale sdk.Coin,
		initialPriceDecreaseRate sdk.Dec,
		priceDecreaseBlockInterval uint64,
		fundingModuleAccount string,
		proceedsModuleAccount string) error
}

AuctionKeeper defines the expected auction keeper methods

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error

	BlockedAddr(addr sdk.AccAddress) bool
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CorkKeeper

type CorkKeeper interface {
	GetCellarIDs(ctx sdk.Context) (cellars []common.Address)
	HasCellarID(ctx sdk.Context, address common.Address) (found bool)
}

CorkKeeper defines the minimum interface needed to check registered Cellars

type FeeAccrualCounter

type FeeAccrualCounter struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
}

func (*FeeAccrualCounter) Descriptor

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

func (*FeeAccrualCounter) GetCount

func (m *FeeAccrualCounter) GetCount() uint64

func (*FeeAccrualCounter) GetDenom

func (m *FeeAccrualCounter) GetDenom() string

func (*FeeAccrualCounter) Marshal

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

func (*FeeAccrualCounter) MarshalTo

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

func (*FeeAccrualCounter) MarshalToSizedBuffer

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

func (*FeeAccrualCounter) ProtoMessage

func (*FeeAccrualCounter) ProtoMessage()

func (*FeeAccrualCounter) Reset

func (m *FeeAccrualCounter) Reset()

func (*FeeAccrualCounter) Size

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

func (*FeeAccrualCounter) String

func (m *FeeAccrualCounter) String() string

func (*FeeAccrualCounter) Unmarshal

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

func (*FeeAccrualCounter) XXX_DiscardUnknown

func (m *FeeAccrualCounter) XXX_DiscardUnknown()

func (*FeeAccrualCounter) XXX_Marshal

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

func (*FeeAccrualCounter) XXX_Merge

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

func (*FeeAccrualCounter) XXX_Size

func (m *FeeAccrualCounter) XXX_Size() int

func (*FeeAccrualCounter) XXX_Unmarshal

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

type FeeAccrualCounters

type FeeAccrualCounters struct {
	Counters []FeeAccrualCounter `protobuf:"bytes,1,rep,name=counters,proto3" json:"counters"`
}

func DefaultFeeAccrualCounters

func DefaultFeeAccrualCounters() FeeAccrualCounters

func (*FeeAccrualCounters) Descriptor

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

func (*FeeAccrualCounters) GetCounters

func (m *FeeAccrualCounters) GetCounters() []FeeAccrualCounter

func (*FeeAccrualCounters) IncrementCounter

func (f *FeeAccrualCounters) IncrementCounter(denom string) uint64

Increment fee accrual counter for denom. If it isn't present, append it to the counters slice and increment to 1.

func (FeeAccrualCounters) Len

func (f FeeAccrualCounters) Len() int

Implementing sort.Interface (see https://pkg.go.dev/sort#Interface)

func (FeeAccrualCounters) Less

func (f FeeAccrualCounters) Less(i, j int) bool

func (*FeeAccrualCounters) Marshal

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

func (*FeeAccrualCounters) MarshalTo

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

func (*FeeAccrualCounters) MarshalToSizedBuffer

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

func (*FeeAccrualCounters) ProtoMessage

func (*FeeAccrualCounters) ProtoMessage()

func (*FeeAccrualCounters) Reset

func (m *FeeAccrualCounters) Reset()

func (*FeeAccrualCounters) ResetCounter

func (f *FeeAccrualCounters) ResetCounter(denom string)

Sets the denom's fee accrual counter to zero

func (*FeeAccrualCounters) Size

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

func (*FeeAccrualCounters) String

func (m *FeeAccrualCounters) String() string

func (FeeAccrualCounters) Swap

func (f FeeAccrualCounters) Swap(i, j int)

func (*FeeAccrualCounters) Unmarshal

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

func (*FeeAccrualCounters) XXX_DiscardUnknown

func (m *FeeAccrualCounters) XXX_DiscardUnknown()

func (*FeeAccrualCounters) XXX_Marshal

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

func (*FeeAccrualCounters) XXX_Merge

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

func (*FeeAccrualCounters) XXX_Size

func (m *FeeAccrualCounters) XXX_Size() int

func (*FeeAccrualCounters) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params               Params                                 `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	FeeAccrualCounters   FeeAccrualCounters                     `protobuf:"bytes,2,opt,name=fee_accrual_counters,json=feeAccrualCounters,proto3" json:"fee_accrual_counters"`
	LastRewardSupplyPeak github_com_cosmos_cosmos_sdk_types.Int `` /* 165-byte string literal not displayed */
}

GenesisState defines the cellarfees module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState get raw genesis raw message for testing

func (*GenesisState) Descriptor

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

func (*GenesisState) GetFeeAccrualCounters

func (m *GenesisState) GetFeeAccrualCounters() FeeAccrualCounters

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

func (gs GenesisState) Validate() error

Validate performs a basic stateless validation of the genesis fields.

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 GravityKeeper

type GravityKeeper interface {
	ERC20ToDenomLookup(ctx sdk.Context, tokenContract common.Address) (bool, string)
}

GravityKeeper defines the expected gravity keeper methods

type MintKeeper

type MintKeeper interface {
	GetParams(ctx sdk.Context) minttypes.Params
	StakingTokenSupply(ctx sdk.Context) math.Int
	BondedRatio(ctx sdk.Context) sdk.Dec
}

MintKeeper defines the expected mint keeper methods

type Params

type Params struct {
	// The number of fee accruals after which an auction should be started
	FeeAccrualAuctionThreshold uint64 `` /* 144-byte string literal not displayed */
	// Emission rate factor. Specifically, the number of blocks over which to distribute
	// some amount of staking rewards.
	RewardEmissionPeriod uint64 `protobuf:"varint,2,opt,name=reward_emission_period,json=rewardEmissionPeriod,proto3" json:"reward_emission_period,omitempty"`
	// The initial rate at which auctions should decrease their denom's price in SOMM
	InitialPriceDecreaseRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 177-byte string literal not displayed */
	// Number of blocks between auction price decreases
	PriceDecreaseBlockInterval uint64 `` /* 144-byte string literal not displayed */
	// The interval between starting auctions
	AuctionInterval uint64 `protobuf:"varint,5,opt,name=auction_interval,json=auctionInterval,proto3" json:"auction_interval,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default cellarfees parameters

func (*Params) Descriptor

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

func (*Params) GetAuctionInterval

func (m *Params) GetAuctionInterval() uint64

func (*Params) GetFeeAccrualAuctionThreshold

func (m *Params) GetFeeAccrualAuctionThreshold() uint64

func (*Params) GetPriceDecreaseBlockInterval

func (m *Params) GetPriceDecreaseBlockInterval() uint64

func (*Params) GetRewardEmissionPeriod

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

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

ParamSetPairs returns the parameter set pairs.

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 String interface

func (*Params) Unmarshal

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

func (*Params) ValidateBasic

func (p *Params) ValidateBasic() error

ValidateBasic performs basic validation on cellarfees parameters.

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 QueryAPYRequest

type QueryAPYRequest struct {
}

func (*QueryAPYRequest) Descriptor

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

func (*QueryAPYRequest) Marshal

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

func (*QueryAPYRequest) MarshalTo

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

func (*QueryAPYRequest) MarshalToSizedBuffer

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

func (*QueryAPYRequest) ProtoMessage

func (*QueryAPYRequest) ProtoMessage()

func (*QueryAPYRequest) Reset

func (m *QueryAPYRequest) Reset()

func (*QueryAPYRequest) Size

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

func (*QueryAPYRequest) String

func (m *QueryAPYRequest) String() string

func (*QueryAPYRequest) Unmarshal

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

func (*QueryAPYRequest) XXX_DiscardUnknown

func (m *QueryAPYRequest) XXX_DiscardUnknown()

func (*QueryAPYRequest) XXX_Marshal

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

func (*QueryAPYRequest) XXX_Merge

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

func (*QueryAPYRequest) XXX_Size

func (m *QueryAPYRequest) XXX_Size() int

func (*QueryAPYRequest) XXX_Unmarshal

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

type QueryAPYResponse

type QueryAPYResponse struct {
	Apy string `protobuf:"bytes,1,opt,name=apy,proto3" json:"apy,omitempty"`
}

func (*QueryAPYResponse) Descriptor

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

func (*QueryAPYResponse) GetApy

func (m *QueryAPYResponse) GetApy() string

func (*QueryAPYResponse) Marshal

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

func (*QueryAPYResponse) MarshalTo

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

func (*QueryAPYResponse) MarshalToSizedBuffer

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

func (*QueryAPYResponse) ProtoMessage

func (*QueryAPYResponse) ProtoMessage()

func (*QueryAPYResponse) Reset

func (m *QueryAPYResponse) Reset()

func (*QueryAPYResponse) Size

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

func (*QueryAPYResponse) String

func (m *QueryAPYResponse) String() string

func (*QueryAPYResponse) Unmarshal

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

func (*QueryAPYResponse) XXX_DiscardUnknown

func (m *QueryAPYResponse) XXX_DiscardUnknown()

func (*QueryAPYResponse) XXX_Marshal

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

func (*QueryAPYResponse) XXX_Merge

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

func (*QueryAPYResponse) XXX_Size

func (m *QueryAPYResponse) XXX_Size() int

func (*QueryAPYResponse) XXX_Unmarshal

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

type QueryClient

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 QueryFeeAccrualCountersRequest

type QueryFeeAccrualCountersRequest struct {
}

func (*QueryFeeAccrualCountersRequest) Descriptor

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

func (*QueryFeeAccrualCountersRequest) Marshal

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

func (*QueryFeeAccrualCountersRequest) MarshalTo

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

func (*QueryFeeAccrualCountersRequest) MarshalToSizedBuffer

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

func (*QueryFeeAccrualCountersRequest) ProtoMessage

func (*QueryFeeAccrualCountersRequest) ProtoMessage()

func (*QueryFeeAccrualCountersRequest) Reset

func (m *QueryFeeAccrualCountersRequest) Reset()

func (*QueryFeeAccrualCountersRequest) Size

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

func (*QueryFeeAccrualCountersRequest) String

func (*QueryFeeAccrualCountersRequest) Unmarshal

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

func (*QueryFeeAccrualCountersRequest) XXX_DiscardUnknown

func (m *QueryFeeAccrualCountersRequest) XXX_DiscardUnknown()

func (*QueryFeeAccrualCountersRequest) XXX_Marshal

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

func (*QueryFeeAccrualCountersRequest) XXX_Merge

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

func (*QueryFeeAccrualCountersRequest) XXX_Size

func (m *QueryFeeAccrualCountersRequest) XXX_Size() int

func (*QueryFeeAccrualCountersRequest) XXX_Unmarshal

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

type QueryFeeAccrualCountersResponse

type QueryFeeAccrualCountersResponse struct {
	FeeAccrualCounters FeeAccrualCounters `protobuf:"bytes,1,opt,name=fee_accrual_counters,json=feeAccrualCounters,proto3" json:"fee_accrual_counters"`
}

func (*QueryFeeAccrualCountersResponse) Descriptor

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

func (*QueryFeeAccrualCountersResponse) GetFeeAccrualCounters

func (m *QueryFeeAccrualCountersResponse) GetFeeAccrualCounters() FeeAccrualCounters

func (*QueryFeeAccrualCountersResponse) Marshal

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

func (*QueryFeeAccrualCountersResponse) MarshalTo

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

func (*QueryFeeAccrualCountersResponse) MarshalToSizedBuffer

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

func (*QueryFeeAccrualCountersResponse) ProtoMessage

func (*QueryFeeAccrualCountersResponse) ProtoMessage()

func (*QueryFeeAccrualCountersResponse) Reset

func (*QueryFeeAccrualCountersResponse) Size

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

func (*QueryFeeAccrualCountersResponse) String

func (*QueryFeeAccrualCountersResponse) Unmarshal

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

func (*QueryFeeAccrualCountersResponse) XXX_DiscardUnknown

func (m *QueryFeeAccrualCountersResponse) XXX_DiscardUnknown()

func (*QueryFeeAccrualCountersResponse) XXX_Marshal

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

func (*QueryFeeAccrualCountersResponse) XXX_Merge

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

func (*QueryFeeAccrualCountersResponse) XXX_Size

func (m *QueryFeeAccrualCountersResponse) XXX_Size() int

func (*QueryFeeAccrualCountersResponse) XXX_Unmarshal

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

type QueryLastRewardSupplyPeakRequest

type QueryLastRewardSupplyPeakRequest struct {
}

func (*QueryLastRewardSupplyPeakRequest) Descriptor

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

func (*QueryLastRewardSupplyPeakRequest) Marshal

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

func (*QueryLastRewardSupplyPeakRequest) MarshalTo

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

func (*QueryLastRewardSupplyPeakRequest) MarshalToSizedBuffer

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

func (*QueryLastRewardSupplyPeakRequest) ProtoMessage

func (*QueryLastRewardSupplyPeakRequest) ProtoMessage()

func (*QueryLastRewardSupplyPeakRequest) Reset

func (*QueryLastRewardSupplyPeakRequest) Size

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

func (*QueryLastRewardSupplyPeakRequest) String

func (*QueryLastRewardSupplyPeakRequest) Unmarshal

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

func (*QueryLastRewardSupplyPeakRequest) XXX_DiscardUnknown

func (m *QueryLastRewardSupplyPeakRequest) XXX_DiscardUnknown()

func (*QueryLastRewardSupplyPeakRequest) XXX_Marshal

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

func (*QueryLastRewardSupplyPeakRequest) XXX_Merge

func (*QueryLastRewardSupplyPeakRequest) XXX_Size

func (m *QueryLastRewardSupplyPeakRequest) XXX_Size() int

func (*QueryLastRewardSupplyPeakRequest) XXX_Unmarshal

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

type QueryLastRewardSupplyPeakResponse

type QueryLastRewardSupplyPeakResponse struct {
	LastRewardSupplyPeak github_com_cosmos_cosmos_sdk_types.Int `` /* 165-byte string literal not displayed */
}

func (*QueryLastRewardSupplyPeakResponse) Descriptor

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

func (*QueryLastRewardSupplyPeakResponse) Marshal

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

func (*QueryLastRewardSupplyPeakResponse) MarshalTo

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

func (*QueryLastRewardSupplyPeakResponse) MarshalToSizedBuffer

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

func (*QueryLastRewardSupplyPeakResponse) ProtoMessage

func (*QueryLastRewardSupplyPeakResponse) ProtoMessage()

func (*QueryLastRewardSupplyPeakResponse) Reset

func (*QueryLastRewardSupplyPeakResponse) Size

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

func (*QueryLastRewardSupplyPeakResponse) String

func (*QueryLastRewardSupplyPeakResponse) Unmarshal

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

func (*QueryLastRewardSupplyPeakResponse) XXX_DiscardUnknown

func (m *QueryLastRewardSupplyPeakResponse) XXX_DiscardUnknown()

func (*QueryLastRewardSupplyPeakResponse) XXX_Marshal

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

func (*QueryLastRewardSupplyPeakResponse) XXX_Merge

func (*QueryLastRewardSupplyPeakResponse) XXX_Size

func (m *QueryLastRewardSupplyPeakResponse) XXX_Size() int

func (*QueryLastRewardSupplyPeakResponse) XXX_Unmarshal

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

type QueryModuleAccountsRequest

type QueryModuleAccountsRequest struct {
}

func (*QueryModuleAccountsRequest) Descriptor

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

func (*QueryModuleAccountsRequest) Marshal

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

func (*QueryModuleAccountsRequest) MarshalTo

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

func (*QueryModuleAccountsRequest) MarshalToSizedBuffer

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

func (*QueryModuleAccountsRequest) ProtoMessage

func (*QueryModuleAccountsRequest) ProtoMessage()

func (*QueryModuleAccountsRequest) Reset

func (m *QueryModuleAccountsRequest) Reset()

func (*QueryModuleAccountsRequest) Size

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

func (*QueryModuleAccountsRequest) String

func (m *QueryModuleAccountsRequest) String() string

func (*QueryModuleAccountsRequest) Unmarshal

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

func (*QueryModuleAccountsRequest) XXX_DiscardUnknown

func (m *QueryModuleAccountsRequest) XXX_DiscardUnknown()

func (*QueryModuleAccountsRequest) XXX_Marshal

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

func (*QueryModuleAccountsRequest) XXX_Merge

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

func (*QueryModuleAccountsRequest) XXX_Size

func (m *QueryModuleAccountsRequest) XXX_Size() int

func (*QueryModuleAccountsRequest) XXX_Unmarshal

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

type QueryModuleAccountsResponse

type QueryModuleAccountsResponse struct {
	FeesAddress string `protobuf:"bytes,1,opt,name=fees_address,json=feesAddress,proto3" json:"fees_address,omitempty"`
}

func (*QueryModuleAccountsResponse) Descriptor

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

func (*QueryModuleAccountsResponse) GetFeesAddress

func (m *QueryModuleAccountsResponse) GetFeesAddress() string

func (*QueryModuleAccountsResponse) Marshal

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

func (*QueryModuleAccountsResponse) MarshalTo

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

func (*QueryModuleAccountsResponse) MarshalToSizedBuffer

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

func (*QueryModuleAccountsResponse) ProtoMessage

func (*QueryModuleAccountsResponse) ProtoMessage()

func (*QueryModuleAccountsResponse) Reset

func (m *QueryModuleAccountsResponse) Reset()

func (*QueryModuleAccountsResponse) Size

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

func (*QueryModuleAccountsResponse) String

func (m *QueryModuleAccountsResponse) String() string

func (*QueryModuleAccountsResponse) Unmarshal

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

func (*QueryModuleAccountsResponse) XXX_DiscardUnknown

func (m *QueryModuleAccountsResponse) XXX_DiscardUnknown()

func (*QueryModuleAccountsResponse) XXX_Marshal

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

func (*QueryModuleAccountsResponse) XXX_Merge

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

func (*QueryModuleAccountsResponse) XXX_Size

func (m *QueryModuleAccountsResponse) XXX_Size() int

func (*QueryModuleAccountsResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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

QueryServer is the server API for Query service.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) QueryAPY

func (*UnimplementedQueryServer) QueryFeeAccrualCounters

func (*UnimplementedQueryServer) QueryLastRewardSupplyPeak

func (*UnimplementedQueryServer) QueryModuleAccounts

func (*UnimplementedQueryServer) QueryParams

Jump to

Keyboard shortcuts

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