Documentation ¶
Index ¶
- type Keeper
- func (k *Keeper) ApplyContract(ctx context.Context, from, contract common.Address, value *big.Int, ...) (*evmtypes.MsgEthereumTxResponse, error)
- func (k *Keeper) BeginBlock(ctx sdk.Context) error
- func (k *Keeper) CallContract(goCtx context.Context, msg *fxevmtypes.MsgCallContract) (*fxevmtypes.MsgCallContractResponse, 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) ExecuteEVM(ctx sdk.Context, from common.Address, contract *common.Address, value *big.Int, ...) (*types.MsgEthereumTxResponse, error)
- func (k *Keeper) InitGenesis(ctx sdk.Context)
- func (k *Keeper) IsContract(ctx sdk.Context, account common.Address) bool
- func (k *Keeper) QueryContract(ctx context.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) *Keeper
func (*Keeper) ApplyContract ¶
func (k *Keeper) ApplyContract(ctx context.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) BeginBlock ¶
BeginBlock sets the sdk Context and EIP155 chain id to the Keeper.
func (*Keeper) CallContract ¶
func (k *Keeper) CallContract(goCtx context.Context, msg *fxevmtypes.MsgCallContract) (*fxevmtypes.MsgCallContractResponse, error)
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) ExecuteEVM ¶
func (*Keeper) InitGenesis ¶
InitGenesis initializes genesis state based on exported genesis
func (*Keeper) IsContract ¶
Click to show internal directories.
Click to hide internal directories.