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

added list_vesting_delegation_expirations test

parent 7734d66e
No related branches found
No related tags found
No related merge requests found
...@@ -225,3 +225,10 @@ ...@@ -225,3 +225,10 @@
- method: "find_vesting_delegations" - method: "find_vesting_delegations"
- args: '{ "account": "voltair" }' - args: '{ "account": "voltair" }'
- <<: *base_test - <<: *base_test
- test:
- name: "list_vesting_delegation_expirations"
- variable_binds:
- method: "list_vesting_delegation_expirations"
- args: '{ "start": ["1970-01-01T00:00:00", 0], "limit": 10, "order": "by_expiration" }'
- <<: *base_test
{
"$schema": "http://json-schema.org/schema#",
"additionalProperties": false,
"type": "object",
"properties": {
"jsonrpc": {
"type": "string"
},
"result": {
"type": "object",
"properties": {
"delegations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"delegator": {
"type": "string"
},
"vesting_shares": {
"type": "object",
"properties": {
"amount": {
"pattern": "[0-9]+",
"type": "string"
},
"precision": {
"type": "integer"
},
"nai": {
"pattern": "^@@[0-9]+$",
"type": "string"
}
},
"required": [
"amount",
"nai",
"precision"
]
},
"expiration": {
"type": "string"
}
},
"required": [
"delegator",
"expiration",
"id",
"vesting_shares"
]
}
}
},
"required": [
"delegations"
]
},
"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