ucc

package
v1.0.9 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.PtnChaincodeSpec, 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 dboperation.IContractDag, 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
	Language string
	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