Mark S. Lewis
f151039f8a
Updates to asset-transfer-basic Gateway sample to align with docs ( #553 )
...
Also install goimports globally to run the linting check rather than installing to each gomodule, which was causing dependency conflicts.
Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>
2021-12-09 10:20:52 +00:00
sapthasurendran
e963ddc726
lint Fix ( #555 )
...
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
2021-12-09 09:44:25 +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
Matthew B White
3ba63b15d6
Update go.mod ( #500 )
...
Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
2021-10-06 11:35:43 -04: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
denyeart
ee959a2eb0
Update to Go 1.16.7 ( #491 )
...
Update Go to 1.16.7 and run "go mod tidy"
to clean up go modules in samples.
Signed-off-by: David Enyeart <enyeart@us.ibm.com>
2021-10-01 09:16:56 +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
Brett Logan
855c8e4db3
Update Go Modules
...
Signed-off-by: Brett Logan <lindluni@github.com>
2021-02-11 18:11:17 -05:00
Brett Logan
41bb1d0b5c
Fix Linting Issues
...
Signed-off-by: Brett Logan <lindluni@github.com>
2021-02-11 18:11:17 -05:00
Brett Logan
08aaaf0313
Update Javascript and Typescript Deps ( #403 )
...
Update all of the Node deps to 2.2.<latest>
and regenerate existing package-lock.json files
Signed-off-by: Brett Logan <brett.t.logan@ibm.com>
Co-authored-by: Brett Logan <brett.t.logan@ibm.com>
2021-01-13 12:19:31 -05:00
Julian Castrence
d6773d502c
Remove Short Names and Replace With Full Path in Samples
...
Signed-off-by: Julian Castrence <juliancastrence@ibm.com>
2020-12-02 23:59:42 -05: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
Sijo Cherian
36a2d3a7d0
Switched private data JS app to commons util ( #294 )
...
* Switched private data JS app to commons util
Reusing JS app & ca utils
Refactored for Org1 & Org2
assettransfer-basic JS app update for commons util refactor
Signed-off-by: Sijo Cherian <sijo@ibm.com>
* fixed assettransfer-ledgerqueries & private usage of commons util refactor
Signed-off-by: Sijo Cherian <sijo@ibm.com>
Co-authored-by: Sijo Cherian <sijo@ibm.com>
2020-08-13 08:22:05 -04:00
Bret Harrison
b92d61d5cf
FIx ledger queries package.json
...
Update the package.json to indicate the correct sample
Signed-off-by: Bret Harrison <beharrison@nc.rr.com>
2020-08-13 05:36:33 -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
denyeart
8e2535ee65
Fix ledger queries chaincode-go InitLedger ( #293 )
...
The InitLedger was not writing the composite key for the color index.
Therefore TransferAssetByColor was not working.
Now InitLedger will call CreateAsset which creates both the asset
and the color index entry.
Signed-off-by: David Enyeart <enyeart@us.ibm.com>
2020-08-11 17:51:05 -04:00
denyeart
1d6d557570
Fix ledger queries sample - history and pagination ( #288 )
...
Fix history query results.
Fix paginated query results.
Signed-off-by: David Enyeart <enyeart@us.ibm.com>
2020-08-10 08:15:34 -04:00
r2roC
cb8e03b726
asset-transfer-ledger-queries java application. ( #280 )
...
Running TestApp: gradle runApp
Signed-off-by: r2roC <arturo@IBM.com>
2020-08-06 12:00:26 -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
Brett Logan
c621ca9eb4
Fix constructQueryResponseFromIterator
...
constructQueryResponseFromIterator was returning a QueryResult
slice as opposed to an Asset slice.
Signed-off-by: Brett Logan <brett.t.logan@ibm.com>
2020-07-15 13:22:11 -04:00
Brett Logan
5f80da096c
Refactor Asset Query Chaincode Into Idiomatic Go
...
Rewrites the chaincod in idiomatic Go and cleans up
the general implementation.
A future commit should push the chaincode logic itself
into a separate package as chaincode cannot be tested
when the logic is part of the main package.
Signed-off-by: Brett Logan <brett.t.logan@ibm.com>
2020-07-15 10:36:04 -04:00
r2roC
1249207afd
Update asset_transfer_ledger_chaincode.go
...
Small off-by-1 bug fix.
Signed-off-by: r2roC <arturo@IBM.com>
2020-07-10 07:39:46 -04:00
Tiffany Harris
2bd1599d83
Add asset transfer ledger queries go chaincode sample
...
- Add new generic asset transfer sample based on the existing marbles02 sample
- Add InitLedger() to create base assets
- Add AssetExists() to check for an assets existence in the world state
Signed-off-by: Tiffany Harris <tiffany.harris@ibm.com>
2020-06-25 09:15:01 -04:00