shared

package
v0.0.0-...-1fd109a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 ContainsString(value string, values []string) bool

func CrossChaincodeCall

func CrossChaincodeCall(ctx contractapi.TransactionContextInterface, chaincode, tx string, args ...string) ([]byte, error)

func Hash

func Hash(value string) string

func InitLogger

func InitLogger()

func InvokeChaincodeParams

func InvokeChaincodeParams(tx string, args ...string) [][]byte

func MustEncode

func MustEncode(v interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL