From 821fc6cce1b278f0a79d7e360024ccf63ab644cc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 09:23:05 +0200 Subject: [PATCH] Bump version to 1.1.12 (#191) Co-authored-by: galachain-release-bot --- chain-api/package.json | 2 +- chain-cli/README.md | 2 +- chain-cli/chaincode-template/package.json | 12 +- chain-cli/oclif.manifest.json | 238 +++++++++++----------- chain-cli/package.json | 4 +- chain-client/package.json | 4 +- chain-test/package.json | 6 +- chaincode/package.json | 4 +- licenses/licenses.csv | 12 +- package-lock.json | 24 +-- package.json | 2 +- 11 files changed, 155 insertions(+), 155 deletions(-) diff --git a/chain-api/package.json b/chain-api/package.json index 8e9c1807c..9ecab9a48 100644 --- a/chain-api/package.json +++ b/chain-api/package.json @@ -1,6 +1,6 @@ { "name": "@gala-chain/api", - "version": "1.1.11", + "version": "1.1.12", "description": "Common types, DTOs (Data Transfer Objects), APIs, signatures, and utils for GalaChain.", "license": "Apache-2.0", "dependencies": { diff --git a/chain-cli/README.md b/chain-cli/README.md index 9b76bdee3..4fe192fe8 100644 --- a/chain-cli/README.md +++ b/chain-cli/README.md @@ -18,7 +18,7 @@ $ npm install -g @gala-chain/cli $ galachain COMMAND running command... $ galachain (--version) -@gala-chain/cli/1.1.11 linux-x64 node-v18.17.0 +@gala-chain/cli/1.1.12 linux-x64 node-v18.20.2 $ galachain --help [COMMAND] USAGE $ galachain COMMAND diff --git a/chain-cli/chaincode-template/package.json b/chain-cli/chaincode-template/package.json index c007a2d8c..0dc7992ac 100644 --- a/chain-cli/chaincode-template/package.json +++ b/chain-cli/chaincode-template/package.json @@ -1,6 +1,6 @@ { "name": "@galachain/product", - "version": "1.1.11", + "version": "1.1.12", "description": "Product Chaincode", "main": "lib/src/index.js", "types": "lib/src/index.d.ts", @@ -22,16 +22,16 @@ "update-snapshot": "jest --updateSnapshot" }, "dependencies": { - "@gala-chain/api": "1.1.11", - "@gala-chain/chaincode": "1.1.11", + "@gala-chain/api": "1.1.12", + "@gala-chain/chaincode": "1.1.12", "dotenv": "^16.0.1", "fabric-contract-api": "2.4.2", "fabric-shim": "2.4.2" }, "devDependencies": { - "@gala-chain/cli": "1.1.11", - "@gala-chain/client": "1.1.11", - "@gala-chain/test": "1.1.11", + "@gala-chain/cli": "1.1.12", + "@gala-chain/client": "1.1.12", + "@gala-chain/test": "1.1.12", "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/axios": "^0.14.0", "@types/jest": "^29.5.12", diff --git a/chain-cli/oclif.manifest.json b/chain-cli/oclif.manifest.json index 70bd5155e..07f64c6ca 100644 --- a/chain-cli/oclif.manifest.json +++ b/chain-cli/oclif.manifest.json @@ -1,25 +1,20 @@ { "commands": { - "dto-verify": { - "aliases": [ - "dto:verify" - ], + "connect": { + "aliases": [], "args": { - "key": { - "description": "File path to the public key.", - "name": "key", - "required": true - }, - "data": { - "description": "Data representing an signed DTO object you wish to verify. Provide a JSON string or a path to a valid JSON file.", - "name": "data", - "required": true + "developerPrivateKey": { + "description": "Optional private key to sign the data. It could be a file or a string. If not provided, the private key will be read from the environment variable DEV_PRIVATE_KEY.", + "name": "developerPrivateKey", + "required": false } }, - "description": "It verifies the signature in the DTO using the public key.", + "description": "Connect to a new chaincode.", "examples": [ - "galachain dto:verify ./publicKey '{\n \"tokenClass\": {\n \"collection\": \"CLITest\",\n \"category\": \"Currency\",\n },\n \"signature\": \"/fYYooumRdFFrL4U3Nzwuf2uzBZAxKv4WrnMjLnbnJFU+Z6lQe2X/CCcLhRqq67jUDEFvOdky0g5D4sRCExXyBw=\",\n }'", - "galachain dto:verify ./publicKey dto.json" + "galachain connect", + "galachain connect ./dev-private-key", + "galachain connect c0fb1924408d936fb7cd0c86695885df4f66861621b5c8660df3924c4d09dd79", + "galachain connect --testnet" ], "flags": { "json": { @@ -42,11 +37,17 @@ "error" ], "type": "option" + }, + "testnet": { + "description": "Connect to testnet instead of sandbox.", + "name": "testnet", + "allowNo": false, + "type": "boolean" } }, "hasDynamicHelp": false, "hiddenAliases": [], - "id": "dto-verify", + "id": "connect", "pluginAlias": "@gala-chain/cli", "pluginName": "@gala-chain/cli", "pluginType": "core", @@ -56,7 +57,7 @@ "relativePath": [ "lib", "commands", - "dto-verify", + "connect", "index.js" ] }, @@ -126,21 +127,28 @@ "index.js" ] }, - "connect": { - "aliases": [], + "dto-sign": { + "aliases": [ + "dto:sign" + ], "args": { - "developerPrivateKey": { - "description": "Optional private key to sign the data. It could be a file or a string. If not provided, the private key will be read from the environment variable DEV_PRIVATE_KEY.", - "name": "developerPrivateKey", - "required": false + "key": { + "description": "Private key string or path to the private key file.", + "name": "key", + "required": true + }, + "data": { + "description": "Data representing an unsigned DTO object you wish to sign. Provide a JSON string or a path to a valid JSON file.", + "name": "data", + "required": true } }, - "description": "Connect to a new chaincode.", + "description": "DTO (Data Transfer Object) signing.", "examples": [ - "galachain connect", - "galachain connect ./dev-private-key", - "galachain connect c0fb1924408d936fb7cd0c86695885df4f66861621b5c8660df3924c4d09dd79", - "galachain connect --testnet" + "galachain dto:sign -o=output/path ./testkey '{\n \"tokenClass\": {\n \"collection\": \"CLITest\",\n \"category\": \"Currency\",\n }\n }'", + "galachain dto:sign ./testkey dto.json -o=output/path", + "galachain dto:sign ./testkey dto.json -d", + "galachain dto:sign 04ea7e8e14f2a0 dto.json -s -o=output/path -d" ], "flags": { "json": { @@ -164,16 +172,32 @@ ], "type": "option" }, - "testnet": { - "description": "Connect to testnet instead of sandbox.", - "name": "testnet", + "outputFile": { + "char": "o", + "description": "(optional) File path to an output directory where the signed DTO JSON file will be written. If not provided, signed DTO will be printed to stdout.", + "name": "outputFile", + "hasDynamicHelp": false, + "multiple": false, + "type": "option" + }, + "derSignature": { + "char": "d", + "description": "(optional) If provided, the signature will be used as DER format.", + "name": "derSignature", + "allowNo": false, + "type": "boolean" + }, + "onlySignature": { + "char": "s", + "description": "(optional) If provided, only the signature will be printed to stdout or written to a file.", + "name": "onlySignature", "allowNo": false, "type": "boolean" } }, "hasDynamicHelp": false, "hiddenAliases": [], - "id": "connect", + "id": "dto-sign", "pluginAlias": "@gala-chain/cli", "pluginName": "@gala-chain/cli", "pluginType": "core", @@ -183,7 +207,67 @@ "relativePath": [ "lib", "commands", - "connect", + "dto-sign", + "index.js" + ] + }, + "dto-verify": { + "aliases": [ + "dto:verify" + ], + "args": { + "key": { + "description": "File path to the public key.", + "name": "key", + "required": true + }, + "data": { + "description": "Data representing an signed DTO object you wish to verify. Provide a JSON string or a path to a valid JSON file.", + "name": "data", + "required": true + } + }, + "description": "It verifies the signature in the DTO using the public key.", + "examples": [ + "galachain dto:verify ./publicKey '{\n \"tokenClass\": {\n \"collection\": \"CLITest\",\n \"category\": \"Currency\",\n },\n \"signature\": \"/fYYooumRdFFrL4U3Nzwuf2uzBZAxKv4WrnMjLnbnJFU+Z6lQe2X/CCcLhRqq67jUDEFvOdky0g5D4sRCExXyBw=\",\n }'", + "galachain dto:verify ./publicKey dto.json" + ], + "flags": { + "json": { + "description": "Format output as json.", + "helpGroup": "GLOBAL", + "name": "json", + "allowNo": false, + "type": "boolean" + }, + "log-level": { + "helpGroup": "GLOBAL", + "name": "log-level", + "summary": "Specify level for logging.", + "hasDynamicHelp": false, + "multiple": false, + "options": [ + "debug", + "info", + "warn", + "error" + ], + "type": "option" + } + }, + "hasDynamicHelp": false, + "hiddenAliases": [], + "id": "dto-verify", + "pluginAlias": "@gala-chain/cli", + "pluginName": "@gala-chain/cli", + "pluginType": "core", + "strict": true, + "enableJsonFlag": true, + "isESM": false, + "relativePath": [ + "lib", + "commands", + "dto-verify", "index.js" ] }, @@ -408,90 +492,6 @@ "index.js" ] }, - "dto-sign": { - "aliases": [ - "dto:sign" - ], - "args": { - "key": { - "description": "Private key string or path to the private key file.", - "name": "key", - "required": true - }, - "data": { - "description": "Data representing an unsigned DTO object you wish to sign. Provide a JSON string or a path to a valid JSON file.", - "name": "data", - "required": true - } - }, - "description": "DTO (Data Transfer Object) signing.", - "examples": [ - "galachain dto:sign -o=output/path ./testkey '{\n \"tokenClass\": {\n \"collection\": \"CLITest\",\n \"category\": \"Currency\",\n }\n }'", - "galachain dto:sign ./testkey dto.json -o=output/path", - "galachain dto:sign ./testkey dto.json -d", - "galachain dto:sign 04ea7e8e14f2a0 dto.json -s -o=output/path -d" - ], - "flags": { - "json": { - "description": "Format output as json.", - "helpGroup": "GLOBAL", - "name": "json", - "allowNo": false, - "type": "boolean" - }, - "log-level": { - "helpGroup": "GLOBAL", - "name": "log-level", - "summary": "Specify level for logging.", - "hasDynamicHelp": false, - "multiple": false, - "options": [ - "debug", - "info", - "warn", - "error" - ], - "type": "option" - }, - "outputFile": { - "char": "o", - "description": "(optional) File path to an output directory where the signed DTO JSON file will be written. If not provided, signed DTO will be printed to stdout.", - "name": "outputFile", - "hasDynamicHelp": false, - "multiple": false, - "type": "option" - }, - "derSignature": { - "char": "d", - "description": "(optional) If provided, the signature will be used as DER format.", - "name": "derSignature", - "allowNo": false, - "type": "boolean" - }, - "onlySignature": { - "char": "s", - "description": "(optional) If provided, only the signature will be printed to stdout or written to a file.", - "name": "onlySignature", - "allowNo": false, - "type": "boolean" - } - }, - "hasDynamicHelp": false, - "hiddenAliases": [], - "id": "dto-sign", - "pluginAlias": "@gala-chain/cli", - "pluginName": "@gala-chain/cli", - "pluginType": "core", - "strict": true, - "enableJsonFlag": true, - "isESM": false, - "relativePath": [ - "lib", - "commands", - "dto-sign", - "index.js" - ] - }, "network-up": { "aliases": [ "network:up" @@ -675,5 +675,5 @@ ] } }, - "version": "1.1.11" + "version": "1.1.12" } \ No newline at end of file diff --git a/chain-cli/package.json b/chain-cli/package.json index fcbc3913e..1e563d733 100644 --- a/chain-cli/package.json +++ b/chain-cli/package.json @@ -1,6 +1,6 @@ { "name": "@gala-chain/cli", - "version": "1.1.11", + "version": "1.1.12", "description": "CLI for GalaChain to manage and deploy chaincodes", "license": "Apache-2.0", "bin": { @@ -14,7 +14,7 @@ "/oclif.manifest.json" ], "dependencies": { - "@gala-chain/api": "1.1.11", + "@gala-chain/api": "1.1.12", "@noble/secp256k1": "^1.7.1", "@oclif/core": "^3", "@oclif/plugin-help": "^3", diff --git a/chain-client/package.json b/chain-client/package.json index 5fa8c0881..cf627082e 100644 --- a/chain-client/package.json +++ b/chain-client/package.json @@ -1,6 +1,6 @@ { "name": "@gala-chain/client", - "version": "1.1.11", + "version": "1.1.12", "description": "GalaChain client library", "license": "Apache-2.0", "scripts": { @@ -21,7 +21,7 @@ "lib" ], "dependencies": { - "@gala-chain/api": "1.1.11", + "@gala-chain/api": "1.1.12", "axios": "^1.6.0", "jsonschema": "^1.4.1", "tslib": "^2.6.2", diff --git a/chain-test/package.json b/chain-test/package.json index fffaf590d..c1693586b 100644 --- a/chain-test/package.json +++ b/chain-test/package.json @@ -1,10 +1,10 @@ { "name": "@gala-chain/test", - "version": "1.1.11", + "version": "1.1.12", "description": "Unit testing and integration testing for GalaChain", "license": "Apache-2.0", "dependencies": { - "@gala-chain/client": "1.1.11", + "@gala-chain/client": "1.1.12", "nanoid": "^3.3.6", "tslib": "^2.6.2", "path": "0.12.7", @@ -12,7 +12,7 @@ "@jest/globals": "29.7.0" }, "peerDependencies": { - "@gala-chain/api": "1.1.11", + "@gala-chain/api": "1.1.12", "bignumber.js": "*", "class-transformer": "*", "elliptic": "*", diff --git a/chaincode/package.json b/chaincode/package.json index 59eda0f96..5a9aa02cf 100644 --- a/chaincode/package.json +++ b/chaincode/package.json @@ -1,6 +1,6 @@ { "name": "@gala-chain/chaincode", - "version": "1.1.11", + "version": "1.1.12", "description": "Framework for building chaincodes on GalaChain", "license": "Apache-2.0", "type": "commonjs", @@ -21,7 +21,7 @@ "test": "jest" }, "dependencies": { - "@gala-chain/api": "1.1.11", + "@gala-chain/api": "1.1.12", "fabric-contract-api": "2.4.2", "fabric-shim": "2.4.2", "nanoid": "^3.3.6", diff --git a/licenses/licenses.csv b/licenses/licenses.csv index 59fb1f35c..1b9ddf787 100644 --- a/licenses/licenses.csv +++ b/licenses/licenses.csv @@ -216,12 +216,12 @@ "@eslint/js@8.57.0","@eslint/js","8.57.0","https://github.com/eslint/eslint","ESLint JavaScript language implementation","MIT" "@fidm/asn1@1.0.4","@fidm/asn1","1.0.4","https://github.com/fidm/asn1","ASN.1/DER, PEM for Node.js","MIT" "@fidm/x509@1.2.1","@fidm/x509","1.2.1","https://github.com/fidm/x509","Pure JavaScript X509 certificate tools for Node.js","MIT" -"@gala-chain/api@1.1.11","@gala-chain/api","1.1.11","","Common types, DTOs (Data Transfer Objects), APIs, signatures, and utils for GalaChain.","Apache-2.0" -"@gala-chain/chaincode@1.1.11","@gala-chain/chaincode","1.1.11","","Framework for building chaincodes on GalaChain","Apache-2.0" -"@gala-chain/cli@1.1.11","@gala-chain/cli","1.1.11","","CLI for GalaChain to manage and deploy chaincodes","Apache-2.0" -"@gala-chain/client@1.1.11","@gala-chain/client","1.1.11","","GalaChain client library","Apache-2.0" -"@gala-chain/sdk@1.1.11","@gala-chain/sdk","1.1.11","","Welcome to developing with GalaChain! GalaChain SDK is a set of TS tools to help you develop on GalaChain:","UNLICENSED" -"@gala-chain/test@1.1.11","@gala-chain/test","1.1.11","","Unit testing and integration testing for GalaChain","Apache-2.0" +"@gala-chain/api@1.1.12","@gala-chain/api","1.1.12","","Common types, DTOs (Data Transfer Objects), APIs, signatures, and utils for GalaChain.","Apache-2.0" +"@gala-chain/chaincode@1.1.12","@gala-chain/chaincode","1.1.12","","Framework for building chaincodes on GalaChain","Apache-2.0" +"@gala-chain/cli@1.1.12","@gala-chain/cli","1.1.12","","CLI for GalaChain to manage and deploy chaincodes","Apache-2.0" +"@gala-chain/client@1.1.12","@gala-chain/client","1.1.12","","GalaChain client library","Apache-2.0" +"@gala-chain/sdk@1.1.12","@gala-chain/sdk","1.1.12","","Welcome to developing with GalaChain! GalaChain SDK is a set of TS tools to help you develop on GalaChain:","UNLICENSED" +"@gala-chain/test@1.1.12","@gala-chain/test","1.1.12","","Unit testing and integration testing for GalaChain","Apache-2.0" "@grpc/grpc-js@1.9.14","@grpc/grpc-js","1.9.14","https://github.com/grpc/grpc-node/tree/master/packages/grpc-js","gRPC Library for Node - pure JS implementation","Apache-2.0" "@grpc/proto-loader@0.6.13","@grpc/proto-loader","0.6.13","https://github.com/grpc/grpc-node","gRPC utility library for loading .proto files","Apache-2.0" "@grpc/proto-loader@0.7.12","@grpc/proto-loader","0.7.12","https://github.com/grpc/grpc-node","gRPC utility library for loading .proto files","Apache-2.0" diff --git a/package-lock.json b/package-lock.json index 147a02c2a..b7f38ebcf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gala-chain/sdk", - "version": "1.1.11", + "version": "1.1.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gala-chain/sdk", - "version": "1.1.11", + "version": "1.1.12", "license": "Apache-2.0", "workspaces": [ "chain-cli", @@ -51,7 +51,7 @@ }, "chain-api": { "name": "@gala-chain/api", - "version": "1.1.11", + "version": "1.1.12", "license": "Apache-2.0", "dependencies": { "bignumber.js": "^9.0.2", @@ -74,10 +74,10 @@ }, "chain-cli": { "name": "@gala-chain/cli", - "version": "1.1.11", + "version": "1.1.12", "license": "Apache-2.0", "dependencies": { - "@gala-chain/api": "1.1.11", + "@gala-chain/api": "1.1.12", "@noble/secp256k1": "^1.7.1", "@oclif/core": "^3", "@oclif/plugin-help": "^3", @@ -110,10 +110,10 @@ }, "chain-client": { "name": "@gala-chain/client", - "version": "1.1.11", + "version": "1.1.12", "license": "Apache-2.0", "dependencies": { - "@gala-chain/api": "1.1.11", + "@gala-chain/api": "1.1.12", "axios": "^1.6.0", "jsonschema": "^1.4.1", "process": "0.11.10", @@ -140,10 +140,10 @@ }, "chain-test": { "name": "@gala-chain/test", - "version": "1.1.11", + "version": "1.1.12", "license": "Apache-2.0", "dependencies": { - "@gala-chain/client": "1.1.11", + "@gala-chain/client": "1.1.12", "@jest/globals": "29.7.0", "nanoid": "^3.3.6", "path": "0.12.7", @@ -151,7 +151,7 @@ "tslib": "^2.6.2" }, "peerDependencies": { - "@gala-chain/api": "1.1.11", + "@gala-chain/api": "1.1.12", "bignumber.js": "*", "class-transformer": "*", "elliptic": "*", @@ -162,10 +162,10 @@ }, "chaincode": { "name": "@gala-chain/chaincode", - "version": "1.1.11", + "version": "1.1.12", "license": "Apache-2.0", "dependencies": { - "@gala-chain/api": "1.1.11", + "@gala-chain/api": "1.1.12", "fabric-contract-api": "2.4.2", "fabric-shim": "2.4.2", "nanoid": "^3.3.6", diff --git a/package.json b/package.json index 5fc98c85f..9f22e4d17 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gala-chain/sdk", - "version": "1.1.11", + "version": "1.1.12", "license": "Apache-2.0", "scripts": { "lint": "nx run-many -t lint",