{ "$schema": "http://fabric-shim.github.io/contract-schema.json", "info": { "title": "papercontract", "version": "1.4.1", "description": "Commercial Paper example", "termsOfService": "https://github.com/hyperledger/fabric-samples/", "contact": { "name": "Hyperledger Fabric", "url": "https://chat.hyperledger.org/channel/fabric-samples", "email": "fabric@lists.hyperledger.org" }, "license": { "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" } }, "contracts": { "org.papernet.commercialpaper": { "name": "org.papernet.commercialpaper", "transactions": [ { "name": "issue", "parameters": [ { "name": "issuer", "schema": { "type":"string" } }, { "name": "paperNumber", "schema": { "type":"integer" } }, { "name": "issueDateTime", "schema": { "type":"string" } }, { "name": "maturityDateTime", "schema": { "type":"string" } }, { "name": "faceValue", "schema": { "type":"integer" } } ] }, { "name": "buy", "parameters": [ { "name": "issuer", "schema": { "type":"string" } }, { "name": "paperNumber", "schema": { "type":"integer" } }, { "name": "currentOwner", "schema": { "type":"string" } }, { "name": "newOwner", "schema": { "type":"string" } }, { "name": "price", "schema": { "type":"integer" } }, { "name": "purchaseDateTime", "schema": { "type":"string" } } ] }, { "name": "redeem", "parameters": [ { "name": "issuer", "schema": { "type":"string" } }, { "name": "paperNumber", "schema": { "type":"integer" } }, { "name": "redeemingOwner", "schema": { "type":"string" } }, { "name": "redeemDateTime", "schema": { "type":"string" } } ] } ], "info": { "title": "", "version": "1.4.1" } } }, "components": { "schemas": {} } }