Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddSelectedZValidator(ctx sdk.Context, zValidator *types.ZValidator)
- 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) GetAllDealingZvalidators(ctx sdk.Context) []*types.DealingZValidator
- 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) GetDealingZValidator(ctx sdk.Context, denom, poolAddress string) (*types.DealingZValidator, 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) GetSelectedZValidatorList(ctx sdk.Context) []*types.ZValidator
- func (k Keeper) GetSelectedZValidatorListByDenomPoolAddress(ctx sdk.Context, denom, poolAddress string) []*types.ZValidator
- func (k Keeper) GetShuffleSeconds(ctx sdk.Context, denom string) *types.ShuffleSeconds
- func (k Keeper) HasSelectedZValidator(ctx sdk.Context, zValidator *types.ZValidator) 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) ProcessUpdateZValidatorProposal(ctx sdk.Context, p *types.UpdateZValidatorProposal) error
- func (k Keeper) ProcessUpdateZValidatorReportProposal(ctx sdk.Context, p *types.UpdateZValidatorReportProposal) error
- func (k Keeper) RemoveDealingZValidator(ctx sdk.Context, denom, poolAddress string)
- func (k Keeper) RemoveSelectedZValidator(ctx sdk.Context, zValidator *types.ZValidator)
- func (k Keeper) SetCycleSeconds(ctx sdk.Context, cycleSeconds *types.CycleSeconds)
- func (k Keeper) SetDealingZValidator(ctx sdk.Context, zValidator *types.DealingZValidator)
- 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)
- func (k Keeper) ZValidatorList(goCtx context.Context, req *types.QueryZValidatorListRequest) (*types.QueryZValidatorListResponse, 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 { ZBankKeeper types.ZBankKeeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, sudoKeeper types.SudoKeeper, zBankKeeper types.ZBankKeeper, ledgerKeeper types.LedgerKeeper, ) *Keeper
func (Keeper) AddSelectedZValidator ¶
func (k Keeper) AddSelectedZValidator(ctx sdk.Context, zValidator *types.ZValidator)
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) GetAllDealingZvalidators ¶
func (k Keeper) GetAllDealingZvalidators(ctx sdk.Context) []*types.DealingZValidator
func (Keeper) GetAllLatestDealedCycle ¶
func (Keeper) GetAllLatestVotedCycle ¶
func (Keeper) GetAllShuffleSeconds ¶
func (k Keeper) GetAllShuffleSeconds(ctx sdk.Context) []*types.ShuffleSeconds
func (Keeper) GetCycleSeconds ¶
func (Keeper) GetDealingZValidator ¶
func (Keeper) GetLatestDealedCycle ¶
func (Keeper) GetLatestVotedCycle ¶
func (Keeper) GetSelectedZValidatorList ¶
func (k Keeper) GetSelectedZValidatorList(ctx sdk.Context) []*types.ZValidator
func (Keeper) GetSelectedZValidatorListByDenomPoolAddress ¶
func (Keeper) GetShuffleSeconds ¶
func (Keeper) HasSelectedZValidator ¶
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) ProcessUpdateZValidatorProposal ¶
func (k Keeper) ProcessUpdateZValidatorProposal(ctx sdk.Context, p *types.UpdateZValidatorProposal) error
old val must exist && new val may exist or not exist in selectedZValidator pool will redelegate all delegation from old to new val
func (Keeper) ProcessUpdateZValidatorReportProposal ¶
func (Keeper) RemoveDealingZValidator ¶
func (Keeper) RemoveSelectedZValidator ¶
func (k Keeper) RemoveSelectedZValidator(ctx sdk.Context, zValidator *types.ZValidator)
func (Keeper) SetCycleSeconds ¶
func (k Keeper) SetCycleSeconds(ctx sdk.Context, cycleSeconds *types.CycleSeconds)
func (Keeper) SetDealingZValidator ¶
func (k Keeper) SetDealingZValidator(ctx sdk.Context, zValidator *types.DealingZValidator)
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)
func (Keeper) ZValidatorList ¶
func (k Keeper) ZValidatorList(goCtx context.Context, req *types.QueryZValidatorListRequest) (*types.QueryZValidatorListResponse, 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.