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: 15 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(
	m codec.Codec,
	storeKey sdk.StoreKey,
	channelKeeper types.ChannelKeeper,
	authenticator authtypes.TxAuthenticator,
	packetSendKeeper packets.PacketSendKeeper,
	packetMiddleware packets.PacketMiddleware,
	xccResolver xcctypes.XCCResolver,
	txRunner txtypes.TxRunner,
) Keeper

NewKeeper creates a new instance of Cross Keeper

func (Keeper) ChannelKeeper

func (k Keeper) ChannelKeeper() types.ChannelKeeper

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

ExportGenesis exports bridge module's portID and denom trace info into its genesis state.

func (Keeper) InitiateTx

func (k Keeper) InitiateTx(goCtx context.Context, msg *types.MsgInitiateTx) (*types.MsgInitiateTxResponse, error)

InitiateTx defines a rpc handler method for MsgInitiateTx.

func (Keeper) IsActive

func (a Keeper) IsActive(ctx sdk.Context, txID crosstypes.TxID) (bool, error)

IsActive implements TxManager interface

func (Keeper) Logger

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

Logger returns a logger instance

func (Keeper) OnPostAuth

func (a Keeper) OnPostAuth(ctx sdk.Context, txID crosstypes.TxID) error

OnPostAuth implements TxManager interface

func (Keeper) ResolveTransactions

func (k Keeper) ResolveTransactions(ctx sdk.Context, ctxs []types.ContractTransaction) ([]txtypes.ResolvedContractTransaction, error)

func (Keeper) SelfXCC

SelfXCC returns XCC which indicates self channel

Jump to

Keyboard shortcuts

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