rc3 changes
There will be quite a lot of changes when api.syncad.com and api.hive.blog will be updated - few of them will break FE - minor changes easy to fix, I'll try to list them but I might be missing something
HAFAH:
-
account-history (list of ops on account-page) - It's been completely rewritten - i tried to make the filtering by block-range a bit faster, its not perfect but its faster that previous version no changes to result
-
/global-state
API https://gitlab.syncad.com/hive/HAfAH/-/blob/develop/postgrest/hafah_REST/other/get_block.sql#L55
"total_vesting_fund_hive": "149190428013",
"total_vesting_shares": "448144916705468350",
"total_reward_fund_hive": "66003975",
"virtual_supply": "161253662237",
"current_supply": "157464400971",
"current_hbd_supply": "2413759427",
integers in these values are in string now - json shortened some values
btracker/reptracker:
- new apis
/version
and/last-synced-block
in these apps - you might want to use it somewhere - I don't know
hafbe:
-
/input-type/
- unified result in "input_value", always return string array https://gitlab.syncad.com/hive/haf_block_explorer/-/blob/develop/endpoints/other/get_input_type.sql?ref_type=heads#L40
it is a change to unify the result and typization
-
/operation-type-counts
- ops_count object renamed to operations (to unify the returned object with blocksearch)
-
/witnesses/blocktrades/voters
renamed total_operations to total_votes in votes history API
- it was just a ctrl +c ctrl +v error
-
/witnesses
renamed total_operations to total_witnesses in witnesses API
- it was just a ctrl +c ctrl +v error
/accounts/{account-name}
its array of text instead of array of int - there was json shortening here too
/accounts/{account-name}/comment-permlinks
from our previous discussion about the permlinks - I've rewritten the api in similar way to blocksearch filters - now it uses block-range object that needs to be utilized in paging mechanism
I think this is only big change - you can call for WHOLE RANGE (instead of the last 30 days) but the response returns ONLY 10 pages (more can be generated if block-range object is utilized correctly)
When first iteration of this API was introduced, I suggested to use post
in comment-type as default, but from now on it should be changed to all
.
The performance is now much better for all types and the all
should be the default (post was only due to performance reasons).