npm install -g composer-cli@0.19
npm install -g composer-rest-server@0.19
npm install -g generator-hyperledger-composer@0.19
npm install -g yo
npm install -g composer-playground@0.19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getUrlParams() { | |
let params = {}; | |
let queryString = window.location.search.slice(1); // Remove the leading '?' | |
let pairs = queryString.split('&'); | |
pairs.forEach(pair => { | |
let [key, value] = pair.split('='); | |
params[decodeURIComponent(key)] = decodeURIComponent(value || ''); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIIDuDCCAqCgAwIBAgICBnUwDQYJKoZIhvcNAQELBQAwfTEVMBMGA1UEBgwMQ09V | |
TlRSWV9DT0RFMREwDwYDVQQIEwhQUk9WSU5DRTENMAsGA1UEBxMEQ0lUWTEQMA4G | |
A1UECRMHQUREUkVTUzEUMBIGA1UEEQwLUE9TVEFMX0NPREUxGjAYBgNVBAoMEU9S | |
R0FOSVpBVElPTl9OQU1FMB4XDTIwMDQwNDIyMTMxNloXDTMwMDQwNDIyMTMxNlow | |
fTEVMBMGA1UEBgwMQ09VTlRSWV9DT0RFMREwDwYDVQQIEwhQUk9WSU5DRTENMAsG | |
A1UEBxMEQ0lUWTEQMA4GA1UECRMHQUREUkVTUzEUMBIGA1UEEQwLUE9TVEFMX0NP | |
REUxGjAYBgNVBAoMEU9SR0FOSVpBVElPTl9OQU1FMIIBIjANBgkqhkiG9w0BAQEF | |
AAOCAQ8AMIIBCgKCAQEA506PdzWfgwcMOQ7q7Cn4SZUT93vE1cMsEmpCxL/QUyCy | |
NIapl71m0C7POqJKHGd6iOrEh7yHWLDoqj6afB5HeT8l9XteJVVJq0VhoQJdIreF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIIDuDCCAqCgAwIBAgICBnUwDQYJKoZIhvcNAQELBQAwfTEVMBMGA1UEBgwMQ09V | |
TlRSWV9DT0RFMREwDwYDVQQIEwhQUk9WSU5DRTENMAsGA1UEBxMEQ0lUWTEQMA4G | |
A1UECRMHQUREUkVTUzEUMBIGA1UEEQwLUE9TVEFMX0NPREUxGjAYBgNVBAoMEU9S | |
R0FOSVpBVElPTl9OQU1FMB4XDTIwMDQwNDIyMDQxM1oXDTMwMDQwNDIyMDQxM1ow | |
fTEVMBMGA1UEBgwMQ09VTlRSWV9DT0RFMREwDwYDVQQIEwhQUk9WSU5DRTENMAsG | |
A1UEBxMEQ0lUWTEQMA4GA1UECRMHQUREUkVTUzEUMBIGA1UEEQwLUE9TVEFMX0NP | |
REUxGjAYBgNVBAoMEU9SR0FOSVpBVElPTl9OQU1FMIIBIjANBgkqhkiG9w0BAQEF | |
AAOCAQ8AMIIBCgKCAQEA20Zg06PhCr1Ev3VRFwsNGa0JTGtKNubvzQQr+Py1IzBy | |
RtTIThYj/icsO9z/U7SHZwM97B3NVdjYGuZhcBf8kLPMAF7b11LXrqqNOcB3fkd1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A shipment has been received by an importer | |
* @param {org.acme.shipping.perishable.ShipmentReceived} shipmentReceived - the ShipmentReceived transaction | |
* @transaction | |
*/ | |
async function payOut(shipmentReceived) { // eslint-disable-line no-unused-vars | |
const contract = shipmentReceived.shipment.contract; | |
const shipment = shipmentReceived.shipment; | |
let payOut = contract.unitPrice * shipment.unitCount; |
I hereby claim:
- I am saharshagrawal on github.
- I am saharsh (https://keybase.io/saharsh) on keybase.
- I have a public key ASCUpZ1bVommhrHtYukPuwUt-MUMPdC9ZjVFXTR0rJf4FAo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.13; | |
import "./Redemption.sol"; | |
import "./Rewards.sol"; | |
import "https://github.com/OpenZeppelin/zeppelin-solidity/contracts/math/SafeMath.sol"; | |
contract Factory { | |
mapping (uint => address) private contracts; | |
address private owner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x73DABA8C08CcfD9E986E32B9f6365b3601686b02 |