keeper

package
v7.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	*evmkeeper.Keeper
	// contains filtered or unexported fields
}

func (*Keeper) ApplyContract

func (k *Keeper) ApplyContract(ctx sdk.Context, from, contract common.Address, value *big.Int, abi abi.ABI, method string, constructorData ...interface{}) (*evmtypes.MsgEthereumTxResponse, error)

ApplyContract apply contract with args

func (*Keeper) CallContract

func (*Keeper) CallEVM

func (k *Keeper) CallEVM(
	ctx sdk.Context,
	from common.Address,
	contract *common.Address,
	value *big.Int,
	gasLimit uint64,
	data []byte,
	commit bool,
) (*types.MsgEthereumTxResponse, error)

func (*Keeper) CallEVMWithoutGas

func (k *Keeper) CallEVMWithoutGas(
	ctx sdk.Context,
	from common.Address,
	contract *common.Address,
	value *big.Int,
	data []byte,
	commit bool,
) (*types.MsgEthereumTxResponse, error)

CallEVMWithoutGas performs a smart contract method call using contract data without gas

func (*Keeper) CreateContractWithCode

func (k *Keeper) CreateContractWithCode(ctx sdk.Context, address common.Address, code []byte) error

CreateContractWithCode create contract account and set code

func (*Keeper) DeployContract

func (k *Keeper) DeployContract(ctx sdk.Context, from common.Address, abi abi.ABI, bin []byte, args ...interface{}) (common.Address, error)

DeployContract deploy contract with args

func (*Keeper) DeployUpgradableContract

func (k *Keeper) DeployUpgradableContract(ctx sdk.Context, from, logic common.Address, logicData []byte, abi *abi.ABI, args ...interface{}) (common.Address, error)

DeployUpgradableContract deploy upgrade contract and initialize it

func (*Keeper) InitGenesis

func (k *Keeper) InitGenesis(ctx sdk.Context)

InitGenesis initializes genesis state based on exported genesis

func (*Keeper) IsContract

func (k *Keeper) IsContract(ctx sdk.Context, account common.Address) bool

func (*Keeper) QueryContract

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

QueryContract query contract with args and res

func (*Keeper) UpdateContractCode

func (k *Keeper) UpdateContractCode(ctx sdk.Context, address common.Address, contractCode []byte) error

UpdateContractCode update contract code and code-hash

Jump to

Keyboard shortcuts

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