Documentation ¶
Index ¶
- type ChaincodeStore
- type Lifecycle
- type PackageParser
- type SCC
- func (scc *SCC) Chaincode() shim.Chaincode
- func (scc *SCC) Enabled() bool
- func (scc *SCC) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (scc *SCC) InitArgs() [][]byte
- func (scc *SCC) InvokableCC2CC() bool
- func (scc *SCC) InvokableExternal() bool
- func (scc *SCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response
- func (scc *SCC) Name() string
- func (scc *SCC) Path() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChaincodeStore ¶
type ChaincodeStore interface {
Save(name, version string, ccInstallPkg []byte) (hash []byte, err error)
}
ChaincodeStore provides a way to persist chaincodes
type Lifecycle ¶
type Lifecycle struct { ChaincodeStore ChaincodeStore PackageParser PackageParser }
Lifecycle implements the lifecycle operations which are invoked by the SCC as well as internally
type PackageParser ¶
type PackageParser interface {
Parse(data []byte) (*persistence.ChaincodePackage, error)
}
type SCC ¶
type SCC struct{}
SCC implements the required methods to satisfy the chaincode interface. It routes the invocation calls to the backing implementations.
func (*SCC) Init ¶
func (scc *SCC) Init(stub shim.ChaincodeStubInterface) pb.Response
Init is mostly useless for system chaincodes and always returns success
func (*SCC) InvokableExternal ¶
InvokableExternal returns true
Click to show internal directories.
Click to hide internal directories.