-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add chaincode utilities #1095
Merged
Merged
Add chaincode utilities #1095
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be easier to read if there was a blank line between each property,
especially since some have the flag name and some don't (e.g.
-r
below, does it go with the above property or the next property?).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the property to the same line as the description and added a blank line between properties.