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 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 ¶ added in v0.2.0
func SimpleSoloNetwork ¶ added in v0.2.0
func WaitForFab3 ¶ added in v0.2.0
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 ¶ added in v0.3.0
func SimpleStorageCreator() Contract
func SimpleStorageWithLog ¶ added in v0.2.0
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 JsonRPCError ¶
type JsonRPCLogArrayResponse ¶ added in v0.2.0
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"` }