Documentation ¶
Index ¶
- type Keeper
- func (k *Keeper) ApplyContract(ctx sdk.Context, from, contract common.Address, value *big.Int, abi abi.ABI, ...) (*evmtypes.MsgEthereumTxResponse, error)
- func (k *Keeper) CallContract(goCtx context.Context, msg *fxevmtypes.MsgCallContract) (*fxevmtypes.MsgCallContractResponse, error)
- func (k *Keeper) CallEVM(ctx sdk.Context, from common.Address, contract *common.Address, value *big.Int, ...) (*types.MsgEthereumTxResponse, error)
- func (k *Keeper) CallEVMWithoutGas(ctx sdk.Context, from common.Address, contract *common.Address, value *big.Int, ...) (*types.MsgEthereumTxResponse, error)
- func (k *Keeper) CreateContractWithCode(ctx sdk.Context, address common.Address, code []byte) error
- func (k *Keeper) DeployContract(ctx sdk.Context, from common.Address, abi abi.ABI, bin []byte, ...) (common.Address, error)
- func (k *Keeper) DeployUpgradableContract(ctx sdk.Context, from, logic common.Address, logicData []byte, abi *abi.ABI, ...) (common.Address, error)
- func (k *Keeper) InitGenesis(ctx sdk.Context)
- func (k *Keeper) IsContract(ctx sdk.Context, account common.Address) bool
- func (k *Keeper) QueryContract(ctx sdk.Context, from, contract common.Address, abi abi.ABI, method string, ...) error
- func (k *Keeper) UpdateContractCode(ctx sdk.Context, address common.Address, contractCode []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
func NewKeeper ¶
func NewKeeper(ek *evmkeeper.Keeper, ak fxevmtypes.AccountKeeper, bk types.BankKeeper) *Keeper
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 (k *Keeper) CallContract(goCtx context.Context, msg *fxevmtypes.MsgCallContract) (*fxevmtypes.MsgCallContractResponse, 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 ¶
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 ¶
InitGenesis initializes genesis state based on exported genesis
func (*Keeper) IsContract ¶
Click to show internal directories.
Click to hide internal directories.