keeper

package
v1.0.2-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

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,

) *Keeper

func (Keeper) DeployerWhitelist

func (k Keeper) DeployerWhitelist(ctx sdk.Context) (res []types.DeployerParams)

DeployerWhitelist returns the DeployerWhitelist param

func (Keeper) DisputePeriodInBlocks

func (k Keeper) DisputePeriodInBlocks(ctx sdk.Context) (res uint64)

DisputePeriodInBlocks returns the DisputePeriodInBlocks param

func (Keeper) FindStateInfoByHeight

func (k Keeper) FindStateInfoByHeight(ctx sdk.Context, rollappId string, height uint64) (*types.StateInfo, error)

func (Keeper) GetAllBlockHeightToFinalizationQueue

func (k Keeper) GetAllBlockHeightToFinalizationQueue(ctx sdk.Context) (list []types.BlockHeightToFinalizationQueue)

GetAllBlockHeightToFinalizationQueue returns all blockHeightToFinalizationQueue

func (Keeper) GetAllLatestFinalizedStateIndex

func (k Keeper) GetAllLatestFinalizedStateIndex(ctx sdk.Context) (list []types.StateInfoIndex)

GetAllLatestFinalizedStateIndex returns all latestFinalizedStateIndex

func (Keeper) GetAllLatestStateInfoIndex

func (k Keeper) GetAllLatestStateInfoIndex(ctx sdk.Context) (list []types.StateInfoIndex)

GetAllLatestStateInfoIndex returns all latestStateInfoIndex

func (Keeper) GetAllRollapp

func (k Keeper) GetAllRollapp(ctx sdk.Context) (list []types.Rollapp)

GetAllRollapp returns all rollapp

func (Keeper) GetAllStateInfo

func (k Keeper) GetAllStateInfo(ctx sdk.Context) (list []types.StateInfo)

GetAllStateInfo returns all stateInfo

func (Keeper) GetBlockHeightToFinalizationQueue

func (k Keeper) GetBlockHeightToFinalizationQueue(
	ctx sdk.Context,
	finalizationHeight uint64,

) (val types.BlockHeightToFinalizationQueue, found bool)

GetBlockHeightToFinalizationQueue returns a blockHeightToFinalizationQueue from its index

func (*Keeper) GetHooks

func (k *Keeper) GetHooks() types.RollappHooks

func (Keeper) GetLatestFinalizedStateIndex

func (k Keeper) GetLatestFinalizedStateIndex(
	ctx sdk.Context,
	rollappId string,

) (val types.StateInfoIndex, found bool)

GetLatestFinalizedStateIndex returns a latestFinalizedStateIndex from its index

func (Keeper) GetLatestStateInfoIndex

func (k Keeper) GetLatestStateInfoIndex(
	ctx sdk.Context,
	rollappId string,

) (val types.StateInfoIndex, found bool)

GetLatestStateInfoIndex returns a latestStateInfoIndex from its index

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetRollapp

func (k Keeper) GetRollapp(
	ctx sdk.Context,
	rollappId string,

) (val types.Rollapp, found bool)

GetRollapp returns a rollapp from its index

func (Keeper) GetStateInfo

func (k Keeper) GetStateInfo(
	ctx sdk.Context,
	rollappId string,
	index uint64,

) (val types.StateInfo, found bool)

GetStateInfo returns a stateInfo from its index

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Params

func (Keeper) RemoveBlockHeightToFinalizationQueue

func (k Keeper) RemoveBlockHeightToFinalizationQueue(
	ctx sdk.Context,
	finalizationHeight uint64,

)

RemoveBlockHeightToFinalizationQueue removes a blockHeightToFinalizationQueue from the store

func (Keeper) RemoveLatestFinalizedStateIndex

func (k Keeper) RemoveLatestFinalizedStateIndex(
	ctx sdk.Context,
	rollappId string,

)

RemoveLatestFinalizedStateIndex removes a latestFinalizedStateIndex from the store

func (Keeper) RemoveLatestStateInfoIndex

func (k Keeper) RemoveLatestStateInfoIndex(
	ctx sdk.Context,
	rollappId string,

)

RemoveLatestStateInfoIndex removes a latestStateInfoIndex from the store

func (Keeper) RemoveRollapp

func (k Keeper) RemoveRollapp(
	ctx sdk.Context,
	rollappId string,

)

RemoveRollapp removes a rollapp from the store

func (Keeper) RemoveStateInfo

func (k Keeper) RemoveStateInfo(
	ctx sdk.Context,
	rollappId string,
	index uint64,

)

RemoveStateInfo removes a stateInfo from the store

func (Keeper) SetBlockHeightToFinalizationQueue

func (k Keeper) SetBlockHeightToFinalizationQueue(ctx sdk.Context, blockHeightToFinalizationQueue types.BlockHeightToFinalizationQueue)

SetBlockHeightToFinalizationQueue set a specific blockHeightToFinalizationQueue in the store from its index

func (*Keeper) SetHooks

func (k *Keeper) SetHooks(sh types.RollappHooks) *Keeper

Set the rollapp hooks

func (Keeper) SetLatestFinalizedStateIndex

func (k Keeper) SetLatestFinalizedStateIndex(ctx sdk.Context, latestFinalizedStateIndex types.StateInfoIndex)

SetLatestFinalizedStateIndex set a specific latestFinalizedStateIndex in the store from its index

func (Keeper) SetLatestStateInfoIndex

func (k Keeper) SetLatestStateInfoIndex(ctx sdk.Context, latestStateInfoIndex types.StateInfoIndex)

SetLatestStateInfoIndex set a specific latestStateInfoIndex in the store from its index

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetRollapp

func (k Keeper) SetRollapp(ctx sdk.Context, rollapp types.Rollapp)

SetRollapp set a specific rollapp in the store from its index

func (Keeper) SetStateInfo

func (k Keeper) SetStateInfo(ctx sdk.Context, stateInfo types.StateInfo)

SetStateInfo set a specific stateInfo in the store from its index

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL