Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ElysStakedKey(address string) []byte
- func KeyPrefix(p string) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type AccountedPoolKeeper
- type AmmKeeper
- type AssetProfileKeeper
- type BankKeeper
- type CommitmentKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgBeginRedelegate
- func (*MsgBeginRedelegate) Descriptor() ([]byte, []int)
- func (m *MsgBeginRedelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgBeginRedelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBeginRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBeginRedelegate) ProtoMessage()
- func (m *MsgBeginRedelegate) Reset()
- func (m *MsgBeginRedelegate) Size() (n int)
- func (m *MsgBeginRedelegate) String() string
- func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error
- func (m *MsgBeginRedelegate) XXX_DiscardUnknown()
- func (m *MsgBeginRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBeginRedelegate) XXX_Merge(src proto.Message)
- func (m *MsgBeginRedelegate) XXX_Size() int
- func (m *MsgBeginRedelegate) XXX_Unmarshal(b []byte) error
- type MsgCancelUnbondingDelegation
- func (*MsgCancelUnbondingDelegation) Descriptor() ([]byte, []int)
- func (m *MsgCancelUnbondingDelegation) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelUnbondingDelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelUnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelUnbondingDelegation) ProtoMessage()
- func (m *MsgCancelUnbondingDelegation) Reset()
- func (m *MsgCancelUnbondingDelegation) Size() (n int)
- func (m *MsgCancelUnbondingDelegation) String() string
- func (m *MsgCancelUnbondingDelegation) Unmarshal(dAtA []byte) error
- func (m *MsgCancelUnbondingDelegation) XXX_DiscardUnknown()
- func (m *MsgCancelUnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelUnbondingDelegation) XXX_Merge(src proto.Message)
- func (m *MsgCancelUnbondingDelegation) XXX_Size() int
- func (m *MsgCancelUnbondingDelegation) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type OracleKeeper
- type ParameterKeeper
- type PoolRewards
- func (*PoolRewards) Descriptor() ([]byte, []int)
- func (m *PoolRewards) GetPoolId() uint64
- func (m *PoolRewards) GetRewardCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *PoolRewards) Marshal() (dAtA []byte, err error)
- func (m *PoolRewards) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolRewards) ProtoMessage()
- func (m *PoolRewards) Reset()
- func (m *PoolRewards) Size() (n int)
- func (m *PoolRewards) String() string
- func (m *PoolRewards) Unmarshal(dAtA []byte) error
- func (m *PoolRewards) XXX_DiscardUnknown()
- func (m *PoolRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolRewards) XXX_Merge(src proto.Message)
- func (m *PoolRewards) XXX_Size() int
- func (m *PoolRewards) XXX_Unmarshal(b []byte) error
- type QueryAprRequest
- func (*QueryAprRequest) Descriptor() ([]byte, []int)
- func (m *QueryAprRequest) GetDenom() string
- func (m *QueryAprRequest) GetWithdrawType() types.EarnType
- func (m *QueryAprRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAprRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAprRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAprRequest) ProtoMessage()
- func (m *QueryAprRequest) Reset()
- func (m *QueryAprRequest) Size() (n int)
- func (m *QueryAprRequest) String() string
- func (m *QueryAprRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAprRequest) XXX_DiscardUnknown()
- func (m *QueryAprRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAprRequest) XXX_Merge(src proto.Message)
- func (m *QueryAprRequest) XXX_Size() int
- func (m *QueryAprRequest) XXX_Unmarshal(b []byte) error
- type QueryAprResponse
- func (*QueryAprResponse) Descriptor() ([]byte, []int)
- func (m *QueryAprResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAprResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAprResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAprResponse) ProtoMessage()
- func (m *QueryAprResponse) Reset()
- func (m *QueryAprResponse) Size() (n int)
- func (m *QueryAprResponse) String() string
- func (m *QueryAprResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAprResponse) XXX_DiscardUnknown()
- func (m *QueryAprResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAprResponse) XXX_Merge(src proto.Message)
- func (m *QueryAprResponse) XXX_Size() int
- func (m *QueryAprResponse) XXX_Unmarshal(b []byte) error
- type QueryAprsRequest
- func (*QueryAprsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAprsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAprsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAprsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAprsRequest) ProtoMessage()
- func (m *QueryAprsRequest) Reset()
- func (m *QueryAprsRequest) Size() (n int)
- func (m *QueryAprsRequest) String() string
- func (m *QueryAprsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAprsRequest) XXX_DiscardUnknown()
- func (m *QueryAprsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAprsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAprsRequest) XXX_Size() int
- func (m *QueryAprsRequest) XXX_Unmarshal(b []byte) error
- type QueryAprsResponse
- func (*QueryAprsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAprsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAprsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAprsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAprsResponse) ProtoMessage()
- func (m *QueryAprsResponse) Reset()
- func (m *QueryAprsResponse) Size() (n int)
- func (m *QueryAprsResponse) String() string
- func (m *QueryAprsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAprsResponse) XXX_DiscardUnknown()
- func (m *QueryAprsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAprsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAprsResponse) XXX_Size() int
- func (m *QueryAprsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryPoolRewardsRequest
- func (*QueryPoolRewardsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPoolRewardsRequest) GetPagination() *query.PageRequest
- func (m *QueryPoolRewardsRequest) GetPoolIds() []uint64
- func (m *QueryPoolRewardsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolRewardsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolRewardsRequest) ProtoMessage()
- func (m *QueryPoolRewardsRequest) Reset()
- func (m *QueryPoolRewardsRequest) Size() (n int)
- func (m *QueryPoolRewardsRequest) String() string
- func (m *QueryPoolRewardsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPoolRewardsRequest) XXX_DiscardUnknown()
- func (m *QueryPoolRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolRewardsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPoolRewardsRequest) XXX_Size() int
- func (m *QueryPoolRewardsRequest) XXX_Unmarshal(b []byte) error
- type QueryPoolRewardsResponse
- func (*QueryPoolRewardsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPoolRewardsResponse) GetPools() []PoolRewards
- func (m *QueryPoolRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolRewardsResponse) ProtoMessage()
- func (m *QueryPoolRewardsResponse) Reset()
- func (m *QueryPoolRewardsResponse) Size() (n int)
- func (m *QueryPoolRewardsResponse) String() string
- func (m *QueryPoolRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPoolRewardsResponse) XXX_DiscardUnknown()
- func (m *QueryPoolRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolRewardsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPoolRewardsResponse) XXX_Size() int
- func (m *QueryPoolRewardsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type StableStakeKeeper
- type StakingKeeper
- type TokenomicsKeeper
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Apr(ctx context.Context, req *QueryAprRequest) (*QueryAprResponse, error)
- func (*UnimplementedQueryServer) Aprs(ctx context.Context, req *QueryAprsRequest) (*QueryAprsResponse, error)
- func (*UnimplementedQueryServer) PoolRewards(ctx context.Context, req *QueryPoolRewardsRequest) (*QueryPoolRewardsResponse, error)
Constants ¶
const ( EventTypeSetWithdrawAddress = "set_withdraw_address" EventTypeRewards = "rewards" EventTypeCommission = "commission" EventTypeWithdrawRewards = "withdraw_rewards" EventTypeWithdrawCommission = "withdraw_commission" EventTypeProposerReward = "proposer_reward" AttributeKeyWithdrawAddress = "withdraw_address" AttributeKeyValidator = "validator" AttributeValueCategory = ModuleName )
distribution module event types
const ( // ModuleName defines the module name ModuleName = "incentive" // StoreKey defines the primary module store key StoreKey = ModuleName + "_store" // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_incentive" ElysStakedKeyPrefix = "ElysStaked/value/" ElysStakeChangeKeyPrefix = "ElysStakeChanged/value/" // ParamsKey is the prefix to retrieve all Params ParamsKey = "Params/value/" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrEmptyDelegatorAddr = errorsmod.Register(ModuleName, 2, "delegator address is empty") ErrEmptyWithdrawAddr = errorsmod.Register(ModuleName, 3, "withdraw address is empty") ErrEmptyValidatorAddr = errorsmod.Register(ModuleName, 4, "validator address is empty") ErrEmptyDelegationDistInfo = errorsmod.Register(ModuleName, 5, "no delegation distribution info") ErrNoValidatorDistInfo = errorsmod.Register(ModuleName, 6, "no validator distribution info") ErrNoValidatorCommission = errorsmod.Register(ModuleName, 7, "no validator commission to withdraw") ErrSetWithdrawAddrDisabled = errorsmod.Register(ModuleName, 8, "set withdraw address disabled") ErrBadDistribution = errorsmod.Register(ModuleName, 9, "community pool does not have sufficient coins to distribute") ErrInvalidProposalAmount = errorsmod.Register(ModuleName, 10, "invalid community pool spend proposal amount") ErrEmptyProposalRecipient = errorsmod.Register(ModuleName, 11, "invalid community pool spend proposal recipient") ErrNoValidatorExists = errorsmod.Register(ModuleName, 12, "validator does not exist") ErrNoDelegationExists = errorsmod.Register(ModuleName, 13, "delegation does not exist") ErrNoInflationaryParams = errorsmod.Register(ModuleName, 14, "no inflationary rewards params") ErrInvalidInflationaryEpochIdentifier = errorsmod.Register(ModuleName, 15, "inflationary inflationary epoch identifier is invalid") )
x/incentive module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var FeePoolKey = []byte{0x00} // key for global distribution state
Functions ¶
func ElysStakedKey ¶ added in v0.12.0
ElysStakedKey returns the store key to retrieve a ElysStaked from the address fields
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
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 used for simulations (noalias)
type AccountedPoolKeeper ¶ added in v0.11.0
AccountedPoolKeeper
type AmmKeeper ¶
type AmmKeeper interface { // UpdatePoolForSwap takes a pool, sender, and tokenIn, tokenOut amounts // It then updates the pool's balances to the new reserve amounts, and // sends the in tokens from the sender to the pool, and the out tokens from the pool to the sender. UpdatePoolForSwap( ctx sdk.Context, pool ammtypes.Pool, sender sdk.AccAddress, recipient sdk.AccAddress, tokenIn sdk.Coin, tokenOut sdk.Coin, swapFeeIn sdk.Dec, swapFeeOut sdk.Dec, weightBalanceBonus sdk.Dec, ) (math.Int, error) GetBestPoolWithDenoms(ctx sdk.Context, denoms []string) (pool ammtypes.Pool, found bool) // GetPool returns a pool from its index GetPool(sdk.Context, uint64) (ammtypes.Pool, bool) // Get all pools GetAllPool(sdk.Context) []ammtypes.Pool // IterateCommitments iterates over all Commitments and performs a callback. IterateLiquidityPools(sdk.Context, func(ammtypes.Pool) bool) GetPoolSnapshotOrSet(ctx sdk.Context, pool ammtypes.Pool) (val ammtypes.Pool) SwapOutAmtGivenIn( ctx sdk.Context, poolId uint64, oracleKeeper ammtypes.OracleKeeper, snapshot *ammtypes.Pool, tokensIn sdk.Coins, tokenOutDenom string, swapFee sdk.Dec, ) (tokenOut sdk.Coin, slippage, slippageAmount sdk.Dec, weightBalanceBonus sdk.Dec, err error) CalcOutAmtGivenIn(ctx sdk.Context, poolId uint64, oracle ammtypes.OracleKeeper, snapshot *ammtypes.Pool, tokensIn sdk.Coins, tokenOutDenom string, swapFee sdk.Dec) (sdk.Coin, sdk.Dec, error) GetEdenDenomPrice(ctx sdk.Context, baseCurrency string) math.LegacyDec GetTokenPrice(ctx sdk.Context, tokenInDenom, baseCurrency string) math.LegacyDec }
AmmKeeper defines the expected interface needed to swap tokens
type AssetProfileKeeper ¶ added in v0.15.0
type AssetProfileKeeper interface { GetEntry(ctx sdk.Context, baseDenom string) (val assetprofiletypes.Entry, found bool) // GetUsdcDenom returns USDC denom GetUsdcDenom(ctx sdk.Context) (string, bool) }
AssetProfileKeeper defines the expected interface needed to retrieve denom info
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 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 BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type CommitmentKeeper ¶
type CommitmentKeeper interface { // Iterate all commitment IterateCommitments(sdk.Context, func(ctypes.Commitments) (stop bool)) // Update commitment SetCommitments(sdk.Context, ctypes.Commitments) // Get commitment GetCommitments(sdk.Context, string) ctypes.Commitments // Burn eden boost BurnEdenBoost(ctx sdk.Context, creator string, denom string, amount math.Int) error }
CommitmentKeeper
type GenesisState ¶
type GenesisState struct { }
GenesisState defines the incentive module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func NewGenesisState ¶
func NewGenesisState() *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgBeginRedelegate ¶ added in v0.19.0
type MsgBeginRedelegate struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorSrcAddress string `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"` ValidatorDstAddress string `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"` Amount types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"` }
func (*MsgBeginRedelegate) Descriptor ¶ added in v0.19.0
func (*MsgBeginRedelegate) Descriptor() ([]byte, []int)
func (*MsgBeginRedelegate) Marshal ¶ added in v0.19.0
func (m *MsgBeginRedelegate) Marshal() (dAtA []byte, err error)
func (*MsgBeginRedelegate) MarshalTo ¶ added in v0.19.0
func (m *MsgBeginRedelegate) MarshalTo(dAtA []byte) (int, error)
func (*MsgBeginRedelegate) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgBeginRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBeginRedelegate) ProtoMessage ¶ added in v0.19.0
func (*MsgBeginRedelegate) ProtoMessage()
func (*MsgBeginRedelegate) Reset ¶ added in v0.19.0
func (m *MsgBeginRedelegate) Reset()
func (*MsgBeginRedelegate) Size ¶ added in v0.19.0
func (m *MsgBeginRedelegate) Size() (n int)
func (*MsgBeginRedelegate) String ¶ added in v0.19.0
func (m *MsgBeginRedelegate) String() string
func (*MsgBeginRedelegate) Unmarshal ¶ added in v0.19.0
func (m *MsgBeginRedelegate) Unmarshal(dAtA []byte) error
func (*MsgBeginRedelegate) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgBeginRedelegate) XXX_DiscardUnknown()
func (*MsgBeginRedelegate) XXX_Marshal ¶ added in v0.19.0
func (m *MsgBeginRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBeginRedelegate) XXX_Merge ¶ added in v0.19.0
func (m *MsgBeginRedelegate) XXX_Merge(src proto.Message)
func (*MsgBeginRedelegate) XXX_Size ¶ added in v0.19.0
func (m *MsgBeginRedelegate) XXX_Size() int
func (*MsgBeginRedelegate) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgBeginRedelegate) XXX_Unmarshal(b []byte) error
type MsgCancelUnbondingDelegation ¶ added in v0.19.0
type MsgCancelUnbondingDelegation struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` // amount is always less than or equal to unbonding delegation entry balance Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` // creation_height is the height which the unbonding took place. CreationHeight int64 `protobuf:"varint,4,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"` }
func (*MsgCancelUnbondingDelegation) Descriptor ¶ added in v0.19.0
func (*MsgCancelUnbondingDelegation) Descriptor() ([]byte, []int)
func (*MsgCancelUnbondingDelegation) Marshal ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) Marshal() (dAtA []byte, err error)
func (*MsgCancelUnbondingDelegation) MarshalTo ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelUnbondingDelegation) MarshalToSizedBuffer ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelUnbondingDelegation) ProtoMessage ¶ added in v0.19.0
func (*MsgCancelUnbondingDelegation) ProtoMessage()
func (*MsgCancelUnbondingDelegation) Reset ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) Reset()
func (*MsgCancelUnbondingDelegation) Size ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) Size() (n int)
func (*MsgCancelUnbondingDelegation) String ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) String() string
func (*MsgCancelUnbondingDelegation) Unmarshal ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) Unmarshal(dAtA []byte) error
func (*MsgCancelUnbondingDelegation) XXX_DiscardUnknown ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) XXX_DiscardUnknown()
func (*MsgCancelUnbondingDelegation) XXX_Marshal ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelUnbondingDelegation) XXX_Merge ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) XXX_Merge(src proto.Message)
func (*MsgCancelUnbondingDelegation) XXX_Size ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) XXX_Size() int
func (*MsgCancelUnbondingDelegation) XXX_Unmarshal ¶ added in v0.19.0
func (m *MsgCancelUnbondingDelegation) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type OracleKeeper ¶
type OracleKeeper interface { GetAssetPrice(ctx sdk.Context, asset string) (oracletypes.Price, bool) GetAssetPriceFromDenom(ctx sdk.Context, denom string) sdk.Dec GetPriceFeeder(ctx sdk.Context, feeder string) (val oracletypes.PriceFeeder, found bool) }
OracleKeeper defines the expected interface needed to retrieve price info
type ParameterKeeper ¶ added in v0.31.0
type ParameterKeeper interface {
GetParams(ctx sdk.Context) (params parametertypes.Params)
}
type PoolRewards ¶ added in v0.29.27
type PoolRewards struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` RewardsUsd github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */ RewardCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 138-byte string literal not displayed */ }
func (*PoolRewards) Descriptor ¶ added in v0.29.27
func (*PoolRewards) Descriptor() ([]byte, []int)
func (*PoolRewards) GetPoolId ¶ added in v0.29.27
func (m *PoolRewards) GetPoolId() uint64
func (*PoolRewards) GetRewardCoins ¶ added in v0.29.27
func (m *PoolRewards) GetRewardCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*PoolRewards) Marshal ¶ added in v0.29.27
func (m *PoolRewards) Marshal() (dAtA []byte, err error)
func (*PoolRewards) MarshalTo ¶ added in v0.29.27
func (m *PoolRewards) MarshalTo(dAtA []byte) (int, error)
func (*PoolRewards) MarshalToSizedBuffer ¶ added in v0.29.27
func (m *PoolRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PoolRewards) ProtoMessage ¶ added in v0.29.27
func (*PoolRewards) ProtoMessage()
func (*PoolRewards) Reset ¶ added in v0.29.27
func (m *PoolRewards) Reset()
func (*PoolRewards) Size ¶ added in v0.29.27
func (m *PoolRewards) Size() (n int)
func (*PoolRewards) String ¶ added in v0.29.27
func (m *PoolRewards) String() string
func (*PoolRewards) Unmarshal ¶ added in v0.29.27
func (m *PoolRewards) Unmarshal(dAtA []byte) error
func (*PoolRewards) XXX_DiscardUnknown ¶ added in v0.29.27
func (m *PoolRewards) XXX_DiscardUnknown()
func (*PoolRewards) XXX_Marshal ¶ added in v0.29.27
func (m *PoolRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PoolRewards) XXX_Merge ¶ added in v0.29.27
func (m *PoolRewards) XXX_Merge(src proto.Message)
func (*PoolRewards) XXX_Size ¶ added in v0.29.27
func (m *PoolRewards) XXX_Size() int
func (*PoolRewards) XXX_Unmarshal ¶ added in v0.29.27
func (m *PoolRewards) XXX_Unmarshal(b []byte) error
type QueryAprRequest ¶ added in v0.17.0
type QueryAprRequest struct { WithdrawType types.EarnType `` /* 128-byte string literal not displayed */ Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
func (*QueryAprRequest) Descriptor ¶ added in v0.17.0
func (*QueryAprRequest) Descriptor() ([]byte, []int)
func (*QueryAprRequest) GetDenom ¶ added in v0.17.0
func (m *QueryAprRequest) GetDenom() string
func (*QueryAprRequest) GetWithdrawType ¶ added in v0.17.0
func (m *QueryAprRequest) GetWithdrawType() types.EarnType
func (*QueryAprRequest) Marshal ¶ added in v0.17.0
func (m *QueryAprRequest) Marshal() (dAtA []byte, err error)
func (*QueryAprRequest) MarshalTo ¶ added in v0.17.0
func (m *QueryAprRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAprRequest) MarshalToSizedBuffer ¶ added in v0.17.0
func (m *QueryAprRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAprRequest) ProtoMessage ¶ added in v0.17.0
func (*QueryAprRequest) ProtoMessage()
func (*QueryAprRequest) Reset ¶ added in v0.17.0
func (m *QueryAprRequest) Reset()
func (*QueryAprRequest) Size ¶ added in v0.17.0
func (m *QueryAprRequest) Size() (n int)
func (*QueryAprRequest) String ¶ added in v0.17.0
func (m *QueryAprRequest) String() string
func (*QueryAprRequest) Unmarshal ¶ added in v0.17.0
func (m *QueryAprRequest) Unmarshal(dAtA []byte) error
func (*QueryAprRequest) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *QueryAprRequest) XXX_DiscardUnknown()
func (*QueryAprRequest) XXX_Marshal ¶ added in v0.17.0
func (m *QueryAprRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAprRequest) XXX_Merge ¶ added in v0.17.0
func (m *QueryAprRequest) XXX_Merge(src proto.Message)
func (*QueryAprRequest) XXX_Size ¶ added in v0.17.0
func (m *QueryAprRequest) XXX_Size() int
func (*QueryAprRequest) XXX_Unmarshal ¶ added in v0.17.0
func (m *QueryAprRequest) XXX_Unmarshal(b []byte) error
type QueryAprResponse ¶ added in v0.17.0
type QueryAprResponse struct {
Apr github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=apr,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"apr"`
}
func (*QueryAprResponse) Descriptor ¶ added in v0.17.0
func (*QueryAprResponse) Descriptor() ([]byte, []int)
func (*QueryAprResponse) Marshal ¶ added in v0.17.0
func (m *QueryAprResponse) Marshal() (dAtA []byte, err error)
func (*QueryAprResponse) MarshalTo ¶ added in v0.17.0
func (m *QueryAprResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAprResponse) MarshalToSizedBuffer ¶ added in v0.17.0
func (m *QueryAprResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAprResponse) ProtoMessage ¶ added in v0.17.0
func (*QueryAprResponse) ProtoMessage()
func (*QueryAprResponse) Reset ¶ added in v0.17.0
func (m *QueryAprResponse) Reset()
func (*QueryAprResponse) Size ¶ added in v0.17.0
func (m *QueryAprResponse) Size() (n int)
func (*QueryAprResponse) String ¶ added in v0.17.0
func (m *QueryAprResponse) String() string
func (*QueryAprResponse) Unmarshal ¶ added in v0.17.0
func (m *QueryAprResponse) Unmarshal(dAtA []byte) error
func (*QueryAprResponse) XXX_DiscardUnknown ¶ added in v0.17.0
func (m *QueryAprResponse) XXX_DiscardUnknown()
func (*QueryAprResponse) XXX_Marshal ¶ added in v0.17.0
func (m *QueryAprResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAprResponse) XXX_Merge ¶ added in v0.17.0
func (m *QueryAprResponse) XXX_Merge(src proto.Message)
func (*QueryAprResponse) XXX_Size ¶ added in v0.17.0
func (m *QueryAprResponse) XXX_Size() int
func (*QueryAprResponse) XXX_Unmarshal ¶ added in v0.17.0
func (m *QueryAprResponse) XXX_Unmarshal(b []byte) error
type QueryAprsRequest ¶ added in v0.29.31
type QueryAprsRequest struct { }
func (*QueryAprsRequest) Descriptor ¶ added in v0.29.31
func (*QueryAprsRequest) Descriptor() ([]byte, []int)
func (*QueryAprsRequest) Marshal ¶ added in v0.29.31
func (m *QueryAprsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAprsRequest) MarshalTo ¶ added in v0.29.31
func (m *QueryAprsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAprsRequest) MarshalToSizedBuffer ¶ added in v0.29.31
func (m *QueryAprsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAprsRequest) ProtoMessage ¶ added in v0.29.31
func (*QueryAprsRequest) ProtoMessage()
func (*QueryAprsRequest) Reset ¶ added in v0.29.31
func (m *QueryAprsRequest) Reset()
func (*QueryAprsRequest) Size ¶ added in v0.29.31
func (m *QueryAprsRequest) Size() (n int)
func (*QueryAprsRequest) String ¶ added in v0.29.31
func (m *QueryAprsRequest) String() string
func (*QueryAprsRequest) Unmarshal ¶ added in v0.29.31
func (m *QueryAprsRequest) Unmarshal(dAtA []byte) error
func (*QueryAprsRequest) XXX_DiscardUnknown ¶ added in v0.29.31
func (m *QueryAprsRequest) XXX_DiscardUnknown()
func (*QueryAprsRequest) XXX_Marshal ¶ added in v0.29.31
func (m *QueryAprsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAprsRequest) XXX_Merge ¶ added in v0.29.31
func (m *QueryAprsRequest) XXX_Merge(src proto.Message)
func (*QueryAprsRequest) XXX_Size ¶ added in v0.29.31
func (m *QueryAprsRequest) XXX_Size() int
func (*QueryAprsRequest) XXX_Unmarshal ¶ added in v0.29.31
func (m *QueryAprsRequest) XXX_Unmarshal(b []byte) error
type QueryAprsResponse ¶ added in v0.29.31
type QueryAprsResponse struct { UsdcAprUsdc github_com_cosmos_cosmos_sdk_types.Int `` /* 136-byte string literal not displayed */ EdenAprUsdc github_com_cosmos_cosmos_sdk_types.Int `` /* 136-byte string literal not displayed */ UsdcAprEdenb github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */ EdenAprEdenb github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */ UsdcAprEden github_com_cosmos_cosmos_sdk_types.Int `` /* 136-byte string literal not displayed */ EdenAprEden github_com_cosmos_cosmos_sdk_types.Int `` /* 136-byte string literal not displayed */ EdenbAprEden github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */ UsdcAprElys github_com_cosmos_cosmos_sdk_types.Int `` /* 136-byte string literal not displayed */ EdenAprElys github_com_cosmos_cosmos_sdk_types.Int `` /* 136-byte string literal not displayed */ EdenbAprElys github_com_cosmos_cosmos_sdk_types.Int `` /* 140-byte string literal not displayed */ }
func (*QueryAprsResponse) Descriptor ¶ added in v0.29.31
func (*QueryAprsResponse) Descriptor() ([]byte, []int)
func (*QueryAprsResponse) Marshal ¶ added in v0.29.31
func (m *QueryAprsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAprsResponse) MarshalTo ¶ added in v0.29.31
func (m *QueryAprsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAprsResponse) MarshalToSizedBuffer ¶ added in v0.29.31
func (m *QueryAprsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAprsResponse) ProtoMessage ¶ added in v0.29.31
func (*QueryAprsResponse) ProtoMessage()
func (*QueryAprsResponse) Reset ¶ added in v0.29.31
func (m *QueryAprsResponse) Reset()
func (*QueryAprsResponse) Size ¶ added in v0.29.31
func (m *QueryAprsResponse) Size() (n int)
func (*QueryAprsResponse) String ¶ added in v0.29.31
func (m *QueryAprsResponse) String() string
func (*QueryAprsResponse) Unmarshal ¶ added in v0.29.31
func (m *QueryAprsResponse) Unmarshal(dAtA []byte) error
func (*QueryAprsResponse) XXX_DiscardUnknown ¶ added in v0.29.31
func (m *QueryAprsResponse) XXX_DiscardUnknown()
func (*QueryAprsResponse) XXX_Marshal ¶ added in v0.29.31
func (m *QueryAprsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAprsResponse) XXX_Merge ¶ added in v0.29.31
func (m *QueryAprsResponse) XXX_Merge(src proto.Message)
func (*QueryAprsResponse) XXX_Size ¶ added in v0.29.31
func (m *QueryAprsResponse) XXX_Size() int
func (*QueryAprsResponse) XXX_Unmarshal ¶ added in v0.29.31
func (m *QueryAprsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Calculate APR Apr(ctx context.Context, in *QueryAprRequest, opts ...grpc.CallOption) (*QueryAprResponse, error) // Calculate APRs Aprs(ctx context.Context, in *QueryAprsRequest, opts ...grpc.CallOption) (*QueryAprsResponse, error) // Queries PoolReward items PoolRewards(ctx context.Context, in *QueryPoolRewardsRequest, opts ...grpc.CallOption) (*QueryPoolRewardsResponse, 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 QueryPoolRewardsRequest ¶ added in v0.29.27
type QueryPoolRewardsRequest struct { PoolIds []uint64 `protobuf:"varint,1,rep,packed,name=pool_ids,json=poolIds,proto3" json:"pool_ids,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryPoolRewardsRequest) Descriptor ¶ added in v0.29.27
func (*QueryPoolRewardsRequest) Descriptor() ([]byte, []int)
func (*QueryPoolRewardsRequest) GetPagination ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) GetPagination() *query.PageRequest
func (*QueryPoolRewardsRequest) GetPoolIds ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) GetPoolIds() []uint64
func (*QueryPoolRewardsRequest) Marshal ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPoolRewardsRequest) MarshalTo ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPoolRewardsRequest) MarshalToSizedBuffer ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolRewardsRequest) ProtoMessage ¶ added in v0.29.27
func (*QueryPoolRewardsRequest) ProtoMessage()
func (*QueryPoolRewardsRequest) Reset ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) Reset()
func (*QueryPoolRewardsRequest) Size ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) Size() (n int)
func (*QueryPoolRewardsRequest) String ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) String() string
func (*QueryPoolRewardsRequest) Unmarshal ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) Unmarshal(dAtA []byte) error
func (*QueryPoolRewardsRequest) XXX_DiscardUnknown ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) XXX_DiscardUnknown()
func (*QueryPoolRewardsRequest) XXX_Marshal ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolRewardsRequest) XXX_Merge ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) XXX_Merge(src proto.Message)
func (*QueryPoolRewardsRequest) XXX_Size ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) XXX_Size() int
func (*QueryPoolRewardsRequest) XXX_Unmarshal ¶ added in v0.29.27
func (m *QueryPoolRewardsRequest) XXX_Unmarshal(b []byte) error
type QueryPoolRewardsResponse ¶ added in v0.29.27
type QueryPoolRewardsResponse struct {
Pools []PoolRewards `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools"`
}
func (*QueryPoolRewardsResponse) Descriptor ¶ added in v0.29.27
func (*QueryPoolRewardsResponse) Descriptor() ([]byte, []int)
func (*QueryPoolRewardsResponse) GetPools ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) GetPools() []PoolRewards
func (*QueryPoolRewardsResponse) Marshal ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPoolRewardsResponse) MarshalTo ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPoolRewardsResponse) MarshalToSizedBuffer ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolRewardsResponse) ProtoMessage ¶ added in v0.29.27
func (*QueryPoolRewardsResponse) ProtoMessage()
func (*QueryPoolRewardsResponse) Reset ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) Reset()
func (*QueryPoolRewardsResponse) Size ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) Size() (n int)
func (*QueryPoolRewardsResponse) String ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) String() string
func (*QueryPoolRewardsResponse) Unmarshal ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) Unmarshal(dAtA []byte) error
func (*QueryPoolRewardsResponse) XXX_DiscardUnknown ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) XXX_DiscardUnknown()
func (*QueryPoolRewardsResponse) XXX_Marshal ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolRewardsResponse) XXX_Merge ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) XXX_Merge(src proto.Message)
func (*QueryPoolRewardsResponse) XXX_Size ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) XXX_Size() int
func (*QueryPoolRewardsResponse) XXX_Unmarshal ¶ added in v0.29.27
func (m *QueryPoolRewardsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Calculate APR Apr(context.Context, *QueryAprRequest) (*QueryAprResponse, error) // Calculate APRs Aprs(context.Context, *QueryAprsRequest) (*QueryAprsResponse, error) // Queries PoolReward items PoolRewards(context.Context, *QueryPoolRewardsRequest) (*QueryPoolRewardsResponse, error) }
QueryServer is the server API for Query service.
type StableStakeKeeper ¶ added in v0.17.0
type StableStakeKeeper interface { GetParams(ctx sdk.Context) (params stabletypes.Params) BorrowRatio(goCtx context.Context, req *stabletypes.QueryBorrowRatioRequest) (*stabletypes.QueryBorrowRatioResponse, error) TVL(ctx sdk.Context, oracleKeeper stabletypes.OracleKeeper, baseCurrency string) math.LegacyDec }
StableStakeKeeper defines the expected StableStake keeper used for simulations (noalias)
type StakingKeeper ¶
type StakingKeeper interface { TotalBondedTokens(sdk.Context) math.Int // total bonded tokens within the validator set // iterate through all delegations from one delegator by validator-AccAddress, // execute func for each validator IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress, fn func(index int64, delegation stakingtypes.DelegationI) (stop bool)) // get a particular validator by operator address Validator(sdk.Context, sdk.ValAddress) stakingtypes.ValidatorI // GetDelegatorDelegations returns a given amount of all the delegations from a delegator. GetDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) (delegations []stakingtypes.Delegation) // get a particular validator by consensus address ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) stakingtypes.ValidatorI // Delegation allows for getting a particular delegation for a given validator // and delegator outside the scope of the staking module. Delegation(sdk.Context, sdk.AccAddress, sdk.ValAddress) stakingtypes.DelegationI }
Staking keeper
type TokenomicsKeeper ¶ added in v0.18.0
type TokenomicsKeeper interface {
GetAllTimeBasedInflation(ctx sdk.Context) (list []tokenomictypes.TimeBasedInflation)
}
TokenomicsKeeper defines the expected tokenomics keeper used for simulations (noalias)
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Apr ¶ added in v0.27.0
func (*UnimplementedQueryServer) Apr(ctx context.Context, req *QueryAprRequest) (*QueryAprResponse, error)
func (*UnimplementedQueryServer) Aprs ¶ added in v0.29.31
func (*UnimplementedQueryServer) Aprs(ctx context.Context, req *QueryAprsRequest) (*QueryAprsResponse, error)
func (*UnimplementedQueryServer) PoolRewards ¶ added in v0.29.27
func (*UnimplementedQueryServer) PoolRewards(ctx context.Context, req *QueryPoolRewardsRequest) (*QueryPoolRewardsResponse, error)