Documentation ¶
Index ¶
- Constants
- type ExecuteMsg
- type Precompile
- func (p Precompile) Address() common.Address
- func (p Precompile) GetName() string
- func (Precompile) IsTransaction(method string) bool
- func (p Precompile) RequiredGas(input []byte) uint64
- func (p Precompile) Run(*vm.EVM, common.Address, common.Address, []byte, *big.Int, bool) ([]byte, error)
- func (p Precompile) RunAndCalculateGas(evm *vm.EVM, caller common.Address, callingContract common.Address, ...) (ret []byte, remainingGas uint64, err error)
Constants ¶
View Source
const ( InstantiateMethod = "instantiate" ExecuteMethod = "execute" ExecuteBatchMethod = "execute_batch" QueryMethod = "query" )
View Source
const WasmdAddress = "0x0000000000000000000000000000000000001002"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecuteMsg ¶
type Precompile ¶
type Precompile struct { pcommon.Precompile InstantiateID []byte ExecuteID []byte ExecuteBatchID []byte QueryID []byte // contains filtered or unexported fields }
func NewPrecompile ¶
func NewPrecompile(evmKeeper pcommon.EVMKeeper, wasmdKeeper pcommon.WasmdKeeper, wasmdViewKeeper pcommon.WasmdViewKeeper, bankKeeper pcommon.BankKeeper) (*Precompile, error)
func (Precompile) Address ¶
func (p Precompile) Address() common.Address
func (Precompile) GetName ¶
func (p Precompile) GetName() string
func (Precompile) IsTransaction ¶
func (Precompile) IsTransaction(method string) bool
func (Precompile) RequiredGas ¶
func (p Precompile) RequiredGas(input []byte) uint64
RequiredGas returns the required bare minimum gas to execute the precompile.
Click to show internal directories.
Click to hide internal directories.