javascript

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2014 License: GPL-2.0 Imports: 14 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 {
	*ethpipe.JSBlock
	// 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 {
	*ethpipe.JSPipe
	// 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) GetStateObject

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

func (*JSEthereum) Messages

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

func (*JSEthereum) Peers added in v0.6.5

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

func (*JSEthereum) Transact

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

type JSMessage

type JSMessage struct {
	To        string `json:"to"`
	From      string `json:"from"`
	Input     string `json:"input"`
	Output    string `json:"output"`
	Path      int    `json:"path"`
	Origin    string `json:"origin"`
	Timestamp int32  `json:"timestamp"`
	Coinbase  string `json:"coinbase"`
	Block     string `json:"block"`
	Number    int32  `json:"number"`
}

func NewJSMessage

func NewJSMessage(message *ethstate.Message) JSMessage

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 {
	*ethpipe.JSObject
	// 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