Documentation ¶
Index ¶
- func Build() *nwo.Components
- func CreateProxyConfig(testDir, channelName, cryptoConfigPath string, ...) (string, error)
- func Fab3Runner(fab3BinPath, proxyConfig, org, user, channel, ccid string, port uint16) *ginkgomon.Runner
- func SimpleSoloNetwork() *nwo.Config
- func WaitForFab3(port uint16)
- func Web3TestRunner(proxyAddr1, proxyAddr2 string) *ginkgomon.Runner
- type ChaincodeQueryWithHex
- type Contract
- type JsonRPCArrayResponse
- type JsonRPCBlockResponse
- type JsonRPCBoolResponse
- type JsonRPCError
- type JsonRPCLogArrayResponse
- type JsonRPCRequest
- type JsonRPCResponse
- type JsonRPCTxReceipt
- type MessageParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build() *nwo.Components
func CreateProxyConfig ¶
func Fab3Runner ¶
func SimpleSoloNetwork ¶
func WaitForFab3 ¶
func WaitForFab3(port uint16)
func Web3TestRunner ¶
Types ¶
type ChaincodeQueryWithHex ¶
func (ChaincodeQueryWithHex) Args ¶
func (c ChaincodeQueryWithHex) Args() []string
func (ChaincodeQueryWithHex) SessionName ¶
func (c ChaincodeQueryWithHex) SessionName() string
type Contract ¶
type Contract struct { CompiledBytecode string RuntimeBytecode string FunctionHashes map[string]string }
Contract struct contains the compiled bytecode of a Solidity contract, the runtime bytecode and the function hashes in a map
func InvokeContract ¶
func InvokeContract() Contract
InvokeContract has the bytecode and function hashes associated with a Solidity contract that takes in a SimpleStorage contract and invokes functions from the SimpleStorage contract.
func SimpleStorageContract ¶
func SimpleStorageContract() Contract
SimpleStorageContract returns a contract object that has the SimpleStorage bytecodes and function hashes.
func SimpleStorageCreator ¶
func SimpleStorageCreator() Contract
func SimpleStorageWithLog ¶
func SimpleStorageWithLog() Contract
SimpleStorageWithLog is the simple storage contract with an solidity event to emit an evm log which will be stored as a fabric Event.
docker run --rm -i ethereum/solc:0.4.21 --combined-json hashes,bin,bin-runtime - <SimpleStorageWithLog.sol
type JsonRPCArrayResponse ¶
type JsonRPCArrayResponse struct { JsonRPC string `json:"jsonrpc"` ID int `json:"id"` Result []string `json:"result,omitempty"` Error JsonRPCError `json:"error,omitempty"` }
type JsonRPCBlockResponse ¶
type JsonRPCBlockResponse struct { JsonRPC string `json:"jsonrpc"` ID int `json:"id"` Result types.Block `json:"result,omitempty"` Error JsonRPCError `json:"error,omitempty"` }
type JsonRPCBoolResponse ¶
type JsonRPCBoolResponse struct { JsonRPC string `json:"jsonrpc"` ID int `json:"id"` Result bool `json:"result,omitempty"` Error JsonRPCError `json:"error,omitempty"` }
type JsonRPCError ¶
type JsonRPCLogArrayResponse ¶
type JsonRPCLogArrayResponse struct { JsonRPC string `json:"jsonrpc"` ID int `json:"id"` Result []types.Log `json:"result,omitempty"` Error JsonRPCError `json:"error,omitempty"` }
type JsonRPCRequest ¶
type JsonRPCResponse ¶
type JsonRPCResponse struct { JsonRPC string `json:"jsonrpc"` ID int `json:"id"` Result string `json:"result,omitempty"` Error JsonRPCError `json:"error,omitempty"` }
type JsonRPCTxReceipt ¶
type JsonRPCTxReceipt struct { JsonRPC string `json:"jsonrpc"` ID int `json:"id"` Result types.TxReceipt `json:"result"` Error JsonRPCError `json:"error,omitempty"` }