addr

package
v0.0.38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetSeiAddressMethod = "getSeiAddr"
	GetEvmAddressMethod = "getEvmAddr"
)
View Source
const (
	AddrAddress = "0x0000000000000000000000000000000000001004"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Precompile

type Precompile struct {
	pcommon.Precompile

	GetSeiAddressID []byte
	GetEvmAddressID []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) IsTransaction

func (Precompile) IsTransaction(string) bool

func (Precompile) RequiredGas

func (p Precompile) RequiredGas(input []byte) uint64

RequiredGas returns the required bare minimum gas to execute the precompile.

func (Precompile) Run

func (p Precompile) Run(evm *vm.EVM, _ common.Address, _ common.Address, input []byte, value *big.Int, _ bool) (bz []byte, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL