ucc

package
v0.0.0-...-84a2c7a Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 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(contractId []byte, chaincodeData []byte, spec *pb.ChaincodeSpec, chainID string, txid string, txsim rwset.TxSimulator, timeout time.Duration) error

func GetUserCCPayload

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

func RecoverChainCodeFromDb

func RecoverChainCodeFromDb(dag dag.IDag, templateId []byte) (*modules.ContractTemplate, []byte, error)

func StopUserCC

func StopUserCC(contractid []byte, chainID string, usrcc *UserChaincode, txid string, deleteImage bool, dontRmCon 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
	//Desciption     string
	//Abi            string
	Language string
	//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
}

Jump to

Keyboard shortcuts

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