Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • hive/tests_api
1 result
Show changes
Commits on Source (25)
Showing
with 9874 additions and 0 deletions
......@@ -8,3 +8,9 @@
# filter diff files
*.diff.json
#tavern tests
/hived/tavern_run/.eggs
/hived/tavern_run/.tox
/hived/tavern_run/hive.egg-info
/hived/tavern_run/tests
{
"code": -32003,
"data": {
"code": 10,
"message": "Assert Exception",
"name": "assert_exception",
"stack": [
{
"context": {
"file": "account_history_api.cpp",
"hostname": "",
"level": "error",
"line": 203,
"method": "get_transaction",
"timestamp": "2020-10-22T13:44:23"
},
"data": {
"t": "1000000000000000000000000000000000000000"
},
"format": "false: Unknown Transaction ${t}"
}
]
},
"message": "Assert Exception:false: Unknown Transaction 1000000000000000000000000000000000000000"
}
---
test_name: Hived account_history_api get_transaction unknown
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: account_history_api get_transaction unknown
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_transaction"
params: {"id":"1000"}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "unknown_transaction"
directory: "account_history_api_negative/get_transaction"
error_response: true
ignore_tags: ['context']
---
test_name: Hived account_history_api enum_virtual_ops first 100k blocks
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: account_history_api enum_virtual_ops first 100k blocks
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "account_history_api.enum_virtual_ops"
params: {"block_range_begin": 1, "block_range_end": 100000}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "first100k"
directory: "account_history_api_patterns/enum_virtual_ops"
{
"history": [
[
3,
{
"block": 160790,
"op": {
"type": "account_create_operation",
"value": {
"active": {
"account_auths": [],
"key_auths": [
[
"STM8HCf7QLUexogEviN8x1SpKRhFwg2sc8LrWuJqv7QsmWrua6ZyR",
1
]
],
"weight_threshold": 1
},
"creator": "hello",
"fee": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"json_metadata": "{}",
"memo_key": "STM6Gkj27XMkoGsr4zwEvkjNhh4dykbXmPFzHhT8g86jWsqu3U38X",
"new_account_name": "fabian",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM8MN3FNBa8WbEpxz3wGL3L1mkt6sGnncH8iuto7r8Wa3T9NSSGT",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM8EhGWcEuQ2pqCKkGHnbmcTNpWYZDjGTT7ketVBp4gUStDr2brz",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-03-30T07:05:03",
"trx_id": "3c1eae5754cc4f70cf0efb12f9e4f9671a8df2a0",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
4,
{
"block": 160790,
"op": {
"type": "account_create_operation",
"value": {
"active": {
"account_auths": [],
"key_auths": [
[
"STM8QZe4wNZbMhYmjNq4UCPcHzdFyNPZh43a67B3SvZhLJ6wRYdMv",
1
]
],
"weight_threshold": 1
},
"creator": "hello",
"fee": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"json_metadata": "{}",
"memo_key": "STM7rw7CCGfxZAcdW2rkJdPun1tYjkk1ipJncDQMdTv3XxyR6gzkp",
"new_account_name": "schuh",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM679rrUFrdzy2JV5JAL3ZW5Ub44pzt5cuT5oR1bqgDTyqqxkskA",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM7gVAkiYKirUycvj5oLBLkeQYco8mMwHurpqWCuzfZqNJDoqgZB",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-03-30T07:05:03",
"trx_id": "9a239d5e373d2cd076253231866a3dd3e41f4606",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
5,
{
"block": 160790,
"op": {
"type": "account_create_operation",
"value": {
"active": {
"account_auths": [],
"key_auths": [
[
"STM7ko5nzqaYfjbD4tKWGmiy3xtT9eQFZ3Pcmq5JmygTRptWSiVQy",
1
]
],
"weight_threshold": 1
},
"creator": "hello",
"fee": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"json_metadata": "{}",
"memo_key": "STM8ZSyzjPm48GmUuMSRufkVYkwYbZzbxeMysAVp7KFQwbTf98TcG",
"new_account_name": "usd",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM5b4i9gBqvh4sbgrooXPu2dbGLewNPZkXeuNeBjyiswnu2szgXx",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM5xAKxnMT2y9VoVJdF63K8xRQAohsiQy9bA33aHeyMB5vgkzaay",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-03-30T07:05:03",
"trx_id": "75906618242c596718f4d657de70c56cae6e7d74",
"trx_in_block": 2,
"virtual_op": 0
}
],
[
6,
{
"block": 160790,
"op": {
"type": "account_create_operation",
"value": {
"active": {
"account_auths": [],
"key_auths": [
[
"STM5p3Q8ZsCpR5ypDgnEq8smKe4XRG5w1UpbFpGLKxZXuDX7gfdPt",
1
]
],
"weight_threshold": 1
},
"creator": "hello",
"fee": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"json_metadata": "{}",
"memo_key": "STM5xLG25Sr5UcNwAgqH87wzYyUJzeywvzNcAeCY8mBXrLjVx8Ymj",
"new_account_name": "bitshares",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM85NWws3Ux7JNYCwiTRkhYeEuwbhqxcvU1RhsV5uHFzi5deBv3k",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM51RGJoMhzZ54PKqymhjpq6jr8fbhbJdtzT2KNhqde1u6ufRHSK",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-03-30T07:05:03",
"trx_id": "1f7ac7c1cf925d4240ab403a8a7384ce639f4033",
"trx_in_block": 3,
"virtual_op": 0
}
],
[
7,
{
"block": 160817,
"op": {
"type": "account_create_operation",
"value": {
"active": {
"account_auths": [],
"key_auths": [
[
"STM74TXbqeNFgo63hsGssbQhtd6c4UeX28XyFsnc9SuXaW1Q35Qok",
1
]
],
"weight_threshold": 1
},
"creator": "hello",
"fee": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"json_metadata": "{}",
"memo_key": "STM54gLcrBZuZzxbtM1VLAHBy7pSdJncv1rUq2Q6barCrGtg3Wjar",
"new_account_name": "fabi",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM8LxMwKZKk26HXX5xSBHavuJqAmDudYcLpuMtNmJHSt3ybDkG4G",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM8ESkvC3V1ubgThoGA35US4Ar1FkF2CuvcMCdW6wdiso9mFg6Nd",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-03-30T07:06:24",
"trx_id": "2ba97f6fd25566d987848fdcae45db6c48996ced",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
8,
{
"block": 160839,
"op": {
"type": "account_create_operation",
"value": {
"active": {
"account_auths": [],
"key_auths": [
[
"STM8fn223tX8QVo2mzBGCyVpehGikz7TGq2TsNo3Mak4d288NBTvB",
1
]
],
"weight_threshold": 1
},
"creator": "hello",
"fee": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"json_metadata": "{}",
"memo_key": "STM5FwfwgQYrd5zWXhAsLrSQewRjcfmz3qYn5CVMiBTqkX2ukBoHf",
"new_account_name": "com",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM711dbukXZ7R9qPhMQwpB65UYR7RGb2tYG2wrGzDehZfdt29AAv",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM6aGwFpcz7AmjVuJX41piL589DxPcLHjqQRF1JjJmuHfjwcz4Ve",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-03-30T07:07:30",
"trx_id": "9bee9f3a0aaa15f267a8518e11d8dade70fba1da",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
9,
{
"block": 160839,
"op": {
"type": "account_create_operation",
"value": {
"active": {
"account_auths": [],
"key_auths": [
[
"STM67NuZTpMR1zQVvrsZLKnH5uA7vMiEjHpBnSxszxHVU6jLHKX93",
1
]
],
"weight_threshold": 1
},
"creator": "hello",
"fee": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"json_metadata": "{}",
"memo_key": "STM7sMVcg1SycN1h98uKNKWtFiZNQYZHZ95LUrzMCucZXbotubVcu",
"new_account_name": "org",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM5ZkQxHQvCbmQ56YCdZdg5Lqe5kQGJD1m1inK25sCP5msb3NSJ4",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM88NVEbrFP8TTfXNvMWemuLTMFQjtExRs8EZqXxJqLdvqhYKAcH",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-03-30T07:07:30",
"trx_id": "f35a7022a2b0d882723ed231a436e4098d316e84",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
10,
{
"block": 160839,
"op": {
"type": "account_create_operation",
"value": {
"active": {
"account_auths": [],
"key_auths": [
[
"STM5fQVDcxr4UUZkLFMie9hdRtEt1BNhq3237xoKHEZ2ftXzoPd5T",
1
]
],
"weight_threshold": 1
},
"creator": "hello",
"fee": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"json_metadata": "{}",
"memo_key": "STM8LhAeMhumWJdZnKSYBbh5PzjkXcR5r5HCbgqaZ5yYP4KcHktFo",
"new_account_name": "info",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM6z56W5RyXgm2wwg74PuZ8n7jxT7BSUbc1fuiDuumxK2zR2GjdG",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM8Nuf4E19YQTh8rr1XvSyBaQ6FcoAJj6ngHJmw4ZzwFkzNYwLFd",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-03-30T07:07:30",
"trx_id": "0a864615d5584e5fc32cd77666b02f611d00f0ba",
"trx_in_block": 2,
"virtual_op": 0
}
],
[
11,
{
"block": 160839,
"op": {
"type": "account_create_operation",
"value": {
"active": {
"account_auths": [],
"key_auths": [
[
"STM6jJLdHaKwuBBmsxmrrDmLrgSpBoi3Ak5tWsWU5wi3XKqmHx94M",
1
]
],
"weight_threshold": 1
},
"creator": "hello",
"fee": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"json_metadata": "{}",
"memo_key": "STM7C5p6xr8wvWPS2wQSKCtzZaXgy4YgTNieUWnw76mKvZa7SoVbm",
"new_account_name": "news",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM52gKmvxJa4hNR2H1yZpYye2fnPxaLM3todZdqZQd7DdeS4EPsK",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM73G8NX181Vh6gpbaZcEJ5PYc6TEeo2Y8WtZQrTprBHJ891Wijb",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-03-30T07:07:30",
"trx_id": "e3a2113b04f310953486f716175cf5284347ff0e",
"trx_in_block": 3,
"virtual_op": 0
}
],
[
18,
{
"block": 422612,
"op": {
"type": "account_create_operation",
"value": {
"active": {
"account_auths": [],
"key_auths": [
[
"STM6tzLFnJayp64rfuEkPe9VJLErMgjbcpwr7bVr7ngto9jxaWURP",
1
]
],
"weight_threshold": 1
},
"creator": "hello",
"fee": {
"amount": "100000",
"nai": "@@000000021",
"precision": 3
},
"json_metadata": "{}",
"memo_key": "STM5G654zQimHWNQHACCathTZQBhiRTN547zWq4Z4ysUnFv7VrEwm",
"new_account_name": "xeroc",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM7mgtsF5XPU9tokFpEz2zN9sQ89oAcRfcaSkZLsiqfWMtRDNKkc",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM8aJtoKdTsrRrWg3PB9XsbsCgZbVeDhQS3VUM1jkcXfVSjbv4T8",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-04-08T13:48:54",
"trx_id": "ce087bce41cf248c357da740eb4ae4185c2c973b",
"trx_in_block": 0,
"virtual_op": 0
}
]
]
}
---
test_name: Hived account_history_api get_account_history filter to account_create_operation
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: account_history_api get_account_history account_create_operation
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"hello","operation_filter_low": 512,"start": 1000,"limit": 1000}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "account_create_operation"
directory: "account_history_api_patterns/get_account_history"
{
"history": []
}
\ No newline at end of file
---
test_name: Hived account_history_api account_create_with_delegation_operation
marks:
- patterntest # no noempty result in 5mln blocks
includes:
- !include ../../common.yaml
stages:
- name: account_history_api account_create_with_delegation_operation
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"blocktrades", "operation_filter_low": 2199023255552, "start": 1000, "limit": 1000}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "account_create_with_delegation_operation"
directory: "account_history_api_patterns/get_account_history"
{
"history": []
}
\ No newline at end of file
---
test_name: Hived account_history_api account_update2_operation
marks:
- patterntest # no noempty result in 5mln blocks
includes:
- !include ../../common.yaml
stages:
- name: account_history_api account_update2_operation
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"blocktrades", "operation_filter_low": 8796093022208, "start": 1000, "limit": 1000}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "account_update2_operation"
directory: "account_history_api_patterns/get_account_history"
{
"history": [
[
139,
{
"block": 2885318,
"op": {
"type": "account_update_operation",
"value": {
"account": "gtg",
"json_metadata": "",
"memo_key": "STM5F9tCbND6zWPwksy1rEN24WjPiQWSU2vwGgegQVjAcYDe1zTWi",
"posting": {
"account_auths": [],
"key_auths": [
[
"STM69ZG1hx2rdU2hxQkkmX5MmYkHPCmdNeXg4r6CR7gvKUzYwWPPZ",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-03T20:54:21",
"trx_id": "28590cbf62ba9f0ec6dd6fe9669852068772ee59",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
140,
{
"block": 2885370,
"op": {
"type": "account_update_operation",
"value": {
"account": "gtg",
"active": {
"account_auths": [],
"key_auths": [
[
"STM6AzXNwWRzTWCVTgP4oKQEALTW8HmDuRq1avGWjHH23XBNhux6U",
1
]
],
"weight_threshold": 1
},
"json_metadata": "",
"memo_key": "STM5F9tCbND6zWPwksy1rEN24WjPiQWSU2vwGgegQVjAcYDe1zTWi"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-03T20:56:57",
"trx_id": "60a00c1016cede7d7924f6b32ba4190252b369b7",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
141,
{
"block": 2885375,
"op": {
"type": "account_update_operation",
"value": {
"account": "gtg",
"json_metadata": "",
"memo_key": "STM78Vaf41p9UUMMJvafLTjMurnnnuAiTqChiT5GBph7VDWahQRsz"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-03T20:57:12",
"trx_id": "57a8a136ff02b6b89c31b55314c7e3112939be14",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
142,
{
"block": 2885409,
"op": {
"type": "account_update_operation",
"value": {
"account": "gtg",
"json_metadata": "",
"memo_key": "STM6EY4jgDpLKrJa1RE5y49oUu64BLTrjo4SAso7fxtsaY8Mpzqgx"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-03T20:58:54",
"trx_id": "3fc900bf7e4ce2f81664359d399ec0c61826f0a0",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
143,
{
"block": 2885463,
"op": {
"type": "account_update_operation",
"value": {
"account": "gtg",
"active": {
"account_auths": [],
"key_auths": [
[
"STM6AzXNwWRzTWCVTgP4oKQEALTW8HmDuRq1avGWjHH23XBNhux6U",
1
]
],
"weight_threshold": 1
},
"json_metadata": "",
"memo_key": "STM78Vaf41p9UUMMJvafLTjMurnnnuAiTqChiT5GBph7VDWahQRsz",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM5F9tCbND6zWPwksy1rEN24WjPiQWSU2vwGgegQVjAcYDe1zTWi",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM69ZG1hx2rdU2hxQkkmX5MmYkHPCmdNeXg4r6CR7gvKUzYwWPPZ",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-03T21:01:36",
"trx_id": "59ccc2dd299ada55308a5f4fd9e2735847e92a58",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
355,
{
"block": 3191323,
"op": {
"type": "account_update_operation",
"value": {
"account": "gtg",
"active": {
"account_auths": [],
"key_auths": [
[
"STM6AzXNwWRzTWCVTgP4oKQEALTW8HmDuRq1avGWjHH23XBNhux6U",
1
]
],
"weight_threshold": 1
},
"json_metadata": "",
"memo_key": "STM78Vaf41p9UUMMJvafLTjMurnnnuAiTqChiT5GBph7VDWahQRsz",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM6oUcdLthTMc2CDQk5Docc8pB9Zh9s5EQ1wjBZwnMvggbMkRBth",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM69ZG1hx2rdU2hxQkkmX5MmYkHPCmdNeXg4r6CR7gvKUzYwWPPZ",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-14T13:29:03",
"trx_id": "8edfc3159e6b8490e86262dc066336f85b730be7",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
377,
{
"block": 3399203,
"op": {
"type": "account_update_operation",
"value": {
"account": "gtg",
"active": {
"account_auths": [],
"key_auths": [
[
"STM4vuEE8F2xyJhwiNCnHxjUVLNXxdFXtVxgghBq5LVLt49zLKLRX",
1
]
],
"weight_threshold": 1
},
"json_metadata": "",
"memo_key": "STM4uD3dfLvbz7Tkd7of4K9VYGnkgrY5BHSQt52vE52CBL5qBfKHN",
"posting": {
"account_auths": [],
"key_auths": [
[
"STM5tp5hWbGLL1R3tMVsgYdYxLPyAQFdKoYFbT2hcWUmrU42p1MQC",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-21T21:48:06",
"trx_id": "5a3a345d3265d40fd4f7ac1906fddec59ac177c3",
"trx_in_block": 1,
"virtual_op": 0
}
]
]
}
---
test_name: Hived account_history_api get_account_history filter to account_update_operation
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: account_history_api get_account_history account_update_operation
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"gtg","operation_filter_low": 1024,"start": 1000,"limit": 1000}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "account_update_operation"
directory: "account_history_api_patterns/get_account_history"
{
"history": [
[
759,
{
"block": 3924580,
"op": {
"type": "account_witness_proxy_operation",
"value": {
"account": "geoffrey",
"proxy": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-09T06:52:00",
"trx_id": "481a52b2a98177c699590240ad845c3b354dd77e",
"trx_in_block": 1,
"virtual_op": 0
}
]
]
}
---
test_name: Hived account_history_api get_account_history filter to account_witness_proxy_operation
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: account_history_api get_account_history account_witness_proxy_operation
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"gtg","operation_filter_low": 8192,"start": 1000,"limit": 1000}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "account_witness_proxy_operation"
directory: "account_history_api_patterns/get_account_history"
{
"history": [
[
103,
{
"block": 2881334,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-03T17:35:00",
"trx_id": "1e49a977ca64c7762042f8ef55d8583d66faad66",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
301,
{
"block": 3100789,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "pfunk"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-11T09:40:45",
"trx_id": "7387eac7188e69e610b412074875352b3002945a",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
304,
{
"block": 3104291,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "arhag"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-11T12:36:12",
"trx_id": "8540eb01bab6982a2d477f1949cbfedcb335a2da",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
305,
{
"block": 3105480,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "witness.svk"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-11T13:35:54",
"trx_id": "e888067abbcbe74920013a8a441b9eb683ed9aa6",
"trx_in_block": 3,
"virtual_op": 0
}
],
[
306,
{
"block": 3105636,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "smooth.witness"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-11T13:43:42",
"trx_id": "50e85ae81e53ce8793e03f736eb97ea8162c37da",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
328,
{
"block": 3144657,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "anyx",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-12T22:23:33",
"trx_id": "43f186092b37a9ceab49f4f6369a861709523e11",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
404,
{
"block": 3647042,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "liondani"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-30T14:17:06",
"trx_id": "9cc490746a6e3449180a22fc3641bd643708bf67",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
405,
{
"block": 3647231,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "anyx"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-30T14:26:42",
"trx_id": "e1af257db286696d487ee9cf16b3dc29a04a4082",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
406,
{
"block": 3647439,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "roadscape"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-30T14:37:15",
"trx_id": "a8994fd0ba8aa0f91db19445fb2e07bb73dd28ae",
"trx_in_block": 6,
"virtual_op": 0
}
],
[
423,
{
"block": 3701313,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "riverhead"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-01T11:45:42",
"trx_id": "59d382c45ee0b92e770afa05551a912fc2926285",
"trx_in_block": 2,
"virtual_op": 0
}
],
[
459,
{
"block": 3784027,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "complexring"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-04T08:56:48",
"trx_id": "4a85960e6181f411ff5c5409411b472fa652cb16",
"trx_in_block": 8,
"virtual_op": 0
}
],
[
460,
{
"block": 3784059,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "blocktrades"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-04T08:58:24",
"trx_id": "d448cf3bbe37ea308d8905ea580b79ff25b3dc43",
"trx_in_block": 5,
"virtual_op": 0
}
],
[
488,
{
"block": 3820266,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "blocktrades",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-05T15:28:00",
"trx_id": "58ad1534d3bebbd2597aec774859ec9892457fdb",
"trx_in_block": 7,
"virtual_op": 0
}
],
[
526,
{
"block": 3821908,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "inertia",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-05T16:50:24",
"trx_id": "a7a65ec3e971eeb4a5bf724513e6fbdbbed08982",
"trx_in_block": 5,
"virtual_op": 0
}
],
[
542,
{
"block": 3823310,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "felixxx",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-05T18:00:48",
"trx_id": "09609c5bf3b56f0e33081f671dfe9b027e3767b6",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
579,
{
"block": 3827447,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "chitty"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-05T21:29:00",
"trx_id": "e604c679b75357ae92ce86ce3ed5b7bdcf5f3ef5",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
580,
{
"block": 3827465,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "chitty",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-05T21:29:54",
"trx_id": "0dd584b564b868150d6619f0a212ac62fcfb1198",
"trx_in_block": 3,
"virtual_op": 0
}
],
[
664,
{
"block": 3846204,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "dave-mohican",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-06T13:11:06",
"trx_id": "e2cf917960a80b4c06ccde992c2bd832b2bb0dd7",
"trx_in_block": 2,
"virtual_op": 0
}
],
[
668,
{
"block": 3849814,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "keung0109",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-06T16:12:03",
"trx_id": "ae32b6cc44f73c0be7c423f2e3c1ddcadfbbb509",
"trx_in_block": 6,
"virtual_op": 0
}
],
[
670,
{
"block": 3850577,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "thebluepanda",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-06T16:50:15",
"trx_id": "a29d26cabcfdd985c988d0fb4f09f9665d21ea54",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
678,
{
"block": 3853759,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "fydel",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-06T19:29:45",
"trx_id": "110368b476b60871e9e52df55b642ab0fbb96890",
"trx_in_block": 3,
"virtual_op": 0
}
],
[
679,
{
"block": 3854924,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "heimindanger",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-06T20:28:09",
"trx_id": "53c39c99441fdd23785e16b512ebec26955ae827",
"trx_in_block": 4,
"virtual_op": 0
}
],
[
682,
{
"block": 3857664,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "geoffrey",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-06T22:45:45",
"trx_id": "d9f8c3ebbb04d7652dde97027af657429e2c25f7",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
689,
{
"block": 3866830,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "steems",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-07T06:25:21",
"trx_id": "7dc8b63a6a828d7712699c5a79ea0b56063ffa45",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
719,
{
"block": 3892188,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "jesus2",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-08T03:38:51",
"trx_id": "9d0c9228771c188fbaa8dfe86551ef9ab53b6021",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
721,
{
"block": 3893448,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "myheadhurts",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-08T04:42:09",
"trx_id": "211f47c061adbac3f7669ac55df68939e350b2ea",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
733,
{
"block": 3902222,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "spaninv",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-08T12:02:06",
"trx_id": "7005646617a7f33cd49c1b1fb04814ce58e9f803",
"trx_in_block": 2,
"virtual_op": 0
}
],
[
756,
{
"block": 3923321,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "geoffrey"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-09T05:49:03",
"trx_id": "f3103c6232525d7ff40151af618cd8d954c254db",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
774,
{
"block": 3937158,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "dave-hughes",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-09T17:21:09",
"trx_id": "a088f4aa24e994ac3a99556618d9a02fd4dfd22a",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
780,
{
"block": 3940856,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "dan",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-09T20:29:30",
"trx_id": "9a2b05e8ae3c5494f65e8a9a1be90c5a6f98b9c6",
"trx_in_block": 0,
"virtual_op": 0
}
],
[
781,
{
"block": 3940858,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "dantheman",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-09T20:29:36",
"trx_id": "66e08a863fd1131d66c770bfe39fac1658c55506",
"trx_in_block": 2,
"virtual_op": 0
}
],
[
782,
{
"block": 3941301,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "dashpaymag",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-09T20:51:48",
"trx_id": "d7e98b40ffc96df685bb8fa4f8a8c79020ef63a0",
"trx_in_block": 2,
"virtual_op": 0
}
],
[
783,
{
"block": 3941303,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "steemed",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-09T20:51:54",
"trx_id": "34e99d1149636597220197a4de7587b461e98eb8",
"trx_in_block": 5,
"virtual_op": 0
}
],
[
899,
{
"block": 3993894,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "pumpkin",
"approve": true,
"witness": "gtg"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-11T16:48:03",
"trx_id": "d14424769d27d9a1a454c51fcd45baa5850ce7fa",
"trx_in_block": 1,
"virtual_op": 0
}
],
[
984,
{
"block": 4024103,
"op": {
"type": "account_witness_vote_operation",
"value": {
"account": "gtg",
"approve": true,
"witness": "wackou"
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-08-12T18:07:06",
"trx_id": "c705f03051dbae27787c23b8fefe50bb2ccc0164",
"trx_in_block": 2,
"virtual_op": 0
}
]
]
}
---
test_name: Hived account_history_api get_account_history filter to account_witness_vote_operation
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: account_history_api get_account_history account_witness_vote_operation
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"gtg","operation_filter_low": 4096,"start": 1000,"limit": 1000}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "account_witness_vote_operation"
directory: "account_history_api_patterns/get_account_history"
{
"history": [
[
18069,
{
"block": 3426457,
"op": {
"type": "author_reward_operation",
"value": {
"author": "xeroc",
"curators_vesting_payout": {
"amount": "0",
"nai": "@@000000037",
"precision": 6
},
"hbd_payout": {
"amount": "21",
"nai": "@@000000013",
"precision": 3
},
"hive_payout": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"permlink": "this-piston-rocks-public-steem-steem-api-for-piston-users-and-developers",
"vesting_payout": {
"amount": "29859881",
"nai": "@@000000037",
"precision": 6
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-22T20:47:30",
"trx_id": "0000000000000000000000000000000000000000",
"trx_in_block": 4294967295,
"virtual_op": 2
}
],
[
18082,
{
"block": 3426576,
"op": {
"type": "author_reward_operation",
"value": {
"author": "xeroc",
"curators_vesting_payout": {
"amount": "0",
"nai": "@@000000037",
"precision": 6
},
"hbd_payout": {
"amount": "28",
"nai": "@@000000013",
"precision": 3
},
"hive_payout": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"permlink": "changelog-python-steem-0-2rc1",
"vesting_payout": {
"amount": "34124528",
"nai": "@@000000037",
"precision": 6
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-22T20:53:33",
"trx_id": "0000000000000000000000000000000000000000",
"trx_in_block": 4294967295,
"virtual_op": 2
}
],
[
18185,
{
"block": 3427233,
"op": {
"type": "author_reward_operation",
"value": {
"author": "xeroc",
"curators_vesting_payout": {
"amount": "0",
"nai": "@@000000037",
"precision": 6
},
"hbd_payout": {
"amount": "27",
"nai": "@@000000013",
"precision": 3
},
"hive_payout": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"permlink": "python-steem-0-1",
"vesting_payout": {
"amount": "34115256",
"nai": "@@000000037",
"precision": 6
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-22T21:26:42",
"trx_id": "0000000000000000000000000000000000000000",
"trx_in_block": 4294967295,
"virtual_op": 2
}
],
[
18603,
{
"block": 3431278,
"op": {
"type": "author_reward_operation",
"value": {
"author": "xeroc",
"curators_vesting_payout": {
"amount": "0",
"nai": "@@000000037",
"precision": 6
},
"hbd_payout": {
"amount": "17",
"nai": "@@000000013",
"precision": 3
},
"hive_payout": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"permlink": "steem-api",
"vesting_payout": {
"amount": "25551869",
"nai": "@@000000037",
"precision": 6
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-23T00:50:54",
"trx_id": "0000000000000000000000000000000000000000",
"trx_in_block": 4294967295,
"virtual_op": 2
}
],
[
18934,
{
"block": 3436603,
"op": {
"type": "author_reward_operation",
"value": {
"author": "xeroc",
"curators_vesting_payout": {
"amount": "833208256",
"nai": "@@000000037",
"precision": 6
},
"hbd_payout": {
"amount": "1037",
"nai": "@@000000013",
"precision": 3
},
"hive_payout": {
"amount": "0",
"nai": "@@000000021",
"precision": 3
},
"permlink": "re-thecryptodrive-steemit-whales-stockpile-sp-government-spending-analogy-and-the-solution-revealed-20160722t051308630z",
"vesting_payout": {
"amount": "1279569822",
"nai": "@@000000037",
"precision": 6
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-07-23T05:19:36",
"trx_id": "0000000000000000000000000000000000000000",
"trx_in_block": 4294967295,
"virtual_op": 278
}
]
]
}
---
test_name: Hived account_history_api author_reward_operation
marks:
- patterntest # virtual
includes:
- !include ../../common.yaml
stages:
- name: account_history_api author_reward_operation
request:
url: "{service.url:s}"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "account_history_api.get_account_history"
params: {"account":"xeroc", "operation_filter_low": 562949953421312, "start": 18934, "limit": 5}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "author_reward_operation"
directory: "account_history_api_patterns/get_account_history"
{
"history": [
[
0,
{
"block": 1364796,
"op": {
"type": "account_create_operation",
"value": {
"active": {
"account_auths": [],
"key_auths": [
[
"STM5weDe4DrNTc1Nrgi3puni6ABCvAiQnAmY2iMZ32PEoFcfLsKJK",
1
]
],
"weight_threshold": 1
},
"creator": "steem",
"fee": {
"amount": "10000",
"nai": "@@000000021",
"precision": 3
},
"json_metadata": "",
"memo_key": "STM5G989HCZJMoc6rT5vxEigV8nSMm7t8cGNpFQo8y6neYtXze6fT",
"new_account_name": "camilla",
"owner": {
"account_auths": [],
"key_auths": [
[
"STM5YFkx87y8yBz5es3XBDGZ32J9XnExHPTiGSNHWL5mmAoc8adZX",
1
]
],
"weight_threshold": 1
},
"posting": {
"account_auths": [],
"key_auths": [
[
"STM5nYML8BLcAjEWmNs2e5zvjyDH1WtMGXFH3TAa7WYcGJYhwdKT6",
1
]
],
"weight_threshold": 1
}
}
},
"op_in_trx": 0,
"operation_id": 0,
"timestamp": "2016-05-11T21:11:09",
"trx_id": "f06f79e658cebfca176eaa7f225376c3ad1174d7",
"trx_in_block": 0,
"virtual_op": 0
}
]
]
}