Versions in this module Expand all Collapse all v0 v0.1.0 Jan 18, 2019 Changes in this version + const NetworkID + var ZeroAddress = make([]byte, 20) + func NewRPCCodec() rpc.Codec + type Block struct + Hash string + Number string + ParentHash string + Transactions []interface{} + type ChannelClient interface + Execute func(request channel.Request, options ...channel.RequestOption) (channel.Response, error) + Query func(request channel.Request, options ...channel.RequestOption) (channel.Response, error) + type EthArgs struct + Data string + From string + Gas string + GasPrice string + Nonce string + To string + Value string + type EthService interface + Accounts func(r *http.Request, arg *string, reply *[]string) error + Call func(r *http.Request, args *EthArgs, reply *string) error + EstimateGas func(r *http.Request, args *EthArgs, reply *string) error + GetBalance func(r *http.Request, p *[]string, reply *string) error + GetBlockByNumber func(r *http.Request, p *[]interface{}, reply *Block) error + GetCode func(r *http.Request, arg *string, reply *string) error + GetTransactionByHash func(r *http.Request, txID *string, reply *Transaction) error + GetTransactionReceipt func(r *http.Request, arg *string, reply *TxReceipt) error + SendTransaction func(r *http.Request, args *EthArgs, reply *string) error + func NewEthService(channelClient ChannelClient, ledgerClient LedgerClient, channelID string, ...) EthService + type FabProxy struct + func NewFabProxy(service EthService) *FabProxy + func (p *FabProxy) Shutdown() error + func (p *FabProxy) Start(port int) error + type LedgerClient interface + QueryBlock func(blockNumber uint64, options ...ledger.RequestOption) (*common.Block, error) + QueryBlockByTxID func(txid fab.TransactionID, options ...ledger.RequestOption) (*common.Block, error) + QueryInfo func(options ...ledger.RequestOption) (*fab.BlockchainInfoResponse, error) + QueryTransaction func(txid fab.TransactionID, options ...ledger.RequestOption) (*peer.ProcessedTransaction, error) + type Log struct + Address string + BlockHash string + BlockNumber string + Data string + Index string + Topics []string + TxHash string + TxIndex string + type NetService struct + func (s *NetService) Version(r *http.Request, _ *interface{}, reply *string) error + type Transaction struct + BlockHash string + BlockNumber string + Hash string + Input string + To string + TransactionIndex string + type TxReceipt struct + BlockHash string + BlockNumber string + ContractAddress string + CumulativeGasUsed int + GasUsed int + Logs []Log + Status string + To string + TransactionHash string + TransactionIndex string