ethrepl

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2014 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSBlock

type JSBlock struct {
	*ethpub.PBlock
	// contains filtered or unexported fields
}

The JSEthereum object attempts to wrap the PEthereum object and returns meaningful javascript objects

func (*JSBlock) GetTransaction

func (self *JSBlock) GetTransaction(hash string) otto.Value

type JSEthereum

type JSEthereum struct {
	*ethpub.PEthereum
	// contains filtered or unexported fields
}

func (*JSEthereum) Create

func (self *JSEthereum) Create(key, valueStr, gasStr, gasPriceStr, scriptStr string) otto.Value

func (*JSEthereum) GetBlock

func (self *JSEthereum) GetBlock(hash string) otto.Value

func (*JSEthereum) GetKey

func (self *JSEthereum) GetKey() otto.Value

func (*JSEthereum) GetPeers

func (self *JSEthereum) GetPeers() otto.Value

func (*JSEthereum) GetStateKeyVals

func (self *JSEthereum) GetStateKeyVals(addr string) otto.Value

func (*JSEthereum) GetStateObject

func (self *JSEthereum) GetStateObject(addr string) otto.Value

func (*JSEthereum) Transact

func (self *JSEthereum) Transact(key, recipient, valueStr, gasStr, gasPriceStr, dataStr string) otto.Value

type JSRE

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

func NewJSRE

func NewJSRE(ethereum *eth.Ethereum) *JSRE

func (*JSRE) Bind

func (self *JSRE) Bind(name string, v interface{})

func (*JSRE) LoadExtFile

func (jsre *JSRE) LoadExtFile(path string)

func (*JSRE) LoadIntFile

func (jsre *JSRE) LoadIntFile(file string)

func (*JSRE) Require

func (self *JSRE) Require(file string) error

func (*JSRE) Run

func (self *JSRE) Run(code string) (otto.Value, error)

func (*JSRE) Stop

func (self *JSRE) Stop()

type JSRepl

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

func NewJSRepl

func NewJSRepl(ethereum *eth.Ethereum) *JSRepl

func (*JSRepl) Start

func (self *JSRepl) Start()

func (*JSRepl) Stop

func (self *JSRepl) Stop()

type JSStateObject

type JSStateObject struct {
	*ethpub.PStateObject
	// contains filtered or unexported fields
}

func (*JSStateObject) EachStorage

func (self *JSStateObject) EachStorage(call otto.FunctionCall) otto.Value

type Repl

type Repl interface {
	Start()
	Stop()
}

Jump to

Keyboard shortcuts

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