Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) ChannelKeeper() types.ChannelKeeper
- func (k Keeper) EnsureContractTransactionStatus(ctx sdk.Context, txID crosstypes.TxID, txIndex crosstypes.TxIndex, ...) (*types.ContractTransactionState, error)
- func (k Keeper) GetContractTransactionState(ctx sdk.Context, txID crosstypes.TxID, txIndex crosstypes.TxIndex) (*types.ContractTransactionState, bool)
- func (k Keeper) GetCoordinatorState(ctx sdk.Context, txID crosstypes.TxID) (*types.CoordinatorState, bool)
- func (k Keeper) SetContractTransactionState(ctx sdk.Context, txID crosstypes.TxID, txIndex crosstypes.TxIndex, ...)
- func (k Keeper) SetCoordinatorState(ctx sdk.Context, txID crosstypes.TxID, cs types.CoordinatorState)
- func (k Keeper) UpdateContractTransactionStatus(ctx sdk.Context, txID crosstypes.TxID, txIndex crosstypes.TxIndex, ...) error
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
Click to show internal directories.
Click to hide internal directories.