keeper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeName = "tpc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.Codec,
	cm txtypes.ContractManager,
	xccResolver xcctypes.XCCResolver,
	baseKeeper basekeeper.Keeper,
) Keeper

func (Keeper) HandlePacketAcknowledgementPrepare

func (k Keeper) HandlePacketAcknowledgementPrepare(
	ctx sdk.Context,
	sourcePort string,
	sourceChannel string,
	ack types.PacketAcknowledgementPrepare,
	txID crosstypes.TxID,
	txIndex crosstypes.TxIndex,
	ps packets.PacketSender,
) (*sdk.Result, error)

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) ReceiveCommitAcknowledgement

func (k Keeper) ReceiveCommitAcknowledgement(
	ctx sdk.Context,
	txID crosstypes.TxID,
	txIndex crosstypes.TxIndex,
) error

func (Keeper) ReceivePacketCommit

func (k Keeper) ReceivePacketCommit(
	ctx sdk.Context,
	destPort,
	destChannel string,
	data types.PacketDataCommit,
) (*txtypes.ContractCallResult, *types.PacketAcknowledgementCommit, error)

func (Keeper) ReceivePacketPrepare

func (k Keeper) ReceivePacketPrepare(
	ctx sdk.Context,
	destPort,
	destChannel string,
	data types.PacketDataPrepare,
) (*txtypes.ContractCallResult, *types.PacketAcknowledgementPrepare, error)

func (Keeper) SendCommit

func (k Keeper) SendCommit(
	ctx sdk.Context,
	packetSender packets.PacketSender,
	txID crosstypes.TxID,
	isCommittable bool,
) error

func (Keeper) SendPrepare

func (k Keeper) SendPrepare(
	ctx sdk.Context,
	packetSender packets.PacketSender,
	txID crosstypes.TxID,
	transactions []txtypes.ResolvedContractTransaction,
	timeoutHeight clienttypes.Height,
	timeoutTimestamp uint64,
) error

Jump to

Keyboard shortcuts

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