mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTxResults

func GetTxResults(chaincodeID string, writes []*kvrwset.KVWrite) []byte

func NewBlock

func NewBlock(channelID string, transactions ...*TXInfo) *cb.Block

func NewTx

func NewTx(
	channelID string,
	txInfo *TXInfo,
) *cb.Envelope

func NewTxAction

func NewTxAction(ccID string, results []byte) *pb.TransactionAction

Types

type TXInfo

type TXInfo struct {
	TxID             string
	ChaincodeID      string
	TxValidationCode pb.TxValidationCode
	HeaderType       cb.HeaderType
	Results          []byte
}

Jump to

Keyboard shortcuts

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