{"modulePath":"github.com/sachdev18/sachdevr.18","version":"v0.6.1-preview","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Types\n\n```go\ntype SimpleChaincode struct {\n}\n```\nSimpleChaincode example simple Chaincode implementation\n\n```go\nfunc (t *SimpleChaincode) GetChaincodeToCall() string\n```\n\n```go\nfunc (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)\n```\nInit takes two arguements, a string and int. These are stored in the key/value pair in the state\n\n```go\nfunc (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)\n```\nInvoke invokes another chaincode - chaincode\\_example02, upon receipt of an event and changes event state\n\n```go\nfunc (t *SimpleChaincode) Query(stub shim.ChaincodeStubInterface, function string, args []string) ([]byte, error)\n```\nQuery callback representing the query of a chaincode\n\n","path":"github.com/sachdev18/sachdevr.18/examples/chaincode/go/chaincode_example04","name":"main","synopsis":"","isRedistributable":true}
