javascript

package
v0.8.5-2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2015 License: LGPL-2.1-or-later Imports: 16 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 {
	*xeth.Block
	// 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 {
	*xeth.XEth
	// contains filtered or unexported fields
}

func (*JSEthereum) Block added in v0.8.4

func (self *JSEthereum) Block(v interface{}) otto.Value

func (*JSEthereum) GetStateObject

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

func (*JSEthereum) Messages

func (self *JSEthereum) Messages(object map[string]interface{}) otto.Value

func (*JSEthereum) Transact

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

type JSLog added in v0.8.4

type JSLog struct {
	Address string   `json:address`
	Topics  []string `json:topics`
	Number  int32    `json:number`
	Data    string   `json:data`
}

func NewJSLog added in v0.8.4

func NewJSLog(log state.Log) JSLog

type JSRE

type JSRE struct {
	Vm *otto.Otto
	// 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 JSStateObject

type JSStateObject struct {
	*xeth.Object
	// contains filtered or unexported fields
}

func (*JSStateObject) EachStorage

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

Jump to

Keyboard shortcuts

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