helpers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 11 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, ordererPort uint16) (string, error)

func Fab3Runner added in v0.2.0

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

func SimpleSoloNetwork added in v0.2.0

func SimpleSoloNetwork() *nwo.Config

func WaitForFab3 added in v0.2.0

func WaitForFab3(port uint16)

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
}

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

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 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  types.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"`
}

Jump to

Keyboard shortcuts

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