From 0546fba3dce13e780bdebb07ab7d3efc20b1b48e Mon Sep 17 00:00:00 2001 From: jnjerin Date: Tue, 24 Oct 2023 09:48:34 +0300 Subject: [PATCH 1/3] updated documentation for new features Signed-off-by: jnjerin --- CHANGELOG.md | 2 +- README.md | 15 +++++++++++++++ fablo.sh | 6 ++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e4045c2..777ed0ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ### Features * Initial support for Kubernetes -* Basic support for `chaincode invoke` command +* Support for `chaincode invoke` command (tls and non-tls) * Support for `chaincodes list` command (tls and non-tls) ### Fixes diff --git a/README.md b/README.md index c04c984b..aaffe660 100644 --- a/README.md +++ b/README.md @@ -209,6 +209,21 @@ fablo chaincode upgrade Upgrades chaincode with given name on all relevant peers. Chaincode directory is specified in Fablo config file. +### chaincode invoke +Invokes chaincode with specified parameters. + +``` +fablo chaincode invoke +``` + +### chaincodes list +Gets the instantiated or installed chaincodes in the specified channel or peer channel. + + +``` +fablo chaincodes list +``` + ### Running chaincodes in dev mode Hyperledger Fabric allows to run peers in [dev mode](https://hyperledger-fabric.readthedocs.io/en/release-2.4/peer-chaincode-devmode.html) in order to allow simple develop of chaincodes. diff --git a/fablo.sh b/fablo.sh index ee5107ad..c6fde7b8 100755 --- a/fablo.sh +++ b/fablo.sh @@ -84,6 +84,12 @@ printHelp() { fablo chaincode upgrade Upgrades chaincode on all relevant peers. Chaincode directory is specified in Fablo config file. + fablo chaincode invoke + Invokes chaincode with specified parameters. + + fablo chaincodes list + Lists chaincodes installed on specified peer and channel. + fablo channel --help To list available channel query options which can be executed on running network. From 5b8ce14c495b8b3ad4e19cee1b60a9d6c503975b Mon Sep 17 00:00:00 2001 From: jnjerin Date: Tue, 24 Oct 2023 12:59:39 +0300 Subject: [PATCH 2/3] included sample code on README Signed-off-by: jnjerin --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aaffe660..7e5a1919 100644 --- a/README.md +++ b/README.md @@ -213,11 +213,16 @@ Chaincode directory is specified in Fablo config file. Invokes chaincode with specified parameters. ``` -fablo chaincode invoke +fablo chaincode invoke [transient] +``` +Sample command: + +``` +fablo chaincode invoke "my-channel1" "chaincode1" "peer0.org1.example.com" '{"Args":["KVContract:put", "name", "Willy Wonka"]}' ``` ### chaincodes list -Gets the instantiated or installed chaincodes in the specified channel or peer channel. +Gets the instantiated or installed chaincodes in the specified channel or peer. ``` From 5e6b45959de679dad6b4e1d705facfdfbf2471d2 Mon Sep 17 00:00:00 2001 From: jnjerin Date: Wed, 25 Oct 2023 08:17:57 +0300 Subject: [PATCH 3/3] standardized styling on README Signed-off-by: jnjerin --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e5a1919..d8d6c084 100644 --- a/README.md +++ b/README.md @@ -213,7 +213,7 @@ Chaincode directory is specified in Fablo config file. Invokes chaincode with specified parameters. ``` -fablo chaincode invoke [transient] +fablo chaincode invoke [transient] ``` Sample command: @@ -224,7 +224,6 @@ fablo chaincode invoke "my-channel1" "chaincode1" "peer0.org1.example.com" '{"Ar ### chaincodes list Gets the instantiated or installed chaincodes in the specified channel or peer. - ``` fablo chaincodes list ```