keeper

package
v0.48.0-ramus1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 19 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 storetypes.StoreKey,
	authority string,
	ak types.AccountKeeper,
	rk types.RollupKeeper,
) Keeper

func (Keeper) CCBatchMaxBytes

func (k Keeper) CCBatchMaxBytes(ctx sdk.Context) uint64

func (Keeper) CCRef

func (Keeper) CCRefs

func (Keeper) CCState

func (Keeper) DecompressCCBatch

func (k Keeper) DecompressCCBatch(ctx sdktypes.Context, origin types.CompressedCCBatch) (*types.CCBatch, error)

func (Keeper) EnqueueL2GasPrepaid

func (k Keeper) EnqueueL2GasPrepaid(ctx sdktypes.Context, tx []byte) uint64

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdktypes.Context) *types.GenesisState

ExportGenesis returns the module's exported genesis

func (Keeper) FraudProofWindow

func (k Keeper) FraudProofWindow(ctx sdk.Context) uint64

func (Keeper) GetAllCCRefs

func (k Keeper) GetAllCCRefs(ctx sdktypes.Context) map[string][]types.CCRef

func (Keeper) GetAllCCStates

func (k Keeper) GetAllCCStates(ctx sdktypes.Context) map[string]types.CCState

func (Keeper) GetAllCCs

func (k Keeper) GetAllCCs(ctx sdktypes.Context) []types.CC

func (Keeper) GetAllL2BatchMaps

func (k Keeper) GetAllL2BatchMaps(ctx sdktypes.Context) map[string][]types.L2BatchMap

func (Keeper) GetAllQueueTxStates

func (k Keeper) GetAllQueueTxStates(ctx sdktypes.Context) map[string]types.QueueTxState

func (Keeper) GetAllQueueTxs

func (k Keeper) GetAllQueueTxs(ctx sdktypes.Context) map[string][]types.L1ToL2Queue

func (Keeper) GetCCRef

func (k Keeper) GetCCRef(ctx sdktypes.Context, rollupName string, idx uint64) (*types.CCRef, error)

func (Keeper) GetCCState

func (k Keeper) GetCCState(ctx sdktypes.Context, rollupName string) (*types.CCState, error)

func (Keeper) GetL2HeightBatchMap

func (k Keeper) GetL2HeightBatchMap(ctx sdktypes.Context, rollupName string, l2height uint64) (uint64, error)

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetQueueTx

func (k Keeper) GetQueueTx(ctx sdktypes.Context, rollupName string, idx uint64) (*types.L1ToL2Queue, error)

func (Keeper) GetQueueTxState

func (k Keeper) GetQueueTxState(ctx sdktypes.Context, rollupName string) (*types.QueueTxState, error)

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdktypes.Context, genState types.GenesisState)

InitGenesis initializes the module's state from a provided genesis state.

func (Keeper) Logger

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

func (Keeper) MaxQueueTxSize

func (k Keeper) MaxQueueTxSize(ctx sdk.Context) uint64

func (Keeper) MinQueueTxGas

func (k Keeper) MinQueueTxGas(ctx sdk.Context) uint64

func (Keeper) Params

Params queries params of da module

func (Keeper) QueueTx

func (Keeper) QueueTxExpirationWindow

func (k Keeper) QueueTxExpirationWindow(ctx sdk.Context) uint64

func (Keeper) QueueTxs

func (Keeper) SCCBatchMaxBytes

func (k Keeper) SCCBatchMaxBytes(ctx sdk.Context) uint64

func (Keeper) SaveCCBatch

func (k Keeper) SaveCCBatch(ctx sdktypes.Context, rollupName string, batch *types.CCBatch) error

func (Keeper) SaveQueueTx

func (k Keeper) SaveQueueTx(ctx sdktypes.Context, rollupName string, tx []byte, gasLimit, L1ToL2GasRatio uint64) error

func (Keeper) SequencerPublishWindow

func (k Keeper) SequencerPublishWindow(ctx sdk.Context) uint64

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) UpdateQueueTxsStatus

func (k Keeper) UpdateQueueTxsStatus(ctx sdktypes.Context) error

Jump to

Keyboard shortcuts

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