keeper

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeService store.KVStoreService,

	bankKeeper types.BankKeeper,
	accountKeeper types.AccountKeeper,
) *Keeper

func (*Keeper) ApplyL1Txs

func (k *Keeper) ApplyL1Txs(goCtx context.Context, msg *types.MsgApplyL1Txs) (*types.MsgApplyL1TxsResponse, error)

ApplyL1Txs implements types.MsgServer.

func (*Keeper) EmitEvents

func (k *Keeper) EmitEvents(goCtx context.Context, events sdk.Events)

EmitEvents prepares a `message` event with the module name and emits it along with the provided events.

func (*Keeper) ExportGenesis added in v0.1.3

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

ExportGenesis returns a GenesisState for a given context and keeper

func (*Keeper) GetL1BlockInfo added in v0.1.2

func (k *Keeper) GetL1BlockInfo(ctx sdk.Context) (*types.L1BlockInfo, error)

func (*Keeper) GetParams added in v0.1.3

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

func (*Keeper) InitGenesis added in v0.1.3

func (k *Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)

InitGenesis - Init store state from genesis data

func (*Keeper) InitiateFeeWithdrawal added in v0.1.3

func (*Keeper) InitiateWithdrawal

func (k *Keeper) InitiateWithdrawal(
	goCtx context.Context,
	msg *types.MsgInitiateWithdrawal,
) (*types.MsgInitiateWithdrawalResponse, error)

func (*Keeper) L1BlockInfo added in v0.1.3

L1BlockInfo implements the Query/L1BlockInfo gRPC method

func (*Keeper) Params added in v0.1.3

Params implements the Query/Params gRPC method

func (*Keeper) SetL1BlockInfo added in v0.1.3

func (k *Keeper) SetL1BlockInfo(ctx sdk.Context, info types.L1BlockInfo) error

SetL1BlockInfo sets the derived L1 block info in the rollup store.

Persisted data conforms to optimism specs on L1 attributes: https://github.com/ethereum-optimism/optimism/blob/develop/specs/deposits.md#l1-attributes-predeployed-contract

func (*Keeper) SetParams added in v0.1.3

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

Jump to

Keyboard shortcuts

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