Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) AccountAssets(goCtx context.Context, req *types.QueryAccountAssetsRequest) (*types.QueryAccountAssetsResponse, error)
- func (k Keeper) AccountDelegationUnbondings(goCtx context.Context, req *types.QueryAccountDelegationUnbondingsRequest) (*types.QueryAccountDelegationUnbondingsResponse, error)
- func (k Keeper) AccountFundedList(goCtx context.Context, req *types.QueryAccountFundedListRequest) (*types.QueryAccountFundedListResponse, error)
- func (k Keeper) AccountRedelegation(goCtx context.Context, req *types.QueryAccountRedelegationRequest) (*types.QueryAccountRedelegationResponse, error)
- func (k Keeper) CanPropose(c context.Context, req *types.QueryCanProposeRequest) (*types.QueryCanProposeResponse, error)
- func (k Keeper) CanValidate(c context.Context, req *types.QueryCanValidateRequest) (*types.QueryCanValidateResponse, error)
- func (k Keeper) CanVote(c context.Context, req *types.QueryCanVoteRequest) (*types.QueryCanVoteResponse, error)
- func (k Keeper) CurrentVoteStatus(c context.Context, req *types.QueryCurrentVoteStatusRequest) (*types.QueryCurrentVoteStatusResponse, error)
- func (k Keeper) Delegator(goCtx context.Context, req *types.QueryDelegatorRequest) (*types.QueryDelegatorResponse, error)
- func (k Keeper) DelegatorsByStaker(goCtx context.Context, req *types.QueryDelegatorsByStakerRequest) (*types.QueryDelegatorsByStakerResponse, error)
- func (k Keeper) FinalizedBundleQuery(c context.Context, req *types.QueryFinalizedBundleRequest) (*types.FinalizedBundle, error)
- func (k Keeper) FinalizedBundlesQuery(c context.Context, req *types.QueryFinalizedBundlesRequest) (*types.QueryFinalizedBundlesResponse, error)
- func (k Keeper) GetFullStaker(ctx sdk.Context, stakerAddress string) *types.FullStaker
- func (k Keeper) GetPoolStatus(ctx sdk.Context, pool *pooltypes.Pool) pooltypes.PoolStatus
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Pool(c context.Context, req *types.QueryPoolRequest) (*types.QueryPoolResponse, error)
- func (k Keeper) Pools(c context.Context, req *types.QueryPoolsRequest) (*types.QueryPoolsResponse, error)
- func (k Keeper) Staker(c context.Context, req *types.QueryStakerRequest) (*types.QueryStakerResponse, error)
- func (k Keeper) Stakers(c context.Context, req *types.QueryStakersRequest) (*types.QueryStakersResponse, error)
- func (k Keeper) StakersByDelegator(goCtx context.Context, req *types.QueryStakersByDelegatorRequest) (*types.QueryStakersByDelegatorResponse, error)
- func (k Keeper) StakersByPool(c context.Context, req *types.QueryStakersByPoolRequest) (*types.QueryStakersByPoolResponse, error)
- func (k Keeper) StakersByPoolCount(c context.Context, req *types.QueryStakersByPoolCountRequest) (*types.QueryStakersByPoolCountResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, accountKeeper authkeeper.AccountKeeper, bankKeeper bankkeeper.Keeper, distrkeeper distrkeeper.Keeper, poolKeeper poolkeeper.Keeper, stakerKeeper stakerskeeper.Keeper, delegationKeeper delegationkeeper.Keeper, bundleKeeper bundlekeeper.Keeper, globalKeeper globalKeeper.Keeper, govKeeper govkeeper.Keeper, teamKeeper teamKeeper.Keeper, ) *Keeper
func (Keeper) AccountAssets ¶
func (k Keeper) AccountAssets(goCtx context.Context, req *types.QueryAccountAssetsRequest) (*types.QueryAccountAssetsResponse, error)
AccountAssets returns an overview of the balances of the given user regarding the protocol nodes This includes the current balance, funding, staking, and delegation.
func (Keeper) AccountDelegationUnbondings ¶
func (k Keeper) AccountDelegationUnbondings(goCtx context.Context, req *types.QueryAccountDelegationUnbondingsRequest) (*types.QueryAccountDelegationUnbondingsResponse, error)
func (Keeper) AccountFundedList ¶
func (k Keeper) AccountFundedList(goCtx context.Context, req *types.QueryAccountFundedListRequest) (*types.QueryAccountFundedListResponse, error)
func (Keeper) AccountRedelegation ¶
func (k Keeper) AccountRedelegation(goCtx context.Context, req *types.QueryAccountRedelegationRequest) (*types.QueryAccountRedelegationResponse, error)
func (Keeper) CanPropose ¶
func (k Keeper) CanPropose(c context.Context, req *types.QueryCanProposeRequest) (*types.QueryCanProposeResponse, error)
func (Keeper) CanValidate ¶
func (k Keeper) CanValidate(c context.Context, req *types.QueryCanValidateRequest) (*types.QueryCanValidateResponse, error)
func (Keeper) CanVote ¶
func (k Keeper) CanVote(c context.Context, req *types.QueryCanVoteRequest) (*types.QueryCanVoteResponse, error)
func (Keeper) CurrentVoteStatus ¶
func (k Keeper) CurrentVoteStatus(c context.Context, req *types.QueryCurrentVoteStatusRequest) (*types.QueryCurrentVoteStatusResponse, error)
func (Keeper) Delegator ¶
func (k Keeper) Delegator(goCtx context.Context, req *types.QueryDelegatorRequest) (*types.QueryDelegatorResponse, error)
The Delegator query returns the outstanding rewards and the total delegation amount of a delegator for its staker. If the delegator is not a staker both amounts will be zero. The request does not error.
func (Keeper) DelegatorsByStaker ¶
func (k Keeper) DelegatorsByStaker(goCtx context.Context, req *types.QueryDelegatorsByStakerRequest) (*types.QueryDelegatorsByStakerResponse, error)
func (Keeper) FinalizedBundleQuery ¶ added in v1.2.3
func (k Keeper) FinalizedBundleQuery(c context.Context, req *types.QueryFinalizedBundleRequest) (*types.FinalizedBundle, error)
func (Keeper) FinalizedBundlesQuery ¶ added in v1.2.3
func (k Keeper) FinalizedBundlesQuery(c context.Context, req *types.QueryFinalizedBundlesRequest) (*types.QueryFinalizedBundlesResponse, error)
func (Keeper) GetFullStaker ¶
func (Keeper) GetPoolStatus ¶
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) Pool ¶
func (k Keeper) Pool(c context.Context, req *types.QueryPoolRequest) (*types.QueryPoolResponse, error)
func (Keeper) Pools ¶
func (k Keeper) Pools(c context.Context, req *types.QueryPoolsRequest) (*types.QueryPoolsResponse, error)
func (Keeper) Staker ¶
func (k Keeper) Staker(c context.Context, req *types.QueryStakerRequest) (*types.QueryStakerResponse, error)
func (Keeper) Stakers ¶
func (k Keeper) Stakers(c context.Context, req *types.QueryStakersRequest) (*types.QueryStakersResponse, error)
func (Keeper) StakersByDelegator ¶
func (k Keeper) StakersByDelegator(goCtx context.Context, req *types.QueryStakersByDelegatorRequest) (*types.QueryStakersByDelegatorResponse, error)
func (Keeper) StakersByPool ¶
func (k Keeper) StakersByPool(c context.Context, req *types.QueryStakersByPoolRequest) (*types.QueryStakersByPoolResponse, error)
func (Keeper) StakersByPoolCount ¶
func (k Keeper) StakersByPoolCount(c context.Context, req *types.QueryStakersByPoolCountRequest) (*types.QueryStakersByPoolCountResponse, error)
Source Files ¶
- grpc_account_assets.go
- grpc_account_delegation_unbondings.go
- grpc_account_funded.go
- grpc_account_redelegation.go
- grpc_current_vote_status.go
- grpc_delegation_delegator.go
- grpc_delegation_delegators_by_staker.go
- grpc_delegation_stakers_by_delegator.go
- grpc_params.go
- grpc_query.go
- grpc_query_can_propose.go
- grpc_query_can_validate.go
- grpc_query_can_vote.go
- grpc_query_finalized_bundles.go
- grpc_query_pool.go
- grpc_query_staker.go
- grpc_query_stakers_by_pool.go
- grpc_query_stakers_by_pool_count.go
- helper.go
- keeper.go
Click to show internal directories.
Click to hide internal directories.