fabric-samples/test-network/network.config
Chris Elder e73bb717db Add chaincode utilities
This change is meant to help cover end user functionality
that was previously covered by the blockchain VSCode Plugin.

Functions added:
- cc mode with package, list chaincode, invoke and query functions
- auto sequencing for chaincode deployment
- move variables into config file

Signed-off-by: Chris Elder <celder@Chriss-MacBook-Air.local>
2023-10-10 12:24:23 -04:00

58 lines
1.4 KiB
Text

# default image tag, example: "2.5.4". "default" will download the latest. (-i)
IMAGETAG="default"
# default ca image tag, example: "1.5.7". "default" will download the latest. (-cai)
CA_IMAGETAG="default"
# Using crpto vs CA. default is cryptogen
CRYPTO="cryptogen"
# max number of retries before giving up (-r)
MAX_RETRY=5
# default for delay between commands (-d)
CLI_DELAY=3
# channel name defaults to "mychannel" (-c)
CHANNEL_NAME="mychannel"
# default database (-s)
DATABASE="leveldb"
# default org (-org)
ORG=1
# chaincode language defaults to "NA" (-ccl)
CC_SRC_LANGUAGE="go"
# Chaincode version (-ccv)
CC_VERSION="1.0.1"
# chaincode name defaults to "NA" (-ccn)
CC_NAME="basic"
# default to running the docker commands for the CCAAS (-ccaasdocker)
CCAAS_DOCKER_RUN=true
# chaincode path defaults to "NA" (-ccp)
CC_SRC_PATH="../asset-transfer-basic/chaincode-go"
# endorsement policy defaults to "NA". This would allow chaincodes to use the majority default policy. (-ccep)
CC_END_POLICY="NA"
# collection configuration defaults to "NA" (-cccg)
CC_COLL_CONFIG="NA"
# chaincode init function defaults to "NA" (-cci)
CC_INIT_FCN="NA"
# Chaincode definition sequence, this should be an integer or auto (-ccs)
CC_SEQUENCE=auto
# Default constructor for testing a chaincode invoke (-ccic)
CC_INVOKE_CONSTRUCTOR=''{\"Args\":[\"InitLedger\"]}''
# Default constructor for testing a chaincode query (-cciq)
CC_QUERY_CONSTRUCTOR=''{\"Args\":[\"GetAllAssets\"]}''