evm_go

package
v2.3.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Types

type EVM

type EVM struct {
	// contains filtered or unexported fields
}

func New

func New(param EVMParam) *EVM

func (*EVM) ExecuteContract

func (e *EVM) ExecuteContract(isCreate bool) (ExecuteResult, error)

func (*EVM) GetPcCountAndTimeUsed added in v2.2.0

func (e *EVM) GetPcCountAndTimeUsed() (uint64, int64)

type EVMParam

type EVMParam struct {
	MaxStackDepth  int
	ExternalStore  storage.IExternalStorage
	UpperStorage   *storage.Storage
	ResultCallback EVMResultCallback
	Context        *environment.Context
}

type EVMResultCallback

type EVMResultCallback func(result *ExecuteResult, err error)

type ExecuteResult

type ExecuteResult struct {
	ResultData   []byte
	GasLeft      uint64
	StorageCache storage.ResultCache
	ExitOpCode   opcodes.OpCode
	ByteCodeHead []byte
	ByteCodeBody []byte
}

Directories

Path Synopsis
Package math provides integer math utilities.
Package math provides integer math utilities.
* Copyright 2020 The SealEVM Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* Copyright 2020 The SealEVM Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

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