@tradle/models
Version:
models for tradle apps
105 lines (104 loc) • 1.7 kB
JSON
{
"type": "tradle.Model",
"id": "tradle.SealState",
"title": "Seal State",
"properties": {
"sealId": {
"type": "string"
},
"link": {
"type": "string"
},
"permalink": {
"type": "string"
},
"headerHash": {
"type": "string"
},
"prevHeaderHash": {
"type": "string"
},
"forResource": {
"type": "object",
"ref": "tradle.Object"
},
"counterparty": {
"type": "string"
},
"blockchain": {
"type": "string"
},
"network": {
"type": "string"
},
"address": {
"type": "string"
},
"pubKey": {
"type": "object",
"range": "json"
},
"watchType": {
"type": "string"
},
"confirmations": {
"type": "number"
},
"write": {
"type": "boolean"
},
"errors": {
"type": "object",
"range": "json"
},
"unconfirmed": {
"type": "boolean"
},
"unsealed": {
"type": "boolean"
},
"unwatched": {
"type": "boolean"
},
"txId": {
"type": "string"
},
"dateSealed": {
"type": "number"
},
"dateWriteCanceled": {
"type": "date"
}
},
"primaryKeys": [
"sealId"
],
"indexes": [
{
"hashKey": "unsealed",
"rangeKey": {
"template": "{_time}{sealId}"
}
},
{
"hashKey": "unconfirmed",
"rangeKey": {
"template": "{_time}{sealId}"
}
},
{
"hashKey": "link",
"rangeKey": {
"template": "{_time}{sealId}"
}
},
{
"hashKey": "_t",
"rangeKey": "_time"
}
],
"required": [
"sealId",
"link"
]
}