Documentation ¶
Index ¶
- func EthereumConfig(stateManager *ethchain.StateManager) helper
- func FindAddressInNameReg(stateManager *ethchain.StateManager, name string) []byte
- func FindNameInNameReg(stateManager *ethchain.StateManager, addr []byte) string
- type KeyVal
- type PBlock
- type PEthereum
- func (lib *PEthereum) Create(key, valueStr, gasStr, gasPriceStr, script string) (*PReceipt, error)
- func (lib *PEthereum) GetBlock(hexHash string) *PBlock
- func (lib *PEthereum) GetCoinBase() string
- func (lib *PEthereum) GetIsListening() bool
- func (lib *PEthereum) GetIsMining() bool
- func (lib *PEthereum) GetKey() *PKey
- func (lib *PEthereum) GetPeerCount() int
- func (lib *PEthereum) GetPeers() []PPeer
- func (lib *PEthereum) GetStateObject(address string) *PStateObject
- func (lib *PEthereum) GetStorage(address, storageAddress string) string
- func (lib *PEthereum) GetTransactionsFor(address string, asJson bool) interface{}
- func (lib *PEthereum) GetTxCountAt(address string) int
- func (lib *PEthereum) IsContract(address string) bool
- func (lib *PEthereum) SecretToAddress(key string) string
- func (lib *PEthereum) Transact(key, recipient, valueStr, gasStr, gasPriceStr, dataStr string) (*PReceipt, error)
- type PKey
- type PPeer
- type PReceipt
- type PStateObject
- func (c *PStateObject) Address() string
- func (self *PStateObject) EachStorage(cb ethtrie.EachCallback)
- func (c *PStateObject) GetStorage(address string) string
- func (c *PStateObject) HexScript() string
- func (c *PStateObject) IsContract() bool
- func (c *PStateObject) Nonce() int
- func (c *PStateObject) Root() string
- func (c *PStateObject) Script() string
- func (c *PStateObject) StateKeyVal(asJson bool) interface{}
- func (c *PStateObject) Value() string
- type PStorageState
- type PTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EthereumConfig ¶
func EthereumConfig(stateManager *ethchain.StateManager) helper
func FindAddressInNameReg ¶
func FindAddressInNameReg(stateManager *ethchain.StateManager, name string) []byte
func FindNameInNameReg ¶
func FindNameInNameReg(stateManager *ethchain.StateManager, addr []byte) string
Types ¶
type PBlock ¶
type PBlock struct { Number int `json:"number"` Hash string `json:"hash"` Transactions string `json:"transactions"` Time int64 `json:"time"` Coinbase string `json:"coinbase"` Name string `json:"name"` GasLimit string `json:"gasLimit"` GasUsed string `json:"gasUsed"` // contains filtered or unexported fields }
Block interface exposed to QML
func (*PBlock) GetTransaction ¶
type PEthereum ¶
type PEthereum struct {
// contains filtered or unexported fields
}
func NewPEthereum ¶
func NewPEthereum(manager ethchain.EthManager) *PEthereum
func (*PEthereum) GetCoinBase ¶
func (*PEthereum) GetIsListening ¶
func (*PEthereum) GetIsMining ¶
func (*PEthereum) GetPeerCount ¶
func (*PEthereum) GetStateObject ¶
func (lib *PEthereum) GetStateObject(address string) *PStateObject
func (*PEthereum) GetStorage ¶
func (*PEthereum) GetTransactionsFor ¶
func (*PEthereum) GetTxCountAt ¶
func (*PEthereum) IsContract ¶
func (*PEthereum) SecretToAddress ¶
type PKey ¶
type PPeer ¶
type PPeer 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"` // contains filtered or unexported fields }
type PReceipt ¶
type PReceipt struct { CreatedContract bool `json:"createdContract"` Address string `json:"address"` Hash string `json:"hash"` Sender string `json:"sender"` }
func NewPReciept ¶
type PStateObject ¶
type PStateObject struct {
// contains filtered or unexported fields
}
func NewPStateObject ¶
func NewPStateObject(object *ethchain.StateObject) *PStateObject
func (*PStateObject) Address ¶
func (c *PStateObject) Address() string
func (*PStateObject) EachStorage ¶
func (self *PStateObject) EachStorage(cb ethtrie.EachCallback)
func (*PStateObject) GetStorage ¶
func (c *PStateObject) GetStorage(address string) string
func (*PStateObject) HexScript ¶
func (c *PStateObject) HexScript() string
func (*PStateObject) IsContract ¶
func (c *PStateObject) IsContract() bool
func (*PStateObject) Nonce ¶
func (c *PStateObject) Nonce() int
func (*PStateObject) Root ¶
func (c *PStateObject) Root() string
func (*PStateObject) Script ¶
func (c *PStateObject) Script() string
func (*PStateObject) StateKeyVal ¶
func (c *PStateObject) StateKeyVal(asJson bool) interface{}
func (*PStateObject) Value ¶
func (c *PStateObject) Value() string
type PStorageState ¶
func NewPStorageState ¶
func NewPStorageState(storageObject *ethchain.StorageState) *PStorageState
type PTx ¶
type PTx 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 NewPTx ¶
func NewPTx(tx *ethchain.Transaction) *PTx
Click to show internal directories.
Click to hide internal directories.