keeper

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

func RegisterCrossApps

func RegisterCrossApps(keeper Keeper)

Types

type Keeper

type Keeper struct {
	DestChainId sdk.ChainID
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,
	bankKeeper types.BankKeeper,
	stakingKeepr types.StakingKeeper,
	crossChainKeeper types.CrossChainKeeper,
) *Keeper

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams get all parameters as types.Params

func (Keeper) GetRefundTransferInPayload

func (k Keeper) GetRefundTransferInPayload(transferInClaim *types.TransferInSynPackage, refundReason types.RefundReason) ([]byte, error)

func (Keeper) GetTransferOutRelayerFee

func (k Keeper) GetTransferOutRelayerFee(ctx sdk.Context) (*big.Int, *big.Int)

GetTransferOutRelayerFee gets the transfer out relayer fee params

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

type TransferInApp

type TransferInApp struct {
	// contains filtered or unexported fields
}

func NewTransferInApp

func NewTransferInApp(bridgeKeeper Keeper) *TransferInApp

func (*TransferInApp) CheckTransferInSynPackage

func (app *TransferInApp) CheckTransferInSynPackage(transferInPackage *types.TransferInSynPackage) error

func (*TransferInApp) ExecuteAckPackage

func (app *TransferInApp) ExecuteAckPackage(ctx sdk.Context, header *sdk.CrossChainAppContext, payload []byte) sdk.ExecuteResult

func (*TransferInApp) ExecuteFailAckPackage

func (app *TransferInApp) ExecuteFailAckPackage(ctx sdk.Context, header *sdk.CrossChainAppContext, payload []byte) sdk.ExecuteResult

func (*TransferInApp) ExecuteSynPackage

func (app *TransferInApp) ExecuteSynPackage(ctx sdk.Context, appCtx *sdk.CrossChainAppContext, payload []byte) sdk.ExecuteResult

type TransferOutApp

type TransferOutApp struct {
	// contains filtered or unexported fields
}

func NewTransferOutApp

func NewTransferOutApp(keeper Keeper) *TransferOutApp

func (*TransferOutApp) CheckPackage

func (app *TransferOutApp) CheckPackage(refundPackage *types.TransferOutRefundPackage) error

func (*TransferOutApp) ExecuteAckPackage

func (app *TransferOutApp) ExecuteAckPackage(ctx sdk.Context, appCtx *sdk.CrossChainAppContext, payload []byte) sdk.ExecuteResult

func (*TransferOutApp) ExecuteFailAckPackage

func (app *TransferOutApp) ExecuteFailAckPackage(ctx sdk.Context, appCtx *sdk.CrossChainAppContext, payload []byte) sdk.ExecuteResult

func (*TransferOutApp) ExecuteSynPackage

func (app *TransferOutApp) ExecuteSynPackage(ctx sdk.Context, header *sdk.CrossChainAppContext, payload []byte) sdk.ExecuteResult

Jump to

Keyboard shortcuts

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