helpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() *nwo.Components

func CreateProxyConfig

func CreateProxyConfig(testDir, channelName, cryptoConfigPath string, org1Peer0Port, org1Peer1Port, org2Peer0Port, org2Peer1Port, ordererPort uint16) (string, error)

func FabProxyRunner

func FabProxyRunner(fabproxyBinPath, proxyConfig, org, user, channel, ccid string, port uint16) *ginkgomon.Runner

func Web3TestRunner

func Web3TestRunner(proxyAddr1, proxyAddr2 string) *ginkgomon.Runner

Types

type ChaincodeQueryWithHex

type ChaincodeQueryWithHex struct {
	ChannelID string
	Name      string
	Ctor      string
}

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
}

func InvokeContract

func InvokeContract() Contract

func SimpleStorageContract

func SimpleStorageContract() Contract

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 JsonRPCError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    string `json:"data"`
}

type JsonRPCRequest

type JsonRPCRequest struct {
	JsonRPC string      `json:"jsonrpc"`
	ID      int         `json:"id"`
	Method  string      `json:"method"`
	Params  interface{} `json:"params,omitempty"`
}

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  TxReceipt    `json:"result"`
	Error   JsonRPCError `json:"error,omitempty"`
}

type MessageParams

type MessageParams struct {
	To   string `json:"to"`
	From string `json:"from,omitempty"`
	Data string `json:"data,omitempty"`
}

type TxReceipt

type TxReceipt struct {
	TransactionHash  string `json:"transactionHash"`
	TransactionIndex string `json:"transactionIndex"`
	BlockNumber      string `json:"blockNumber"`
	BlockHash        string `json:"blockHash"`
	ContractAddress  string `json:"contractAddress,omitempty"`
}

Jump to

Keyboard shortcuts

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