Skip to content

Instantly share code, notes, and snippets.

@dashameter
Last active June 11, 2020 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dashameter/042931a8a4305489971214e6a1e7a78a to your computer and use it in GitHub Desktop.
Save dashameter/042931a8a4305489971214e6a1e7a78a to your computer and use it in GitHub Desktop.
{
"Signup": {
"indices": [
{
"unique": false,
"properties": [
{
"accountDocId": "asc"
}
]
},
{
"unique": false,
"properties": [
{
"isRegistered": "asc"
}
]
},
{
"unique": true,
"properties": [
{
"unixTimestamp": "desc"
}
]
}
],
"required": [
"accountDocId",
"contractId",
"unixTimestamp",
"dappName",
"dappIcon",
"isRegistered"
],
"properties": {
"dappIcon": {
"type": "string"
},
"dappName": {
"type": "string"
},
"contractId": {
"type": "string",
"pattern": "^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$",
"maxLength": 44,
"minLength": 42
},
"accountDocId": {
"type": "string",
"pattern": "^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$",
"maxLength": 44,
"minLength": 42
},
"isRegistered": {
"type": "boolean"
},
"unixTimestamp": {
"type": "integer"
}
},
"additionalProperties": false
},
"PaymentRequest": {
"indices": [
{
"unique": false,
"properties": [
{
"accountDocId": "asc"
}
]
},
{
"unique": false,
"properties": [
{
"contractId": "asc"
}
]
},
{
"unique": true,
"properties": [
{
"unixTimestamp": "asc"
}
]
}
],
"required": [
"toAddress",
"satoshis"
],
"properties": {
"uidPin": {
"type": "string"
},
"dappName": {
"type": "string"
},
"satoshis": {
"type": "string"
},
"toAddress": {
"type": "string"
},
"contractId": {
"type": "string",
"pattern": "^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$",
"maxLength": 44,
"minLength": 42
},
"accountDocId": {
"type": "string",
"pattern": "^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$",
"maxLength": 44,
"minLength": 42
},
"unixTimestamp": {
"type": "integer"
}
},
"additionalProperties": false
},
"DelegatedCredentials": {
"indices": [
{
"unique": true,
"properties": [
{
"pubKey": "asc"
}
]
},
{
"unique": false,
"properties": [
{
"delegateIdentityId": "asc"
}
]
},
{
"unique": false,
"properties": [
{
"unixTimestampExpiration": "asc"
}
]
}
],
"required": [
"unixTimestampExpiration",
"pubKey",
"encPvtKey",
"delegateIdentityId"
],
"properties": {
"pubKey": {
"type": "string"
},
"encPvtKey": {
"type": "string"
},
"delegateIdentityId": {
"type": "string",
"pattern": "^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$",
"maxLength": 44,
"minLength": 42
},
"unixTimestampExpiration": {
"type": "integer"
}
},
"additionalProperties": false
},
"DocumentActionRequest": {
"indices": [
{
"unique": false,
"properties": [
{
"accountDocId": "asc"
}
]
},
{
"unique": false,
"properties": [
{
"contractId": "asc"
}
]
},
{
"unique": true,
"properties": [
{
"unixTimestamp": "asc"
}
]
}
],
"properties": {
"action": {
"enum": [
"read",
"create",
"update",
"delete"
],
"type": "string"
},
"uidPin": {
"type": "string"
},
"dappName": {
"type": "string"
},
"contractId": {
"type": "string",
"pattern": "^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$",
"maxLength": 44,
"minLength": 42
},
"accountDocId": {
"type": "string",
"pattern": "^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$",
"maxLength": 44,
"minLength": 42
},
"JSONDocString": {
"type": "string"
},
"unixTimestamp": {
"type": "integer"
}
},
"additionalProperties": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment