Documentation
¶
Index ¶
- func DeployUserCC(contractId []byte, chaincodeData []byte, spec *pb.ChaincodeSpec, ...) error
- func GetUserCCPayload(usrcc *UserChaincode) (payload []byte, err error)
- func RecoverChainCodeFromDb(dag dboperation.IContractDag, templateId []byte) (*modules.ContractTemplate, []byte, error)
- func StopUserCC(contractid []byte, chainID string, usrcc *UserChaincode, txid string, ...) error
- type UserChaincode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployUserCC ¶
func GetUserCCPayload ¶
func GetUserCCPayload(usrcc *UserChaincode) (payload []byte, err error)
func RecoverChainCodeFromDb ¶
func RecoverChainCodeFromDb(dag dboperation.IContractDag, templateId []byte) (*modules.ContractTemplate, []byte, error)
func StopUserCC ¶
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 }
Click to show internal directories.
Click to hide internal directories.