evm

package
v0.0.0-...-7353e17 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Overview

Package evm defines the service to execute a step in an Ethereum Virtual Machine.

Index

Constants

View Source
const WeiPerEther = 1e9

WeiPerEther ...

Variables

This section is empty.

Functions

func NewExecution

func NewExecution(contract string) (*evmService, error)

NewExection instantiates a new EvmService

Types

type EvmAccount

type EvmAccount struct {
	Address    common.Address
	PrivateKey *ecdsa.PrivateKey
	Nonce      uint64
}

EvmAccount is the abstraction for an Ethereum account

func NewEvmAccount

func NewEvmAccount(privateKey string) (*EvmAccount, error)

NewEvmAccount creates a new EvmAccount

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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