From 6e285c279d68f06930ef24ab07cca9c75ec6d86c Mon Sep 17 00:00:00 2001 From: Zack Date: Sun, 22 Apr 2018 14:08:28 -0400 Subject: [PATCH 1/2] utxo change digest schema --- schemas/0.1/token/utxo_change_digest.json | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 schemas/0.1/token/utxo_change_digest.json diff --git a/schemas/0.1/token/utxo_change_digest.json b/schemas/0.1/token/utxo_change_digest.json new file mode 100644 index 0000000..03ae1ff --- /dev/null +++ b/schemas/0.1/token/utxo_change_digest.json @@ -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" + ] +} From b31d45fca2554df00aa8e93ccd7f2caca99aff0f Mon Sep 17 00:00:00 2001 From: Zack Date: Sun, 22 Apr 2018 14:37:06 -0400 Subject: [PATCH 2/2] incremented version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 45761d3..914582b 100644 --- a/package.json +++ b/package.json @@ -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",