xeth

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2015 License: LGPL-2.1-or-later Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend added in v0.8.4

type Backend interface {
	BlockProcessor() *core.BlockProcessor
	ChainManager() *core.ChainManager
	TxPool() *core.TxPool
	PeerCount() int
	IsListening() bool
	Peers() []*p2p.Peer
	KeyManager() *crypto.KeyManager
	Db() ethutil.Database
	EventMux() *event.TypeMux
	Whisper() *whisper.Whisper
	Miner() *miner.Miner
}

to resolve the import cycle

type Block added in v0.8.4

type Block 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 NewBlock added in v0.8.4

func NewBlock(block *types.Block) *Block

Creates a new QML Block from a chain block

func (*Block) GetTransaction added in v0.8.4

func (self *Block) GetTransaction(hash string) *Transaction

func (*Block) ToString added in v0.8.4

func (self *Block) ToString() string

type Key added in v0.8.4

type Key struct {
	Address    string `json:"address"`
	PrivateKey string `json:"privateKey"`
	PublicKey  string `json:"publicKey"`
}

func NewKey added in v0.8.4

func NewKey(key *crypto.KeyPair) *Key

type KeyVal

type KeyVal struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Object

type Object struct {
	*state.StateObject
}

func NewObject added in v0.8.4

func NewObject(state *state.StateObject) *Object

func (*Object) Storage

func (self *Object) Storage() (storage map[string]string)

func (*Object) StorageString

func (self *Object) StorageString(str string) *ethutil.Value

func (*Object) StorageValue

func (self *Object) StorageValue(addr *ethutil.Value) *ethutil.Value

type Options added in v0.8.4

type Options struct {
	To     string
	From   string
	Topics []string
	Fn     func(msg WhisperMessage)
}

type PReceipt

type PReceipt struct {
	CreatedContract bool   `json:"createdContract"`
	Address         string `json:"address"`
	Hash            string `json:"hash"`
	Sender          string `json:"sender"`
}

func NewPReciept

func NewPReciept(contractCreation bool, creationAddress, hash, address []byte) *PReceipt

type Peer added in v0.8.4

type Peer struct {
	Ip      string `json:"ip"`
	Version string `json:"version"`
	Caps    string `json:"caps"`
	// contains filtered or unexported fields
}

func NewPeer added in v0.8.4

func NewPeer(peer *p2p.Peer) *Peer

type Receipt added in v0.8.4

type Receipt struct {
	CreatedContract bool   `json:"createdContract"`
	Address         string `json:"address"`
	Hash            string `json:"hash"`
	Sender          string `json:"sender"`
}

func NewReciept added in v0.8.4

func NewReciept(contractCreation bool, creationAddress, hash, address []byte) *Receipt

type State added in v0.8.4

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

func NewState added in v0.8.4

func NewState(xeth *XEth) *State

func (*State) Get added in v0.8.4

func (self *State) Get(addr string) *Object

func (*State) SafeGet added in v0.8.4

func (self *State) SafeGet(addr string) *Object

func (*State) State added in v0.8.4

func (self *State) State() *state.StateDB

type Transaction added in v0.8.4

type Transaction 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 NewTx added in v0.8.4

func NewTx(tx *types.Transaction) *Transaction

func (*Transaction) ToString added in v0.8.4

func (self *Transaction) ToString() string

type Whisper added in v0.8.4

type Whisper struct {
	*whisper.Whisper
}

func NewWhisper added in v0.8.4

func NewWhisper(w *whisper.Whisper) *Whisper

func (*Whisper) HasIdentity added in v0.8.4

func (self *Whisper) HasIdentity(key string) bool

func (*Whisper) Messages added in v0.8.4

func (self *Whisper) Messages(id int) (messages []WhisperMessage)

func (*Whisper) NewIdentity added in v0.8.4

func (self *Whisper) NewIdentity() string

func (*Whisper) Post added in v0.8.4

func (self *Whisper) Post(payload string, to, from string, topics []string, priority, ttl uint32) error

func (*Whisper) Watch added in v0.8.4

func (self *Whisper) Watch(opts *Options) int

type WhisperMessage added in v0.8.4

type WhisperMessage struct {
	Payload string `json:"payload"`
	To      string `json:"to"`
	From    string `json:"from"`
	Sent    int64  `json:"sent"`
	// contains filtered or unexported fields
}

func NewWhisperMessage added in v0.8.4

func NewWhisperMessage(msg *whisper.Message) WhisperMessage

type XEth

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

func New

func New(eth Backend) *XEth

func (*XEth) Accounts added in v0.8.4

func (self *XEth) Accounts() []string

func (*XEth) Backend added in v0.8.4

func (self *XEth) Backend() Backend

func (*XEth) BalanceAt added in v0.8.4

func (self *XEth) BalanceAt(addr string) string

func (*XEth) Block

func (self *XEth) Block(v interface{}) *Block

func (*XEth) BlockByHash added in v0.8.4

func (self *XEth) BlockByHash(strHash string) *Block

func (*XEth) BlockByNumber added in v0.8.4

func (self *XEth) BlockByNumber(num int32) *Block

func (*XEth) Call added in v0.8.4

func (self *XEth) Call(toStr, valueStr, gasStr, gasPriceStr, dataStr string) (string, error)

func (*XEth) CodeAt added in v0.8.4

func (self *XEth) CodeAt(address string) string

func (*XEth) Coinbase added in v0.8.4

func (self *XEth) Coinbase() string

func (*XEth) EachStorage added in v0.8.4

func (self *XEth) EachStorage(addr string) string

func (*XEth) Execute

func (self *XEth) Execute(addr, value, gas, price, data string) (string, error)

func (*XEth) FromAscii added in v0.8.4

func (self *XEth) FromAscii(str string) string

func (*XEth) FromNumber added in v0.8.4

func (self *XEth) FromNumber(str string) string

func (*XEth) IsContract added in v0.8.4

func (self *XEth) IsContract(address string) bool

func (*XEth) IsListening added in v0.8.4

func (self *XEth) IsListening() bool

func (*XEth) IsMining added in v0.8.4

func (self *XEth) IsMining() bool

func (*XEth) Miner added in v0.8.4

func (self *XEth) Miner() *miner.Miner

func (*XEth) NumberToHuman added in v0.8.4

func (self *XEth) NumberToHuman(balance string) string

func (*XEth) PeerCount added in v0.8.4

func (self *XEth) PeerCount() int

func (*XEth) PushTx

func (self *XEth) PushTx(encodedTx string) (string, error)

func (*XEth) SecretToAddress added in v0.8.4

func (self *XEth) SecretToAddress(key string) string

func (*XEth) SetMining added in v0.8.4

func (self *XEth) SetMining(shouldmine bool) bool

func (*XEth) State added in v0.8.4

func (self *XEth) State() *State

func (*XEth) StorageAt added in v0.8.4

func (self *XEth) StorageAt(addr, storageAddr string) string

func (*XEth) ToAscii added in v0.8.4

func (self *XEth) ToAscii(str string) string

func (*XEth) Transact

func (self *XEth) Transact(toStr, valueStr, gasStr, gasPriceStr, codeStr string) (string, error)

func (*XEth) TxCountAt added in v0.8.4

func (self *XEth) TxCountAt(address string) int

func (*XEth) Whisper added in v0.8.4

func (self *XEth) Whisper() *Whisper

Jump to

Keyboard shortcuts

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