Documentation ¶
Index ¶
- Variables
- func BootstrapContract(contract contractapi.ContractInterface)
- func ContainsString(value string, values []string) bool
- func CrossChaincodeCall(ctx contractapi.TransactionContextInterface, chaincode, tx string, ...) ([]byte, error)
- func Hash(value string) string
- func InitLogger()
- func InvokeChaincodeParams(tx string, args ...string) [][]byte
- func MustEncode(v interface{}) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ChaincodeID = os.Getenv("CHAINCODE_CCID") ChaincodeAddress = os.Getenv("CHAINCODE_ADDRESS") ChaincodeName = os.Getenv("CHAINCODE_NAME") LogLevel = os.Getenv("LOGGING") )
View Source
var (
Logger = logging.MustGetLogger(ChaincodeName)
)
Functions ¶
func BootstrapContract ¶
func BootstrapContract(contract contractapi.ContractInterface)
func ContainsString ¶
func CrossChaincodeCall ¶
func CrossChaincodeCall(ctx contractapi.TransactionContextInterface, chaincode, tx string, args ...string) ([]byte, error)
func InitLogger ¶
func InitLogger()
func InvokeChaincodeParams ¶
func MustEncode ¶
func MustEncode(v interface{}) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.