Documentation ¶
Overview ¶
Package contract provides a sample smart contract. it uses util package to interact with the state database it also uses mock package to quickly test the solution by connecting to a remote couchDB instance.
Index ¶
Constants ¶
View Source
const DocPrefix = "SAMPLE"
Prefix for key in stateDB
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SampleContract ¶
type SampleContract struct {
contractapi.Contract
}
func (*SampleContract) CreateSampleObject ¶
func (s *SampleContract) CreateSampleObject(ctx contractapi.TransactionContextInterface, key string, val string) error
Create something
type SampleData ¶
Data - struct
Click to show internal directories.
Click to hide internal directories.