mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-23 11:27:38 +08:00
history can include token information, as well as name/namespace information
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user