Dave Enyeart
2f3e9ffe3e
Fix ledger queries sample ( #655 )
...
-Go chaincode - Paginated range query should return the bookmark so that next page can be requested
-Javascript chaincode - Make query return JSON consistent with Go chaincode
-Javascript app was broken at bookmark query due to invalid JSON parsing from inconsistent chaincode responses
-Javascript and Java app had incorrect comments
Signed-off-by: David Enyeart <enyeart@us.ibm.com>
2022-03-09 08:49:03 +00:00
David Faulstich Diniz Reis
7fd6edb662
Query assets with pagination functions of marbles02 and asset_transfer_ledger_chaincode chaincodes without ResponseMetadata fetchedRecordsCount and bookmark ( #547 )
...
Signed-off-by: David Faulstich Diniz Reis <davidfdr@gmail.com>
2021-11-25 15:51:51 +00:00
denyeart
3ba21b4f11
Fix function comment in asset-transfer-ledger-queries ( #502 )
...
Fix typo in function comment.
Thanks to RobertBetschinger for finding this issue.
Signed-off-by: David Enyeart <enyeart@us.ibm.com>
2021-10-26 11:22:42 +01:00
sapthasurendran
56a1bf3e19
* Made consistent lint command ( #495 )
...
* Removed global install of lint modules
* Fixed Lint Issues
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
added lint script forapplication javascript
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
updated lint command for chaincode javascript
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
updated lint script
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
remove installing dependencies
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
added lint script to js projects
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
added more lint scripts
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
added more lint scripts
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
added missing npm lint command
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
added missing eslint npm module
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
Fix missing npm lint command
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
added missing eslint npm module to auction-simple javascctipt app
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
added eslint npm module
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
added eslint dependency
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
added eslint dependency
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
added eslint dependency
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
Single command for ts js lint
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
Fix or condition in lint.sh
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
2021-10-06 13:33:29 +01:00
yuppieghost
04806b604d
Update asset_transfer_ledger_chaincode.js ( #452 )
...
fabric 2.x use **txId ** in res.value
Signed-off-by: yuppieghost <wjj315315@gmail.com>
2021-07-06 08:36:17 +01:00
Matthew B White
ce5186008b
Correct index location ( #443 )
...
Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
2021-04-29 11:21:41 +02:00
Arnaud J Le Hors
6d043af487
Add repolinter support
...
Fix link in SECURITY file, and add missing copyright and license
notices.
To check, run: repolinter --rulesetUrl https://github.com/hyperledger-labs/hyperledger-community-management-tools/raw/main/repo_structure/repolint.json
Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
2021-04-23 15:35:20 -04:00
JGONGSQ
c6956e5057
Update asset_transfer_ledger_chaincode.js ( #368 )
...
the `let` def wont get the object of asset, and generate an error when init the ledger
Signed-off-by: James <james.gong927@gmail.com>
2020-11-10 15:22:05 +01:00
Brett Logan
11c05fa612
Add missing apps and chaincodes to CI
...
Adds the apps and chaincodes to linting and testing
CI that weren't added before.
Linting issues were corrected where necessary to make CI pass.
The Basic-Go application and Private-Javascript application
are currently disabled pending fixes currently being worked on.
Signed-off-by: Brett Logan <brett.t.logan@ibm.com>
2020-08-16 23:11:24 -04:00
Bret Harrison
f361386231
Add the javascript application for ledger queries
...
Add the asset-transfer-ledger-queries javascript application.
Update the CI script to run it against go and javascript chaincode.
Signed-off-by: Bret Harrison <beharrison@nc.rr.com>
2020-08-11 22:32:34 -04:00
r2roC
6e49a18d90
I removed some unnecessary comments that I left there by accident. ( #278 )
...
I also capitalized 'Tom' as that is what the asset is initialized to.
Signed-off-by: r2roC <arturo@IBM.com>
2020-08-04 19:45:47 -04:00
r2roC
64f280a1f3
Update asset_transfer_ledger_chaincode.js
...
Standardized function names
Signed-off-by: r2roC <arturo@IBM.com>
2020-07-27 09:32:36 -04:00
r2roC
c2b6fcfd3f
Standardized createAsset parameters, removed getAllAssets function, and changed transferAssetsBasedOnColor to match go-chaincode
...
Signed-off-by: r2roC <arturo@IBM.com>
2020-07-27 09:32:36 -04:00
r2roC
1c5cf4383c
Added new lines at the bottom of index.js and asset_transfer_ledger_chaincode.js. Modified node version in package.json. Modified error messages in the chaincode to all begin uppercase.
...
Signed-off-by: r2roC <arturo@IBM.com>
2020-07-27 09:32:36 -04:00
r2roC
666e61ec6e
fixed a couple unused variable issues
...
Signed-off-by: r2roC <arturo@IBM.com>
2020-07-27 09:32:36 -04:00
r2roC
af81e1287f
Javascript version of asset-transfer-ledger-chaincode.go
...
Tested using the test network
Adapted from marbles02
Signed-off-by: r2roC <arturo@IBM.com>
2020-07-27 09:32:36 -04:00