keeper

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 16 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

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