keeper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hooks

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

Hooks wrapper struct for erc20 keeper

func (Hooks) PostTxProcessing

func (h Hooks) PostTxProcessing(
	ctx sdk.Context,
	msg core.Message,
	receipt *ethtypes.Receipt,
) error

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	accountKeeper types.AccountKeeper,
	packetKeeper types.PacketKeeper,
	clientKeeper types.ClientKeeper,
	evmKeeper types.EVMKeeper,
) Keeper

NewKeeper creates a new XIBC transfer Keeper instance

func (Keeper) AcknowledgementPacket

func (k Keeper) AcknowledgementPacket(
	ctx sdk.Context,
	data types.FungibleTokenPacketData,
	result []byte,
) (
	*evmtypes.MsgEthereumTxResponse,
	error,
)

func (Keeper) CallEVM

func (k Keeper) CallEVM(
	ctx sdk.Context,
	abi abi.ABI,
	from common.Address,
	contract common.Address,
	method string,
	args ...interface{},
) (
	*evmtypes.MsgEthereumTxResponse, error,
)

CallEVM performs a smart contract method call using given args

func (Keeper) CallEVMWithData

func (k Keeper) CallEVMWithData(
	ctx sdk.Context,
	from common.Address,
	contract *common.Address,
	data []byte,
) (
	*evmtypes.MsgEthereumTxResponse,
	error,
)

CallEVMWithData performs a smart contract method call using contract data

func (Keeper) CallTransfer

func (k Keeper) CallTransfer(
	ctx sdk.Context,
	method string,
	args ...interface{},
) (
	*evmtypes.MsgEthereumTxResponse,
	error,
)

CallTransfer call a method of Transfer contract

func (Keeper) GetTransferModuleAddress

func (k Keeper) GetTransferModuleAddress() sdk.AccAddress

GetTransferModuleAddress returns the transfers ModuleAddress

func (Keeper) Hooks

func (k Keeper) Hooks() Hooks

Return the wrapper struct

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) OnAcknowledgementPacket

func (k Keeper) OnAcknowledgementPacket(ctx sdk.Context, data types.FungibleTokenPacketData, result []byte) error

func (Keeper) OnRecvPacket

func (k Keeper) OnRecvPacket(ctx sdk.Context, data types.FungibleTokenPacketData) (packettypes.Result, error)

func (Keeper) RecvPacket

func (Keeper) SendTransfer

func (k Keeper) SendTransfer(
	ctx sdk.Context,
	destChain string,
	relayChain string,
	sequence uint64,
	sender string,
	receiver string,
	amount []byte,
	token string,
	oriToken string,
) error

Jump to

Keyboard shortcuts

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