Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/utxo change digest #19

Merged
merged 2 commits into from
Apr 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openpoll/schemas",
"version": "1.0.14",
"version": "1.0.15",
"description": "A package containing all the JSON Schema definitions for OpenPoll",
"main": "index.js",
"typings": "index.d.ts",
Expand Down
40 changes: 40 additions & 0 deletions schemas/0.1/token/utxo_change_digest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$id": "https://schemas.openpoll.io/0.1/token/utxo_change_digest.json",
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",

"properties": {
"blockId": {
"type": "integer",
"minimum": 0,
"description": "the block id of the block this UTXO Change Digest is used to "
},

"blockHash": {
"type": "string",
"description": "Hash of the block which preceded this block.",
"pattern": "^[0-9A-Fa-f]{64}$"
},

"balances": {
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "the updated address",
"pattern": "^OPEN[1-9A-Za-z][^OIl]{20,40}POLL$"
},
"value": {
"type": "integer",
"minimum": 0
}
}
}
},

"required": [
"blockId",
"blockHash",
"balances"
]
}