Example #1
0
//=================================================================================================================================
//	 Main - main - Starts up the chaincode
//=================================================================================================================================
func main() {

	err := shim.Start(new(Chaincode))

	if err != nil {
		fmt.Printf("Error starting Chaincode: %s", err)
	}
}
Example #2
0
func main() {
	err := shim.Start(new(AssetManagementChaincode))
	if err != nil {
		fmt.Printf("Error starting AssetManagementChaincode: %s", err)
	}
}
func main() {
	err := shim.Start(new(Vehicle))
	if err != nil {
		fmt.Printf("Error starting Vehicle: %s", err)
	}
}
func initAssetManagementChaincode() {
	err := shim.Start(new(AssetManagementChaincode))
	if err != nil {
		panic(err)
	}
}
Example #5
0
func main() {
	err := shim.Start(new(SimpleChaincode))
	if err != nil {
		fmt.Println("Error starting Simple chaincode: %s", err)
	}
}