Documentation ¶
Index ¶
- Constants
- type Precompile
- func (p Precompile) AddCW20(ctx sdk.Context, method *ethabi.Method, caller common.Address, ...) (ret []byte, remainingGas uint64, err error)
- func (p Precompile) AddCW721(ctx sdk.Context, method *ethabi.Method, caller common.Address, ...) (ret []byte, remainingGas uint64, err error)
- func (p Precompile) AddNative(ctx sdk.Context, method *ethabi.Method, caller common.Address, ...) (ret []byte, remainingGas uint64, err error)
- func (p Precompile) Address() common.Address
- func (p Precompile) GetName() string
- 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 ( PrecompileName = "pointer" AddNativePointer = "addNativePointer" AddCW20Pointer = "addCW20Pointer" AddCW721Pointer = "addCW721Pointer" )
View Source
const PointerAddress = "0x000000000000000000000000000000000000100b"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Precompile ¶
type Precompile struct { pcommon.Precompile AddNativePointerID []byte AddCW20PointerID []byte AddCW721PointerID []byte // contains filtered or unexported fields }
func NewPrecompile ¶
func NewPrecompile(evmKeeper pcommon.EVMKeeper, bankKeeper pcommon.BankKeeper, wasmdKeeper pcommon.WasmdViewKeeper) (*Precompile, error)
func (Precompile) Address ¶
func (p Precompile) Address() common.Address
func (Precompile) GetName ¶
func (p Precompile) GetName() string
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.