Documentation ¶
Index ¶
- func AllInvariants(k Keeper) sdk.Invariant
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
- func SequencersCountInvariant(k Keeper) sdk.Invariant
- func SequencersPerRollappInvariant(k Keeper) sdk.Invariant
- type Keeper
- func (k Keeper) GetAllSequencers(ctx sdk.Context) (list []types.Sequencer)
- func (k Keeper) GetMatureUnbondingSequencers(ctx sdk.Context, endTime time.Time) (list []types.Sequencer)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetSequencer(ctx sdk.Context, sequencerAddress string) (val types.Sequencer, found bool)
- func (k Keeper) GetSequencersByRollapp(ctx sdk.Context, rollappId string) (list []types.Sequencer)
- func (k Keeper) GetSequencersByRollappByStatus(ctx sdk.Context, rollappId string, status types.OperatingStatus) (list []types.Sequencer)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MinBond(ctx sdk.Context) (res sdk.Coin)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RollappHooks() rollapptypes.RollappHooks
- func (k Keeper) RotateProposer(ctx sdk.Context, rollappId string)
- func (k Keeper) Sequencer(c context.Context, req *types.QueryGetSequencerRequest) (*types.QueryGetSequencerResponse, error)
- func (k Keeper) Sequencers(c context.Context, req *types.QuerySequencersRequest) (*types.QuerySequencersResponse, error)
- func (k Keeper) SequencersByRollapp(c context.Context, req *types.QueryGetSequencersByRollappRequest) (*types.QueryGetSequencersByRollappResponse, error)
- func (k Keeper) SequencersByRollappByStatus(c context.Context, req *types.QueryGetSequencersByRollappByStatusRequest) (*types.QueryGetSequencersByRollappByStatusResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetSequencer(ctx sdk.Context, sequencer types.Sequencer)
- func (k Keeper) Slashing(ctx sdk.Context, seqAddr string) error
- func (k Keeper) UnbondAllMatureSequencers(ctx sdk.Context, currTime time.Time)
- func (k Keeper) UnbondingTime(ctx sdk.Context) (res time.Duration)
- func (k Keeper) UpdateSequencer(ctx sdk.Context, sequencer types.Sequencer, oldStatus types.OperatingStatus)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllInvariants ¶ added in v3.1.0
AllInvariants runs all invariants of the x/sequencer module.
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func RegisterInvariants ¶ added in v3.1.0
func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
RegisterInvariants registers the sequencer module invariants
func SequencersCountInvariant ¶ added in v3.1.0
func SequencersPerRollappInvariant ¶ added in v3.1.0
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, bankKeeper types.BankKeeper, rollappKeeper types.RollappKeeper, ) *Keeper
func (Keeper) GetAllSequencers ¶ added in v3.1.0
GetAllSequencers returns all sequencer
func (Keeper) GetMatureUnbondingSequencers ¶ added in v3.1.0
func (k Keeper) GetMatureUnbondingSequencers(ctx sdk.Context, endTime time.Time) (list []types.Sequencer)
GetMatureUnbondingSequencers returns all unbonding sequencers
func (Keeper) GetSequencer ¶
func (k Keeper) GetSequencer(ctx sdk.Context, sequencerAddress string) (val types.Sequencer, found bool)
GetSequencer returns a sequencer from its index
func (Keeper) GetSequencersByRollapp ¶
GetSequencersByRollapp returns a sequencersByRollapp from its index
func (Keeper) GetSequencersByRollappByStatus ¶ added in v3.1.0
func (k Keeper) GetSequencersByRollappByStatus(ctx sdk.Context, rollappId string, status types.OperatingStatus) (list []types.Sequencer)
GetSequencersByRollapp returns a sequencersByRollapp from its index
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RollappHooks ¶
func (k Keeper) RollappHooks() rollapptypes.RollappHooks
Return the wrapper struct.
func (Keeper) RotateProposer ¶ added in v3.1.0
RotateProposer sets the proposer for a rollapp to be the proposer with the greatest bond This function will not clear the current proposer (assumes no proposer is set)
func (Keeper) Sequencer ¶
func (k Keeper) Sequencer(c context.Context, req *types.QueryGetSequencerRequest) (*types.QueryGetSequencerResponse, error)
func (Keeper) Sequencers ¶ added in v3.1.0
func (k Keeper) Sequencers(c context.Context, req *types.QuerySequencersRequest) (*types.QuerySequencersResponse, error)
func (Keeper) SequencersByRollapp ¶
func (k Keeper) SequencersByRollapp(c context.Context, req *types.QueryGetSequencersByRollappRequest) (*types.QueryGetSequencersByRollappResponse, error)
func (Keeper) SequencersByRollappByStatus ¶ added in v3.1.0
func (k Keeper) SequencersByRollappByStatus(c context.Context, req *types.QueryGetSequencersByRollappByStatusRequest) (*types.QueryGetSequencersByRollappByStatusResponse, error)
func (Keeper) SetSequencer ¶
SetSequencer set a specific sequencer in the store from its index
func (Keeper) Slashing ¶ added in v3.1.0
Slashing slashes the sequencer for misbehaviour Slashing can occur on both Bonded and Unbonding sequencers
func (Keeper) UnbondAllMatureSequencers ¶ added in v3.1.0
UnbondAllMatureSequencers unbonds all the mature unbonding sequencers that have finished their unbonding period.
func (Keeper) UnbondingTime ¶ added in v3.1.0
func (Keeper) UpdateSequencer ¶ added in v3.1.0
func (k Keeper) UpdateSequencer(ctx sdk.Context, sequencer types.Sequencer, oldStatus types.OperatingStatus)
Update sequencer status