fabric-samples/commercial-paper/organization/digibank/contract/contract-metadata/metadata.json
Matthew B. White 6c28eca339 [FAB-13823] Commercial Paper fixes
Change-Id: I35e3e02fe9672ea79bd96e4d49926c900dfa627d
Signed-off-by: Matthew B. White <whitemat@uk.ibm.com>
2019-03-06 13:30:38 +00:00

137 lines
No EOL
4.5 KiB
JSON

{
"$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": {}
}
}