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

add list_vesting_delegations test

parent ec037647
No related branches found
No related tags found
No related merge requests found
......@@ -211,3 +211,10 @@
- method: "find_savings_withdrawals"
- args: '{ "account": "voltair" }'
- <<: *base_test
- test:
- name: "list_vesting_delegations"
- variable_binds:
- method: "list_vesting_delegations"
- args: '{ "start": ["null", "null"], "limit": 10, "order": "by_delegation" }'
- <<: *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"
},
"delegatee": {
"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"
]
},
"min_delegation_time": {
"type": "string"
}
},
"required": [
"delegatee",
"delegator",
"id",
"min_delegation_time",
"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