From af4f99e85a0da5b92de98b3e77102685c419a7f9 Mon Sep 17 00:00:00 2001 From: inertia <amartin75@gmail.com> Date: Mon, 17 Oct 2022 08:35:58 -0700 Subject: [PATCH] initial hardfork 26 changes --- _apidefinitions/wallet-bridge-api.md | 6 + _data/apidefinitions/broadcast_ops.yml | 1 + _data/apidefinitions/condenser_api.yml | 48 ++++-- _data/apidefinitions/database_api.yml | 13 +- .../apidefinitions/network_broadcast_api.yml | 6 +- _data/apidefinitions/rc_api.yml | 10 +- _data/apidefinitions/wallet_bridge_api.yml | 146 ++++++++++++++++++ 7 files changed, 207 insertions(+), 23 deletions(-) create mode 100644 _apidefinitions/wallet-bridge-api.md create mode 100644 _data/apidefinitions/wallet_bridge_api.yml diff --git a/_apidefinitions/wallet-bridge-api.md b/_apidefinitions/wallet-bridge-api.md new file mode 100644 index 00000000..4299e798 --- /dev/null +++ b/_apidefinitions/wallet-bridge-api.md @@ -0,0 +1,6 @@ +--- +position: 15 +exclude: true +canonical_url: .#apidefinitions-wallet-bridge-api +--- +{% include api-template.html api_data=site.data.apidefinitions.wallet_bridge_api %} diff --git a/_data/apidefinitions/broadcast_ops.yml b/_data/apidefinitions/broadcast_ops.yml index d7a134ec..0b89495b 100644 --- a/_data/apidefinitions/broadcast_ops.yml +++ b/_data/apidefinitions/broadcast_ops.yml @@ -1980,6 +1980,7 @@ | HF23 | 2020-03-20 14:00:00 UTC | [41818752](https://hiveblocks.com/b/41818752) | | HF24 | 2020-10-06 14:00:00 UTC | [47797680](https://hiveblocks.com/b/47797680) | | HF25 | 2021-06-30 14:00:00 UTC | [55235767](https://hiveblocks.com/b/55235767) | + | HF26 | 2022-10-11 12:00:00 UTC | [68676505](https://hiveblocks.com/b/68676505) | See: [PR2616]({{ 'https://github.com/steemit/steem/pull/2616' | archived_url }}), [database_api.get_hardfork_properties]({{ '/apidefinitions/#database_api.get_hardfork_properties' | relative_url }}), [condenser_api.get_next_scheduled_hardfork]({{ '/apidefinitions/#condenser_api.get_next_scheduled_hardfork' | relative_url }}) roles: diff --git a/_data/apidefinitions/condenser_api.yml b/_data/apidefinitions/condenser_api.yml index 97ff2a75..faa1e1c9 100644 --- a/_data/apidefinitions/condenser_api.yml +++ b/_data/apidefinitions/condenser_api.yml @@ -1,4 +1,4 @@ -# Generated by Scrape::ApiDefinitionsJob: 2018-10-17 16:43:15 UTC +# Generated by Scrape::ApiDefinitionsJob: 2022-10-17 14:31:05 UTC # See: https://git.io/vx5CY --- - name: :condenser_api @@ -20,7 +20,10 @@ Because the method has no arguments, the params field can be omitted when not using `condenser_api`. However, it can optionally be included as the void type (e.g. `"params":{}`) but it is not required. methods: - api_method: condenser_api.broadcast_block + removed: true purpose: | + **Removed: HF26** + Used to broadcast a block. Also see: [network_broadcast_api.broadcast_block]({{ '/apidefinitions/#network_broadcast_api.broadcast_block' | relative_url }}) @@ -218,7 +221,7 @@ disabled: true purpose: | No longer supported. Use: [database_api.list_votes]({{ '/apidefinitions/#database_api.list_votes' | relative_url }}) - + <p> </p><p> </p><p> </p><p> </p><p> </p> client_docs: - "[hive-js](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#get-account-votes)" @@ -717,8 +720,8 @@ - '{"jsonrpc":"2.0", "method":"condenser_api.get_content", "params":["alice", "a-post-by-alice"], "id":1}' expected_curl_responses: - - Invalid parameters - - Invalid parameters + - Invalid parameters + - Invalid parameters client_docs: - "[hive-js](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#get-content)" - "[beem](https://beem.readthedocs.io/en/latest/apidefinitions.html#get-content)" @@ -790,8 +793,8 @@ - '{"jsonrpc":"2.0", "method":"condenser_api.get_content_replies", "params":["alice", "a-post-by-alice"], "id":1}' expected_curl_responses: - - Invalid parameters - - Invalid parameters + - Invalid parameters + - Invalid parameters client_docs: - "[hive-js](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#get-content-replies)" - "[beem](https://beem.readthedocs.io/en/latest/apidefinitions.html#get-content-replies)" @@ -811,8 +814,8 @@ curl_examples: - '{"jsonrpc":"2.0", "method":"condenser_api.get_conversion_requests", "params":[1234], "id":1}' - expected_curl_responses: - - Given account does not exist + expected_curl_responses: + - Given account does not exist client_docs: - "[hive-js](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#get-conversion-requests)" - "[beem](https://beem.readthedocs.io/en/latest/apidefinitions.html#get-conversion-requests)" @@ -865,7 +868,7 @@ - '{"jsonrpc":"2.0", "method":"condenser_api.get_discussions_by_author_before_date", "params":["hiveio","firstpost","2016-04-19T22:49:43",1], "id":1}' expected_curl_responses: - - Invalid parameters + - Invalid parameters client_docs: - "[hive-js](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#get-discussions-by-author-before-date)" - "[beem](https://beem.readthedocs.io/en/latest/apidefinitions.html#get-discussions-by-author-before-date)" @@ -950,8 +953,8 @@ - '{"jsonrpc":"2.0", "method":"condenser_api.get_discussions_by_comments", "params":[{"start_author":"alice","start_permlink":"a-post-by-alice","limit":10,"truncate_body":0}], "id":1}' expected_curl_responses: - - Invalid parameters - - Invalid parameters + - Invalid parameters + - Invalid parameters client_docs: - "[hive-js](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#get-discussions-by-comments)" - "[beem](https://beem.readthedocs.io/en/latest/apidefinitions.html#get-discussions-by-comments)" @@ -1602,8 +1605,8 @@ - '{"jsonrpc":"2.0", "method":"condenser_api.get_reblogged_by", "params":["alice","a-post-by-alice"], "id":1}' expected_curl_responses: - - Invalid parameters - - Invalid parameters + - Invalid parameters + - Invalid parameters client_docs: - "[hive-js](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#get-reblogged-by)" - "[beem](https://beem.readthedocs.io/en/latest/apidefinitions.html#get-reblogged-by)" @@ -1668,7 +1671,7 @@ - '{"jsonrpc":"2.0", "method":"condenser_api.get_replies_by_last_update", "params":["hiveio","firstpost",1], "id":1}' expected_curl_responses: - - Invalid parameters + - Invalid parameters client_docs: - "[hive-js](https://gitlab.syncad.com/hive/hive-js/tree/master/doc#get-replies-by-last-update)" - "[beem](https://beem.readthedocs.io/en/latest/apidefinitions.html#get-replies-by-last-update)" @@ -2602,7 +2605,7 @@ since: HF25 purpose: | Finds transfers of any liquid asset every fixed amount of time from one account to another. - + Also see: [recurrent_transfer_operation]({{ '/apidefinitions/#broadcast_ops_recurrent_transfer' | relative_url }}) parameter_json: '[""]' expected_response_json: | @@ -2623,3 +2626,18 @@ - '{"jsonrpc":"2.0", "method":"condenser_api.find_recurrent_transfers", "params":["alice"], "id":1}' client_docs: - "[hivesql](https://docs.hivesql.io/technical-informations/operations/txrecurrenttransfers-hf25)" + - api_method: condenser_api.find_rc_accounts + since: HF26 + purpose: + parameter_json: "[]" + expected_response_json: "[]" + - api_method: condenser_api.list_rc_accounts + since: HF26 + purpose: + parameter_json: "[]" + expected_response_json: "[]" + - api_method: condenser_api.list_rc_direct_delegations + since: HF26 + purpose: + parameter_json: "[]" + expected_response_json: "[]" diff --git a/_data/apidefinitions/database_api.yml b/_data/apidefinitions/database_api.yml index 54bd6982..767fb0d7 100644 --- a/_data/apidefinitions/database_api.yml +++ b/_data/apidefinitions/database_api.yml @@ -1077,12 +1077,13 @@ "2019-08-29T15:00:00", "2020-03-20T14:00:00", "2020-10-06T14:00:00", - "2021-06-30T14:00:00" + "2021-06-30T14:00:00", + "2022-10-11T12:00:00" ], - "last_hardfork": 25, - "current_hardfork_version": "1.25.0", - "next_hardfork": "1.25.0", - "next_hardfork_time": "2021-06-30T14:00:00" + "last_hardfork": 26, + "current_hardfork_version": "1.26.0", + "next_hardfork": "1.26.0", + "next_hardfork_time": "2022-10-11T12:00:00" } curl_examples: - '{"jsonrpc":"2.0", "method":"database_api.get_hardfork_properties", "id":1}' @@ -2184,7 +2185,7 @@ purpose: | Returns true if the transaction has all of the required signatures, otherwise throws an exception. - parameter_json: '{"trx":{"ref_block_num":0,"ref_block_prefix":0,"expiration":"1970-01-01T00:00:00","operations":[],"extensions":[],"signatures":[]}}' + parameter_json: '{"trx":{"ref_block_num":0,"ref_block_prefix":0,"expiration":"1970-01-01T00:00:00","operations":[],"extensions":[],"signatures":[]},"pack":"legacy"}' expected_response_json: '{"valid":false}' curl_examples: - '{"jsonrpc":"2.0", "method":"database_api.verify_authority", "params":{"trx":{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[{"type":"pow_operation","value":{"worker_account":"cloop3","block_id":"00000449f7860b82b4fbe2f317c670e9f01d6d9a","nonce":3899,"work":{"worker":"STM7P5TDnA87Pj9T4mf6YHrhzjC1KbPZpNxLWCcVcHxNYXakpoT4F","input":"ae8e7c677119d22385f8c48026fee7aad7bba693bf788d7f27047f40b47738c0","signature":"1f38fe9a3f9989f84bd94aa5bbc88beaf09b67f825aa4450cf5105d111149ba6db560b582c7dbb026c7fc9c2eb5051815a72b17f6896ed59d3851d9a0f9883ca7a","work":"000e7b209d58f2e64b36e9bf12b999c6c7af168cc3fc41eb7f8a4bf796c174c3"},"props":{"account_creation_fee":{"amount":"100000","precision":3,"nai":"@@000000021"},"maximum_block_size":131072,"hbd_interest_rate":1000}}}],"extensions":[],"signatures":[]}}, diff --git a/_data/apidefinitions/network_broadcast_api.yml b/_data/apidefinitions/network_broadcast_api.yml index 31ee0b35..5c979cd9 100644 --- a/_data/apidefinitions/network_broadcast_api.yml +++ b/_data/apidefinitions/network_broadcast_api.yml @@ -9,7 +9,11 @@ Also see: [Blockchain Ops]({{ '/apidefinitions/broadcast-ops.html' | relative_url }}) methods: - api_method: network_broadcast_api.broadcast_block - purpose: Used to broadcast a block. + removed: true + purpose: | + **Removed: HF26** + + Used to broadcast a block. parameter_json: '{"block":{"previous":"0000000000000000000000000000000000000000","timestamp":"1970-01-01T00:00:00","witness":"","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","transactions":[]}}' expected_response_json: "{}" curl_examples: diff --git a/_data/apidefinitions/rc_api.yml b/_data/apidefinitions/rc_api.yml index e27a1a4b..fed2d6b9 100644 --- a/_data/apidefinitions/rc_api.yml +++ b/_data/apidefinitions/rc_api.yml @@ -1,4 +1,4 @@ -# Generated by Scrape::ApiDefinitionsJob: 2019-08-29 16:23:46 UTC +# Generated by Scrape::ApiDefinitionsJob: 2022-10-17 14:31:05 UTC # See: https://git.io/vx5CY --- - name: Resource Credit API @@ -280,3 +280,11 @@ client_docs: - "[beem](https://beem.readthedocs.io/en/latest/beem.rc.html)" - "[hive-ruby](https://www.rubydoc.info/gems/hive-ruby/Hive/Api)" + - api_method: rc_api.list_rc_accounts + purpose: + parameter_json: '{"start":null,"limit":0}' + expected_response_json: '{"rc_accounts":[]}' + - api_method: rc_api.list_rc_direct_delegations + purpose: + parameter_json: '{"start":null,"limit":0}' + expected_response_json: '{"rc_direct_delegations":[]}' diff --git a/_data/apidefinitions/wallet_bridge_api.yml b/_data/apidefinitions/wallet_bridge_api.yml new file mode 100644 index 00000000..db26f4bb --- /dev/null +++ b/_data/apidefinitions/wallet_bridge_api.yml @@ -0,0 +1,146 @@ +# Generated by Scrape::ApiDefinitionsJob: 2022-10-17 14:31:05 UTC +# See: https://git.io/vx5CY +--- +- name: :wallet_bridge_api + description: + methods: + - api_method: wallet_bridge_api.broadcast_transaction + purpose: + parameter_json: 'null' + expected_response_json: "{}" + - api_method: wallet_bridge_api.broadcast_transaction_synchronous + purpose: + parameter_json: 'null' + expected_response_json: '{"id":"0000000000000000000000000000000000000000","block_num":0,"trx_num":0,"expired":false}' + - api_method: wallet_bridge_api.find_proposals + purpose: + parameter_json: 'null' + expected_response_json: '{"proposals":[]}' + - api_method: wallet_bridge_api.find_rc_accounts + purpose: + parameter_json: 'null' + expected_response_json: "[]" + - api_method: wallet_bridge_api.find_recurrent_transfers + purpose: + parameter_json: 'null' + expected_response_json: "[]" + - api_method: wallet_bridge_api.get_account + purpose: + parameter_json: 'null' + expected_response_json: 'null' + - api_method: wallet_bridge_api.get_account_history + purpose: + parameter_json: 'null' + expected_response_json: "[]" + - api_method: wallet_bridge_api.get_accounts + purpose: + parameter_json: 'null' + expected_response_json: "[]" + - api_method: wallet_bridge_api.get_active_witnesses + purpose: + parameter_json: 'null' + expected_response_json: '{"witnesses":[]}' + - api_method: wallet_bridge_api.get_block + purpose: + parameter_json: 'null' + expected_response_json: "{}" + - api_method: wallet_bridge_api.get_chain_properties + purpose: + parameter_json: 'null' + expected_response_json: '{"account_creation_fee":{"amount":"1","precision":3,"nai":"@@000000021"},"maximum_block_size":131072,"hbd_interest_rate":1000,"account_subsidy_budget":797,"account_subsidy_decay":347321}' + - api_method: wallet_bridge_api.get_collateralized_conversion_requests + purpose: + parameter_json: 'null' + expected_response_json: "[]" + - api_method: wallet_bridge_api.get_conversion_requests + purpose: + parameter_json: 'null' + expected_response_json: "[]" + - api_method: wallet_bridge_api.get_current_median_history_price + purpose: + parameter_json: 'null' + expected_response_json: '{"base":{"amount":"0","precision":3,"nai":"@@000000021"},"quote":{"amount":"0","precision":3,"nai":"@@000000021"}}' + - api_method: wallet_bridge_api.get_dynamic_global_properties + purpose: + parameter_json: 'null' + expected_response_json: '{"id":0,"head_block_number":0,"head_block_id":"0000000000000000000000000000000000000000","time":"1970-01-01T00:00:00","current_witness":"","total_pow":0,"num_pow_witnesses":0,"virtual_supply":{"amount":"0","precision":3,"nai":"@@000000021"},"current_supply":{"amount":"0","precision":3,"nai":"@@000000021"},"init_hbd_supply":{"amount":"0","precision":3,"nai":"@@000000021"},"current_hbd_supply":{"amount":"0","precision":3,"nai":"@@000000021"},"total_vesting_fund_hive":{"amount":"0","precision":3,"nai":"@@000000021"},"total_vesting_shares":{"amount":"0","precision":3,"nai":"@@000000021"},"total_reward_fund_hive":{"amount":"0","precision":3,"nai":"@@000000021"},"total_reward_shares2":"0","pending_rewarded_vesting_shares":{"amount":"0","precision":3,"nai":"@@000000021"},"pending_rewarded_vesting_hive":{"amount":"0","precision":3,"nai":"@@000000021"},"hbd_interest_rate":0,"hbd_print_rate":0,"maximum_block_size":0,"required_actions_partition_percent":0,"current_aslot":0,"recent_slots_filled":"0","participation_count":0,"last_irreversible_block_num":0,"vote_power_reserve_rate":0,"delegation_return_period":0,"reverse_auction_seconds":0,"available_account_subsidies":0,"hbd_stop_percent":0,"hbd_start_percent":0,"next_maintenance_time":"1970-01-01T00:00:00","last_budget_time":"1970-01-01T00:00:00","next_daily_maintenance_time":"1970-01-01T00:00:00","content_reward_percent":0,"vesting_reward_percent":0,"proposal_fund_percent":0,"dhf_interval_ledger":{"amount":"0","precision":3,"nai":"@@000000021"},"downvote_pool_percent":0,"current_remove_threshold":0,"early_voting_seconds":0,"mid_voting_seconds":0,"max_consecutive_recurrent_transfer_failures":10,"max_recurrent_transfer_end_date":730,"min_recurrent_transfers_recurrence":24,"max_open_recurrent_transfers":255}' + - api_method: wallet_bridge_api.get_feed_history + purpose: + parameter_json: 'null' + expected_response_json: '{"id":0,"current_median_history":{"base":{"amount":"0","precision":3,"nai":"@@000000021"},"quote":{"amount":"0","precision":3,"nai":"@@000000021"}},"market_median_history":{"base":{"amount":"0","precision":3,"nai":"@@000000021"},"quote":{"amount":"0","precision":3,"nai":"@@000000021"}},"current_min_history":{"base":{"amount":"0","precision":3,"nai":"@@000000021"},"quote":{"amount":"0","precision":3,"nai":"@@000000021"}},"current_max_history":{"base":{"amount":"0","precision":3,"nai":"@@000000021"},"quote":{"amount":"0","precision":3,"nai":"@@000000021"}},"price_history":[]}' + - api_method: wallet_bridge_api.get_hardfork_version + purpose: + parameter_json: 'null' + expected_response_json: '"0.0.0"' + - api_method: wallet_bridge_api.get_open_orders + purpose: + parameter_json: 'null' + expected_response_json: "[]" + - api_method: wallet_bridge_api.get_ops_in_block + purpose: + parameter_json: 'null' + expected_response_json: '{"ops":[]}' + - api_method: wallet_bridge_api.get_order_book + purpose: + parameter_json: 'null' + expected_response_json: '{"bids":[],"asks":[]}' + - api_method: wallet_bridge_api.get_owner_history + purpose: + parameter_json: 'null' + expected_response_json: '{"owner_auths":[]}' + - api_method: wallet_bridge_api.get_reward_fund + purpose: + parameter_json: 'null' + expected_response_json: '{"id":0,"name":"","reward_balance":{"amount":"0","precision":3,"nai":"@@000000021"},"recent_claims":"0","last_update":"1970-01-01T00:00:00","content_constant":"0","percent_curation_rewards":0,"percent_content_rewards":0,"author_reward_curve":"quadratic","curation_reward_curve":"quadratic"}' + - api_method: wallet_bridge_api.get_transaction + purpose: + parameter_json: 'null' + expected_response_json: '{"ref_block_num":0,"ref_block_prefix":0,"expiration":"1970-01-01T00:00:00","operations":[],"extensions":[],"signatures":[],"transaction_id":"0000000000000000000000000000000000000000","block_num":0,"transaction_num":0}' + - api_method: wallet_bridge_api.get_version + purpose: + parameter_json: 'null' + expected_response_json: "{}" + - api_method: wallet_bridge_api.get_withdraw_routes + purpose: + parameter_json: 'null' + expected_response_json: "[]" + - api_method: wallet_bridge_api.get_witness + purpose: + parameter_json: 'null' + expected_response_json: 'null' + - api_method: wallet_bridge_api.get_witness_schedule + purpose: + parameter_json: 'null' + expected_response_json: '{"id":0,"current_virtual_time":"0","next_shuffle_block_num":944743200,"current_shuffled_witnesses":[],"num_scheduled_witnesses":8,"elected_weight":226,"timeshare_weight":142,"miner_weight":10,"witness_pay_normalization_factor":32765,"median_props":{"account_creation_fee":{"amount":"1","precision":3,"nai":"@@000000021"},"maximum_block_size":131072,"hbd_interest_rate":1000,"account_subsidy_budget":797,"account_subsidy_decay":347321},"majority_version":"0.0.0","max_voted_witnesses":32,"max_miner_witnesses":41,"max_runner_witnesses":203,"hardfork_required_witnesses":52,"account_subsidy_rd":{"resource_unit":0,"budget_per_time_unit":0,"pool_eq":0,"max_pool_size":0,"decay_params":{"decay_per_time_unit":0,"decay_per_time_unit_denom_shift":0},"min_decay":0},"account_subsidy_witness_rd":{"resource_unit":0,"budget_per_time_unit":0,"pool_eq":0,"max_pool_size":0,"decay_params":{"decay_per_time_unit":0,"decay_per_time_unit_denom_shift":0},"min_decay":0},"min_witness_account_subsidy_decay":0}' + - api_method: wallet_bridge_api.is_known_transaction + purpose: + parameter_json: 'null' + expected_response_json: 'false' + - api_method: wallet_bridge_api.list_accounts + purpose: + parameter_json: 'null' + expected_response_json: "[]" + - api_method: wallet_bridge_api.list_my_accounts + purpose: + parameter_json: 'null' + expected_response_json: "[]" + - api_method: wallet_bridge_api.list_proposal_votes + purpose: + parameter_json: 'null' + expected_response_json: '{"proposal_votes":[]}' + - api_method: wallet_bridge_api.list_proposals + purpose: + parameter_json: 'null' + expected_response_json: '{"proposals":[]}' + - api_method: wallet_bridge_api.list_rc_accounts + purpose: + parameter_json: 'null' + expected_response_json: "[]" + - api_method: wallet_bridge_api.list_rc_direct_delegations + purpose: + parameter_json: 'null' + expected_response_json: "[]" + - api_method: wallet_bridge_api.list_witnesses + purpose: + parameter_json: 'null' + expected_response_json: '{"witnesses":[]}' -- GitLab