Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddSelectedRValidator(ctx sdk.Context, rValidator *types.RValidator)
- func (k Keeper) CycleSeconds(goCtx context.Context, req *types.QueryCycleSecondsRequest) (*types.QueryCycleSecondsResponse, error)
- func (k Keeper) GetAllCycleSeconds(ctx sdk.Context) []*types.CycleSeconds
- func (k Keeper) GetAllDealingRvalidators(ctx sdk.Context) []*types.DealingRValidator
- func (k Keeper) GetAllLatestDealedCycle(ctx sdk.Context) []*types.Cycle
- func (k Keeper) GetAllLatestVotedCycle(ctx sdk.Context) []*types.Cycle
- func (k Keeper) GetAllShuffleSeconds(ctx sdk.Context) []*types.ShuffleSeconds
- func (k Keeper) GetCycleSeconds(ctx sdk.Context, denom string) *types.CycleSeconds
- func (k Keeper) GetDealingRValidator(ctx sdk.Context, denom, poolAddress string) (*types.DealingRValidator, bool)
- func (k Keeper) GetLatestDealedCycle(ctx sdk.Context, denom, poolAddress string) *types.Cycle
- func (k Keeper) GetLatestVotedCycle(ctx sdk.Context, denom, poolAddress string) *types.Cycle
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetSelectedRValidatorList(ctx sdk.Context) []*types.RValidator
- func (k Keeper) GetSelectedRValidatorListByDenomPoolAddress(ctx sdk.Context, denom, poolAddress string) []*types.RValidator
- func (k Keeper) GetShuffleSeconds(ctx sdk.Context, denom string) *types.ShuffleSeconds
- func (k Keeper) HasSelectedRValidator(ctx sdk.Context, rValidator *types.RValidator) bool
- func (k Keeper) LatestDealedCycle(goCtx context.Context, req *types.QueryLatestDealedCycleRequest) (*types.QueryLatestDealedCycleResponse, error)
- func (k Keeper) LatestVotedCycle(goCtx context.Context, req *types.QueryLatestVotedCycleRequest) (*types.QueryLatestVotedCycleResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ProcessUpdateRValidatorProposal(ctx sdk.Context, p *types.UpdateRValidatorProposal) error
- func (k Keeper) ProcessUpdateRValidatorReportProposal(ctx sdk.Context, p *types.UpdateRValidatorReportProposal) error
- func (k Keeper) RValidatorList(goCtx context.Context, req *types.QueryRValidatorListRequest) (*types.QueryRValidatorListResponse, error)
- func (k Keeper) RemoveDealingRValidator(ctx sdk.Context, denom, poolAddress string)
- func (k Keeper) RemoveSelectedRValidator(ctx sdk.Context, rValidator *types.RValidator)
- func (k Keeper) SetCycleSeconds(ctx sdk.Context, cycleSeconds *types.CycleSeconds)
- func (k Keeper) SetDealingRValidator(ctx sdk.Context, rValidator *types.DealingRValidator)
- func (k Keeper) SetLatestDealedCycle(ctx sdk.Context, cycle *types.Cycle)
- func (k Keeper) SetLatestVotedCycle(ctx sdk.Context, cycle *types.Cycle)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetShuffleSeconds(ctx sdk.Context, shuffleSeconds *types.ShuffleSeconds)
- func (k Keeper) ShuffleSeconds(goCtx context.Context, req *types.QueryShuffleSecondsRequest) (*types.QueryShuffleSecondsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct { RBankKeeper types.RBankKeeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, sudoKeeper types.SudoKeeper, rBankKeeper types.RBankKeeper, ledgerKeeper types.LedgerKeeper, ) *Keeper
func (Keeper) AddSelectedRValidator ¶
func (k Keeper) AddSelectedRValidator(ctx sdk.Context, rValidator *types.RValidator)
func (Keeper) CycleSeconds ¶
func (k Keeper) CycleSeconds(goCtx context.Context, req *types.QueryCycleSecondsRequest) (*types.QueryCycleSecondsResponse, error)
func (Keeper) GetAllCycleSeconds ¶
func (k Keeper) GetAllCycleSeconds(ctx sdk.Context) []*types.CycleSeconds
func (Keeper) GetAllDealingRvalidators ¶
func (k Keeper) GetAllDealingRvalidators(ctx sdk.Context) []*types.DealingRValidator
func (Keeper) GetAllLatestDealedCycle ¶
func (Keeper) GetAllLatestVotedCycle ¶
func (Keeper) GetAllShuffleSeconds ¶
func (k Keeper) GetAllShuffleSeconds(ctx sdk.Context) []*types.ShuffleSeconds
func (Keeper) GetCycleSeconds ¶
func (Keeper) GetDealingRValidator ¶
func (Keeper) GetLatestDealedCycle ¶
func (Keeper) GetLatestVotedCycle ¶
func (Keeper) GetSelectedRValidatorList ¶
func (k Keeper) GetSelectedRValidatorList(ctx sdk.Context) []*types.RValidator
func (Keeper) GetSelectedRValidatorListByDenomPoolAddress ¶
func (Keeper) GetShuffleSeconds ¶
func (Keeper) HasSelectedRValidator ¶
func (Keeper) LatestDealedCycle ¶
func (k Keeper) LatestDealedCycle(goCtx context.Context, req *types.QueryLatestDealedCycleRequest) (*types.QueryLatestDealedCycleResponse, error)
func (Keeper) LatestVotedCycle ¶
func (k Keeper) LatestVotedCycle(goCtx context.Context, req *types.QueryLatestVotedCycleRequest) (*types.QueryLatestVotedCycleResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ProcessUpdateRValidatorProposal ¶
func (k Keeper) ProcessUpdateRValidatorProposal(ctx sdk.Context, p *types.UpdateRValidatorProposal) error
old val must exist && new val may exist or not exist in selectedRValidator pool will redelegate all delegation from old to new val
func (Keeper) ProcessUpdateRValidatorReportProposal ¶
func (Keeper) RValidatorList ¶
func (k Keeper) RValidatorList(goCtx context.Context, req *types.QueryRValidatorListRequest) (*types.QueryRValidatorListResponse, error)
func (Keeper) RemoveDealingRValidator ¶
func (Keeper) RemoveSelectedRValidator ¶
func (k Keeper) RemoveSelectedRValidator(ctx sdk.Context, rValidator *types.RValidator)
func (Keeper) SetCycleSeconds ¶
func (k Keeper) SetCycleSeconds(ctx sdk.Context, cycleSeconds *types.CycleSeconds)
func (Keeper) SetDealingRValidator ¶
func (k Keeper) SetDealingRValidator(ctx sdk.Context, rValidator *types.DealingRValidator)
func (Keeper) SetLatestDealedCycle ¶
func (Keeper) SetLatestVotedCycle ¶
func (Keeper) SetShuffleSeconds ¶
func (k Keeper) SetShuffleSeconds(ctx sdk.Context, shuffleSeconds *types.ShuffleSeconds)
func (Keeper) ShuffleSeconds ¶
func (k Keeper) ShuffleSeconds(goCtx context.Context, req *types.QueryShuffleSecondsRequest) (*types.QueryShuffleSecondsResponse, error)
Source Files ¶
- grpc_query.go
- grpc_query_cycle_seconds.go
- grpc_query_latest_dealed_cycle.go
- grpc_query_latest_voted_cycle.go
- grpc_query_params.go
- grpc_query_r_validator_list.go
- grpc_query_shuffle_seconds.go
- keeper.go
- msg_server.go
- msg_server_add_r_validator.go
- msg_server_init_r_validator.go
- msg_server_rm_r_validator.go
- msg_server_set_cycle_seconds.go
- msg_server_set_shuffle_seconds.go
- params.go
- proposal.go
Click to show internal directories.
Click to hide internal directories.