fabric: github.com/hyperledger/fabric/protos/testutils Index | Files

package testutils

import "github.com/hyperledger/fabric/protos/testutils"

Index

Package Files

txtestutils.go

func ConstructBytesProposalResponsePayload Uses

func ConstructBytesProposalResponsePayload(chainID string, ccid *pb.ChaincodeID, pResponse *pb.Response, simulationResults []byte) ([]byte, error)

ConstructBytesProposalResponsePayload constructs a ProposalResponsePayload byte for tests with a default signer.

func ConstructSignedTxEnv Uses

func ConstructSignedTxEnv(chainID string, ccid *pb.ChaincodeID, pResponse *pb.Response, simulationResults []byte, txid string, events []byte, visibility []byte, signer msp.SigningIdentity) (*common.Envelope, string, error)

ConstructSignedTxEnv constructs a transaction envelop for tests

func ConstructSignedTxEnvWithDefaultSigner Uses

func ConstructSignedTxEnvWithDefaultSigner(chainID string, ccid *pb.ChaincodeID, response *pb.Response, simulationResults []byte, txid string, events []byte, visibility []byte) (*common.Envelope, string, error)

ConstructSignedTxEnvWithDefaultSigner constructs a transaction envelop for tests with a default signer. This method helps other modules to construct a transaction with supplied parameters

func ConstructUnsignedTxEnv Uses

func ConstructUnsignedTxEnv(chainID string, ccid *pb.ChaincodeID, response *pb.Response, simulationResults []byte, txid string, events []byte, visibility []byte) (*common.Envelope, string, error)

ConstructUnsignedTxEnv creates a Transaction envelope from given inputs

Package testutils imports 10 packages (graph) and is imported by 9 packages. Updated 2018-10-18. Refresh now. Tools for package owners.