ucc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: GPL-3.0, GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployUserCC

func DeployUserCC(chaincodeData []byte, spec *pb.ChaincodeSpec, chainID string, usrcc *UserChaincode, txid string, txsim rwset.TxSimulator, timeout time.Duration) error

func GetUserCCPayload

func GetUserCCPayload(chainID string, usrcc *UserChaincode) (payload []byte, err error)

func StopUserCC

func StopUserCC(contractid []byte, chainID string, usrcc *UserChaincode, txid string, deleteImage bool) error

Types

type UserChaincode

type UserChaincode struct {
	Name           string         //Unique name of the chaincode
	Path           string         //Path to the chaincode; currently not used
	Version        string         //chainCode Version
	InitArgs       [][]byte       //InitArgs initialization arguments to startup the chaincode
	Chaincode      shim.Chaincode // Chaincode is the actual chaincode object
	InvokableCC2CC bool           //InvokableCC2CC keeps track of whether this chaincode
	Enabled        bool           //Enabled a convenient switch to enable/disable chaincode
}

func RecoverChainCodeFromDb

func RecoverChainCodeFromDb(spec *pb.ChaincodeSpec, chainID string, templateId []byte) (*UserChaincode, []byte, error)

Jump to

Keyboard shortcuts

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