keeper

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	packets.PacketSendKeeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	m codec.Codec,
	storeKey sdk.StoreKey,
	channelKeeper types.ChannelKeeper,
	packetSendKeeper packets.PacketSendKeeper,
	packetMiddleware packets.PacketMiddleware,
	xccResolver xcctypes.XCCResolver,
) Keeper

func (Keeper) ExtSignTx added in v0.2.0

func (k Keeper) ExtSignTx(goCtx context.Context, msg *types.MsgExtSignTx) (*types.MsgExtSignTxResponse, error)

func (Keeper) HandlePacket

func (Keeper) IBCSignTx

func (k Keeper) IBCSignTx(goCtx context.Context, msg *types.MsgIBCSignTx) (*types.MsgIBCSignTxResponse, error)

IBCSignTx defines a rpc handler method for MsgIBCSignTx.

func (Keeper) InitAuthState

func (k Keeper) InitAuthState(ctx sdk.Context, txID crosstypes.TxID, signers []authtypes.Account) error

InitAuthState implements the TxAuthenticator interface

func (Keeper) IsCompletedAuth

func (k Keeper) IsCompletedAuth(ctx sdk.Context, txID crosstypes.TxID) (bool, error)

IsCompletedAuth implements the TxAuthenticator interface

func (Keeper) Logger

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

Logger returns a logger instance

func (Keeper) ReceiveIBCSignTx

func (k Keeper) ReceiveIBCSignTx(
	ctx sdk.Context,
	destPort,
	destChannel string,
	data types.PacketDataIBCSignTx,
) (completed bool, err error)

ReceiveIBCSignTx receives PacketDataIBCSignTx to verify the transaction If all required signs are completed, run the transaction

func (Keeper) SendIBCSignTx

func (k Keeper) SendIBCSignTx(
	ctx sdk.Context,
	packetSender packets.PacketSender,
	xcc xcctypes.XCC,
	txID crosstypes.TxID,
	signers []authtypes.AccountID,
	timeoutHeight clienttypes.Height,
	timeoutTimestamp uint64,
) error

SendIBCSign sends PacketDataIBCSignTx

func (*Keeper) SetTxManager

func (k *Keeper) SetTxManager(txm types.TxManager)

SetTxManager sets the keeper to txManager

func (Keeper) Sign

func (k Keeper) Sign(ctx sdk.Context, txID crosstypes.TxID, signers []authtypes.Account) (bool, error)

Sign implements the TxAuthenticator interface

func (Keeper) SignTx

func (k Keeper) SignTx(goCtx context.Context, msg *types.MsgSignTx) (*types.MsgSignTxResponse, error)

SignTx defines a rpc handler method for MsgSignTx.

Jump to

Keyboard shortcuts

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