Mark S. Lewis
c323c95807
Update samples to use fabric-gateway v1.1.1 ( #842 )
...
Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>
Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>
2022-10-20 17:43:55 +01:00
James Taylor
0aa853e0c3
Update go chaincode samples
...
Update to the latest github.com/hyperledger/fabric-contract-api-go
Signed-off-by: James Taylor <jamest@uk.ibm.com>
2022-10-18 15:28:20 -04:00
Dave Enyeart
f32f77b129
Update secured asset transfer sample ( #781 )
...
A recent commit added the potential buyer to an asset's state based endorsement policy.
That change was problematic because if the transfer fell through, the buyer lost control of the asset,
in that they could no longer update the asset or change the sell price or sell to somebody else.
The asset state based endorsement policy is now based on the seller only, and we document
that additional parties could be added such as a trusted third party (although no
such party exists in test network at this time).
This commit also re-adds some necessary verifications, and make other minor edits and
comments to help users understand the sample.
Signed-off-by: David Enyeart <enyeart@us.ibm.com>
2022-07-13 14:09:14 -04:00
fraVlaca
d65bcf8ad1
added last fixes for asset-transfer-secured-agreement ( #772 )
...
Signed-off-by: fraVlaca <ocsenarf@outlook.com>
2022-06-21 13:10:06 -04:00
fraVlaca
94867dd517
updated and improved asset-transfer-secured-agreement sample ( #751 )
...
Signed-off-by: fraVlaca <ocsenarf@outlook.com>
2022-05-26 13:42:01 +01:00
sapthasurendran
4681fe7865
Secured agreement samples using gateway ( #630 )
...
* initial commit
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
Code refactor
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
* readme
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
* lint fix
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
* adopted best practises
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
* code refactor
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
* updated azure pipeline to include the app
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
* mapped json and client object
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
* Moved contract interactions to contractWrapper
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
* salt value unexported
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
* moved try catch from contract wrapper to app
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
* contract wrapper refactor
moved interfaces from utils to contract wrapper
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
* exported data objects
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
2022-05-23 14:17:10 +01:00
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
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
Brett Logan
855c8e4db3
Update Go Modules
...
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
Chris Gabriel
36b5788bad
Fix path in app.js operational instruction comment section ( #387 )
...
Signed-off-by: Chris Gabriel <chris@hyperchainlabs.com>
2020-12-05 10:09:00 -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
Bret Harrison
fdea4f0f89
Add secured agreement javascript application
...
Add the asset-transfer-secured-agreement javascript application
and have it run during CI.
Signed-off-by: Bret Harrison <beharrison@nc.rr.com>
2020-09-10 11:27:23 -04:00
Sangwon Hong
8df641f10d
correct the link to the correct URL ( #320 )
...
Signed-off-by: Sangwon Hong <qpakzk@gmail.com>
2020-09-01 17:02:15 -04:00
Chris Gabriel
fef45be995
Remove images folder from fabric-samples. ( #266 )
...
Signed-off-by: Chris Gabriel <chris_gabriel_98@yahoo.com>
Remove images from fabric-samples and move to docs.
Signed-off-by: Chris Gabriel <chris_gabriel_98@yahoo.com>
2020-07-25 19:43:22 +02:00
stephyee
31cce9e330
Update secured asset sample tutorial link and remove README ( #257 )
...
Signed-off-by: Tiffany Harris <tiffany.harris@ibm.com>
2020-07-22 14:45:57 -04:00
nikhil550
6acc140671
Add asset transfer series documentation to Fabric samples README ( #251 )
...
Signed-off-by: NIKHIL E GUPTA <negupta@us.ibm.com>
Co-authored-by: NIKHIL E GUPTA <negupta@us.ibm.com>
2020-07-21 00:33:21 +02:00
Tiffany Harris
cad6b90383
Fix unmarshaling asset in ReadAsset()
...
Signed-off-by: Tiffany Harris <tiffany.harris@ibm.com>
2020-07-20 11:51:32 -04:00
Brett Logan
a401bc92bc
Refactor Asset Secured Chaincode Into Idiomatic Go
...
Rewrites the chaincode 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-11 07:53:45 -04:00
Tiffany Harris
7b2dcbf2ed
Rename GetAsset to ReadAsset
...
Signed-off-by: Tiffany Harris <tiffany.harris@ibm.com>
2020-06-10 08:43:33 -04:00
Tiffany Harris
f1775d7fdc
Rename IssueAsset to CreateAsset
...
- Move go chaincode to chaincode-go subdirectory
- Add public description argument to CreateAsset()
Signed-off-by: Tiffany Harris <tiffany.harris@ibm.com>
2020-06-10 08:23:06 -04:00
Tiffany Harris
82eaaad954
Rename marbles_transfer to asset-transfer-secured-agreement
...
- Rename marbles_transfer to a more generic and streamlined asset
- Move sample to new directory
- Remove TODO for marbles by size query
Signed-off-by: Tiffany Harris <tiffany.harris@ibm.com>
2020-06-09 23:24:52 -04:00