Documentation
¶
Index ¶
- type ExampleCC
- func (cc *ExampleCC) Chaincode() shim.Chaincode
- func (cc *ExampleCC) GetDBArtifacts() map[string]*ccapi.DBArtifacts
- func (cc *ExampleCC) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (cc *ExampleCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response
- func (cc *ExampleCC) Name() string
- func (cc *ExampleCC) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExampleCC ¶
type ExampleCC struct {
// contains filtered or unexported fields
}
ExampleCC example chaincode that puts and gets state and private data
func New ¶
func New(name string, dbArtifacts map[string]*ccapi.DBArtifacts) *ExampleCC
New returns a new example chaincode instance
func (*ExampleCC) GetDBArtifacts ¶
func (cc *ExampleCC) GetDBArtifacts() map[string]*ccapi.DBArtifacts
GetDBArtifacts returns Couch DB indexes (if applicable)
func (*ExampleCC) Init ¶
func (cc *ExampleCC) Init(stub shim.ChaincodeStubInterface) pb.Response
Init is not used
Click to show internal directories.
Click to hide internal directories.