fabric-contract-api
Advanced tools
Comparing version 1.4.5 to 1.4.6
{ | ||
"name": "fabric-contract-api", | ||
"version": "1.4.5", | ||
"version": "1.4.6", | ||
"lockfileVersion": 1, | ||
"requires": true, | ||
"dependencies": { | ||
"async": { | ||
"version": "2.6.3", | ||
"resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", | ||
"integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", | ||
"@dabh/diagnostics": { | ||
"version": "2.0.2", | ||
"resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.2.tgz", | ||
"integrity": "sha512-+A1YivoVDNNVCdfozHSR8v/jyuuLTMXwjWuxPFlFlUapXoGc+Gj9mDlTDDfrwl7rXCl2tNZ0kE8sIBO6YOn96Q==", | ||
"requires": { | ||
"lodash": "^4.17.14" | ||
"colorspace": "1.1.x", | ||
"enabled": "2.0.x", | ||
"kuler": "^2.0.0" | ||
} | ||
}, | ||
"async": { | ||
"version": "3.2.0", | ||
"resolved": "https://registry.npmjs.org/async/-/async-3.2.0.tgz", | ||
"integrity": "sha512-TR2mEZFVOj2pLStYxLht7TyfuRzaydfpxr3k9RpHIzMgw7A64dzsdqCxH1WJyQdoe8T10nDXd9wnEigmiuHIZw==" | ||
}, | ||
"class-transformer": { | ||
@@ -51,7 +58,2 @@ "version": "0.2.3", | ||
}, | ||
"colornames": { | ||
"version": "1.1.1", | ||
"resolved": "https://registry.npmjs.org/colornames/-/colornames-1.1.1.tgz", | ||
"integrity": "sha1-+IiQMGhcfE/54qVZ9Qd+t2qBb5Y=" | ||
}, | ||
"colors": { | ||
@@ -76,25 +78,7 @@ "version": "1.4.0", | ||
}, | ||
"diagnostics": { | ||
"version": "1.1.1", | ||
"resolved": "https://registry.npmjs.org/diagnostics/-/diagnostics-1.1.1.tgz", | ||
"integrity": "sha512-8wn1PmdunLJ9Tqbx+Fx/ZEuHfJf4NKSN2ZBj7SJC/OWRWha843+WsTjqMe1B5E3p28jqBlp+mJ2fPVxPyNgYKQ==", | ||
"requires": { | ||
"colorspace": "1.1.x", | ||
"enabled": "1.0.x", | ||
"kuler": "1.0.x" | ||
} | ||
}, | ||
"enabled": { | ||
"version": "1.0.2", | ||
"resolved": "https://registry.npmjs.org/enabled/-/enabled-1.0.2.tgz", | ||
"integrity": "sha1-ll9lE9LC0cX0ZStkouM5ZGf8L5M=", | ||
"requires": { | ||
"env-variable": "0.0.x" | ||
} | ||
"version": "2.0.0", | ||
"resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz", | ||
"integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==" | ||
}, | ||
"env-variable": { | ||
"version": "0.0.6", | ||
"resolved": "https://registry.npmjs.org/env-variable/-/env-variable-0.0.6.tgz", | ||
"integrity": "sha512-bHz59NlBbtS0NhftmR8+ExBEekE7br0e01jw+kk0NDro7TtZzBYZ5ScGPs3OmwnpyfHTHOtr1Y6uedCdrIldtg==" | ||
}, | ||
"fast-safe-stringify": { | ||
@@ -106,6 +90,11 @@ "version": "2.0.7", | ||
"fecha": { | ||
"version": "2.3.3", | ||
"resolved": "https://registry.npmjs.org/fecha/-/fecha-2.3.3.tgz", | ||
"integrity": "sha512-lUGBnIamTAwk4znq5BcqsDaxSmZ9nDVJaij6NvRt/Tg4R69gERA+otPKbS86ROw9nxVMw2/mp1fnaiWqbs6Sdg==" | ||
"version": "4.2.0", | ||
"resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.0.tgz", | ||
"integrity": "sha512-aN3pcx/DSmtyoovUudctc8+6Hl4T+hI9GBBHLjA76jdZl7+b1sgh5g4k+u/GL3dTy1/pnYzKp69FpJ0OicE3Wg==" | ||
}, | ||
"fn.name": { | ||
"version": "1.1.0", | ||
"resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz", | ||
"integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==" | ||
}, | ||
"get-params": { | ||
@@ -127,5 +116,5 @@ "version": "0.1.2", | ||
"is-stream": { | ||
"version": "1.1.0", | ||
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", | ||
"integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" | ||
"version": "2.0.0", | ||
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", | ||
"integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==" | ||
}, | ||
@@ -138,22 +127,14 @@ "isarray": { | ||
"kuler": { | ||
"version": "1.0.1", | ||
"resolved": "https://registry.npmjs.org/kuler/-/kuler-1.0.1.tgz", | ||
"integrity": "sha512-J9nVUucG1p/skKul6DU3PUZrhs0LPulNaeUOox0IyXDi8S4CztTHs1gQphhuZmzXG7VOQSf6NJfKuzteQLv9gQ==", | ||
"requires": { | ||
"colornames": "^1.1.1" | ||
} | ||
"version": "2.0.0", | ||
"resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", | ||
"integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==" | ||
}, | ||
"lodash": { | ||
"version": "4.17.15", | ||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", | ||
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" | ||
}, | ||
"logform": { | ||
"version": "2.1.2", | ||
"resolved": "https://registry.npmjs.org/logform/-/logform-2.1.2.tgz", | ||
"integrity": "sha512-+lZh4OpERDBLqjiwDLpAWNQu6KMjnlXH2ByZwCuSqVPJletw0kTWJf5CgSNAUKn1KUkv3m2cUz/LK8zyEy7wzQ==", | ||
"version": "2.2.0", | ||
"resolved": "https://registry.npmjs.org/logform/-/logform-2.2.0.tgz", | ||
"integrity": "sha512-N0qPlqfypFx7UHNn4B3lzS/b0uLqt2hmuoa+PpuXNYgozdJYAyauF5Ky0BWVjrxDlMWiT3qN4zPq3vVAfZy7Yg==", | ||
"requires": { | ||
"colors": "^1.2.1", | ||
"fast-safe-stringify": "^2.0.4", | ||
"fecha": "^2.3.3", | ||
"fecha": "^4.2.0", | ||
"ms": "^2.1.1", | ||
@@ -169,5 +150,8 @@ "triple-beam": "^1.3.0" | ||
"one-time": { | ||
"version": "0.0.4", | ||
"resolved": "https://registry.npmjs.org/one-time/-/one-time-0.0.4.tgz", | ||
"integrity": "sha1-+M33eISCb+Tf+T46nMN7HkSAdC4=" | ||
"version": "1.0.0", | ||
"resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz", | ||
"integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==", | ||
"requires": { | ||
"fn.name": "1.x.x" | ||
} | ||
}, | ||
@@ -180,5 +164,5 @@ "process-nextick-args": { | ||
"readable-stream": { | ||
"version": "3.5.0", | ||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.5.0.tgz", | ||
"integrity": "sha512-gSz026xs2LfxBPudDuI41V1lka8cxg64E66SGe78zJlsUofOg/yqwezdIcdfwik6B4h8LFmWPA9ef9X3FiNFLA==", | ||
"version": "3.6.0", | ||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", | ||
"integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", | ||
"requires": { | ||
@@ -196,5 +180,5 @@ "inherits": "^2.0.3", | ||
"safe-buffer": { | ||
"version": "5.2.0", | ||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", | ||
"integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==" | ||
"version": "5.2.1", | ||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", | ||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" | ||
}, | ||
@@ -238,23 +222,23 @@ "simple-swizzle": { | ||
"winston": { | ||
"version": "3.2.1", | ||
"resolved": "https://registry.npmjs.org/winston/-/winston-3.2.1.tgz", | ||
"integrity": "sha512-zU6vgnS9dAWCEKg/QYigd6cgMVVNwyTzKs81XZtTFuRwJOcDdBg7AU0mXVyNbs7O5RH2zdv+BdNZUlx7mXPuOw==", | ||
"version": "3.3.3", | ||
"resolved": "https://registry.npmjs.org/winston/-/winston-3.3.3.tgz", | ||
"integrity": "sha512-oEXTISQnC8VlSAKf1KYSSd7J6IWuRPQqDdo8eoRNaYKLvwSb5+79Z3Yi1lrl6KDpU6/VWaxpakDAtb1oQ4n9aw==", | ||
"requires": { | ||
"async": "^2.6.1", | ||
"diagnostics": "^1.1.1", | ||
"is-stream": "^1.1.0", | ||
"logform": "^2.1.1", | ||
"one-time": "0.0.4", | ||
"readable-stream": "^3.1.1", | ||
"@dabh/diagnostics": "^2.0.2", | ||
"async": "^3.1.0", | ||
"is-stream": "^2.0.0", | ||
"logform": "^2.2.0", | ||
"one-time": "^1.0.0", | ||
"readable-stream": "^3.4.0", | ||
"stack-trace": "0.0.x", | ||
"triple-beam": "^1.3.0", | ||
"winston-transport": "^4.3.0" | ||
"winston-transport": "^4.4.0" | ||
} | ||
}, | ||
"winston-transport": { | ||
"version": "4.3.0", | ||
"resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.3.0.tgz", | ||
"integrity": "sha512-B2wPuwUi3vhzn/51Uukcao4dIduEiPOcOt9HJ3QeaXgkJ5Z7UwpBzxS4ZGNHtrxrUvTwemsQiSys0ihOf8Mp1A==", | ||
"version": "4.4.0", | ||
"resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.4.0.tgz", | ||
"integrity": "sha512-Lc7/p3GtqtqPBYYtS6KCN3c77/2QCev51DvcJKbkFPQNoj1sinkGwLGFDxkXY9J6p9+EPnYs+D90uwbnaiURTw==", | ||
"requires": { | ||
"readable-stream": "^2.3.6", | ||
"readable-stream": "^2.3.7", | ||
"triple-beam": "^1.2.0" | ||
@@ -261,0 +245,0 @@ }, |
{ | ||
"name": "fabric-contract-api", | ||
"version": "1.4.5", | ||
"version": "1.4.6", | ||
"tag": "latest-1.4", | ||
@@ -5,0 +5,0 @@ "description": "A node.js implementation of Hyperledger Fabric chaincode shim, to allow endorsing peers and user-provided chaincodes to communicate with each other", |
@@ -7,9 +7,9 @@ [![NPM](https://nodei.co/npm/fabric-contract-api.svg?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/fabric-contract-api/) | ||
The `fabric-contract-api` provides the *contract interface* a high level API for application developers to implement [Smart Contracts](https://hyperledger-fabric.readthedocs.io/en/latest/glossary.html#smart-contract). Working with this API provides a high level entry point to writing business logic. | ||
The `fabric-contract-api` provides the *contract interface* a high level API for application developers to implement [Smart Contracts](https://hyperledger-fabric.readthedocs.io/en/release-1.4/glossary.html#smart-contract). Working with this API provides a high level entry point to writing business logic. | ||
Within Hyperledger Fabric, Smart Contracts can also be referred to as [Chaincode](https://hyperledger-fabric.readthedocs.io/en/latest/glossary.html#chaincode). To be more specific, the term chaincode is preferred to be used to refer to the overall container that is hosting the contracts. | ||
Within Hyperledger Fabric, Smart Contracts can also be referred to as [Chaincode](https://hyperledger-fabric.readthedocs.io/en/release-1.4/glossary.html#chaincode). To be more specific, the term chaincode is preferred to be used to refer to the overall container that is hosting the contracts. | ||
The `fabric-shim` provides the *chaincode interface*, a lower level API for implementing "Smart Contracts". It also _currently_ provides the implementation to support communication with Hyperledger Fabric peers for Smart Contracts written using the `fabric-contract-api`. To confirm that this is the same as the `fabric-shim` in previous versions of Hyperledger Fabric. | ||
Detailed explanation on the concept and programming model can be found here: [http://hyperledger-fabric.readthedocs.io/en/latest/chaincode.html](http://hyperledger-fabric.readthedocs.io/en/latest/chaincode.html). | ||
Detailed explanation on the concept and programming model can be found here: [http://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode.html](http://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode.html). | ||
@@ -93,3 +93,3 @@ ## Contract Interface | ||
### Usage | ||
The [chaincode interface](https://fabric-shim.github.io/ChaincodeInterface.html) contains two methods to be implemented: | ||
The [chaincode interface](https://hyperledger.github.io/fabric-chaincode-node/release-1.4/api/fabric-shim.ChaincodeInterface.html) contains two methods to be implemented: | ||
```javascript | ||
@@ -129,3 +129,3 @@ const shim = require('fabric-shim'); | ||
### API Reference | ||
Visit [fabric-shim.github.io](https://fabric-shim.github.io/) and click on "Classes" link in the navigation bar on the top to view the list of class APIs. | ||
Visit [API Reference](https://hyperledger.github.io/fabric-chaincode-node/release-1.4/api/) and click on "Classes" link in the navigation bar on the top to view the list of class APIs. | ||
@@ -132,0 +132,0 @@ |
{ | ||
"$schema": "https://fabric-shim.github.io/release-1.4/contract-schema.json", | ||
"$schema": "https://hyperledger.github.io/fabric-chaincode-node/release-1.4/api/contract-schema.json", | ||
"contracts": { | ||
@@ -4,0 +4,0 @@ "ShippingContract": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
168800
4237