Documentation ¶
Index ¶
- Constants
- type Precompile
- func (p Precompile) Address() common.Address
- func (p Precompile) GetCW20(ctx sdk.Context, method *abi.Method, args []interface{}) (ret []byte, err error)
- func (p Precompile) GetCW721(ctx sdk.Context, method *abi.Method, args []interface{}) (ret []byte, err error)
- func (p Precompile) GetName() string
- func (p Precompile) GetNative(ctx sdk.Context, method *abi.Method, args []interface{}) (ret []byte, err error)
- func (p Precompile) RequiredGas(input []byte) uint64
- func (p Precompile) Run(evm *vm.EVM, _ common.Address, _ common.Address, input []byte, _ *big.Int, ...) (ret []byte, err error)
Constants ¶
View Source
const ( GetNativePointer = "getNativePointer" GetCW20Pointer = "getCW20Pointer" GetCW721Pointer = "getCW721Pointer" )
View Source
const PointerViewAddress = "0x000000000000000000000000000000000000100A"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Precompile ¶
type Precompile struct { pcommon.Precompile GetNativePointerID []byte GetCW20PointerID []byte GetCW721PointerID []byte // contains filtered or unexported fields }
func NewPrecompile ¶
func NewPrecompile(evmKeeper pcommon.EVMKeeper) (*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.