Documentation ¶
Index ¶
- func ToJSMessages(messages state.Messages) *ethutil.List
- type Config
- type JSBlock
- type JSKey
- type JSMessage
- type JSObject
- type JSPeer
- type JSReceipt
- type JSTransaction
- type JSXEth
- func (self *JSXEth) BalanceAt(addr string) string
- func (self *JSXEth) Block(v interface{}) *JSBlock
- func (self *JSXEth) BlockByHash(strHash string) *JSBlock
- func (self *JSXEth) BlockByNumber(num int32) *JSBlock
- func (self *JSXEth) CodeAt(address string) string
- func (self *JSXEth) CoinBase() string
- func (self *JSXEth) CompileMutan(code string) string
- func (self *JSXEth) EachStorage(addr string) string
- func (self *JSXEth) Execute(addr, value, gas, price, data string) (string, error)
- func (self *JSXEth) FindInConfig(str string) string
- func (self *JSXEth) FromAscii(str string) string
- func (self *JSXEth) FromNumber(str string) string
- func (self *JSXEth) IsContract(address string) bool
- func (self *JSXEth) IsListening() bool
- func (self *JSXEth) IsMining() bool
- func (self *JSXEth) Key() *JSKey
- func (self *JSXEth) NumberToHuman(balance string) string
- func (self *JSXEth) PeerCount() int
- func (self *JSXEth) Peers() []JSPeer
- func (self *JSXEth) PushTx(txStr string) (*JSReceipt, error)
- func (self *JSXEth) SecretToAddress(key string) string
- func (self *JSXEth) StateObject(addr string) *JSObject
- func (self *JSXEth) StorageAt(addr, storageAddr string) string
- func (self *JSXEth) ToAscii(str string) string
- func (self *JSXEth) Transact(key, toStr, valueStr, gasStr, gasPriceStr, codeStr string) (string, error)
- func (self *JSXEth) TxCountAt(address string) int
- type KeyVal
- type Object
- type PReceipt
- type VMEnv
- func (self *VMEnv) AddLog(log state.Log)
- func (self *VMEnv) BlockHash() []byte
- func (self *VMEnv) BlockNumber() *big.Int
- func (self *VMEnv) Call(me vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error)
- func (self *VMEnv) CallCode(me vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error)
- func (self *VMEnv) Coinbase() []byte
- func (self *VMEnv) Create(me vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ClosureRef)
- func (self *VMEnv) Depth() int
- func (self *VMEnv) Difficulty() *big.Int
- func (self *VMEnv) GasLimit() *big.Int
- func (self *VMEnv) Origin() []byte
- func (self *VMEnv) PrevHash() []byte
- func (self *VMEnv) SetDepth(i int)
- func (self *VMEnv) State() *state.StateDB
- func (self *VMEnv) Time() int64
- func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error
- func (self *VMEnv) Value() *big.Int
- type VmVars
- type World
- func (self *World) Coinbase() *state.StateObject
- func (self *World) Config() *Config
- func (self *World) Get(addr []byte) *Object
- func (self *World) IsListening() bool
- func (self *World) IsMining() bool
- func (self *World) Peers() *list.List
- func (self *World) SafeGet(addr []byte) *Object
- func (self *World) State() *state.StateDB
- type XEth
- func (self *XEth) Balance(addr []byte) *ethutil.Value
- func (self *XEth) Block(hash []byte) *types.Block
- func (self *XEth) CompileMutan(code string) ([]byte, error)
- func (self *XEth) Execute(addr []byte, data []byte, value, gas, price *ethutil.Value) ([]byte, error)
- func (self *XEth) ExecuteObject(object *Object, data []byte, value, gas, price *ethutil.Value) ([]byte, error)
- func (self *XEth) Exists(addr []byte) bool
- func (self *XEth) Nonce(addr []byte) uint64
- func (self *XEth) PushTx(tx *types.Transaction) ([]byte, error)
- func (self *XEth) Storage(addr, storageAddr []byte) *ethutil.Value
- func (self *XEth) ToAddress(priv []byte) []byte
- func (self *XEth) Transact(key *crypto.KeyPair, to []byte, value, gas, price *ethutil.Value, data []byte) (*types.Transaction, error)
- func (self *XEth) TransactString(key *crypto.KeyPair, rec string, value, gas, price *ethutil.Value, data []byte) (*types.Transaction, error)
- func (self *XEth) World() *World
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSBlock ¶
type JSBlock struct { Size string `json:"size"` Number int `json:"number"` Hash string `json:"hash"` Transactions *ethutil.List `json:"transactions"` Uncles *ethutil.List `json:"uncles"` Time int64 `json:"time"` Coinbase string `json:"coinbase"` Name string `json:"name"` GasLimit string `json:"gasLimit"` GasUsed string `json:"gasUsed"` PrevHash string `json:"prevHash"` Bloom string `json:"bloom"` Raw string `json:"raw"` // contains filtered or unexported fields }
Block interface exposed to QML
func NewJSBlock ¶
Creates a new QML Block from a chain block
func (*JSBlock) GetTransaction ¶
func (self *JSBlock) GetTransaction(hash string) *JSTransaction
type JSKey ¶
type JSMessage ¶
type JSMessage struct { To string `json:"to"` From string `json:"from"` Input string `json:"input"` Output string `json:"output"` Path int32 `json:"path"` Origin string `json:"origin"` Timestamp int32 `json:"timestamp"` Coinbase string `json:"coinbase"` Block string `json:"block"` Number int32 `json:"number"` Value string `json:"value"` }
func NewJSMessage ¶
type JSPeer ¶
type JSPeer struct { Inbound bool `json:"isInbound"` LastSend int64 `json:"lastSend"` LastPong int64 `json:"lastPong"` Ip string `json:"ip"` Port int `json:"port"` Version string `json:"version"` LastResponse string `json:"lastResponse"` Latency string `json:"latency"` Caps string `json:"caps"` // contains filtered or unexported fields }
type JSReceipt ¶
type JSReceipt struct { CreatedContract bool `json:"createdContract"` Address string `json:"address"` Hash string `json:"hash"` Sender string `json:"sender"` }
func NewJSReciept ¶
type JSTransaction ¶
type JSTransaction struct { Value string `json:"value"` Gas string `json:"gas"` GasPrice string `json:"gasPrice"` Hash string `json:"hash"` Address string `json:"address"` Sender string `json:"sender"` RawData string `json:"rawData"` Data string `json:"data"` Contract bool `json:"isContract"` CreatesContract bool `json:"createsContract"` Confirmations int `json:"confirmations"` // contains filtered or unexported fields }
func NewJSTx ¶
func NewJSTx(tx *types.Transaction, state *state.StateDB) *JSTransaction
func (*JSTransaction) ToString ¶
func (self *JSTransaction) ToString() string
type JSXEth ¶
type JSXEth struct {
*XEth
}
func NewJSXEth ¶
func NewJSXEth(eth core.EthManager) *JSXEth
func (*JSXEth) BlockByHash ¶
func (*JSXEth) BlockByNumber ¶
func (*JSXEth) CompileMutan ¶
func (*JSXEth) EachStorage ¶
func (*JSXEth) FindInConfig ¶
func (*JSXEth) FromNumber ¶
func (*JSXEth) IsContract ¶
func (*JSXEth) IsListening ¶
func (*JSXEth) NumberToHuman ¶
func (*JSXEth) SecretToAddress ¶
func (*JSXEth) StateObject ¶
type Object ¶
type Object struct {
*state.StateObject
}
type PReceipt ¶
type PReceipt struct { CreatedContract bool `json:"createdContract"` Address string `json:"address"` Hash string `json:"hash"` Sender string `json:"sender"` }
func NewPReciept ¶
type VMEnv ¶
type VMEnv struct {
// contains filtered or unexported fields
}
func (*VMEnv) BlockNumber ¶
func (*VMEnv) Create ¶
func (self *VMEnv) Create(me vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ClosureRef)
func (*VMEnv) Difficulty ¶
type World ¶
type World struct {
// contains filtered or unexported fields
}
func (*World) Coinbase ¶
func (self *World) Coinbase() *state.StateObject
func (*World) IsListening ¶
type XEth ¶
type XEth struct { Vm VmVars // contains filtered or unexported fields }
func New ¶
func New(obj core.EthManager) *XEth
func (*XEth) Execute ¶
func (self *XEth) Execute(addr []byte, data []byte, value, gas, price *ethutil.Value) ([]byte, error)
* Execution helpers
func (*XEth) ExecuteObject ¶
Click to show internal directories.
Click to hide internal directories.