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: 16 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 RCC Keeper instance

func (Keeper) AcknowledgementPacket

func (k Keeper) AcknowledgementPacket(
	ctx sdk.Context,
	dataHash [32]byte,
	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) CallRCC

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

CallRCC call a method of RCC contract

func (Keeper) GetRCCModuleAddress

func (k Keeper) GetRCCModuleAddress() sdk.AccAddress

GetRCCModuleAddress returns the RCC 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, dataHash [32]byte, result []byte) error

func (Keeper) OnRecvPacket

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

func (Keeper) RecvPacket

func (Keeper) SendRemoteContractCall

func (k Keeper) SendRemoteContractCall(
	ctx sdk.Context,
	destChain string,
	relayChain string,
	sequence uint64,
	sender string,
	contractAddress string,
	data []byte,
) error

Jump to

Keyboard shortcuts

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