Skip to content
Snippets Groups Projects
Commit eaffd01b authored by Krzysztof Leśniak's avatar Krzysztof Leśniak
Browse files

added test for find_escrows

parent bf4d2a34
No related branches found
No related tags found
No related merge requests found
......@@ -176,3 +176,10 @@
- method: "list_escrows"
- args: '{ "start": ["initminer", 0], "limit": 10, "order": "by_from_id" }'
- <<: *base_test
- test:
- name: "find_escrows"
- variable_binds:
- method: "find_escrows"
- args: '{ "from": "temp" }'
- <<: *base_test
{
"$schema": "http://json-schema.org/schema#",
"additionalProperties": false,
"type": "object",
"properties": {
"jsonrpc": {
"type": "string"
},
"result": {
"type": "object",
"properties": {
"escrows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"escrow_id": {
"type": "integer"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"agent": {
"type": "string"
},
"ratification_deadline": {
"type": "string"
},
"escrow_expiration": {
"type": "string"
},
"hbd_balance": {
"type": "object",
"properties": {
"amount": {
"pattern": "[0-9]+",
"type": "string"
},
"precision": {
"type": "integer"
},
"nai": {
"pattern": "^@@[0-9]+$",
"type": "string"
}
},
"required": [
"amount",
"nai",
"precision"
]
},
"hive_balance": {
"type": "object",
"properties": {
"amount": {
"pattern": "[0-9]+",
"type": "string"
},
"precision": {
"type": "integer"
},
"nai": {
"pattern": "^@@[0-9]+$",
"type": "string"
}
},
"required": [
"amount",
"nai",
"precision"
]
},
"pending_fee": {
"type": "object",
"properties": {
"amount": {
"pattern": "[0-9]+",
"type": "string"
},
"precision": {
"type": "integer"
},
"nai": {
"pattern": "^@@[0-9]+$",
"type": "string"
}
},
"required": [
"amount",
"nai",
"precision"
]
},
"to_approved": {
"type": "boolean"
},
"agent_approved": {
"type": "boolean"
},
"disputed": {
"type": "boolean"
}
},
"required": [
"agent",
"agent_approved",
"disputed",
"escrow_expiration",
"escrow_id",
"from",
"hbd_balance",
"hive_balance",
"id",
"pending_fee",
"ratification_deadline",
"to",
"to_approved"
]
}
}
},
"required": [
"escrows"
]
},
"id": {
"type": "integer"
}
},
"required": [
"id",
"jsonrpc",
"result"
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment