Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Commit

Permalink
Add attributes (#8)
Browse files Browse the repository at this point in the history
* Adding attributions throughout

Signed-off-by: Alexandra Groetsema <alexandrag2254@gmail.com>
  • Loading branch information
alexandrag2254 authored and tkuhrt committed Oct 26, 2017
1 parent 2923069 commit 6b43283
Show file tree
Hide file tree
Showing 19 changed files with 78 additions and 8 deletions.
3 changes: 3 additions & 0 deletions LFS171x/fabric-material/basic-network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ To stop it, run ``stop.sh``
To completely remove all incriminating evidence of the network
on your system, run ``teardown.sh``.

This code is written by the Hyperledger Fabric community. Original source code can be found here: (https://github.com/hyperledger/fabric-samples).

## Licenses

Source code is licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at
Expand All @@ -19,3 +21,4 @@ Source code is licensed under the Apache License, Version 2.0 (the "License"). Y


<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />Documentation is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>

4 changes: 4 additions & 0 deletions LFS171x/fabric-material/chaincode/sample-chaincode.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
// Import dependencies
// Import the chaincode shim package and the peer protobuf package

/* This code is based on code written by the Hyperledger Fabric community.
Original code can be found here: https://github.com/hyperledger/fabric-samples/blob/release/chaincode/chaincode_example02/chaincode_example02.go
*/

package main

import (
Expand Down
5 changes: 4 additions & 1 deletion LFS171x/fabric-material/chaincode/tuna-app/tuna-chaincode.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// SPDX-License-Identifier: Apache-2.0

/*
* Sample Chaincode based on Demonstrated Scenario
Sample Chaincode based on Demonstrated Scenario
This code is based on code written by the Hyperledger Fabric community.
Original code can be found here: https://github.com/hyperledger/fabric-samples/blob/release/chaincode/fabcar/fabcar.go
*/

package main
Expand Down
5 changes: 4 additions & 1 deletion LFS171x/fabric-material/tuna-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
This application demonstrates the creation and transfer of tuna fish shipments between actors leveraging Hyperledger Fabric in the supply chain. In this exercise we will set up the minimum number of nodes required to develop chaincode. It has a single peer and a single organization.

if getting error about running ./startFabric.sh permission
chmod a+x startFabric.sh

chmod a+x startFabric.sh

This code is based on code written by the Hyperledger Fabric community. Source code can be found here: (https://github.com/hyperledger/fabric-samples).
6 changes: 6 additions & 0 deletions LFS171x/fabric-material/tuna-app/controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
//SPDX-License-Identifier: Apache-2.0

/*
This code is based on code written by the Hyperledger Fabric community.
Original code can be found here: https://github.com/hyperledger/fabric-samples/blob/release/fabcar/query.js
and https://github.com/hyperledger/fabric-samples/blob/release/fabcar/invoke.js
*/

// call the packages we need
var express = require('express'); // call express
var app = express(); // define our app using express
Expand Down
3 changes: 3 additions & 0 deletions LFS171x/fabric-material/tuna-app/registerAdmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
*/
/*
* Chaincode Invoke
This code is based on code written by the Hyperledger Fabric community.
Original code can be found here: https://gerrit.hyperledger.org/r/#/c/14395/4/fabcar/enrollAdmin.js
*/

var Fabric_Client = require('fabric-client');
Expand Down
4 changes: 4 additions & 0 deletions LFS171x/fabric-material/tuna-app/registerUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
*/
/*
* Chaincode Invoke
This code is based on code written by the Hyperledger Fabric community.
Original code can be found here: https://gerrit.hyperledger.org/r/#/c/14395/4/fabcar/registerUser.js
*/

var Fabric_Client = require('fabric-client');
Expand Down
4 changes: 4 additions & 0 deletions LFS171x/fabric-material/tuna-app/src/changeTunaHolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
*/
/*
* Chaincode Invoke
This code is based on code written by the Hyperledger Fabric community.
Original code can be found here: https://github.com/hyperledger/fabric-samples/blob/release/fabcar/invoke.js
*/

var Fabric_Client = require('fabric-client');
Expand Down
3 changes: 3 additions & 0 deletions LFS171x/fabric-material/tuna-app/src/queryAllTuna.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
*/
/*
* Hyperledger Fabric Sample Query Program for tuna-app: Chaincode Invoke
This code is based on code written by the Hyperledger Fabric community.
Original code can be found here: https://github.com/hyperledger/fabric-samples/blob/release/fabcar/query.js
*/

var Fabric_Client = require('fabric-client');
Expand Down
8 changes: 5 additions & 3 deletions LFS171x/fabric-material/tuna-app/src/queryTuna.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
'use strict';
/*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Hyperledger Fabric Sample Query Program for tuna-app: Chaincode Invoke
Hyperledger Fabric Sample Query Program for tuna-app: Chaincode Invoke
This code is based on code written by the Hyperledger Fabric community.
Original code can be found here: https://github.com/hyperledger/fabric-samples/blob/release/fabcar/query.js
*/

var Fabric_Client = require('fabric-client');
Expand Down
8 changes: 5 additions & 3 deletions LFS171x/fabric-material/tuna-app/src/recordTuna.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
'use strict';
/*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Chaincode Invoke
*/
This code is based on code written by the Hyperledger Fabric community.
Original code can be found here: https://github.com/hyperledger/fabric-samples/blob/release/fabcar/invoke.js
*/

var Fabric_Client = require('fabric-client');
var path = require('path');
Expand Down
3 changes: 3 additions & 0 deletions LFS171x/fabric-material/tuna-app/startFabric.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
# This code is based on code written by the Hyperledger Fabric community.
# Original code can be found here: https://github.com/hyperledger/fabric-samples/blob/release/fabcar/startFabric.sh
#
# Exit on first error

set -e

# don't rewrite paths for Windows Git Bash users
Expand Down
1 change: 1 addition & 0 deletions LFS171x/sawtooth-material/sawtooth-tuna/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ We will be looking at a sample blockchain application that interfaces with Hyper

This is an example of a simple Hyperledger Sawtooth blockchain application written in JavaScript. Hyperledger Sawtooth Tuna Chain allows a user to create named assets (tuna fish) and transfer them between different holders designated by a public key.

This application was written by Zac Delventhal maintainer on Hyperledger Sawtooth. Original source code can be found here (https://github.com/delventhalz/transfer-chain-js).
3 changes: 3 additions & 0 deletions LFS171x/sawtooth-material/sawtooth-tuna/client/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!-- SPDX-License-Identifier: Apache-2.0 -->
<!-- This code was written by Zac Delventhal @delventhalz.
Original source code can be found here: https://github.com/delventhalz/transfer-chain-js/blob/master/client/index.html
-->

<!DOCTYPE html>
<html>
Expand Down
5 changes: 5 additions & 0 deletions LFS171x/sawtooth-material/sawtooth-tuna/client/src/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// SPDX-License-Identifier: Apache-2.0

/*
This code was written by Zac Delventhal @delventhalz.
Original source code can be found here: https://github.com/delventhalz/transfer-chain-js/blob/master/client/src/app.js
*/

'use strict'

const $ = require('jquery')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// SPDX-License-Identifier: Apache-2.0

/*
This code was written by Zac Delventhal @delventhalz.
Original source code can be found here :https://github.com/delventhalz/transfer-chain-js/blob/master/client/src/components.js
*/

'use strict'

const $ = require('jquery')
Expand Down
5 changes: 5 additions & 0 deletions LFS171x/sawtooth-material/sawtooth-tuna/client/src/state.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// SPDX-License-Identifier: Apache-2.0

/*
This code was written by Zac Delventhal @delventhalz.
Original source code can be found here: https://github.com/delventhalz/transfer-chain-js/blob/master/client/src/state.js
*/

'use strict'

const $ = require('jquery')
Expand Down
5 changes: 5 additions & 0 deletions LFS171x/sawtooth-material/sawtooth-tuna/processor/handlers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// SPDX-License-Identifier: Apache-2.0

/*
This code was written by Zac Delventhal @delventhalz.
Original source code can be found here: https://github.com/delventhalz/transfer-chain-js/blob/master/processor/handlers.js
*/

'use strict'

const { createHash } = require('crypto')
Expand Down
6 changes: 6 additions & 0 deletions LFS171x/sawtooth-material/sawtooth-tuna/processor/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// SPDX-License-Identifier: Apache-2.0

/*
This code was written by Zac Delventhal @delventhalz.
Original source code can be found here: https://github.com/delventhalz/transfer-chain-js/blob/master/processor/index.js
*/


'use strict'

const { TransactionProcessor } = require('sawtooth-sdk/processor')
Expand Down

0 comments on commit 6b43283

Please sign in to comment.