{"id":20217379,"url":"https://github.com/settlemint/btp-chaincode-lifecycle","last_synced_at":"2025-03-03T11:26:16.202Z","repository":{"id":232362810,"uuid":"784139370","full_name":"settlemint/btp-chaincode-lifecycle","owner":"settlemint","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-14T13:55:36.000Z","size":17,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-01T15:47:20.131Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/settlemint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-09T09:06:02.000Z","updated_at":"2025-01-14T13:55:38.000Z","dependencies_parsed_at":"2024-11-14T12:32:27.394Z","dependency_job_id":null,"html_url":"https://github.com/settlemint/btp-chaincode-lifecycle","commit_stats":null,"previous_names":["settlemint/btp-chaincode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settlemint%2Fbtp-chaincode-lifecycle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settlemint%2Fbtp-chaincode-lifecycle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settlemint%2Fbtp-chaincode-lifecycle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/settlemint%2Fbtp-chaincode-lifecycle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/settlemint","download_url":"https://codeload.github.com/settlemint/btp-chaincode-lifecycle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241654594,"owners_count":19997893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T06:33:50.867Z","updated_at":"2025-03-03T11:26:16.180Z","avatar_url":"https://github.com/settlemint.png","language":"Shell","readme":"# btp-chaincode-lifecycle\n\nScripts to manage the chaincode lifecycle on the BTP platform\n\n```bash\nUsage: ./chaincode.sh \u003ccommand\u003e [options]\nCommands:\n  peers                              : Query the peers on which we can install the chaincode\n  orderers                           : Query the orderers\n  nodes                              : Query all the nodes\n  channels \u003cnode\u003e                    : Query the channels\n  installed \u003cpeer\u003e                   : Query installed chaincodes\n  approved \u003cpeer\u003e                    : Query approved definition of chaincode\n  committed \u003cpeer\u003e                   : Query commit definition of chaincode\n  commit-readiness \u003cpeer\u003e            : Checking commit readiness of chaincode\n  package                            : Package the chaincode\n  install \u003cpeer\u003e                     : Install the chaincode\n  approve \u003cpeer\u003e \u003corderer\u003e           : Approve the chaincode\n  commit \u003cpeer\u003e \u003corderer\u003e            : Commit the chaincode\n  init \u003cpeer\u003e \u003corderer\u003e              : Initialize the chaincode\n  query \u003cpeer\u003e \u003cfunction_name\u003e [options]                   : Query the chaincode.\n    Options:\n      --arguments '[\"arg1\", \"arg2\"]'                       : The regular arguments to pass to the function.\n      --channel \u003cchannel_name\u003e                             : Optionally override the channel name.\n    Example: chaincode.sh query functionName --arguments '[\"arg1\", \"arg2\"]'\n  invoke \u003cpeer\u003e \u003corderer\u003e \u003cfunction_name\u003e [options]        : Invoke a transaction on the chaincode.\n    Options:\n      --arguments '[\"arg1\", \"arg2\"]'                       : The regular arguments to pass to the function.\n      --transient '{\"key\": \"value\"}'                       : The transient data to pass the to the function.\n      --channel \u003cchannel_name\u003e                             : Optionally override the channel name.\n    Example: chaincode.sh invoke functionName '[\"arg1\", \"arg2\"]'\n  create-channel \u003corderer\u003e \u003cchannel_name\u003e [options]        : Create a channel with the given name and options\n    Options:\n      --endorsementPolicy \u003cMAJORITY|ALL\u003e                   : Endorsement policy for the channel (default: MAJORITY)\n      --batchTimeoutInSeconds \u003cseconds\u003e                    : Batch timeout in seconds (default: 2)\n      --maxMessageCount \u003ccount\u003e                            : Maximum message count (default: 500)\n      --absoluteMaxMB \u003cMB\u003e                                 : Absolute maximum bytes (default: 10)\n      --preferredMaxMB \u003cMB\u003e                                : Preferred maximum bytes (default: 2)\n  orderer-join-channel \u003corderer\u003e \u003cchannel_name\u003e            : Orderer joins a channel.\n  orderer-leave-channel \u003corderer\u003e \u003cchannel_name\u003e           : Orderer leaves a channel.\n  peer-join-channel \u003cpeer\u003e \u003cchannel_name\u003e                  : Peer joins a channel.\n  peer-leave-channel \u003cpeer\u003e \u003cchannel_name\u003e                 : Peer leaves a channel.\nOptions:\n  -h, --help              : Display this help message\n```\n\n## Prerequisites\n\nYou will need following environment variables\n\n```bash\nexport CC_RUNTIME_LANGUAGE=node # the runtime, right now only node is supported\nexport CC_SRC_PATH=./dist # the path where the builded chaincode is located, this is the path that will be packeged\nexport CC_NAME=chaincodeName # the name of the chaincode\nexport CC_VERSION=1.0 # the version of the chaincode\nexport CC_SEQUENCE=1 # the sequence number of the chaincode\n```\n\nOptionally, you can set the following environment variables\n\n```bash\nexport CC_INIT_FCN=InitLedger # optional name of initialization function, if not set means no initialization is needed\nexport CC_INIT_ARGS=\"[]\" # optional arguments for the initialization function\nexport CC_COLLECTIONS_CONFIG_PATH=./collections_config.json # optional path of the collections config, can be used to configure PDC\nexport CC_CHANNEL=\"mychannel\" # optional override the channel to work on, by default this will be \"default-channel\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettlemint%2Fbtp-chaincode-lifecycle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsettlemint%2Fbtp-chaincode-lifecycle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsettlemint%2Fbtp-chaincode-lifecycle/lists"}