tpc

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 10 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 {
	common.Keeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, ck common.Keeper) Keeper

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) MulticastPacketCommit

func (k Keeper) MulticastPacketCommit(
	ctx sdk.Context,
	packetSender types.PacketSender,
	txID types.TxID,
	isCommittable bool,
) error

func (Keeper) MulticastPacketPrepare

func (k Keeper) MulticastPacketPrepare(
	ctx sdk.Context,
	packetSender types.PacketSender,
	sender sdk.AccAddress,
	msg types.MsgInitiate,
	transactions []types.ContractTransaction,
) (types.TxID, error)

func (Keeper) PacketCommitAcknowledgement

func (k Keeper) PacketCommitAcknowledgement(ctx sdk.Context, txID types.TxID, txIndex types.TxIndex) error

func (Keeper) Prepare

func (k Keeper) Prepare(
	ctx sdk.Context,
	contractHandler types.ContractHandler,
	sourcePort,
	sourceChannel string,
	data tpctypes.PacketDataPrepare,
) (uint8, error)

func (Keeper) ReceiveCommitPacket

func (k Keeper) ReceiveCommitPacket(
	ctx sdk.Context,
	contractHandler types.ContractHandler,
	sourcePort,
	sourceChannel,
	destinationPort,
	destinationChannel string,
	data tpctypes.PacketDataCommit,
) (types.ContractHandlerResult, error)

func (Keeper) ReceivePrepareAcknowledgement

func (k Keeper) ReceivePrepareAcknowledgement(
	ctx sdk.Context,
	sourcePort string,
	sourceChannel string,
	ack tpctypes.PacketPrepareAcknowledgement,
	txID types.TxID,
	txIndex types.TxIndex,
) (canMulticast bool, isCommittable bool, err error)

Jump to

Keyboard shortcuts

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