history can include token information, as well as name/namespace information

This commit is contained in:
Jude Nelson
2018-04-19 19:07:38 -04:00
parent ad12302fa1
commit 7d4fb4f57a

View File

@@ -249,6 +249,14 @@ OP_HISTORY_SCHEMA = {
'type': 'integer',
'minimum': 0,
},
'name': {
'type': 'string',
'pattern': OP_NAME_OR_SUBDOMAIN_PATTERN,
},
'namespace_id': {
'type': 'string',
'pattern': OP_NAMESPACE_PATTERN,
},
'op': {
'type': 'string',
'pattern': OP_CODE_PATTERN,
@@ -318,6 +326,14 @@ OP_HISTORY_SCHEMA = {
},
],
},
'token_fee': {
'type': 'string',
'pattern': '^[0-9]+$',
},
'token_units': {
'type': 'string',
'pattern': '^{}$|^BTC$|{}'.format(TOKEN_TYPE_STACKS, OP_NAMESPACE_PATTERN)
},
'txid': {
'type': 'string',
'pattern': OP_TXID_PATTERN,