-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Chris Elder
authored and
Chris Elder
committed
Oct 10, 2023
1 parent
62f304a
commit c830f5b
Showing
6 changed files
with
533 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# 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\"]}'' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.