keeper

package
v0.0.1-testnet-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 22 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 {
	Params      collections.Item[types.Params]
	Pubkey      collections.Item[relayertypes.PublicKey]
	BlockTip    collections.Sequence
	BlockHashes collections.Map[uint64, []byte]
	Deposited   collections.Map[collections.Pair[[]byte, uint32], uint64]
	EthTxNonce  collections.Sequence
	Withdrawals collections.Map[uint64, types.Withdrawal]
	// processing withdrawal(a pair of txid and withdrawal id list)
	Processing collections.Map[[]byte, types.WithdrawalIds]
	EthTxQueue collections.Item[types.EthTxQueue]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	addressCodec address.Codec,
	storeService store.KVStoreService,
	logger log.Logger,
	relayerKeeper types.RelayerKeeper,
) Keeper

func (Keeper) DequeueBitcoinModuleTx

func (k Keeper) DequeueBitcoinModuleTx(ctx context.Context) (txs []*ethtypes.Transaction, err error)

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) MustHasKey

func (k Keeper) MustHasKey(ctx context.Context, pubkey *relayertypes.PublicKey)

MustHasKey is for genesis check

func (Keeper) NewPubkey

func (k Keeper) NewPubkey(ctx context.Context, pubkey *relayertypes.PublicKey) error

func (Keeper) ProcessBridgeRequest

func (k Keeper) ProcessBridgeRequest(ctx context.Context, reqs goattypes.BridgeRequests) error

func (Keeper) VerifyDeposit

func (k Keeper) VerifyDeposit(ctx context.Context, headers map[uint64][]byte, deposit *types.Deposit) (*types.DepositExecReceipt, error)

Jump to

Keyboard shortcuts

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