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: 9 Imported by: 0

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(
	cdc codec.Codec,
	storeKey sdk.StoreKey,
	channelKeeper types.ChannelKeeper,
	portKeeper types.PortKeeper,
	scopedKeeper capabilitykeeper.ScopedKeeper,
) Keeper

func (Keeper) ChannelKeeper

func (k Keeper) ChannelKeeper() types.ChannelKeeper

func (Keeper) EnsureContractTransactionStatus

func (k Keeper) EnsureContractTransactionStatus(ctx sdk.Context, txID crosstypes.TxID, txIndex crosstypes.TxIndex, status types.ContractTransactionStatus) (*types.ContractTransactionState, error)

EnsureContractTransactionStatus ensures that the status of the tx equals a given status

func (Keeper) GetContractTransactionState

func (k Keeper) GetContractTransactionState(ctx sdk.Context, txID crosstypes.TxID, txIndex crosstypes.TxIndex) (*types.ContractTransactionState, bool)

GetContractTransactionState returns the GetContractTransactionState of a given txID and txIndex

func (Keeper) GetCoordinatorState

func (k Keeper) GetCoordinatorState(ctx sdk.Context, txID crosstypes.TxID) (*types.CoordinatorState, bool)

GetCoordinatorState returns the CoordinatorState of a given txID

func (Keeper) SetContractTransactionState

func (k Keeper) SetContractTransactionState(ctx sdk.Context, txID crosstypes.TxID, txIndex crosstypes.TxIndex, txState types.ContractTransactionState)

TODO use channelInfo to create a key SetContractTransactionState sets the store to a ContractTransactionState

func (Keeper) SetCoordinatorState

func (k Keeper) SetCoordinatorState(ctx sdk.Context, txID crosstypes.TxID, cs types.CoordinatorState)

SetCoordinatorState sets the store to a CoordinatorState

func (Keeper) UpdateContractTransactionStatus

func (k Keeper) UpdateContractTransactionStatus(ctx sdk.Context, txID crosstypes.TxID, txIndex crosstypes.TxIndex, status types.ContractTransactionStatus) error

UpdateContractTransactionStatus updates the status of the tx

Jump to

Keyboard shortcuts

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