{"_id":"@apex-org/convector-tool-chaincode-manager","name":"@apex-org/convector-tool-chaincode-manager","dist-tags":{"canary":"1.3.10-0-alpha.2486f88c","latest":"1.3.10-0-alpha.2486f88c"},"versions":{"1.3.10-0-alpha.2486f88c":{"name":"@apex-org/convector-tool-chaincode-manager","version":"1.3.10-0-alpha.2486f88c","description":"Chaincode manager to install and run chaincodes","main":"./dist/src/index.js","typings":"./dist/src/index.d.ts","publishConfig":{"access":"public"},"license":"Apache-2.0","repository":{"type":"git","url":"https://github.com/hyperledger-labs/convector/tree/develop/%40worldsibu/convector-tool-chaincode-manager"},"keywords":["typescript","chaincode","blockchain","hyperledger","solutions","environment","hyperledger fabric","smart contract","run","hurley","composer"],"homepage":"https://worldsibu.tech/convector/convector-smart-contracts/","bin":{"chaincode-manager":"dist/src/command.js"},"scripts":{"clean":"rimraf dist","clean:docs":"rimraf docs","build":"npm run clean && tsc","prepare":"npm run build","lint":"tslint --fix -c '../../tslint.json' -p './tsconfig.json'","predocs:generate":"npm run clean:docs","docs:generate":"typedoc src --mode file --out docs --target ES6 --excludePrivate","docs:serve":"http-server docs"},"dependencies":{"@worldsibu/convector-common-fabric-helper":"^1.3.9","@worldsibu/convector-core":"^1.3.9","@worldsibu/convector-core-chaincode":"^1.3.9","commander":"^2.15.1","docker-composer-manager":"^0.1.3","fs-extra":"^6.0.1","tslib":"^1.9.0"},"devDependencies":{"http-server":"^0.11.1","npm-scripts-watcher":"^1.0.2","rimraf":"^2.6.2","ts-node":"^6.0.3","tslint":"^5.9.1","typedoc":"^0.11.1","typescript":"2.8.3"},"_id":"@apex-org/convector-tool-chaincode-manager@1.3.10-0-alpha.2486f88c","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-2MBXY86dV7RbRg9fEt8zPwoir8OZ4dL4+YDONDeSfOVfoutHxXopnPiP94R4fkHZvkZnGcX8ZVhhNBTpRE8Oag==","shasum":"b0c2137bb4e63f6043d31a9a710f1e807bca5b03","tarball":"https://registry.npmjs.org/@apex-org/convector-tool-chaincode-manager/-/convector-tool-chaincode-manager-1.3.10-0-alpha.2486f88c.tgz","fileCount":12,"unpackedSize":44175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHYoAy4hKoWg+XCewoSCwnC5UCe67K+t7eBEhJQmNJfvAiBSvMN2QrHDj9H0b3AYmZcNhMQuqtUQZsJ9pkIZQHNCxQ=="}]},"_npmUser":{"name":"akshaysood112","email":"akshay.sood@live.com"},"directories":{},"maintainers":[{"name":"akshaysood112","email":"akshay.sood@live.com"},{"name":"rodolfoleal","email":"rodolfo.pk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convector-tool-chaincode-manager_1.3.10-0-alpha.2486f88c_1686238628162_0.9307948001297086"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-08T15:37:08.104Z","1.3.10-0-alpha.2486f88c":"2023-06-08T15:37:08.340Z","modified":"2023-06-08T15:37:08.492Z"},"maintainers":[{"name":"akshaysood112","email":"akshay.sood@live.com"},{"name":"rodolfoleal","email":"rodolfo.pk@gmail.com"}],"description":"Chaincode manager to install and run chaincodes","homepage":"https://worldsibu.tech/convector/convector-smart-contracts/","keywords":["typescript","chaincode","blockchain","hyperledger","solutions","environment","hyperledger fabric","smart contract","run","hurley","composer"],"repository":{"type":"git","url":"https://github.com/hyperledger-labs/convector/tree/develop/%40worldsibu/convector-tool-chaincode-manager"},"license":"Apache-2.0","readme":"# Convector Tool Chaincode Manager\n\nThis module contains the chaincode manager with tools to install and run chaincodes in a blockchain. This creates a binary called `chaincode-manager` in the `node_modules/.bin` folder.\n\n## Manager Config\n\nThe command relies on a configuration file provided at invocation. The file structure is detailed next:\n\n- `worldsibuNpmToken` - the npm worldsibu token, if you don't have this, means you don't have permission to run our framework and it will fail to install\n- `channel` - the channel where the chaincode is gonna be installed\n- `peers` - a list of peers information, containing the `url` and a reachable `msp` path\n- `orderer` - the orderer information, containing  the `url` and a reachable `msp` path\n- `admin` - the user with admin privileges information, containing the user `name`, `mspName`, and `msp` path\n- `controllers` - a list of controllers to bound together in the chaincode, containing the npm package `name`, npm package `version` and the `controller` class name found in the package\n- `policy` - a policy object, check the fabric sdk [documentation](https://fabric-sdk-node.github.io/global.html#ChaincodeInstantiateUpgradeRequest) for the `endorsement-policy` field for mor information\n\nAll paths are resolved relative to the config file.\n\nHere's an example on [how the file looks](https://bitbucket.org/worldsibu/tellus/src/develop/env/chaincode.config.json)\n\n## Manager Commands\n\n- `chaincode-manager install <name> <version>` - install a new for the first time, this can be only executed the first time this chaincode is going to be install using this name\n- `chaincode-manager upgrade <name> <version>` - upgrade an existing chaincode\n- `chaincode-manager invoke <name> <controller> <function> [args...]` - invoke a function under a controller in a previously installed chaincode\n- All the commands demand a `-c ./chaincode.config.json` flag\n","readmeFilename":"README.md"}