keeper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 10 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(
	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 txtypes.TxID, txIndex txtypes.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 txtypes.TxID, txIndex txtypes.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 txtypes.TxID) (*types.CoordinatorState, bool)

GetCoordinatorState returns the CoordinatorState of a given txID

func (Keeper) SetContractTransactionState

func (k Keeper) SetContractTransactionState(ctx sdk.Context, txID txtypes.TxID, txIndex txtypes.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 txtypes.TxID, cs types.CoordinatorState)

SetCoordinatorState sets the store to a CoordinatorState

func (Keeper) UpdateContractTransactionStatus

func (k Keeper) UpdateContractTransactionStatus(ctx sdk.Context, txID txtypes.TxID, txIndex txtypes.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