keeper

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 33 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.

func NewQueryServerImpl

func NewQueryServerImpl(k Keeper) types.QueryServer

NewQueryServerImpl returns an implementation of the QueryServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	Schema     collections.Schema
	Params     collections.Item[types.Params]
	BeaconRoot collections.Item[[]byte] // the cometbft blockhash
	Block      collections.Item[types.ExecutionPayload]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	addressCodec address.Codec,
	storeService store.KVStoreService,
	logger log.Logger,

	bitcoinKeeper types.BitcoinKeeper,
	lockingKeeper types.LockingKeeper,
	relayerKeeper types.RelayerKeeper,
	accountKeeper types.AccountKeeper,
	engineClient ethrpc.EngineClient,
) Keeper

func (Keeper) Dequeue

func (k Keeper) Dequeue(ctx context.Context) ([][]byte, error)

func (Keeper) Finalized

func (k Keeper) Finalized(ctx context.Context) error

Finalized notifies goat-geth to update fork choice state if there are any errors, the FinalizeBlock phase will be failed we don't use timeout here, validators are responsible for a reliable node

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) PrepareProposalHandler

func (k Keeper) PrepareProposalHandler(
	txpool mempool.Mempool,
	txVerifier baseapp.ProposalTxVerifier,
	keyProvider cryptotypes.PrivKey,
	txConfig client.TxConfig,
) sdk.PrepareProposalHandler

func (Keeper) ProcessProposalHandler

func (k Keeper) ProcessProposalHandler(txVerifier baseapp.ProposalTxVerifier) sdk.ProcessProposalHandler

func (Keeper) VerifyDequeue

func (k Keeper) VerifyDequeue(ctx context.Context, txRoot []byte, txs [][]byte) error

VerifyDequeue verifies if the goat transactions of the new eth block are consistent with expected here

Jump to

Keyboard shortcuts

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