From 710101227439c803bd708919a82e07f465d5d94c Mon Sep 17 00:00:00 2001 From: inertia <amartin75@gmail.com> Date: Fri, 23 Oct 2020 20:38:06 -0700 Subject: [PATCH] eclipse update --- CONTRIBUTING.md | 4 +- Gemfile | 2 +- Gemfile.lock | 28 +- Rakefile | 53 +--- _data/apidefinitions/bridge.yml | 2 +- _data/apidefinitions/broadcast_ops.yml | 92 +++--- _data/apidefinitions/condenser_api.yml | 116 ++++---- _data/apidefinitions/database_api.yml | 124 ++++---- _data/apidefinitions/debug_node_api.yml | 2 +- _data/apidefinitions/follow_api.yml | 2 +- _data/apidefinitions/jsonrpc.yml | 4 +- _data/apidefinitions/market_history_api.yml | 16 +- .../apidefinitions/network_broadcast_api.yml | 2 +- _data/apidefinitions/rc_api.yml | 2 +- _data/apidefinitions/tags_api.yml | 12 +- .../apidefinitions/transaction_status_api.yml | 2 +- _data/glossary/index.yml | 2 +- _data/objects/config.yml | 8 +- _data/objects/dgpo.yml | 22 +- _data/testnet/tools.yml | 2 +- _includes/api-template.html | 2 +- _includes/tutorials-javascript/blog_feed.json | 20 +- _includes/tutorials-javascript/get_posts.json | 20 +- _plugins/post_generator.rb | 8 +- _quickstart/choose_library.md | 2 +- _quickstart/hive_full_nodes.md | 14 +- _quickstart/testnet.md | 26 +- _resources/_piston.md | 2 +- _resources/bluepaper.md | 2 +- _resources/client_libs.md | 16 +- _resources/developeradvocate.md | 8 +- _resources/hive_keychain.md | 2 +- _resources/tools.md | 8 +- _resources/whitepaper.md | 4 +- _services/dhf.md | 6 +- _services/hive.blog.md | 24 +- _services/imageHoster.md | 2 +- _services/jussi.md | 96 +++---- _testnet/index.md | 30 +- _tutorials-javascript/account_reputation.md | 10 +- _tutorials-javascript/blog_feed.md | 4 +- _tutorials-javascript/claim_rewards.md | 30 +- _tutorials-javascript/convert_sbd_to_steem.md | 40 +-- _tutorials-javascript/create_account.md | 16 +- _tutorials-javascript/delegate_power.md | 20 +- .../edit_content_patching.md | 8 +- _tutorials-javascript/follow_a_user.md | 4 +- _tutorials-javascript/get_account_comments.md | 24 +- _tutorials-javascript/get_account_replies.md | 24 +- .../get_delegations_by_user.md | 6 +- .../get_follower_and_following_list.md | 10 +- _tutorials-javascript/get_post_comments.md | 2 +- _tutorials-javascript/get_post_details.md | 4 +- _tutorials-javascript/get_posts.md | 2 +- .../get_state_replacement_api.md | 126 ++++----- .../grant_active_permission.md | 12 +- .../grant_posting_permission.md | 4 +- _tutorials-javascript/power_down.md | 20 +- _tutorials-javascript/power_up_steem.md | 30 +- _tutorials-javascript/reblogging_post.md | 12 +- _tutorials-javascript/search_accounts.md | 4 +- _tutorials-javascript/search_tags.md | 6 +- _tutorials-javascript/set_withdraw_route.md | 14 +- .../stream_blockchain_transactions.md | 8 +- _tutorials-javascript/submit_comment_reply.md | 10 +- _tutorials-javascript/submit_post.md | 10 +- .../transfer_steem_and_sbd.md | 24 +- _tutorials-javascript/vote_on_content.md | 16 +- .../witness_listing_and_voting.md | 6 +- _tutorials-python/account_recovery.md | 16 +- _tutorials-python/account_reputation.md | 10 +- _tutorials-python/claim_rewards.md | 58 ++-- _tutorials-python/convert_sbd_to_steem.md | 60 ++-- _tutorials-python/delegate_power.md | 16 +- _tutorials-python/edit_content_patching.md | 12 +- _tutorials-python/follow_a_user.md | 12 +- _tutorials-python/get_account_comments.md | 40 +-- _tutorials-python/get_account_replies.md | 12 +- _tutorials-python/get_delegations_by_user.md | 8 +- .../get_follower_and_following_list.md | 10 +- _tutorials-python/get_post_comments.md | 40 +-- _tutorials-python/get_post_details.md | 32 +-- _tutorials-python/get_posts.md | 34 +-- _tutorials-python/get_voters_list_on_post.md | 12 +- _tutorials-python/getting_started.md | 2 +- _tutorials-python/grant_active_permission.md | 10 +- _tutorials-python/grant_posting_permission.md | 6 +- _tutorials-python/password_key_change.md | 12 +- _tutorials-python/power_down.md | 12 +- _tutorials-python/power_up_steem.md | 44 +-- _tutorials-python/reblogging_post.md | 14 +- _tutorials-python/search_accounts.md | 12 +- .../stream_blockchain_transactions.md | 6 +- _tutorials-python/submit_comment_reply.md | 14 +- _tutorials-python/submit_post.md | 16 +- _tutorials-python/transfer_STEEM_and_SBD.md | 60 ++-- ...ansfer_steem_and_sbd_to_savings_balance.md | 84 +++--- _tutorials-python/using_keys_securely.md | 20 +- _tutorials-python/vote_on_content.md | 12 +- .../witness_listing_and_voting.md | 12 +- .../account-creation-process.md | 16 +- _tutorials-recipes/calculate_rc_recipe.md | 14 +- _tutorials-recipes/estimate_upvote.md | 44 +-- _tutorials-recipes/exchange_node.md | 36 +-- _tutorials-recipes/forum-market-bandwidth.md | 66 ++--- _tutorials-recipes/get_transaction_node.md | 34 +-- .../how-to-serialize-and-sign-using-js.md | 6 +- _tutorials-recipes/jussi-multiplexer.md | 6 +- _tutorials-recipes/mira-performance-tuning.md | 2 +- _tutorials-recipes/node-cli.md | 6 +- _tutorials-recipes/node-config.md | 20 +- _tutorials-recipes/paginated-api-methods.md | 266 +++++++++--------- _tutorials-recipes/plugin-and-api-list.md | 6 +- .../understanding-configuration-values.md | 26 +- ...understanding-dynamic-global-properties.md | 30 +- .../understanding-transaction-status.md | 6 +- _tutorials-recipes/using-hivemind.md | 14 +- .../using-multisignatire-accounts.md | 4 +- _tutorials-recipes/vest-to-steem.md | 38 +-- ...-when-streaming-blockchain-transactions.md | 12 +- _tutorials-ruby/blog_feed.md | 20 +- _tutorials-ruby/edit_content_patching.md | 4 +- _tutorials-ruby/follow_another_user.md | 2 +- _tutorials-ruby/get_account_comments.md | 8 +- _tutorials-ruby/get_account_replies.md | 8 +- .../get_follower_and_following_list.md | 4 +- _tutorials-ruby/get_post_comments.md | 4 +- _tutorials-ruby/get_post_details.md | 32 +-- _tutorials-ruby/get_posts.md | 8 +- _tutorials-ruby/get_voters_list_on_post.md | 4 +- _tutorials-ruby/getting_started.md | 6 +- _tutorials-ruby/reblogging_post.md | 6 +- _tutorials-ruby/search_accounts.md | 2 +- _tutorials-ruby/search_tags.md | 22 +- .../stream_blockchain_transactions.md | 6 +- _tutorials-ruby/submit_comment_reply.md | 8 +- _tutorials-ruby/submit_post.md | 4 +- _tutorials-ruby/vote_on_content.md | 14 +- images/logo.svg | 2 +- images/logo_white.svg | 2 +- lib/scrape/api_definitions_job.rb | 6 +- .../javascript/01_blog_feed/public/app.js | 2 +- .../javascript/02_hivesigner/package.json | 4 +- .../javascript/02_hivesigner/public/bundle.js | 2 +- .../javascript/03_client_signing/package.json | 2 +- .../javascript/04_get_posts/public/app.js | 4 +- .../05_get_post_details/public/app.js | 4 +- .../06_get_voters_list_on_post/public/app.js | 4 +- .../07_get_post_comments/public/app.js | 4 +- .../08_get_account_replies/public/app.js | 4 +- .../09_get_account_comments/public/app.js | 4 +- .../javascript/10_submit_post/public/app.js | 2 +- .../10_submit_post/public/index.html | 2 +- .../11_submit_comment_reply/public/app.js | 2 +- .../11_submit_comment_reply/public/index.html | 2 +- .../12_edit_content_patching/public/app.js | 2 +- .../public/index.html | 2 +- .../public/app.js | 4 +- .../public/index.html | 4 +- .../14_reblogging_post/public/app.js | 6 +- .../15_search_accounts/public/app.js | 6 +- .../javascript/16_search_tags/public/app.js | 4 +- .../17_vote_on_content/public/app.js | 6 +- .../javascript/18_follow_a_user/public/app.js | 2 +- .../public/app.js | 4 +- .../20_account_reputation/public/app.js | 4 +- .../21_transfer_steem_and_sbd/README.md | 2 +- .../21_transfer_steem_and_sbd/package.json | 2 +- .../21_transfer_steem_and_sbd/public/app.js | 2 +- .../public/index.html | 8 +- .../public/app.js | 2 +- .../javascript/23_claim_rewards/public/app.js | 24 +- .../23_claim_rewards/public/index.html | 8 +- .../javascript/24_power_up_steem/README.md | 2 +- .../24_power_up_steem/package-lock.json | 2 +- .../javascript/24_power_up_steem/package.json | 2 +- .../24_power_up_steem/public/app.js | 12 +- .../24_power_up_steem/public/index.html | 4 +- .../javascript/25_power_down/public/app.js | 10 +- .../25_power_down/public/index.html | 2 +- .../26_create_account/public/app.js | 8 +- .../26_create_account/public/index.html | 10 +- .../27_delegate_power/public/app.js | 8 +- .../27_delegate_power/public/index.html | 6 +- .../28_set_withdraw_route/public/app.js | 4 +- .../28_set_withdraw_route/public/index.html | 4 +- .../29_get_delegations_by_user/public/app.js | 4 +- .../30_grant_posting_permission/public/app.js | 2 +- .../31_grant_active_permission/public/app.js | 2 +- .../32_convert_sbd_to_steem/README.md | 2 +- .../32_convert_sbd_to_steem/package.json | 2 +- .../32_convert_sbd_to_steem/public/app.js | 10 +- .../32_convert_sbd_to_steem/public/index.html | 4 +- .../public/app.js | 4 +- tutorials/javascript/configuration.js | 8 +- .../python/01_using_keys_securely/index.py | 10 +- tutorials/python/04_get_posts/index.py | 6 +- tutorials/python/05_get_post_details/index.py | 6 +- .../06_get_voters_list_on_post/index.py | 6 +- .../python/07_get_post_comments/index.py | 6 +- .../python/08_get_account_replies/index.py | 6 +- .../python/09_get_account_comments/index.py | 6 +- tutorials/python/10_submit_post/index.py | 6 +- .../python/11_submit_comment_reply/index.py | 6 +- .../python/12_edit_content_patching/index.py | 6 +- tutorials/python/14_reblogging_post/index.py | 8 +- tutorials/python/15_search_accounts/index.py | 6 +- tutorials/python/17_vote_on_content/index.py | 6 +- tutorials/python/18_follow_a_user/index.py | 6 +- .../index.py | 6 +- .../python/20_account_reputation/index.py | 8 +- .../21_transfer_steem_and_sbd/README.md | 2 +- .../python/21_transfer_steem_and_sbd/index.py | 38 +-- .../22_witness_listing_and_voting/index.py | 8 +- tutorials/python/23_claim_rewards/index.py | 44 +-- tutorials/python/24_power_up_steem/README.md | 2 +- tutorials/python/24_power_up_steem/index.py | 20 +- tutorials/python/25_power_down/index.py | 6 +- tutorials/python/27_delegate_power/index.py | 8 +- .../29_get_delegations_by_user/index.py | 4 +- .../30_grant_posting_permission/index.py | 8 +- .../31_grant_active_permission/index.py | 8 +- .../python/32_convert_sbd_to_steem/README.md | 2 +- .../python/32_convert_sbd_to_steem/index.py | 26 +- .../python/33_password_key_change/index.py | 4 +- .../README.md | 2 +- .../index.py | 50 ++-- tutorials/python/35_account_recovery/index.py | 8 +- tutorials/ruby/01_blog_feed/blog_feed.rb | 2 +- .../04_get_posts/get_posts_by_category.rb | 2 +- .../05_get_post_details/get_post_details.rb | 10 +- .../get_account_replies.rb | 2 +- .../get_account_comments.rb | 2 +- unused/community.md | 10 +- unused/docker.md | 10 +- unused/sbds.md | 16 +- unused/steemd.md | 2 +- unused/tutorials.md | 16 +- 238 files changed, 1722 insertions(+), 1767 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e3513bc8..678dd254 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ position: 1 layout: full --- -Everyone is welcome to contribute code to Steemit, Inc. projects. We have a Code of Conduct; +Everyone is welcome to contribute code to Hive projects. We have a Code of Conduct; we ask that you please follow it in all your interactions with our team and your fellow contributors. @@ -60,7 +60,7 @@ We will clarify standards of acceptable behavior and we will take appropriate and fair corrective action in response to any instances of unacceptable behavior. Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting us at github.abuse@steemit.com. All +reported by contacting us at github.abuse@hive.blog. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. We maintain strict confidentiality with regard to the reporter of an incident. diff --git a/Gemfile b/Gemfile index e477452a..d50b6737 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ gem 'jekyll' gem 'neatjson' gem 'rake' gem 'git' -gem 'steem-ruby' +gem 'hive-ruby' gem 'html-proofer' group :jekyll_plugins do diff --git a/Gemfile.lock b/Gemfile.lock index a7ab9228..f4a7592a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,7 +4,7 @@ GEM addressable (2.7.0) public_suffix (>= 2.0.2, < 5.0) base58 (0.2.3) - bindata (2.4.6) + bindata (2.4.8) bitcoin-ruby (0.0.20) eventmachine ffi @@ -25,6 +25,14 @@ GEM git (1.6.0) rchardet (~> 1.8) hashie (3.6.0) + hive-ruby (1.0.1) + base58 (~> 0.2, >= 0.2.3) + bindata (~> 2.4, >= 2.4.4) + bitcoin-ruby (~> 0.0, = 0.0.20) + ffi (~> 1.9, >= 1.9.23) + hashie (~> 3.5, >= 3.5.7) + json (~> 2.1, >= 2.1.0) + logging (~> 2.2, >= 2.2.0) html-proofer (3.15.1) addressable (~> 2.3) mercenary (~> 0.3) @@ -59,7 +67,7 @@ GEM jekyll (>= 3.7, < 5.0) jekyll-watch (2.2.1) listen (~> 3.0) - json (2.3.0) + json (2.3.1) kramdown (2.1.0) kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) @@ -68,12 +76,12 @@ GEM rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) little-plugger (1.1.4) - logging (2.2.2) + logging (2.3.0) little-plugger (~> 1.1) - multi_json (~> 1.10) + multi_json (~> 1.14) mercenary (0.3.6) mini_portile2 (2.4.0) - multi_json (1.14.1) + multi_json (1.15.0) neatjson (0.9) nokogiri (1.10.9) mini_portile2 (~> 2.4.0) @@ -95,14 +103,6 @@ GEM ffi (~> 1.9) scrypt (3.0.7) ffi-compiler (>= 1.0, < 2.0) - steem-ruby (0.9.4) - base58 (~> 0.2, >= 0.2.3) - bindata (~> 2.4, >= 2.4.4) - bitcoin-ruby (~> 0.0, >= 0.0.18) - ffi (~> 1.9, >= 1.9.23) - hashie (~> 3.5, >= 3.5.7) - json (~> 2.1, >= 2.1.0) - logging (~> 2.2, >= 2.2.0) terminal-table (1.8.0) unicode-display_width (~> 1.1, >= 1.1.1) typhoeus (1.3.1) @@ -115,13 +115,13 @@ PLATFORMS DEPENDENCIES git + hive-ruby html-proofer jekyll jekyll-seo-tag jekyll-sitemap neatjson rake - steem-ruby BUNDLED WITH 2.1.4 diff --git a/Rakefile b/Rakefile index 5b96e454..37ecf066 100644 --- a/Rakefile +++ b/Rakefile @@ -1,10 +1,6 @@ lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'scrape/api_definitions_job' -require 'generate/tutorials_job/base' -require 'generate/tutorials_job/javascript' -require 'generate/tutorials_job/python' -require 'generate/tutorials_job/ruby' require 'rake/testtask' require 'net/https' @@ -15,54 +11,13 @@ require 'html-proofer' namespace :scrape do desc "Scrape API Definitions" task :api_defs do - url = ENV.fetch('TEST_NODE', 'https://api.openhive.network') + url = ENV.fetch('TEST_NODE', 'https://api.hive.blog') job = Scrape::ApiDefinitionsJob.new(url: url) count = job.perform puts "Methods added or changed: #{count}" end end - -namespace :gen do - desc 'Generate all known tutorial README.md files.' - task :tutorials do - puts '=' * 80 - puts "JS-Tutorials:" - Rake::Task["gen:tutorials:js"].invoke - puts '=' * 80 - puts "PY-Tutorials:" - Rake::Task["gen:tutorials:py"].invoke - puts '=' * 80 - puts "RB-Tutorials:" - Rake::Task["gen:tutorials:rb"].invoke - end - - namespace :tutorials do - desc 'Generate JS-Tutorials' - task :js, [:num, :force] do |t, args| - job = Generate::TutorialsJob::Javascript.new(num: args[:num], force: args[:force]) - count = job.perform - - puts "Tutorials added or changed: #{count}" - end - - desc 'Generate PY-Tutorials' - task :py, [:num, :force] do |t, args| - job = Generate::TutorialsJob::Python.new(num: args[:num], force: args[:force]) - count = job.perform - - puts "Tutorials added or changed: #{count}" - end - - desc 'Generate RB-Tutorials' - task :rb, [:num, :force] do |t, args| - job = Generate::TutorialsJob::Ruby.new(num: args[:num], force: args[:force]) - count = job.perform - - puts "Tutorials added or changed: #{count}" - end - end -end namespace :production do task :prevent_dirty_builds do @@ -145,16 +100,16 @@ namespace :test do desc "Tests the curl examples of api definitions. Known APIs: #{KNOWN_APIS.join(' ')}" task :curl, [:apis] do |t, args| smoke = 0 - url = ENV.fetch('TEST_NODE', 'https://api.openhive.network') + url = ENV.fetch('TEST_NODE', 'https://api.hive.blog') apis = [args[:apis].split(' ').map(&:to_sym)].flatten if !!args[:apis] apis ||= KNOWN_APIS version = `curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_version", "params":[], "id":1}' #{url}` version = JSON[version]['result'] blockchain_version = version['blockchain_version'] - steem_rev = version['steem_revision'][0..5] + hive_rev = version['hive_revision'][0..5] fc_rev = version['fc_revision'][0..5] - puts "node: #{url}; blockchain_version: #{blockchain_version}; steem_rev: #{steem_rev}; fc_rev: #{fc_rev}" + puts "node: #{url}; blockchain_version: #{blockchain_version}; hive_rev: #{hive_rev}; fc_rev: #{fc_rev}" apis.each do |api| file_name = "_data/apidefinitions/#{api}.yml" diff --git a/_data/apidefinitions/bridge.yml b/_data/apidefinitions/bridge.yml index 95de3f52..7377644b 100644 --- a/_data/apidefinitions/bridge.yml +++ b/_data/apidefinitions/bridge.yml @@ -57,7 +57,7 @@ }, "beneficiaries":[], "max_accepted_payout":"1000000.000 HBD", - "percent_steem_dollars":10000, + "percent_hbd":10000, "url":"/wonderland/@alice/that-march-hare", "blacklists":[] } diff --git a/_data/apidefinitions/broadcast_ops.yml b/_data/apidefinitions/broadcast_ops.yml index b1c3a539..f882d3ac 100644 --- a/_data/apidefinitions/broadcast_ops.yml +++ b/_data/apidefinitions/broadcast_ops.yml @@ -312,7 +312,7 @@ since: HF20 virtual: false purpose: | - When used with `claim_account`, works identically to `account_create`. See: [Steem 0.20.2 Release Notes](https://github.com/steemit/steem/releases/tag/v0.20.2) + When used with `claim_account`, works identically to `account_create`. See: [Hive 0.20.2 Release Notes](https://github.com/steemit/steem/releases/tag/v0.20.2) roles: - active owner @@ -330,7 +330,7 @@ since: HF20 virtual: false purpose: | - When used with `create_claimed_account`, works identically to `account_create`. See: [Steem 0.20.2 Release Notes](https://github.com/steemit/steem/releases/tag/v0.20.2) + When used with `create_claimed_account`, works identically to `account_create`. See: [Hive 0.20.2 Release Notes](https://github.com/steemit/steem/releases/tag/v0.20.2) roles: - active owner @@ -354,7 +354,7 @@ props extensions json_examples: - - '["witness_set_properties",{"owner":"alice", "props":{"account_creation_fee":"0.000 HIVE","account_subsidy_budget":10000,"account_subsidy_decay":330782,"maximum_block_size":65536,"sbd_interest_rate": "0.000 HIVE","sbd_exchange_rate":{"base": "0.000 HBD", "quote": "0.000 HIVE"}, "url": "68747470733A2F2F737465656D69742E636F6D", "new_signing_key": "25688bbe7b1204f26e40be054c8b2ff1997eec6d4e7be6a105aab8a0e6f11c616d7cb6066"}, "extensions": []}]' + - '["witness_set_properties",{"owner":"alice", "props":{"account_creation_fee":"0.000 HIVE","account_subsidy_budget":10000,"account_subsidy_decay":330782,"maximum_block_size":65536,"hbd_interest_rate": "0.000 HIVE","hbd_exchange_rate":{"base": "0.000 HBD", "quote": "0.000 HIVE"}, "url": "68747470733A2F2F737465656D69742E636F6D", "new_signing_key": "25688bbe7b1204f26e40be054c8b2ff1997eec6d4e7be6a105aab8a0e6f11c616d7cb6066"}, "extensions": []}]' - name: account_update virtual: false purpose: @@ -425,7 +425,7 @@ props fee json_examples: - - '["witness_update",{"owner":"alice","url":"witness-category/my-witness","block_signing_key":"STM8LoQjQqJHvotqBo7HjnqmUbFW9oJ2theyqonzUd9DdJ7YYHsvD","props":{"account_creation_fee":{"amount":"100000","precision":3,"nai":"@@000000021"},"maximum_block_size":131072,"sbd_interest_rate":1000},"fee":{"amount":"0","precision":3,"nai":"@@000000021"}}]' + - '["witness_update",{"owner":"alice","url":"witness-category/my-witness","block_signing_key":"STM8LoQjQqJHvotqBo7HjnqmUbFW9oJ2theyqonzUd9DdJ7YYHsvD","props":{"account_creation_fee":{"amount":"100000","precision":3,"nai":"@@000000021"},"maximum_block_size":131072,"hbd_interest_rate":1000},"fee":{"amount":"0","precision":3,"nai":"@@000000021"}}]' - name: account_witness_vote virtual: false purpose: | @@ -474,7 +474,7 @@ signature work json_examples: - - '["pow",{"worker_account":"admin","block_id":"000004433bd4602cf5f74dbb564183837df9cef8","nonce":82,"work":{"worker":"STM65wH1LZ7BfSHcK69SShnqCAH5xdoSZpGkUjmzHJ5GCuxEK9V5G","input":"59b009f89477919f95914151cef06f28bf344dd6fb7670aca1c1f4323c80446b","signature":"1f3f83209097efcd01b7d6f27ce726164323d503d6fcf4d55bfb7cb3032796f6766738b36062b5850d69447fdf9c091cbc70825df5eeacc4710a0b11ffdbf0912a","work":"0b62f4837801cd857f01d6a541faeb13d6bb95f1c36c6b4b14a47df632aa6c92"},"props":{"account_creation_fee":{"amount":"100000","precision":3,"nai":"@@000000021"},"maximum_block_size":131072,"sbd_interest_rate":1000}}]' + - '["pow",{"worker_account":"admin","block_id":"000004433bd4602cf5f74dbb564183837df9cef8","nonce":82,"work":{"worker":"STM65wH1LZ7BfSHcK69SShnqCAH5xdoSZpGkUjmzHJ5GCuxEK9V5G","input":"59b009f89477919f95914151cef06f28bf344dd6fb7670aca1c1f4323c80446b","signature":"1f3f83209097efcd01b7d6f27ce726164323d503d6fcf4d55bfb7cb3032796f6766738b36062b5850d69447fdf9c091cbc70825df5eeacc4710a0b11ffdbf0912a","work":"0b62f4837801cd857f01d6a541faeb13d6bb95f1c36c6b4b14a47df632aa6c92"},"props":{"account_creation_fee":{"amount":"100000","precision":3,"nai":"@@000000021"},"maximum_block_size":131072,"hbd_interest_rate":1000}}]' - name: custom virtual: false purpose: | @@ -564,13 +564,13 @@ **Notes:** * The max_accepted_payout may be decreased, but never increased. - * The percent_steem_dollars may be decreased, but never increased. + * The percent_hbd may be decreased, but never increased. * Part of `comment_option` validation process, to be called when `allowed_vote_assets` object has been added as comment option extension are: * When votable assets are greater than maximum votable assets: *"Too much votable assets specified"* * When the symbol is not allowed in the list for votable assets: *"HIVE can not be explicitly specified as one of allowed_vote_assets"* * `max_accepted_payout`: HBD value of the maximum payout this post will receive - * `percent_steem_dollars`: the percent of Hive Dollars to key, unkept amounts will be received as Hive Power + * `percent_hbd`: the percent of Hive Dollars to key, unkept amounts will be received as Hive Power * `allow_votes`: allows/disallows a post to receive votes; * `allow_curation_rewards`: allows/disllows voters to recieve curation rewards. Rewards return to reward fund. * `beneficiaries` @@ -587,14 +587,14 @@ - author permlink max_accepted_payout - percent_steem_dollars + percent_hbd allow_votes allow_curation_rewards extensions json_examples: - - '["comment_options",{"author":"alice","permlink":"a-post-by-alice","max_accepted_payout":{"amount":"1000000","precision":3,"nai":"@@000000013"},"percent_steem_dollars":5000,"allow_votes":true,"allow_curation_rewards":true,"extensions":[]}]' - - '["comment_options",{"author":"bob","permlink":"a-post-with-a-beneficiary","max_accepted_payout":{"amount":"1000000","precision":3,"nai":"@@000000013"},"percent_steem_dollars":63,"allow_votes":true,"allow_curation_rewards":true,"extensions":[[0,{"beneficiaries":[{"account":"charlie","weight":1000}]}]]}]' - - '["comment_options",{"author":"charlie","permlink":"a-post-with-multiple-beneficiaries","max_accepted_payout":{"amount":"1000000","precision":3,"nai":"@@000000013"},"percent_steem_dollars":62688,"allow_votes":true,"allow_curation_rewards":true,"extensions":[[0,{"beneficiaries":[{"account":"david","weight":500},{"account":"erin","weight":500},{"account":"faythe","weight":1000},{"account":"frank","weight":500}]}]]}]' + - '["comment_options",{"author":"alice","permlink":"a-post-by-alice","max_accepted_payout":{"amount":"1000000","precision":3,"nai":"@@000000013"},"percent_hbd":5000,"allow_votes":true,"allow_curation_rewards":true,"extensions":[]}]' + - '["comment_options",{"author":"bob","permlink":"a-post-with-a-beneficiary","max_accepted_payout":{"amount":"1000000","precision":3,"nai":"@@000000013"},"percent_hbd":63,"allow_votes":true,"allow_curation_rewards":true,"extensions":[[0,{"beneficiaries":[{"account":"charlie","weight":1000}]}]]}]' + - '["comment_options",{"author":"charlie","permlink":"a-post-with-multiple-beneficiaries","max_accepted_payout":{"amount":"1000000","precision":3,"nai":"@@000000013"},"percent_hbd":62688,"allow_votes":true,"allow_curation_rewards":true,"extensions":[[0,{"beneficiaries":[{"account":"david","weight":500},{"account":"erin","weight":500},{"account":"faythe","weight":1000},{"account":"frank","weight":500}]}]]}]' - name: set_withdraw_vesting_route virtual: false purpose: | @@ -779,7 +779,7 @@ Escrow transactions are uniquely identified by `from` and `escrow_id`, the `escrow_id` is defined by the sender. - See: [steem_operations.hpp:229](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/steem_operations.hpp#L229-L322) + See: [hive_operations.hpp:229](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/hive_operations.hpp#L229-L322) roles: - active owner @@ -788,14 +788,14 @@ to agent escrow_id - sbd_amount - steem_amount + hbd_amount + hive_amount fee ratification_deadline escrow_expiration json_meta json_examples: - - '["escrow_transfer",{"from":"alice","to":"bob","sbd_amount":{"amount":"1000","precision":3,"nai":"@@000000013"},"steem_amount":{"amount":"0","precision":3,"nai":"@@000000021"},"escrow_id":23456789,"agent":"charlie","fee":{"amount":"100","precision":3,"nai":"@@000000013"},"json_meta":"{}","ratification_deadline":"2017-02-26T11:22:39","escrow_expiration":"2017-02-28T11:22:39"}]' + - '["escrow_transfer",{"from":"alice","to":"bob","hbd_amount":{"amount":"1000","precision":3,"nai":"@@000000013"},"hive_amount":{"amount":"0","precision":3,"nai":"@@000000021"},"escrow_id":23456789,"agent":"charlie","fee":{"amount":"100","precision":3,"nai":"@@000000013"},"json_meta":"{}","ratification_deadline":"2017-02-26T11:22:39","escrow_expiration":"2017-02-28T11:22:39"}]' - name: escrow_dispute since: HF14 virtual: false @@ -804,7 +804,7 @@ can raise it for dispute. Once a payment is in dispute, the agent has authority over who gets what. - See: [steem_operations.hpp:229](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/steem_operations.hpp#L229-L322) + See: [hive_operations.hpp:229](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/hive_operations.hpp#L229-L322) roles: - active owner @@ -831,7 +831,7 @@ * If there is a dispute regardless of expiration, the agent can release funds to either party following whichever agreement was in place between the parties. - See: [steem_operations.hpp:229](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/steem_operations.hpp#L229-L322) + See: [hive_operations.hpp:229](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/hive_operations.hpp#L229-L322) roles: - active owner @@ -842,10 +842,10 @@ who receiver escrow_id - sbd_amount - steem_amount + hbd_amount + hive_amount json_examples: - - '["escrow_release",{"from":"alice","to":"bob","agent":"charlie","who":"charlie","receiver":"bob","escrow_id":72526562,"sbd_amount":{"amount":"5000","precision":3,"nai":"@@000000013"},"steem_amount":{"amount":"0","precision":3,"nai":"@@000000021"}}]' + - '["escrow_release",{"from":"alice","to":"bob","agent":"charlie","who":"charlie","receiver":"bob","escrow_id":72526562,"hbd_amount":{"amount":"5000","precision":3,"nai":"@@000000013"},"hive_amount":{"amount":"0","precision":3,"nai":"@@000000021"}}]' - name: pow2 disabled: true virtual: false @@ -858,7 +858,7 @@ - input pow_summary json_examples: - - '["pow2",{"work":[0,{"input":{"worker_account":"alice","prev_block":"003ea604345523c344fbadab605073ea712dd76f","nonce":"1052853013628665497"},"pow_summary":3817904373}],"props":{"account_creation_fee":{"amount":"1","precision":3,"nai":"@@000000021"},"maximum_block_size":131072,"sbd_interest_rate":1000}}]' + - '["pow2",{"work":[0,{"input":{"worker_account":"alice","prev_block":"003ea604345523c344fbadab605073ea712dd76f","nonce":"1052853013628665497"},"pow_summary":3817904373}],"props":{"account_creation_fee":{"amount":"1","precision":3,"nai":"@@000000021"},"maximum_block_size":131072,"hbd_interest_rate":1000}}]' - name: escrow_approve since: HF14 virtual: false @@ -868,7 +868,7 @@ cannot revoke their approval. Subsequent escrow approve operations, regardless of the approval, will be rejected. - See: [steem_operations.hpp:229](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/steem_operations.hpp#L229-L322) + See: [hive_operations.hpp:229](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/hive_operations.hpp#L229-L322) roles: - active owner @@ -893,7 +893,7 @@ Assuming an account can be recovered quickly, loss in such situations can be kept to a minimum. - See: [steem_operations.hpp:868](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/steem_operations.hpp#L868-L895) + See: [hive_operations.hpp:868](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/hive_operations.hpp#L868-L895) roles: - active owner @@ -941,7 +941,7 @@ binary deserialization of plugin operations and should improve overall performance of plugins that chose to use it. - See: [steem_operations.hpp:491](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/steem_operations.hpp#L491-L506) + See: [hive_operations.hpp:491](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/hive_operations.hpp#L491-L506) roles: - posting active @@ -959,7 +959,7 @@ formalize a smart contract between certain accounts and the community that currently only exists as a social contract. - See: [steem_operations.hpp:897](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/steem_operations.hpp#L897-L905) + See: [hive_operations.hpp:897](https://github.com/steemit/steem/blob/86ec544b731680eaba3808cc7a41e8ea73d89701/libraries/chain/include/steemit/chain/protocol/hive_operations.hpp#L897-L905) roles: - owner params: @@ -1008,11 +1008,11 @@ owner params: - account - reward_steem - reward_sbd + reward_hive + reward_hbd reward_vests json_examples: - - '["claim_reward_balance",{"account":"alice","reward_steem":{"amount":"17","precision":3,"nai":"@@000000021"},"reward_sbd":{"amount":"11","precision":3,"nai":"@@000000013"},"reward_vests":{"amount":"185025103","precision":6,"nai":"@@000000037"}}]' + - '["claim_reward_balance",{"account":"alice","reward_hive":{"amount":"17","precision":3,"nai":"@@000000021"},"reward_hbd":{"amount":"11","precision":3,"nai":"@@000000013"},"reward_vests":{"amount":"185025103","precision":6,"nai":"@@000000037"}}]' - name: delegate_vesting_shares since: HF17 virtual: false @@ -1027,7 +1027,7 @@ to prevent a satoshi of VESTS from voting on the same content twice. Also see: - * [steem_evaluator.cpp:2309](https://github.com/steemit/steem/blob/4b19e00dd6a76699aa4de1c0d50aad392cd2d0b6/libraries/chain/steem_evaluator.cpp#L2309) + * [hive_evaluator.cpp:2309](https://github.com/steemit/steem/blob/4b19e00dd6a76699aa4de1c0d50aad392cd2d0b6/libraries/chain/hive_evaluator.cpp#L2309) roles: - active owner @@ -1059,7 +1059,7 @@ Also see: * [config.hpp:145](https://github.com/steemit/steem/blob/65c58af34971416057e142ac1332421e2228749b/libraries/protocol/include/steem/protocol/config.hpp#L145) - * [steem_evaluator.cpp:400](https://github.com/steemit/steem/blob/4b19e00dd6a76699aa4de1c0d50aad392cd2d0b6/libraries/chain/steem_evaluator.cpp#L400) + * [hive_evaluator.cpp:400](https://github.com/steemit/steem/blob/4b19e00dd6a76699aa4de1c0d50aad392cd2d0b6/libraries/chain/hive_evaluator.cpp#L400) roles: - active owner @@ -1152,7 +1152,7 @@ purpose: | This operation is used to cast a vote on a post/comment using multiple votable assets. - See: [#2748](https://github.com/steemit/steem/issues/2748), [SMT Voting Mana Deep Dive](https://steemit.com/smt/@vandeberg/smt-voting-mana-deep-dive) + See: [#2748](https://github.com/steemit/steem/issues/2748), [SMT Voting Mana Deep Dive](https://hive.blog/smt/@vandeberg/smt-voting-mana-deep-dive) roles: - posting active @@ -1178,9 +1178,9 @@ * `contribution_begin_time` - The start time of the ICO contribution process. * `contribution_end_time` - The end time of the ICO contribution process. * `launch_time` - The time in which a token should launch. - * `steem_units_min` - The minimum steem units required for a successful ICO. - * `steem_units_soft_cap` - The steem unit cap in which the pre_soft_cap_unit generation policy applies. - * `steem_units_hard_cap` - The steem unit cap in which the post_soft_cap_unit generation policy applies. + * `hive_units_min` - The minimum steem units required for a successful ICO. + * `hive_units_soft_cap` - The steem unit cap in which the pre_soft_cap_unit generation policy applies. + * `hive_units_hard_cap` - The steem unit cap in which the post_soft_cap_unit generation policy applies. * `initial_generation_policy` - A JSON string of the HIVE and token destination routes of the ICO process. **Example Initial Generation Policy JSON:** @@ -1188,19 +1188,19 @@ ```json {"type": "smt_capped_generation_policy", "value": { "pre_soft_cap_unit": { - "steem_unit": [["alice", 100]], + "hive_unit": [["alice", 100]], "token_unit": [["$from", 5], ["alice", 1]] }, "post_soft_cap_unit": { - "steem_unit": [["alice", 100]], + "hive_unit": [["alice", 100]], "token_unit": [["$from", 5], ["alice", 1]] }, - "min_steem_units_commitment": { + "min_hive_units_commitment": { "lower_bound": 1, "upper_bound": 1, "hash": "32edb6022c0921d99aa347e9cda5dc2db413f5574eebaaa8592234308ffebd2b" }, - "hard_cap_steem_units_commitment": { + "hard_cap_hive_units_commitment": { "lower_bound": "166666666666", "upper_bound": "166666666666", "hash": "93c5a6b892de788c5b54b63b91c4b692e36099b05d3af0d16d01c854723dda21" @@ -1225,13 +1225,13 @@ contribution_end_time launch_time max_supply - steem_units_hard_cap - steem_units_soft_cap - steem_units_min + hive_units_hard_cap + hive_units_soft_cap + hive_units_min initial_generation_policy extensions json_examples: - - '["smt_setup",{"control_account":"alice","symbol":{"nai": "@@000000000", "decimals": 0},"contribution_begin_time":"2019-08-26T11:22:39","contribution_end_time":"2019-08-26T11:22:39","launch_time":"2019-09-26T11:22:39","max_supply":1000000000000000,"steem_units_hard_cap":10000,"steem_units_soft_cap":1000,"steem_units_min":0,"initial_generation_policy":"{\"type\":\"smt_capped_generation_policy\",\"value\":{\"pre_soft_cap_unit\":{\"steem_unit\":[[\"alice\",100]],\"token_unit\":[[\"$from\",5],[\"alice\",1]]},\"post_soft_cap_unit\":{\"steem_unit\":[[\"alice\",100]],\"token_unit\":[[\"$from\",5],[\"alice\",1]]},\"min_steem_units_commitment\":{\"lower_bound\":1,\"upper_bound\":1,\"hash\":\"32edb6022c0921d99aa347e9cda5dc2db413f5574eebaaa8592234308ffebd2b\"},\"hard_cap_steem_units_commitment\":{\"lower_bound\":\"166666666666\",\"upper_bound\":\"166666666666\",\"hash\":\"93c5a6b892de788c5b54b63b91c4b692e36099b05d3af0d16d01c854723dda21\"},\"soft_cap_percent\":10000,\"min_unit_ratio\":1000,\"max_unit_ratio\":1000,\"extensions\":[]}}","extensions":[]}]' + - '["smt_setup",{"control_account":"alice","symbol":{"nai": "@@000000000", "decimals": 0},"contribution_begin_time":"2019-08-26T11:22:39","contribution_end_time":"2019-08-26T11:22:39","launch_time":"2019-09-26T11:22:39","max_supply":1000000000000000,"hive_units_hard_cap":10000,"hive_units_soft_cap":1000,"hive_units_min":0,"initial_generation_policy":"{\"type\":\"smt_capped_generation_policy\",\"value\":{\"pre_soft_cap_unit\":{\"hive_unit\":[[\"alice\",100]],\"token_unit\":[[\"$from\",5],[\"alice\",1]]},\"post_soft_cap_unit\":{\"hive_unit\":[[\"alice\",100]],\"token_unit\":[[\"$from\",5],[\"alice\",1]]},\"min_hive_units_commitment\":{\"lower_bound\":1,\"upper_bound\":1,\"hash\":\"32edb6022c0921d99aa347e9cda5dc2db413f5574eebaaa8592234308ffebd2b\"},\"hard_cap_hive_units_commitment\":{\"lower_bound\":\"166666666666\",\"upper_bound\":\"166666666666\",\"hash\":\"93c5a6b892de788c5b54b63b91c4b692e36099b05d3af0d16d01c854723dda21\"},\"soft_cap_percent\":10000,\"min_unit_ratio\":1000,\"max_unit_ratio\":1000,\"extensions\":[]}}","extensions":[]}]' - name: smt_setup_emissions since: Mysterious Future virtual: false @@ -1427,7 +1427,7 @@ trx_id op_in_trx json_examples: - - '["proposal_pay",{"receiver":"steem.dao","payment":"1.637 HBD","trx_id":"0000000000000000000000000000000000000000","op_in_trx":0}]' + - '["proposal_pay",{"receiver":"hive.fund","payment":"1.637 HBD","trx_id":"0000000000000000000000000000000000000000","op_in_trx":0}]' - name: sps_fund since: HF21 virtual: true @@ -1446,7 +1446,7 @@ virtual: true purpose: | Fills when conversion requests with a conversion date before the head - block time and then converts them to/from steem/sbd at the current + block time and then converts them to/from steem/hbd at the current median price feed history price times the premium. roles: - active @@ -1466,8 +1466,8 @@ params: - author permlink - sbd_payout - steem_payout + hbd_payout + hive_payout vesting_payout - name: curation_reward virtual: true diff --git a/_data/apidefinitions/condenser_api.yml b/_data/apidefinitions/condenser_api.yml index 3df63e98..92895a26 100644 --- a/_data/apidefinitions/condenser_api.yml +++ b/_data/apidefinitions/condenser_api.yml @@ -55,7 +55,7 @@ - '{"jsonrpc":"2.0", "method":"condenser_api.broadcast_transaction", "params":[{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[["vote",{"voter":"hiveio","author":"alice","permlink":"a-post-by-alice","weight":10000}]],"extensions":[],"signatures":[]}], "id":1}' - '{"jsonrpc":"2.0", "method":"condenser_api.broadcast_transaction", "params":[{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[["pow",{"worker_account":"cloop3","block_id":"00000449f7860b82b4fbe2f317c670e9f01d6d9a","nonce":3899,"work":{"worker":"STM7P5TDnA87Pj9T4mf6YHrhzjC1KbPZpNxLWCcVcHxNYXakpoT4F","input":"ae8e7c677119d22385f8c48026fee7aad7bba693bf788d7f27047f40b47738c0","signature":"1f38fe9a3f9989f84bd94aa5bbc88beaf09b67f825aa4450cf5105d111149ba6db560b582c7dbb026c7fc9c2eb5051815a72b17f6896ed59d3851d9a0f9883ca7a","work":"000e7b209d58f2e64b36e9bf12b999c6c7af168cc3fc41eb7f8a4bf796c174c3"},"props":{"account_creation_fee":"100.000 - HIVE","maximum_block_size":131072,"sbd_interest_rate":1000}}]],"extensions":[],"signatures":[]}], + HIVE","maximum_block_size":131072,"hbd_interest_rate":1000}}]],"extensions":[],"signatures":[]}], "id":1}' expected_curl_responses: - missing required posting authority @@ -80,7 +80,7 @@ "id":1}' - '{"jsonrpc":"2.0", "method":"condenser_api.broadcast_transaction_synchronous", "params":[{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[["pow",{"worker_account":"cloop3","block_id":"00000449f7860b82b4fbe2f317c670e9f01d6d9a","nonce":3899,"work":{"worker":"STM7P5TDnA87Pj9T4mf6YHrhzjC1KbPZpNxLWCcVcHxNYXakpoT4F","input":"ae8e7c677119d22385f8c48026fee7aad7bba693bf788d7f27047f40b47738c0","signature":"1f38fe9a3f9989f84bd94aa5bbc88beaf09b67f825aa4450cf5105d111149ba6db560b582c7dbb026c7fc9c2eb5051815a72b17f6896ed59d3851d9a0f9883ca7a","work":"000e7b209d58f2e64b36e9bf12b999c6c7af168cc3fc41eb7f8a4bf796c174c3"},"props":{"account_creation_fee":"100.000 - HIVE","maximum_block_size":131072,"sbd_interest_rate":1000}}]],"extensions":[],"signatures":[]}], + HIVE","maximum_block_size":131072,"hbd_interest_rate":1000}}]],"extensions":[],"signatures":[]}], "id":1}' expected_curl_responses: - missing required posting authority @@ -243,19 +243,19 @@ last_vote_time: '2016-12-04T23:10:57' balance: 0.000 HIVE savings_balance: 0.0 HIVE - sbd_balance: 0.0 HBD - sbd_seconds: '' - sbd_seconds_last_update: '2018-04-10T04:08:36' - sbd_last_interest_payment: '2018-03-15T17:58:24' - savings_sbd_balance: 0.000 HBD - savings_sbd_seconds: '' - savings_sbd_seconds_last_update: '1970-01-01T00:00:00' - savings_sbd_last_interest_payment: '1970-01-01T00:00:00' + hbd_balance: 0.0 HBD + hbd_seconds: '' + hbd_seconds_last_update: '2018-04-10T04:08:36' + hbd_last_interest_payment: '2018-03-15T17:58:24' + savings_hbd_balance: 0.000 HBD + savings_hbd_seconds: '' + savings_hbd_seconds_last_update: '1970-01-01T00:00:00' + savings_hbd_last_interest_payment: '1970-01-01T00:00:00' savings_withdraw_requests: 0 - reward_sbd_balance: 0.000 HBD - reward_steem_balance: 0.000 HIVE + reward_hbd_balance: 0.000 HBD + reward_hive_balance: 0.000 HIVE reward_vesting_balance: 0.000000 VESTS - reward_vesting_steem: 0.000 HIVE + reward_vesting_hive: 0.000 HIVE vesting_shares: 0.000 VESTS delegated_vesting_shares: 0.000000 VESTS received_vesting_shares: 0.000000 VESTS @@ -439,7 +439,7 @@ amount: '1000000000' pecision: 3 nai: "@@000000013" - percent_steem_dollars: 10000 + percent_hbd: 10000 allow_replies: true allow_votes: true allow_curation_rewards: true @@ -503,7 +503,7 @@ expected_response_json: account_creation_fee: 0.100 HIVE maximum_block_size: 131072 - sbd_interest_rate: 1000 + hbd_interest_rate: 1000 account_subsidy_limit: 0 curl_examples: - '{"jsonrpc":"2.0", "method":"condenser_api.get_chain_properties", "params":[], @@ -579,7 +579,7 @@ root_author: '' root_permlink: '' max_accepted_payout: 0.000 HIVE - percent_steem_dollars: 0 + percent_hbd: 0 allow_replies: false allow_votes: false allow_curation_rewards: false @@ -644,7 +644,7 @@ root_author: '' root_permlink: '' max_accepted_payout: 0.000 HIVE - percent_steem_dollars: 0 + percent_hbd: 0 allow_replies: false allow_votes: false allow_curation_rewards: false @@ -672,7 +672,7 @@ |-------------------|-| | `1234` | Queries a conversion request with the id of 1234. | - Also see: [database_api.list_sbd_conversion_requests]({{ '/apidefinitions/#database_api.list_sbd_conversion_requests' | relative_url }}) + Also see: [database_api.list_hbd_conversion_requests]({{ '/apidefinitions/#database_api.list_hbd_conversion_requests' | relative_url }}) parameter_json: - 0 expected_response_json: [] @@ -917,16 +917,16 @@ virtual_supply: 0.000 HIVE current_supply: 0.000 HIVE confidential_supply: 0.000 HIVE - current_sbd_supply: 0.000 HIVE - confidential_sbd_supply: 0.000 HIVE - total_vesting_fund_steem: 0.000 HIVE + current_hbd_supply: 0.000 HIVE + confidential_hbd_supply: 0.000 HIVE + total_vesting_fund_hive: 0.000 HIVE total_vesting_shares: 0.000 HIVE - total_reward_fund_steem: 0.000 HIVE + total_reward_fund_hive: 0.000 HIVE total_reward_shares2: '0' pending_rewarded_vesting_shares: 0.000 HIVE - pending_rewarded_vesting_steem: 0.000 HIVE - sbd_interest_rate: 0 - sbd_print_rate: 10000 + pending_rewarded_vesting_hive: 0.000 HIVE + hbd_interest_rate: 0 + hbd_print_rate: 10000 maximum_block_size: 0 current_aslot: 0 recent_slots_filled: '0' @@ -1149,7 +1149,7 @@ open: 0 close: 0 volume: 0 - non_steem: + non_hive: high: 0 low: 0 open: 0 @@ -1301,7 +1301,7 @@ signatures: [] expected_response_json: [] curl_examples: - - '{"jsonrpc":"2.0", "method":"condenser_api.get_potential_signatures", "params":[{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[["pow",{"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,"sbd_interest_rate":1000}}]],"extensions":[],"signatures":[]}], + - '{"jsonrpc":"2.0", "method":"condenser_api.get_potential_signatures", "params":[{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[["pow",{"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":[]}], "id":1}' - api_method: condenser_api.get_reblogged_by since: HF14 @@ -1391,7 +1391,7 @@ - [] expected_response_json: [] curl_examples: - - '{"jsonrpc":"2.0", "method":"condenser_api.get_required_signatures", "params":[{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[["pow",{"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,"sbd_interest_rate":1000}}]],"extensions":[],"signatures":[]},[]], + - '{"jsonrpc":"2.0", "method":"condenser_api.get_required_signatures", "params":[{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[["pow",{"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":[]},[]], "id":1}' - api_method: condenser_api.get_reward_fund since: HF17 @@ -1466,16 +1466,16 @@ virtual_supply: 0.000 HIVE current_supply: 0.000 HIVE confidential_supply: 0.000 HIVE - current_sbd_supply: 0.000 HIVE - confidential_sbd_supply: 0.000 HIVE - total_vesting_fund_steem: 0.000 HIVE + current_hbd_supply: 0.000 HIVE + confidential_hbd_supply: 0.000 HIVE + total_vesting_fund_hive: 0.000 HIVE total_vesting_shares: 0.000 HIVE - total_reward_fund_steem: 0.000 HIVE + total_reward_fund_hive: 0.000 HIVE total_reward_shares2: '0' pending_rewarded_vesting_shares: 0.000 HIVE - pending_rewarded_vesting_steem: 0.000 HIVE - sbd_interest_rate: 0 - sbd_print_rate: 10000 + pending_rewarded_vesting_hive: 0.000 HIVE + hbd_interest_rate: 0 + hbd_print_rate: 10000 maximum_block_size: 0 current_aslot: 0 recent_slots_filled: '0' @@ -1505,7 +1505,7 @@ median_props: account_creation_fee: 0.000 HIVE maximum_block_size: 131072 - sbd_interest_rate: 1000 + hbd_interest_rate: 1000 majority_version: 0.0.0 max_voted_witnesses: 19 max_miner_witnesses: 1 @@ -1544,8 +1544,8 @@ lowest_ask: '0.00000000000000000' highest_bid: '0.00000000000000000' percent_change: '0.00000000000000000' - steem_volume: 0.000 HIVE - sbd_volume: 0.000 HIVE + hive_volume: 0.000 HIVE + hbd_volume: 0.000 HIVE curl_examples: - '{"jsonrpc":"2.0", "method":"condenser_api.get_ticker", "params":[], "id":1}' - api_method: condenser_api.get_trade_history @@ -1608,7 +1608,7 @@ signatures: [] expected_response_json: '' curl_examples: - - '{"jsonrpc":"2.0", "method":"condenser_api.get_transaction_hex", "params":[{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[["pow",{"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,"sbd_interest_rate":1000}}]],"extensions":[],"signatures":[]}], + - '{"jsonrpc":"2.0", "method":"condenser_api.get_transaction_hex", "params":[{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[["pow",{"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":[]}], "id":1}' - api_method: condenser_api.get_trending_tags purpose: | @@ -1643,7 +1643,7 @@ parameter_json: [] expected_response_json: blockchain_version: '' - steem_revision: '' + hive_revision: '' fc_revision: '' curl_examples: - '{"jsonrpc":"2.0", "method":"condenser_api.get_version", "params":[], "id":1}' @@ -1677,8 +1677,8 @@ Also see: [market_history_api.get_volume]({{ '/apidefinitions/#market_history_api.get_volume' | relative_url }}) parameter_json: [] expected_response_json: - steem_volume: 0.000 HIVE - sbd_volume: 0.000 HIVE + hive_volume: 0.000 HIVE + hbd_volume: 0.000 HIVE curl_examples: - '{"jsonrpc":"2.0", "method":"condenser_api.get_volume", "params":[], "id":1}' - api_method: condenser_api.get_withdraw_routes @@ -1736,11 +1736,11 @@ props: account_creation_fee: 0.000 HIVE maximum_block_size: 65536 - sbd_interest_rate: 0 - sbd_exchange_rate: + hbd_interest_rate: 0 + hbd_exchange_rate: base: 0.000 HBD quote: 0.000 HIVE - last_sbd_exchange_update: '1970-01-01T00:00:00' + last_hbd_exchange_update: '1970-01-01T00:00:00' last_work: '' running_version: '' hardfork_version_vote: '' @@ -1774,7 +1774,7 @@ median_props: account_creation_fee: 0.000 HIVE maximum_block_size: 131072 - sbd_interest_rate: 1000 + hbd_interest_rate: 1000 majority_version: 0.0.0 max_voted_witnesses: 19 max_miner_witnesses: 1 @@ -1869,19 +1869,19 @@ last_vote_time: '2016-12-04T23:10:57' balance: 0.006 HIVE savings_balance: 11006644.632 HIVE - sbd_balance: 8581.890 HBD - sbd_seconds: '18846158467785' - sbd_seconds_last_update: '2018-04-10T04:08:36' - sbd_last_interest_payment: '2018-03-15T17:58:24' - savings_sbd_balance: 0.000 HBD - savings_sbd_seconds: '0' - savings_sbd_seconds_last_update: '1970-01-01T00:00:00' - savings_sbd_last_interest_payment: '1970-01-01T00:00:00' + hbd_balance: 8581.890 HBD + hbd_seconds: '18846158467785' + hbd_seconds_last_update: '2018-04-10T04:08:36' + hbd_last_interest_payment: '2018-03-15T17:58:24' + savings_hbd_balance: 0.000 HBD + savings_hbd_seconds: '0' + savings_hbd_seconds_last_update: '1970-01-01T00:00:00' + savings_hbd_last_interest_payment: '1970-01-01T00:00:00' savings_withdraw_requests: 0 - reward_sbd_balance: 0.000 HBD - reward_steem_balance: 0.000 HIVE + reward_hbd_balance: 0.000 HBD + reward_hive_balance: 0.000 HIVE reward_vesting_balance: 0.000000 VESTS - reward_vesting_steem: 0.000 HIVE + reward_vesting_hive: 0.000 HIVE vesting_shares: 90039851836.689703 VESTS delegated_vesting_shares: 0.000000 VESTS received_vesting_shares: 0.000000 VESTS @@ -1964,7 +1964,7 @@ signatures: [] expected_response_json: false curl_examples: - - '{"jsonrpc":"2.0", "method":"condenser_api.verify_authority", "params":[{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[["pow",{"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,"sbd_interest_rate":1000}}]],"extensions":[],"signatures":[]}], + - '{"jsonrpc":"2.0", "method":"condenser_api.verify_authority", "params":[{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[["pow",{"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":[]}], "id":1}' - api_method: condenser_api.get_account_references disabled: true diff --git a/_data/apidefinitions/database_api.yml b/_data/apidefinitions/database_api.yml index 9690e816..1e3e62cd 100644 --- a/_data/apidefinitions/database_api.yml +++ b/_data/apidefinitions/database_api.yml @@ -7,7 +7,7 @@ - To enable this API for `steemd`, the following is required in `config.ini` + To enable this API for `hived`, the following is required in `config.ini` by specifying: ```ini @@ -119,29 +119,29 @@ "precision": 3, "nai": "@@000000021" }, - "sbd_balance": { + "hbd_balance": { "amount": "8716535", "precision": 3, "nai": "@@000000013" }, - "sbd_seconds": "0", - "sbd_seconds_last_update": "2018-11-12T02:39:39", - "sbd_last_interest_payment": "2018-11-12T02:39:39", - "savings_sbd_balance": { + "hbd_seconds": "0", + "hbd_seconds_last_update": "2018-11-12T02:39:39", + "hbd_last_interest_payment": "2018-11-12T02:39:39", + "savings_hbd_balance": { "amount": "0", "precision": 3, "nai": "@@000000013" }, - "savings_sbd_seconds": "0", - "savings_sbd_seconds_last_update": "1970-01-01T00:00:00", - "savings_sbd_last_interest_payment": "1970-01-01T00:00:00", + "savings_hbd_seconds": "0", + "savings_hbd_seconds_last_update": "1970-01-01T00:00:00", + "savings_hbd_last_interest_payment": "1970-01-01T00:00:00", "savings_withdraw_requests": 0, - "reward_sbd_balance": { + "reward_hbd_balance": { "amount": "0", "precision": 3, "nai": "@@000000013" }, - "reward_steem_balance": { + "reward_hive_balance": { "amount": "0", "precision": 3, "nai": "@@000000021" @@ -151,7 +151,7 @@ "precision": 6, "nai": "@@000000037" }, - "reward_vesting_steem": { + "reward_vesting_hive": { "amount": "0", "precision": 3, "nai": "@@000000021" @@ -252,12 +252,12 @@ "agent": "smitop", "ratification_deadline": "2038-01-19T03:14:06", "escrow_expiration": "2038-01-19T03:14:07", - "sbd_balance": { + "hbd_balance": { "amount": "0", "precision": 3, "nai": "@@000000013" }, - "steem_balance": { + "hive_balance": { "amount": "1", "precision": 3, "nai": "@@000000021" @@ -331,7 +331,7 @@ expected_response_json: '{"withdrawals":[]}' # TODO - recheck in HF23 curl_examples: - '{"jsonrpc":"2.0", "method":"database_api.find_savings_withdrawals", "params": {"start":"temp"}, "id":1}' - - api_method: database_api.find_sbd_conversion_requests + - api_method: database_api.find_hbd_conversion_requests purpose: | Returns the list of HBD conversion requests for an account. Parameters: `account:string` @@ -342,8 +342,8 @@ parameter_json: '{"account":""}' expected_response_json: '{"requests":[]}' # TODO - recheck in HF23 curl_examples: - - '{"jsonrpc":"2.0", "method":"database_api.find_sbd_conversion_requests", "params": {"account":"hiveio"}, "id":1}' - - '{"jsonrpc":"2.0", "method":"database_api.find_sbd_conversion_requests", "params": {"account":"alice"}, "id":1}' + - '{"jsonrpc":"2.0", "method":"database_api.find_hbd_conversion_requests", "params": {"account":"hiveio"}, "id":1}' + - '{"jsonrpc":"2.0", "method":"database_api.find_hbd_conversion_requests", "params": {"account":"alice"}, "id":1}' - api_method: database_api.find_vesting_delegation_expirations since: HF17 purpose: | @@ -476,11 +476,11 @@ "nai": "@@000000021" }, "maximum_block_size": 131072, - "sbd_interest_rate": 1000, + "hbd_interest_rate": 1000, "account_subsidy_budget": 797, "account_subsidy_decay": 347321 }, - "sbd_exchange_rate": { + "hbd_exchange_rate": { "base": { "amount": "0", "precision": 3, @@ -492,7 +492,7 @@ "nai": "@@000000021" } }, - "last_sbd_exchange_update": "1970-01-01T00:00:00", + "last_hbd_exchange_update": "1970-01-01T00:00:00", "last_work": "0000000000000000000000000000000000000000000000000000000000000000", "running_version": "0.23.0", "hardfork_version_vote": "0.23.0", @@ -735,7 +735,7 @@ "HIVE_POW_APR_PERCENT": 750, "HIVE_PRODUCER_APR_PERCENT": 750, "HIVE_PROXY_TO_SELF_ACCOUNT": "", - "HIVE_SBD_INTEREST_COMPOUND_INTERVAL_SEC": 2592000, + "HIVE_HBD_INTEREST_COMPOUND_INTERVAL_SEC": 2592000, "HIVE_SECONDS_PER_YEAR": 31536000, "HIVE_PROPOSAL_FUND_PERCENT_HF0": 0, "HIVE_PROPOSAL_FUND_PERCENT_HF21": 1000, @@ -798,7 +798,7 @@ "HIVE_DECAY_BACKSTOP_PERCENT": 9000, "HIVE_BLOCK_GENERATION_POSTPONED_TX_LIMIT": 5, "HIVE_PENDING_TRANSACTION_EXECUTION_LIMIT": 200000, - "HIVE_TREASURY_ACCOUNT": "steem.dao", + "HIVE_TREASURY_ACCOUNT": "hive.fund", "HIVE_TREASURY_FEE": 10000, "HIVE_PROPOSAL_MAINTENANCE_PERIOD": 3600, "HIVE_PROPOSAL_MAINTENANCE_CLEANUP": 86400, @@ -856,22 +856,22 @@ "precision": 3, "nai": "@@000000021" }, - "init_sbd_supply": { + "init_hbd_supply": { "amount": "7000000000", "precision": 3, "nai": "@@000000013" }, - "current_sbd_supply": { + "current_hbd_supply": { "amount": "35050710256", "precision": 3, "nai": "@@000000013" }, - "confidential_sbd_supply": { + "confidential_hbd_supply": { "amount": "0", "precision": 3, "nai": "@@000000013" }, - "total_vesting_fund_steem": { + "total_vesting_fund_hive": { "amount": "146016220388", "precision": 3, "nai": "@@000000021" @@ -881,7 +881,7 @@ "precision": 6, "nai": "@@000000037" }, - "total_reward_fund_steem": { + "total_reward_fund_hive": { "amount": "0", "precision": 3, "nai": "@@000000021" @@ -892,13 +892,13 @@ "precision": 6, "nai": "@@000000037" }, - "pending_rewarded_vesting_steem": { + "pending_rewarded_vesting_hive": { "amount": "154999023", "precision": 3, "nai": "@@000000021" }, - "sbd_interest_rate": 1000, - "sbd_print_rate": 0, + "hbd_interest_rate": 1000, + "hbd_print_rate": 0, "maximum_block_size": 131072, "required_actions_partition_percent": 2500, "current_aslot": 41585977, @@ -909,8 +909,8 @@ "delegation_return_period": 432000, "reverse_auction_seconds": 300, "available_account_subsidies": 120334411, - "sbd_stop_percent": 1000, - "sbd_start_percent": 900, + "hbd_stop_percent": 1000, + "hbd_start_percent": 900, "next_maintenance_time": "2019-12-14T23:18:24", "last_budget_time": "2019-12-14T22:18:24", "content_reward_percent": 6500, @@ -1009,7 +1009,7 @@ parameter_json: '{"trx":{"ref_block_num":0,"ref_block_prefix":0,"expiration":"1970-01-01T00:00:00","operations":[],"extensions":[],"signatures":[]}}' expected_response_json: '{"keys":[]}' # TODO - recheck in HF23 curl_examples: - - '{"jsonrpc":"2.0", "method":"database_api.get_potential_signatures", "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,"sbd_interest_rate":1000}}}],"extensions":[],"signatures":[]}}, + - '{"jsonrpc":"2.0", "method":"database_api.get_potential_signatures", "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":[]}}, "id":1}' - api_method: database_api.get_required_signatures purpose: This API will take a partially signed transaction and a set of public @@ -1018,7 +1018,7 @@ parameter_json: '{"trx":{"ref_block_num":0,"ref_block_prefix":0,"expiration":"1970-01-01T00:00:00","operations":[],"extensions":[],"signatures":[]},"available_keys":[]}' expected_response_json: '{"keys":[]}' # TODO - recheck in HF23 curl_examples: - - '{"jsonrpc":"2.0", "method":"database_api.get_required_signatures", "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,"sbd_interest_rate":1000}}}],"extensions":[],"signatures":[]},"available_keys":[]}, + - '{"jsonrpc":"2.0", "method":"database_api.get_required_signatures", "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":[]},"available_keys":[]}, "id":1}' - api_method: database_api.get_reward_funds since: HF17 @@ -1052,7 +1052,7 @@ parameter_json: '{"trx":{"ref_block_num":0,"ref_block_prefix":0,"expiration":"1970-01-01T00:00:00","operations":[],"extensions":[],"signatures":[]}}' expected_response_json: '{"hex":"00000000000000000000000000"}' curl_examples: - - '{"jsonrpc":"2.0", "method":"database_api.get_transaction_hex", "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,"sbd_interest_rate":1000}}}],"extensions":[],"signatures":[]}}, + - '{"jsonrpc":"2.0", "method":"database_api.get_transaction_hex", "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":[]}}, "id":1}' - api_method: database_api.get_version since: HF20 @@ -1063,9 +1063,9 @@ expected_response_json: | { "blockchain_version": "0.23.0", - "steem_revision": "5cda10a488cf77f68549ec6d3a6be9af2ea9351b", + "hive_revision": "5cda10a488cf77f68549ec6d3a6be9af2ea9351b", "fc_revision": "5cda10a488cf77f68549ec6d3a6be9af2ea9351b", - "chain_id": "0000000000000000000000000000000000000000000000000000000000000000" + "chain_id": "beeab0de00000000000000000000000000000000000000000000000000000000" } curl_examples: - '{"jsonrpc":"2.0", "method":"database_api.get_version", "id":1}' @@ -1112,7 +1112,7 @@ "nai": "@@000000021" }, "maximum_block_size": 131072, - "sbd_interest_rate": 1000, + "hbd_interest_rate": 1000, "account_subsidy_budget": 797, "account_subsidy_decay": 347321 }, @@ -1253,29 +1253,29 @@ "precision": 3, "nai": "@@000000021" }, - "sbd_balance": { + "hbd_balance": { "amount": "0", "precision": 3, "nai": "@@000000013" }, - "sbd_seconds": "0", - "sbd_seconds_last_update": "1970-01-01T00:00:00", - "sbd_last_interest_payment": "1970-01-01T00:00:00", - "savings_sbd_balance": { + "hbd_seconds": "0", + "hbd_seconds_last_update": "1970-01-01T00:00:00", + "hbd_last_interest_payment": "1970-01-01T00:00:00", + "savings_hbd_balance": { "amount": "0", "precision": 3, "nai": "@@000000013" }, - "savings_sbd_seconds": "0", - "savings_sbd_seconds_last_update": "1970-01-01T00:00:00", - "savings_sbd_last_interest_payment": "1970-01-01T00:00:00", + "savings_hbd_seconds": "0", + "savings_hbd_seconds_last_update": "1970-01-01T00:00:00", + "savings_hbd_last_interest_payment": "1970-01-01T00:00:00", "savings_withdraw_requests": 0, - "reward_sbd_balance": { + "reward_hbd_balance": { "amount": "0", "precision": 3, "nai": "@@000000013" }, - "reward_steem_balance": { + "reward_hive_balance": { "amount": "0", "precision": 3, "nai": "@@000000021" @@ -1285,7 +1285,7 @@ "precision": 6, "nai": "@@000000037" }, - "reward_vesting_steem": { + "reward_vesting_hive": { "amount": "0", "precision": 3, "nai": "@@000000021" @@ -1407,7 +1407,7 @@ "parent_author": "runicar", "parent_permlink": "re-libert-libert-re-runicar-re-libert-libert-re-runicar-ykwyxgj6-20181128t063100538z", "title": "", - "body": "13\n\nPosted using [Partiko Android](https://steemit.com/@partiko-android)", + "body": "13\n\nPosted using [Partiko Android](https://hive.blog/@partiko-android)", "json_metadata": "{\"app\":\"partiko\"}", "last_update": "2018-11-28T06:33:57", "created": "2018-11-28T06:33:57", @@ -1442,7 +1442,7 @@ "precision": 3, "nai": "@@000000013" }, - "percent_steem_dollars": 10000, + "percent_hbd": 10000, "allow_replies": true, "allow_votes": true, "allow_curation_rewards": true, @@ -1510,12 +1510,12 @@ "agent": "ongame", "ratification_deadline": "2018-11-23T17:31:26", "escrow_expiration": "2018-11-24T17:31:26", - "sbd_balance": { + "hbd_balance": { "amount": "0", "precision": 3, "nai": "@@000000013" }, - "steem_balance": { + "hive_balance": { "amount": "4832", "precision": 3, "nai": "@@000000021" @@ -1659,7 +1659,7 @@ - '{"jsonrpc":"2.0", "method":"database_api.list_savings_withdrawals", "params": {"start":[0], "limit":10, "order":"by_from_id"}, "id":1}' - '{"jsonrpc":"2.0", "method":"database_api.list_savings_withdrawals", "params": {"start":["2018-12-07T16:54:03", "hiveio", 0], "limit":10, "order":"by_complete_from_id"}, "id":1}' - '{"jsonrpc":"2.0", "method":"database_api.list_savings_withdrawals", "params": {"start":["", "1970-01-01T00:00:00", 0], "limit":10, "order":"by_to_complete"}, "id":1}' - - api_method: database_api.list_sbd_conversion_requests + - api_method: database_api.list_hbd_conversion_requests purpose: | Returns the list of HBD conversion requests for an account. Parameters: `start:array`, `limit:int`, `order:string` @@ -1675,7 +1675,7 @@ | `["hiveio", 0]` | 10 | `by_account` | Queries a conversion request for hiveio, limit to 10 results, order by account name. | | `["2018-12-07T16:54:03", 0]` | 10 | `by_conversion_date`| Queries a conversion request from this date, limit to 10 results, order by conversion date. | - Also see: [Paginated API Methods]({{ '/tutorials-recipes/paginated-api-methods.html#database_apilist_sbd_conversion_requests' | relative_url }}) + Also see: [Paginated API Methods]({{ '/tutorials-recipes/paginated-api-methods.html#database_apilist_hbd_conversion_requests' | relative_url }}) parameter_json: '{"start":null,"limit":0,"order":"by_name"}' expected_response_json: | # TODO - recheck in HF23 { @@ -1694,8 +1694,8 @@ ] } curl_examples: - - '{"jsonrpc":"2.0", "method":"database_api.list_sbd_conversion_requests", "params": {"start":["hiveio", 0], "limit":10, "order":"by_account"}, "id":1}' - - '{"jsonrpc":"2.0", "method":"database_api.list_sbd_conversion_requests", "params": {"start":["2018-12-07T16:54:03", 0], "limit":10, "order":"by_conversion_date"}, "id":1}' + - '{"jsonrpc":"2.0", "method":"database_api.list_hbd_conversion_requests", "params": {"start":["hiveio", 0], "limit":10, "order":"by_account"}, "id":1}' + - '{"jsonrpc":"2.0", "method":"database_api.list_hbd_conversion_requests", "params": {"start":["2018-12-07T16:54:03", 0], "limit":10, "order":"by_conversion_date"}, "id":1}' - api_method: database_api.list_vesting_delegation_expirations since: HF17 purpose: | @@ -1923,11 +1923,11 @@ "nai": "@@000000021" }, "maximum_block_size": 131072, - "sbd_interest_rate": 1000, + "hbd_interest_rate": 1000, "account_subsidy_budget": 797, "account_subsidy_decay": 347321 }, - "sbd_exchange_rate": { + "hbd_exchange_rate": { "base": { "amount": "0", "precision": 3, @@ -1939,7 +1939,7 @@ "nai": "@@000000021" } }, - "last_sbd_exchange_update": "1970-01-01T00:00:00", + "last_hbd_exchange_update": "1970-01-01T00:00:00", "last_work": "000000127cb0e335667f30100bc1a061175c2d789f808e0e9ac82ee70fa8e604", "running_version": "0.0.0", "hardfork_version_vote": "0.0.0", @@ -1969,7 +1969,7 @@ parameter_json: '{"trx":{"ref_block_num":0,"ref_block_prefix":0,"expiration":"1970-01-01T00:00:00","operations":[],"extensions":[],"signatures":[]}}' 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,"sbd_interest_rate":1000}}}],"extensions":[],"signatures":[]}}, + - '{"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":[]}}, "id":1}' - api_method: database_api.verify_signatures purpose: This is a general purpose API that checks signatures against accounts @@ -2358,7 +2358,7 @@ "last_virtual_emission_time": "1970-01-01T00:00:00", "allow_downvotes": true, "market_maker": { - "steem_balance": { + "hive_balance": { "amount": "0", "precision": 3, "nai": "@@000000021" diff --git a/_data/apidefinitions/debug_node_api.yml b/_data/apidefinitions/debug_node_api.yml index 0e65851a..18ef64e4 100644 --- a/_data/apidefinitions/debug_node_api.yml +++ b/_data/apidefinitions/debug_node_api.yml @@ -26,7 +26,7 @@ - api_method: debug_node_api.debug_get_witness_schedule purpose: parameter_json: "{}" - expected_response_json: '{"id":0,"current_virtual_time":"0","next_shuffle_block_num":21573344,"current_shuffled_witnesses":[],"num_scheduled_witnesses":192,"elected_weight":49,"timeshare_weight":73,"miner_weight":1,"witness_pay_normalization_factor":0,"median_props":{"account_creation_fee":{"amount":"0","precision":3,"nai":"@@000000021"},"maximum_block_size":131072,"sbd_interest_rate":1000,"account_subsidy_budget":797,"account_subsidy_decay":347321},"majority_version":"0.0.0","max_voted_witnesses":128,"max_miner_witnesses":131,"max_runner_witnesses":191,"hardfork_required_witnesses":4,"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}' + expected_response_json: '{"id":0,"current_virtual_time":"0","next_shuffle_block_num":21573344,"current_shuffled_witnesses":[],"num_scheduled_witnesses":192,"elected_weight":49,"timeshare_weight":73,"miner_weight":1,"witness_pay_normalization_factor":0,"median_props":{"account_creation_fee":{"amount":"0","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":128,"max_miner_witnesses":131,"max_runner_witnesses":191,"hardfork_required_witnesses":4,"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: debug_node_api.debug_has_hardfork purpose: parameter_json: '{"hardfork_id":0}' diff --git a/_data/apidefinitions/follow_api.yml b/_data/apidefinitions/follow_api.yml index 7aa62ed1..d2c98f9d 100644 --- a/_data/apidefinitions/follow_api.yml +++ b/_data/apidefinitions/follow_api.yml @@ -80,7 +80,7 @@ "precision": 3, "nai": "@@000000013" }, - "percent_steem_dollars": 10000, + "percent_hbd": 10000, "allow_replies": true, "allow_votes": true, "allow_curation_rewards": true, diff --git a/_data/apidefinitions/jsonrpc.yml b/_data/apidefinitions/jsonrpc.yml index 9b477b86..3b2c4ba6 100644 --- a/_data/apidefinitions/jsonrpc.yml +++ b/_data/apidefinitions/jsonrpc.yml @@ -115,7 +115,7 @@ "database_api.find_owner_histories", "database_api.find_proposals", "database_api.find_savings_withdrawals", - "database_api.find_sbd_conversion_requests", + "database_api.find_hbd_conversion_requests", "database_api.find_smt_contributions", "database_api.find_smt_token_emissions", "database_api.find_smt_tokens", @@ -149,7 +149,7 @@ "database_api.list_proposal_votes", "database_api.list_proposals", "database_api.list_savings_withdrawals", - "database_api.list_sbd_conversion_requests", + "database_api.list_hbd_conversion_requests", "database_api.list_smt_contributions", "database_api.list_smt_token_emissions", "database_api.list_smt_tokens", diff --git a/_data/apidefinitions/market_history_api.yml b/_data/apidefinitions/market_history_api.yml index d366fe8f..d2ca83d1 100644 --- a/_data/apidefinitions/market_history_api.yml +++ b/_data/apidefinitions/market_history_api.yml @@ -26,7 +26,7 @@ "nai": "@@000000013", "precision": 3 }, - "non_steem": { + "non_hive": { "high": 100000, "low": 100000, "open": 100000, @@ -85,7 +85,7 @@ }, "real_price": "0.10000000000000001", "steem": 100000, - "sbd": 10000, + "hbd": 10000, "created": "2019-12-18T01:24:42" }, { @@ -103,7 +103,7 @@ }, "real_price": "1.00000000000000000", "steem": 1000, - "sbd": 1000, + "hbd": 1000, "created": "2019-12-18T01:22:12" }, { @@ -121,7 +121,7 @@ }, "real_price": "100000000.00000000000000000", "steem": 1000, - "sbd": "100000000000", + "hbd": "100000000000", "created": "2019-12-18T01:20:21" } ] @@ -166,12 +166,12 @@ "lowest_ask": "0.10000000000000001", "highest_bid": "0.00000000000000000", "percent_change": "0.00000000000000000", - "steem_volume": { + "hive_volume": { "amount": "100000", "precision": 3, "nai": "@@000000021" }, - "sbd_volume": { + "hbd_volume": { "amount": "100000", "precision": 3, "nai": "@@000000013" @@ -208,12 +208,12 @@ parameter_json: "{}" expected_response_json: | { - "steem_volume": { + "hive_volume": { "amount": "0", "precision": 3, "nai": "@@000000021" }, - "sbd_volume": { + "hbd_volume": { "amount": "0", "precision": 3, "nai": "@@000000013" diff --git a/_data/apidefinitions/network_broadcast_api.yml b/_data/apidefinitions/network_broadcast_api.yml index 4ca94cdb..01b9a130 100644 --- a/_data/apidefinitions/network_broadcast_api.yml +++ b/_data/apidefinitions/network_broadcast_api.yml @@ -24,7 +24,7 @@ curl_examples: - '{"jsonrpc":"2.0", "method":"network_broadcast_api.broadcast_transaction", "params":{"trx":{"ref_block_num":1097,"ref_block_prefix":2181793527,"expiration":"2016-03-24T18:00:21","operations":[{"type":"vote_operation","value":{"voter":"hiveio","author":"alice","permlink":"a-post-by-alice","weight":10000}}],"extensions":[],"signatures":[]},"max_block_age":50}, "id":1}' - - '{"jsonrpc":"2.0", "method":"network_broadcast_api.broadcast_transaction", "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,"sbd_interest_rate":1000}}}],"extensions":[],"signatures":[]},"max_block_age":50}, + - '{"jsonrpc":"2.0", "method":"network_broadcast_api.broadcast_transaction", "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":[]},"max_block_age":50}, "id":1}' expected_curl_responses: - Internal Error diff --git a/_data/apidefinitions/rc_api.yml b/_data/apidefinitions/rc_api.yml index 8c33cf46..74a79e87 100644 --- a/_data/apidefinitions/rc_api.yml +++ b/_data/apidefinitions/rc_api.yml @@ -3,7 +3,7 @@ --- - name: Resource Credit API description: | - Allows querying of various Resource Credit metrics. See: [RC Bandwidth System](https://github.com/steemit/steem/wiki/RC-Bandwidth-System), [0.20.2 Release Notes](https://github.com/steemit/steem/releases/tag/v0.20.2), [Developer Guide: Resource Credit System](https://steemit.com/steem/@steemitdev/developer-guide-resource-credit-system) + Allows querying of various Resource Credit metrics. See: [RC Bandwidth System](https://github.com/steemit/steem/wiki/RC-Bandwidth-System), [0.20.2 Release Notes](https://github.com/steemit/steem/releases/tag/v0.20.2), [Developer Guide: Resource Credit System](https://hive.blog/steem/@steemitdev/developer-guide-resource-credit-system) methods: - api_method: rc_api.find_rc_accounts since: HF20 diff --git a/_data/apidefinitions/tags_api.yml b/_data/apidefinitions/tags_api.yml index 2659ec14..40cd1430 100644 --- a/_data/apidefinitions/tags_api.yml +++ b/_data/apidefinitions/tags_api.yml @@ -95,7 +95,7 @@ "precision": 3, "nai": "@@000000021" }, - "percent_steem_dollars": 0, + "percent_hbd": 0, "allow_replies": false, "allow_votes": false, "allow_curation_rewards": false, @@ -177,7 +177,7 @@ "precision": 3, "nai": "@@000000013" }, - "percent_steem_dollars": 10000, + "percent_hbd": 10000, "allow_replies": true, "allow_votes": true, "allow_curation_rewards": true, @@ -264,7 +264,7 @@ "precision": 3, "nai": "@@000000013" }, - "percent_steem_dollars": 0, + "percent_hbd": 0, "allow_replies": true, "allow_votes": true, "allow_curation_rewards": true, @@ -361,7 +361,7 @@ "precision": 3, "nai": "@@000000013" }, - "percent_steem_dollars": 0, + "percent_hbd": 0, "allow_replies": true, "allow_votes": true, "allow_curation_rewards": true, @@ -468,7 +468,7 @@ "precision": 3, "nai": "@@000000013" }, - "percent_steem_dollars": 0, + "percent_hbd": 0, "allow_replies": true, "allow_votes": true, "allow_curation_rewards": true, @@ -566,7 +566,7 @@ "precision": 3, "nai": "@@000000013" }, - "percent_steem_dollars": 10000, + "percent_hbd": 10000, "allow_replies": true, "allow_votes": true, "allow_curation_rewards": true, diff --git a/_data/apidefinitions/transaction_status_api.yml b/_data/apidefinitions/transaction_status_api.yml index 5e59cad4..255a9d72 100644 --- a/_data/apidefinitions/transaction_status_api.yml +++ b/_data/apidefinitions/transaction_status_api.yml @@ -5,7 +5,7 @@ description: | This API is intended to evaluate a transaction status after calling [`condenser_api.broadcast_transaction`]({{ '/apidefinitions/#condenser_api.broadcast_transaction' | relative_url }}). - To enable this API for `steemd`, the following is required in `config.ini` by specifying: + To enable this API for `hived`, the following is required in `config.ini` by specifying: ```ini plugin = transaction_status_api diff --git a/_data/glossary/index.yml b/_data/glossary/index.yml index 848bd903..3a062db0 100644 --- a/_data/glossary/index.yml +++ b/_data/glossary/index.yml @@ -114,7 +114,7 @@ - term: DAO def: 'Decentralized Autonomous Organization (see: DHF).' - term: HBD Haircut - def: 'Rules to stop printing HBD when the supply is too high. Note: HBD printing for the DHF (@steem.dao) does not follow these rules and will continue to print HBD regardless of the supply.' + def: 'Rules to stop printing HBD when the supply is too high. Note: HBD printing for the DHF (@hive.fund) does not follow these rules and will continue to print HBD regardless of the supply.' - name: Transactions id: glossary-transactions diff --git a/_data/objects/config.yml b/_data/objects/config.yml index e1f3d88b..fb9760c2 100644 --- a/_data/objects/config.yml +++ b/_data/objects/config.yml @@ -43,7 +43,7 @@ purpose: | The chain ID to connect to, which is used to seed signing and prevent transaction crosstalk between two chains, typically mainnet and testnet. examples: - - "`0000000000000000000000000000000000000000000000000000000000000000` - mainnet" + - "`beeab0de00000000000000000000000000000000000000000000000000000000` - mainnet" - "`18dcf0a285365fc58b71f18b3d3fec954aa0c141c44e4e5cb4cf777b9eab274e` - testnet" links: - <a href="{{ '/quickstart/#quickstart-testnet' | relative_url }}">Hive Testnet</a> @@ -73,7 +73,7 @@ - name: HIVE_GENESIS_TIME purpose: | Scheduled time that the blockchain waited until the first block was produced. It is represented as the unix epoch of `1458835200`, which is `Thu Mar 24 16:00:00 UTC 2016`. About five seconds later, the first block was produced. - links: <a href="https://steemd.com/b/1">https://steemd.com/b/1</a> + links: <a href="https://hiveblocks.com/b/1">https://hiveblocks.com/b/1</a> - name: HIVE_HARDFORK_REQUIRED_WITNESSES purpose: | The minimum number of Delegated Proof of Stake witnesses required for hardfork. This guarantees 75% participation on all subsequent rounds. @@ -362,7 +362,7 @@ - name: HIVE_PRODUCER_APR_PERCENT - name: HIVE_PROXY_TO_SELF_ACCOUNT purpose: An empty string represents the canonical account for specifying you will vote for directly (as opposed to a proxy). - - name: HIVE_SBD_INTEREST_COMPOUND_INTERVAL_SEC + - name: HIVE_HBD_INTEREST_COMPOUND_INTERVAL_SEC - name: HIVE_SECONDS_PER_YEAR - name: HIVE_RECENT_RSHARES_DECAY_TIME_HF19 - name: HIVE_RECENT_RSHARES_DECAY_TIME_HF17 @@ -458,7 +458,7 @@ since: HF21 purpose: Account dedicated to holding treasury debt asset balance to distribute. examples: - - '`steem.dao`' + - '`hive.fund`' links: - <a href="https://github.com/steemit/steem/pull/3272">PR#3272</a> - <a href="https://github.com/steemit/steem/pull/3278">PR#3278</a> diff --git a/_data/objects/dgpo.yml b/_data/objects/dgpo.yml index 40b5f5a4..70ee4757 100644 --- a/_data/objects/dgpo.yml +++ b/_data/objects/dgpo.yml @@ -53,15 +53,15 @@ purpose: Total asset held in confidential balances. examples: - "`0.000 HIVE`" - - name: current_sbd_supply + - name: current_hbd_supply purpose: HBD currently in existence. examples: - "`15478883.968 HBD`" - - name: confidential_sbd_supply + - name: confidential_hbd_supply purpose: Total asset held in confidential balances. examples: - "`0.000 HBD`" - - name: total_vesting_fund_steem + - name: total_vesting_fund_hive deprecated: true purpose: | *Now deprecated way to get HIVE that is invested in HIVE POWER (powered up).* @@ -73,7 +73,7 @@ purpose: VESTS that are invested in HIVE POWER (powered up). examples: - "`390950506702.452773 VESTS`" - - name: total_reward_fund_steem + - name: total_reward_fund_hive purpose: HIVE available in the reward pool. examples: - "`0.000 HIVE`" @@ -85,7 +85,7 @@ Use [`condenser_api.get_reward_fund`]({{ '/apidefinitions/#condenser_api.get_reward_fund' | relative_url }}) instead. examples: - "`0`" - - name: sbd_interest_rate + - name: hbd_interest_rate purpose: This property defines the interest rate that HBD deposits receive. examples: - "`0`" @@ -139,9 +139,9 @@ The maximum bandwidth the blockchain can support is `max_bandwidth = maximum_block_size * HIVE_BANDWIDTH_AVERAGE_WINDOW_SECONDS / HIVE_BLOCK_INTERVAL`; The maximum virtual bandwidth is: `max_bandwidth * current_reserve_ratio` examples: - "`264241152000000000000`" - - name: init_sbd_supply + - name: init_hbd_supply since: HF19 - # purpose: Originally called `virtual_sbd_supply`, ... TODO + # purpose: Originally called `virtual_hbd_supply`, ... TODO examples: - "`0.000 HBD`" - name: required_actions_partition_percent @@ -169,14 +169,14 @@ - "`23985882`" links: - <a href="https://github.com/steemit/steem/issues/1770">#1770</a> - - name: sbd_stop_percent + - name: hbd_stop_percent since: HF20 purpose: Stop printing HBD at *n*% marketcap. examples: - "`1000`" links: - <a href="https://github.com/steemit/steem/issues/2140">#2140</a> - - name: sbd_start_percent + - name: hbd_start_percent since: HF20 purpose: Start reducing printing of HBD at *n*% marketcap. examples: @@ -241,7 +241,7 @@ links: - <a href="https://github.com/steemit/steem/issues/3328">#3328</a> - <a href="https://github.com/steemit/steem/issues/3346">#3346</a> - - name: pending_rewarded_vesting_steem + - name: pending_rewarded_vesting_hive since: HF17 examples: - "`185294.019 HIVE`" @@ -249,7 +249,7 @@ - <a href="https://github.com/steemit/steem/issues/659">#659</a> - <a href="https://github.com/steemit/steem/issues/3328">#3328</a> - <a href="https://github.com/steemit/steem/issues/3346">#3346</a> - - name: sbd_print_rate + - name: hbd_print_rate since: HF14 examples: - "`2933`" diff --git a/_data/testnet/tools.yml b/_data/testnet/tools.yml index caa8cccc..ac937a6b 100644 --- a/_data/testnet/tools.yml +++ b/_data/testnet/tools.yml @@ -1,7 +1,7 @@ # Be sure to group each tool by testnet_id. # Possible places to watch for new testnet tools: # https://hiveprojects.io/search/?q=testnet -- name: Steemit, Inc. Live Testnet Endpoint +- name: Hive Live Testnet Endpoint testnet_id: 46d82ab url: https://testnet.steemitdev.com/ purpose: For anyone who wants to start testing their node and applications. diff --git a/_includes/api-template.html b/_includes/api-template.html index 2f550083..936bf632 100644 --- a/_includes/api-template.html +++ b/_includes/api-template.html @@ -40,7 +40,7 @@ Methods: <h5 id="{{ method.api_method | slug }}-curl-examples">Example <code>curl</code> <a href="#{{ method.api_method | slug}}-curl-examples"><i class="fas fa-link fa-sm"></i></a></h5> {% for curl in method.curl_examples %} ```bash -curl -s --data '{{curl}}' https://api.openhive.network +curl -s --data '{{curl}}' https://api.hive.blog ``` {% endfor %} {% endif %} diff --git a/_includes/tutorials-javascript/blog_feed.json b/_includes/tutorials-javascript/blog_feed.json index 71ab0a9c..663905ce 100644 --- a/_includes/tutorials-javascript/blog_feed.json +++ b/_includes/tutorials-javascript/blog_feed.json @@ -6,8 +6,8 @@ "category": "steemit", "parent_author": "", "parent_permlink": "steemit", - "title": "Join Team Steemit at TokenFest!", - "body": "<a href=\"https://tokenfest.adria.digital\"><img src=\"https://i.imgur.com/fOScDIW.png\"/></a>\n\nHello Steemians! If you’d like to meet Team Steemit live-in-person, or are just interested in attending what promises to be a great blockchain conference, join us at <a href=\"https://tokenfest.adria.digital/\">TokenFest</a> in San Francisco from March 15th to 16th. \n\nSteemit CEO, Ned Scott, will be participating in a fireside chat alongside Steemit’s CTO, Harry Schmidt, as well as the creator of Utopian.io, Diego Pucci. Steemit will also be hosting the opening party on Thursday night and we’d certainly love to meet as many of you as possible IRL, so head on over to https://tokenfest.adria.digital/ and get your tickets while you can. \n\n*Team Steemit*", + "title": "Join Team Hive at TokenFest!", + "body": "<a href=\"https://tokenfest.adria.digital\"><img src=\"https://i.imgur.com/fOScDIW.png\"/></a>\n\nHello Hiveians! If you’d like to meet Team Hive live-in-person, or are just interested in attending what promises to be a great blockchain conference, join us at <a href=\"https://tokenfest.adria.digital/\">TokenFest</a> in San Francisco from March 15th to 16th. \n\nHive CEO, Ned Scott, will be participating in a fireside chat alongside Hive’s CTO, Harry Schmidt, as well as the creator of Utopian.io, Diego Pucci. Hive will also be hosting the opening party on Thursday night and we’d certainly love to meet as many of you as possible IRL, so head on over to https://tokenfest.adria.digital/ and get your tickets while you can. \n\n*Team Hive*", "json_metadata": "{\"tags\":[\"steemit\",\"tokenfest\",\"conference\"],\"image\":[\"https://i.imgur.com/fOScDIW.png\"],\"links\":[\"https://tokenfest.adria.digital\",\"https://tokenfest.adria.digital/\"],\"app\":\"steemit/0.1\",\"format\":\"markdown\"}", "last_update": "2018-03-07T23:22:54", "created": "2018-03-07T20:56:36", @@ -23,21 +23,21 @@ "max_cashout_time": "1969-12-31T23:59:59", "total_vote_weight": 3462435, "reward_weight": 10000, - "total_payout_value": "0.000 SBD", - "curator_payout_value": "0.000 SBD", + "total_payout_value": "0.000 HBD", + "curator_payout_value": "0.000 HBD", "author_rewards": 0, "net_votes": 77, "root_comment": 37338948, - "max_accepted_payout": "0.000 SBD", - "percent_steem_dollars": 10000, + "max_accepted_payout": "0.000 HBD", + "percent_hbd": 10000, "allow_replies": true, "allow_votes": true, "allow_curation_rewards": true, "beneficiaries": [], "url": "/steemit/@steemitblog/join-team-steemit-at-tokenfest", - "root_title": "Join Team Steemit at TokenFest!", - "pending_payout_value": "46.436 SBD", - "total_pending_payout_value": "0.000 STEEM", + "root_title": "Join Team Hive at TokenFest!", + "pending_payout_value": "46.436 HBD", + "total_pending_payout_value": "0.000 HIVE", "active_votes": [ { "voter": "steemitblog", @@ -58,7 +58,7 @@ ], "replies": [], "author_reputation": "128210130644387", - "promoted": "0.000 SBD", + "promoted": "0.000 HBD", "body_length": 754, "reblogged_by": [] } diff --git a/_includes/tutorials-javascript/get_posts.json b/_includes/tutorials-javascript/get_posts.json index 9ae3e0e4..5c1d59c2 100644 --- a/_includes/tutorials-javascript/get_posts.json +++ b/_includes/tutorials-javascript/get_posts.json @@ -6,9 +6,9 @@ "category": "steemit", "parent_author": "", "parent_permlink": "steemit", - "title": "Join Team Steemit at TokenFest!", + "title": "Join Team Hive at TokenFest!", "body": - "<a href=\"https://tokenfest.adria.digital\"><img src=\"https://i.imgur.com/fOScDIW.png\"/></a>\n\nHello Steemians! If you’d like to meet Team Steemit live-in-person, or are just interested in attending what promises to be a great blockchain conference, join us at <a href=\"https://tokenfest.adria.digital/\">TokenFest</a> in San Francisco from March 15th to 16th. \n\nSteemit CEO, Ned Scott, will be participating in a fireside chat alongside Steemit’s CTO, Harry Schmidt, as well as the creator of Utopian.io, Diego Pucci. Steemit will also be hosting the opening party on Thursday night and we’d certainly love to meet as many of you as possible IRL, so head on over to https://tokenfest.adria.digital/ and get your tickets while you can. \n\n*Team Steemit*", + "<a href=\"https://tokenfest.adria.digital\"><img src=\"https://i.imgur.com/fOScDIW.png\"/></a>\n\nHello Hiveians! If you’d like to meet Team Hive live-in-person, or are just interested in attending what promises to be a great blockchain conference, join us at <a href=\"https://tokenfest.adria.digital/\">TokenFest</a> in San Francisco from March 15th to 16th. \n\nHive CEO, Ned Scott, will be participating in a fireside chat alongside Hive’s CTO, Harry Schmidt, as well as the creator of Utopian.io, Diego Pucci. Hive will also be hosting the opening party on Thursday night and we’d certainly love to meet as many of you as possible IRL, so head on over to https://tokenfest.adria.digital/ and get your tickets while you can. \n\n*Team Hive*", "json_metadata": "{\"tags\":[\"steemit\",\"tokenfest\",\"conference\"],\"image\":[\"https://i.imgur.com/fOScDIW.png\"],\"links\":[\"https://tokenfest.adria.digital\",\"https://tokenfest.adria.digital/\"],\"app\":\"steemit/0.1\",\"format\":\"markdown\"}", "last_update": "2018-03-07T23:22:54", @@ -25,21 +25,21 @@ "max_cashout_time": "1969-12-31T23:59:59", "total_vote_weight": 3462435, "reward_weight": 10000, - "total_payout_value": "0.000 SBD", - "curator_payout_value": "0.000 SBD", + "total_payout_value": "0.000 HBD", + "curator_payout_value": "0.000 HBD", "author_rewards": 0, "net_votes": 77, "root_comment": 37338948, - "max_accepted_payout": "0.000 SBD", - "percent_steem_dollars": 10000, + "max_accepted_payout": "0.000 HBD", + "percent_hbd": 10000, "allow_replies": true, "allow_votes": true, "allow_curation_rewards": true, "beneficiaries": [], "url": "/steemit/@steemitblog/join-team-steemit-at-tokenfest", - "root_title": "Join Team Steemit at TokenFest!", - "pending_payout_value": "46.436 SBD", - "total_pending_payout_value": "0.000 STEEM", + "root_title": "Join Team Hive at TokenFest!", + "pending_payout_value": "46.436 HBD", + "total_pending_payout_value": "0.000 HIVE", "active_votes": [ { "voter": "steemitblog", @@ -60,7 +60,7 @@ ], "replies": [], "author_reputation": "128210130644387", - "promoted": "0.000 SBD", + "promoted": "0.000 HBD", "body_length": 754, "reblogged_by": [] }, diff --git a/_plugins/post_generator.rb b/_plugins/post_generator.rb index f96e93ea..04102bc8 100644 --- a/_plugins/post_generator.rb +++ b/_plugins/post_generator.rb @@ -1,4 +1,4 @@ -require 'steem' +require 'hive' module Jekyll module HivePostGenerator @@ -9,7 +9,7 @@ module Jekyll permlink = slug[1..-1].join('/') permlink = permlink.split('?').first permlink = permlink.split('#').first - api = Steem::CondenserApi.new(url: 'https://api.openhive.network') + api = Hive::CondenserApi.new(url: 'https://api.hive.blog') api.get_content(author, permlink) do |content| body = content.body @@ -56,6 +56,6 @@ Liquid::Template.register_filter(Jekyll::HivePostGenerator) # # NOTE: # For content prior to the Hive fork, please remember to maintain the correct -# canonical_url, even if it appears on a Steem front-end, unless the original -# author removed it from Steem. SEO will still consider Steem as the origin, +# canonical_url, even if it appears on a Hive front-end, unless the original +# author removed it from Hive. SEO will still consider Hive as the origin, # even after the Hive fork. diff --git a/_quickstart/choose_library.md b/_quickstart/choose_library.md index 17d633b6..2d3018cb 100644 --- a/_quickstart/choose_library.md +++ b/_quickstart/choose_library.md @@ -6,4 +6,4 @@ exclude: true Getting started to develop robust and feature rich **Hive** applications couldn't be easier. Accessing hive data is easy from various options depending on your infrastructure and objectives. -Building a picture discovery app is a breeze with the [JavaScript]({{ '/tutorials/#tutorials-javascript' | relative_url }}) library. There is also a [Python]({{ '/tutorials/#tutorials-python' | relative_url }}) library available, [Steemit.com]({{ '/services/#services-steemit' | relative_url }}) and [SBDS]({{ '/services/#services-sbds' | relative_url }}) services, as well as many [community projects]({{ '/resources/#resources-overview' | relative_url }}) which could be beneficial for your steem project. +Building a picture discovery app is a breeze with the [JavaScript]({{ '/tutorials/#tutorials-javascript' | relative_url }}) library. There is also a [Python]({{ '/tutorials/#tutorials-python' | relative_url }}) library available, [Hive.com]({{ '/services/#services-steemit' | relative_url }}) and [HBDS]({{ '/services/#services-hbds' | relative_url }}) services, as well as many [community projects]({{ '/resources/#resources-overview' | relative_url }}) which could be beneficial for your steem project. diff --git a/_quickstart/hive_full_nodes.md b/_quickstart/hive_full_nodes.md index 2f4c80db..fd5cb232 100644 --- a/_quickstart/hive_full_nodes.md +++ b/_quickstart/hive_full_nodes.md @@ -40,13 +40,13 @@ _to run a node with all the data (e.g. for supporting a content website) that us ### Syncing blockchain -Normally syncing blockchain starts from very first, `0` genesis block. It might take long time to catch up with live network. Because it connectes to various p2p nodes in the Steem network and requests blocks from 0 to head block. It stores blocks in block log file and builds up the current state in the shared memory file. But there is a way to bootstrap syncing by using trusted `block_log` file. The block log is an external append only log of the blocks. It contains blocks that are only added to the log after they are irreversible because the log is append only. +Normally syncing blockchain starts from very first, `0` genesis block. It might take long time to catch up with live network. Because it connectes to various p2p nodes in the Hive network and requests blocks from 0 to head block. It stores blocks in block log file and builds up the current state in the shared memory file. But there is a way to bootstrap syncing by using trusted `block_log` file. The block log is an external append only log of the blocks. It contains blocks that are only added to the log after they are irreversible because the log is append only. Trusted block log file helps to download blocks faster. Various operators provide public block log file which can be downloaded from: - http://files.privex.io - https://gtg.steem.house/get/blockchain -Both `block_log` files updated periodically, as of April 2020 uncompressed `block_log` file size ~260 GB. (Docker container on `stable` branch of Hive source code has option to use `USE_PUBLIC_BLOCKLOG=1` to download latest block log and start Steem node with replay.) +Both `block_log` files updated periodically, as of April 2020 uncompressed `block_log` file size ~260 GB. (Docker container on `stable` branch of Hive source code has option to use `USE_PUBLIC_BLOCKLOG=1` to download latest block log and start Hive node with replay.) Block log should be place in `blockchain` directory below `data_dir` and node should be started with `--replay-blockchain` to ensure block log is valid and continue to sync from the point of snapshot. Replay uses the downloaded block log file to build up the shared memory file up to the highest block stored in that snapshot and then continues with sync up to the head block. @@ -66,7 +66,7 @@ Above bash script drops `block_log` from the OS cache, leaving more memory free ##### Few other tricks that might help: -For Linux users, virtual memory writes dirty pages of the shared file out to disk more often than is optimal which results in steemd being slowed down by redundant IO operations. These settings are recommended to optimize reindex time. +For Linux users, virtual memory writes dirty pages of the shared file out to disk more often than is optimal which results in hived being slowed down by redundant IO operations. These settings are recommended to optimize reindex time. ``` echo 75 | sudo tee /proc/sys/vm/dirty_background_ratio @@ -80,16 +80,16 @@ Another settings that can be changed in `config.ini` is `flush` - it is to speci (below info is outdated - need updating) ``` bash docker run \ - -d -p 2001:2001 -p 8090:8090 --name steemd-default \ + -d -p 2001:2001 -p 8090:8090 --name hived-default \ steemit/steem -docker logs -f steemd-default # follow along +docker logs -f hived-default # follow along ``` ``` bash docker run \ --env USE_WAY_TOO_MUCH_RAM=1 \ - -d -p 2001:2001 -p 8090:8090 --name steemd-full \ + -d -p 2001:2001 -p 8090:8090 --name hived-full \ steemit/steem -docker logs -f steemd-full +docker logs -f hived-full ``` diff --git a/_quickstart/testnet.md b/_quickstart/testnet.md index cb48eeff..184c3863 100644 --- a/_quickstart/testnet.md +++ b/_quickstart/testnet.md @@ -14,11 +14,11 @@ More info soon ### Features *Old text: Will be replaced:* -The official Steemit, Inc. Testnet is a mirror of the mainnet. This is achieved by copying the existing accounts and transactions from the mainnet state, as the they happen. Accounts are copied from a [snapshot](https://github.com/steemit/tinman#taking-a-snapshot) of mainnet while the module used to copy transactions in real time is called [`gatling`](https://github.com/steemit/tinman#gatling-transactions-from-mainnet). The `gatling` module runs at the final step of each testnet deployment. +The official Hive Testnet is a mirror of the mainnet. This is achieved by copying the existing accounts and transactions from the mainnet state, as the they happen. Accounts are copied from a [snapshot](https://github.com/steemit/tinman#taking-a-snapshot) of mainnet while the module used to copy transactions in real time is called [`gatling`](https://github.com/steemit/tinman#gatling-transactions-from-mainnet). The `gatling` module runs at the final step of each testnet deployment. The combination of `snapshot` and `gatling` means that this testnet approaches a subset of the same activity that the mainnet experiences. Not everything can be mirrored. For example, if someone comments or votes on a post that hasn't been mirrored to the testnet (because the post itself pre-dates the testnet deploy), those operations will also not be included. -At the time of this writing, the connection information for Steemit's testnet is as follows: +At the time of this writing, the connection information for Hive's testnet is as follows: * ChainID: `d043ab83d223f25f37e1876fe48a240d49d8e4b1daa2342064990a8036a8bb5b` * Address prefix: `TST` @@ -26,11 +26,11 @@ At the time of this writing, the connection information for Steemit's testnet is ## Running a Testnet Node -First, let's build `steemd` specifically for testnet. Recommended specs: +First, let's build `hived` specifically for testnet. Recommended specs: * `Ubuntu Server 18.04 LTS` * `100GB HDD` -* `16GB RAM` (mostly needed for `steemd` build) +* `16GB RAM` (mostly needed for `hived` build) ```bash sudo apt-get update && sudo apt-get dist-upgrade @@ -50,12 +50,12 @@ mkdir -p build cd build cmake \ -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_STEEM_TESTNET=ON \ + -DBUILD_HIVE_TESTNET=ON \ -DLOW_MEMORY_NODE=ON \ -DCHAINBASE_CHECK_LOCKING=ON \ -DCLEAR_VOTES=ON \ -DSKIP_BY_TX_ID=ON \ - -DSTEEM_LINT_LEVEL=OFF \ + -DHIVE_LINT_LEVEL=OFF \ .. make -j$(nproc) install cd @@ -88,22 +88,22 @@ p2p-seed-node = testnet.steemitdev.com:2001 Then execute: ```bash -steemd --data-dir=. --chain-id=d043ab83d223f25f37e1876fe48a240d49d8e4b1daa2342064990a8036a8bb5b +hived --data-dir=. --chain-id=d043ab83d223f25f37e1876fe48a240d49d8e4b1daa2342064990a8036a8bb5b ``` Now let it sync, and you'll have a shiny new testnet seed node to play with. ## Custom Testnet -In order to create a custom, isolated, testnet separate from the Steemit's we need to modify a few things mentioned in the previous section. +In order to create a custom, isolated, testnet separate from the Hive's we need to modify a few things mentioned in the previous section. In the file named `steem/libraries/protocol/include/steem/protocol/config.hpp`, we can see the first few lines dedicated to the Testnet section. The line starts with `#ifdef IS_TEST_NET`. -Let's say we want to create a custom testnet with an initial supply of **1,000,000 STEEM**. We can change `STEEM_INIT_SUPPLY 1,000,000` and by changing `STEEM_CHAIN_ID_NAME "testnet"`, **testnet** to **mytestnet** we will automatically get a unique Chain ID for our testnet. The address prefix can be set to something like **MTN** and of course, we need to change the public and private keys to the genesis account. Note that the genesis account will receive the entire pre-mined supply of 1,000,000. That way, you can execute a setup script to fund any newly created accounts. Such a custom testnet will not have any additional hardware requirements to run. +Let's say we want to create a custom testnet with an initial supply of **1,000,000 HIVE**. We can change `HIVE_INIT_SUPPLY 1,000,000` and by changing `HIVE_CHAIN_ID_NAME "testnet"`, **testnet** to **mytestnet** we will automatically get a unique Chain ID for our testnet. The address prefix can be set to something like **MTN** and of course, we need to change the public and private keys to the genesis account. Note that the genesis account will receive the entire pre-mined supply of 1,000,000. That way, you can execute a setup script to fund any newly created accounts. Such a custom testnet will not have any additional hardware requirements to run. A minimum of 8GB RAM should be sufficient to run a custom testnet. Currently, Hive only has Linux and Mac compiling guides to build. A testnet can either be hosted locally, on a rented AWS, or dedicated bare metal servers so one can start testing functionality, explore different APIs, and start developing. -One more crucial point to modify is to change the number of witnesses required to accept hardforks for a custom testnet, by default it is set to 17, we can change it to **1** `STEEM_HARDFORK_REQUIRED_WITNESSES 1` so that only one node instance would be sufficient and the network will be still functional and fast. +One more crucial point to modify is to change the number of witnesses required to accept hardforks for a custom testnet, by default it is set to 17, we can change it to **1** `HIVE_HARDFORK_REQUIRED_WITNESSES 1` so that only one node instance would be sufficient and the network will be still functional and fast. Another thing to note is that you can start a new chain with all previous hardforks already accepted, by changing the file named `steem/blob/master/libraries/chain/database.cpp` with the following function: @@ -113,13 +113,13 @@ Another thing to note is that you can start a new chain with all previous hardfo This would mean that 19 hardforks have been accepted by witnesses and the new chain will start with all previous forks included. -After these changes, all we have to do is compile the source code and get the `steemd` executable. And once we fire up the custom testnet we can start testing and experimenting. +After these changes, all we have to do is compile the source code and get the `hived` executable. And once we fire up the custom testnet we can start testing and experimenting. -If you want to port some data from Hive main network you can use [Tinman](https://github.com/steemit/tinman), also developed by Steemit, to help with taking snapshots of the main network. +If you want to port some data from Hive main network you can use [Tinman](https://github.com/steemit/tinman), also developed by Hive, to help with taking snapshots of the main network. #### Custom live testnet -An example of a custom testnet run by Hive community member [@almost-digital](https://steemit.com/@almost-digital). It doesn't have a snapshot of the main network +An example of a custom testnet run by Hive community member [@almost-digital](https://hive.blog/@almost-digital). It doesn't have a snapshot of the main network * ChainID: `79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673` * Address prefix: `STX` diff --git a/_resources/_piston.md b/_resources/_piston.md index da73efb2..9eb79e62 100644 --- a/_resources/_piston.md +++ b/_resources/_piston.md @@ -3,7 +3,7 @@ title: PistonCLI position: 4 --- -Piston is a command line tool to interact with the STEEM network. Piston is +Piston is a command line tool to interact with the HIVE network. Piston is written in Python and highly customizable for building steem tools and performing wallet operations. diff --git a/_resources/bluepaper.md b/_resources/bluepaper.md index c68d7aaf..6df7cc8b 100644 --- a/_resources/bluepaper.md +++ b/_resources/bluepaper.md @@ -3,6 +3,6 @@ title: Bluepaper position: 2 --- -The Steem Bluepaper describes how the Steem blockchain works, and provides an overview of the key features. +The Hive Bluepaper describes how the Hive blockchain works, and provides an overview of the key features. [https://steem.com/steem-bluepaper.pdf](https://steem.com/steem-bluepaper.pdf) diff --git a/_resources/client_libs.md b/_resources/client_libs.md index 1a2ee994..0a78b248 100644 --- a/_resources/client_libs.md +++ b/_resources/client_libs.md @@ -15,7 +15,7 @@ Pure JavaScript Hive crypto library for node.js and browsers. Can be used to con --- -**Steem-TX-JS** - [https://github.com/mahdiyari/steem-tx-js](https://github.com/mahdiyari/steem-tx-js) +**Hive-TX-JS** - [https://github.com/mahdiyari/steem-tx-js](https://github.com/mahdiyari/steem-tx-js) Lightweight JavaScript library for creating and signing transactions. Works with frameworks like Nativescript. This library is a solution to such cases when other libraries are not working. And also an alternative for *only* creating, signing, and broadcasting transactions. @@ -35,22 +35,22 @@ A python library to interact with the Hive blockchain. It includes the CLI tool **PHP Hive** - [https://github.com/lukestokes/php-steem-tools](https://github.com/lukestokes/php-steem-tools) -Various tools and scripts written in PHP for exploring the STEEM blockchain. +Various tools and scripts written in PHP for exploring the HIVE blockchain. --- -<!-- **SteemJ** - [https://github.com/marvin-we/steem-java-api-wrapper](https://github.com/marvin-we/steem-java-api-wrapper) +<!-- **HiveJ** - [https://github.com/marvin-we/steem-java-api-wrapper](https://github.com/marvin-we/steem-java-api-wrapper) -An API Wrapper for Steem written in Java +An API Wrapper for Hive written in Java --- -**GoSteem** - [https://github.com/go-steem/rpc](https://github.com/go-steem/rpc) +**GoHive** - [https://github.com/go-steem/rpc](https://github.com/go-steem/rpc) -Golang RPC client library for Steem +Golang RPC client library for Hive --- -**SteemClientRS** - [https://github.com/cyberpunk-ventures/steem-client-rs](https://github.com/cyberpunk-ventures/steem-client-rs) +**HiveClientRS** - [https://github.com/cyberpunk-ventures/steem-client-rs](https://github.com/cyberpunk-ventures/steem-client-rs) -Client library for Steem blockchain built with Rust --> +Client library for Hive blockchain built with Rust --> diff --git a/_resources/developeradvocate.md b/_resources/developeradvocate.md index b50ff17c..7069d0ba 100644 --- a/_resources/developeradvocate.md +++ b/_resources/developeradvocate.md @@ -5,9 +5,9 @@ position: 6 <!-- **Developer Advocate** -The members of the Steemit Inc. development team are currently the main contributors to the Steem blockchain software. They oversee the open source [Steem](https://github.com/steemit/steem) GitHub repository, and maintain many of the open source [libraries](https://github.com/steemit) that developers use. +The members of the Hive Inc. development team are currently the main contributors to the Hive blockchain software. They oversee the open source [Hive](https://github.com/steemit/steem) GitHub repository, and maintain many of the open source [libraries](https://github.com/steemit) that developers use. -Steemit’s [Developer Advocate](mailto:da@steemit.com) is here to make the process of developing for the Steem platform as smooth as possible. If you have any comments, concerns, or suggestions about how to improve the experience of developing applications with the Steem blockchain - please [reach out](mailto:da@steemit.com). +Hive’s [Developer Advocate](mailto:da@hive.blog) is here to make the process of developing for the Hive platform as smooth as possible. If you have any comments, concerns, or suggestions about how to improve the experience of developing applications with the Hive blockchain - please [reach out](mailto:da@hive.blog). The D.A. receives a lot of emails, but will respond as quickly as possible. --- @@ -15,9 +15,9 @@ The D.A. receives a lot of emails, but will respond as quickly as possible. **HiveDevs Chat** - [https://discord.gg/B29Bbng](https://discord.gg/B29Bbng) -HiveDevs chat is a public Discord chat community where members of the Steem development community go to discuss Steem development, and other related topics. +HiveDevs chat is a public Discord chat community where members of the Hive development community go to discuss Hive development, and other related topics. -It is a great place to go to ask questions, meet other developers that are working on Steem projects, share tips and code snippets, and discuss the items you are working on. +It is a great place to go to ask questions, meet other developers that are working on Hive projects, share tips and code snippets, and discuss the items you are working on. This discord also has an accompanying Hive Community: [HiveDevs](https://hive.blog/trending/hive-139531) diff --git a/_resources/hive_keychain.md b/_resources/hive_keychain.md index dab7119f..fec2ce8a 100644 --- a/_resources/hive_keychain.md +++ b/_resources/hive_keychain.md @@ -9,4 +9,4 @@ Hive Keychain is a browser extension solution to integrate web sites with the Hi * Google Chrome or Brave - [https://github.com/stoodkev/hive-keychain](https://github.com/stoodkev/hive-keychain) ([how to install](https://peakd.com/hive-keychain/@stoodkev/hive-keychain-beta-is-ready#for-users)) * Firefox - [https://addons.mozilla.org/en-US/firefox/addon/hive-keychain/](https://addons.mozilla.org/en-US/firefox/addon/hive-keychain/) -For information on integrating Steem Keychain into your own web application, see: [**Website Integration**](https://github.com/stoodkev/hive-keychain#website-integration) +For information on integrating Hive Keychain into your own web application, see: [**Website Integration**](https://github.com/stoodkev/hive-keychain#website-integration) diff --git a/_resources/tools.md b/_resources/tools.md index f871ffa0..cc99c0db 100644 --- a/_resources/tools.md +++ b/_resources/tools.md @@ -21,15 +21,15 @@ A private Microsoft SQL server database with Hive blockchain data, subscription --- -**eSync** - [https://github.com/eSteemApp/esync](https://github.com/eSteemApp/esync) +**eSync** - [https://github.com/eHiveApp/esync](https://github.com/eHiveApp/esync) -eSync extracts Steem blockchain data and saves into Mongodb, written in Nodejs. +eSync extracts Hive blockchain data and saves into Mongodb, written in Nodejs. --- -**SteemPress** - [https://github.com/drov0/steempress](https://github.com/drov0/steempress) +**HivePress** - [https://github.com/drov0/steempress](https://github.com/drov0/steempress) -SteemPress is a WordPress plugin to allow you to automatically publish your articles to the Steem blockchain whenever you publish them on your blog. +HivePress is a WordPress plugin to allow you to automatically publish your articles to the Hive blockchain whenever you publish them on your blog. --- diff --git a/_resources/whitepaper.md b/_resources/whitepaper.md index 7bf2b24e..e28e9d5a 100644 --- a/_resources/whitepaper.md +++ b/_resources/whitepaper.md @@ -3,6 +3,6 @@ title: Whitepaper position: 3 --- -The Steem Whitepaper provides a more in depth technical analysis of how the Steem blockchain operates. +The Hive Whitepaper provides a more in depth technical analysis of how the Hive blockchain operates. -[https://steem.com/SteemWhitePaper.pdf](https://steem.com/SteemWhitePaper.pdf) +[https://steem.com/HiveWhitePaper.pdf](https://steem.com/HiveWhitePaper.pdf) diff --git a/_services/dhf.md b/_services/dhf.md index 58fba78e..4e24c849 100644 --- a/_services/dhf.md +++ b/_services/dhf.md @@ -5,13 +5,13 @@ position: 5 #### Intro -The DHF (Decentralized Hive Fund) is an account on the Hive blockchain (currently [@steem.dao](https://hiveblocks.com/@steem.dao)) that receives 10% of the [annual new supply]({{ '/tutorials-recipes/understanding-configuration-values.html#HIVE_INFLATION_NARROWING_PERIOD' | relative_url }}). These funds are dedicated to Hive platform improvements. +The DHF (Decentralized Hive Fund) is an account on the Hive blockchain (currently [@hive.fund](https://hiveblocks.com/@hive.fund)) that receives 10% of the [annual new supply]({{ '/tutorials-recipes/understanding-configuration-values.html#HIVE_INFLATION_NARROWING_PERIOD' | relative_url }}). These funds are dedicated to Hive platform improvements. Every day a portion of the HBD fund managed by the DHF is distributed to various proposals, depending on **a)** how much the proposal is asking for and **b)** how much approval the proposal has. > The DHF was a concept proposed by [@blocktrades](https://hiveblocks.com/@blocktrades) to allow Hive users to publicly propose work they are willing to do in exchange for pay. Hive users can then vote on these proposals in almost the same way they vote for witnesses. It uses stake-weighted votes, but voters can vote for as many proposals as they want. -<sup>See original announcement, when it was called "SPS" on Steem: [https://hive.blog/steem/@steemitblog/hf21-sps-and-eip-explained](https://hive.blog/steem/@steemitblog/hf21-sps-and-eip-explained)</sup> +<sup>See original announcement, when it was called "SPS" on Hive: [https://hive.blog/steem/@steemitblog/hf21-sps-and-eip-explained](https://hive.blog/steem/@steemitblog/hf21-sps-and-eip-explained)</sup> #### Tools @@ -19,7 +19,7 @@ Every day a portion of the HBD fund managed by the DHF is distributed to various * [https://peakd.com/proposals](https://peakd.com/proposals) - Hive Proposals UI by [@peakd](https://peakd.com/@peakd) * [https://wallet.hive.blog/proposals](https://wallet.hive.blog/proposals) - Vote for your favorite Hive proposals without leaving the safety of wallet.hive.blog. <!-- * [https://joticajulian.github.io/steemexplorer/#/proposals](https://joticajulian.github.io/steemexplorer/#/proposals) - Check who voted what. --> -<!-- * [https://steemit.com/@proposalalert](https://steemit.com/@proposalalert) - Follow this account to be notified of new proposals. --> +<!-- * [https://hive.blog/@proposalalert](https://hive.blog/@proposalalert) - Follow this account to be notified of new proposals. --> #### API diff --git a/_services/hive.blog.md b/_services/hive.blog.md index ed10df5f..28695646 100644 --- a/_services/hive.blog.md +++ b/_services/hive.blog.md @@ -61,19 +61,19 @@ User object "last_vote_time":"2018-06-21T19:42:33", "balance":"24.519 HIVE", "savings_balance":"0.000 HIVE", - "sbd_balance":"36.736 HBD", - "sbd_seconds":"11732264931", - "sbd_seconds_last_update":"2018-06-21T19:35:00", - "sbd_last_interest_payment":"2018-06-15T14:05:03", - "savings_sbd_balance":"0.000 HBD", - "savings_sbd_seconds":"0", - "savings_sbd_seconds_last_update":"1970-01-01T00:00:00", - "savings_sbd_last_interest_payment":"1970-01-01T00:00:00", + "hbd_balance":"36.736 HBD", + "hbd_seconds":"11732264931", + "hbd_seconds_last_update":"2018-06-21T19:35:00", + "hbd_last_interest_payment":"2018-06-15T14:05:03", + "savings_hbd_balance":"0.000 HBD", + "savings_hbd_seconds":"0", + "savings_hbd_seconds_last_update":"1970-01-01T00:00:00", + "savings_hbd_last_interest_payment":"1970-01-01T00:00:00", "savings_withdraw_requests":0, - "reward_sbd_balance":"0.000 HBD", - "reward_steem_balance":"0.000 HIVE", + "reward_hbd_balance":"0.000 HBD", + "reward_hive_balance":"0.000 HIVE", "reward_vesting_balance":"481.354811 VESTS", - "reward_vesting_steem":"0.237 HIVE", + "reward_vesting_hive":"0.237 HIVE", "vesting_shares":"128367480.795804 VESTS", "delegated_vesting_shares":"0.000000 VESTS", "received_vesting_shares":"17069919.621493 VESTS", @@ -166,7 +166,7 @@ Post object "root_author": "curie", "root_permlink": "the-daily-curie-12-13-feb-2017", "max_accepted_payout": "1000000.000 HBD", - "percent_steem_dollars": 0, + "percent_hbd": 0, "allow_replies": true, "allow_votes": true, "allow_curation_rewards": true, diff --git a/_services/imageHoster.md b/_services/imageHoster.md index 38127c0f..be4aa80b 100644 --- a/_services/imageHoster.md +++ b/_services/imageHoster.md @@ -10,7 +10,7 @@ The purpose of this tool is to provide a way to host and proxy images used by [c Using ImageHoster will help limit access to IP addresses of the general user. It will also strip [image metadata](https://en.wikipedia.org/wiki/Exif) related to the author's geographical location. It also helps to verify that the original author uploaded the image they intended. -The ability to upload images on steemit.com was originally added in January, 2017. Please note that this tool **does not** store any image data on the blockchain. +The ability to upload images on hive.blog was originally added in January, 2017. Please note that this tool **does not** store any image data on the blockchain. Detaied information on Imagehoster can be found in its [repository](https://gitlab.syncad.com/hive/imagehoster/-/blob/master/README.md#imagehoster) diff --git a/_services/jussi.md b/_services/jussi.md index 87dab094..e63e0e83 100644 --- a/_services/jussi.md +++ b/_services/jussi.md @@ -4,13 +4,13 @@ position: 3 description: A reverse proxy that forwards json-rpc requests. --- -Jussi is a custom-built caching layer for use with `steemd` and other various services (such as [SBDS]({{ '/services/#services-sbds' | relative_url }})). +Jussi is a custom-built caching layer for use with `hived` and other various services (such as [HBDS]({{ '/services/#services-hbds' | relative_url }})). The purpose of this document is to help developers and node operators set up their own jussi node within a docker container. ### Intro -Jussi is a reverse proxy that is situation between the API client and the `steemd` server. It allows node operators to route an API call to nodes that are optimized for the particular call, as if they are all hosted from the same place. +Jussi is a reverse proxy that is situation between the API client and the `hived` server. It allows node operators to route an API call to nodes that are optimized for the particular call, as if they are all hosted from the same place. ### Sections @@ -43,7 +43,7 @@ docker run -itp 9000:8080 "$USER/jussi:$(git rev-parse --abbrev-ref HEAD)" curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":[8675309], "id":1}' http://localhost:9000 ``` -See: [Running Condenser, Jussi and a new service locally + adding feature flags to Condenser](https://steemit.com/steemdev/@maitland/running-condenser-jussi-and-a-new-service-locally-adding-feature-flags-to-condenser) +See: [Running Condenser, Jussi and a new service locally + adding feature flags to Condenser](https://hive.blog/hivedev/@maitland/running-condenser-jussi-and-a-new-service-locally-adding-feature-flags-to-condenser) --- @@ -56,40 +56,40 @@ The default `DEV_config.json` is: "limits":{"blacklist_accounts":["non-steemit"]}, "upstreams":[ { - "name":"steemd", + "name":"hived", "translate_to_appbase":false, - "urls":[["steemd", "https://steemd.steemitdev.com"]], + "urls":[["hived", "https://hived.steemitdev.com"]], "ttls":[ - ["steemd", 3], - ["steemd.login_api", -1], - ["steemd.network_broadcast_api", -1], - ["steemd.follow_api", 10], - ["steemd.market_history_api", 1], - ["steemd.database_api", 3], - ["steemd.database_api.get_block", -2], - ["steemd.database_api.get_block_header", -2], - ["steemd.database_api.get_content", 1], - ["steemd.database_api.get_state", 1], - ["steemd.database_api.get_state.params=['/trending']", 30], - ["steemd.database_api.get_state.params=['trending']", 30], - ["steemd.database_api.get_state.params=['/hot']", 30], - ["steemd.database_api.get_state.params=['/welcome']", 30], - ["steemd.database_api.get_state.params=['/promoted']", 30], - ["steemd.database_api.get_state.params=['/created']", 10], - ["steemd.database_api.get_dynamic_global_properties", 1] + ["hived", 3], + ["hived.login_api", -1], + ["hived.network_broadcast_api", -1], + ["hived.follow_api", 10], + ["hived.market_history_api", 1], + ["hived.database_api", 3], + ["hived.database_api.get_block", -2], + ["hived.database_api.get_block_header", -2], + ["hived.database_api.get_content", 1], + ["hived.database_api.get_state", 1], + ["hived.database_api.get_state.params=['/trending']", 30], + ["hived.database_api.get_state.params=['trending']", 30], + ["hived.database_api.get_state.params=['/hot']", 30], + ["hived.database_api.get_state.params=['/welcome']", 30], + ["hived.database_api.get_state.params=['/promoted']", 30], + ["hived.database_api.get_state.params=['/created']", 10], + ["hived.database_api.get_dynamic_global_properties", 1] ], "timeouts":[ - ["steemd", 5], - ["steemd.network_broadcast_api", 0] + ["hived", 5], + ["hived.network_broadcast_api", 0] ], "retries": [ - ["steemd", 3], - ["steemd.network_broadcast_api", 0] + ["hived", 3], + ["hived.network_broadcast_api", 0] ] }, { "name":"appbase", - "urls":[["appbase", "https://steemd.steemitdev.com"]], + "urls":[["appbase", "https://hived.steemitdev.com"]], "ttls":[ ["appbase", -2], ["appbase.block_api", -2], @@ -136,25 +136,25 @@ Jussi can be configured with various `TTL` (Time To Live) schemes. A `TTL` is an | Upstream | API | Method | Parameters | TTL (seconds) | |------------|-------------------------|---------------------------------|--------------------|---------------| -| `steemd` | `login_api` | _all_ | _all_ | -1 | -| `steemd` | `network_broadcast_api` | _all_ | _all_ | -1 | -| `steemd` | `follow_api` | _all_ | _all_ | 10 | -| `steemd` | `market_history_api` | _all_ | _all_ | 1 | -| `steemd` | `database_api` | _all_ | _all_ | 3 | -| `steemd` | `database_api` | `get_block` | _all_ | -2 | -| `steemd` | `database_api` | `get_block_header` | _all_ | -2 | -| `steemd` | `database_api` | `get_content` | _all_ | 1 | -| `steemd` | `database_api` | `get_state` | _all_ | 1 | -| `steemd` | `database_api` | `get_state` | `'/trending'` | 30 | -| `steemd` | `database_api` | `get_state` | `'trending'` | 30 | -| `steemd` | `database_api` | `get_state` | `'/hot'` | 30 | -| `steemd` | `database_api` | `get_state` | `'/welcome'` | 30 | -| `steemd` | `database_api` | `get_state` | `'/promoted'` | 30 | -| `steemd` | `database_api` | `get_state` | `'/created'` | 10 | -| `steemd` | `database_api` | `get_dynamic_global_properties` | _all_ | 1 | +| `hived` | `login_api` | _all_ | _all_ | -1 | +| `hived` | `network_broadcast_api` | _all_ | _all_ | -1 | +| `hived` | `follow_api` | _all_ | _all_ | 10 | +| `hived` | `market_history_api` | _all_ | _all_ | 1 | +| `hived` | `database_api` | _all_ | _all_ | 3 | +| `hived` | `database_api` | `get_block` | _all_ | -2 | +| `hived` | `database_api` | `get_block_header` | _all_ | -2 | +| `hived` | `database_api` | `get_content` | _all_ | 1 | +| `hived` | `database_api` | `get_state` | _all_ | 1 | +| `hived` | `database_api` | `get_state` | `'/trending'` | 30 | +| `hived` | `database_api` | `get_state` | `'trending'` | 30 | +| `hived` | `database_api` | `get_state` | `'/hot'` | 30 | +| `hived` | `database_api` | `get_state` | `'/welcome'` | 30 | +| `hived` | `database_api` | `get_state` | `'/promoted'` | 30 | +| `hived` | `database_api` | `get_state` | `'/created'` | 10 | +| `hived` | `database_api` | `get_dynamic_global_properties` | _all_ | 1 | | `overseer` | _all_ | _all_ | _all_ | 5 | | `conveyor` | _all_ | _all_ | _all_ | -1 | -| `sbds` | _all_ | _all_ | _all_ | 3 | +| `hbds` | _all_ | _all_ | _all_ | 3 | | `hivemind` | _all_ | _all_ | _all_ | 3 | | `yo` | _all_ | _all_ | _all_ | 3 | @@ -200,7 +200,7 @@ In these examples, the methods `get_account_history` and `get_ops_in_block` rout Adding a `retries` element defines the number of retry attempts, where `0` (or absent) means no retry. The maximum number of retries is `3`. -Note that retrying broadcast methods is not recommended, which is why the example explicitly sets `steemd.network_broadcast_api` to `0`. +Note that retrying broadcast methods is not recommended, which is why the example explicitly sets `hived.network_broadcast_api` to `0`. #### json-rpc batch<a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm" /></a> @@ -209,7 +209,7 @@ Normally, a request is made with a JSON Object (`{}`). But jussi also supports For example, this would be a typical, non-batched JSON Object request that asks for a single block: ```bash -curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":[1], "id":1}' https://api.steemit.com +curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":[1], "id":1}' https://api.hive.blog ``` ```json @@ -240,7 +240,7 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":[ To request more than one block using the batch construct, wrap each call in a JSON Array, that asks for two blocks in one request: ```bash -curl -s --data '[{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":[1], "id":1},{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":[2], "id":2}]' https://api.steemit.com +curl -s --data '[{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":[1], "id":1},{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":[2], "id":2}]' https://api.hive.blog ``` ```json @@ -295,7 +295,7 @@ curl -s --data '[{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params": Error responses are returned in the JSON Array response as well. Notice the `"WRONG"` parameter in the second element. The first block is returned as expected, the second one generates an error. ```bash -curl -s --data '[{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":[1], "id":1},{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":["WRONG"], "id":2}]' https://api.steemit.com +curl -s --data '[{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":[1], "id":1},{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":["WRONG"], "id":2}]' https://api.hive.blog ``` ```json diff --git a/_testnet/index.md b/_testnet/index.md index 211de7a3..b5a71297 100644 --- a/_testnet/index.md +++ b/_testnet/index.md @@ -1,15 +1,15 @@ --- -title: Steem Testnet +title: Hive Testnet position: 3 layout: full --- -Steem blockchain software is written in C++ and in order to modify the source code you need some understanding of the C++ programming language. Each Steem node runs an instance of this software, so in order to test your changes, you will need to know how to install dependencies which can be found in the [Steem repo](https://github.com/steemit/steem/blob/master/doc/building.md). This also means that some knowledge of System administration is also required. There are multiple advantages of running a testnet, you can test your scripts or applications on a testnet without extra spam on the live network, which allows much more flexibility to try new things. -Having access to a testnet also helps you to work on new features and possibly submit new or improved pull requests to official the Steem GitHub repository. +Hive blockchain software is written in C++ and in order to modify the source code you need some understanding of the C++ programming language. Each Hive node runs an instance of this software, so in order to test your changes, you will need to know how to install dependencies which can be found in the [Hive repo](https://github.com/steemit/steem/blob/master/doc/building.md). This also means that some knowledge of System administration is also required. There are multiple advantages of running a testnet, you can test your scripts or applications on a testnet without extra spam on the live network, which allows much more flexibility to try new things. +Having access to a testnet also helps you to work on new features and possibly submit new or improved pull requests to official the Hive GitHub repository. ## Running Testnet -By following official [build steps](https://github.com/steemit/steem/blob/master/doc/building.md#build_steem_testnetoffon) and enabling the `BUILD_STEEM_TESTNET` flag during compilation, you should be able to run the Steem Testnet locally on your workstation and join the development testnet. Docker can also be used to get started quickly. Compilation generates the `steemd` executable which is the main daemon for the Steem network. Additional `cli_wallet` can also be compiled to test/connect to an instance of `steemd` and request some data from the network, but it is not necessary to run a node. +By following official [build steps](https://github.com/steemit/steem/blob/master/doc/building.md#build_hive_testnetoffon) and enabling the `BUILD_HIVE_TESTNET` flag during compilation, you should be able to run the Hive Testnet locally on your workstation and join the development testnet. Docker can also be used to get started quickly. Compilation generates the `hived` executable which is the main daemon for the Hive network. Additional `cli_wallet` can also be compiled to test/connect to an instance of `hived` and request some data from the network, but it is not necessary to run a node. The development testnet requires a certain minimum set of hardware requirements, depending on the type of compile flags that have been enabled. Because it is a mirror of the live network, private keys are the same for accounts up to the point of the snapshot timestamp of the testnet. @@ -17,13 +17,13 @@ Joining/Running the development testnet requires around 10 GB for block log on a Testnet has the following parameters by default (as of this writing): -* Initial supply (250 billion) - `STEEM_INIT_SUPPLY 250,000,000,000` +* Initial supply (250 billion) - `HIVE_INIT_SUPPLY 250,000,000,000` * Max number of blocks to be produced - `TESTNET_BLOCK_LIMIT 3,000,000` -* Address prefix, prefix on public addresses - `STEEM_ADDRESS_PREFIX "TST"` -* Chain id name, used for chain id - `STEEM_CHAIN_ID_NAME "testnet"` -* Chain id, unique id hash of chain - `STEEM_CHAIN_ID (fc::sha256::hash(STEEM_CHAIN_ID_NAME))` -* Public key of genesis account - `STEEM_INIT_PUBLIC_KEY_STR ` -* Account creation fee - `STEEM_MIN_ACCOUNT_CREATION_FEE 0` +* Address prefix, prefix on public addresses - `HIVE_ADDRESS_PREFIX "TST"` +* Chain id name, used for chain id - `HIVE_CHAIN_ID_NAME "testnet"` +* Chain id, unique id hash of chain - `HIVE_CHAIN_ID (fc::sha256::hash(HIVE_CHAIN_ID_NAME))` +* Public key of genesis account - `HIVE_INIT_PUBLIC_KEY_STR ` +* Account creation fee - `HIVE_MIN_ACCOUNT_CREATION_FEE 0` There are a number of other subtle changes that we don't need to focus on right now. @@ -41,11 +41,11 @@ In order to create a custom testnet, separate from the development one, we need In the file named `steem/libraries/protocol/include/steem/protocol/config.hpp`, we can see the first few lines dedicated to the Testnet section. The line starts with `#ifdef IS_TEST_NET`. -Let's say we want to create a custom testnet with an initial supply of **1,000,000 STEEM**. We can change `STEEM_INIT_SUPPLY 1,000,000` and by changing `STEEM_CHAIN_ID_NAME "testnet"`, **testnet** to **mytestnet** we will automatically get a unique Chain ID for our testnet. The address prefix can be set to something like **MTN** and of course, we need to change the public and private keys to the genesis account. Note that the genesis account will receive the entire pre-mined supply of 1,000,000. That way, you can execute a setup script to fund any newly created accounts. Such a custom testnet will not have any additional hardware requirements to run. +Let's say we want to create a custom testnet with an initial supply of **1,000,000 HIVE**. We can change `HIVE_INIT_SUPPLY 1,000,000` and by changing `HIVE_CHAIN_ID_NAME "testnet"`, **testnet** to **mytestnet** we will automatically get a unique Chain ID for our testnet. The address prefix can be set to something like **MTN** and of course, we need to change the public and private keys to the genesis account. Note that the genesis account will receive the entire pre-mined supply of 1,000,000. That way, you can execute a setup script to fund any newly created accounts. Such a custom testnet will not have any additional hardware requirements to run. -A minimum of 8GB RAM should be sufficient to run a custom testnet. Currently, Steem only has Linux and Mac compiling guides to build. A testnet can either be hosted locally, on a rented AWS, or dedicated bare metal servers so one can start testing functionality, explore different APIs, and start developing. +A minimum of 8GB RAM should be sufficient to run a custom testnet. Currently, Hive only has Linux and Mac compiling guides to build. A testnet can either be hosted locally, on a rented AWS, or dedicated bare metal servers so one can start testing functionality, explore different APIs, and start developing. -One more crucial point to modify is to change the number of witnesses required to accept hardforks for a custom testnet, by default it is set to 17, we can change it to **1** `STEEM_HARDFORK_REQUIRED_WITNESSES 1` so that only one node instance would be sufficient and the network will be still functional and fast. +One more crucial point to modify is to change the number of witnesses required to accept hardforks for a custom testnet, by default it is set to 17, we can change it to **1** `HIVE_HARDFORK_REQUIRED_WITNESSES 1` so that only one node instance would be sufficient and the network will be still functional and fast. Another thing to note is that you can start a new chain with all previous hardforks already accepted, by changing the file named `steem/blob/master/libraries/chain/database.cpp` with the following function: @@ -55,9 +55,9 @@ Another thing to note is that you can start a new chain with all previous hardfo This would mean that 19 hardforks have been accepted by witnesses and the new chain will start with all previous forks included. -After these changes, all we have to do is compile the source code and get the `steemd` executable. And once we fire up the custom testnet we can start testing and experimenting. +After these changes, all we have to do is compile the source code and get the `hived` executable. And once we fire up the custom testnet we can start testing and experimenting. -If you want to port some data from Steem main network you can use [Tinman](https://github.com/steemit/tinman), also developed by Steemit, to help with taking snapshots of the main network. +If you want to port some data from Hive main network you can use [Tinman](https://github.com/steemit/tinman), also developed by Hive, to help with taking snapshots of the main network. #### Custom live testnet diff --git a/_tutorials-javascript/account_reputation.md b/_tutorials-javascript/account_reputation.md index 3e611000..ece2d21d 100644 --- a/_tutorials-javascript/account_reputation.md +++ b/_tutorials-javascript/account_reputation.md @@ -10,11 +10,11 @@ canonical_url: account_reputation.html -This tutorial runs on the main Steem blockchain. And accounts queried are real users with reputation. +This tutorial runs on the main Hive blockchain. And accounts queried are real users with reputation. ## Intro -This tutorial will show the method of capturing a queried tag name and matching it to the Steem. We are using the `call` function provided by the `dsteem` library to pull accounts from the Steem blockchain. A simple HTML interface is used to both capture the string query as well as display the completed search. +This tutorial will show the method of capturing a queried tag name and matching it to the Hive. We are using the `call` function provided by the `dsteem` library to pull accounts from the Hive blockchain. A simple HTML interface is used to both capture the string query as well as display the completed search. ## steps @@ -33,9 +33,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); ``` #### 2. Search account <a name="search-account"></a> @@ -56,7 +56,7 @@ In order to get accounts, we run the search with the `search field` and `maximum const _accounts = await client.database.call('lookup_accounts',[accSearch, max]); ``` -The result of the search is an array of accounts. After that we use `get_accounts` to pull account data from Steem. +The result of the search is an array of accounts. After that we use `get_accounts` to pull account data from Hive. ```javascript const acc = await client.database.call('get_accounts',[_accounts]); diff --git a/_tutorials-javascript/blog_feed.md b/_tutorials-javascript/blog_feed.md index e3acfb0a..4376dc46 100644 --- a/_tutorials-javascript/blog_feed.md +++ b/_tutorials-javascript/blog_feed.md @@ -30,7 +30,7 @@ In first couple lines we require package and define connection server: ```javascript const { Client } = require("@hivechain/dhive"); -const client = new Client('https://api.openhive.network'); +const client = new Client('https://api.hive.blog'); ``` #### 2. Query format<a name="Query-format"></a> @@ -138,7 +138,7 @@ The result returned form the service is a `JSON` object with the following prope "parent_author": "", "parent_permlink": "hiveblockchain", "pending_payout_value": "0.000 HBD", - "percent_steem_dollars": 10000, + "percent_hbd": 10000, "permlink": "huobi-global-official-hive-listing-announcement-giveaways-ama-chat-transcripts", "promoted": "0.000 HBD", "reblogged_by": [], diff --git a/_tutorials-javascript/claim_rewards.md b/_tutorials-javascript/claim_rewards.md index 485cb7ed..a883c15d 100644 --- a/_tutorials-javascript/claim_rewards.md +++ b/_tutorials-javascript/claim_rewards.md @@ -1,7 +1,7 @@ --- title: 'JS: Claim Rewards' position: 23 -description: "_Learn how to claim rewards from unclaimed reward balance using Steemconnect as well as client signing method._" +description: "_Learn how to claim rewards from unclaimed reward balance using Hiveconnect as well as client signing method._" layout: full canonical_url: claim_rewards.html --- @@ -10,18 +10,18 @@ canonical_url: claim_rewards.html -This tutorial runs on the main Steem blockchain. And accounts queried are real users with unclaimed balances. +This tutorial runs on the main Hive blockchain. And accounts queried are real users with unclaimed balances. ## Intro -This tutorial will show few functions such as querying account by name and getting unclaimed rewards. We are using the `call` function provided by the `dsteem` library to pull accounts from the Steem blockchain. A simple HTML interface is used to capture the account and its unclaimed balance as well as allowing interactively claim rewards. +This tutorial will show few functions such as querying account by name and getting unclaimed rewards. We are using the `call` function provided by the `dsteem` library to pull accounts from the Hive blockchain. A simple HTML interface is used to capture the account and its unclaimed balance as well as allowing interactively claim rewards. ## Steps 1. [**App setup**](#app-setup) Setup `dsteem` to use the proper connection and network. 2. [**Search account**](#search-account) Get account details after input has account name 3. [**Fill form**](#fill-form) Fill form with account reward balances -4. [**Claim reward**](#claim-reward) Claim reward with Steemconnect or Client signing options +4. [**Claim reward**](#claim-reward) Claim reward with Hiveconnect or Client signing options #### 1. App setup <a name="app-setup"></a> @@ -33,9 +33,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); ``` #### 2. Search account <a name="search-account"></a> @@ -54,20 +54,20 @@ After we fetched account data, we will fill form with reward balance and show cu ```javascript const name = _accounts[0].name; -const reward_steem = _accounts[0].reward_steem_balance.split(' ')[0]; -const reward_sbd = _accounts[0].reward_sbd_balance.split(' ')[0]; -const reward_sp = _accounts[0].reward_vesting_steem.split(' ')[0]; +const reward_hive = _accounts[0].reward_hive_balance.split(' ')[0]; +const reward_hbd = _accounts[0].reward_hbd_balance.split(' ')[0]; +const reward_sp = _accounts[0].reward_vesting_hive.split(' ')[0]; const reward_vests = _accounts[0].reward_vesting_balance.split(' ')[0]; -const unclaimed_balance = `Unclaimed balance for ${name}: ${reward_steem} STEEM, ${reward_sbd} SBD, ${reward_sp} SP = ${reward_vests} VESTS<br/>`; +const unclaimed_balance = `Unclaimed balance for ${name}: ${reward_hive} HIVE, ${reward_hbd} HBD, ${reward_sp} SP = ${reward_vests} VESTS<br/>`; document.getElementById('accList').innerHTML = unclaimed_balance; -document.getElementById('steem').value = reward_steem; -document.getElementById('sbd').value = reward_sbd; +document.getElementById('steem').value = reward_hive; +document.getElementById('hbd').value = reward_hbd; document.getElementById('sp').value = reward_vests; ``` #### 4. Claim reward <a name="claim-reward"></a> -We have 2 options on how to claim rewards. Steemconnect and Client signing options. We generate Steemconnect link to claim rewards, but you can also choose client signing option to claim rewards right inside tutorial. +We have 2 options on how to claim rewards. Hiveconnect and Client signing options. We generate Hiveconnect link to claim rewards, but you can also choose client signing option to claim rewards right inside tutorial. In order to enable client signing, we will generate operation and also show Posting Private key (wif) field to sign transaction right there client side. Below you can see example of operation and signing transaction, after successful operation broadcast result will be shown in user interface. It will be block number that transaction was included. @@ -81,8 +81,8 @@ window.submitTx = async () => { 'claim_reward_balance', { account: document.getElementById('username').value, - reward_steem: document.getElementById('steem').value + ' STEEM', - reward_sbd: document.getElementById('sbd').value + ' SBD', + reward_hive: document.getElementById('steem').value + ' HIVE', + reward_hbd: document.getElementById('hbd').value + ' HBD', reward_vests: document.getElementById('sp').value + ' VESTS', }, ]; diff --git a/_tutorials-javascript/convert_sbd_to_steem.md b/_tutorials-javascript/convert_sbd_to_steem.md index 43c6f8a7..1588d692 100644 --- a/_tutorials-javascript/convert_sbd_to_steem.md +++ b/_tutorials-javascript/convert_sbd_to_steem.md @@ -1,39 +1,39 @@ --- -title: 'JS: Convert Sbd To Steem' +title: 'JS: Convert Hbd To Hive' position: 32 -description: "_How to convert SBD to STEEM for a specified account._" +description: "_How to convert HBD to HIVE for a specified account._" layout: full -canonical_url: convert_sbd_to_steem.html +canonical_url: convert_hbd_to_hive.html --- -<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Convert Sbd To Steem](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/javascript/tutorials/32_convert_sbd_to_steem) can be downloaded as part of: [tutorials/javascript](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/javascript).</span> +<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Convert Hbd To Hive](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/javascript/tutorials/32_convert_hbd_to_hive) can be downloaded as part of: [tutorials/javascript](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/javascript).</span> <br> -This tutorial will take you through the process of checking a specific users' balances and then broadcasting the intended SBD conversion to the blockchain. Demo account information has been provided to assist with the tutorial. This tutorial has been set up for the `testnet` but can be easily be changed for `production`. +This tutorial will take you through the process of checking a specific users' balances and then broadcasting the intended HBD conversion to the blockchain. Demo account information has been provided to assist with the tutorial. This tutorial has been set up for the `testnet` but can be easily be changed for `production`. -It should be noted that the converted STEEM will not be available instantly as it takes 3.5 days for the transaction to be processed. It is also not possible to stop a conversion once initialised. During the 3.5 days for it to be converted and as the conversion price fluctuates you could actually be receiving less STEEM than what you should. Because of this, the method in this tutorial is NOT the preferred or most efficient way of converting SBD to STEEM. This tutorial just illustrates that it can be done in this manner. +It should be noted that the converted HIVE will not be available instantly as it takes 3.5 days for the transaction to be processed. It is also not possible to stop a conversion once initialised. During the 3.5 days for it to be converted and as the conversion price fluctuates you could actually be receiving less HIVE than what you should. Because of this, the method in this tutorial is NOT the preferred or most efficient way of converting HBD to HIVE. This tutorial just illustrates that it can be done in this manner. -There is a marketplace on Steemit that allows you to "sell" your SBD instantly. With this process you can get your STEEM immediately and at the exact price that you expect. The market place is the better way to convert your SBD. [This article](https://steemit.com/steem/@epico/convert-sbd-to-steem-and-steem-power-guide-2017625t103821622z) provides more information on using the market to exchange your SBD to STEEM +There is a marketplace on Hive that allows you to "sell" your HBD instantly. With this process you can get your HIVE immediately and at the exact price that you expect. The market place is the better way to convert your HBD. [This article](https://hive.blog/steem/@epico/convert-hbd-to-steem-and-steem-power-guide-2017625t103821622z) provides more information on using the market to exchange your HBD to HIVE -Steemconnect offers an alternative to converting SBD with a "simple link" solution. Instead of running through a list of operations on your account, you can simply use a link similar to the one below substituting the three parameters for your own details. You will be prompted to enter your username and password before the transaction will be executed. -https://steemconnect.com/sign/convert?owner=username&requestid=1234567&amount=0.000%20SBD +Hiveconnect offers an alternative to converting HBD with a "simple link" solution. Instead of running through a list of operations on your account, you can simply use a link similar to the one below substituting the three parameters for your own details. You will be prompted to enter your username and password before the transaction will be executed. +https://steemconnect.com/sign/convert?owner=username&requestid=1234567&amount=0.000%20HBD This is similar to the steemconnect links that have been covered in previous tutorials. For a list of signing operations that work in this manner you can go to https://v2.steemconnect.com/sign -[This article](https://steemit.com/sbd/@timcliff/how-to-convert-sbd-into-steem-using-steemconnect) has more information on using steemconnect +[This article](https://hive.blog/hbd/@timcliff/how-to-convert-hbd-into-steem-using-steemconnect) has more information on using steemconnect ## Intro -This tutorial uses the `database API` to gather account information for the current SBD and STEEM balances of the specified user. This information is then used to assist the user in completing the conversion request. The values are then captured and the operation is transmitted via the `broadcast` API. The parameters for this `convert` function are: +This tutorial uses the `database API` to gather account information for the current HBD and HIVE balances of the specified user. This information is then used to assist the user in completing the conversion request. The values are then captured and the operation is transmitted via the `broadcast` API. The parameters for this `convert` function are: 1. _owner_ - The account for which the conversion is being done 1. _requestid_ - Integer identifier for tracking the conversion. This needs to be a unique number for a specified user -1. _amount_ - The amount of SBD to withdraw +1. _amount_ - The amount of HBD to withdraw The only other information required is the private active key of the user. ## Steps -1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Steem blockchain +1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Hive blockchain 1. [**User account**](#user) User account is captured and balances displayed 1. [**Input variables**](#input) Collecting the required inputs via an HTML UI 1. [**Broadcast operation**](#broadcast) Broadcasting the operation to the blockchain @@ -44,7 +44,7 @@ As usual, we have a `public/app.js` file which holds the Javascript segment of t ```javascript import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; @@ -56,7 +56,7 @@ Above, we have `dsteem` pointing to the testnet with the proper chainId, address #### 2. User account<a name="user"></a> -The user account is input through the UI. Once entered, the user can select the `search` button to display the SBD and STEEM balances for that account. During this step, a random number is also generated for the `requestid`. This value can be changed to any integer value as long as it is unique for the specific account. If the requestid is duplicated an error to do with "uniqueness constraint" will be displayed in the console. For ease of use values for a demo account has already been entered in the relevant fields once the page loads. +The user account is input through the UI. Once entered, the user can select the `search` button to display the HBD and HIVE balances for that account. During this step, a random number is also generated for the `requestid`. This value can be changed to any integer value as long as it is unique for the specific account. If the requestid is duplicated an error to do with "uniqueness constraint" will be displayed in the console. For ease of use values for a demo account has already been entered in the relevant fields once the page loads. ```javascript window.onload = async () => { @@ -75,10 +75,10 @@ window.submitAcc = async () => { const _account = await client.database.call('get_accounts', [[accSearch]]); console.log(`_account:`, _account); - const availSBD = _account[0].sbd_balance - const availSTEEM = _account[0].balance + const availHBD = _account[0].hbd_balance + const availHIVE = _account[0].balance - const balance = `Available balance: ${availSBD} and ${availSTEEM} <br/>`; + const balance = `Available balance: ${availHBD} and ${availHIVE} <br/>`; document.getElementById('accBalance').innerHTML = balance; //create random number for requestid paramter @@ -102,7 +102,7 @@ const privateKey = PrivateKey.fromString( //get convert amount const quantity = document.getElementById('quantity').value; //create correct format -const convert = quantity.concat(' SBD'); +const convert = quantity.concat(' HBD'); //assign integer value of ID const requestid = parseInt(document.getElementById('requestID').value); ``` @@ -145,7 +145,7 @@ The results of the operation is displayed on the UI along with a block number in ### To run this tutorial 1. `git clone https://gitlab.syncad.com/hive/devportal.git` -1. `cd devportal/tutorials/javascript/32_convert_sbd_to_steem` +1. `cd devportal/tutorials/javascript/32_convert_hbd_to_hive` 1. `npm i` 1. `npm run dev-server` or `npm run start` 1. After a few moments, the server should be running at http://localhost:3000/ diff --git a/_tutorials-javascript/create_account.md b/_tutorials-javascript/create_account.md index 83f14b62..bf864eb8 100644 --- a/_tutorials-javascript/create_account.md +++ b/_tutorials-javascript/create_account.md @@ -1,7 +1,7 @@ --- title: 'JS: Create Account' position: 26 -description: "_Create Steem account using Steemconnect as well as with client-side signing._" +description: "_Create Hive account using Hiveconnect as well as with client-side signing._" layout: full canonical_url: create_account.html --- @@ -10,18 +10,18 @@ canonical_url: create_account.html -This tutorial will show how to search for a valid account name and then create a new account by means of Resource Credits or STEEM. This tutorial runs on the main Steem blockchain so extra care needs to be taken as any operation will affect real accounts. +This tutorial will show how to search for a valid account name and then create a new account by means of Resource Credits or HIVE. This tutorial runs on the main Hive blockchain so extra care needs to be taken as any operation will affect real accounts. ## Intro -This tutorial will show few functions such as querying account by name and check if username is taken or available to register. We are using the `call` function provided by the `dsteem` library to pull account from the Steem blockchain. We then create proper private keys for new account. A simple HTML interface is used to enter payment of account creation fee and create account right inside tutorial. We use the `account_create` function to commit the transaction to the blockchain. This function is used to create what is called a "non-discounted account". This means that the creator account needs to supply the exact `account_creation_fee` in STEEM in order for the transaction to process successfully. Currently this value is set to 3 STEEM. There is a second method of creating accounts using tokens. These are called "discounted accounts". In stead of STEEM, the `account_creation_fee` is paid in RC (resource credits). There are however a limited amount of discounted accounts that can be claimed which is decided upon by the witnesses. This account creation process is done in two steps, first claiming an account and then creating the account. +This tutorial will show few functions such as querying account by name and check if username is taken or available to register. We are using the `call` function provided by the `dsteem` library to pull account from the Hive blockchain. We then create proper private keys for new account. A simple HTML interface is used to enter payment of account creation fee and create account right inside tutorial. We use the `account_create` function to commit the transaction to the blockchain. This function is used to create what is called a "non-discounted account". This means that the creator account needs to supply the exact `account_creation_fee` in HIVE in order for the transaction to process successfully. Currently this value is set to 3 HIVE. There is a second method of creating accounts using tokens. These are called "discounted accounts". In stead of HIVE, the `account_creation_fee` is paid in RC (resource credits). There are however a limited amount of discounted accounts that can be claimed which is decided upon by the witnesses. This account creation process is done in two steps, first claiming an account and then creating the account. ## Steps 1. [**App setup**](#app-setup) Setup `dsteem` to use the proper connection and network. 2. [**Search account**](#search-account) Get account details after input has account name 3. [**Generate private keys**](#generate-keys) Generate proper keys for new account -4. [**Create account**](#create-account) Create account via Client-side or Steemconnect +4. [**Create account**](#create-account) Create account via Client-side or Hiveconnect #### 1. App setup <a name="app-setup"></a> @@ -33,9 +33,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); ``` #### 2. Search account <a name="search-account"></a> @@ -62,7 +62,7 @@ We will then do simple check if account is taken or not. #### 3. Generate private keys <a name="generate-keys"></a> -After we know that account is available to register, we will fill form with password we wish for that account and enter creation fee. Note, that creation fees are "burned" once the new account is created. The creator account wishes to provide the new account with VEST (as per previous account creation process) they can do so by following the `delegate_vesting_shares` process (refer tutorial [#27](https://developers.steem.io/tutorials-javascript/delegate_power)). Irrespective of which account creation method is being followed, the process for generating new accounts keys is the same for both. +After we know that account is available to register, we will fill form with password we wish for that account and enter creation fee. Note, that creation fees are "burned" once the new account is created. The creator account wishes to provide the new account with VEST (as per previous account creation process) they can do so by following the `delegate_vesting_shares` process (refer tutorial [#27](https://developers.hive.io/tutorials-javascript/delegate_power)). Irrespective of which account creation method is being followed, the process for generating new accounts keys is the same for both. ```javascript const username = document.getElementById('username').value; @@ -154,7 +154,7 @@ if (_account[0].pending_claimed_accounts == 0) { 'claim_account', { creator: creator, - fee: '0.000 STEEM', + fee: '0.000 HIVE', extensions: [], } ]; diff --git a/_tutorials-javascript/delegate_power.md b/_tutorials-javascript/delegate_power.md index 8afcccec..613681ee 100644 --- a/_tutorials-javascript/delegate_power.md +++ b/_tutorials-javascript/delegate_power.md @@ -1,7 +1,7 @@ --- title: 'JS: Delegate Power' position: 27 -description: "_Delegate power to other users using Steemconnect or Client-side signing._" +description: "_Delegate power to other users using Hiveconnect or Client-side signing._" layout: full canonical_url: delegate_power.html --- @@ -10,18 +10,18 @@ canonical_url: delegate_power.html -This tutorial runs on the main Steem blockchain. And accounts queried/searched are real accounts with their available VESTS balances and estimated STEEM POWER holdings. +This tutorial runs on the main Hive blockchain. And accounts queried/searched are real accounts with their available VESTS balances and estimated HIVE POWER holdings. ## Intro -This tutorial will show few functions such as querying account by name and getting account vesting balance. We then convert VESTS to STEEM POWER for convenience of user. And allow user to choose portion or all holdings of VESTS to delegate other users. A simple HTML interface is provided to capture the account with search and its VESTS balance as well as allowing interactively delegate. It should be noted that when a delegation is cancelled, the VESTS will only be available again after a 5 day cool-down period. +This tutorial will show few functions such as querying account by name and getting account vesting balance. We then convert VESTS to HIVE POWER for convenience of user. And allow user to choose portion or all holdings of VESTS to delegate other users. A simple HTML interface is provided to capture the account with search and its VESTS balance as well as allowing interactively delegate. It should be noted that when a delegation is cancelled, the VESTS will only be available again after a 5 day cool-down period. ## Steps 1. [**App setup**](#app-setup) Setup `dsteem` to use the proper connection and network. 2. [**Search account**](#search-account) Get account details after input has account name 3. [**Calculate and Fill form**](#fill-form) Calculate available vesting shares and Fill form with details -4. [**Delegate power**](#delegate-power) Delegate VESTS with Steemconnect or Client-side signing. +4. [**Delegate power**](#delegate-power) Delegate VESTS with Hiveconnect or Client-side signing. #### 1. App setup <a name="app-setup"></a> @@ -33,9 +33,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); ``` #### 2. Search account <a name="search-account"></a> @@ -50,17 +50,17 @@ After account name field is filled with some name, we do automatic search for ac #### 3. Calculate and Fill form <a name="fill-form"></a> -After we fetched account data, we will fill form with VESTS balance and show current balance details. Note, that in order to get available VESTS balance we will have to check if account is already powering down and how much is powering down, how much of VESTS were delegated out which locks them from being powered down. Available balance will be in `avail` variable, next for convenience of user, we convert available VESTS to STEEM with `getDynamicGlobalProperties` function and fill form fields accordingly. +After we fetched account data, we will fill form with VESTS balance and show current balance details. Note, that in order to get available VESTS balance we will have to check if account is already powering down and how much is powering down, how much of VESTS were delegated out which locks them from being powered down. Available balance will be in `avail` variable, next for convenience of user, we convert available VESTS to HIVE with `getDynamicGlobalProperties` function and fill form fields accordingly. ```javascript const name = _account[0].name; const avail = parseFloat(_account[0].vesting_shares) - (parseFloat(_account[0].to_withdraw) - parseFloat(_account[0].withdrawn)) / 1e6 - parseFloat(_account[0].delegated_vesting_shares); const props = await client.database.getDynamicGlobalProperties(); - const vestSteem = parseFloat(parseFloat(props.total_vesting_fund_steem) * + const vestHive = parseFloat(parseFloat(props.total_vesting_fund_hive) * (parseFloat(avail) / parseFloat(props.total_vesting_shares)),6); - const balance = `Available Vests for ${name}: ${avail} VESTS ~ ${vestSteem} STEEM POWER<br/><br/>`; + const balance = `Available Vests for ${name}: ${avail} VESTS ~ ${vestHive} HIVE POWER<br/><br/>`; document.getElementById('accBalance').innerHTML = balance; document.getElementById('steem').value = avail+' VESTS'; ``` @@ -69,7 +69,7 @@ Once form is filled with maximum available VESTS balance, you can choose portion #### 4. Delegate power <a name="delegate-power"></a> -We have 2 options on how to delegate others. Steemconnect and Client-side signing options. By default we generate Steemconnect link to delegate power (delegate vesting shares), but you can choose client signing option to delegate right inside tutorial, note client-side signing will require Active Private key to perform the operation. +We have 2 options on how to delegate others. Hiveconnect and Client-side signing options. By default we generate Hiveconnect link to delegate power (delegate vesting shares), but you can choose client signing option to delegate right inside tutorial, note client-side signing will require Active Private key to perform the operation. In order to enable client signing, we will generate operation and also show Active Private key (wif) field to sign transaction client side. Below you can see example of operation and signing transaction, after successful operation broadcast result will be shown in user interface. It will be block number that transaction was included. diff --git a/_tutorials-javascript/edit_content_patching.md b/_tutorials-javascript/edit_content_patching.md index 0d26c3d7..ac48944d 100644 --- a/_tutorials-javascript/edit_content_patching.md +++ b/_tutorials-javascript/edit_content_patching.md @@ -1,7 +1,7 @@ --- title: 'JS: Edit Content Patching' position: 12 -description: "_By the end of this tutorial you should know how to patch post edits to Steem._" +description: "_By the end of this tutorial you should know how to patch post edits to Hive._" layout: full canonical_url: edit_content_patching.html --- @@ -10,15 +10,15 @@ canonical_url: edit_content_patching.html -This tutorial will take you through the process of preparing and patching post using the `broadcast.comment` operation. Being able to patch a post is critical to save resources on Steem. +This tutorial will take you through the process of preparing and patching post using the `broadcast.comment` operation. Being able to patch a post is critical to save resources on Hive. ## Intro -Tutorial is demonstrating the typical process of editing content that has been previously posted on the blockchain. Instead of replacing the entire body of the post, the Steem blockchain offers an alternative strategy. In this tutorial, we will focus on properly patching existing content and then broadcasting the patch with a `demo` account on a testnet. +Tutorial is demonstrating the typical process of editing content that has been previously posted on the blockchain. Instead of replacing the entire body of the post, the Hive blockchain offers an alternative strategy. In this tutorial, we will focus on properly patching existing content and then broadcasting the patch with a `demo` account on a testnet. ***Note for long time community members:** Since HF20 even archived content (older than 7 days) can be changed/updated. Editing content will also use less RC (resource credits) than creating new posts entirely.* -We are using the `broadcast.comment` function provided by `dsteem` which generates, signs, and broadcast the transaction to the network. On the Steem platform, posts and comments are all internally stored as a `comment` object, differentiated by whether or not a `parent_author` exists. When there is no `parent_author`, it's a post, when there is, it's a comment. When editing a post, we need to make sure that we don't resubmit the same post over and over again, which will spam the network and adds additional cost to operate the platform. Instead we will use a package called `diff-match-patch`, which allows us to only apply changes and save resources on the Steem platform. +We are using the `broadcast.comment` function provided by `dsteem` which generates, signs, and broadcast the transaction to the network. On the Hive platform, posts and comments are all internally stored as a `comment` object, differentiated by whether or not a `parent_author` exists. When there is no `parent_author`, it's a post, when there is, it's a comment. When editing a post, we need to make sure that we don't resubmit the same post over and over again, which will spam the network and adds additional cost to operate the platform. Instead we will use a package called `diff-match-patch`, which allows us to only apply changes and save resources on the Hive platform. ## Steps diff --git a/_tutorials-javascript/follow_a_user.md b/_tutorials-javascript/follow_a_user.md index 612d4d63..e1b13974 100644 --- a/_tutorials-javascript/follow_a_user.md +++ b/_tutorials-javascript/follow_a_user.md @@ -25,7 +25,7 @@ A simple HTML UI is used to capture the required information, after which the br ## Steps -1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with the Steem blockchain +1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with the Hive blockchain 1. [**Input variables**](#input) Collecting the required inputs via an HTML UI 1. [**Get status**](#status) Get the follow status for the specified author 1. [**Follow operation**](#follow) Execute the `follow` operation @@ -36,7 +36,7 @@ As usual, we have a `public/app.js` file which holds the Javascript segment of t ```javascript import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; diff --git a/_tutorials-javascript/get_account_comments.md b/_tutorials-javascript/get_account_comments.md index 47b0f8af..1c5e3ae6 100644 --- a/_tutorials-javascript/get_account_comments.md +++ b/_tutorials-javascript/get_account_comments.md @@ -30,9 +30,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dhive.Client('https://api.openhive.network'); +const client = new dhive.Client('https://api.hive.blog'); const Remarkable = require('remarkable'); const md = new Remarkable({ html: true, linkify: true }); @@ -70,16 +70,16 @@ The following is an example of the returned object: "virtual_supply":"271970374.699 HIVE", "current_supply":"268140818.508 HIVE", "confidential_supply":"0.000 HIVE", - "current_sbd_supply":"13342173.771 HBD", - "confidential_sbd_supply":"0.000 HBD", - "total_vesting_fund_steem":"191002132.498 HIVE", + "current_hbd_supply":"13342173.771 HBD", + "confidential_hbd_supply":"0.000 HBD", + "total_vesting_fund_hive":"191002132.498 HIVE", "total_vesting_shares":"388786707656.308148 VESTS", - "total_reward_fund_steem":"0.000 HIVE", + "total_reward_fund_hive":"0.000 HIVE", "total_reward_shares2":"0", "pending_rewarded_vesting_shares":"366359809.533218 VESTS", - "pending_rewarded_vesting_steem":"178575.754 HIVE", - "sbd_interest_rate":0, - "sbd_print_rate":10000, + "pending_rewarded_vesting_hive":"178575.754 HIVE", + "hbd_interest_rate":0, + "hbd_print_rate":10000, "maximum_block_size":65536, "current_aslot":22373110, "recent_slots_filled":"340282366920938463463374607431768211455", @@ -124,7 +124,7 @@ The following is an example of the returned object: "root_author":"hiveio", "root_permlink":"devportal-update-3-ux-improvements-more-javascript-tutorials-and-more", "max_accepted_payout":"1000000.000 HBD", - "percent_steem_dollars":10000, + "percent_hbd":10000, "allow_replies":true, "allow_votes":true, "allow_curation_rewards":true, @@ -171,7 +171,7 @@ The following is an example of the returned object: "root_author":"hiveio", "root_permlink":"devportal-update-3-ux-improvements-more-javascript-tutorials-and-more", "max_accepted_payout":"1000000.000 HBD", - "percent_steem_dollars":10000, + "percent_hbd":10000, "allow_replies":true, "allow_votes":true, "allow_curation_rewards":true, @@ -205,7 +205,7 @@ The following is an example of the returned object: "median_props":{ "account_creation_fee":"0.100 HIVE", "maximum_block_size":65536, - "sbd_interest_rate":0 + "hbd_interest_rate":0 }, "majority_version":"0.19.3", "max_voted_witnesses":20, diff --git a/_tutorials-javascript/get_account_replies.md b/_tutorials-javascript/get_account_replies.md index d7ec6dd5..01ab51af 100644 --- a/_tutorials-javascript/get_account_replies.md +++ b/_tutorials-javascript/get_account_replies.md @@ -31,9 +31,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dhive.Client('https://api.openhive.network'); +const client = new dhive.Client('https://api.hive.blog'); const Remarkable = require('remarkable'); const md = new Remarkable({ html: true, linkify: true }); @@ -72,16 +72,16 @@ Following is example of returned object: "virtual_supply":"271970374.699 HIVE", "current_supply":"268140818.508 HIVE", "confidential_supply":"0.000 HIVE", - "current_sbd_supply":"13342173.771 HBD", - "confidential_sbd_supply":"0.000 HBD", - "total_vesting_fund_steem":"191002132.498 HIVE", + "current_hbd_supply":"13342173.771 HBD", + "confidential_hbd_supply":"0.000 HBD", + "total_vesting_fund_hive":"191002132.498 HIVE", "total_vesting_shares":"388786707656.308148 VESTS", - "total_reward_fund_steem":"0.000 HIVE", + "total_reward_fund_hive":"0.000 HIVE", "total_reward_shares2":"0", "pending_rewarded_vesting_shares":"366359809.533218 VESTS", - "pending_rewarded_vesting_steem":"178575.754 HIVE", - "sbd_interest_rate":0, - "sbd_print_rate":10000, + "pending_rewarded_vesting_hive":"178575.754 HIVE", + "hbd_interest_rate":0, + "hbd_print_rate":10000, "maximum_block_size":65536, "current_aslot":22373110, "recent_slots_filled":"340282366920938463463374607431768211455", @@ -126,7 +126,7 @@ Following is example of returned object: "root_author":"hiveio", "root_permlink":"devportal-update-3-ux-improvements-more-javascript-tutorials-and-more", "max_accepted_payout":"1000000.000 HBD", - "percent_steem_dollars":10000, + "percent_hbd":10000, "allow_replies":true, "allow_votes":true, "allow_curation_rewards":true, @@ -173,7 +173,7 @@ Following is example of returned object: "root_author":"hiveio", "root_permlink":"devportal-update-3-ux-improvements-more-javascript-tutorials-and-more", "max_accepted_payout":"1000000.000 HBD", - "percent_steem_dollars":10000, + "percent_hbd":10000, "allow_replies":true, "allow_votes":true, "allow_curation_rewards":true, @@ -210,7 +210,7 @@ Following is example of returned object: "median_props":{ "account_creation_fee":"0.100 HIVE", "maximum_block_size":65536, - "sbd_interest_rate":0 + "hbd_interest_rate":0 }, "majority_version":"0.19.3", "max_voted_witnesses":20, diff --git a/_tutorials-javascript/get_delegations_by_user.md b/_tutorials-javascript/get_delegations_by_user.md index 949fd004..413df338 100644 --- a/_tutorials-javascript/get_delegations_by_user.md +++ b/_tutorials-javascript/get_delegations_by_user.md @@ -28,7 +28,7 @@ The second function is `getExpiringVestingDelegations` with parameters: ## Steps -1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Steem blockchain +1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Hive blockchain 2. [**Input variables**](#input) Collecting the required inputs via an HTML UI 3. [**Database query**](#query) Sending a query to the blockchain for the user delegations 4. [**Display results**](#display) Display the results of the blockchain query @@ -43,9 +43,9 @@ let opts = {}; //define network parameters opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to a steem node, production in this case -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); ``` Above, we have `dsteem` pointing to the production network with the proper chainId, addressPrefix, and endpoint. diff --git a/_tutorials-javascript/get_follower_and_following_list.md b/_tutorials-javascript/get_follower_and_following_list.md index 6d95154e..7ce34ac0 100644 --- a/_tutorials-javascript/get_follower_and_following_list.md +++ b/_tutorials-javascript/get_follower_and_following_list.md @@ -10,7 +10,7 @@ canonical_url: get_follower_and_following_list.html -This tutorial will take you through the process of calling both the `follower` and `following` functions from the STEEM API. +This tutorial will take you through the process of calling both the `follower` and `following` functions from the HIVE API. ## Intro @@ -25,7 +25,7 @@ A simple HTML interface is used to capture the required information after which ## Steps -1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with the Steem blockchain +1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with the Hive blockchain 2. [**Input variables**](#input) Collecting the required inputs via an HTML UI 3. [**Get followers/following**](#query) Get the followers or users being followed 4. [**Display**](#display) Display the array of results on the UI @@ -40,9 +40,9 @@ let opts = {}; //define network parameters opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to a steem node, production in this case -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); ``` Above, we have `dsteem` pointing to the production network with the proper chainId, addressPrefix, and endpoint. @@ -70,7 +70,7 @@ window.submitFollower = async () => { #### 3. Get followers/following<a name="query"></a> -A list of followers or users being followed is called from the database with the `follow_api` available in the `SteemJS` library. +A list of followers or users being followed is called from the database with the `follow_api` available in the `HiveJS` library. ```javascript //get list of followers diff --git a/_tutorials-javascript/get_post_comments.md b/_tutorials-javascript/get_post_comments.md index 47db6ceb..6f8e9754 100644 --- a/_tutorials-javascript/get_post_comments.md +++ b/_tutorials-javascript/get_post_comments.md @@ -130,7 +130,7 @@ The result is returned from the post content as a `JSON` object with the followi "parent_author": "", "parent_permlink": "hiveblockchain", "pending_payout_value": "0.000 HBD", - "percent_steem_dollars": 10000, + "percent_hbd": 10000, "permlink": "huobi-global-official-hive-listing-announcement-giveaways-ama-chat-transcripts", "promoted": "0.000 HBD", "reblogged_by": [], diff --git a/_tutorials-javascript/get_post_details.md b/_tutorials-javascript/get_post_details.md index 03a8afee..f3e5c0dc 100644 --- a/_tutorials-javascript/get_post_details.md +++ b/_tutorials-javascript/get_post_details.md @@ -130,7 +130,7 @@ The result is returned from the post content as a `JSON` object with the followi "parent_author": "", "parent_permlink": "hiveblockchain", "pending_payout_value": "0.000 HBD", - "percent_steem_dollars": 10000, + "percent_hbd": 10000, "permlink": "huobi-global-official-hive-listing-announcement-giveaways-ama-chat-transcripts", "promoted": "0.000 HBD", "reblogged_by": [], @@ -180,7 +180,7 @@ From this result, you have access to everything associated with the selected pos * `net_votes` - Net positive votes * `root_comment` - ID of the original content. * `max_accepted_payout` - Value of the maximum payout this content will receive. -* `percent_steem_dollars` - The percent of Hive Dollars to key, unkept amounts will be received as HIVE Power. +* `percent_hbd` - The percent of Hive Dollars to key, unkept amounts will be received as HIVE Power. * `allow_replies` - Allows content to disable replies. * `allow_votes` - Allows content to receive votes. * `allow_curation_rewards` - Allows curators of this content receive rewards. diff --git a/_tutorials-javascript/get_posts.md b/_tutorials-javascript/get_posts.md index 8a13863e..e27db6fd 100644 --- a/_tutorials-javascript/get_posts.md +++ b/_tutorials-javascript/get_posts.md @@ -183,7 +183,7 @@ The result returned from the service is a `JSON` list. This is an example list w "parent_author": "", "parent_permlink": "hiveblockchain", "pending_payout_value": "0.000 HBD", - "percent_steem_dollars": 10000, + "percent_hbd": 10000, "permlink": "huobi-global-official-hive-listing-announcement-giveaways-ama-chat-transcripts", "promoted": "0.000 HBD", "reblogged_by": [], diff --git a/_tutorials-javascript/get_state_replacement_api.md b/_tutorials-javascript/get_state_replacement_api.md index a9248a33..acfc202a 100644 --- a/_tutorials-javascript/get_state_replacement_api.md +++ b/_tutorials-javascript/get_state_replacement_api.md @@ -39,19 +39,19 @@ The call `routes` that will be covered are for: "current_witness": "", "total_pow": "18446744073709551615", "num_pow_witnesses": 0, - "virtual_supply": "0.000 STEEM", - "current_supply": "0.000 STEEM", - "confidential_supply": "0.000 STEEM", - "current_sbd_supply": "0.000 STEEM", - "confidential_sbd_supply": "0.000 STEEM", - "total_vesting_fund_steem": "0.000 STEEM", - "total_vesting_shares": "0.000 STEEM", - "total_reward_fund_steem": "0.000 STEEM", + "virtual_supply": "0.000 HIVE", + "current_supply": "0.000 HIVE", + "confidential_supply": "0.000 HIVE", + "current_hbd_supply": "0.000 HIVE", + "confidential_hbd_supply": "0.000 HIVE", + "total_vesting_fund_hive": "0.000 HIVE", + "total_vesting_shares": "0.000 HIVE", + "total_reward_fund_hive": "0.000 HIVE", "total_reward_shares2": "0", - "pending_rewarded_vesting_shares": "0.000 STEEM", - "pending_rewarded_vesting_steem": "0.000 STEEM", - "sbd_interest_rate": 0, - "sbd_print_rate": 10000, + "pending_rewarded_vesting_shares": "0.000 HIVE", + "pending_rewarded_vesting_hive": "0.000 HIVE", + "hbd_interest_rate": 0, + "hbd_print_rate": 10000, "maximum_block_size": 0, "current_aslot": 0, "recent_slots_filled": "0", @@ -79,9 +79,9 @@ The call `routes` that will be covered are for: "miner_weight": 1, "witness_pay_normalization_factor": 25, "median_props": { - "account_creation_fee": "0.000 STEEM", + "account_creation_fee": "0.000 HIVE", "maximum_block_size": 131072, - "sbd_interest_rate": 1000 + "hbd_interest_rate": 1000 }, "majority_version": "0.0.0", "max_voted_witnesses": 19, @@ -89,7 +89,7 @@ The call `routes` that will be covered are for: "max_runner_witnesses": 1, "hardfork_required_witnesses": 17 }, - "feed_price": {"base": "0.000 STEEM", "quote": "0.000 STEEM"}, + "feed_price": {"base": "0.000 HIVE", "quote": "0.000 HIVE"}, "error": "" } ``` @@ -119,7 +119,7 @@ In order to get the full compliment of account information for a specified accou }, "average_bandwidth": 0, "average_market_bandwidth": 0, - "balance": "0.000 STEEM", + "balance": "0.000 HIVE", "can_vote": true, "comment_count": 0, "created": "2016-03-26T08:26:21", @@ -166,24 +166,24 @@ In order to get the full compliment of account information for a specified accou "recovery_account": "steem", "reputation": "", "reset_account": "null", - "reward_sbd_balance": "0.000 SBD", - "reward_steem_balance": "0.000 STEEM", + "reward_hbd_balance": "0.000 HBD", + "reward_hive_balance": "0.000 HIVE", "reward_vesting_balance": "967.889424 VESTS", - "reward_vesting_steem": "0.479 STEEM", - "savings_balance": "0.000 STEEM", - "savings_sbd_balance": "0.000 SBD", - "savings_sbd_last_interest_payment": "1970-01-01T00:00:00", - "savings_sbd_seconds": "0", - "savings_sbd_seconds_last_update": "1970-01-01T00:00:00", + "reward_vesting_hive": "0.479 HIVE", + "savings_balance": "0.000 HIVE", + "savings_hbd_balance": "0.000 HBD", + "savings_hbd_last_interest_payment": "1970-01-01T00:00:00", + "savings_hbd_seconds": "0", + "savings_hbd_seconds_last_update": "1970-01-01T00:00:00", "savings_withdraw_requests": 0, - "sbd_balance": "0.000 SBD", - "sbd_last_interest_payment": "2018-09-08T13:46:15", - "sbd_seconds": "79984344", - "sbd_seconds_last_update": "2018-09-26T17:36:15", + "hbd_balance": "0.000 HBD", + "hbd_last_interest_payment": "2018-09-08T13:46:15", + "hbd_seconds": "79984344", + "hbd_seconds_last_update": "2018-09-26T17:36:15", "tags_usage": [], "to_withdraw": 0, "transfer_history": [], - "vesting_balance": "0.000 STEEM", + "vesting_balance": "0.000 HIVE", "vesting_shares": "26772189.757016 VESTS", "vesting_withdraw_rate": "0.000000 VESTS", "vote_history": [], @@ -206,7 +206,7 @@ In order to get the full compliment of account information for a specified accou databaseAPI.call('get_discussions_by_trending',[{limit:20}]) ``` -While `getState()` truncates the post body at 1024 characters, `getDiscussionsBy` will not truncate the body unless you provide a truncate_body value in the query structure. `getDiscussionsBy` can be executed by trending, created, active, cashout, payout, votes, children, hot, feed, blog or comments. This provides a wide range by which the posts can be called depending on the specific needs. Within the `query` parameter specific tags, filters, authors and permlinks can be provided. The limit can also be increased to a maximum of 100 posts where `getState` is limited to the first 20. You can also refer to the [get post](https://developers.steem.io/tutorials-javascript/get_posts) tutorial for a simplified database call for posts. The detail provided by this statement can be used to track pending payouts, curator rewards and votes for the trending, or specified posts. +While `getState()` truncates the post body at 1024 characters, `getDiscussionsBy` will not truncate the body unless you provide a truncate_body value in the query structure. `getDiscussionsBy` can be executed by trending, created, active, cashout, payout, votes, children, hot, feed, blog or comments. This provides a wide range by which the posts can be called depending on the specific needs. Within the `query` parameter specific tags, filters, authors and permlinks can be provided. The limit can also be increased to a maximum of 100 posts where `getState` is limited to the first 20. You can also refer to the [get post](https://developers.hive.io/tutorials-javascript/get_posts) tutorial for a simplified database call for posts. The detail provided by this statement can be used to track pending payouts, curator rewards and votes for the trending, or specified posts. - Expected result: @@ -229,22 +229,22 @@ While `getState()` truncates the post body at 1024 characters, `getDiscussionsBy "children": 7, "children_abs_rshares": "60493226759117", "created": "2018-09-25T13:52:24", - "curator_payout_value": "0.000 SBD", + "curator_payout_value": "0.000 HBD", "depth": 0, "id": 63318715, "json_metadata": {"tags":[]}, "last_payout": "1970-01-01T00:00:00", "last_update": "2018-09-26T19:17:33", - "max_accepted_payout": "100000.000 SBD", + "max_accepted_payout": "100000.000 HBD", "max_cashout_time": "1969-12-31T23:59:59", "net_rshares": "60411661082705", "net_votes": 179, "parent_author": "", "parent_permlink": "witness-update", - "pending_payout_value": "80.490 SBD", - "percent_steem_dollars": 10000, + "pending_payout_value": "80.490 HBD", + "percent_hbd": 10000, "permlink": "witness-essentials-hf20-ready", - "promoted": "0.000 SBD", + "promoted": "0.000 HBD", "reblogged_by": [], "replies": [], "reward_weight": 10000, @@ -252,8 +252,8 @@ While `getState()` truncates the post body at 1024 characters, `getDiscussionsBy "root_permlink": "witness-essentials-hf20-ready", "root_title": "Witness Essentials: HF20 Ready", "title": "Witness Essentials: HF20 Ready", - "total_payout_value": "0.000 SBD", - "total_pending_payout_value": "0.000 STEEM", + "total_payout_value": "0.000 HBD", + "total_pending_payout_value": "0.000 HIVE", "total_vote_weight": 7795119, "url": "/witness-update/@therealwolf/witness-essentials-hf20-ready", "vote_rshares": "60411661082705" @@ -262,7 +262,7 @@ While `getState()` truncates the post body at 1024 characters, `getDiscussionsBy #### Route: getState('feed_price')<a name="price"></a> -- Purpose: The price feed is used by the Steem blockchain when it calculates how many SBD it owes for its author rewards. It is also used to calculate the worth in $US displayed in the wallet. The price feed is the median price feed of the last 3.5 days of all the top 20 witnesses' price feed. +- Purpose: The price feed is used by the Hive blockchain when it calculates how many HBD it owes for its author rewards. It is also used to calculate the worth in $US displayed in the wallet. The price feed is the median price feed of the last 3.5 days of all the top 20 witnesses' price feed. - Replacement API call: @@ -276,14 +276,14 @@ This provides the same data as `getState` but is executed much faster due to the ```json { - "base": {"amount": 0.887, "symbol": "SBD"}, - "quote": {"amount": 1, "symbol": "STEEM"} + "base": {"amount": 0.887, "symbol": "HBD"}, + "quote": {"amount": 1, "symbol": "HIVE"} } ``` #### Route: getState('props')<a name="props"></a> -- Purpose: Provides detailed information of the block properties. Block number, witness, current STEEM and SBD supply, pending rewards and total vesting fund and shares among others. +- Purpose: Provides detailed information of the block properties. Block number, witness, current HIVE and HBD supply, pending rewards and total vesting fund and shares among others. - Replacement API call: @@ -303,12 +303,12 @@ databaseAPI.getBlock(HeadBlockNum) ```json { "average_block_size":122, - "confidential_sbd_supply":"0.000 SBD", - "confidential_supply":"0.000 STEEM", + "confidential_hbd_supply":"0.000 HBD", + "confidential_supply":"0.000 HIVE", "current_aslot":26372251, "current_reserve_ratio":200000000, - "current_sbd_supply":"14921682.900 SBD", - "current_supply":"277501868.004 STEEM", + "current_hbd_supply":"14921682.900 HBD", + "current_supply":"277501868.004 HIVE", "current_witness":"ausbitbank", "delegation_return_period":432000, "head_block_id":"0190f89c584661d6ffc78e17395df17ea5653197", @@ -319,20 +319,20 @@ databaseAPI.getBlock(HeadBlockNum) "num_pow_witnesses":172, "participation_count":126, "pending_rewarded_vesting_shares":"483834672.069834 VESTS", - "pending_rewarded_vesting_steem":"237227.812 STEEM", + "pending_rewarded_vesting_hive":"237227.812 HIVE", "recent_slots_filled":"340282366911034938426725082362930003967", "reverse_auction_seconds":900, - "sbd_interest_rate":0, - "sbd_print_rate":10000, - "sbd_start_percent":900, - "sbd_stop_percent":1000, + "hbd_interest_rate":0, + "hbd_print_rate":10000, + "hbd_start_percent":900, + "hbd_stop_percent":1000, "time":"2018-09-26T08:52:33", "total_pow":514415, - "total_reward_fund_steem":"0.000 STEEM", + "total_reward_fund_hive":"0.000 HIVE", "total_reward_shares2":"0", - "total_vesting_fund_steem":"196777383.890 STEEM", + "total_vesting_fund_hive":"196777383.890 HIVE", "total_vesting_shares":"397621943253.336916 VESTS", - "virtual_supply":"294324509.379 STEEM", + "virtual_supply":"294324509.379 HIVE", "vote_power_reserve_rate":10 } ``` @@ -357,7 +357,7 @@ The `getTrendingTags` function calls the same information as with `getState` but "name": "life", "net_votes": 54671586, "top_posts": 4996200, - "total_payouts": "61584243.124 SBD", + "total_payouts": "61584243.124 HBD", "trending": "114450355665" } ``` @@ -372,7 +372,7 @@ The `getTrendingTags` function calls the same information as with `getState` but databaseAPI.call('get_trending_tags',[startingValue, limit]) ``` -This information can be gained by the using the same method as for `getState('tags')` and then only displaying the `name` object of the array of tags provided. You can refer to the tutorial [search tags](https://developers.steem.io/tutorials-javascript/search_tags) for a detailed example of this. +This information can be gained by the using the same method as for `getState('tags')` and then only displaying the `name` object of the array of tags provided. You can refer to the tutorial [search tags](https://developers.hive.io/tutorials-javascript/search_tags) for a detailed example of this. - Expected result: @@ -429,9 +429,9 @@ If required you can also call the `median_props` values as standalone via the se "max_runner_witnesses": 1, "max_voted_witnesses": 20, "median_props": { - "account_creation_fee": "3.000 STEEM", + "account_creation_fee": "3.000 HIVE", "maximum_block_size": 65536, - "sbd_interest_rate": 0, + "hbd_interest_rate": 0, "account_subsidy_budget": 797, "account_subsidy_decay": 347321 }, @@ -454,7 +454,7 @@ If required you can also call the `median_props` values as standalone via the se databaseAPI.call('get_witnesses_by_vote',['',limit]) ``` -This detailed information can be used to track the performance of a specific witness when deciding for who to vote or for your own witness statistics. The detail includes the amount of votes, blocks missed and also the SBD exchange rate (feed price) that this witness is reporting. This function calls the info listed according to total votes. +This detailed information can be used to track the performance of a specific witness when deciding for who to vote or for your own witness statistics. The detail includes the amount of votes, blocks missed and also the HBD exchange rate (feed price) that this witness is reporting. This function calls the info listed according to total votes. - Expected result: @@ -467,22 +467,22 @@ This detailed information can be used to track the performance of a specific wit "id": 9493, "last_aslot": 26387405, "last_confirmed_block_num": 26293189, - "last_sbd_exchange_update": "2018-09-26T19:54:36", + "last_hbd_exchange_update": "2018-09-26T19:54:36", "last_work": "0000000048bf77f525731f28db7c1aa9ad853a475ccc78e71ea952a7782e5459", "owner": "gtg", "pow_worker": 0, "props": { - "account_creation_fee": "3.000 STEEM", + "account_creation_fee": "3.000 HIVE", "maximum_block_size": 65536, - "sbd_interest_rate": 0, + "hbd_interest_rate": 0, "account_subsidy_budget": 797, "account_subsidy_decay": 347321 }, "running_version": "0.20.3", - "sbd_exchange_rate": {"base": "0.893 SBD", "quote": "1.000 STEEM"}, + "hbd_exchange_rate": {"base": "0.893 HBD", "quote": "1.000 HIVE"}, "signing_key": "STM5T98tp8jZRbs7zzyCg74o2siqBw2SXxoYaE1MCuwuCPeQwKrju", "total_missed": 535, - "url": "https://steemit.com/witness-category/@gtg/witness-gtg", + "url": "https://hive.blog/witness-category/@gtg/witness-gtg", "virtual_last_update": "376717145948220892034052885", "virtual_position": "240558419146717570415939163840356145056", "virtual_scheduled_time": "376718433464807443533288610", diff --git a/_tutorials-javascript/grant_active_permission.md b/_tutorials-javascript/grant_active_permission.md index 43234b6d..0eaa438a 100644 --- a/_tutorials-javascript/grant_active_permission.md +++ b/_tutorials-javascript/grant_active_permission.md @@ -16,9 +16,9 @@ Providing another user active permission for your account enables them to do fun One of the common practice nowadays is to lend/delegate SP to another account, above same technique can be used to create market around it with minimum 3rd party trust. All your funds stay in your account. You can use/create automated system where you can lease for certain period of time and system can take care of payments and release of delegations (notify clients). Even better, you can use multi-signature feature to establish 100% trust where clients will have to confirm, approve transactions. -Active permissions and authority should be used with utmost care, you don't want to loose your funds. It is really not easy to hack Steem accounts, let alone take control over it. But without careful use (revealing private keys) loosing liquid funds are not that difficult and it takes only couple seconds to do that, keeping most value powered up always helps. +Active permissions and authority should be used with utmost care, you don't want to loose your funds. It is really not easy to hack Hive accounts, let alone take control over it. But without careful use (revealing private keys) loosing liquid funds are not that difficult and it takes only couple seconds to do that, keeping most value powered up always helps. -[this article](https://steemit.com/steem/@good-karma/steem-multi-authority-permissions-and-how-active-authority-works-part-2-f158813ec0ec1) has more detail around active authorities +[this article](https://hive.blog/steem/@good-karma/steem-multi-authority-permissions-and-how-active-authority-works-part-2-f158813ec0ec1) has more detail around active authorities ## Intro @@ -38,7 +38,7 @@ The tutorial is set up with three individual functions for each of the required ## Steps -1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Steem blockchain +1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Hive blockchain 1. [**Input variables**](#input) Collecting the required inputs via an HTML UI. 1. [**Database query**](#query) Sending a query to the blockchain for the active permissions (status) 1. [**Object creation**](#object) Create the array and subsequent data object for the broadcast operation @@ -50,7 +50,7 @@ As usual, we have a `public/app.js` file which holds the Javascript segment of t ```javascript import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; @@ -134,7 +134,7 @@ activeAuth.account_auths.sort(); activeAuth.account_auths.splice(arrayindex, 1); ``` -When adding to the array (creaing permission) it is required to sort the array before we can broadcast. The Steem blockchain does not accept the new fields in the array if it's not alphabetically sorted. +When adding to the array (creaing permission) it is required to sort the array before we can broadcast. The Hive blockchain does not accept the new fields in the array if it's not alphabetically sorted. After the active array has been defined, the broadcast object can be created. This holds all the required information for a successful transaction to be sent to the blockchain. Where there is no change in the authority types, the parameter can be omitted or in the case of required parameters, allocated directly from the database query. ```javascript @@ -174,7 +174,7 @@ client.broadcast.updateAccount(accObj, privateKey).then( The results of the operation is displayed on the UI along with a block number in the console to confirm a successful operation. If you add permission to an account that already has permission, or if your private key has been entered incorrectly, an error of "Missing Active Authority" will be displayed. -Steemconnect offers an alternative to revoking active permission with a "simple link" solution. Instead of running through a list of operations on your account, you can simply use a link similar to the one below. You will be prompted to enter your usename and password and the specified user will have their permissions removed instantly. +Hiveconnect offers an alternative to revoking active permission with a "simple link" solution. Instead of running through a list of operations on your account, you can simply use a link similar to the one below. You will be prompted to enter your usename and password and the specified user will have their permissions removed instantly. https://v2.steemconnect.com/revoke/@username This is similar to the steemconnect links that have been covered in previous tutorials. For a list of signing operations that work in this manner you can go to https://v2.steemconnect.com/sign diff --git a/_tutorials-javascript/grant_posting_permission.md b/_tutorials-javascript/grant_posting_permission.md index f3a7408a..88293a9c 100644 --- a/_tutorials-javascript/grant_posting_permission.md +++ b/_tutorials-javascript/grant_posting_permission.md @@ -32,7 +32,7 @@ The tutorial is set up with three individual functions for each of the required ## Steps -1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Steem blockchain +1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Hive blockchain 2. [**Input variables**](#input) Collecting the required inputs via an HTML UI. 3. [**Database query**](#query) Sending a query to the blockchain for the posting permissions (status) 4. [**Object creation**](#object) Create the array and subsequent data object for the broadcast operation @@ -163,7 +163,7 @@ client.broadcast.updateAccount(accObj, privateKey).then( The results of the operation is displayed on the UI along with a block number in the console to confirm a successful operation. If you add permission to an account that already has permission will display an error of "Missing Active Authority". -Steemconnect offers an alternative to revoking posting permission with a "simple link" solution. Instead of running through a list of opetions on your account, you can simply use a link similar to the one below. You will be prompted to enter your usename and password and the specified user will have their posting permission removed instantly. +Hiveconnect offers an alternative to revoking posting permission with a "simple link" solution. Instead of running through a list of opetions on your account, you can simply use a link similar to the one below. You will be prompted to enter your usename and password and the specified user will have their posting permission removed instantly. https://v2.steemconnect.com/revoke/@username This is similar to the steemconnect links that have been covered in previous tutorials. For a list of signing operations that work in this manner you can go to https://v2.steemconnect.com/sign diff --git a/_tutorials-javascript/power_down.md b/_tutorials-javascript/power_down.md index 820d53cb..e582ad37 100644 --- a/_tutorials-javascript/power_down.md +++ b/_tutorials-javascript/power_down.md @@ -1,7 +1,7 @@ --- title: 'JS: Power Down' position: 25 -description: "_Perform a power down on all or part of an account's VESTS using either Steemconnect or client-side signing._" +description: "_Perform a power down on all or part of an account's VESTS using either Hiveconnect or client-side signing._" layout: full canonical_url: power_down.html --- @@ -10,18 +10,18 @@ canonical_url: power_down.html -This tutorial runs on the main Steem blockchain. Therefore, any accounts used here will affect real funds on the live network. **Use with caution.** +This tutorial runs on the main Hive blockchain. Therefore, any accounts used here will affect real funds on the live network. **Use with caution.** ## Intro -This tutorial will demonstrate a few functions such as querying account by name and determining the vesting balance of the related account. We are using the `call` function provided by the `dsteem` library to pull account data from the Steem blockchain. We then calculate STEEM Power from the VESTS (vesting shares) for the convenience of the user. We will use a simple HTML interface to capture the account and its VESTS. It also has an interactive UI to perform a power down in full or in part. +This tutorial will demonstrate a few functions such as querying account by name and determining the vesting balance of the related account. We are using the `call` function provided by the `dsteem` library to pull account data from the Hive blockchain. We then calculate HIVE Power from the VESTS (vesting shares) for the convenience of the user. We will use a simple HTML interface to capture the account and its VESTS. It also has an interactive UI to perform a power down in full or in part. ## Steps 1. [**App setup**](#app-setup) Setup `dsteem` to use the proper connection and network. 2. [**Search account**](#search-account) Get account details after input has account name 3. [**Calculate and Fill form**](#fill-form) Calculate available vesting shares and fill the form with details -4. [**Power down**](#power-down) Power down VESTS with Steemconnect or client-side signing. +4. [**Power down**](#power-down) Power down VESTS with Hiveconnect or client-side signing. #### 1. App setup <a name="app-setup"></a> @@ -33,9 +33,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); ``` #### 2. Search account <a name="search-account"></a> @@ -58,17 +58,17 @@ Once the account data has been fetched, we will fill the form with VESTS balance Available balance will be in the `avail` variable. -For the convenience of the user, we will convert available VESTS to STEEM with `getDynamicGlobalProperties` function and fill the form fields accordingly. +For the convenience of the user, we will convert available VESTS to HIVE with `getDynamicGlobalProperties` function and fill the form fields accordingly. ```javascript const name = _account[0].name; const avail = parseFloat(_account[0].vesting_shares) - (parseFloat(_account[0].to_withdraw) - parseFloat(_account[0].withdrawn)) / 1e6 - parseFloat(_account[0].delegated_vesting_shares); const props = await client.database.getDynamicGlobalProperties(); - const vestSteem = parseFloat(parseFloat(props.total_vesting_fund_steem) * + const vestHive = parseFloat(parseFloat(props.total_vesting_fund_hive) * (parseFloat(avail) / parseFloat(props.total_vesting_shares)),6); - const balance = `Available Vests for ${name}: ${avail} VESTS ~ ${vestSteem} STEEM POWER<br/><br/>`; + const balance = `Available Vests for ${name}: ${avail} VESTS ~ ${vestHive} HIVE POWER<br/><br/>`; document.getElementById('accBalance').innerHTML = balance; document.getElementById('steem').value = avail+' VESTS'; ``` @@ -77,7 +77,7 @@ Once form is filled with the maximum available VESTS balance, we can choose the #### 4. Power down <a name="power-down"></a> -We have two options on how to Power down: Steemconnect and client-side signing. By default we generate a Steemconnect link to Power down (withdraw vesting), but we can also choose the client signing option to Power down right inside tutorial. **Note:** client-side signing will require Active Private key to perform the operation. +We have two options on how to Power down: Hiveconnect and client-side signing. By default we generate a Hiveconnect link to Power down (withdraw vesting), but we can also choose the client signing option to Power down right inside tutorial. **Note:** client-side signing will require Active Private key to perform the operation. In order to enable client signing, we will generate the operation and also show Active Private key (wif) field to sign transaction right there, client side. diff --git a/_tutorials-javascript/power_up_steem.md b/_tutorials-javascript/power_up_steem.md index 8e6a8d58..d91103a2 100644 --- a/_tutorials-javascript/power_up_steem.md +++ b/_tutorials-javascript/power_up_steem.md @@ -1,27 +1,27 @@ --- -title: 'JS: Power Up Steem' +title: 'JS: Power Up Hive' position: 24 -description: "_Power up an account's Steem using either Steemconnect or a client-side signing._" +description: "_Power up an account's Hive using either Hiveconnect or a client-side signing._" layout: full -canonical_url: power_up_steem.html +canonical_url: power_up_hive.html --- -<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Power Up Steem](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/javascript/tutorials/24_power_up_steem) can be downloaded as part of: [tutorials/javascript](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/javascript).</span> +<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Power Up Hive](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/javascript/tutorials/24_power_up_hive) can be downloaded as part of: [tutorials/javascript](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/javascript).</span> <br> -This tutorial runs on the main Steem blockchain. And accounts queried are real users with liquid STEEM balances. +This tutorial runs on the main Hive blockchain. And accounts queried are real users with liquid HIVE balances. ## Intro -This tutorial will show few functions such as querying account by name and getting account balance. We are using the `call` function provided by the `dsteem` library to pull account from the Steem blockchain. A simple HTML interface is used to capture the account and its STEEM balance as well as allowing interactively power up part or all of STEEM to choose account. +This tutorial will show few functions such as querying account by name and getting account balance. We are using the `call` function provided by the `dsteem` library to pull account from the Hive blockchain. A simple HTML interface is used to capture the account and its HIVE balance as well as allowing interactively power up part or all of HIVE to choose account. ## Steps 1. [**App setup**](#app-setup) Setup `dsteem` to use the proper connection and network. 2. [**Search account**](#search-account) Get account details after input has account name 3. [**Fill form**](#fill-form) Fill form with account reward balances -4. [**Power up**](#power-up) Power up STEEM with Steemconnect or Client-side signing. +4. [**Power up**](#power-up) Power up HIVE with Hiveconnect or Client-side signing. #### 1. App setup <a name="app-setup"></a> @@ -33,9 +33,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); ``` #### 2. Search account <a name="search-account"></a> @@ -50,20 +50,20 @@ After account name field is filled with some name, we do automatic search for ac #### 3. Fill form <a name="fill-form"></a> -After we fetched account data, we will fill form with STEEM balance and show current balance details. +After we fetched account data, we will fill form with HIVE balance and show current balance details. ```javascript const name = _account[0].name; -const steem_balance = _account[0].balance; -const balance = `Available Steem balance for ${name}: ${steem_balance}<br/>`; +const hive_balance = _account[0].balance; +const balance = `Available Hive balance for ${name}: ${hive_balance}<br/>`; document.getElementById('accBalance').innerHTML = balance; -document.getElementById('steem').value = steem_balance; +document.getElementById('steem').value = hive_balance; const receiver = document.getElementById('receiver').value; ``` #### 4. Power up <a name="power-up"></a> -We have 2 options on how to Power up. Steemconnect and Client-side signing options. By default we generate Steemconnect link to Power up (transfer to vesting), but you can use client signing option to Power up right inside tutorial, note client-side signing will require Active private key to perform operation. +We have 2 options on how to Power up. Hiveconnect and Client-side signing options. By default we generate Hiveconnect link to Power up (transfer to vesting), but you can use client signing option to Power up right inside tutorial, note client-side signing will require Active private key to perform operation. In order to enable client signing, we will generate operation and also show Active Private key (wif) field to sign transaction right there client side. Below you can see example of operation and signing transaction, after successful operation broadcast result will be shown in user interface. It will be block number that transaction was included. @@ -102,7 +102,7 @@ That's it! ### To run this tutorial 1. `git clone https://gitlab.syncad.com/hive/devportal.git` -1. `cd devportal/tutorials/javascript/22_power_up_steem` +1. `cd devportal/tutorials/javascript/22_power_up_hive` 1. `npm i` 1. `npm run dev-server` or `npm run start` 1. After a few moments, the server should be running at [http://localhost:3000/](http://localhost:3000/) diff --git a/_tutorials-javascript/reblogging_post.md b/_tutorials-javascript/reblogging_post.md index 14651d26..1d752680 100644 --- a/_tutorials-javascript/reblogging_post.md +++ b/_tutorials-javascript/reblogging_post.md @@ -1,7 +1,7 @@ --- title: 'JS: Reblogging Post' position: 14 -description: "_By the end of this tutorial you should know how to reblog (resteem) a blog from steem_" +description: "_By the end of this tutorial you should know how to reblog (resteem) a blog from hive_" layout: full canonical_url: reblogging_post.html --- @@ -21,7 +21,7 @@ We are using the `client.broadcast` function provided by `dsteem` to reblog the * The author of the post that is being reblogged * The title of the post that is being reblogged -A simple HTML interface is used to capture the required information after which the transaction is submitted. There are two prerequisites within the reblog process in Steem that have to be adhered to, namely, the post must not be older than 7 days, and the post can only be reblogged once by a specific account. The fields have been populated with information to give an example of what it would look like but care has to be taken to provide correct details before the function is executed. +A simple HTML interface is used to capture the required information after which the transaction is submitted. There are two prerequisites within the reblog process in Hive that have to be adhered to, namely, the post must not be older than 7 days, and the post can only be reblogged once by a specific account. The fields have been populated with information to give an example of what it would look like but care has to be taken to provide correct details before the function is executed. This tutorial makes use of the This function is taken from the tutorial [Blog Feed](https://github.com/steemit/devportal-tutorials-js/blob/master/tutorials/01_blog_feed/) to get a list of trending posts. @@ -43,9 +43,9 @@ const dsteem = require('dsteem'); let opts = {}; opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; -//connect to a Steem node. This is currently setup on production, but we recommend using a testnet like https://testnet.steem.vc -const client = new dsteem.Client('https://api.steemit.com', opts); + 'beeab0de00000000000000000000000000000000000000000000000000000000'; +//connect to a Hive node. This is currently setup on production, but we recommend using a testnet like https://testnet.steem.vc +const client = new dsteem.Client('https://api.hive.blog', opts); ``` #### 2. Collecting information<a name="collecting_information"></a> @@ -134,7 +134,7 @@ If the reblog fails the `console.log` will present a long line of error code: There is a line in the error log indicating "Account has already reblogged this post" indicating exactly that. This process can be run until a positive result is found. -It should be noted that reblogging a post does not create a new post on the blockchain but merely shares the post to whomever is following the user doing the reblog. Along with `reblogging` the `custom_json` broadcast operation also includes options for following users and editing blog content. More information on how to use the `broadcast` operation and options surrounding the operation can be found on the Steem [Devportal](https://developers.steem.io/apidefinitions/#apidefinitions-broadcast-ops-comment) +It should be noted that reblogging a post does not create a new post on the blockchain but merely shares the post to whomever is following the user doing the reblog. Along with `reblogging` the `custom_json` broadcast operation also includes options for following users and editing blog content. More information on how to use the `broadcast` operation and options surrounding the operation can be found on the Hive [Devportal](https://developers.hive.io/apidefinitions/#apidefinitions-broadcast-ops-comment) ## To run this tutorial diff --git a/_tutorials-javascript/search_accounts.md b/_tutorials-javascript/search_accounts.md index 3c7bd3f4..92252e07 100644 --- a/_tutorials-javascript/search_accounts.md +++ b/_tutorials-javascript/search_accounts.md @@ -39,9 +39,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); ``` #### 2. **Collecting input variables**<a name="collecting_input_variables"></a> diff --git a/_tutorials-javascript/search_tags.md b/_tutorials-javascript/search_tags.md index 386322ef..5d163007 100644 --- a/_tutorials-javascript/search_tags.md +++ b/_tutorials-javascript/search_tags.md @@ -10,7 +10,7 @@ canonical_url: search_tags.html -This tutorial runs on the main Steem blockchain. +This tutorial runs on the main Hive blockchain. ## Intro @@ -33,9 +33,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); ``` #### 2. Search input <a name="search-input"></a> diff --git a/_tutorials-javascript/set_withdraw_route.md b/_tutorials-javascript/set_withdraw_route.md index 9737cbec..a64f2379 100644 --- a/_tutorials-javascript/set_withdraw_route.md +++ b/_tutorials-javascript/set_withdraw_route.md @@ -10,18 +10,18 @@ canonical_url: set_withdraw_route.html -We will learn how to allocate a percentage for withdrawal to other accounts using Steemconnect as well as with the client-side signing method. This tutorial runs on the main Steem blockchain. Therefore, any accounts used here will affect real funds on the live network. **Use with caution.** +We will learn how to allocate a percentage for withdrawal to other accounts using Hiveconnect as well as with the client-side signing method. This tutorial runs on the main Hive blockchain. Therefore, any accounts used here will affect real funds on the live network. **Use with caution.** ## Intro -This tutorial will demonstrate a few functions such as querying account by name and determining the vesting balance of the related account. This will allow us to set "withdraw routes" to other accounts with a percent selection and auto power up function. This feature is quite useful if you want to withdraw a portion of your STEEM to a separate account or POWER UP other accounts as you withdraw from one account. +This tutorial will demonstrate a few functions such as querying account by name and determining the vesting balance of the related account. This will allow us to set "withdraw routes" to other accounts with a percent selection and auto power up function. This feature is quite useful if you want to withdraw a portion of your HIVE to a separate account or POWER UP other accounts as you withdraw from one account. ## Steps 1. [**App setup**](#app-setup) Setup `dsteem` to use the proper connection and network. 2. [**Get account routes**](#search-account) Get account's current routes 3. [**Fill form**](#fill-form) Fill form with appropriate data -4. [**Set withdraw route**](#withdraw-route) Set route with Steemconnect or client-side signing +4. [**Set withdraw route**](#withdraw-route) Set route with Hiveconnect or client-side signing #### 1. App setup <a name="app-setup"></a> @@ -33,9 +33,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); ``` #### 2. Get account routes <a name="search-account"></a> @@ -70,7 +70,7 @@ document.getElementById('accInfo').innerHTML = info; Previous routes can be overwritten by changing and submitting a new transaction to the same account. -We also generate a Steemconnect signing link. +We also generate a Hiveconnect signing link. ```javascript window.openSC = async () => { @@ -85,7 +85,7 @@ window.openSC = async () => { #### 4. Set withdraw route <a name="withdraw-route"></a> -We have two options on how to Power down: Steemconnect and client-side signing. Since this action requires Active authority, both client-side and Stemconnect signing will require the Active Private key to sign the transaction. The transaction submission function appears as follows: +We have two options on how to Power down: Hiveconnect and client-side signing. Since this action requires Active authority, both client-side and Stemconnect signing will require the Active Private key to sign the transaction. The transaction submission function appears as follows: ```javascript window.submitTx = async () => { diff --git a/_tutorials-javascript/stream_blockchain_transactions.md b/_tutorials-javascript/stream_blockchain_transactions.md index 438dfcb4..6598a8b1 100644 --- a/_tutorials-javascript/stream_blockchain_transactions.md +++ b/_tutorials-javascript/stream_blockchain_transactions.md @@ -1,7 +1,7 @@ --- title: 'JS: Stream Blockchain Transactions' position: 13 -description: "_By the end of this tutorial you should know how to stream transactions and blocks from Steem blockchain._" +description: "_By the end of this tutorial you should know how to stream transactions and blocks from Hive blockchain._" layout: full canonical_url: stream_blockchain_transactions.html --- @@ -14,7 +14,7 @@ This tutorial will take you through the process of preparing and streaming block ## Intro -Tutorial is demonstrating the typical process of streaming blocks on Steem. We will show some information from each block that is being streamed to give you an idea. Each block contains transactions objects as well but we will not show each of this data in user interface. +Tutorial is demonstrating the typical process of streaming blocks on Hive. We will show some information from each block that is being streamed to give you an idea. Each block contains transactions objects as well but we will not show each of this data in user interface. We are using the `blockchain.getBlockStream` function provided by `dsteem` which returns each block after it has been accepted by witnesses. By default it follows irreversible blocks which was accepted by all witnesses. Function follows or gets blocks every 3 seconds so it would not miss any new blocks. We will then extract part of this data and show it in list. @@ -36,10 +36,10 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); ``` Above, we have `dsteem` pointing to the live network with the proper chainId, addressPrefix, and endpoint. Because this tutorial requires active transactions to see some data. diff --git a/_tutorials-javascript/submit_comment_reply.md b/_tutorials-javascript/submit_comment_reply.md index 7cd57ebc..dc2f39e9 100644 --- a/_tutorials-javascript/submit_comment_reply.md +++ b/_tutorials-javascript/submit_comment_reply.md @@ -1,7 +1,7 @@ --- title: 'JS: Submit Comment Reply' position: 11 -description: "_By the end of this tutorial you should know how to post a simple comment to Steem._" +description: "_By the end of this tutorial you should know how to post a simple comment to Hive._" layout: full canonical_url: submit_comment_reply.html --- @@ -11,15 +11,15 @@ canonical_url: submit_comment_reply.html This tutorial will take you through the process of preparing and posting comment using the `broadcast.comment` operation. -Being able to post a comment is critical to most social applications built on Steem. +Being able to post a comment is critical to most social applications built on Hive. ## Intro -We are using the `broadcast.comment` function provided by the `dsteem` library which generates, signs, and broadcasts the transaction to the network. On the Steem platform, posts and comments are all internally stored as a `comment` object, differentiated by whether or not a `parent_author` exists. When there is no `parent_author`, the it's a post, when there is, it's a comment. An account can broadcast a comment on the blockchain every 3 seconds (with every new block) enabling the user to comment as they wish with almost no wait time between commits. +We are using the `broadcast.comment` function provided by the `dsteem` library which generates, signs, and broadcasts the transaction to the network. On the Hive platform, posts and comments are all internally stored as a `comment` object, differentiated by whether or not a `parent_author` exists. When there is no `parent_author`, the it's a post, when there is, it's a comment. An account can broadcast a comment on the blockchain every 3 seconds (with every new block) enabling the user to comment as they wish with almost no wait time between commits. ## Steps -1. [**App setup**](#app-setup) Import `dsteem` into `app.js` and prepare it to communicate with a Steem blockchain +1. [**App setup**](#app-setup) Import `dsteem` into `app.js` and prepare it to communicate with a Hive blockchain 1. [**Choose parent post**](#choose-post) Choose a parent post on which to comment. Parse the author and permlink from it. 1. [**Add content**](#add-content) Add `body` content to your comment 1. [**Get comment data**](#get-comment) Collect values from the UI @@ -138,7 +138,7 @@ A successful comment will output something like the following to the console: That's all there is to it. -The `broadcast` operation has more to offer than just committing a post/comment to the blockchain. It provides a mulititude of options that can accompany this commit. The max payout and percent of steem dollars can be set. When authors don't want all of the benifits from a post, they can set the payout factors to zero or beneficiaries can be set to receive part of the rewards. You can also set whether votes are allowed or not. The broadcast to the blockchain can be modified to meet the exact requirements of the author. More information on how to use the `broadcast` operation can be found on the Steem [Devportal](https://developers.steem.io/apidefinitions/#apidefinitions-broadcast-ops-comment) with a list of the available broadcast options under the specific [Appbase API](https://developers.steem.io/apidefinitions/#broadcast_ops_comment_options) +The `broadcast` operation has more to offer than just committing a post/comment to the blockchain. It provides a mulititude of options that can accompany this commit. The max payout and percent of steem dollars can be set. When authors don't want all of the benifits from a post, they can set the payout factors to zero or beneficiaries can be set to receive part of the rewards. You can also set whether votes are allowed or not. The broadcast to the blockchain can be modified to meet the exact requirements of the author. More information on how to use the `broadcast` operation can be found on the Hive [Devportal](https://developers.hive.io/apidefinitions/#apidefinitions-broadcast-ops-comment) with a list of the available broadcast options under the specific [Appbase API](https://developers.hive.io/apidefinitions/#broadcast_ops_comment_options) ### To Run the tutorial diff --git a/_tutorials-javascript/submit_post.md b/_tutorials-javascript/submit_post.md index 8f7578e2..23724dcb 100644 --- a/_tutorials-javascript/submit_post.md +++ b/_tutorials-javascript/submit_post.md @@ -1,7 +1,7 @@ --- title: 'JS: Submit Post' position: 10 -description: "_By the end of this tutorial you should know how to prepare comments for Steem and then submit using the broadcast.comment function._" +description: "_By the end of this tutorial you should know how to prepare comments for Hive and then submit using the broadcast.comment function._" layout: full canonical_url: submit_post.html --- @@ -14,12 +14,12 @@ This tutorial will show the method of properly formatting content followed by br ## Intro -We are using the `client.broadcast.comment` function provided by `dsteem` which generates, signs, and broadcasts the transaction to the network. On the Steem platform, posts and comments are all internally stored as a `comment` object, differentiated by whether or not a `parent_author` exists. When there is no `parent_author`, then it's a post, otherwise it's a comment. +We are using the `client.broadcast.comment` function provided by `dsteem` which generates, signs, and broadcasts the transaction to the network. On the Hive platform, posts and comments are all internally stored as a `comment` object, differentiated by whether or not a `parent_author` exists. When there is no `parent_author`, then it's a post, otherwise it's a comment. ## Steps 1. [**App setup**](#app-setup) Configuration of `dsteem` to use the proper connection and network. -1. [**Fetch Steem Post or Comment data**](#fetch-content) Defining information variables with the `submitpost` function. +1. [**Fetch Hive Post or Comment data**](#fetch-content) Defining information variables with the `submitpost` function. 1. [**Format and Broadcast**](#format-broadcast) Formatting the comments and submitting to the blockchain. #### 1. App setup<a name="app-setup"></a> @@ -38,7 +38,7 @@ opts.chainId = const client = new dsteem.Client('https://testnet.steem.vc', opts); ``` -#### 2. Fetch Steem Post or Comment data<a name="fetch-content"></a> +#### 2. Fetch Hive Post or Comment data<a name="fetch-content"></a> Next, we have the `submitPost` function which executes when the Submit post button is clicked. @@ -109,7 +109,7 @@ Note that the `parent_author` and `parent_permlink` fields are used for replies After the post has been broadcast to the network, we can simply set all the fields to empty strings and show the post link to check it from a condenser instance running on the selected testnet. -The `broadcast` operation has more to offer than just committing a post/comment to the blockchain. It provides a mulititude of options that can accompany this commit. The max payout and percent of steem dollars can be set. When authors don't want all of the benifits from a post, they can set the payout factors to zero or beneficiaries can be set to receive part of the rewards. You can also set whether votes are allowed or not. The broadcast to the blockchain can be modified to meet the exact requirements of the author. More information on how to use the `broadcast` operation can be found on the Steem [Devportal](https://developers.steem.io/apidefinitions/#apidefinitions-broadcast-ops-comment) with a list of the available broadcast options under the specific [Appbase API](https://developers.steem.io/apidefinitions/#broadcast_ops_comment_options) +The `broadcast` operation has more to offer than just committing a post/comment to the blockchain. It provides a mulititude of options that can accompany this commit. The max payout and percent of steem dollars can be set. When authors don't want all of the benifits from a post, they can set the payout factors to zero or beneficiaries can be set to receive part of the rewards. You can also set whether votes are allowed or not. The broadcast to the blockchain can be modified to meet the exact requirements of the author. More information on how to use the `broadcast` operation can be found on the Hive [Devportal](https://developers.hive.io/apidefinitions/#apidefinitions-broadcast-ops-comment) with a list of the available broadcast options under the specific [Appbase API](https://developers.hive.io/apidefinitions/#broadcast_ops_comment_options) ### To Run the tutorial diff --git a/_tutorials-javascript/transfer_steem_and_sbd.md b/_tutorials-javascript/transfer_steem_and_sbd.md index 37df7f10..a0cd5617 100644 --- a/_tutorials-javascript/transfer_steem_and_sbd.md +++ b/_tutorials-javascript/transfer_steem_and_sbd.md @@ -1,18 +1,18 @@ --- -title: 'JS: Transfer Steem And Sbd' +title: 'JS: Transfer Hive And Hbd' position: 21 -description: "_Transfer both STEEM and SBD from one account to another._" +description: "_Transfer both HIVE and HBD from one account to another._" layout: full -canonical_url: transfer_steem_and_sbd.html +canonical_url: transfer_hive_and_hbd.html --- -<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Transfer Steem And Sbd](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/javascript/tutorials/21_transfer_steem_and_sbd) can be downloaded as part of: [tutorials/javascript](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/javascript).</span> +<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Transfer Hive And Hbd](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/javascript/tutorials/21_transfer_hive_and_hbd) can be downloaded as part of: [tutorials/javascript](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/javascript).</span> <br> This tutorial will take you through the process of preparing and submitting a `transfer` using the `broadcast` operation. Two demo accounts are provided to use on the `testnet` but all variables can be easily changed and applied to the `production server`. -There is also an alternative method to transfer from one account to another using a `hot signing` link that can be generated via [Steemconnect](https://steemconnect.com/sign/). You create a link using the `to` account, the amount, and a `memo` (optional comments). This [link](https://steemconnect.com/sign/transfer?to=steemitblog&amount=1.000%20STEEM) then allows you to do a transfer simply by adding the login details of the `from` account. This is a very simple way to send a payment request to any other user with the correct details already provided by the link. +There is also an alternative method to transfer from one account to another using a `hot signing` link that can be generated via [Hiveconnect](https://steemconnect.com/sign/). You create a link using the `to` account, the amount, and a `memo` (optional comments). This [link](https://steemconnect.com/sign/transfer?to=steemitblog&amount=1.000%20HIVE) then allows you to do a transfer simply by adding the login details of the `from` account. This is a very simple way to send a payment request to any other user with the correct details already provided by the link. ## Intro @@ -20,16 +20,16 @@ We are using the `broadcast.transfer` function provided by the `dsteem` library 1. _Username_ - The username of the account making the transfer (`from` account) 2. _Privatekey_ - This is the private `active` key of the sender -3. _Recipient_ - The account that is receiving the STEEM or SBD (`to` account) +3. _Recipient_ - The account that is receiving the HIVE or HBD (`to` account) 4. _Memo_ - This is a text field which can be used for a comment on the transfer or it can be left empty -5. _Amount_ - This is the amount of STEEM to transfer. This has to be a positive value with 3 decimals in order for the transaction to be completed -6. _Type_ - This is the currency of the transfer, STEEM or SBD. This value has to be written ALL CAPS in order for the transaction to be completed +5. _Amount_ - This is the amount of HIVE to transfer. This has to be a positive value with 3 decimals in order for the transaction to be completed +6. _Type_ - This is the currency of the transfer, HIVE or HBD. This value has to be written ALL CAPS in order for the transaction to be completed -It is noteworthy that Steem Power (VESTS) cannot be transferred with this operation. +It is noteworthy that Hive Power (VESTS) cannot be transferred with this operation. ## Steps -1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Steem blockchain +1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Hive blockchain 2. [**Input variables**](#input) Collecting the required inputs via an HTML UI 3. [**Object creation**](#object) Creating an object to use in the broadcast operation 4. [**Broadcast**](#broadcast) Broadcasting the transfer to the blockchain @@ -54,7 +54,7 @@ Because this tutorial modifies the blockchain, we will use a testnet and predefi #### 2. Input variables<a name="input"></a> -The required parameters for the transfer operation is recorded via an HTML UI that can be found in the `public/index.html` file. The values are prepopulated in this case with testnet `demo` accounts. The transfer amount is set to `1.000` but any value can be input as long as the sender has enough STEEM to send. +The required parameters for the transfer operation is recorded via an HTML UI that can be found in the `public/index.html` file. The values are prepopulated in this case with testnet `demo` accounts. The transfer amount is set to `1.000` but any value can be input as long as the sender has enough HIVE to send. The parameter values are allocated as seen below, once the user clicks on the "Transfer" button. @@ -124,7 +124,7 @@ client.broadcast.transfer(transf, privateKey).then( ### To run this tutorial 1. `git clone https://gitlab.syncad.com/hive/devportal.git` -2. `cd devportal/tutorials/javascript/20_transfer_STEEM_and_SBD` +2. `cd devportal/tutorials/javascript/20_transfer_HIVE_and_HBD` 3. `npm i` 4. `npm run dev-server` or `npm run start` 5. After a few moments, the server should be running at http://localhost:3000/ diff --git a/_tutorials-javascript/vote_on_content.md b/_tutorials-javascript/vote_on_content.md index a4d630db..590dd7d0 100644 --- a/_tutorials-javascript/vote_on_content.md +++ b/_tutorials-javascript/vote_on_content.md @@ -11,7 +11,7 @@ canonical_url: vote_on_content.html This tutorial will take you through the process of preparing and submitting a `vote` using the `broadcast` operation. -Because this tutorial essentially produces spam, it will be pointed at a Steem testnet. The testnet is an open resource, +Because this tutorial essentially produces spam, it will be pointed at a Hive testnet. The testnet is an open resource, so the default account and posting key in this tutorial may have been changed by another developer learning the ropes. If that happens, you'll want to create a new account on the testnet and use that account's credentials instead. @@ -20,7 +20,7 @@ To learn more about the testnet, including an easy way to create a play account, ## Intro We are using the `broadcast.vote` function provided by the `dsteem` library to send the transaction through to the -network. On the Steem platform, posts and comments are all internally stored as a `comment` object, differentiated by +network. On the Hive platform, posts and comments are all internally stored as a `comment` object, differentiated by whether or not a `parent_author` exists. When there is no `parent_author`, then it's a post, when there is, it's a comment. Voting is done on either of the two based on the author and permlink of the comment. There are 5 parameters required for the voting operation: @@ -31,11 +31,11 @@ required for the voting operation: 1. _Permlink_ - The unique identifier of the comment/post of the author 1. _Weight_ - This is the weight that the vote will carry. The value ranges from -10000 (100% flag) to 10000 (100% upvote) -Due to the low amount of posts on the testnet we added an additional step to create a post before we vote on it. The values are auto loaded in the respective input boxes. A full tutorial on how to create a new post can be found on the [Steem Devportal](https://developers.steem.io/tutorials-javascript/submit_post) +Due to the low amount of posts on the testnet we added an additional step to create a post before we vote on it. The values are auto loaded in the respective input boxes. A full tutorial on how to create a new post can be found on the [Hive Devportal](https://developers.hive.io/tutorials-javascript/submit_post) ## Steps -1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Steem blockchain +1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Hive blockchain 1. [**Create new post**](#createpost) Creating a new post on the testnet 1. [**Input variables**](#input) Collecting the required inputs via an HTML UI 1. [**Broadcast**](#broadcast) Creating an object and broadcasting the vote to the blockchain @@ -46,7 +46,7 @@ As usual, we have a `public/app.js` file which holds the Javascript segment of t ```javascript import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; @@ -79,9 +79,9 @@ window.createPost = async () => { //for content const time = new Date().getTime(); //get title - const title = `developers.steem.io - JS-T:17 ${time}`; + const title = `developers.hive.io - JS-T:17 ${time}`; //get body - const body = `Go to [developers.steem.io](https://developers.steem.io) for the latest in Steem tutorials! This post was created by someone using the active version of those tutorials at [https://github.com/steemit/devportal-tutorials-js](https://github.com/steemit/devportal-tutorials-js) + const body = `Go to [developers.hive.io](https://developers.hive.io) for the latest in Hive tutorials! This post was created by someone using the active version of those tutorials at [https://github.com/steemit/devportal-tutorials-js](https://github.com/steemit/devportal-tutorials-js) ${time}`; //get tags and convert to array list @@ -216,7 +216,7 @@ window.onload = () => { }; ``` -More information on how to use the `broadcast` operation and options surrounding the operation can be found on the [Steem Devportal](https://developers.steem.io/apidefinitions/#broadcast_ops_vote) +More information on how to use the `broadcast` operation and options surrounding the operation can be found on the [Hive Devportal](https://developers.hive.io/apidefinitions/#broadcast_ops_vote) ### To run this tutorial diff --git a/_tutorials-javascript/witness_listing_and_voting.md b/_tutorials-javascript/witness_listing_and_voting.md index ed5f4263..eb4ee551 100644 --- a/_tutorials-javascript/witness_listing_and_voting.md +++ b/_tutorials-javascript/witness_listing_and_voting.md @@ -12,7 +12,7 @@ canonical_url: witness_listing_and_voting.html This tutorial will take you through the process of preparing and submitting a `vote` using the `broadcast` operation. A demo account is provided to use on the `testnet` but all variables can be easily changed and applied to the `production server`. -There is also an alternative method to vote for a witness using a `hot signing` link that can be generated via [Steemconnect](https://steemconnect.com/sign/). You create a link using the `witness` name and the `approve` fields which denotes whether you want to vote for or remove the vote. This [link](https://v2.steemconnect.com/sign/account-witness-vote?witness=grg&approve=approve) then allows you to vote simply by signing in with your account details. This is a very simple way to send a vote request to any other user with the correct details already provided by the link. +There is also an alternative method to vote for a witness using a `hot signing` link that can be generated via [Hiveconnect](https://steemconnect.com/sign/). You create a link using the `witness` name and the `approve` fields which denotes whether you want to vote for or remove the vote. This [link](https://v2.steemconnect.com/sign/account-witness-vote?witness=grg&approve=approve) then allows you to vote simply by signing in with your account details. This is a very simple way to send a vote request to any other user with the correct details already provided by the link. ## Intro @@ -26,7 +26,7 @@ We are using the `account witness vote` function to create the vote which we the ## Steps -1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Steem blockchain +1. [**Configure connection**](#connection) Configuration of `dsteem` to communicate with a Hive blockchain 1. [**Create witness list**](#createlist) Displaying a list of active witnesses 1. [**Input variables**](#input) Collecting the required inputs via an HTML UI 1. [**Voting status**](#status) Confirming the current vote status for the selected witness @@ -38,7 +38,7 @@ As usual, we have a `public/app.js` file which holds the Javascript segment of t ```javascript import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; //connect to a steem node, testnet in this case diff --git a/_tutorials-python/account_recovery.md b/_tutorials-python/account_recovery.md index 626e4092..7d610ce2 100644 --- a/_tutorials-python/account_recovery.md +++ b/_tutorials-python/account_recovery.md @@ -10,13 +10,13 @@ canonical_url: account_recovery.html -In this tutorial we show you how to request account recovery for a user and also recover that account on the **Steem** blockchain using the [beem-python](https://github.com/holgern/beem) library. +In this tutorial we show you how to request account recovery for a user and also recover that account on the **Hive** blockchain using the [beem-python](https://github.com/holgern/beem) library. The recovery system is used to recover hacked accounts. In the event that you lose your password, your account is lost forever. You must know at least one old password that was used on your account within 30 days. This recovery process can only be executed once an hour. Stolen Account Recovery gives the rightful account owner 30 days to recover their account from the moment the thief changed their owner key. ## Intro -There are two parties involved in recovering an account. The user that requires their account to be recovered, and the recovery account (or trustee) which is the account that created the username on the blockchain. For anyone creating their account through the main Steemit webiste, their recovery account would be Steemit. If however your account was created for you by another user, that user is the one that would have to initialize your account recovery. The recovery account can be changed however to whichever user you require. +There are two parties involved in recovering an account. The user that requires their account to be recovered, and the recovery account (or trustee) which is the account that created the username on the blockchain. For anyone creating their account through the main Hive webiste, their recovery account would be Hive. If however your account was created for you by another user, that user is the one that would have to initialize your account recovery. The recovery account can be changed however to whichever user you require. For this tutorial we are using the `beem-python` library which contains the required functions to execute this recovery process. There are two main sections to this process. Firstly, there is the `request_account_recovery` function where the owner is verified and the intent for account recovery is transmitted to the blockchain. The second part is the actual `recover_account` process. Along with this we also create a complete set of new account keys (posting, active, owner and memo) in order for the account to function properly. If these keys are not generated you will receive an error when trying to log in with your new password: `This password is bound to your account's owner key and can not be used to login to this site. However, you can use it to update your password to obtain a more secure set of keys` @@ -58,7 +58,7 @@ We import the libraries for the application. ```python import beembase from beem.account import Account -from beem import Steem +from beem import Hive from beem.transactionbuilder import TransactionBuilder from beemgraphenebase.account import PasswordKey from beembase.objects import Permission @@ -76,14 +76,14 @@ recovery_account = input('account owner (recovery account): ') recovery_account_private_key = input('account owner private ACTIVE key: ') #connect to production server with active key -s = Steem(node=['https://api.steemit.com'], keys=[recovery_account_private_key]) +s = Hive(node=['https://api.hive.blog'], keys=[recovery_account_private_key]) ``` The new password for the account to be recovered must be at least 32 characters long. #### 2. Owner key creation <a name="owner_key"></a> -Both new and old owner keys are generated from the passwords supplied in the first step. For a more in depth look at creating keys please refer to [this](https://developers.steem.io/tutorials-python/password_key_change) tutorial on changing your password and keys. +Both new and old owner keys are generated from the passwords supplied in the first step. For a more in depth look at creating keys please refer to [this](https://developers.hive.io/tutorials-python/password_key_change) tutorial on changing your password and keys. ```python #create new account owner keys @@ -97,7 +97,7 @@ old_account_owner_private_key_string = str(old_account_owner_private_key) old_account_owner_public_key = str(old_account_owner_private_key.pubkey) ``` -The Steem blockchain knows the history of your account, and every owner key that has ever been used for it. When you enter your recent password, it uses that to generate an owner key that can match up to a previous owner public key on the account. Without that password and owner key, the recovery account can't do anything to recover your account. +The Hive blockchain knows the history of your account, and every owner key that has ever been used for it. When you enter your recent password, it uses that to generate an owner key that can match up to a previous owner public key on the account. Without that password and owner key, the recovery account can't do anything to recover your account. #### 3. Recovery request operation and transmission <a name="recovery_request"></a> @@ -183,7 +183,7 @@ op_account_update_data = { The steem class is initialised once more but with the required WIF for this specific section. This is necessary when different keys are required at various steps. The `recover_account` function is transmitted to the blockchain via the `TransactionBuilder` operation in order to append the new private keys. The operation is then broadcast. ```python -s = Steem(node=['https://api.steemit.com'], keys=[recovery_account_private_key]) +s = Hive(node=['https://api.hive.blog'], keys=[recovery_account_private_key]) op_recover_account = beembase.operations.Recover_account(**op_recover_account_data) @@ -206,7 +206,7 @@ print(result) The same basic process is followed as in the previous step. For this step however we require the new owner private key which is initialised in the steem class. The `TransactionBuilder` operation is used once more for the transmission to the blockchain. ```python -s = Steem(node=['https://api.steemit.com'], keys=[new_account_owner_private_key]) +s = Hive(node=['https://api.hive.blog'], keys=[new_account_owner_private_key]) op_account_update = beembase.operations.Account_update(**op_account_update_data) diff --git a/_tutorials-python/account_reputation.md b/_tutorials-python/account_reputation.md index f9186521..962d86de 100644 --- a/_tutorials-python/account_reputation.md +++ b/_tutorials-python/account_reputation.md @@ -25,17 +25,17 @@ Account reputation is long integer string which requires special function or for In this tutorial we will use 4 packages, `pick` - helps us to select filter interactively. `steem` - steem-python library, interaction with Blockchain. `pprint` - print results in better format and `math` to perform some math calculations. -First we import all libraries and initialize Steem class +First we import all libraries and initialize Hive class ```python import pprint import math from pick import pick - # initialize Steem class - from steem import Steem + # initialize Hive class + from steem import Hive - s = Steem() + s = Hive() ``` #### 2. Account list <a name="account-list"></a> @@ -66,7 +66,7 @@ Next we will define reputation interpreter: ```python def rep_log10(rep): - """Convert raw steemd rep into a UI-ready value centered at 25.""" + """Convert raw hived rep into a UI-ready value centered at 25.""" def log10(string): leading_digits = int(string[0:4]) log = math.log10(leading_digits) + 0.00000001 diff --git a/_tutorials-python/claim_rewards.md b/_tutorials-python/claim_rewards.md index 62768dcf..a0a7c291 100644 --- a/_tutorials-python/claim_rewards.md +++ b/_tutorials-python/claim_rewards.md @@ -10,21 +10,21 @@ canonical_url: claim_rewards.html -In this tutorial we show you how to check the STEEM, SBD and STEEM POWER rewards balances of an account on the **Steem** blockchain, and how to claim either a portion or all of the rewards for an account using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we show you how to check the HIVE, HBD and HIVE POWER rewards balances of an account on the **Hive** blockchain, and how to claim either a portion or all of the rewards for an account using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `claim_reward_balance` method found within the `commit` class in the library. Before we transmit a claim, we use the `get_account` function to check the current rewards balance of the account to see what is available to claim. The `claim` method has 4 parameters: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `claim_reward_balance` method found within the `commit` class in the library. Before we transmit a claim, we use the `get_account` function to check the current rewards balance of the account to see what is available to claim. The `claim` method has 4 parameters: -1. _reward steem_ - The amount of STEEM to claim -1. _reward sbd_ - The amount of SBD to claim -1. _reward vests_ - The amount of VESTS (STEEM POWER) to claim +1. _reward hive_ - The amount of HIVE to claim +1. _reward hbd_ - The amount of HBD to claim +1. _reward vests_ - The amount of VESTS (HIVE POWER) to claim 1. _account_ - The source account for the claim ## Steps 1. [**App setup**](#setup) - Library install and import. Connection to testnet -1. [**User information and steem node**](#userinfo) - Input user information and connection to Steem node +1. [**User information and steem node**](#userinfo) - Input user information and connection to Hive node 1. [**Check reward balance**](#balance) - Check current rewards balances of user account 1. [**Claim commit**](#commit) - Input amount of rewards to claim and commit to blockchain 1. [**Balance update**](#update) - Check new rewards balances after completed claim @@ -44,9 +44,9 @@ import steem from pick import pick from steem.amount import Amount -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } ``` @@ -62,7 +62,7 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node -client = steem.Steem(nodes=['https://testnet.steem.vc'],keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'],keys=[wif]) ``` #### 3. Check reward balance <a name="balance"></a> @@ -77,15 +77,15 @@ if(userinfo is None) : print('Oops. Looks like user ' + username + ' doesn\'t exist on this chain!') exit() -reward_steem = userinfo['reward_steem_balance'] -reward_sbd = userinfo['reward_sbd_balance'] -reward_sp = userinfo['reward_vesting_steem'] +reward_hive = userinfo['reward_hive_balance'] +reward_hbd = userinfo['reward_hbd_balance'] +reward_sp = userinfo['reward_vesting_hive'] reward_vests = userinfo['reward_vesting_balance'] print('Reward Balances:' + '\n' + - 'STEEM: ' + reward_steem + '\n' + - 'SBD: ' + reward_sbd + '\n' + - 'STEEM POWER: ' + reward_sp + '\n' + + 'HIVE: ' + reward_hive + '\n' + + 'HBD: ' + reward_hbd + '\n' + + 'HIVE POWER: ' + reward_sp + '\n' + 'VESTS: ' + reward_vests ) @@ -94,7 +94,7 @@ input('\n' + 'Press enter to continue to claim selection') #### 4. Claim commit <a name="commit"></a> -An option is provided to either claim all rewards at once or to specify specific amounts to be claimed for each individual reward balance. If you are using one of Steemit's demo accounts, please leave some rewards for others to claim! +An option is provided to either claim all rewards at once or to specify specific amounts to be claimed for each individual reward balance. If you are using one of Hive's demo accounts, please leave some rewards for others to claim! ```python #choice of claim @@ -108,29 +108,29 @@ When the option to claim all rewards is selected, the claim parameters are autom ```python #commit claim based on selection if option == 'ALL': - if Amount(reward_steem).amount + Amount(reward_sbd).amount + Amount(reward_vests).amount == 0: + if Amount(reward_hive).amount + Amount(reward_hbd).amount + Amount(reward_vests).amount == 0: print('\n' + 'No rewards to claim') exit() else: - client.claim_reward_balance(reward_steem, reward_sbd, reward_vests, username) + client.claim_reward_balance(reward_hive, reward_hbd, reward_vests, username) print('\n' + 'All reward balances have been claimed. New reward balances are:' + '\n') else: if option == 'CANCEL': print('\n' + 'Operation cancelled') exit() else: - claim_steem = input('\n' + 'Please enter the amount of STEEM to claim: ') + ' STEEM' - claim_sbd = input('Please enter the amount of SBD to claim: ') + ' SBD' + claim_hive = input('\n' + 'Please enter the amount of HIVE to claim: ') + ' HIVE' + claim_hbd = input('Please enter the amount of HBD to claim: ') + ' HBD' claim_vests = input('Please enter the amount of VESTS to claim: ') + ' VESTS' - if Amount(claim_steem).amount + Amount(claim_sbd).amount + Amount(claim_vests).amount == 0: + if Amount(claim_hive).amount + Amount(claim_hbd).amount + Amount(claim_vests).amount == 0: print('\n' + 'Zero values entered, no claim to submit') exit() else: - if claim_steem > reward_steem or claim_sbd > reward_sbd or claim_vests > reward_vests: + if claim_hive > reward_hive or claim_hbd > reward_hbd or claim_vests > reward_vests: print('\n' + 'Requested claim value higher than available rewards') exit() else: - client.claim_reward_balance(claim_steem, claim_sbd, claim_vests, username) + client.claim_reward_balance(claim_hive, claim_hbd, claim_vests, username) print('\n' + 'Claim has been processed. New reward balances are:' + '\n') ``` @@ -147,14 +147,14 @@ input("Press enter for new account balances") userinfo = client.get_account(username) -reward_steem = userinfo['reward_steem_balance'] -reward_sbd = userinfo['reward_sbd_balance'] -reward_sp = userinfo['reward_vesting_steem'] +reward_hive = userinfo['reward_hive_balance'] +reward_hbd = userinfo['reward_hbd_balance'] +reward_sp = userinfo['reward_vesting_hive'] reward_vests = userinfo['reward_vesting_balance'] -print('STEEM: ' + reward_steem + '\n' + - 'SBD: ' + reward_sbd + '\n' + - 'STEEM POWER: ' + reward_sp + '\n' + +print('HIVE: ' + reward_hive + '\n' + + 'HBD: ' + reward_hbd + '\n' + + 'HIVE POWER: ' + reward_sp + '\n' + 'VESTS: ' + reward_vests ) ``` diff --git a/_tutorials-python/convert_sbd_to_steem.md b/_tutorials-python/convert_sbd_to_steem.md index a793e5cc..13035f5e 100644 --- a/_tutorials-python/convert_sbd_to_steem.md +++ b/_tutorials-python/convert_sbd_to_steem.md @@ -1,40 +1,40 @@ --- -title: 'PY: Convert Sbd To Steem' +title: 'PY: Convert Hbd To Hive' position: 32 -description: "How to convert your SBD to STEEM using Python." +description: "How to convert your HBD to HIVE using Python." layout: full -canonical_url: convert_sbd_to_steem.html +canonical_url: convert_hbd_to_hive.html --- -<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Convert Sbd To Steem](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python/tutorials/32_convert_sbd_to_steem) can be downloaded as part of: [tutorials/python](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python).</span> +<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Convert Hbd To Hive](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python/tutorials/32_convert_hbd_to_hive) can be downloaded as part of: [tutorials/python](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python).</span> <br> -In this tutorial we will explain and show you how to convert some or all of your available SBD balance into STEEM on the **Steem** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we will explain and show you how to convert some or all of your available HBD balance into HIVE on the **Hive** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. -It should be noted that the converted STEEM will not be available instantly as it takes 3.5 days for the transaction to be processed. It is also not possible to stop a conversion once initialised. During the 3.5 days for it to be converted and as the conversion price fluctuates you could actually be receiving less STEEM than what you should. Because of this, the method in this tutorial is NOT the preferred or most efficient way of converting SBD to STEEM. This tutorial just illustrates that it can be done in this manner. +It should be noted that the converted HIVE will not be available instantly as it takes 3.5 days for the transaction to be processed. It is also not possible to stop a conversion once initialised. During the 3.5 days for it to be converted and as the conversion price fluctuates you could actually be receiving less HIVE than what you should. Because of this, the method in this tutorial is NOT the preferred or most efficient way of converting HBD to HIVE. This tutorial just illustrates that it can be done in this manner. -There is a marketplace on Steemit that allows you to "sell" your SBD instantly. With this process you can get your STEEM immediately and at the exact price that you expect. The market place is the better way to convert your SBD. [This article](https://steemit.com/steem/@epico/convert-sbd-to-steem-and-steem-power-guide-2017625t103821622z) provides more information on using the market to exchange your SBD to STEEM +There is a marketplace on Hive that allows you to "sell" your HBD instantly. With this process you can get your HIVE immediately and at the exact price that you expect. The market place is the better way to convert your HBD. [This article](https://hive.blog/steem/@epico/convert-hbd-to-steem-and-steem-power-guide-2017625t103821622z) provides more information on using the market to exchange your HBD to HIVE -Steemconnect offers an alternative to converting SBD with a "simple link" solution. Instead of running through a list of operations on your account, you can simply use a link similar to the one below substituting the three parameters for your own details. You will be prompted to enter your username and password before the transaction will be executed. -https://steemconnect.com/sign/convert?owner=username&requestid=1234567&amount=0.000%20SBD +Hiveconnect offers an alternative to converting HBD with a "simple link" solution. Instead of running through a list of operations on your account, you can simply use a link similar to the one below substituting the three parameters for your own details. You will be prompted to enter your username and password before the transaction will be executed. +https://steemconnect.com/sign/convert?owner=username&requestid=1234567&amount=0.000%20HBD This is similar to the steemconnect links that have been covered in previous tutorials. For a list of signing operations that work in this manner you can go to https://v2.steemconnect.com/sign -[This article](https://steemit.com/sbd/@timcliff/how-to-convert-sbd-into-steem-using-steemconnect) has more information on using steemconnect +[This article](https://hive.blog/hbd/@timcliff/how-to-convert-hbd-into-steem-using-steemconnect) has more information on using steemconnect ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `convert` method found within the `commit` class in the library. Before we do the conversion, we check the current balance of the account to check how much SBD is available. This is not strictly necessary as the process will automatically abort with the corresponding error, but it does give some insight into the process as a whole. We use the `get_account` function to check for this. The `convert` method has 3 parameters: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `convert` method found within the `commit` class in the library. Before we do the conversion, we check the current balance of the account to check how much HBD is available. This is not strictly necessary as the process will automatically abort with the corresponding error, but it does give some insight into the process as a whole. We use the `get_account` function to check for this. The `convert` method has 3 parameters: -1. _amount_ - The amount of SBD that will be converted +1. _amount_ - The amount of HBD that will be converted 1. _account_ - The specified user account for the conversion 1. _request-id_ - An identifier for tracking the conversion. This parameter is optional ## Steps 1. [**App setup**](#setup) - Library install and import. Connection to testnet -1. [**User information and steem node**](#userinfo) - Input user information and connection to Steem node -1. [**Check balance**](#balance) - Check current STEEM and SBD balance of user account -1. [**Conversion amount and commit**](#convert) - Input of SBD amount to convert and commit to blockchain +1. [**User information and steem node**](#userinfo) - Input user information and connection to Hive node +1. [**Check balance**](#balance) - Check current HIVE and HBD balance of user account +1. [**Conversion amount and commit**](#convert) - Input of HBD amount to convert and commit to blockchain #### 1. App setup <a name="setup"></a> @@ -48,9 +48,9 @@ We import the libraries and connect to the `testnet`. import steembase import steem -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } ``` @@ -66,7 +66,7 @@ username = input('Enter username: ') #demo account: demo01 wif = input('Enter private ACTIVE key: ') #demo account: 5HxTntgeoLm4trnTz94YBsY6MpAap1qRVXEKsU5n1v2du1gAgVH #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) ``` #### 3. Check balance <a name="balance"></a> @@ -74,12 +74,12 @@ client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) In order to give the user enough information to make the conversion we check the current balance of the account using the `get_account` function. ```python -#get account balance for STEEM and SBD +#get account balance for HIVE and HBD userinfo = client.get_account(username) -total_steem = userinfo['balance'] -total_sbd = userinfo['sbd_balance'] +total_hive = userinfo['balance'] +total_hbd = userinfo['hbd_balance'] -print('CURRENT ACCOUNT BALANCE:' + '\n' + total_steem + '\n' + total_sbd + '\n') +print('CURRENT ACCOUNT BALANCE:' + '\n' + total_hive + '\n' + total_hbd + '\n') ``` The result of the query is displayed in the console/terminal. @@ -90,7 +90,7 @@ The final step before we can commit the transaction to the blockchain is to assi ```python #get recipient name -convert_amount = input('Enter the amount of SBD to convert to STEEM: ') +convert_amount = input('Enter the amount of HBD to convert to HIVE: ') ``` This value must be greater than zero in order for the transaction to execute without any errors. Now that we have all the parameters we can do the actual transmission of the transaction to the blockchain. @@ -99,7 +99,7 @@ This value must be greater than zero in order for the transaction to execute wit #parameters: amount, account, request_id client.convert(float(convert_amount), username) -print('\n' + convert_amount + ' SBD has been converted to STEEM') +print('\n' + convert_amount + ' HBD has been converted to HIVE') ``` If no errors are encountered a simple confirmation is printed on the UI. @@ -107,15 +107,15 @@ If no errors are encountered a simple confirmation is printed on the UI. As an added confirmation we check the balance of the user again and display it on the UI. This is not required at all but it serves as a more definitive confirmation that the conversion has been completed correctly. ```python -#get remaining account balance for STEEM and SBD +#get remaining account balance for HIVE and HBD userinfo = client.get_account(username) -total_steem = userinfo['balance'] -total_sbd = userinfo['sbd_balance'] +total_hive = userinfo['balance'] +total_hbd = userinfo['hbd_balance'] -print('\n' + 'REMAINING ACCOUNT BALANCE:' + '\n' + total_steem + '\n' + total_sbd) +print('\n' + 'REMAINING ACCOUNT BALANCE:' + '\n' + total_hive + '\n' + total_hbd) ``` -The STEEM balance will not yet have been updated as it takes 3.5 days to settle. The SBD will however show the new balance. +The HIVE balance will not yet have been updated as it takes 3.5 days to settle. The HBD will however show the new balance. We encourage users to play around with different values and data types to fully understand how this process works. You can also check the balances and transaction history on the [testnet portal](http://condenser.steem.vc/). @@ -123,7 +123,7 @@ We encourage users to play around with different values and data types to fully 1. [review dev requirements](getting_started.html) 1. `git clone https://gitlab.syncad.com/hive/devportal.git` -1. `cd devportal/tutorials/python/32_convert_sbd_to_steem` +1. `cd devportal/tutorials/python/32_convert_hbd_to_hive` 1. `pip install -r requirements.txt` 1. `python index.py` 1. After a few moments, you should see a prompt for input in terminal screen. diff --git a/_tutorials-python/delegate_power.md b/_tutorials-python/delegate_power.md index ac4b46f8..537d59e7 100644 --- a/_tutorials-python/delegate_power.md +++ b/_tutorials-python/delegate_power.md @@ -1,7 +1,7 @@ --- title: 'PY: Delegate Power' position: 27 -description: "How to delegate or remove delegation of STEEM POWER to another user using Python." +description: "How to delegate or remove delegation of HIVE POWER to another user using Python." layout: full canonical_url: delegate_power.html --- @@ -10,11 +10,11 @@ canonical_url: delegate_power.html -In this tutorial we show you how to delegate a portion of an accounts available VESTS (STEEM POWER) to another user on the **Steem** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we show you how to delegate a portion of an accounts available VESTS (HIVE POWER) to another user on the **Hive** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `delegate_vesting_shares` method found within the `commit` class in the library. When you delegate power you make a portion of your VESTS available to another user. This can empower an application, author, or curator to make higher votes. Before we do the delegation, we use the `get_account` function to check the current VESTS balance of the account to see what is available. This is not strictly necessary but adds to the useability of the process. It should be noted that when a delegation is cancelled the VESTS will only be available again after 7 days. The `delegate_vesting_shares` method has 3 parameters: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `delegate_vesting_shares` method found within the `commit` class in the library. When you delegate power you make a portion of your VESTS available to another user. This can empower an application, author, or curator to make higher votes. Before we do the delegation, we use the `get_account` function to check the current VESTS balance of the account to see what is available. This is not strictly necessary but adds to the useability of the process. It should be noted that when a delegation is cancelled the VESTS will only be available again after 7 days. The `delegate_vesting_shares` method has 3 parameters: 1. _to_account_ - The account we are delegating shares to (delegatee) 1. _vesting_shares_ - The amount of VESTS to delegate. This is required to be a string value @@ -23,7 +23,7 @@ The Steem python library has a built-in function to transmit transactions to the ## Steps 1. [**App setup**](#setup) - Library install and import. Connection to testnet -1. [**User information and steem node**](#userinfo) - Input user information and connection to Steem node +1. [**User information and steem node**](#userinfo) - Input user information and connection to Hive node 1. [**Check balance**](#balance) - Check current VESTS balance of user account 1. [**Delegation amount and commit**](#delegate) - Input delegation amount and commit to blockchain @@ -44,9 +44,9 @@ from pick import pick import pprint from steem.amount import Amount -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } ``` @@ -62,7 +62,7 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) #check valid user userinfo = client.get_account(username) @@ -116,7 +116,7 @@ if(delegatee_userinfo is None) : exit() ``` -Any amount of VESTS delegated to a user will overwrite the amount of VESTS currently delegated to that user. This means that to cancel a delegation we transmit to the blockchain a `vesting_shares` value of zero. The inputs and function execution is based on the users choice. If you are using one of Steemit's demo accounts, please leave some VESTS for others to delegate! +Any amount of VESTS delegated to a user will overwrite the amount of VESTS currently delegated to that user. This means that to cancel a delegation we transmit to the blockchain a `vesting_shares` value of zero. The inputs and function execution is based on the users choice. If you are using one of Hive's demo accounts, please leave some VESTS for others to delegate! ```python if (option == 'DELEGATE POWER') : diff --git a/_tutorials-python/edit_content_patching.md b/_tutorials-python/edit_content_patching.md index e940b813..1d85ddb7 100644 --- a/_tutorials-python/edit_content_patching.md +++ b/_tutorials-python/edit_content_patching.md @@ -10,11 +10,11 @@ canonical_url: edit_content_patching.html -In this tutorial we show you how to patch and update posts/comments on the **Steem** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we show you how to patch and update posts/comments on the **Hive** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -Being able to patch a post is critical to save resources on Steem. The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `diff_match_patch` class for python to create a `patch` for a post or comment. We then use the `post` method found within the `commit` class in the library. It should be noted that comments and new post are both treated as `commit.post` operation with the only difference being that a comment/reply has got an additional parameter containing the `parent post/comment`. There is already a tutorial on how to create a new post so the focus of this tutorial will be on `patching` the content of the post. We will be using a couple of methods within the `diff_match_patch` class. +Being able to patch a post is critical to save resources on Hive. The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `diff_match_patch` class for python to create a `patch` for a post or comment. We then use the `post` method found within the `commit` class in the library. It should be noted that comments and new post are both treated as `commit.post` operation with the only difference being that a comment/reply has got an additional parameter containing the `parent post/comment`. There is already a tutorial on how to create a new post so the focus of this tutorial will be on `patching` the content of the post. We will be using a couple of methods within the `diff_match_patch` class. `diff_main` - This compares two text fields to find the differences. `diff_cleanupSemantic` - This reduces the number of edits by eliminating semantically trivial equalities. @@ -25,7 +25,7 @@ Being able to patch a post is critical to save resources on Steem. The Steem pyt ## Steps 1. [**App setup**](#setup) - Library install and import. Connection to testnet -1. [**User information and steem node**](#userinfo) - Input user information and connection to Steem node +1. [**User information and steem node**](#userinfo) - Input user information and connection to Hive node 1. [**Post to update**](#post) - Input and retrieve post information 1. [**Patching**](#patch) - Create the patch to update the post 1. [**New post commit**](#commit) - Commit the post to the blockchain @@ -44,9 +44,9 @@ import steembase import steem from diff_match_patch import diff_match_patch -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } ``` @@ -62,7 +62,7 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private POSTING key: ') #demo account: 5JEZ1EiUjFKfsKP32b15Y7jybjvHQPhnvCYZ9BW62H1LDUnMvHz #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) ``` #### 3. Post to update <a name="post"></a> diff --git a/_tutorials-python/follow_a_user.md b/_tutorials-python/follow_a_user.md index 8227c431..cfb84771 100644 --- a/_tutorials-python/follow_a_user.md +++ b/_tutorials-python/follow_a_user.md @@ -10,11 +10,11 @@ canonical_url: follow_a_user.html -In this tutorial we will explain and show you how to follow or unfollow any author on the **Steem** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we will explain and show you how to follow or unfollow any author on the **Hive** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `follow` and `unfollow` methods found within the `commit` class in the the library. Before we can follow/unfollow we first have to check what the current 'follow status' is of the author. We use another function for this which is explained in the tutorial entitled `get_following_and_follower_list`. There are 3 parameters within the `follow/unfollow` methods: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `follow` and `unfollow` methods found within the `commit` class in the the library. Before we can follow/unfollow we first have to check what the current 'follow status' is of the author. We use another function for this which is explained in the tutorial entitled `get_following_and_follower_list`. There are 3 parameters within the `follow/unfollow` methods: 1. _follow/unfollow_ - The name of the author that will be followed/unfollowed 1. _what_ - The list of states to be followed. Currently this defaults to `blog` as it's the only option available on the block chain at this stage @@ -23,7 +23,7 @@ The Steem python library has a built-in function to transmit transactions to the ## Steps 1. [**App setup**](#setup) - Library install and import. Connection to testnet -1. [**User information and steem node**](#userinfo) - Input user information and connection to Steem node +1. [**User information and steem node**](#userinfo) - Input user information and connection to Hive node 1. [**Check author status**](#authorstat) - Validity check on requested autor to follow 1. [**Follow status**](#followstat) - Check whether specified author is already followed 1. [**Follow/Unfollow commit**](#commit) - Follow/unfollow commit to the blockchain @@ -42,9 +42,9 @@ import steembase import steem from pick import pick -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } ``` @@ -60,7 +60,7 @@ username = input('Please enter your username: ') postingkey = input('Please enter your private posting key: ') #connect node and private posting key, demo account being used: cdemo, posting key: 5JEZ1EiUjFKfsKP32b15Y7jybjvHQPhnvCYZ9BW62H1LDUnMvHz -s = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[postingkey]) +s = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[postingkey]) ``` #### 3. Check author status<a name="authorstat"></a> diff --git a/_tutorials-python/get_account_comments.md b/_tutorials-python/get_account_comments.md index 3ecee6a9..3e399321 100644 --- a/_tutorials-python/get_account_comments.md +++ b/_tutorials-python/get_account_comments.md @@ -10,11 +10,11 @@ canonical_url: get_account_comments.html -In this tutorial will explain and show you how to access the **Steem** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch list of posts to randomize account list and get replies of selected account. +In this tutorial will explain and show you how to access the **Hive** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch list of posts to randomize account list and get replies of selected account. ## Intro -Steem python library has built-in function to get comments list made by specific account. Since we don't have predefined account list, we will fetch newly created posts and show their authors for selection and give option to choose one account to get its comments. `get_discussions_by_comments` function fetches list of comments made by account. Note that `get_discussions_by_created` filter is used for fetching 5 posts and after selection of its author tutorial uses `author` of the post to fetch that account's comments. +Hive python library has built-in function to get comments list made by specific account. Since we don't have predefined account list, we will fetch newly created posts and show their authors for selection and give option to choose one account to get its comments. `get_discussions_by_comments` function fetches list of comments made by account. Note that `get_discussions_by_created` filter is used for fetching 5 posts and after selection of its author tutorial uses `author` of the post to fetch that account's comments. ## Steps @@ -27,15 +27,15 @@ Steem python library has built-in function to get comments list made by specific In this tutorial we use 3 packages, `pick` - helps us to select filter interactively. `steem` - steem-python library, interaction with Blockchain. `pprint` - print results in better format. -First we import all three library and initialize Steem class +First we import all three library and initialize Hive class ```python import pprint from pick import pick - # initialize Steem class - from steem import Steem + # initialize Hive class + from steem import Hive - s = Steem() + s = Hive() ``` #### 2. Post list <a name="post-list"></a> @@ -109,22 +109,22 @@ The example of result returned from the service is a `JSON` object with the foll 'children': 0, 'children_abs_rshares': 0, 'created': '2018-06-21T06:48:57', - 'curator_payout_value': '0.000 SBD', + 'curator_payout_value': '0.000 HBD', 'depth': 1, 'id': 53788647, 'json_metadata': '{"tags":["life"],"app":"steemit/0.1"}', 'last_payout': '1970-01-01T00:00:00', 'last_update': '2018-06-21T06:48:57', - 'max_accepted_payout': '1000000.000 SBD', + 'max_accepted_payout': '1000000.000 HBD', 'max_cashout_time': '1969-12-31T23:59:59', 'net_rshares': 0, 'net_votes': 0, 'parent_author': 'blazing', 'parent_permlink': 'that-extra-push-will-take-you-forward', - 'pending_payout_value': '0.000 SBD', - 'percent_steem_dollars': 10000, + 'pending_payout_value': '0.000 HBD', + 'percent_hbd': 10000, 'permlink': 're-blazing-that-extra-push-will-take-you-forward-20180621t064855012z', - 'promoted': '0.000 SBD', + 'promoted': '0.000 HBD', 'reblogged_by': [], 'replies': [], 'reward_weight': 10000, @@ -132,8 +132,8 @@ The example of result returned from the service is a `JSON` object with the foll 'root_permlink': 'that-extra-push-will-take-you-forward', 'root_title': 'That extra push will take you forward ', 'title': '', - 'total_payout_value': '0.000 SBD', - 'total_pending_payout_value': '0.000 STEEM', + 'total_payout_value': '0.000 HBD', + 'total_pending_payout_value': '0.000 HIVE', 'total_vote_weight': 0, 'url': '/life/@blazing/that-extra-push-will-take-you-forward#@rakibmaruf24/re-blazing-that-extra-push-will-take-you-forward-20180621t064855012z', 'vote_rshares': 0}, @@ -165,22 +165,22 @@ The example of result returned from the service is a `JSON` object with the foll 'children': 1, 'children_abs_rshares': 0, 'created': '2018-06-01T17:56:15', - 'curator_payout_value': '0.018 SBD', + 'curator_payout_value': '0.018 HBD', 'depth': 1, 'id': 51280699, 'json_metadata': '{"tags":["finland"],"app":"steemit/0.1"}', 'last_payout': '2018-06-08T17:56:15', 'last_update': '2018-06-01T17:56:15', - 'max_accepted_payout': '1000000.000 SBD', + 'max_accepted_payout': '1000000.000 HBD', 'max_cashout_time': '1969-12-31T23:59:59', 'net_rshares': 0, 'net_votes': 2, 'parent_author': 'markkujantunen', 'parent_permlink': 'mein-kampf-gegen-den-loewenzahn-my-struggle-against-dandelions', - 'pending_payout_value': '0.000 SBD', - 'percent_steem_dollars': 10000, + 'pending_payout_value': '0.000 HBD', + 'percent_hbd': 10000, 'permlink': 're-markkujantunen-mein-kampf-gegen-den-loewenzahn-my-struggle-against-dandelions-20180601t175605072z', - 'promoted': '0.000 SBD', + 'promoted': '0.000 HBD', 'reblogged_by': [], 'replies': [], 'reward_weight': 10000, @@ -189,8 +189,8 @@ The example of result returned from the service is a `JSON` object with the foll 'root_title': 'Mein Kampf Gegen Den Löwenzahn/My Struggle Against The ' 'Dandelion', 'title': '', - 'total_payout_value': '0.067 SBD', - 'total_pending_payout_value': '0.000 STEEM', + 'total_payout_value': '0.067 HBD', + 'total_pending_payout_value': '0.000 HIVE', 'total_vote_weight': 0, 'url': '/finland/@markkujantunen/mein-kampf-gegen-den-loewenzahn-my-struggle-against-dandelions#@rakibmaruf24/re-markkujantunen-mein-kampf-gegen-den-loewenzahn-my-struggle-against-dandelions-20180601t175605072z', 'vote_rshares': 0} diff --git a/_tutorials-python/get_account_replies.md b/_tutorials-python/get_account_replies.md index afcfcf45..b660f9ae 100644 --- a/_tutorials-python/get_account_replies.md +++ b/_tutorials-python/get_account_replies.md @@ -10,11 +10,11 @@ canonical_url: get_account_replies.html -Tutorial will explain and show you how to access the **Steem** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch a list of comments made on a specific accounts content. +Tutorial will explain and show you how to access the **Hive** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch a list of comments made on a specific accounts content. ## Intro -In Steem there are built-in functions in the official library `steem-python` that we are going to use throughout all Python tutorials. For this one we are using the `get_replies` function. +In Hive there are built-in functions in the official library `steem-python` that we are going to use throughout all Python tutorials. For this one we are using the `get_replies` function. ## Steps @@ -27,15 +27,15 @@ In Steem there are built-in functions in the official library `steem-python` tha In this tutorial we use 3 packages, `pick` - helps us to select filter interactively. `steem` - steem-python library, interaction with Blockchain. `pprint` - print results in better format. -First we import all three library and initialize Steem class +First we import all three library and initialize Hive class ```python import pprint from pick import pick - # initialize Steem class - from steem import Steem + # initialize Hive class + from steem import Hive - s = Steem() + s = Hive() ``` #### 2. Post list <a name="post-list"></a> diff --git a/_tutorials-python/get_delegations_by_user.md b/_tutorials-python/get_delegations_by_user.md index 1e70955c..beb99c4a 100644 --- a/_tutorials-python/get_delegations_by_user.md +++ b/_tutorials-python/get_delegations_by_user.md @@ -10,11 +10,11 @@ canonical_url: get_delegations_by_user.html -In this tutorial we will explain and show you how to pull a list of both active and expiring vesting delegations from the **Steem** blockchain using the `steem` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we will explain and show you how to pull a list of both active and expiring vesting delegations from the **Hive** blockchain using the `steem` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -The Steem python library has a built-in function to pull information from the blockchain. We are using the `get_vesting_delegations` and `get_expiring_vesting_delegations` methods found within the `steem` class in the library. Each of these functions are executed separately. It should be noted that when a delegation is cancelled the VESTS will only be available again after 7 days. The value of the delegation can also be changed at any time, either decreased or increased. To get active delegations we need the following parameters: +The Hive python library has a built-in function to pull information from the blockchain. We are using the `get_vesting_delegations` and `get_expiring_vesting_delegations` methods found within the `steem` class in the library. Each of these functions are executed separately. It should be noted that when a delegation is cancelled the VESTS will only be available again after 7 days. The value of the delegation can also be changed at any time, either decreased or increased. To get active delegations we need the following parameters: 1. _account_ - The user account that the delegation list is being queried for 1. _from-account_ - The account name from where to start the search. This parameter can be left empty to pull a list from the first delegatee @@ -39,11 +39,11 @@ We import the libraries and connect to the `production` server. ```python from pick import pick -from steem import Steem +from steem import Hive import pprint -client = Steem() +client = Hive() ``` `pprint` is used to print the query results in an easier to read format diff --git a/_tutorials-python/get_follower_and_following_list.md b/_tutorials-python/get_follower_and_following_list.md index ff39b6d4..4fb13712 100644 --- a/_tutorials-python/get_follower_and_following_list.md +++ b/_tutorials-python/get_follower_and_following_list.md @@ -10,11 +10,11 @@ canonical_url: get_follower_and_following_list.html -This tutorial will explain and show you how to access the **Steem** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch list of authors being followed or authors that a specified user is following. +This tutorial will explain and show you how to access the **Hive** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch list of authors being followed or authors that a specified user is following. ## Intro -We are using the `get_followers` and `get_following` functions that are built into the official library `steem-python`. These functions allow us to query the Steem blockchain in order to retrieve either a list of authors that are being followed or a list of authors that are currently following a specified user. There are 4 parameters required to execute these functions: +We are using the `get_followers` and `get_following` functions that are built into the official library `steem-python`. These functions allow us to query the Hive blockchain in order to retrieve either a list of authors that are being followed or a list of authors that are currently following a specified user. There are 4 parameters required to execute these functions: 1. _account_ - The specific user for which the follower(ing) list will be retrieved 1. _start follower(ing)_ - The starting letter(s) or name for the search query. This value can be set as an empty string in order to include all authors starting from "a" @@ -32,13 +32,13 @@ We are using the `get_followers` and `get_following` functions that are built in In this tutorial we use 2 packages, `pick` - helps us to select the query type interactively. `steem` - steem-python library, interaction with Blockchain. -First we import both libraries and initialize Steem class +First we import both libraries and initialize Hive class ```python from pick import pick -from steem import Steem +from steem import Hive -s = Steem() +s = Hive() ``` #### 2. Input variables <a name="input"></a> diff --git a/_tutorials-python/get_post_comments.md b/_tutorials-python/get_post_comments.md index c3a845f9..0a7fdc5a 100644 --- a/_tutorials-python/get_post_comments.md +++ b/_tutorials-python/get_post_comments.md @@ -10,11 +10,11 @@ canonical_url: get_post_comments.html -This tutorial will explain and show you how to access the **Steem** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch list of posts and get replies info on selected post. +This tutorial will explain and show you how to access the **Hive** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch list of posts and get replies info on selected post. ## Intro -Steem python library has built-in function to get active voters information if post with author and permlink as an argument. Since we don't have predefined post or author/permlink. We will fetch post list from previous tutorial and give option to choose one post to get its active voters. `get_content_replies` function fetches list of replies on content. Note that `get_discussions_by_hot` filter is used for fetching 5 posts and after selection of post tutorial uses `author` and `permlink` of the post to fetch replies. +Hive python library has built-in function to get active voters information if post with author and permlink as an argument. Since we don't have predefined post or author/permlink. We will fetch post list from previous tutorial and give option to choose one post to get its active voters. `get_content_replies` function fetches list of replies on content. Note that `get_discussions_by_hot` filter is used for fetching 5 posts and after selection of post tutorial uses `author` and `permlink` of the post to fetch replies. ## Steps @@ -27,15 +27,15 @@ Steem python library has built-in function to get active voters information if p In this tutorial we use 3 packages, `pick` - helps us to select filter interactively. `steem` - steem-python library, interaction with Blockchain. `pprint` - print results in better format. -First we import all three library and initialize Steem class +First we import all three library and initialize Hive class ```python import pprint from pick import pick - # initialize Steem class - from steem import Steem + # initialize Hive class + from steem import Hive - s = Steem() + s = Hive() ``` #### 2. Post list <a name="post-list"></a> @@ -104,22 +104,22 @@ The example of result returned from the service is a `JSON` object with the foll 'children': 0, 'children_abs_rshares': 0, 'created': '2018-06-15T10:43:36', - 'curator_payout_value': '0.000 SBD', + 'curator_payout_value': '0.000 HBD', 'depth': 1, 'id': 53110589, 'json_metadata': '{"tags":["fiction"],"users":["sarcasms"],"app":"steemit/0.1"}', 'last_payout': '1970-01-01T00:00:00', 'last_update': '2018-06-15T10:43:36', - 'max_accepted_payout': '1000000.000 SBD', + 'max_accepted_payout': '1000000.000 HBD', 'max_cashout_time': '1969-12-31T23:59:59', 'net_rshares': 0, 'net_votes': 0, 'parent_author': 'muratkbesiroglu', 'parent_permlink': 'short-sci-fi-story-the-android-that-sell-meaning', - 'pending_payout_value': '0.000 SBD', - 'percent_steem_dollars': 10000, + 'pending_payout_value': '0.000 HBD', + 'percent_hbd': 10000, 'permlink': 're-muratkbesiroglu-short-sci-fi-story-the-android-that-sell-meaning-20180615t104323737z', - 'promoted': '0.000 SBD', + 'promoted': '0.000 HBD', 'reblogged_by': [], 'replies': [], 'reward_weight': 10000, @@ -127,8 +127,8 @@ The example of result returned from the service is a `JSON` object with the foll 'root_permlink': 'short-sci-fi-story-the-android-that-sell-meaning', 'root_title': 'Short Sci-Fi Story: The Android That Sell Meaning', 'title': '', - 'total_payout_value': '0.000 SBD', - 'total_pending_payout_value': '0.000 STEEM', + 'total_payout_value': '0.000 HBD', + 'total_pending_payout_value': '0.000 HIVE', 'total_vote_weight': 0, 'url': '/fiction/@muratkbesiroglu/short-sci-fi-story-the-android-that-sell-meaning#@sarcasms/re-muratkbesiroglu-short-sci-fi-story-the-android-that-sell-meaning-20180615t104323737z', 'vote_rshares': 0}, @@ -149,22 +149,22 @@ The example of result returned from the service is a `JSON` object with the foll 'children': 0, 'children_abs_rshares': 0, 'created': '2018-06-15T11:26:15', - 'curator_payout_value': '0.000 SBD', + 'curator_payout_value': '0.000 HBD', 'depth': 1, 'id': 53114015, 'json_metadata': '{"tags":["fiction"],"app":"steemit/0.1"}', 'last_payout': '1970-01-01T00:00:00', 'last_update': '2018-06-15T11:26:15', - 'max_accepted_payout': '1000000.000 SBD', + 'max_accepted_payout': '1000000.000 HBD', 'max_cashout_time': '1969-12-31T23:59:59', 'net_rshares': 0, 'net_votes': 0, 'parent_author': 'muratkbesiroglu', 'parent_permlink': 'short-sci-fi-story-the-android-that-sell-meaning', - 'pending_payout_value': '0.000 SBD', - 'percent_steem_dollars': 10000, + 'pending_payout_value': '0.000 HBD', + 'percent_hbd': 10000, 'permlink': 're-muratkbesiroglu-short-sci-fi-story-the-android-that-sell-meaning-20180615t112615204z', - 'promoted': '0.000 SBD', + 'promoted': '0.000 HBD', 'reblogged_by': [], 'replies': [], 'reward_weight': 10000, @@ -172,8 +172,8 @@ The example of result returned from the service is a `JSON` object with the foll 'root_permlink': 'short-sci-fi-story-the-android-that-sell-meaning', 'root_title': 'Short Sci-Fi Story: The Android That Sell Meaning', 'title': '', - 'total_payout_value': '0.000 SBD', - 'total_pending_payout_value': '0.000 STEEM', + 'total_payout_value': '0.000 HBD', + 'total_pending_payout_value': '0.000 HIVE', 'total_vote_weight': 0, 'url': '/fiction/@muratkbesiroglu/short-sci-fi-story-the-android-that-sell-meaning#@vicky3585/re-muratkbesiroglu-short-sci-fi-story-the-android-that-sell-meaning-20180615t112615204z', 'vote_rshares': 0}] diff --git a/_tutorials-python/get_post_details.md b/_tutorials-python/get_post_details.md index e6ad4622..1143dc3d 100644 --- a/_tutorials-python/get_post_details.md +++ b/_tutorials-python/get_post_details.md @@ -10,11 +10,11 @@ canonical_url: get_post_details.html -We will explain and show you how to access the **Steem** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch list of posts filtered by a _filter_ and _tag_ +We will explain and show you how to access the **Hive** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch list of posts filtered by a _filter_ and _tag_ ## Intro -Steem python library has built-in function to get details of post with author and permlink as an argument. Since we don't have predefined post or author/permlink. We will fetch post list from previous tutorial and give option to choose one option/post to get its details. `get_content` function fetches latest state of the post and delivers its details. Note that `get_discussions_by_created` filter is used for fetching 5 posts which by default contains details of each post, but for purpose of this tutorial we will showcase `get_content` function to fetch details. +Hive python library has built-in function to get details of post with author and permlink as an argument. Since we don't have predefined post or author/permlink. We will fetch post list from previous tutorial and give option to choose one option/post to get its details. `get_content` function fetches latest state of the post and delivers its details. Note that `get_discussions_by_created` filter is used for fetching 5 posts which by default contains details of each post, but for purpose of this tutorial we will showcase `get_content` function to fetch details. ## Steps @@ -27,15 +27,15 @@ Steem python library has built-in function to get details of post with author an In this tutorial we use 3 packages, `pick` - helps us to select filter interactively. `steem` - steem-python library, interaction with Blockchain. `pprint` - print results in better format. -First we import all three library and initialize Steem class +First we import all three library and initialize Hive class ```python import pprint from pick import pick - # initialize Steem class - from steem import Steem + # initialize Hive class + from steem import Hive - s = Steem() + s = Hive() ``` #### 2. Post list <a name="post-list"></a> @@ -92,9 +92,9 @@ The example of result returned from the service is a `JSON` object with the foll "category": "steemit", "parent_author": "", "parent_permlink": "steemit", - "title": "Join Team Steemit at TokenFest!", + "title": "Join Team Hive at TokenFest!", "body": - "<a href=\"https://tokenfest.adria.digital\"><img src=\"https://i.imgur.com/fOScDIW.png\"/></a>\n\nHello Steemians! If you’d like to meet Team Steemit live-in-person, or are just interested in attending what promises to be a great blockchain conference, join us at <a href=\"https://tokenfest.adria.digital/\">TokenFest</a> in San Francisco from March 15th to 16th. \n\nSteemit CEO, Ned Scott, will be participating in a fireside chat alongside Steemit’s CTO, Harry Schmidt, as well as the creator of Utopian.io, Diego Pucci. Steemit will also be hosting the opening party on Thursday night and we’d certainly love to meet as many of you as possible IRL, so head on over to https://tokenfest.adria.digital/ and get your tickets while you can. \n\n*Team Steemit*", + "<a href=\"https://tokenfest.adria.digital\"><img src=\"https://i.imgur.com/fOScDIW.png\"/></a>\n\nHello Hiveians! If you’d like to meet Team Hive live-in-person, or are just interested in attending what promises to be a great blockchain conference, join us at <a href=\"https://tokenfest.adria.digital/\">TokenFest</a> in San Francisco from March 15th to 16th. \n\nHive CEO, Ned Scott, will be participating in a fireside chat alongside Hive’s CTO, Harry Schmidt, as well as the creator of Utopian.io, Diego Pucci. Hive will also be hosting the opening party on Thursday night and we’d certainly love to meet as many of you as possible IRL, so head on over to https://tokenfest.adria.digital/ and get your tickets while you can. \n\n*Team Hive*", "json_metadata": "{\"tags\":[\"steemit\",\"tokenfest\",\"conference\"],\"image\":[\"https://i.imgur.com/fOScDIW.png\"],\"links\":[\"https://tokenfest.adria.digital\",\"https://tokenfest.adria.digital/\"],\"app\":\"steemit/0.1\",\"format\":\"markdown\"}", "last_update": "2018-03-07T23:22:54", @@ -111,21 +111,21 @@ The example of result returned from the service is a `JSON` object with the foll "max_cashout_time": "1969-12-31T23:59:59", "total_vote_weight": 3462435, "reward_weight": 10000, - "total_payout_value": "0.000 SBD", - "curator_payout_value": "0.000 SBD", + "total_payout_value": "0.000 HBD", + "curator_payout_value": "0.000 HBD", "author_rewards": 0, "net_votes": 77, "root_comment": 37338948, - "max_accepted_payout": "0.000 SBD", - "percent_steem_dollars": 10000, + "max_accepted_payout": "0.000 HBD", + "percent_hbd": 10000, "allow_replies": true, "allow_votes": true, "allow_curation_rewards": true, "beneficiaries": [], "url": "/steemit/@steemitblog/join-team-steemit-at-tokenfest", - "root_title": "Join Team Steemit at TokenFest!", - "pending_payout_value": "46.436 SBD", - "total_pending_payout_value": "0.000 STEEM", + "root_title": "Join Team Hive at TokenFest!", + "pending_payout_value": "46.436 HBD", + "total_pending_payout_value": "0.000 HIVE", "active_votes": [ { "voter": "steemitblog", @@ -146,7 +146,7 @@ The example of result returned from the service is a `JSON` object with the foll ], "replies": [], "author_reputation": "128210130644387", - "promoted": "0.000 SBD", + "promoted": "0.000 HBD", "body_length": 754, "reblogged_by": [] } diff --git a/_tutorials-python/get_posts.md b/_tutorials-python/get_posts.md index 72889cbd..3abb4e78 100644 --- a/_tutorials-python/get_posts.md +++ b/_tutorials-python/get_posts.md @@ -10,11 +10,11 @@ canonical_url: get_posts.html -This tutorial will explain and show you how to access the **Steem** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch list of posts filtered by a _filter_ and _tag_ +This tutorial will explain and show you how to access the **Hive** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch list of posts filtered by a _filter_ and _tag_ ## Intro -In Steem there are built-in filters `trending`, `hot`, `created`, `active`, `promoted` etc. which helps us to get list of posts. `get_discussions_by_trending(query)`, `get_discussions_by_hot(query)`, `get_discussions_by_created(query)`, etc. functions are built-in in official library `steem-python` that we are going to use throughout all Python tutorials. +In Hive there are built-in filters `trending`, `hot`, `created`, `active`, `promoted` etc. which helps us to get list of posts. `get_discussions_by_trending(query)`, `get_discussions_by_hot(query)`, `get_discussions_by_created(query)`, etc. functions are built-in in official library `steem-python` that we are going to use throughout all Python tutorials. ## Steps @@ -28,15 +28,15 @@ In Steem there are built-in filters `trending`, `hot`, `created`, `active`, `pro In this tutorial we use 3 packages, `pick` - helps us to select filter interactively. `steem` - steem-python library, interaction with Blockchain. `pprint` - print results in better format. -First we import all three library and initialize Steem class +First we import all three library and initialize Hive class ```python import pprint from pick import pick - # initialize Steem class - from steem import Steem + # initialize Hive class + from steem import Hive - s = Steem() + s = Hive() ``` #### 2. Filters list <a name="filters-list"></a> @@ -55,7 +55,7 @@ This will show us list of filters to select in terminal/command prompt. And afte #### 3. Query details <a name="query-details"></a> -Next we will form a query. In Steem, +Next we will form a query. In Hive, * You can add a tag to filter the posts that you receive from the server * You can also limit the amount of results you would like to receive from the query @@ -97,9 +97,9 @@ The example of result returned from the service is a `JSON` object with the foll "category": "steemit", "parent_author": "", "parent_permlink": "steemit", - "title": "Join Team Steemit at TokenFest!", + "title": "Join Team Hive at TokenFest!", "body": - "<a href=\"https://tokenfest.adria.digital\"><img src=\"https://i.imgur.com/fOScDIW.png\"/></a>\n\nHello Steemians! If you’d like to meet Team Steemit live-in-person, or are just interested in attending what promises to be a great blockchain conference, join us at <a href=\"https://tokenfest.adria.digital/\">TokenFest</a> in San Francisco from March 15th to 16th. \n\nSteemit CEO, Ned Scott, will be participating in a fireside chat alongside Steemit’s CTO, Harry Schmidt, as well as the creator of Utopian.io, Diego Pucci. Steemit will also be hosting the opening party on Thursday night and we’d certainly love to meet as many of you as possible IRL, so head on over to https://tokenfest.adria.digital/ and get your tickets while you can. \n\n*Team Steemit*", + "<a href=\"https://tokenfest.adria.digital\"><img src=\"https://i.imgur.com/fOScDIW.png\"/></a>\n\nHello Hiveians! If you’d like to meet Team Hive live-in-person, or are just interested in attending what promises to be a great blockchain conference, join us at <a href=\"https://tokenfest.adria.digital/\">TokenFest</a> in San Francisco from March 15th to 16th. \n\nHive CEO, Ned Scott, will be participating in a fireside chat alongside Hive’s CTO, Harry Schmidt, as well as the creator of Utopian.io, Diego Pucci. Hive will also be hosting the opening party on Thursday night and we’d certainly love to meet as many of you as possible IRL, so head on over to https://tokenfest.adria.digital/ and get your tickets while you can. \n\n*Team Hive*", "json_metadata": "{\"tags\":[\"steemit\",\"tokenfest\",\"conference\"],\"image\":[\"https://i.imgur.com/fOScDIW.png\"],\"links\":[\"https://tokenfest.adria.digital\",\"https://tokenfest.adria.digital/\"],\"app\":\"steemit/0.1\",\"format\":\"markdown\"}", "last_update": "2018-03-07T23:22:54", @@ -116,21 +116,21 @@ The example of result returned from the service is a `JSON` object with the foll "max_cashout_time": "1969-12-31T23:59:59", "total_vote_weight": 3462435, "reward_weight": 10000, - "total_payout_value": "0.000 SBD", - "curator_payout_value": "0.000 SBD", + "total_payout_value": "0.000 HBD", + "curator_payout_value": "0.000 HBD", "author_rewards": 0, "net_votes": 77, "root_comment": 37338948, - "max_accepted_payout": "0.000 SBD", - "percent_steem_dollars": 10000, + "max_accepted_payout": "0.000 HBD", + "percent_hbd": 10000, "allow_replies": true, "allow_votes": true, "allow_curation_rewards": true, "beneficiaries": [], "url": "/steemit/@steemitblog/join-team-steemit-at-tokenfest", - "root_title": "Join Team Steemit at TokenFest!", - "pending_payout_value": "46.436 SBD", - "total_pending_payout_value": "0.000 STEEM", + "root_title": "Join Team Hive at TokenFest!", + "pending_payout_value": "46.436 HBD", + "total_pending_payout_value": "0.000 HIVE", "active_votes": [ { "voter": "steemitblog", @@ -151,7 +151,7 @@ The example of result returned from the service is a `JSON` object with the foll ], "replies": [], "author_reputation": "128210130644387", - "promoted": "0.000 SBD", + "promoted": "0.000 HBD", "body_length": 754, "reblogged_by": [] }, diff --git a/_tutorials-python/get_voters_list_on_post.md b/_tutorials-python/get_voters_list_on_post.md index 1a45ef24..03fdcda3 100644 --- a/_tutorials-python/get_voters_list_on_post.md +++ b/_tutorials-python/get_voters_list_on_post.md @@ -10,11 +10,11 @@ canonical_url: get_voters_list_on_post.html -Tutorial will explain and show you how to access the **Steem** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch list of posts and get voters info on selected post. +Tutorial will explain and show you how to access the **Hive** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch list of posts and get voters info on selected post. ## Intro -Steem python library has built-in function to get active voters information if post with author and permlink as an argument. Since we don't have predefined post or author/permlink. We will fetch post list from previous tutorial and give option to choose one post to get its active voters. `get_active_votes` function fetches list of active voters on content. Note that `get_discussions_by_active` filter is used for fetching 5 posts which by default contains `active_votes` of each post, but for purpose of this tutorial we will use `get_active_votes` function to fetch voters info. +Hive python library has built-in function to get active voters information if post with author and permlink as an argument. Since we don't have predefined post or author/permlink. We will fetch post list from previous tutorial and give option to choose one post to get its active voters. `get_active_votes` function fetches list of active voters on content. Note that `get_discussions_by_active` filter is used for fetching 5 posts which by default contains `active_votes` of each post, but for purpose of this tutorial we will use `get_active_votes` function to fetch voters info. ## Steps @@ -27,15 +27,15 @@ Steem python library has built-in function to get active voters information if p In this tutorial we use 3 packages, `pick` - helps us to select filter interactively. `steem` - steem-python library, interaction with Blockchain. `pprint` - print results in better format. -First we import all three library and initialize Steem class +First we import all three library and initialize Hive class ```python import pprint from pick import pick - # initialize Steem class - from steem import Steem + # initialize Hive class + from steem import Hive - s = Steem() + s = Hive() ``` #### 2. Post list <a name="post-list"></a> diff --git a/_tutorials-python/getting_started.md b/_tutorials-python/getting_started.md index 4d546bce..8c65f5cc 100644 --- a/_tutorials-python/getting_started.md +++ b/_tutorials-python/getting_started.md @@ -1,7 +1,7 @@ --- title: 'PY: Getting Started' position: 0 -description: "The official Steem library for Python is `steem-python`. It comes with a BIP38 encrypted wallet and a practical CLI utility called `steempy`." +description: "The official Hive library for Python is `steem-python`. It comes with a BIP38 encrypted wallet and a practical CLI utility called `steempy`." layout: full canonical_url: getting_started.html --- diff --git a/_tutorials-python/grant_active_permission.md b/_tutorials-python/grant_active_permission.md index 5abbfde6..1aca3ff7 100644 --- a/_tutorials-python/grant_active_permission.md +++ b/_tutorials-python/grant_active_permission.md @@ -10,19 +10,19 @@ canonical_url: grant_active_permission.html -In this tutorial we show you how to check if someone has got active permission for an account on the **Steem** blockchain and how to grant or revoke that permission using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we show you how to check if someone has got active permission for an account on the **Hive** blockchain and how to grant or revoke that permission using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. Providing another user active permission for your account enables them to do fund transfers from your account. This can be useful in setting up a secondary account(s) to manage funds for a main account or having a backup should you lose passwords for the main account. One of the common practice nowadays is to lend/delegate SP to another account, above same technique can be used to create market around it with minimum 3rd party trust. All your funds stay in your account. You can use/create automated system where you can lease for certain period of time and system can take care of payments and release of delegations (notify clients). Even better, you can use multi-signature feature to establish 100% trust where clients will have to confirm, approve transactions. -Active permissions and authority should be used with utmost care, you don't want to lose your funds. It is really not easy to hack Steem accounts, let alone take control over it. But without careful use (revealing private keys) losing liquid funds are not that difficult and it takes only couple seconds to do that, keeping most value powered up always helps. +Active permissions and authority should be used with utmost care, you don't want to lose your funds. It is really not easy to hack Hive accounts, let alone take control over it. But without careful use (revealing private keys) losing liquid funds are not that difficult and it takes only couple seconds to do that, keeping most value powered up always helps. -[this article](https://steemit.com/steem/@good-karma/steem-multi-authority-permissions-and-how-active-authority-works-part-2-f158813ec0ec1) has more detail around active authorities +[this article](https://hive.blog/steem/@good-karma/steem-multi-authority-permissions-and-how-active-authority-works-part-2-f158813ec0ec1) has more detail around active authorities ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `allow` and `disallow` methods found within the `commit` class in the library. Before we grant or revoke permission, we use the `get_account` function to check whether the requested user already has that permission or not. This is not strictly necessary but adds to the useability of the process. The `allow` method has 5 parameters: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `allow` and `disallow` methods found within the `commit` class in the library. Before we grant or revoke permission, we use the `get_account` function to check whether the requested user already has that permission or not. This is not strictly necessary but adds to the useability of the process. The `allow` method has 5 parameters: 1. _foreign_ - The foreign account that will obtain access 1. _weight_ - This is an optional parameter defining the weight to use. If not defined, the threshold value will be used. If the weight is smaller than the threshold, additional signatures will be required. @@ -64,7 +64,7 @@ username = input('Enter username: ') wif = input('Enter private ACTIVE key: ') #connect to production server with active key -client = steem.Steem(keys=[wif]) +client = steem.Hive(keys=[wif]) ``` #### 2. Username validation <a name="username"></a> diff --git a/_tutorials-python/grant_posting_permission.md b/_tutorials-python/grant_posting_permission.md index 50f0d023..f663fa01 100644 --- a/_tutorials-python/grant_posting_permission.md +++ b/_tutorials-python/grant_posting_permission.md @@ -10,13 +10,13 @@ canonical_url: grant_posting_permission.html -In this tutorial we show you how to check if someone has posting permission for an account on the **Steem** blockchain and how to grant or revoke that permission using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we show you how to check if someone has posting permission for an account on the **Hive** blockchain and how to grant or revoke that permission using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. Providing another user posting permission for your account can be used to allow multiple users to submit posts on a single steemit community. @Utopian-Io is an example of such a community. There are also applications that allows you to schedule posts by automatically publishing on your behalf. ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `allow` and `disallow` methods found within the `commit` class in the library. Before we grant or revoke permission, we use the `get_account` function to check whether the requested user already has that permission or not. This is not strictly necessary but adds to the useability of the process. The `allow` method has 5 parameters: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `allow` and `disallow` methods found within the `commit` class in the library. Before we grant or revoke permission, we use the `get_account` function to check whether the requested user already has that permission or not. This is not strictly necessary but adds to the useability of the process. The `allow` method has 5 parameters: 1. _foreign_ - The foreign account that will obtain access 1. _weight_ - This is an optional parameter defining the weight to use. If not defined, the threshold value will be used. If the weight is smaller than the threshold, additional signatures will be required. @@ -58,7 +58,7 @@ username = input('Enter username: ') wif = input('Enter private ACTIVE key: ') #connect to production server with active key -client = steem.Steem(keys=[wif]) +client = steem.Hive(keys=[wif]) ``` #### 2. Username validation <a name="username"></a> diff --git a/_tutorials-python/password_key_change.md b/_tutorials-python/password_key_change.md index 16748fe3..24d81a6d 100644 --- a/_tutorials-python/password_key_change.md +++ b/_tutorials-python/password_key_change.md @@ -10,11 +10,11 @@ canonical_url: password_key_change.html -In this tutorial we will explain and show you how to change your account password and keys on the **Steem** blockchain using the `steem` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we will explain and show you how to change your account password and keys on the **Hive** blockchain using the `steem` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -The Steem python library has a built-in function to update your account details on the blockchain. We are using the `AccountUpdate` and `commit.finalizeOp` to make these changes. The `AccountUpdate` function creates the operation that we will be committing to the blockchain using the `commit.finalizeOp` function. We first get the existing keys from your account then recreate these from your new password. Once these have been created using your new password we commit them to the blockchain. The initial parameters we need to complete this operation are: +The Hive python library has a built-in function to update your account details on the blockchain. We are using the `AccountUpdate` and `commit.finalizeOp` to make these changes. The `AccountUpdate` function creates the operation that we will be committing to the blockchain using the `commit.finalizeOp` function. We first get the existing keys from your account then recreate these from your new password. Once these have been created using your new password we commit them to the blockchain. The initial parameters we need to complete this operation are: 1. _account_ - The user account that we will be changing 1. _old_password_ - Your existing password for the account we are changing @@ -60,19 +60,19 @@ new_password = input('New password: ') ### 3. Connect to the blockchain<a name="connection"></a> -From the parameters that have been collected we will generate the private key for the account and connect to the **Steem** blockchain. +From the parameters that have been collected we will generate the private key for the account and connect to the **Hive** blockchain. ```python old_owner_key = str( PasswordKey(account, old_password, "owner").get_private_key() ) -client = steem.Steem(keys=[old_owner_key]) +client = steem.Hive(keys=[old_owner_key]) ``` ### 4. Configure new keys<a name="configure"></a> -We will now generate new keys for each role using the new password as well as create the json that will be committed to the **Steem** blockchain. We generate new keys using the new password for each of these roles. +We will now generate new keys for each role using the new password as well as create the json that will be committed to the **Hive** blockchain. We generate new keys using the new password for each of these roles. ```python new_public_keys = {} @@ -129,7 +129,7 @@ print(result) If you update your password and attempt to update it again to quickly you will receive the following error. ``` -Assert Exception:_db.head_block_time() - account_auth.last_owner_update > STEEM_OWNER_UPDATE_LIMIT: Owner authority can only be updated once an hour. +Assert Exception:_db.head_block_time() - account_auth.last_owner_update > HIVE_OWNER_UPDATE_LIMIT: Owner authority can only be updated once an hour. ``` You will need to wait at least an hour before attempting this again. diff --git a/_tutorials-python/power_down.md b/_tutorials-python/power_down.md index 4b3ab955..b4826bd8 100644 --- a/_tutorials-python/power_down.md +++ b/_tutorials-python/power_down.md @@ -10,11 +10,11 @@ canonical_url: power_down.html -In this tutorial we will explain and show you how to power down some or all of your available vesting shares (STEEM POWER) on the **Steem** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we will explain and show you how to power down some or all of your available vesting shares (HIVE POWER) on the **Hive** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `withdraw_vesting` method found within the `commit` class in the library. When you power down, the converted VESTS (STEEM POWER) will not be available as STEEM immediately. It is converted in 13 equal parts and transferred into your STEEM wallet weekly, the first portion only being available a week after the power down was initiated. Before we do the conversion, we check the current balance of the account to check how much STEEM POWER is available. This is not strictly necessary as the process will automatically abort with the corresponding error, but it does give some insight into the process as a whole. We use the `get_account` function to check for this. The `withdraw_vesting` method has 2 parameters: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `withdraw_vesting` method found within the `commit` class in the library. When you power down, the converted VESTS (HIVE POWER) will not be available as HIVE immediately. It is converted in 13 equal parts and transferred into your HIVE wallet weekly, the first portion only being available a week after the power down was initiated. Before we do the conversion, we check the current balance of the account to check how much HIVE POWER is available. This is not strictly necessary as the process will automatically abort with the corresponding error, but it does give some insight into the process as a whole. We use the `get_account` function to check for this. The `withdraw_vesting` method has 2 parameters: 1. _amount_ - The amount of VESTS that will be withdrawn. This must be of the `float` data type 1. _account_ - The specified user account for the transfer @@ -22,7 +22,7 @@ The Steem python library has a built-in function to transmit transactions to the ## Steps 1. [**App setup**](#setup) - Library install and import. Connection to testnet -1. [**User information and steem node**](#userinfo) - Input user information and connection to Steem node +1. [**User information and steem node**](#userinfo) - Input user information and connection to Hive node 1. [**Check balance**](#balance) - Check current vesting balance of user account 1. [**Conversion amount and commit**](#convert) - Input of VESTS amount to convert and commit to blockchain @@ -41,9 +41,9 @@ import steem from pick import pick from steem.amount import Amount -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } ``` @@ -59,7 +59,7 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) ``` #### 3. Check balance <a name="balance"></a> diff --git a/_tutorials-python/power_up_steem.md b/_tutorials-python/power_up_steem.md index 911ea99d..7e1e355e 100644 --- a/_tutorials-python/power_up_steem.md +++ b/_tutorials-python/power_up_steem.md @@ -1,29 +1,29 @@ --- -title: 'PY: Power Up Steem' +title: 'PY: Power Up Hive' position: 24 -description: "How to power up your STEEM to STEEM POWER using Python." +description: "How to power up your HIVE to HIVE POWER using Python." layout: full -canonical_url: power_up_steem.html +canonical_url: power_up_hive.html --- -<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Power Up Steem](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python/tutorials/24_power_up_steem) can be downloaded as part of: [tutorials/python](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python).</span> +<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Power Up Hive](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python/tutorials/24_power_up_hive) can be downloaded as part of: [tutorials/python](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python).</span> <br> -In this tutorial we show you how to check the STEEM balance of an account on the **Steem** blockchain and how to power up your STEEM into STEEM POWER using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we show you how to check the HIVE balance of an account on the **Hive** blockchain and how to power up your HIVE into HIVE POWER using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `transfer_to_vesting` method found within the `commit` class in the library. When you power up you convert your STEEM into STEEM POWER to increase your influence on Steemit. Before we do the conversion, we use the `get_account` function to check the current STEEM balance of the account to see what is available to power up. This is not strictly necessary but adds to the useability of the process. The `transfer_to_vesting` method has 3 parameters: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `transfer_to_vesting` method found within the `commit` class in the library. When you power up you convert your HIVE into HIVE POWER to increase your influence on Hive. Before we do the conversion, we use the `get_account` function to check the current HIVE balance of the account to see what is available to power up. This is not strictly necessary but adds to the useability of the process. The `transfer_to_vesting` method has 3 parameters: -1. _amount_ - The amount of STEEM to power up. This must be of the `float` data type -1. _to_ - The account to where the STEEM will be powered up +1. _amount_ - The amount of HIVE to power up. This must be of the `float` data type +1. _to_ - The account to where the HIVE will be powered up 1. _account_ - The source user account for the transfer ## Steps 1. [**App setup**](#setup) - Library install and import. Connection to testnet -1. [**User information and steem node**](#userinfo) - Input user information and connection to Steem node +1. [**User information and steem node**](#userinfo) - Input user information and connection to Hive node 1. [**Check balance**](#balance) - Check current vesting balance of user account 1. [**Conversion amount**](#convert) - Input power up amount and check valid transfer 1. [**Commit to blockchain**](#commit) - Commit transaction to blockchain @@ -43,9 +43,9 @@ import steem from steem.amount import Amount from pick import pick -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } ``` @@ -61,7 +61,7 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) ``` #### 3. Check balance <a name="balance"></a> @@ -76,7 +76,7 @@ if(userinfo is None) : exit() balance = userinfo['balance'] -print('Available STEEM balance: ' + balance + '\n') +print('Available HIVE balance: ' + balance + '\n') input('Press any key to continue') ``` @@ -85,7 +85,7 @@ The results of the query are displayed in the console/terminal. #### 4. Conversion amount <a name="convert"></a> -Both the `amount` and the `to` parameters are assigned via input from the terminal/console. The user is given the option to power up the STEEM to their own account or to another user's account. The amount has to be greater than zero and no more than the total available STEEM of the user. If you are using one of Steemit's demo accounts, please leave some STEEM for others to power up! We also check the `to account` to make sure it's a valid account name. +Both the `amount` and the `to` parameters are assigned via input from the terminal/console. The user is given the option to power up the HIVE to their own account or to another user's account. The amount has to be greater than zero and no more than the total available HIVE of the user. If you are using one of Hive's demo accounts, please leave some HIVE for others to power up! We also check the `to account` to make sure it's a valid account name. ```python #choice of account @@ -95,18 +95,18 @@ option, index = pick(options, title) if (option == 'OTHER') : #account to power up to - to_account = input('Please enter the ACCOUNT to where the STEEM will be transferred: ') + to_account = input('Please enter the ACCOUNT to where the HIVE will be transferred: ') #check valid username result = client.get_account(to_account) if (not result) : print(to_account + ' doesn\'t exist on this chain!') exit() else : - print('\n' + 'Power up STEEM to own account' + '\n') + print('\n' + 'Power up HIVE to own account' + '\n') to_account = username #amount to power up -amount = float(input('Please enter the amount of STEEM to power up: ')) +amount = float(input('Please enter the amount of HIVE to power up: ')) ``` #### 5. Commit to blockchain <a name="commit"></a> @@ -116,7 +116,7 @@ Now that all the parameters have been assigned we can continue with the actual t ```python #parameters: amount, to, account if (amount == 0) : - print('\n' + 'No STEEM entered for powering up') + print('\n' + 'No HIVE entered for powering up') exit() else : if (amount > Amount(balance).amount) : @@ -124,18 +124,18 @@ else : exit() else : client.transfer_to_vesting(amount, to_account, username) - print('\n' + str(amount) + ' STEEM has been powered up successfully') + print('\n' + str(amount) + ' HIVE has been powered up successfully') ``` The result of the power up transfer is displayed on the console/terminal. -As an added check we also display the new STEEM balance of the user on the terminal/console +As an added check we also display the new HIVE balance of the user on the terminal/console ```python #get new account balance userinfo = client.get_account(username) balance = userinfo['balance'] -print('New STEEM balance: ' + balance) +print('New HIVE balance: ' + balance) ``` We encourage users to play around with different values and data types to fully understand how this process works. You can also check the balances and transaction history on the [testnet portal](http://condenser.steem.vc/). @@ -144,7 +144,7 @@ We encourage users to play around with different values and data types to fully 1. [review dev requirements](getting_started.html) 1. `git clone https://gitlab.syncad.com/hive/devportal.git` -1. `cd devportal/tutorials/python/24_power_up_steem` +1. `cd devportal/tutorials/python/24_power_up_hive` 1. `pip install -r requirements.txt` 1. `python index.py` 1. After a few moments, you should see a prompt for input in terminal screen. diff --git a/_tutorials-python/reblogging_post.md b/_tutorials-python/reblogging_post.md index fb603cf5..3dbad0b8 100644 --- a/_tutorials-python/reblogging_post.md +++ b/_tutorials-python/reblogging_post.md @@ -10,11 +10,11 @@ canonical_url: reblogging_post.html -Tutorial will also explain and show you how to sign/broadcast transaction on **Steem** blockchain using the [steem-python](https://github.com/steemit/steem-python) library. +Tutorial will also explain and show you how to sign/broadcast transaction on **Hive** blockchain using the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -Steem python library has built-in function to commit transaction and broadcast it to the network. +Hive python library has built-in function to commit transaction and broadcast it to the network. ## Steps @@ -26,15 +26,15 @@ Steem python library has built-in function to commit transaction and broadcast i In this tutorial we use 3 packages, `pick` - helps us to select filter interactively. `steem` - steem-python library, interaction with Blockchain. `pprint` - print results in better format. -First we import all three library and initialize Steem class +First we import all three library and initialize Hive class ```python import pprint from pick import pick - # initialize Steem class - from steem import Steem + # initialize Hive class + from steem import Hive - s = Steem() + s = Hive() ``` #### 2. Post list <a name="post-list"></a> @@ -73,7 +73,7 @@ Next in order to sign transaction, application asks for username and posting pri wif = input("Enter your Posting private key? ") # commit or build transaction - c = Commit(steem=Steem(keys=[wif])) + c = Commit(steem=Hive(keys=[wif])) # broadcast transaction c.resteem(option, account=account) diff --git a/_tutorials-python/search_accounts.md b/_tutorials-python/search_accounts.md index 056b903f..eac5ebb8 100644 --- a/_tutorials-python/search_accounts.md +++ b/_tutorials-python/search_accounts.md @@ -10,18 +10,18 @@ canonical_url: search_accounts.html -This tutorial will explain and show you how to access the **Steem** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch a list of active authors or trending tags, starting the search from a specified value, and displaying the results on the console. +This tutorial will explain and show you how to access the **Hive** blockchain using the [steem-python](https://github.com/steemit/steem-python) library to fetch a list of active authors or trending tags, starting the search from a specified value, and displaying the results on the console. ## Intro -We are using the `lookup_accounts` and `get_trending_tags` functions that are built-in in the official library `steem-python`. These functions allow us to query the Steem blockchain in order to retrieve either a list of active authors or a list of trending tags. The option is available to either get a complete list starting from the first value on the blockchain or starting the list from any other closest match string value as provided by the user. Both of these functions have only two parameters: +We are using the `lookup_accounts` and `get_trending_tags` functions that are built-in in the official library `steem-python`. These functions allow us to query the Hive blockchain in order to retrieve either a list of active authors or a list of trending tags. The option is available to either get a complete list starting from the first value on the blockchain or starting the list from any other closest match string value as provided by the user. Both of these functions have only two parameters: 1. _account/aftertag_ - The string value from where to start the search. If this value is left empty the search will start from the first value available 1. _limit_ - The maximum number of names/tags that the query retrieves ## Steps -1. [**App setup**](#setup) - Library import and Steem class initialisation +1. [**App setup**](#setup) - Library import and Hive class initialisation 1. [**List selection**](#list) - Selection of the type of list 1. [**Get and display account names**](#accounts) - Get a list of account names from the blockchain 1. [**Get and display trending tags**](#tags) - Get a list of trending tags from the blockchain @@ -30,14 +30,14 @@ We are using the `lookup_accounts` and `get_trending_tags` functions that are bu In this tutorial we use 2 packages, `pick` - helps us to select the query type interactively. `steem` - steem-python library for interaction with the Blockchain. -First we import both libraries and initialize Steem class +First we import both libraries and initialize Hive class ```python -from steem import Steem +from steem import Hive from pick import pick -s = Steem() +s = Hive() ``` #### 2. List selection<a name="list"></a> diff --git a/_tutorials-python/stream_blockchain_transactions.md b/_tutorials-python/stream_blockchain_transactions.md index f07560d4..af07aa0e 100644 --- a/_tutorials-python/stream_blockchain_transactions.md +++ b/_tutorials-python/stream_blockchain_transactions.md @@ -1,7 +1,7 @@ --- title: 'PY: Stream Blockchain Transactions' position: 13 -description: "How to stream transactions on the live **Steem** blockchain" +description: "How to stream transactions on the live **Hive** blockchain" layout: full canonical_url: stream_blockchain_transactions.html --- @@ -10,11 +10,11 @@ canonical_url: stream_blockchain_transactions.html -In this tutorial we show you how to stream transactions on the **Steem** blockchain using the `blockchain` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we show you how to stream transactions on the **Hive** blockchain using the `blockchain` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -Tutorial is demonstrating the typical process of streaming blocks on Steem. We will show some information from each block that is being streamed to give you an idea. Each block contains transactions objects as well but we will not show each of this data in user interface. +Tutorial is demonstrating the typical process of streaming blocks on Hive. We will show some information from each block that is being streamed to give you an idea. Each block contains transactions objects as well but we will not show each of this data in user interface. We are using the `blockchain.stream()` function provided by `steem-python` which returns each block after it has been accepted by witnesses. By default it follows irreversible blocks which was accepted by all witnesses. diff --git a/_tutorials-python/submit_comment_reply.md b/_tutorials-python/submit_comment_reply.md index 7022210e..65f384e5 100644 --- a/_tutorials-python/submit_comment_reply.md +++ b/_tutorials-python/submit_comment_reply.md @@ -1,7 +1,7 @@ --- title: 'PY: Submit Comment Reply' position: 11 -description: "How to submit a comment on a post to the Steem blockchain." +description: "How to submit a comment on a post to the Hive blockchain." layout: full canonical_url: submit_comment_reply.html --- @@ -10,11 +10,11 @@ canonical_url: submit_comment_reply.html -This tutorial will explain and show you how to submit a new comment to the `Steem` blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +This tutorial will explain and show you how to submit a new comment to the `Hive` blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `post` method found within the `commit` class in the the library. It should be noted that comments and post are both treated as a `commit.post` operation with the only difference being that a comment/reply has an additional parameter containing the `parent post/comment`. There are 11 parameters within the `post` method: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `post` method found within the `commit` class in the the library. It should be noted that comments and post are both treated as a `commit.post` operation with the only difference being that a comment/reply has an additional parameter containing the `parent post/comment`. There are 11 parameters within the `post` method: 1. _title_ - The title of the post. This is a required parameter but comments don't have a title so the parameter is assigned an empty string value 1. _body_ - The body of the post @@ -34,7 +34,7 @@ A comment made on a post is defined as a `root comment`. You can also comment on ## Steps -1. [**App setup**](#setup) - Library install and import. Connection to Steem node +1. [**App setup**](#setup) - Library install and import. Connection to Hive node 1. [**Variable input and format**](#input) - Input and creation of varialbes 1. [**Initialize steem class**](#steem) - Initialize the steem class with the relevant node and private key 1. [**Post submission and result**](#submit) - Committing of transaction to the blockchain @@ -55,9 +55,9 @@ import string import steembase import steem -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } ``` @@ -94,7 +94,7 @@ We initialize the steem class by connecting to the specific `testnet` node. We a ```python #connect node and private posting key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) ``` #### 4. Post submission and result<a name="submit"></a> diff --git a/_tutorials-python/submit_post.md b/_tutorials-python/submit_post.md index c1dce074..2f03056a 100644 --- a/_tutorials-python/submit_post.md +++ b/_tutorials-python/submit_post.md @@ -1,7 +1,7 @@ --- title: 'PY: Submit Post' position: 10 -description: "How to submit post on Steem blockchain using Python." +description: "How to submit post on Hive blockchain using Python." layout: full canonical_url: submit_post.html --- @@ -10,11 +10,11 @@ canonical_url: submit_post.html -In this tutorial will explain and show you how to submit a new post to the `Steem` blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial will explain and show you how to submit a new post to the `Hive` blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `post` method found within the `commit` class in the the library. It should be noted that comments and new post are both treated as `commit.post` operation with the only difference being that a comment/reply has got an additional parameter containing the `parent post/comment`. There are 11 parameters within the `post` method: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `post` method found within the `commit` class in the the library. It should be noted that comments and new post are both treated as `commit.post` operation with the only difference being that a comment/reply has got an additional parameter containing the `parent post/comment`. There are 11 parameters within the `post` method: 1. _title_ - The title of the post 2. _body_ - The body of the post @@ -32,7 +32,7 @@ We will only be using the first 5 parameters as these are the only ones required ## Steps -1. [**App setup**](#setup) - Library install and import. Connection to Steem node +1. [**App setup**](#setup) - Library install and import. Connection to Hive node 2. [**Variable input and format**](#input) - Input and creation of varialbes 3. [**Post submission and result**](#submit) - Committing of transaction to the blockchain @@ -44,7 +44,7 @@ In this tutorial we use 4 packages: - `steem` - steem-python library and interaction with Blockchain - `steembase` - used to connect to the testnet -We import the libraries, connect to the `testnet` and initialize the Steem class. +We import the libraries, connect to the `testnet` and initialize the Hive class. ```python import random @@ -52,13 +52,13 @@ import string import steembase import steem -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #connect node and private posting key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=['5JEZ1EiUjFKfsKP32b15Y7jybjvHQPhnvCYZ9BW62H1LDUnMvHz']) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=['5JEZ1EiUjFKfsKP32b15Y7jybjvHQPhnvCYZ9BW62H1LDUnMvHz']) ``` Because this tutorial alters the blockchain we have to connect to the testnet. We also require the `private posting key` of the contributing author in order to commit the post which is why it is specified along with the `testnet` node. We have supplied a test account, `cdemo` to use with this tutorial. diff --git a/_tutorials-python/transfer_STEEM_and_SBD.md b/_tutorials-python/transfer_STEEM_and_SBD.md index e2da501b..81e1e443 100644 --- a/_tutorials-python/transfer_STEEM_and_SBD.md +++ b/_tutorials-python/transfer_STEEM_and_SBD.md @@ -1,32 +1,32 @@ --- -title: 'PY: Transfer Steem And Sbd' +title: 'PY: Transfer Hive And Hbd' position: 21 -description: "How to transfer STEEM and SBD to another account using Python." +description: "How to transfer HIVE and HBD to another account using Python." layout: full -canonical_url: transfer_steem_and_sbd.html +canonical_url: transfer_hive_and_hbd.html --- -<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Transfer Steem And Sbd](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python/tutorials/21_transfer_steem_and_sbd) can be downloaded as part of: [tutorials/python](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python).</span> +<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Transfer Hive And Hbd](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python/tutorials/21_transfer_hive_and_hbd) can be downloaded as part of: [tutorials/python](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python).</span> <br> -In this tutorial we will explain and show you how to to check the STEEM and SBD balance of an account and also how to transfer a portion of that to another user on the **Steem** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we will explain and show you how to to check the HIVE and HBD balance of an account and also how to transfer a portion of that to another user on the **Hive** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `transfer` method found within the `commit` class in the library. Before we do the transfer, we check the current balance of the account to ensure that there are sufficient funds available. We also check if the intended recipient of the transfer is a valid user account. This is not strictly necessary as the process will automatically abort with the corresponding error, but it does give some insight into the process as a whole. We use the `get_account` function to check for this. The `transfer` method has 5 parameters: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `transfer` method found within the `commit` class in the library. Before we do the transfer, we check the current balance of the account to ensure that there are sufficient funds available. We also check if the intended recipient of the transfer is a valid user account. This is not strictly necessary as the process will automatically abort with the corresponding error, but it does give some insight into the process as a whole. We use the `get_account` function to check for this. The `transfer` method has 5 parameters: 1. _to_ - The intended recipient of the funds transfer -1. _amount_ - The amount of STEEM or SBD that the user wants to transfer. This parameter has to be of the `float` data type and is rounded up to 3 decimal spaces -1. _asset_ - A string value specifying whether `STEEM` or `SBD` is being transferred +1. _amount_ - The amount of HIVE or HBD that the user wants to transfer. This parameter has to be of the `float` data type and is rounded up to 3 decimal spaces +1. _asset_ - A string value specifying whether `HIVE` or `HBD` is being transferred 1. _memo_ - An optional text field containing comments on the transfer. This value may begin with '#' for encrypted messaging 1. _account_ - The account that the funds are being transferred from ## Steps 1. [**App setup**](#setup) - Library install and import. Connection to testnet -1. [**User information and steem node**](#userinfo) - Input user information and connection to Steem node -1. [**Check balance**](#balance) - Check current STEEM and SBD balance of user account +1. [**User information and steem node**](#userinfo) - Input user information and connection to Hive node +1. [**Check balance**](#balance) - Check current HIVE and HBD balance of user account 1. [**Recipient input**](#recipient) - Check for valid recipient account name 1. [**Transfer type and amount**](#amount) - Input of transfer type and the amount to transfer 1. [**Transfer commit**](#commit) - Commit of transfer to blockchain @@ -45,9 +45,9 @@ import steembase import steem from pick import pick -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } ``` @@ -63,7 +63,7 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) ``` #### 3. Check balance <a name="balance"></a> @@ -71,12 +71,12 @@ client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) In order to give the user enough information to make the transfer we check the current balance of the account using the `get_account` function. ```python -#get account balance for STEEM and SBD +#get account balance for HIVE and HBD userinfo = client.get_account(username) -total_steem = userinfo['balance'] -total_sbd = userinfo['sbd_balance'] +total_hive = userinfo['balance'] +total_hbd = userinfo['hbd_balance'] -print('CURRENT ACCOUNT BALANCE:' + '\n' + total_steem + '\n' + total_sbd + '\n') +print('CURRENT ACCOUNT BALANCE:' + '\n' + total_hive + '\n' + total_hbd + '\n') ``` The result of the query is displayed in the console/terminal. @@ -103,7 +103,7 @@ If the query in the previous step returns a valid result the user is then given if result: #choice of transfer title = 'Please choose transfer type: ' - options = ['STEEM', 'SBD', 'Cancel Transfer'] + options = ['HIVE', 'HBD', 'Cancel Transfer'] # get index and selected transfer type option, index = pick(options, title) else: @@ -118,14 +118,14 @@ if option == 'Cancel Transfer': print('Transaction cancelled') exit() else: - if option == 'STEEM': - #get STEEM transfer amount - amount = input('Enter amount of STEEM to transfer to ' + recipient + ': ') - asset = 'STEEM' + if option == 'HIVE': + #get HIVE transfer amount + amount = input('Enter amount of HIVE to transfer to ' + recipient + ': ') + asset = 'HIVE' else: - #get SBD transfer amount - amount = input('Enter amount of SBD to transfer to ' + recipient + ': ') - asset = 'SBD' + #get HBD transfer amount + amount = input('Enter amount of HBD to transfer to ' + recipient + ': ') + asset = 'HBD' ``` #### 6. Transfer commit <a name="commit"></a> @@ -142,12 +142,12 @@ The `memo` parameter can be left empty as in the above example. A simple confirm As an added confirmation we check the balance of the user again and display it on the UI. This is not required at all but it serves as a more definitive confirmation that the transfer has been completed correctly. ```python -#get remaining account balance for STEEM and SBD +#get remaining account balance for HIVE and HBD userinfo = client.get_account(username) -total_steem = userinfo['balance'] -total_sbd = userinfo['sbd_balance'] +total_hive = userinfo['balance'] +total_hbd = userinfo['hbd_balance'] -print('\n' + 'REMAINING ACCOUNT BALANCE:' + '\n' + total_steem + '\n' + total_sbd + '\n') +print('\n' + 'REMAINING ACCOUNT BALANCE:' + '\n' + total_hive + '\n' + total_hbd + '\n') ``` We encourage users to play around with different values and data types to fully understand how this process works. You can also check the balances and transaction history on the [testnet portal](http://condenser.steem.vc/). @@ -156,7 +156,7 @@ We encourage users to play around with different values and data types to fully 1. [review dev requirements](getting_started.html) 1. `git clone https://gitlab.syncad.com/hive/devportal.git` -1. `cd devportal/tutorials/python/21_transfer_steem_and_sbd` +1. `cd devportal/tutorials/python/21_transfer_hive_and_hbd` 1. `pip install -r requirements.txt` 1. `python index.py` 1. After a few moments, you should see a prompt for input in terminal screen. diff --git a/_tutorials-python/transfer_steem_and_sbd_to_savings_balance.md b/_tutorials-python/transfer_steem_and_sbd_to_savings_balance.md index fe6a12e0..471e406b 100644 --- a/_tutorials-python/transfer_steem_and_sbd_to_savings_balance.md +++ b/_tutorials-python/transfer_steem_and_sbd_to_savings_balance.md @@ -1,37 +1,37 @@ --- -title: 'PY: Transfer Steem And Sbd To Savings Balance' +title: 'PY: Transfer Hive And Hbd To Savings Balance' position: 33 -description: "How to transfer STEEM and SBD to savings using Python." +description: "How to transfer HIVE and HBD to savings using Python." layout: full -canonical_url: transfer_steem_and_sbd_to_savings_balance.html +canonical_url: transfer_hive_and_hbd_to_savings_balance.html --- -<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Transfer Steem And Sbd To Savings Balance](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python/tutorials/33_transfer_steem_and_sbd_to_savings_balance) can be downloaded as part of: [tutorials/python](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python).</span> +<span class="fa-pull-left top-of-tutorial-repo-link"><span class="first-word">Full</span>, runnable src of [Transfer Hive And Hbd To Savings Balance](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python/tutorials/33_transfer_hive_and_hbd_to_savings_balance) can be downloaded as part of: [tutorials/python](https://gitlab.syncad.com/hive/devportal/-/tree/master/tutorials/python).</span> <br> -In this tutorial we show you how to check the STEEM and SBD balance of an account on the **Steem** blockchain and also how to transfer a portion or all of that to a "savings" account using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we show you how to check the HIVE and HBD balance of an account on the **Hive** blockchain and also how to transfer a portion or all of that to a "savings" account using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. -It should be noted that when funds are being withdrawn from the savings account it takes 3 days for those funds to reflect in the available STEEM/SBD balance. The withdrawal can be cancelled at any point during this waiting period. This measure was put in place to reduce the risk of funds being stolen when accounts are hacked as it gives sufficient time to recover your account before your funds are transferred out. Storing your funds in your savings account is thus more secure than having them as available balances. +It should be noted that when funds are being withdrawn from the savings account it takes 3 days for those funds to reflect in the available HIVE/HBD balance. The withdrawal can be cancelled at any point during this waiting period. This measure was put in place to reduce the risk of funds being stolen when accounts are hacked as it gives sufficient time to recover your account before your funds are transferred out. Storing your funds in your savings account is thus more secure than having them as available balances. -Steemconnect offers an alternative to transferring STEEM and SBD with a "simple link" solution. Instead of running through a list of operations on your account, you can simply use a link similar to the one below substituting the four parameters with your own details. You will be prompted to enter your username and password before the transaction will be executed. -https://steemconnect.com/sign/transfer-to-savings?from=username&to=username&amount=0.000%20STEEM&memo=text +Hiveconnect offers an alternative to transferring HIVE and HBD with a "simple link" solution. Instead of running through a list of operations on your account, you can simply use a link similar to the one below substituting the four parameters with your own details. You will be prompted to enter your username and password before the transaction will be executed. +https://steemconnect.com/sign/transfer-to-savings?from=username&to=username&amount=0.000%20HIVE&memo=text This is similar to the steemconnect links that have been covered in previous tutorials. For a list of signing operations that work in this manner you can go to https://v2.steemconnect.com/sign. There is also a steemconnect link for withdrawing funds. ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `transfer_to_savings` and `transfer_from_savings` methods found within the `commit` class in the library. Before we do the transfer, we use the `get_account` function to check the current STEEM and SBD balance of the account to see what funds are available to transfer or withdraw. This is not strictly necessary but adds to the useability of the process. The `transfer_to_savings` method has 5 parameters: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `transfer_to_savings` and `transfer_from_savings` methods found within the `commit` class in the library. Before we do the transfer, we use the `get_account` function to check the current HIVE and HBD balance of the account to see what funds are available to transfer or withdraw. This is not strictly necessary but adds to the useability of the process. The `transfer_to_savings` method has 5 parameters: -1. _amount_ - The amount of STEEM or SBD that the user wants to transfer. This parameter has to be of the `float` data type and is rounded up to 3 decimal spaces -1. _asset_ - A string value specifying whether `STEEM` or `SBD` is being transferred +1. _amount_ - The amount of HIVE or HBD that the user wants to transfer. This parameter has to be of the `float` data type and is rounded up to 3 decimal spaces +1. _asset_ - A string value specifying whether `HIVE` or `HBD` is being transferred 1. _memo_ - An optional text field containing comments on the transfer 1. _to_ - The recipient savings account name. Funds can be transferred to any other users' savings balance 1. _account_ - The source account for the transfer and `transfer_from_savings` has 6 parameters: -1. _amount_ - The amount of STEEM or SBD that the user wants to withdraw. This parameter has to be of the `float` data type and is rounded up to 3 decimal spaces -1. _asset_ - A string value specifying whether `STEEM` or `SBD` is being withdrawn +1. _amount_ - The amount of HIVE or HBD that the user wants to withdraw. This parameter has to be of the `float` data type and is rounded up to 3 decimal spaces +1. _asset_ - A string value specifying whether `HIVE` or `HBD` is being withdrawn 1. _memo_ - An optional text field containing comments on the withdrawal 1. _request id_ - Integer identifier for tracking the withdrawal. This needs to be a unique number for a specified user 1. _to_ - The recipient account name. Funds can be withdrawn to any other users' available balance @@ -40,8 +40,8 @@ and `transfer_from_savings` has 6 parameters: ## Steps 1. [**App setup**](#setup) - Library install and import. Connection to testnet -1. [**User information and steem node**](#userinfo) - Input user information and connection to Steem node -1. [**Check balance**](#balance) - Check current STEEM and SBD balance of user account +1. [**User information and steem node**](#userinfo) - Input user information and connection to Hive node +1. [**Check balance**](#balance) - Check current HIVE and HBD balance of user account 1. [**Transfer type and amount**](#amount) - Input of transfer type and the amount to transfer 1. [**Transfer commit**](#commit) - Commit of transfer to blockchain @@ -61,9 +61,9 @@ import steem from pick import pick import random -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } ``` @@ -79,7 +79,7 @@ username = input('Enter username: ') #demo account: demo01 wif = input('Enter private ACTIVE key: ') #demo account: 5HxTntgeoLm4trnTz94YBsY6MpAap1qRVXEKsU5n1v2du1gAgVH #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) ``` #### 3. Check balance <a name="balance"></a> @@ -87,19 +87,19 @@ client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) In order to give the user enough information to make the transfer we check the current balance of both the available and savings funds of the account using the `get_account` function. ```python -#check for valid account and get account balance for STEEM and SBD +#check for valid account and get account balance for HIVE and HBD userinfo = client.get_account(username) if(userinfo is None) : print('Oops. Looks like user ' + username + ' doesn\'t exist on this chain!') exit() -total_steem = userinfo['balance'] -total_sbd = userinfo['sbd_balance'] -savings_steem = userinfo['savings_balance'] -savings_sbd = userinfo['savings_sbd_balance'] +total_hive = userinfo['balance'] +total_hbd = userinfo['hbd_balance'] +savings_hive = userinfo['savings_balance'] +savings_hbd = userinfo['savings_hbd_balance'] -print('CURRENT ACCOUNT BALANCE:' + '\n' + total_steem + '\n' + total_sbd + '\n') -print('CURRENT SAVINGS BALANCE:' + '\n' + savings_steem + '\n' + savings_sbd + '\n') +print('CURRENT ACCOUNT BALANCE:' + '\n' + total_hive + '\n' + total_hbd + '\n') +print('CURRENT SAVINGS BALANCE:' + '\n' + savings_hive + '\n' + savings_hbd + '\n') input('Press enter to continue with the transfer' + '\n') ``` @@ -108,7 +108,7 @@ The result of the query is displayed in the console/terminal. #### 4. Transfer type and amount <a name="amount"></a> -The user is given a choice on the type of transfer (transfer/withdraw) as well as the currency. The user can also elect to cancel the process entirely. If you are using one of Steemit's demo accounts, please leave some funds for others to transfer! Once the user makes their choice we proceed to assign the `amount` as well as the `asset` parameter. +The user is given a choice on the type of transfer (transfer/withdraw) as well as the currency. The user can also elect to cancel the process entirely. If you are using one of Hive's demo accounts, please leave some funds for others to transfer! Once the user makes their choice we proceed to assign the `amount` as well as the `asset` parameter. ```python #choice of transfer/withdrawal @@ -123,17 +123,17 @@ if transfer_type == 'Cancel': #choice of currency title2 = 'Please choose currency: ' -options2 = ['STEEM', 'SBD'] +options2 = ['HIVE', 'HBD'] option, index = pick(options2, title2) -if option == 'STEEM': - #get STEEM transfer amount - amount = input('Enter amount of STEEM to transfer: ') - asset = 'STEEM' +if option == 'HIVE': + #get HIVE transfer amount + amount = input('Enter amount of HIVE to transfer: ') + asset = 'HIVE' else: - #get SBD transfer amount - amount = input('Enter amount of SBD to transfer: ') - asset = 'SBD' + #get HBD transfer amount + amount = input('Enter amount of HBD to transfer: ') + asset = 'HBD' ``` #### 5. Transfer commit <a name="commit"></a> @@ -158,15 +158,15 @@ With a withdrawal, the method requires a unique identifier for the transaction t As an added confirmation we check the balance of the user again and display it on the UI. This is not required at all but it serves as a more definitive confirmation that the transfer has been completed correctly. ```python -#get remaining account balance for STEEM and SBD +#get remaining account balance for HIVE and HBD userinfo = client.get_account(username) -total_steem = userinfo['balance'] -total_sbd = userinfo['sbd_balance'] -savings_steem = userinfo['savings_balance'] -savings_sbd = userinfo['savings_sbd_balance'] +total_hive = userinfo['balance'] +total_hbd = userinfo['hbd_balance'] +savings_hive = userinfo['savings_balance'] +savings_hbd = userinfo['savings_hbd_balance'] -print('\n' + 'REMAINING ACCOUNT BALANCE:' + '\n' + total_steem + '\n' + total_sbd + '\n') -print('CURRENT SAVINGS BALANCE:' + '\n' + savings_steem + '\n' + savings_sbd + '\n') +print('\n' + 'REMAINING ACCOUNT BALANCE:' + '\n' + total_hive + '\n' + total_hbd + '\n') +print('CURRENT SAVINGS BALANCE:' + '\n' + savings_hive + '\n' + savings_hbd + '\n') ``` We encourage users to play around with different values and data types to fully understand how this process works. You can also check the balances and transaction history on the [testnet portal](http://condenser.steem.vc/). @@ -175,7 +175,7 @@ We encourage users to play around with different values and data types to fully 1. [review dev requirements](getting_started.html) 1. `git clone https://gitlab.syncad.com/hive/devportal.git` -1. `cd devportal/tutorials/python/33_transfer_steem_and_sbd_to_savings_balance` +1. `cd devportal/tutorials/python/33_transfer_hive_and_hbd_to_savings_balance` 1. `pip install -r requirements.txt` 1. `python index.py` 1. After a few moments, you should see a prompt for input in terminal screen. diff --git a/_tutorials-python/using_keys_securely.md b/_tutorials-python/using_keys_securely.md index 2bd66f0f..d1e96bed 100644 --- a/_tutorials-python/using_keys_securely.md +++ b/_tutorials-python/using_keys_securely.md @@ -1,7 +1,7 @@ --- title: 'PY: Using Keys Securely' position: 1 -description: "Learn how Steem-Python library handles transaction signing with user's key and how to securely manage your private keys." +description: "Learn how Hive-Python library handles transaction signing with user's key and how to securely manage your private keys." layout: full canonical_url: using_keys_securely.html --- @@ -12,7 +12,7 @@ canonical_url: using_keys_securely.html ## Intro -Steem python library has 2 ways to handle your keys. One is from source code, another one is through command line interface called `steempy`. `steempy` cli is installed by default when you install steem-python library on your machine. +Hive python library has 2 ways to handle your keys. One is from source code, another one is through command line interface called `steempy`. `steempy` cli is installed by default when you install steem-python library on your machine. ## Steps @@ -24,24 +24,24 @@ Steem python library has 2 ways to handle your keys. One is from source code, an In this tutorial we are only using `steem` package - steem-python library. ```python - # initialize Steem class - from steem import Steem + # initialize Hive class + from steem import Hive # defining private keys inside source code is not secure way but possible - s = Steem(keys=['<private_posting_key>', '<private_active_key>']) + s = Hive(keys=['<private_posting_key>', '<private_active_key>']) ``` Last line from above snippet shows how to define private keys for account that's going to transact using script. #### 2. Key usage example <a name='example-list'></a> -After defining private keys inside Steem class, we can quickly sign any transaction and broadcast it to the network. +After defining private keys inside Hive class, we can quickly sign any transaction and broadcast it to the network. ```python # above will allow accessing Commit methods such as - # demo account sending 0.001 STEEM to demo1 account + # demo account sending 0.001 HIVE to demo1 account - s.commit.transfer('demo','0.001','STEEM','memo text','demo1') + s.commit.transfer('demo','0.001','HIVE','memo text','demo1') ``` Above method works but it is not secure way of handling your keys because you have entered your keys within source code that you might leak accidentally. To avoid that, we can use CLI - command line interface `steempy`. @@ -56,7 +56,7 @@ You can type following to learn more about `steempy` commands: The first time you use steempy, you will be prompted to enter a password. This password will be used to encrypt the steempy wallet, which contains your private keys. -You can import your Steem username with following command: +You can import your Hive username with following command: `steempy importaccount username` @@ -76,7 +76,7 @@ Above line fetches private key for user `demo` from local machine and signs tran `steempy` also allows you to sign and broadcast transactions from terminal. For example: -`steempy transfer --account <account_name> <recipient_name> 1 STEEM memo` +`steempy transfer --account <account_name> <recipient_name> 1 HIVE memo` would sign and broadcast transfer operation, diff --git a/_tutorials-python/vote_on_content.md b/_tutorials-python/vote_on_content.md index 2dd41a84..ee2b5b81 100644 --- a/_tutorials-python/vote_on_content.md +++ b/_tutorials-python/vote_on_content.md @@ -10,11 +10,11 @@ canonical_url: vote_on_content.html -In this tutorial we will explain and show you how to to check if a user has voted on specified content and also how to submit a vote on the **Steem** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we will explain and show you how to to check if a user has voted on specified content and also how to submit a vote on the **Hive** blockchain using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -Voting is a way of promoting good content via an `upvote` or reporting misuse, spam or other unfit content by `downvoting`. The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `vote` method found within the `commit` class in the the library. Before we vote on content we first check whether the user has already voted. This is not strictly necessary as a voting operation overrides the previous vote value. We use the `get_active_votes` function to check for this. This function only requires two parameters, the `author` and the `permlink` for the comment/post that the query is for. This returns a list of the current voters for that comment. The `vote` function has 3 parameters: +Voting is a way of promoting good content via an `upvote` or reporting misuse, spam or other unfit content by `downvoting`. The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `vote` method found within the `commit` class in the the library. Before we vote on content we first check whether the user has already voted. This is not strictly necessary as a voting operation overrides the previous vote value. We use the `get_active_votes` function to check for this. This function only requires two parameters, the `author` and the `permlink` for the comment/post that the query is for. This returns a list of the current voters for that comment. The `vote` function has 3 parameters: 1. _identifier_ - This is a combination of the author and permink of the post/comment that the vote will be on 1. _weight_ - This value determines whether the vote is an upvote (+100.0) or a downvote (-100.0) but this value cannot be 0 @@ -23,7 +23,7 @@ Voting is a way of promoting good content via an `upvote` or reporting misuse, s ## Steps 1. [**App setup**](#setup) - Library install and import. Connection to testnet -1. [**User information and steem node**](#userinfo) - Input user information and connection to Steem node +1. [**User information and steem node**](#userinfo) - Input user information and connection to Hive node 1. [**Check vote status**](#votestat) - Vote status of post/comment 1. [**Commit vote**](#commit) - Commit vote to the blockchain @@ -41,9 +41,9 @@ import steembase import steem from pick import pick -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } ``` @@ -59,7 +59,7 @@ username = input('Please enter your username: ') postingkey = input('Please enter your private posting key: ') #connect node and private posting key, demo account name: cdemo, posting key: 5JEZ1EiUjFKfsKP32b15Y7jybjvHQPhnvCYZ9BW62H1LDUnMvHz -s = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[postingkey]) +s = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[postingkey]) ``` #### 3. Check vote status<a name="votestat"></a> diff --git a/_tutorials-python/witness_listing_and_voting.md b/_tutorials-python/witness_listing_and_voting.md index 344172fd..80f157c0 100644 --- a/_tutorials-python/witness_listing_and_voting.md +++ b/_tutorials-python/witness_listing_and_voting.md @@ -10,11 +10,11 @@ canonical_url: witness_listing_and_voting.html -In this tutorial we show you how to create a list of active witnesses from the **Steem** blockchain and then vote or unvote for a witness using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. +In this tutorial we show you how to create a list of active witnesses from the **Hive** blockchain and then vote or unvote for a witness using the `commit` class found within the [steem-python](https://github.com/steemit/steem-python) library. ## Intro -The Steem python library has a built-in function to transmit transactions to the blockchain. We are using the `approve_witness` and `disapprove_witness` method found within the `commit` class in the library. We also use the `get_active_witnesses` function to query the blockchain for a list of available witnesses. Before we vote, we use the `get_account` function to check for all the witnesses that the user has currently voted for. This is not strictly necessary but adds to the useability of the process. The `approve_witness` method has 3 parameters: +The Hive python library has a built-in function to transmit transactions to the blockchain. We are using the `approve_witness` and `disapprove_witness` method found within the `commit` class in the library. We also use the `get_active_witnesses` function to query the blockchain for a list of available witnesses. Before we vote, we use the `get_account` function to check for all the witnesses that the user has currently voted for. This is not strictly necessary but adds to the useability of the process. The `approve_witness` method has 3 parameters: 1. _witness_ - The witness to approve 1. _account_ - The source user account for the voting @@ -25,7 +25,7 @@ The `disapprove_witness` has the same parameters except for `_approve_` which is ## Steps 1. [**App setup**](#setup) - Library install and import. Connection to testnet -1. [**User information and steem node**](#userinfo) - Input user information and connection to Steem node +1. [**User information and steem node**](#userinfo) - Input user information and connection to Hive node 1. [**Active witness list**](#list) - Create a list of active as well as already voted for witnesses 1. [**Vote / Unvote**](#commit) - Input witness name and commite vote/unvote to blockchain @@ -45,9 +45,9 @@ import steem from pick import pick import pprint -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } ``` @@ -63,7 +63,7 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) #check valid user userinfo = client.get_account(username) diff --git a/_tutorials-recipes/account-creation-process.md b/_tutorials-recipes/account-creation-process.md index 1b6a6898..3ab44e9c 100644 --- a/_tutorials-recipes/account-creation-process.md +++ b/_tutorials-recipes/account-creation-process.md @@ -7,7 +7,7 @@ layout: full canonical_url: account-creation-process.html --- -This recipe will take you through the different options when creating accounts on the Steem blockchain. +This recipe will take you through the different options when creating accounts on the Hive blockchain. ## Intro @@ -21,13 +21,13 @@ The Resource Credit system gives us two ways to create an account. We describe t | Discounted account creations | Non-discounted account creations | | - | - | -| You can purchase Account Creation Tokens(ACT) and use them to create an account. These tokens do not expire.| You need to create an account and wait for it to be approved by the Steemit faucet | -| Account's are created immediately at no additional cost. | You are required to pay the 3 STEEM to create an account and wait for the account to be approved. | +| You can purchase Account Creation Tokens(ACT) and use them to create an account. These tokens do not expire.| You need to create an account and wait for it to be approved by the Hive faucet | +| Account's are created immediately at no additional cost. | You are required to pay the 3 HIVE to create an account and wait for the account to be approved. | #### 1. Discounted account creations<a name="discounted"></a> -The discounted account creation process uses an Account Creation Token(ACT) that is purchased with Resource Credits (RC) to create the account instead of paying the creation fee in STEEM. +The discounted account creation process uses an Account Creation Token(ACT) that is purchased with Resource Credits (RC) to create the account instead of paying the creation fee in HIVE. ACTs are _only_ good for creating accounts. They have no other purpose. They do not expire, are not transferable, and there is also no upper limit to the amount of tokens one can have. (If you're a hoarder, you can be stockpile them.) There is however a limit on the total amount of tokens available on the blockchain for claiming at any one time. The available tokens replenish over time, and the limit is decided upon by the witnesses. @@ -38,13 +38,13 @@ Claiming tokens is the first step required to create an account. To do this, bro "claim_account", { "creator": "creator", - "fee": "0.000 STEEM", + "fee": "0.000 HIVE", "extensions": [] } ] ``` -Once you have claimed a token, broadcast the `create_claimed_account` operation to create the account using the account that claimed the token. Select a new unique account name and provide account keys for the new account. These can be generated using any of the Steem libraries available. +Once you have claimed a token, broadcast the `create_claimed_account` operation to create the account using the account that claimed the token. Select a new unique account name and provide account keys for the new account. These can be generated using any of the Hive libraries available. ```json [ @@ -82,13 +82,13 @@ Accounts created with this method, don't have any SP, but do have enough RC to i #### 2. Non-discounted account creation<a name="nondisc"></a> -Non-discounted account creation operation allows you to create accounts by paying an account creation fee of 3 STEEM as part of the account creation api call. We use the `account_create` operation to commit this transaction to the blockchain. When creating a new account, the new `account_name` needs to be supplied. The keys must be derived from an owner-key which must be kept safe. The account keys can be generated using the `new_account_name`, owner-key and Steem tools. +Non-discounted account creation operation allows you to create accounts by paying an account creation fee of 3 HIVE as part of the account creation api call. We use the `account_create` operation to commit this transaction to the blockchain. When creating a new account, the new `account_name` needs to be supplied. The keys must be derived from an owner-key which must be kept safe. The account keys can be generated using the `new_account_name`, owner-key and Hive tools. ```json [ "account_create", { - "fee": "3.00 STEEM", + "fee": "3.00 HIVE", "creator": "creator", "new_account_name": "new_account_name", "owner": { diff --git a/_tutorials-recipes/calculate_rc_recipe.md b/_tutorials-recipes/calculate_rc_recipe.md index 4f3a40f8..901bd816 100644 --- a/_tutorials-recipes/calculate_rc_recipe.md +++ b/_tutorials-recipes/calculate_rc_recipe.md @@ -7,17 +7,17 @@ layout: full canonical_url: calculate_rc_recipe.html --- -Since HF20 a Resource Credit (RC) system has been implemented to manage the number of transactions (comments, votes, transfers, etc) you can execute on the blockchain at any given time. This recipe will look at how to calculate your current RC and also what the current RC cost is for a given transaction. This recipe is far more 'basics oriented' than most. For a more in-depth description of how RC's work consume [this excellent RC demo](https://github.com/steemit/rcdemo) created by Steemit's Blockchain Team. +Since HF20 a Resource Credit (RC) system has been implemented to manage the number of transactions (comments, votes, transfers, etc) you can execute on the blockchain at any given time. This recipe will look at how to calculate your current RC and also what the current RC cost is for a given transaction. This recipe is far more 'basics oriented' than most. For a more in-depth description of how RC's work consume [this excellent RC demo](https://github.com/steemit/rcdemo) created by Hive's Blockchain Team. ## Intro -RCs are non-transferable credits that accrue to each Steem account based on how much Steem Power(SP) it has. An account spends RC when it transacts on the Steem blockchain. RCs regenerate over a 5 day period. If an account doesn’t have sufficient credits, the transaction will not be allowed to occur. +RCs are non-transferable credits that accrue to each Hive account based on how much Hive Power(SP) it has. An account spends RC when it transacts on the Hive blockchain. RCs regenerate over a 5 day period. If an account doesn’t have sufficient credits, the transaction will not be allowed to occur. The price of a transaction (which consumes a particular resource, or resources) is based on the current stockpile of those resources. As a stockpile of a resource decreases, the RC cost of that resource increases. In other words, as the stockpile goes down, accounts will have to pay more RCs to use the remaining resources. This system disincentivize the over-consumption of resources by users as well as spam. The RC system uses three measurements to determine how much a transaction should cost in terms of RCs: blockchain size, compute time, and state size. If an transaction is especially expensive in any one of these measurements, then performing that operation will be costly in terms of RCs. It is important to bear in mind that these are objective measurements of resource consumption at the blockchain level, so when something is expensive in RCs, all that means is that performing the action places a high burden on the network relative to other operations. -There are applications available to check an account's status, like [steemd.com](https://steemd.com/@username), but here we will look at how calculate the values manually. +There are applications available to check an account's status, like [hiveblocks.com](https://hiveblocks.com/@username), but here we will look at how calculate the values manually. ## Calculating available RC @@ -54,9 +54,9 @@ A community created library, [beem-python](https://github.com/holgern/beem) offe import beem from beem.rc import RC -client = beem.Steem() +client = beem.Hive() -rc = RC(steem_instance=client) +rc = RC(hive_instance=client) #beem sets its own rough, default values if you don't pass them in. print(rc.comment()) #(self, tx_size=1000, permlink_length=10, parent_permlink_length=10) print(rc.vote()) #(self, tx_size=210) @@ -82,8 +82,8 @@ print(rc.vote(vote_tx)) ``` You can find the source for beem's RC class in the [beem github repo](https://github.com/holgern/beem/blob/master/beem/rc.py) -Additional info can also be found in [this article by steem user @holger80](https://steemit.com/utopian-io/@holger80/update-for-beem-adding-rc-costs-calculation-and-witnesssetproperties-broadcasting?sort=new) +Additional info can also be found in [this article by steem user @holger80](https://hive.blog/utopian-io/@holger80/update-for-beem-adding-rc-costs-calculation-and-witnesssetproperties-broadcasting?sort=new) ## Allocation of RC to blockchain resources -An in depth look at how RC's are assigned to each of the three resources (CPU megacycles/state memory/history size) can be found in Steemit's wiki articles for [RC Bandwidth System](https://github.com/steemit/steem/wiki/RC-Bandwidth-System) and [Parameters](https://github.com/steemit/steem/wiki/RC-Bandwidth-Parameters) +An in depth look at how RC's are assigned to each of the three resources (CPU megacycles/state memory/history size) can be found in Hive's wiki articles for [RC Bandwidth System](https://github.com/steemit/steem/wiki/RC-Bandwidth-System) and [Parameters](https://github.com/steemit/steem/wiki/RC-Bandwidth-Parameters) diff --git a/_tutorials-recipes/estimate_upvote.md b/_tutorials-recipes/estimate_upvote.md index 9abc3c4e..b450e06f 100644 --- a/_tutorials-recipes/estimate_upvote.md +++ b/_tutorials-recipes/estimate_upvote.md @@ -1,24 +1,24 @@ --- title: Estimate the value of an upvote position: 1 -description: Calculate the approximate value of an upvote on Steem +description: Calculate the approximate value of an upvote on Hive exclude: true layout: full canonical_url: estimate_upvote.html --- -*By the end of this recipe you should know how to estimate value of each vote on Steem.* +*By the end of this recipe you should know how to estimate value of each vote on Hive.* This recipe will take you through the process of fetching necessary data and formulating estimation. ## Intro -Calculating value of each vote depends on multiple factors. Reward fund, recent claims, account's total vests, rate of the sbd, voting power and weight of the vote. It is quite useful information for users to see and estimate. All of the data is possible to get via available APIs. +Calculating value of each vote depends on multiple factors. Reward fund, recent claims, account's total vests, rate of the hbd, voting power and weight of the vote. It is quite useful information for users to see and estimate. All of the data is possible to get via available APIs. ## Steps 1. **Get Reward Fund** Current reward fund information is crucial part of estimation -1. **Get Account** Steem power and voting power is another important info +1. **Get Account** Hive power and voting power is another important info 1. **Feed history** To get price rate reported by witnesses 1. **Final calculation** Formulate all information we have @@ -33,7 +33,7 @@ The response we're working with will look like: { "id":0, "name":"post", - "reward_balance":"741222.051 STEEM", + "reward_balance":"741222.051 HIVE", "recent_claims":"457419472820935017", "last_update":"2018-05-23T12:08:36", "content_constant":"2000000000000", @@ -123,21 +123,21 @@ The response example will look like: "can_vote": true, "voting_power": 9800, "last_vote_time": "2018-05-22T20:10:45", - "balance": "810.371 STEEM", - "savings_balance": "0.000 STEEM", - "sbd_balance": "4613.426 SBD", - "sbd_seconds": "10828300402329", - "sbd_seconds_last_update": "2018-05-22T22:34:24", - "sbd_last_interest_payment": "2018-04-25T18:26:15", - "savings_sbd_balance": "0.000 SBD", - "savings_sbd_seconds": "0", - "savings_sbd_seconds_last_update": "1970-01-01T00:00:00", - "savings_sbd_last_interest_payment": "1970-01-01T00:00:00", + "balance": "810.371 HIVE", + "savings_balance": "0.000 HIVE", + "hbd_balance": "4613.426 HBD", + "hbd_seconds": "10828300402329", + "hbd_seconds_last_update": "2018-05-22T22:34:24", + "hbd_last_interest_payment": "2018-04-25T18:26:15", + "savings_hbd_balance": "0.000 HBD", + "savings_hbd_seconds": "0", + "savings_hbd_seconds_last_update": "1970-01-01T00:00:00", + "savings_hbd_last_interest_payment": "1970-01-01T00:00:00", "savings_withdraw_requests": 0, - "reward_sbd_balance": "79.490 SBD", - "reward_steem_balance": "0.000 STEEM", + "reward_hbd_balance": "79.490 HBD", + "reward_hive_balance": "0.000 HIVE", "reward_vesting_balance": "608341.169185 VESTS", - "reward_vesting_steem": "293.101 STEEM", + "reward_vesting_hive": "293.101 HIVE", "vesting_shares": "93540695.469156 VESTS", "delegated_vesting_shares": "0.000000 VESTS", "received_vesting_shares": "0.000000 VESTS", @@ -163,7 +163,7 @@ The response example will look like: "average_market_bandwidth": 1170000000, "lifetime_market_bandwidth": 1170000000, "last_market_bandwidth_update": "2016-07-27T15:10:09", - "vesting_balance": "0.000 STEEM", + "vesting_balance": "0.000 HIVE", "reputation": "146151592482665", "transfer_history": [], "market_history": [], @@ -187,8 +187,8 @@ The response example will look like: ```json { - "base": "3.029 SBD", - "quote": "1.000 STEEM" + "base": "3.029 HBD", + "quote": "1.000 HIVE" } ``` @@ -201,7 +201,7 @@ total_vests = vesting_shares + received_vesting_shares - delegated_vesting_share final_vest = total_vests * 1e6 power = (voting_power * weight / 10000) / 50 rshares = power * final_vest / 10000 -estimate = rshares / recent_claims * reward_balance * sbd_median_price +estimate = rshares / recent_claims * reward_balance * hbd_median_price ``` That's all there is to it. diff --git a/_tutorials-recipes/exchange_node.md b/_tutorials-recipes/exchange_node.md index 3eec9362..ad295381 100644 --- a/_tutorials-recipes/exchange_node.md +++ b/_tutorials-recipes/exchange_node.md @@ -10,7 +10,7 @@ canonical_url: exchange_node.html ### Intro -By defining a range of accounts to track as a JSON pair `["from", "to"]`, we can instruct `steemd` to only track the exact accounts that involve the exchange. +By defining a range of accounts to track as a JSON pair `["from", "to"]`, we can instruct `hived` to only track the exact accounts that involve the exchange. These instructions are similar to setting up a [Get Transaction Node]({{ '/tutorials-recipes/get_transaction_node.html' | relative_url }}), but requires far less time to sync because it is configured to focus on only the exchange account(s). @@ -21,7 +21,7 @@ If you prefer a docker version of these instructions, please refer to: ### Sections * [Minimum Requirements](#minimum-requirements) -* [Building `steemd`](#building-steemd) +* [Building `hived`](#building-hived) * [Configure Node](#configure-node) * [Latest Block Log](#latest-block-log) * [Sync Node](#sync-node) @@ -31,7 +31,7 @@ If you prefer a docker version of these instructions, please refer to: This tutorial assumes Ubuntu Server 18.04 LTS 16GB RAM and 320GB SSD/HDD. -### Building `steemd` +### Building `hived` ```bash sudo apt-get update @@ -53,7 +53,7 @@ cmake \ -DLOW_MEMORY_NODE=ON \ -DCLEAR_VOTES=ON \ -DSKIP_BY_TX_ID=OFF \ - -DSTEEM_LINT_LEVEL=OFF \ + -DHIVE_LINT_LEVEL=OFF \ -DENABLE_MIRA=OFF \ .. make -j$(nproc) @@ -63,12 +63,12 @@ sudo make install ### Configure Node ```bash -mkdir -p ~/steem_data -cd ~/steem_data -steemd --data-dir=. +mkdir -p ~/hive_data +cd ~/hive_data +hived --data-dir=. ``` -At the startup banner, press `^C` (Ctrl+C) to exit `steemd`. As a side effect, a default data-dir is created. Now we can purge the empty blockchain and create `config.ini` as follows: +At the startup banner, press `^C` (Ctrl+C) to exit `hived`. As a side effect, a default data-dir is created. Now we can purge the empty blockchain and create `config.ini` as follows: ```bash rm -Rf blockchain @@ -103,10 +103,10 @@ Save `config.ini`. Download the block log (optional but recommended). ```bash -cd ~/steem_data +cd ~/hive_data mkdir -p blockchain wget -O blockchain/block_log https://s3.amazonaws.com/steemit-dev-blockchainstate/block_log-latest -steemd --data-dir=. --replay-blockchain +hived --data-dir=. --replay-blockchain ``` ### Sync Node @@ -114,20 +114,20 @@ steemd --data-dir=. --replay-blockchain If you did not download the latest block log: ```bash -cd ~/steem_data -steemd --data-dir=. --resync-blockchain +cd ~/hive_data +hived --data-dir=. --resync-blockchain ``` -After *replay* or *resync* is complete, the console will display `Got ## transactions from ...`. It's possible to close `steemd` with `^C` (Ctrl+C). Then, to start the node again: +After *replay* or *resync* is complete, the console will display `Got ## transactions from ...`. It's possible to close `hived` with `^C` (Ctrl+C). Then, to start the node again: ```bash -cd ~/steem_data -steemd --data-dir=. +cd ~/hive_data +hived --data-dir=. ``` ### Troubleshooting<a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm" /></a> -**Problem:** Got an error while trying to compile `steemd`: +**Problem:** Got an error while trying to compile `hived`: `c++: internal compiler error: Killed (program cc1plus)` @@ -146,9 +146,9 @@ sudo swapon /var/swap.img **Problem:** Got an error while replaying: -`IO error: While open a file for appending: /root/steem_data/./blockchain/rocksdb_witness_object/012590.sst: Too many open files` +`IO error: While open a file for appending: /root/hive_data/./blockchain/rocksdb_witness_object/012590.sst: Too many open files` -**Solution:** You're using MIRA, but this tutorial recommends *not* to (`-DENABLE_MIRA=OFF`). If you really *intend* to try MIRA, you will need to set higher limits. Note, if you are also running `steemd` as `root` (not recommended), you must explicitly set hard/soft nofile/nproc lines for `root` instead of `*` in `/etc/security/limits.conf`. +**Solution:** You're using MIRA, but this tutorial recommends *not* to (`-DENABLE_MIRA=OFF`). If you really *intend* to try MIRA, you will need to set higher limits. Note, if you are also running `hived` as `root` (not recommended), you must explicitly set hard/soft nofile/nproc lines for `root` instead of `*` in `/etc/security/limits.conf`. To set the open file limit ... diff --git a/_tutorials-recipes/forum-market-bandwidth.md b/_tutorials-recipes/forum-market-bandwidth.md index 2675add2..0b53cd74 100644 --- a/_tutorials-recipes/forum-market-bandwidth.md +++ b/_tutorials-recipes/forum-market-bandwidth.md @@ -10,10 +10,10 @@ canonical_url: forum-market-bandwidth.html ### Intro <h4 class="danger well"> - Please note, Bandwidth has been replaced by <a href="{{ '/search/?q=resource+credits' | relative_url }}">Resource Credits</a>. This document is outdated and will remain in place to give historical context prior to HF20. Also see: <a href="https://github.com/steemit/steem/wiki/RC-Bandwidth-System">RC Bandwidth System</a>, <a href="https://github.com/steemit/steem/releases/tag/v0.20.2">0.20.2 Release Notes</a>, <a href="https://steemit.com/steem/@steemitdev/developer-guide-resource-credit-system">Developer Guide: Resource Credit System</a> + Please note, Bandwidth has been replaced by <a href="{{ '/search/?q=resource+credits' | relative_url }}">Resource Credits</a>. This document is outdated and will remain in place to give historical context prior to HF20. Also see: <a href="https://github.com/steemit/steem/wiki/RC-Bandwidth-System">RC Bandwidth System</a>, <a href="https://github.com/steemit/steem/releases/tag/v0.20.2">0.20.2 Release Notes</a>, <a href="https://hive.blog/steem/@steemitdev/developer-guide-resource-credit-system">Developer Guide: Resource Credit System</a> </h4> -We're going over the various API calls needed to determine the remaining bandwidth available to a particular account. As mentioned in the [STEEM Whitepaper](https://steem.io/steem-whitepaper.pdf): +We're going over the various API calls needed to determine the remaining bandwidth available to a particular account. As mentioned in the [HIVE Whitepaper](https://hive.io/steem-whitepaper.pdf): > Bandwidth used by an individual user should be measured over a suitably long period of time to allow that user to time-shift their usage. Users tend to login, do many things at once, then logout. This means that @@ -28,7 +28,7 @@ Bandwidth is specific to each account and depends on account activity. 1. [Getting Account Bandwidth](#getting-account-bandwidth) 1. [Dynamic Global Properties](#dynamic-global-properties) -1. [Account STEEM Power](#account-steem-power) +1. [Account HIVE Power](#account-steem-power) 1. [Calculate](#calculate) ### Getting Account Bandwidth @@ -42,7 +42,7 @@ curl -s --data '{ "forum" ], "id":1 -}' https://api.steemit.com +}' https://api.hive.blog ``` ```json @@ -69,7 +69,7 @@ Note, `average_bandwidth` is expressed as an integer with six decimal places rep To do the calculation, we need `max_virtual_bandwidth` and `total_vesting_shares` from the global properties, e.g.: ```bash -curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_properties", "params":[], "id":1}' https://api.steemit.com +curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_properties", "params":[], "id":1}' https://api.hive.blog ``` ```json @@ -83,19 +83,19 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_pro "current_witness":"followbtcnews", "total_pow":514415, "num_pow_witnesses":172, - "virtual_supply":"283443693.176 STEEM", - "current_supply":"271786073.683 STEEM", - "confidential_supply":"0.000 STEEM", - "current_sbd_supply":"15504633.926 SBD", - "confidential_sbd_supply":"0.000 SBD", - "total_vesting_fund_steem":"193007548.472 STEEM", + "virtual_supply":"283443693.176 HIVE", + "current_supply":"271786073.683 HIVE", + "confidential_supply":"0.000 HIVE", + "current_hbd_supply":"15504633.926 HBD", + "confidential_hbd_supply":"0.000 HBD", + "total_vesting_fund_hive":"193007548.472 HIVE", "total_vesting_shares":"391468555319.000697 VESTS", - "total_reward_fund_steem":"0.000 STEEM", + "total_reward_fund_hive":"0.000 HIVE", "total_reward_shares2":"0", "pending_rewarded_vesting_shares":"382967391.274340 VESTS", - "pending_rewarded_vesting_steem":"187173.234 STEEM", - "sbd_interest_rate":0, - "sbd_print_rate":2966, + "pending_rewarded_vesting_hive":"187173.234 HIVE", + "hbd_interest_rate":0, + "hbd_print_rate":2966, "maximum_block_size":65536, "current_aslot":24341309, "recent_slots_filled":"340282366920938463463374607431768211455", @@ -109,12 +109,12 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_pro } ``` -### Account STEEM Power +### Account HIVE Power -We also need to know how much the account has in STEEM Power from `vesting_shares` and `received_vesting_shares`: +We also need to know how much the account has in HIVE Power from `vesting_shares` and `received_vesting_shares`: ```bash -curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_accounts", "params":[["cheetah"]], "id":1}' https://api.steemit.com +curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_accounts", "params":[["cheetah"]], "id":1}' https://api.hive.blog ``` ```json @@ -140,7 +140,7 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_accounts", "params "key_auths":[["STM5bicRFWhpxnwBymo2HHJv6mFLiaP6AwVVsFEnnVjVcqbvqzvFt", 100], ["STM7yFmwPSKUP7FCV7Ut9Aev5cwfDzJZixcreS1U3ha36XG47ZpqT", 100], ["STM8Jn23vNmBzVuDAgQeZzzR17LmruENmmZmv1ra53tbsBgYbJFwk", 100]] }, "memo_key":"STM7yFmwPSKUP7FCV7Ut9Aev5cwfDzJZixcreS1U3ha36XG47ZpqT", - "json_metadata":"{\"profile\":{\"profile_image\":\"https:\/\/c1.staticflickr.com\/6\/5739\/22389343016_25d10c52a3_b.jpg\",\"about\":\"I am a robot that automatically finds similar content. Check the website linked to on my blog to learn more about me!\",\"website\":\"http:\/\/steemit.com\/steemit\/@cheetah\/faq-about-cheetah\"}}", + "json_metadata":"{\"profile\":{\"profile_image\":\"https:\/\/c1.staticflickr.com\/6\/5739\/22389343016_25d10c52a3_b.jpg\",\"about\":\"I am a robot that automatically finds similar content. Check the website linked to on my blog to learn more about me!\",\"website\":\"http:\/\/hive.blog\/steemit\/@cheetah\/faq-about-cheetah\"}}", "proxy":"", "last_owner_update":"1970-01-01T00:00:00", "last_account_update":"2017-06-13T00:14:00", @@ -155,21 +155,21 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_accounts", "params "can_vote":true, "voting_power":1249, "last_vote_time":"2018-07-18T16:39:21", - "balance":"118.463 STEEM", - "savings_balance":"0.000 STEEM", - "sbd_balance":"67.717 SBD", - "sbd_seconds":"127094582318", - "sbd_seconds_last_update":"2018-07-18T14:13:15", - "sbd_last_interest_payment":"2018-06-20T12:01:15", - "savings_sbd_balance":"0.000 SBD", - "savings_sbd_seconds":"0", - "savings_sbd_seconds_last_update":"1970-01-01T00:00:00", - "savings_sbd_last_interest_payment":"1970-01-01T00:00:00", + "balance":"118.463 HIVE", + "savings_balance":"0.000 HIVE", + "hbd_balance":"67.717 HBD", + "hbd_seconds":"127094582318", + "hbd_seconds_last_update":"2018-07-18T14:13:15", + "hbd_last_interest_payment":"2018-06-20T12:01:15", + "savings_hbd_balance":"0.000 HBD", + "savings_hbd_seconds":"0", + "savings_hbd_seconds_last_update":"1970-01-01T00:00:00", + "savings_hbd_last_interest_payment":"1970-01-01T00:00:00", "savings_withdraw_requests":0, - "reward_sbd_balance":"0.005 SBD", - "reward_steem_balance":"0.009 STEEM", + "reward_hbd_balance":"0.005 HBD", + "reward_hive_balance":"0.009 HIVE", "reward_vesting_balance":"26.366463 VESTS", - "reward_vesting_steem":"0.013 STEEM", + "reward_vesting_hive":"0.013 HIVE", "vesting_shares":"4770940.577823 VESTS", "delegated_vesting_shares":"0.000000 VESTS", "received_vesting_shares":"16020356.484882 VESTS", @@ -190,7 +190,7 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_accounts", "params "average_market_bandwidth":2406616155, "lifetime_market_bandwidth":"224370000000", "last_market_bandwidth_update":"2018-07-12T04:57:36", - "vesting_balance":"0.000 STEEM", + "vesting_balance":"0.000 HIVE", "reputation":"305786119478594", "transfer_history":[], "market_history":[], diff --git a/_tutorials-recipes/get_transaction_node.md b/_tutorials-recipes/get_transaction_node.md index fd00182d..753904b9 100644 --- a/_tutorials-recipes/get_transaction_node.md +++ b/_tutorials-recipes/get_transaction_node.md @@ -15,7 +15,7 @@ This tutorial will show how to setup the lowest possible resource node that can ### Sections * [Minimum Requirements](#minimum-requirements) -* [Building `steemd`](#building-steemd) +* [Building `hived`](#building-hived) * [Configure Node](#configure-node) * [Latest Block Log](#latest-block-log) * [Sync Node](#sync-node) @@ -25,7 +25,7 @@ This tutorial will show how to setup the lowest possible resource node that can This tutorial assumes Ubuntu Server 18.04 LTS 16GB RAM and 320GB SSD/HDD. -### Building `steemd` +### Building `hived` ```bash sudo apt-get update @@ -47,7 +47,7 @@ cmake \ -DLOW_MEMORY_NODE=ON \ -DCLEAR_VOTES=ON \ -DSKIP_BY_TX_ID=OFF \ - -DSTEEM_LINT_LEVEL=OFF \ + -DHIVE_LINT_LEVEL=OFF \ -DENABLE_MIRA=OFF \ .. make -j$(nproc) @@ -57,12 +57,12 @@ sudo make install ### Configure Node ```bash -mkdir -p ~/steem_data -cd ~/steem_data -steemd --data-dir=. +mkdir -p ~/hive_data +cd ~/hive_data +hived --data-dir=. ``` -At the startup banner, press `^C` (Ctrl+C) to exit `steemd`. As a side effect, a default data-dir is created. Now we can purge the empty blockchain and create `config.ini` as follows: +At the startup banner, press `^C` (Ctrl+C) to exit `hived`. As a side effect, a default data-dir is created. Now we can purge the empty blockchain and create `config.ini` as follows: ```bash rm -Rf blockchain @@ -95,10 +95,10 @@ Save `config.ini`. Download the block log (optional but recommended). ```bash -cd ~/steem_data +cd ~/hive_data mkdir -p blockchain wget -O blockchain/block_log https://s3.amazonaws.com/steemit-dev-blockchainstate/block_log-latest -steemd --data-dir=. --replay-blockchain +hived --data-dir=. --replay-blockchain ``` ### Sync Node @@ -106,20 +106,20 @@ steemd --data-dir=. --replay-blockchain If you did not download the latest block log: ```bash -cd ~/steem_data -steemd --data-dir=. --resync-blockchain +cd ~/hive_data +hived --data-dir=. --resync-blockchain ``` -After *replay* or *resync* is complete, the console will display `Got ## transactions from ...`. It's possible to close `steemd` with `^C` (Ctrl+C). Then, to start the node again: +After *replay* or *resync* is complete, the console will display `Got ## transactions from ...`. It's possible to close `hived` with `^C` (Ctrl+C). Then, to start the node again: ```bash -cd ~/steem_data -steemd --data-dir=. +cd ~/hive_data +hived --data-dir=. ``` ### Troubleshooting<a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm" /></a> -**Problem:** Got an error while trying to compile `steemd`: +**Problem:** Got an error while trying to compile `hived`: `c++: internal compiler error: Killed (program cc1plus)` @@ -138,9 +138,9 @@ sudo swapon /var/swap.img **Problem:** Got an error while replaying: -`IO error: While open a file for appending: /root/steem_data/./blockchain/rocksdb_witness_object/012590.sst: Too many open files` +`IO error: While open a file for appending: /root/hive_data/./blockchain/rocksdb_witness_object/012590.sst: Too many open files` -**Solution:** You're using MIRA, but this tutorial recommends *not* to (`-DENABLE_MIRA=OFF`). If you really *intend* to try MIRA, you will need to set higher limits. Note, if you are also running `steemd` as `root` (not recommended), you must explicitly set hard/soft nofile/nproc lines for `root` instead of `*` in `/etc/security/limits.conf`. +**Solution:** You're using MIRA, but this tutorial recommends *not* to (`-DENABLE_MIRA=OFF`). If you really *intend* to try MIRA, you will need to set higher limits. Note, if you are also running `hived` as `root` (not recommended), you must explicitly set hard/soft nofile/nproc lines for `root` instead of `*` in `/etc/security/limits.conf`. To set the open file limit ... diff --git a/_tutorials-recipes/how-to-serialize-and-sign-using-js.md b/_tutorials-recipes/how-to-serialize-and-sign-using-js.md index 14f3846f..b45c9c87 100644 --- a/_tutorials-recipes/how-to-serialize-and-sign-using-js.md +++ b/_tutorials-recipes/how-to-serialize-and-sign-using-js.md @@ -1,10 +1,10 @@ --- -title: How to serialize and sign Steem transactions using Javascript +title: How to serialize and sign Hive transactions using Javascript position: 1 -description: Serialization and signing without additional Steem Javascript libraries. +description: Serialization and signing without additional Hive Javascript libraries. exclude: true layout: hive-post -canonical_url: https://steemit.com/steem/@mahdiyari/how-to-serialize-and-sign-steem-transactions-using-javascript-without-steem-javascript-libraries +canonical_url: https://hive.blog/steem/@mahdiyari/how-to-serialize-and-sign-steem-transactions-using-javascript-without-steem-javascript-libraries --- {{'@mahdiyari/how-to-serialize-and-sign-steem-transactions-using-javascript-without-steem-javascript-libraries' | hive_post}} diff --git a/_tutorials-recipes/jussi-multiplexer.md b/_tutorials-recipes/jussi-multiplexer.md index 572699a7..64ff265d 100644 --- a/_tutorials-recipes/jussi-multiplexer.md +++ b/_tutorials-recipes/jussi-multiplexer.md @@ -44,11 +44,11 @@ cd jussi Edit the file `DEV_config.json` and change all: -`https://steemd.steemitdev.com` +`https://hived.steemitdev.com` ... to ... -`https://api.steemit.com` +`https://api.hive.blog` Also consider adding the [`retries`]({{ '/services/#retry' | relative_url }}) element to your `DEV_config.json`. @@ -67,7 +67,7 @@ Now, you can use your new `jussi` node as if it's a full node running locally. curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_block", "params":[8675309], "id":1}' http://localhost:9000 ``` -In this case, `http://localhost:9000` will act like a full node. In reality, it's passing all of its request to its upstream, `https://api.steemit.com`. +In this case, `http://localhost:9000` will act like a full node. In reality, it's passing all of its request to its upstream, `https://api.hive.blog`. Once you've implemented your own `jussi` node in this manner, you should notice an improvement in bandwidth utilization. If you're internet provider implements packet shaping strategies, this will have a positive impact because you are no longer streaming the entire blockchain once for each application. diff --git a/_tutorials-recipes/mira-performance-tuning.md b/_tutorials-recipes/mira-performance-tuning.md index 0510756e..94ea0792 100644 --- a/_tutorials-recipes/mira-performance-tuning.md +++ b/_tutorials-recipes/mira-performance-tuning.md @@ -4,7 +4,7 @@ position: 1 description: Provides a way to get the most performance on specific hardware. exclude: true layout: hive-post -canonical_url: https://steemit.com/steemit/@gerbino/mira-performance-tuning +canonical_url: https://hive.blog/steemit/@gerbino/mira-performance-tuning --- <center> diff --git a/_tutorials-recipes/node-cli.md b/_tutorials-recipes/node-cli.md index 50b4c765..97dad67f 100644 --- a/_tutorials-recipes/node-cli.md +++ b/_tutorials-recipes/node-cli.md @@ -1,7 +1,7 @@ --- -title: Steem Node Command Line Options +title: Hive Node Command Line Options position: 1 -description: All options available to `steemd` at command line interface +description: All options available to `hived` at command line interface exclude: true layout: full canonical_url: node-cli.html @@ -10,7 +10,7 @@ canonical_url: node-cli.html Command line options are typically expressed with double-dash (e.g., `--replay-blockchain`): ```bash -steemd --data-dir=. --replay-blockchain +hived --data-dir=. --replay-blockchain ``` Note that nearly all options available from `config.ini` can be set as command-line options. See: [Node Config]({{ '/tutorials-recipes/node-config.html' | relative_url }}) diff --git a/_tutorials-recipes/node-config.md b/_tutorials-recipes/node-config.md index e0820e70..8ae8de86 100644 --- a/_tutorials-recipes/node-config.md +++ b/_tutorials-recipes/node-config.md @@ -1,13 +1,13 @@ --- -title: Steem Node Config +title: Hive Node Config position: 1 -description: All `config.ini` options available to `steemd` +description: All `config.ini` options available to `hived` exclude: true layout: full canonical_url: node-config.html --- -When running `steemd` for the first time, once the startup banner appears, press `Ctrl+C` to exit. Running `steemd` like this will generate a data directory and a pristine copy of `config.ini`. +When running `hived` for the first time, once the startup banner appears, press `Ctrl+C` to exit. Running `hived` like this will generate a data directory and a pristine copy of `config.ini`. Also refer to: @@ -700,7 +700,7 @@ See: [seednodes.txt](https://github.com/steemit/steem/blob/master/doc/seednodes. ```ini # example, override compiled seeds -p2p-seed-node = seed-east.steemit.com:2001 seed-central.steemit.com:2001 seed-west.steemit.com:2001 steem-seed1.abit-more.com:2001 52.74.152.79:2001 seed.steemd.com:34191 anyx.co:2001 seed.xeldal.com:12150 seed.steemnodes.com:2001 seed.liondani.com:2016 gtg.steem.house:2001 seed.jesta.us:2001 steemd.pharesim.me:2001 5.9.18.213:2001 lafonasteem.com:2001 seed.rossco99.com:2001 steem-seed.altcap.io:40696 seed.roelandp.nl:2001 steem.global:2001 seed.esteem.ws:2001 94.23.33.61:2001 104.199.118.92:2001 192.99.4.226:2001 seed.bhuz.info:2001 seed.steemviz.com:2001 steem-seed.lukestokes.info:2001 seed.blackrift.net:2001 seed.followbtcnews.com:2001 node.mahdiyari.info:2001 seed.jerrybanfield.com:2001 seed.windforce.farm:2001 seed.curiesteem.com:2001 seed.riversteem.com:2001 steem-seed.furion.me:2001 148.251.237.104:2001 seed1.blockbrothers.io:2001 +p2p-seed-node = seed-east.hive.blog:2001 seed-central.hive.blog:2001 seed-west.hive.blog:2001 steem-seed1.abit-more.com:2001 52.74.152.79:2001 seed.hiveblocks.com:34191 anyx.co:2001 seed.xeldal.com:12150 seed.steemnodes.com:2001 seed.liondani.com:2016 gtg.steem.house:2001 seed.jesta.us:2001 hived.pharesim.me:2001 5.9.18.213:2001 lafonasteem.com:2001 seed.rossco99.com:2001 steem-seed.altcap.io:40696 seed.roelandp.nl:2001 steem.global:2001 seed.esteem.ws:2001 94.23.33.61:2001 104.199.118.92:2001 192.99.4.226:2001 seed.bhuz.info:2001 seed.steemviz.com:2001 steem-seed.lukestokes.info:2001 seed.blackrift.net:2001 seed.followbtcnews.com:2001 node.mahdiyari.info:2001 seed.jerrybanfield.com:2001 seed.windforce.farm:2001 seed.curiesteem.com:2001 seed.riversteem.com:2001 steem-seed.furion.me:2001 148.251.237.104:2001 seed1.blockbrothers.io:2001 ``` ```ini @@ -716,7 +716,7 @@ p2p-seed-node = 104.236.82.250:2001 p2p-seed-node = 212.47.249.84:40696 p2p-seed-node = 162.213.199.171:34191 p2p-seed-node = steem.kushed.com:2001 -p2p-seed-node = steemd.pharesim.me:2001 +p2p-seed-node = hived.pharesim.me:2001 p2p-seed-node = seed.steemed.net:2001 p2p-seed-node = steem.clawmap.com:2001 p2p-seed-node = seed.steemnodes.com:2001 @@ -964,9 +964,9 @@ webserver-ws-endpoint = 0.0.0.0:8752 Unix http endpoint for webserver requests (in addition to http and ws). -Intended for node operators who use nginx or jussi on their front ends and `steemd` running on the same box. Since TCP over localhost is inefficient, the ability to use unix-sockets was added. +Intended for node operators who use nginx or jussi on their front ends and `hived` running on the same box. Since TCP over localhost is inefficient, the ability to use unix-sockets was added. -Example usage (assuming option set to `/tmp/steemd.sock`): +Example usage (assuming option set to `/tmp/hived.sock`): ```bash curl -s --data '{ @@ -974,14 +974,14 @@ curl -s --data '{ "method": "condenser_api.get_account_count", "params": [], "id": 1 -}' --unix-socket /tmp/steemd.sock http: +}' --unix-socket /tmp/hived.sock http: ``` See: [#3205](https://github.com/steemit/steem/pull/3205) ```ini # example -webserver-unix-endpoint = /tmp/steemd.sock +webserver-unix-endpoint = /tmp/hived.sock ``` ### `rpc-endpoint`<a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm" /></a> @@ -1009,7 +1009,7 @@ webserver-thread-pool-size = 32 ### `enable-stale-production`<a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm" /></a> -Enable block production, even if the chain is stale. Leaving this `false` will keep `steemd` from producing blocks until we receive a recent block. +Enable block production, even if the chain is stale. Leaving this `false` will keep `hived` from producing blocks until we receive a recent block. ```ini # default diff --git a/_tutorials-recipes/paginated-api-methods.md b/_tutorials-recipes/paginated-api-methods.md index 225e2286..d969e6d7 100644 --- a/_tutorials-recipes/paginated-api-methods.md +++ b/_tutorials-recipes/paginated-api-methods.md @@ -39,7 +39,7 @@ curl -s --data '{ "order": "by_comment_voter" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` ### Start (primarily `database_api.list_*`) @@ -56,7 +56,7 @@ curl -s --data '{ "order": "by_comment_voter" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Using this pattern, it is possible to get the entire list of votes, given enough time. @@ -77,7 +77,7 @@ curl -s --data '{ "order": "by_comment_voter" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Using `by_comment_voter` sorts by the `author/permlink`, then the `voter`, so the start param consists of `author`, `permlink`, `voter`. @@ -104,7 +104,7 @@ The following methods have various forms of pagination: * [`list_limit_orders`](#database_apilist_limit_orders) * [`list_owner_histories`](#database_apilist_owner_histories) * [`list_savings_withdrawals`](#database_apilist_savings_withdrawals) - * [`list_sbd_conversion_requests`](#database_apilist_sbd_conversion_requests) + * [`list_hbd_conversion_requests`](#database_apilist_hbd_conversion_requests) * [`list_vesting_delegation_expirations`](#database_apilist_vesting_delegation_expirations) * [`list_vesting_delegations`](#database_apilist_vesting_delegations) * [`list_votes`](#database_apilist_votes) @@ -161,7 +161,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To get the next page of objects (`"start": 20`): @@ -176,7 +176,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To get the latest 10 objects (`"start": -1`): @@ -191,7 +191,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#account_history_api.get_account_history' | relative_url }}) @@ -216,7 +216,7 @@ curl -s --data '{ "order": "by_name" }, "id":1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of accounts by name (assuming `alice` is the last entry in the previous page): @@ -231,7 +231,7 @@ curl -s --data '{ "order": "by_name" }, "id":1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` When using `order` of `by_proxy`, the `start` param must be an array with the first element of the account being proxied to and the second being the first account to page from. Thus, to get the first page of accounts that proxy to `alice`: @@ -246,7 +246,7 @@ curl -s --data '{ "order": "by_proxy" }, "id":1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Then, to get the second page, assuming `bob` is the last account in the first result: @@ -261,7 +261,7 @@ curl -s --data '{ "order": "by_proxy" }, "id":1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` **Note:** Using `order` of `by_proxy` only orders the objects by proxy, it does not filter them (nor should it). @@ -278,7 +278,7 @@ curl -s --data '{ "order": "by_next_vesting_withdrawal" }, "id":1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of accounts by next vesting withdrawal: @@ -293,7 +293,7 @@ curl -s --data '{ "order": "by_next_vesting_withdrawal" }, "id":1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_accounts' | relative_url }}) @@ -317,7 +317,7 @@ curl -s --data '{ "order": "by_account" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of accounts by name (assuming `alice` is the last entry in the previous page): @@ -332,7 +332,7 @@ curl -s --data '{ "order": "by_account" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 accounts by effective date then by name with an relevant recovery account request: @@ -347,7 +347,7 @@ curl -s --data '{ "order": "by_effective_date" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_change_recovery_account_requests' | relative_url }}) @@ -371,7 +371,7 @@ curl -s --data '{ "order": "by_cashout_time" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of posts/comments by cashout time (assuming `2019-09-11T03:13:03`, `alice`, `alice-permlink` is the last `timestamp`, `author`, `permlink` entry in the previous page): @@ -386,7 +386,7 @@ curl -s --data '{ "order": "by_cashout_time" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 posts/comments by permlink: @@ -401,7 +401,7 @@ curl -s --data '{ "order": "by_permlink" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of posts/comments by permlink (assuming `alice`, `alice-permlink` is the last entry in the previous page): @@ -416,7 +416,7 @@ curl -s --data '{ "order": "by_permlink" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 posts/comments by root post: @@ -431,7 +431,7 @@ curl -s --data '{ "order": "by_root" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of posts/comments by root post: @@ -446,7 +446,7 @@ curl -s --data '{ "order": "by_root" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 posts/comments by parent post: @@ -461,7 +461,7 @@ curl -s --data '{ "order": "by_parent" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of posts/comments by parent post: @@ -476,7 +476,7 @@ curl -s --data '{ "order": "by_parent" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_comments' | relative_url }}) @@ -498,7 +498,7 @@ curl -s --data '{ "order": "by_account" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of accounts (assuming `alice` is the last entry in the previous page): @@ -513,7 +513,7 @@ curl -s --data '{ "order": "by_account" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 accounts by effective date: @@ -528,7 +528,7 @@ curl -s --data '{ "order": "by_effective_date" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of accounts (assuming `2019-09-12T00:00:00`, `alice` is the last entry in the previous page): @@ -543,7 +543,7 @@ curl -s --data '{ "order": "by_effective_date" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_decline_voting_rights_requests' | relative_url }}) @@ -565,7 +565,7 @@ curl -s --data '{ "order": "by_from_id" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of accounts (assuming `alice`, `99` is the last entry in the previous page): @@ -580,7 +580,7 @@ curl -s --data '{ "order": "by_from_id" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 escrows ordered by `ratification_deadline`: @@ -595,7 +595,7 @@ curl -s --data '{ "order": "by_ratification_deadline" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of escrows (assuming `true`, `2019-09-12T00:00:00`, `99` is the last entry in the previous page): @@ -610,7 +610,7 @@ curl -s --data '{ "order": "by_ratification_deadline" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_escrows' | relative_url }}) @@ -632,10 +632,10 @@ curl -s --data '{ "order": "by_price" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` -To list the next page of limit orders (assuming `base` of `85.405 STEEM`, `quote` of `17.192 SBD` is the last price entry in the previous page): +To list the next page of limit orders (assuming `base` of `85.405 HIVE`, `quote` of `17.192 HBD` is the last price entry in the previous page): ```bash curl -s --data '{ @@ -650,7 +650,7 @@ curl -s --data '{ "order": "by_price" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 limit ordered by `account`, `order_id`: @@ -665,7 +665,7 @@ curl -s --data '{ "order": "by_account" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of limit orders (assuming `alice`, `1567828370` is the last entry in the previous page): @@ -680,7 +680,7 @@ curl -s --data '{ "order": "by_account" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_limit_orders' | relative_url }}) @@ -698,7 +698,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of owner histories (assuming `alice`, `2019-09-12T00:00:00` is the last entry in the previous page): @@ -712,7 +712,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_owner_histories' | relative_url }}) @@ -735,7 +735,7 @@ curl -s --data '{ "order": "by_from_id" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of withdrawals (assuming `alice`, `1567828370` is the last entry in the previous page): @@ -750,7 +750,7 @@ curl -s --data '{ "order": "by_from_id" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 withdrawals ordered by `completed`, `from`: @@ -765,7 +765,7 @@ curl -s --data '{ "order": "by_complete_from_id" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of withdrawals (assuming `2019-09-12T00:00:00`, `alice`, `1567828370` is the last entry in the previous page): @@ -780,7 +780,7 @@ curl -s --data '{ "order": "by_complete_from_id" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 withdrawals ordered by `to`, `completed`: @@ -795,7 +795,7 @@ curl -s --data '{ "order": "by_to_complete" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of withdrawals (assuming `alice`, `2019-09-12T00:00:00`, `1567828370` is the last entry in the previous page): @@ -810,12 +810,12 @@ curl -s --data '{ "order": "by_to_complete" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_savings_withdrawals' | relative_url }}) -### `database_api.list_sbd_conversion_requests`<a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm" /></a> +### `database_api.list_hbd_conversion_requests`<a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm" /></a> * `by_account` - `start` requires 2 values: `account`, `request_id` * `by_conversion_date` - `start` requires 2 values: `timestamp`, `request_id` @@ -825,14 +825,14 @@ To list the first 10 conversions ordered by `from`: ```bash curl -s --data '{ "jsonrpc": "2.0", - "method": "database_api.list_sbd_conversion_requests", + "method": "database_api.list_hbd_conversion_requests", "params": { "start": ["", 0], "limit": 10, "order": "by_account" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of conversions (assuming `alice`, `1567828370` is the last entry in the previous page): @@ -840,14 +840,14 @@ To list the next page of conversions (assuming `alice`, `1567828370` is the last ```bash curl -s --data '{ "jsonrpc": "2.0", - "method": "database_api.list_sbd_conversion_requests", + "method": "database_api.list_hbd_conversion_requests", "params": { "start": ["alice", 1567828370], "limit": 10, "order": "by_account" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 conversions ordered by `from`: @@ -855,14 +855,14 @@ To list the first 10 conversions ordered by `from`: ```bash curl -s --data '{ "jsonrpc": "2.0", - "method": "database_api.list_sbd_conversion_requests", + "method": "database_api.list_hbd_conversion_requests", "params": { "start": ["1970-01-01T00:00:00", 0], "limit": 10, "order": "by_conversion_date" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of conversions (assuming `2019-09-12T00:00:00`, `1567828370` is the last entry in the previous page): @@ -870,17 +870,17 @@ To list the next page of conversions (assuming `2019-09-12T00:00:00`, `156782837 ```bash curl -s --data '{ "jsonrpc": "2.0", - "method": "database_api.list_sbd_conversion_requests", + "method": "database_api.list_hbd_conversion_requests", "params": { "start": ["2019-09-12T00:00:00", 1567828370], "limit": 10, "order": "by_conversion_date" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` -Also see: [API Definition]({{ '/apidefinitions/#database_api.list_sbd_conversion_requests' | relative_url }}) +Also see: [API Definition]({{ '/apidefinitions/#database_api.list_hbd_conversion_requests' | relative_url }}) ### `database_api.list_vesting_delegation_expirations`<a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm" /></a> @@ -899,7 +899,7 @@ curl -s --data '{ "order": "by_expiration" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of delegation expirations (assuming `2019-09-12T00:00:00`, `1567828370` is the last entry in the previous page): @@ -914,7 +914,7 @@ curl -s --data '{ "order": "by_expiration" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 delegation expirations ordered by `account`, `expiration`: @@ -929,7 +929,7 @@ curl -s --data '{ "order": "by_account_expiration" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of delegation expirations (assuming `alice`, `2019-09-12T00:00:00`, `1567828370` is the last entry in the previous page): @@ -944,7 +944,7 @@ curl -s --data '{ "order": "by_account_expiration" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_vesting_delegation_expirations' | relative_url }}) @@ -965,7 +965,7 @@ curl -s --data '{ "order": "by_delegation" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of delegations (assuming `alice`, `bob` is the last entry in the previous page): @@ -980,7 +980,7 @@ curl -s --data '{ "order": "by_delegation" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_vesting_delegations' | relative_url }}) @@ -1006,7 +1006,7 @@ curl -s --data '{ "order": "by_comment_voter" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of votes: @@ -1021,7 +1021,7 @@ curl -s --data '{ "order": "by_comment_voter" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 votes ordered by `comment`, `voter`, `symbol`: @@ -1036,7 +1036,7 @@ curl -s --data '{ "order": "by_comment_voter_symbol" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of votes: @@ -1046,12 +1046,12 @@ curl -s --data '{ "jsonrpc": "2.0", "method": "database_api.list_votes", "params": { - "start": ["steemit", "firstpost", "red", "STEEM"], + "start": ["steemit", "firstpost", "red", "HIVE"], "limit": 10, "order": "by_comment_voter_symbol" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 votes ordered by `voter`, `comment`: @@ -1066,7 +1066,7 @@ curl -s --data '{ "order": "by_voter_comment" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of votes: @@ -1081,7 +1081,7 @@ curl -s --data '{ "order": "by_voter_comment" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 votes ordered by `voter`, `comment`, `symbol`: @@ -1096,7 +1096,7 @@ curl -s --data '{ "order": "by_voter_comment_symbol" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of votes: @@ -1106,12 +1106,12 @@ curl -s --data '{ "jsonrpc": "2.0", "method": "database_api.list_votes", "params": { - "start": ["nxt2", "dan", "is-the-dao-going-to-be-doa", "STEEM"], + "start": ["nxt2", "dan", "is-the-dao-going-to-be-doa", "HIVE"], "limit": 10, "order": "by_voter_comment_symbol" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 votes ordered by `comment`, `symbol`, `voter`: @@ -1126,7 +1126,7 @@ curl -s --data '{ "order": "by_comment_symbol_voter" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of votes: @@ -1136,12 +1136,12 @@ curl -s --data '{ "jsonrpc": "2.0", "method": "database_api.list_votes", "params": { - "start": ["dan", "is-the-dao-going-to-be-doa", "STEEM", "nxt2"], + "start": ["dan", "is-the-dao-going-to-be-doa", "HIVE", "nxt2"], "limit": 10, "order": "by_comment_symbol_voter" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 votes ordered by `voter`, `symbol`, `comment`: @@ -1156,7 +1156,7 @@ curl -s --data '{ "order": "by_voter_symbol_comment" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of votes: @@ -1166,12 +1166,12 @@ curl -s --data '{ "jsonrpc": "2.0", "method": "database_api.list_votes", "params": { - "start": ["nxt2", "STEEM", "dan", "is-the-dao-going-to-be-doa"], + "start": ["nxt2", "HIVE", "dan", "is-the-dao-going-to-be-doa"], "limit": 10, "order": "by_voter_symbol_comment" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_votes' | relative_url }}) @@ -1193,7 +1193,7 @@ curl -s --data '{ "order": "by_withdraw_route" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of routes (assuming `alice`, `bob` is the last entry in the previous page): @@ -1208,7 +1208,7 @@ curl -s --data '{ "order": "by_withdraw_route" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 routes ordered by `to_account`, `route_id`: @@ -1223,7 +1223,7 @@ curl -s --data '{ "order": "by_destination" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of routes (assuming `bob`, `1567828370` is the last entry in the previous page): @@ -1238,7 +1238,7 @@ curl -s --data '{ "order": "by_destination" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_withdraw_vesting_routes' | relative_url }}) @@ -1260,7 +1260,7 @@ curl -s --data '{ "order": "by_account_witness" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of votes (assuming `alice`, `bob` is the last entry in the previous page): @@ -1275,7 +1275,7 @@ curl -s --data '{ "order": "by_account_witness" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 votes ordered by `account`, `witness`: @@ -1290,7 +1290,7 @@ curl -s --data '{ "order": "by_witness_account" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of votes (assuming `bob`, `alice` is the last entry in the previous page): @@ -1305,7 +1305,7 @@ curl -s --data '{ "order": "by_witness_account" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_witness_votes' | relative_url }}) @@ -1328,7 +1328,7 @@ curl -s --data '{ "order": "by_name" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of witnesses (assuming `alice` is the last entry in the previous page): @@ -1343,7 +1343,7 @@ curl -s --data '{ "order": "by_name" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 witnesses ordered by `votes`, `account`: @@ -1358,7 +1358,7 @@ curl -s --data '{ "order": "by_vote_name" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of witnesses (assuming `0`, `alice` is the last entry in the previous page): @@ -1373,7 +1373,7 @@ curl -s --data '{ "order": "by_vote_name" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 witnesses ordered by `virtual_scheduled_time`, `account`: @@ -1388,7 +1388,7 @@ curl -s --data '{ "order": "by_schedule_time" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of witnesses (assuming `473718186844702107410533306`, `alice` is the last entry in the previous page): @@ -1403,7 +1403,7 @@ curl -s --data '{ "order": "by_schedule_time" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_witnesses' | relative_url }}) @@ -1427,7 +1427,7 @@ curl -s --data '{ "status": "active" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of votes (assuming `alice`, `99` is the last entry in the previous page): @@ -1444,7 +1444,7 @@ curl -s --data '{ "status": "active" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 votes ordered ascending by `proposal_id`, `voter` filtered by status `active`: @@ -1461,7 +1461,7 @@ curl -s --data '{ "status": "active" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of votes (assuming `99`, `alice` is the last entry in the previous page): @@ -1478,7 +1478,7 @@ curl -s --data '{ "status": "active" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_proposal_votes' | relative_url }}) @@ -1505,7 +1505,7 @@ curl -s --data '{ "active" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of proposals (assuming `alice`, `99` is the last entry in the previous page): @@ -1523,7 +1523,7 @@ curl -s --data '{ "active" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 proposals ordered ascending by `start_date`, `proposal_id`, filtered by status `active` (identical pattern to `by_end_date`): @@ -1541,7 +1541,7 @@ curl -s --data '{ "active" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of proposals (assuming `2019-09-12T00:00:00`, `99` is the last entry in the previous page): @@ -1559,7 +1559,7 @@ curl -s --data '{ "active" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 proposals ordered ascending by `vests`, `proposal_id`, filtered by status `active`: @@ -1577,7 +1577,7 @@ curl -s --data '{ "active" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of proposals (assuming `1272060680484393`, `99` is the last entry in the previous page): @@ -1595,7 +1595,7 @@ curl -s --data '{ "active" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_proposals' | relative_url }}) @@ -1617,7 +1617,7 @@ curl -s --data '{ "order": "by_symbol_id" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of contributions (assuming `{"nai": "@@422838704", "decimals": 0}`, `99` is the last entry in the previous page): @@ -1632,7 +1632,7 @@ curl -s --data '{ "order": "by_symbol_id" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 contributions ordered by symbol, id: @@ -1647,7 +1647,7 @@ curl -s --data '{ "order": "by_symbol_contributor" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of contributions (assuming `{"nai": "@@422838704", "decimals": 0}`, `alice`, `99` is the last entry in the previous page): @@ -1662,7 +1662,7 @@ curl -s --data '{ "order": "by_symbol_contributor" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_smt_contributions' | relative_url }}) @@ -1683,7 +1683,7 @@ curl -s --data '{ "order": "by_symbol_time" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of emissions (assuming `{"nai": "@@422838704", "decimals": 0}`, `"2019-08-07T16:54:03"` is the last entry in the previous page): @@ -1698,7 +1698,7 @@ curl -s --data '{ "order": "by_symbol_time" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_smt_token_emissions' | relative_url }}) @@ -1720,7 +1720,7 @@ curl -s --data '{ "order": "by_symbol" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of tokens (assuming `{"nai": "@@422838704", "decimals": 0}` is the last entry in the previous page): @@ -1735,7 +1735,7 @@ curl -s --data '{ "order": "by_symbol" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the first 10 tokens ordered by control account: @@ -1750,7 +1750,7 @@ curl -s --data '{ "order": "by_control_account" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page of tokens (assuming `alice`, `{"nai": "@@422838704", "decimals": 0}` is the last entry in the previous page): @@ -1765,7 +1765,7 @@ curl -s --data '{ "order": "by_control_account" }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#database_api.list_smt_tokens' | relative_url }}) @@ -1783,7 +1783,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page (assuming `alice` is the last entry in the previous page): @@ -1797,7 +1797,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#follow_api.get_account_reputations' | relative_url }}) @@ -1816,7 +1816,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page (assuming `alice`, `99` is the last entry in the previous page): @@ -1831,7 +1831,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#follow_api.get_blog' | relative_url }}) @@ -1850,7 +1850,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page (assuming `alice`, `99` is the last entry in the previous page): @@ -1865,7 +1865,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#follow_api.get_blog_entries' | relative_url }}) @@ -1884,7 +1884,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page (assuming `alice`, `99` is the last entry in the previous page): @@ -1899,7 +1899,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#follow_api.get_feed' | relative_url }}) @@ -1918,7 +1918,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page (assuming `alice`, `99` is the last entry in the previous page): @@ -1933,7 +1933,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#follow_api.get_feed_entries' | relative_url }}) @@ -1953,7 +1953,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page (assuming `alice`, `bob` is the last entry in the previous page): @@ -1969,7 +1969,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#follow_api.get_followers' | relative_url }}) @@ -1989,7 +1989,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page (assuming `alice`, `bob` is the last entry in the previous page): @@ -2005,7 +2005,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#follow_api.get_following' | relative_url }}) @@ -2023,7 +2023,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page (assuming `alice` is the last entry in the previous page): @@ -2037,7 +2037,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#reputation_api.get_account_reputations' | relative_url }}) @@ -2060,7 +2060,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page (assuming `alice-permlink` is the last entry in the previous page): @@ -2076,7 +2076,7 @@ curl -s --data '{ "limit": 10 }, "id": 1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#tags_api.get_discussions_by_author_before_date' | relative_url }}) @@ -2095,7 +2095,7 @@ curl -s --data '{ "limit": 10 }, "id":1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page (assuming `alice-permlink` is the last entry in the previous page): @@ -2110,7 +2110,7 @@ curl -s --data '{ "limit": 10 }, "id":1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#tags_api.get_replies_by_last_update' | relative_url }}) @@ -2128,7 +2128,7 @@ curl -s --data '{ "limit": 10 }, "id":1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` To list the next page (assuming `photography` is the last entry in the previous page): @@ -2142,7 +2142,7 @@ curl -s --data '{ "limit": 10 }, "id":1 -}' https://api.steemit.com | jq +}' https://api.hive.blog | jq ``` Also see: [API Definition]({{ '/apidefinitions/#tags_api.get_trending_tags' | relative_url }}) diff --git a/_tutorials-recipes/plugin-and-api-list.md b/_tutorials-recipes/plugin-and-api-list.md index a3326fd0..fb94d3e7 100644 --- a/_tutorials-recipes/plugin-and-api-list.md +++ b/_tutorials-recipes/plugin-and-api-list.md @@ -1,7 +1,7 @@ --- title: Plugin & API List position: 1 -description: Run a `steemd` node with your preferred APIs. +description: Run a `hived` node with your preferred APIs. exclude: true layout: full canonical_url: plugin-and-api-list.html @@ -9,7 +9,7 @@ canonical_url: plugin-and-api-list.html *This is a list of the plugins, and their associated dependencies, required to enable specific apis.* -**When setting up the config file `steemd` will enable the `chain`, `p2p`, and `webserver` plugins regardless of other dependencies.** +**When setting up the config file `hived` will enable the `chain`, `p2p`, and `webserver` plugins regardless of other dependencies.** ## API's with their respective plugin dependencies @@ -155,7 +155,7 @@ plugin = follow_api ### `market_history_api` -* **Purpose:** Used to lookup market history information. Can return the market and trade history of the internal STEEM:SBD market. The order book, recent trades and the market volume is made available through this plugin. +* **Purpose:** Used to lookup market history information. Can return the market and trade history of the internal HIVE:HBD market. The order book, recent trades and the market volume is made available through this plugin. * **Requires:** `market_history` (automatic) * **Exposed Methods:** [`market_history_api.*`]({{ '/apidefinitions/#apidefinitions-market-history-api' | relative_url}}) diff --git a/_tutorials-recipes/understanding-configuration-values.md b/_tutorials-recipes/understanding-configuration-values.md index a07214ef..0a28c713 100644 --- a/_tutorials-recipes/understanding-configuration-values.md +++ b/_tutorials-recipes/understanding-configuration-values.md @@ -13,7 +13,7 @@ These values underpin the behavior of the entire blockchain. In a sense, each w See: [config.hpp](https://github.com/steemit/steem/blob/master/libraries/protocol/include/steem/protocol/config.hpp) -Usually, these configuration values are universally adhered to, but there are situations where these values can and should be altered, like in the case of deploying a new blockchain (typically a testnet). Some of the values that do not affect consensus, like [`STEEM_SOFT_MAX_COMMENT_DEPTH`](#STEEM_SOFT_MAX_COMMENT_DEPTH), are allowed to change to some extent. +Usually, these configuration values are universally adhered to, but there are situations where these values can and should be altered, like in the case of deploying a new blockchain (typically a testnet). Some of the values that do not affect consensus, like [`HIVE_SOFT_MAX_COMMENT_DEPTH`](#HIVE_SOFT_MAX_COMMENT_DEPTH), are allowed to change to some extent. ### Sections @@ -105,7 +105,7 @@ Fields not covered in this recipe are: ### Example Method Call<a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm" /></a> ```bash -curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_config", "params":[], "id":1}' https://api.steemit.com +curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_config", "params":[], "id":1}' https://api.hive.blog ``` ### Example Output<a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm" /></a> @@ -127,7 +127,7 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_config", "params": "SMT_DEFAULT_PERCENT_CURATION_REWARDS":2500, "SMT_INITIAL_VESTING_PER_UNIT":1000000, "SMT_BALLAST_SUPPLY_PERCENT":10, - "SBD_SYMBOL":{"nai":"@@000000013", "precision":3}, + "HBD_SYMBOL":{"nai":"@@000000013", "precision":3}, "HIVE_INITIAL_VOTE_POWER_RATE":40, "HIVE_REDUCED_VOTE_POWER_RATE":10, "HIVE_100_PERCENT":10000, @@ -168,11 +168,11 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_config", "params": "HIVE_CONVERSION_DELAY_PRE_HF_16":"604800000000", "HIVE_CREATE_ACCOUNT_DELEGATION_RATIO":5, "HIVE_CREATE_ACCOUNT_DELEGATION_TIME":"2592000000000", - "HIVE_CREATE_ACCOUNT_WITH_STEEM_MODIFIER":30, + "HIVE_CREATE_ACCOUNT_WITH_HIVE_MODIFIER":30, "HIVE_CURATE_APR_PERCENT":3875, "HIVE_CUSTOM_OP_DATA_MAX_LENGTH":8192, "HIVE_CUSTOM_OP_ID_MAX_LENGTH":32, - "HIVE_DEFAULT_SBD_INTEREST_RATE":1000, + "HIVE_DEFAULT_HBD_INTEREST_RATE":1000, "HIVE_DOWNVOTE_POOL_PERCENT_HF21":2500, "HIVE_EQUIHASH_K":6, "HIVE_EQUIHASH_N":140, @@ -188,7 +188,7 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_config", "params": "HIVE_INIT_MINER_NAME":"initminer", "HIVE_INIT_PUBLIC_KEY_STR":"TST6LLegbAgLAy28EHrffBVuANFWcFgmqRMW13wBmTExqFE9SCkg4", "HIVE_INIT_SUPPLY":"250000000000", - "HIVE_SBD_INIT_SUPPLY":"7000000000", + "HIVE_HBD_INIT_SUPPLY":"7000000000", "HIVE_INIT_TIME":"1970-01-01T00:00:00", "HIVE_IRREVERSIBLE_THRESHOLD":7500, "HIVE_LIQUIDITY_APR_PERCENT":750, @@ -249,7 +249,7 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_config", "params": "HIVE_MINING_TIME":"2016-01-01T00:00:00", "HIVE_MIN_LIQUIDITY_REWARD":{"amount":"1200000", "precision":3, "nai":"@@000000021"}, "HIVE_MIN_LIQUIDITY_REWARD_PERIOD_SEC":60000000, - "HIVE_MIN_PAYOUT_SBD":{"amount":"20", "precision":3, "nai":"@@000000013"}, + "HIVE_MIN_PAYOUT_HBD":{"amount":"20", "precision":3, "nai":"@@000000013"}, "HIVE_MIN_POW_REWARD":{"amount":"1000", "precision":3, "nai":"@@000000021"}, "HIVE_MIN_PRODUCER_REWARD":{"amount":"1000", "precision":3, "nai":"@@000000021"}, "HIVE_MIN_TRANSACTION_EXPIRATION_LIMIT":15, @@ -268,7 +268,7 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_config", "params": "HIVE_POW_APR_PERCENT":750, "HIVE_PRODUCER_APR_PERCENT":750, "HIVE_PROXY_TO_SELF_ACCOUNT":"", - "HIVE_SBD_INTEREST_COMPOUND_INTERVAL_SEC":2592000, + "HIVE_HBD_INTEREST_COMPOUND_INTERVAL_SEC":2592000, "HIVE_SECONDS_PER_YEAR":31536000, "HIVE_PROPOSAL_FUND_PERCENT_HF0":0, "HIVE_PROPOSAL_FUND_PERCENT_HF21":1000, @@ -280,10 +280,10 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_config", "params": "HIVE_ROOT_POST_PARENT":"", "HIVE_SAVINGS_WITHDRAW_REQUEST_LIMIT":100, "HIVE_SAVINGS_WITHDRAW_TIME":"259200000000", - "HIVE_SBD_START_PERCENT_HF14":200, - "HIVE_SBD_START_PERCENT_HF20":900, - "HIVE_SBD_STOP_PERCENT_HF14":500, - "HIVE_SBD_STOP_PERCENT_HF20":1000, + "HIVE_HBD_START_PERCENT_HF14":200, + "HIVE_HBD_START_PERCENT_HF20":900, + "HIVE_HBD_STOP_PERCENT_HF14":500, + "HIVE_HBD_STOP_PERCENT_HF20":1000, "HIVE_SECOND_CASHOUT_WINDOW":259200, "HIVE_SOFT_MAX_COMMENT_DEPTH":255, "HIVE_START_MINER_VOTING_BLOCK":864000, @@ -325,7 +325,7 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_config", "params": "HIVE_DECAY_BACKSTOP_PERCENT":9000, "HIVE_BLOCK_GENERATION_POSTPONED_TX_LIMIT":5, "HIVE_PENDING_TRANSACTION_EXECUTION_LIMIT":200000, - "HIVE_TREASURY_ACCOUNT":"steem.dao", + "HIVE_TREASURY_ACCOUNT":"hive.fund", "HIVE_TREASURY_FEE":10000, "HIVE_PROPOSAL_MAINTENANCE_PERIOD":3600, "HIVE_PROPOSAL_MAINTENANCE_CLEANUP":86400, diff --git a/_tutorials-recipes/understanding-dynamic-global-properties.md b/_tutorials-recipes/understanding-dynamic-global-properties.md index f6e2a662..7fe05b94 100644 --- a/_tutorials-recipes/understanding-dynamic-global-properties.md +++ b/_tutorials-recipes/understanding-dynamic-global-properties.md @@ -100,10 +100,10 @@ Fields not covered in this recipe are: ### Example Method Call<a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm" /></a> -To retrieve the current results for [`condenser_api.get_dynamic_global_properties`](https://developers.steem.io/apidefinitions/#condenser_api.get_dynamic_global_properties), we can retrieve the current state information using `curl`: +To retrieve the current results for [`condenser_api.get_dynamic_global_properties`](https://developers.hive.io/apidefinitions/#condenser_api.get_dynamic_global_properties), we can retrieve the current state information using `curl`: ```bash -curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_properties", "params":[], "id":1}' https://api.steemit.com +curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_properties", "params":[], "id":1}' https://api.hive.blog ``` ### Example Output<a style="float: right" href="#sections"><i class="fas fa-chevron-up fa-sm" /></a> @@ -119,20 +119,20 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_pro "current_witness":"xeldal", "total_pow":514415, "num_pow_witnesses":172, - "virtual_supply":"283434761.199 STEEM", - "current_supply":"271729171.190 STEEM", - "confidential_supply":"0.000 STEEM", - "current_sbd_supply":"15498201.173 SBD", - "confidential_sbd_supply":"0.000 SBD", - "total_vesting_fund_steem":"192913644.627 STEEM", + "virtual_supply":"283434761.199 HIVE", + "current_supply":"271729171.190 HIVE", + "confidential_supply":"0.000 HIVE", + "current_hbd_supply":"15498201.173 HBD", + "confidential_hbd_supply":"0.000 HBD", + "total_vesting_fund_hive":"192913644.627 HIVE", "total_vesting_shares":"391296886352.617261 VESTS", - "total_reward_fund_steem":"0.000 STEEM", - "init_sbd_supply":"7000000.000 TBD", + "total_reward_fund_hive":"0.000 HIVE", + "init_hbd_supply":"7000000.000 TBD", "total_reward_shares2":"0", "pending_rewarded_vesting_shares":"379159224.860656 VESTS", - "pending_rewarded_vesting_steem":"185294.019 STEEM", - "sbd_interest_rate":0, - "sbd_print_rate":2933, + "pending_rewarded_vesting_hive":"185294.019 HIVE", + "hbd_interest_rate":0, + "hbd_print_rate":2933, "maximum_block_size":65536, "current_aslot":24315228, "recent_slots_filled":"340282366920938463463374607431768211400", @@ -145,8 +145,8 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_pro "delegation_return_period":432000, "reverse_auction_seconds":300, "available_account_subsidies":137414104, - "sbd_stop_percent":1000, - "sbd_start_percent":900, + "hbd_stop_percent":1000, + "hbd_start_percent":900, "next_maintenance_time":"2019-11-15T01:44:39", "last_budget_time":"2019-11-15T00:44:39", "content_reward_percent":6500, diff --git a/_tutorials-recipes/understanding-transaction-status.md b/_tutorials-recipes/understanding-transaction-status.md index da4bd8d2..01088217 100644 --- a/_tutorials-recipes/understanding-transaction-status.md +++ b/_tutorials-recipes/understanding-transaction-status.md @@ -1,7 +1,7 @@ --- title: Understanding Transaction Status position: 1 -description: How to use the Steem API to check the status of a transaction for a given `trx_id` value. +description: How to use the Hive API to check the status of a transaction for a given `trx_id` value. exclude: true layout: full canonical_url: understanding-transaction-status.html @@ -81,7 +81,7 @@ The combination of [`condenser_api.broadcast_transaction`]({{ '/apidefinitions/# Now that we have `trx_id`, we can poll `transaction_status_api.find_transaction`, for example: ```bash -curl -s --data '{"jsonrpc":"2.0", "method":"transaction_status_api.find_transaction", "params":{"transaction_id":"eba610257ad6c60d89f84ce54d3e10b52c18d4cc"}, "id":1}' https://api.steemit.com +curl -s --data '{"jsonrpc":"2.0", "method":"transaction_status_api.find_transaction", "params":{"transaction_id":"eba610257ad6c60d89f84ce54d3e10b52c18d4cc"}, "id":1}' https://api.hive.blog ``` Which returns: @@ -93,7 +93,7 @@ Which returns: We can provide the expiration: ```bash -curl -s --data '{"jsonrpc":"2.0", "method":"transaction_status_api.find_transaction", "params":{"transaction_id":"eba610257ad6c60d89f84ce54d3e10b52c18d4cc","expiration":"2018-10-15T19:52:09"}, "id":1}' https://api.steemit.com +curl -s --data '{"jsonrpc":"2.0", "method":"transaction_status_api.find_transaction", "params":{"transaction_id":"eba610257ad6c60d89f84ce54d3e10b52c18d4cc","expiration":"2018-10-15T19:52:09"}, "id":1}' https://api.hive.blog ``` Which returns: diff --git a/_tutorials-recipes/using-hivemind.md b/_tutorials-recipes/using-hivemind.md index c17f3b76..827cc0fa 100644 --- a/_tutorials-recipes/using-hivemind.md +++ b/_tutorials-recipes/using-hivemind.md @@ -9,9 +9,9 @@ canonical_url: using-hivemind.html ## Intro -Hive is a "consensus interpretation" layer for the Steem blockchain, maintaining the state of social features such as post feeds, follows, and communities. Written in Python, it synchronizes an SQL database with chain state, providing developers with a more flexible/extensible alternative to the raw steemd API. This means that you can bypass steemd and access data in a more traditional way, for example, with SQL. But you can't use SQL on steemd. So Hivemind solves that problem. Hive does not support any queries to do with wallets, orders, escrow, keys, recovery, or account history. +Hive is a "consensus interpretation" layer for the Hive blockchain, maintaining the state of social features such as post feeds, follows, and communities. Written in Python, it synchronizes an SQL database with chain state, providing developers with a more flexible/extensible alternative to the raw hived API. This means that you can bypass hived and access data in a more traditional way, for example, with SQL. But you can't use SQL on hived. So Hivemind solves that problem. Hive does not support any queries to do with wallets, orders, escrow, keys, recovery, or account history. -A good source of additional information on hive and how to use it can be found in [this Steemit article](https://steemit.com/hivemind/@inertia/hivemind-queries) by @inertia. +A good source of additional information on hive and how to use it can be found in [this Hive article](https://hive.blog/hivemind/@inertia/hivemind-queries) by @inertia. #### Supported API functionality: @@ -33,7 +33,7 @@ A good source of additional information on hive and how to use it can be found i **Additional functions available within hive-steem library** -The majority of these functions are reliant on steemd so any changes to steemd would affect these function calls. The only two functions not directly reliant on steemd are `stream_blocks` and `get_steem_per_mvest`. +The majority of these functions are reliant on hived so any changes to hived would affect these function calls. The only two functions not directly reliant on hived are `stream_blocks` and `get_hive_per_mvest`. * get_accounts * get_all_account_names @@ -45,9 +45,9 @@ The majority of these functions are reliant on steemd so any changes to steemd w * head_block * last_irreversible * gdgp_extended -* get_steem_per_mvest +* get_hive_per_mvest * get_feed_price -* get_steem_price +* get_hive_price * get_blocks_range Detailed information on the hive-steem library can be found in the [Hivemind repo](https://github.com/steemit/hivemind/blob/master/hive/steem/client.py). @@ -83,10 +83,10 @@ $ createdb hive $ export DATABASE_URL=postgresql://user:pass@localhost:5432/hive ``` -By default Hivemind will connect to the mainnet [https://api.steemit.com](https://api.steemit.com) but if required you can change this to connect to a testnet. To do this set the environment variable as described below. +By default Hivemind will connect to the mainnet [https://api.hive.blog](https://api.hive.blog) but if required you can change this to connect to a testnet. To do this set the environment variable as described below. ```bash -$ export STEEMD_URL=https://testnet.steem.vc +$ export HIVED_URL=https://testnet.steem.vc ``` Now that the basic setup is done you are able to sync the database. diff --git a/_tutorials-recipes/using-multisignatire-accounts.md b/_tutorials-recipes/using-multisignatire-accounts.md index 7d7ae6b9..2f1bf950 100644 --- a/_tutorials-recipes/using-multisignatire-accounts.md +++ b/_tutorials-recipes/using-multisignatire-accounts.md @@ -1,10 +1,10 @@ --- title: Using Multisignature Accounts position: 1 -description: How to set up and use multisignature accounts on Steem Blockchain. +description: How to set up and use multisignature accounts on Hive Blockchain. exclude: true layout: hive-post -canonical_url: https://steemit.com/utopian-io/@crokkon/steem-multi-signature-transaction-guide-for-beem-python-1546636997324 +canonical_url: https://hive.blog/utopian-io/@crokkon/steem-multi-signature-transaction-guide-for-beem-python-1546636997324 --- {{'@crokkon/steem-multi-signature-transaction-guide-for-beem-python-1546636997324' | hive_post}} diff --git a/_tutorials-recipes/vest-to-steem.md b/_tutorials-recipes/vest-to-steem.md index 8987f6d2..93f4c0c5 100644 --- a/_tutorials-recipes/vest-to-steem.md +++ b/_tutorials-recipes/vest-to-steem.md @@ -1,7 +1,7 @@ --- -title: Converting VESTS to STEEM +title: Converting VESTS to HIVE position: 1 -description: How to convert VESTS to STEEM or STEEM POWER +description: How to convert VESTS to HIVE or HIVE POWER exclude: true layout: full canonical_url: vest-to-steem.html @@ -9,12 +9,12 @@ canonical_url: vest-to-steem.html ### Intro -Steem's has base unit is VESTS and usually user doesn't know about this unit because everything is dynamically calucated and presented in STEEM form for convenience of the user. In this recipe we will talk about how converting is working behind the scenes on all Steem apps. Dynamic Global Properties are used in this recipe to fetch the current values of global blockchain properties. +Hive's has base unit is VESTS and usually user doesn't know about this unit because everything is dynamically calucated and presented in HIVE form for convenience of the user. In this recipe we will talk about how converting is working behind the scenes on all Hive apps. Dynamic Global Properties are used in this recipe to fetch the current values of global blockchain properties. ## Steps 1. [**Get Dynamic Global Properties**](#get-global) Fetch current values of global blockchain properties -1. [**Formulate VESTS_TO_STEEM**](#formula) Formulate function that will convert given VESTS to STEEM. +1. [**Formulate VESTS_TO_HIVE**](#formula) Formulate function that will convert given VESTS to HIVE. #### 1. Get Dynamic Global Properties <a name="get-global"></a> @@ -22,7 +22,7 @@ Steem's has base unit is VESTS and usually user doesn't know about this unit bec Following method can be used to fetch global values ```bash -curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_properties", "params":[], "id":1}' https://api.steemit.com +curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_properties", "params":[], "id":1}' https://api.hive.blog ``` ##### Example Output<a style="float: right" href="#steps"><i class="fas fa-chevron-up fa-sm" /></a> @@ -38,19 +38,19 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_pro "current_witness":"xeldal", "total_pow":514415, "num_pow_witnesses":172, - "virtual_supply":"283434761.199 STEEM", - "current_supply":"271729171.190 STEEM", - "confidential_supply":"0.000 STEEM", - "current_sbd_supply":"15498201.173 SBD", - "confidential_sbd_supply":"0.000 SBD", - "total_vesting_fund_steem":"192913644.627 STEEM", + "virtual_supply":"283434761.199 HIVE", + "current_supply":"271729171.190 HIVE", + "confidential_supply":"0.000 HIVE", + "current_hbd_supply":"15498201.173 HBD", + "confidential_hbd_supply":"0.000 HBD", + "total_vesting_fund_hive":"192913644.627 HIVE", "total_vesting_shares":"391296886352.617261 VESTS", - "total_reward_fund_steem":"0.000 STEEM", + "total_reward_fund_hive":"0.000 HIVE", "total_reward_shares2":"0", "pending_rewarded_vesting_shares":"379159224.860656 VESTS", - "pending_rewarded_vesting_steem":"185294.019 STEEM", - "sbd_interest_rate":0, - "sbd_print_rate":2933, + "pending_rewarded_vesting_hive":"185294.019 HIVE", + "hbd_interest_rate":0, + "hbd_print_rate":2933, "maximum_block_size":65536, "current_aslot":24315228, "recent_slots_filled":"340282366920938463463374607431768211400", @@ -64,14 +64,14 @@ curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_dynamic_global_pro } ``` -#### 2. Formulate VESTS_TO_STEEM <a name="formula"></a><a style="float: right" href="#steps"><i class="fas fa-chevron-up fa-sm" /></a> +#### 2. Formulate VESTS_TO_HIVE <a name="formula"></a><a style="float: right" href="#steps"><i class="fas fa-chevron-up fa-sm" /></a> -From above results we have everything we need to calculate STEEM from given VESTS value. +From above results we have everything we need to calculate HIVE from given VESTS value. -Let's say we have been given `availableVESTS` variable, value in VESTS and we want to convert that to STEEM. By using values from above returned object our formula would be as follows: +Let's say we have been given `availableVESTS` variable, value in VESTS and we want to convert that to HIVE. By using values from above returned object our formula would be as follows: ``` -vestSteem = ( result.total_vesting_fund_steem x availableVESTS ) / result.total_vesting_shares +vestHive = ( result.total_vesting_fund_hive x availableVESTS ) / result.total_vesting_shares ``` That's it! diff --git a/_tutorials-recipes/virtual-operations-when-streaming-blockchain-transactions.md b/_tutorials-recipes/virtual-operations-when-streaming-blockchain-transactions.md index cde91f95..e1be0221 100644 --- a/_tutorials-recipes/virtual-operations-when-streaming-blockchain-transactions.md +++ b/_tutorials-recipes/virtual-operations-when-streaming-blockchain-transactions.md @@ -11,9 +11,9 @@ This recipe will take you through the process of streaming blockchain transactio ## Intro -There are two points from which Steem blockchain transactions can be streamed to give a "live" view of what's happening on the blockchain. The first is from the `head block` which is the most recent block created on the chain (every 3 seconds when a new block is created). The second, is from the `last irreversible block` which is the newest block that has been confirmed by a sufficient number of block producers so that it can no longer be invalidated. This is not a live view but it is normally not far behind the head block number. +There are two points from which Hive blockchain transactions can be streamed to give a "live" view of what's happening on the blockchain. The first is from the `head block` which is the most recent block created on the chain (every 3 seconds when a new block is created). The second, is from the `last irreversible block` which is the newest block that has been confirmed by a sufficient number of block producers so that it can no longer be invalidated. This is not a live view but it is normally not far behind the head block number. -There is already a [javascript tutorial](https://developers.steem.io/tutorials-javascript/stream_blockchain_transactions) on the [devportal](https://developers.steem.io/) describing how to stream blockchain transactions. This recipe will go into further detail on operations on each block and more specifically the virtual operations that are executed with every new block. We will also assume that you have already run through the basic tutorials on the Steem blockchain and will focus more on the specific functions and outputs pertinent to this topic. +There is already a [javascript tutorial](https://developers.hive.io/tutorials-javascript/stream_blockchain_transactions) on the [devportal](https://developers.hive.io/) describing how to stream blockchain transactions. This recipe will go into further detail on operations on each block and more specifically the virtual operations that are executed with every new block. We will also assume that you have already run through the basic tutorials on the Hive blockchain and will focus more on the specific functions and outputs pertinent to this topic. ## Steps @@ -87,10 +87,10 @@ Virtual operations (curation rewards, etc) are derived from blockchain activity, `steem-python` provides a very simple method to stream virtual or any other operations directly: ```python -from steem import Steem +from steem import Hive from steem.blockchain import Blockchain import pprint -s = Steem() +s = Hive() b = Blockchain(s) for op in b.stream('author_reward'): @@ -106,8 +106,8 @@ With result: "author": "hopehash", "block_num": 25145619, "permlink": "hopehash-btc-1-057", - "sbd_payout": "0.000 SBD", - "steem_payout": "2.341 STEEM", + "hbd_payout": "0.000 HBD", + "hive_payout": "2.341 HIVE", "timestamp": "2018-08-17T17:11:36.18", "trx_id": "0000000000000000000000000000000000000000", "type": "author_reward", diff --git a/_tutorials-ruby/blog_feed.md b/_tutorials-ruby/blog_feed.md index b6281b53..963eb5eb 100644 --- a/_tutorials-ruby/blog_feed.md +++ b/_tutorials-ruby/blog_feed.md @@ -22,7 +22,7 @@ Finally, it creates the canonical URL by combining `parent_permlink`, `author`, ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): ```bash git clone git@github.com:steemit/devportal-tutorials-rb.git @@ -35,30 +35,30 @@ ruby blog_feed.rb steemitblog ``` 2018-03-24 17:30:36 UTC - Post: Happy 2nd Birthday Steem Blockchain + Post: Happy 2nd Birthday Hive Blockchain By: steemitblog Words: 301 - https://steemit.com/steem/@steemitblog/happy-2nd-birthday-steem-blockchain + https://hive.blog/steem/@steemitblog/happy-2nd-birthday-steem-blockchain 2018-03-07 20:56:36 UTC - Post: Join Team Steemit at TokenFest! + Post: Join Team Hive at TokenFest! By: steemitblog Words: 104 - https://steemit.com/steemit/@steemitblog/join-team-steemit-at-tokenfest + https://hive.blog/steemit/@steemitblog/join-team-steemit-at-tokenfest 2018-02-27 20:18:36 UTC Post: Smart Media Token Development By: steemitblog Words: 699 - https://steemit.com/smt/@steemitblog/smart-media-token-development + https://hive.blog/smt/@steemitblog/smart-media-token-development 2018-02-25 20:55:24 UTC - Reblog: I filmed this video of @ned @pkattera and @sneak talking about the SMTs and the future of Steemit + Reblog: I filmed this video of @ned @pkattera and @sneak talking about the SMTs and the future of Hive By: ruwan Words: 89 - https://steemit.com/steemit/@ruwan/i-filmed-this-video-of-ned-pkattera-and-sneak-talking-about-the-smts-and-the-future-of-steemit + https://hive.blog/steemit/@ruwan/i-filmed-this-video-of-ned-pkattera-and-sneak-talking-about-the-smts-and-the-future-of-steemit 2018-02-22 17:41:00 UTC - Post: STEEM ë° SBDê°€ GOPAXì— ìƒìž¥ë˜ì—ˆìŠµë‹ˆë‹¤ + Post: HIVE ë° HBDê°€ GOPAXì— ìƒìž¥ë˜ì—ˆìŠµë‹ˆë‹¤ By: steemitblog Words: 317 - https://steemit.com/gopax/@steemitblog/steem-sbd-gopa + https://hive.blog/gopax/@steemitblog/steem-hbd-gopa ``` diff --git a/_tutorials-ruby/edit_content_patching.md b/_tutorials-ruby/edit_content_patching.md index 19b4a8fa..dafab4b3 100644 --- a/_tutorials-ruby/edit_content_patching.md +++ b/_tutorials-ruby/edit_content_patching.md @@ -12,7 +12,7 @@ title: How to edit a Post position: 5 exclude: true layout: main-script -description: Patching changes to a post on Steem. +description: Patching changes to a post on Hive. main_script: tutorials-ruby/edit_content_patching.rb main_type: ruby main_script_anchor: Script @@ -37,7 +37,7 @@ As stated earlier, you will need to change `broadcast` to `true`. You can also ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): ```bash git clone git@github.com:steemit/devportal-tutorials-rb.git diff --git a/_tutorials-ruby/follow_another_user.md b/_tutorials-ruby/follow_another_user.md index dde244a4..05c48ddf 100644 --- a/_tutorials-ruby/follow_another_user.md +++ b/_tutorials-ruby/follow_another_user.md @@ -59,7 +59,7 @@ We also specify `blog` to tell the API method that we're looking for followed, n ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): ```bash git clone git@github.com:steemit/devportal-tutorials-rb.git diff --git a/_tutorials-ruby/get_account_comments.md b/_tutorials-ruby/get_account_comments.md index 2f737299..78dd317a 100644 --- a/_tutorials-ruby/get_account_comments.md +++ b/_tutorials-ruby/get_account_comments.md @@ -72,17 +72,17 @@ Reply to @saarliconvalley in discussion: "The Empire has sent you a friend reque body_length: 33 (7 words) replied at: 2018-03-27T16:02:45 net_votes: 0 - https://steemit.com/@lordvader/re-saarliconvalley-re-lordvader-2018327t16025594z-20180327t160243538z + https://hive.blog/@lordvader/re-saarliconvalley-re-lordvader-2018327t16025594z-20180327t160243538z Reply to @teenovision in discussion: "The Empire has sent you a friend request." body_length: 90 (16 words) replied at: 2018-03-27T15:53:39, updated at: 2018-03-30T17:25:18, active at: 2018-03-30T17:25:18 net_votes: 0 - https://steemit.com/@lordvader/re-teenovision-re-lordvader-the-empire-has-sent-you-a-friend-request-20180327t155339532z + https://hive.blog/@lordvader/re-teenovision-re-lordvader-the-empire-has-sent-you-a-friend-request-20180327t155339532z Reply to @gtg in discussion: "gtg witness log" body_length: 130 (25 words) replied at: 2018-04-06T04:29:00 net_votes: 2 - https://steemit.com/@lordvader/re-gtg-ffdhu-gtg-witness-log-20180406t042906872z + https://hive.blog/@lordvader/re-gtg-ffdhu-gtg-witness-log-20180406t042906872z ``` ### Comment fields @@ -101,7 +101,7 @@ In our example script, we want more detail than this, so for every `comment`, we ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): * `<account-name>` diff --git a/_tutorials-ruby/get_account_replies.md b/_tutorials-ruby/get_account_replies.md index 25168a85..b67e1278 100644 --- a/_tutorials-ruby/get_account_replies.md +++ b/_tutorials-ruby/get_account_replies.md @@ -72,17 +72,17 @@ Reply by @steemitboard in discussion: "The Empire has sent you a friend request. body_length: 677 (99 words) replied at: 2018-04-28T04:32:42 net_votes: 0 - https://steemit.com/@steemitboard/steemitboard-notify-lordvader-20180428t043241000z + https://hive.blog/@steemitboard/steemitboard-notify-lordvader-20180428t043241000z Reply by @jedimasteryoda in discussion: "The Empire has sent you a friend request." body_length: 65 (11 words) replied at: 2018-06-07T18:47:54 net_votes: 0 - https://steemit.com/@jedimasteryoda/re-lordvader-the-empire-has-sent-you-a-friend-request-20180607t184754944z + https://hive.blog/@jedimasteryoda/re-lordvader-the-empire-has-sent-you-a-friend-request-20180607t184754944z Reply by @koinbot in discussion: "The Empire has sent you a friend request." body_length: 15 (2 words) replied at: 2018-06-23T07:58:51 net_votes: 0 - https://steemit.com/@koinbot/re-lordvader-the-empire-has-sent-you-a-friend-request-20180623t075851464z + https://hive.blog/@koinbot/re-lordvader-the-empire-has-sent-you-a-friend-request-20180623t075851464z ``` ### Comment fields @@ -101,7 +101,7 @@ In our example script, we want more detail than this, so for every `comment`, we ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): * `<account-name>` diff --git a/_tutorials-ruby/get_follower_and_following_list.md b/_tutorials-ruby/get_follower_and_following_list.md index 8c1da0d2..ec4b02e5 100644 --- a/_tutorials-ruby/get_follower_and_following_list.md +++ b/_tutorials-ruby/get_follower_and_following_list.md @@ -23,7 +23,7 @@ In `radiator`, we can request follow results using `condenser_api.get_following` ## Steps -1. [**Configure connection**](#connection) Configuration of `radiator` to communicate with the Steem blockchain +1. [**Configure connection**](#connection) Configuration of `radiator` to communicate with the Hive blockchain 2. [**Input variables**](#input) Collecting the required inputs via command line arguments 3. [**Get followers/following**](#query) Get the followers or accounts being followed 4. [**Display**](#display) Return the array of results to the console @@ -84,7 +84,7 @@ end ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): ```bash git clone git@github.com:steemit/devportal-tutorials-rb.git diff --git a/_tutorials-ruby/get_post_comments.md b/_tutorials-ruby/get_post_comments.md index a66266f4..947776cd 100644 --- a/_tutorials-ruby/get_post_comments.md +++ b/_tutorials-ruby/get_post_comments.md @@ -16,13 +16,13 @@ First, we ask the blockchain for the replies on a post or comment. Then, we gra ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): ```bash git clone git@github.com:steemit/devportal-tutorials-rb.git cd devportal-tutorials-rb/tutorials/07_get_post_comments bundle install -ruby comments_list.rb https://steemit.com/steem/@steemitblog/dev-portal-update-new-steem-developer-resources +ruby comments_list.rb https://hive.blog/steem/@steemitblog/dev-portal-update-new-steem-developer-resources ``` ### Example Output diff --git a/_tutorials-ruby/get_post_details.md b/_tutorials-ruby/get_post_details.md index 865bc87e..d4ee56b3 100644 --- a/_tutorials-ruby/get_post_details.md +++ b/_tutorials-ruby/get_post_details.md @@ -55,7 +55,7 @@ api.get_content("steemitdev", "announcing-the-steem-developer-portal") do |conte #### Example api call using script And to do the same with our tutorial script ```bash -ruby get_post_details.rb https://steemit.com/steemdev/@steemitdev/announcing-the-steem-developer-portal +ruby get_post_details.rb https://hive.blog/hivedev/@steemitdev/announcing-the-steem-developer-portal ``` #### Example Output @@ -64,22 +64,22 @@ From the example we get the following output from our script ``` Post by steemitdev - title: Announcing the Steem Developer Portal! + title: Announcing the Hive Developer Portal! permlink: announcing-the-steem-developer-portal - category: steemdev + category: hivedev body_length: 2342 (381 words) posted at: 2017-10-30T16:34:27, updated at: 2017-10-30T16:34:27, active at: 2018-04-11T10:34:00 children: 66 net_rshares: 0 vote_rshares: 0 payout: - max_accepted_payout: 0.000 SBD - percent_steem_dollars: 100.00 % + max_accepted_payout: 0.000 HBD + percent_hbd: 100.00 % payout at: 2017-11-06T16:34:27 (235.2 days ago) - author_rewards: 0.000 SBD - curator_payout_value: 0.000 SBD - total_payout_value: 0.000 SBD - promoted: 0.000 SBD + author_rewards: 0.000 HBD + curator_payout_value: 0.000 HBD + total_payout_value: 0.000 HBD + promoted: 0.000 HBD total_vote_weight: 0 reward_weight: 100.00 % net_votes: 181, upvotes: 234, downvotes: 1, unvotes: 0, total: 235, top voter: thejohalfiles @@ -87,7 +87,7 @@ Post by steemitdev allow_votes: true allow_curation_rewards: true author_reputation: 14487360227924 - tags: steemdev, steem, dev + tags: hivedev, steem, dev app: steemit/0.1 ``` @@ -133,13 +133,13 @@ You will note that we must parse the string found in `content.cashout_time` by a Even before payout, you can determine what the `max_accepted_payout` is. Most often, this is set to one of two values by the author: -* `1000000.000 SBD` - Accepted Payout -* `0.000 SBD` - Declined Payout +* `1000000.000 HBD` - Accepted Payout +* `0.000 HBD` - Declined Payout -In addition to `max_accepted_payout`, the author may specify how much of the author reward should be in STEEM Power or liquid rewards. The most common settings are: +In addition to `max_accepted_payout`, the author may specify how much of the author reward should be in HIVE Power or liquid rewards. The most common settings are: * `10000` - Maximum Liquid Reward -* `0` - STEEM Power Only +* `0` - HIVE Power Only Once the payout time has arrived, it's possible to determine the split between author and curation by inspecting at `author_rewards` and `curator_payout_value`. @@ -151,7 +151,7 @@ In our script, we use the ruby statement: content.beneficiaries.any? ``` -Some content will have a `beneficiaries` array. This is used to determine reward routes any account, up to eight. Payouts are in STEEM Power and are expressed as a reward percentage of the author reward. +Some content will have a `beneficiaries` array. This is used to determine reward routes any account, up to eight. Payouts are in HIVE Power and are expressed as a reward percentage of the author reward. To display a list of who the beneficiaries are, use the following ruby code, as seen in the example: @@ -200,7 +200,7 @@ Note, we're using `rescue` in case the `json_metadata` string contains invalid J ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): *`<content-url>` diff --git a/_tutorials-ruby/get_posts.md b/_tutorials-ruby/get_posts.md index 5f66aca5..738d0d4f 100644 --- a/_tutorials-ruby/get_posts.md +++ b/_tutorials-ruby/get_posts.md @@ -39,7 +39,7 @@ For each post we retrieve, we are going to build up a summary to display the int ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): ```bash git clone git@github.com:steemit/devportal-tutorials-rb.git @@ -52,13 +52,13 @@ ruby get_posts_by_category.rb trending 1 steem ``` 2018-05-24 06:38:33 UTC - Post: New Phone App For Steemit - Wow! + Post: New Phone App For Hive - Wow! By: happymoneyman Votes: 1087 Replies: 332 - Promoted: 0.001 SBD + Promoted: 0.001 HBD Words: 190 - https://steemit.com/steemit/@happymoneyman/new-phone-app-for-steemit-wow + https://hive.blog/steemit/@happymoneyman/new-phone-app-for-steemit-wow ``` #### Error Handling diff --git a/_tutorials-ruby/get_voters_list_on_post.md b/_tutorials-ruby/get_voters_list_on_post.md index 215e3eba..ecd0bb0b 100644 --- a/_tutorials-ruby/get_voters_list_on_post.md +++ b/_tutorials-ruby/get_voters_list_on_post.md @@ -18,13 +18,13 @@ Then, we sort the votes by `rshares` to find the top voter. ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): ```bash git clone git@github.com:steemit/devportal-tutorials-rb.git cd devportal-tutorials-rb/tutorials/06_get_voters_list_on_post bundle install -ruby voter_list.rb https://steemit.com/steemdev/@steemitdev/announcing-the-steem-developer-portal +ruby voter_list.rb https://hive.blog/hivedev/@steemitdev/announcing-the-steem-developer-portal ``` ### Example Output diff --git a/_tutorials-ruby/getting_started.md b/_tutorials-ruby/getting_started.md index 7e005c9d..ebc69af4 100644 --- a/_tutorials-ruby/getting_started.md +++ b/_tutorials-ruby/getting_started.md @@ -1,7 +1,7 @@ --- title: 'RB: Getting Started' position: 0 -description: "To access the Steem blockchain using Ruby, install the Radiator gem: [https://github.com/inertia186/radiator](https://github.com/inertia186/radiator). Full documentation on Radiator api methods are hosted on [rubydoc.info](http://www.rubydoc.info/gems/radiator)." +description: "To access the Hive blockchain using Ruby, install the Radiator gem: [https://github.com/inertia186/radiator](https://github.com/inertia186/radiator). Full documentation on Radiator api methods are hosted on [rubydoc.info](http://www.rubydoc.info/gems/radiator)." layout: full canonical_url: getting_started.html --- @@ -75,8 +75,8 @@ options = { url: 'https://rpc.steemliberator.com', failover_urls: [ 'https://gtg.steem.house:8090', - 'https://steemd.minnowsupportproject.org', - 'https://steemd.privex.io', + 'https://hived.minnowsupportproject.org', + 'https://hived.privex.io', ] } api = Radiator::Api.new(options) diff --git a/_tutorials-ruby/reblogging_post.md b/_tutorials-ruby/reblogging_post.md index 63353ce7..63b6bc44 100644 --- a/_tutorials-ruby/reblogging_post.md +++ b/_tutorials-ruby/reblogging_post.md @@ -62,7 +62,7 @@ tx.operations << { And to do the same with our tutorial script: ```bash -ruby reblogging_post.rb https://steemit.com/@inertia/kinda-spooky +ruby reblogging_post.rb https://hive.blog/@inertia/kinda-spooky ``` #### Example Output @@ -82,7 +82,7 @@ From the example we get the following output from our script: } ``` -The response we get after broadcasting the transaction gives us the transaction id ([`0aa41e0...`](https://steemd.com/tx/0aa41e06b2612315d32cadeb671eb1201f266dd7)), block number ([`24063620`](https://steemd.com/b/24063620)), and the transaction number of that block (`19`). +The response we get after broadcasting the transaction gives us the transaction id ([`0aa41e0...`](https://hiveblocks.com/tx/0aa41e06b2612315d32cadeb671eb1201f266dd7)), block number ([`24063620`](https://hiveblocks.com/b/24063620)), and the transaction number of that block (`19`). ### Example Error @@ -282,7 +282,7 @@ Broadcasting a `custom_json` operation will require the following fields: ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): * `<url>` diff --git a/_tutorials-ruby/search_accounts.md b/_tutorials-ruby/search_accounts.md index d599df1a..03df432f 100644 --- a/_tutorials-ruby/search_accounts.md +++ b/_tutorials-ruby/search_accounts.md @@ -60,7 +60,7 @@ alice alice-22 alice-is alice-labardo alice-mikhaylova alice-n-chains alice-rads ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): * `<lower-bound-name>` * `[limit]` (optional) diff --git a/_tutorials-ruby/search_tags.md b/_tutorials-ruby/search_tags.md index fdb218d1..3f3b4b2f 100644 --- a/_tutorials-ruby/search_tags.md +++ b/_tutorials-ruby/search_tags.md @@ -56,16 +56,16 @@ ruby search_tags.rb From the example we get the following output from our script: ``` -tag: <empty>, total_payouts: 57513246.041 SBD, net_votes: 47471936, top_posts: 4523493, comments: 27287924, trending: 100430269400 -tag: life, total_payouts: 12563434.550 SBD, net_votes: 10898489, top_posts: 1193059, comments: 1164873, trending: 7440962326 -tag: photography, total_payouts: 7529111.644 SBD, net_votes: 8578110, top_posts: 819008, comments: 1498469, trending: 7311205387 -tag: kr, total_payouts: 2953387.067 SBD, net_votes: 749380, top_posts: 79842, comments: 2138776, trending: 7009078414 -tag: steemit, total_payouts: 8531217.920 SBD, net_votes: 5393375, top_posts: 580400, comments: 1156174, trending: 5471456871 -tag: art, total_payouts: 4017591.434 SBD, net_votes: 3577651, top_posts: 330597, comments: 716566, trending: 3302526197 -tag: bitcoin, total_payouts: 3556944.650 SBD, net_votes: 2885034, top_posts: 416088, comments: 625529, trending: 3284115413 -tag: introduceyourself, total_payouts: 1863437.063 SBD, net_votes: 725570, top_posts: 24891, comments: 986875, trending: 3185017448 -tag: spanish, total_payouts: 1221282.258 SBD, net_votes: 2683931, top_posts: 154983, comments: 827033, trending: 3103643123 -tag: travel, total_payouts: 3976626.578 SBD, net_votes: 2505962, top_posts: 229401, comments: 622754, trending: 2687292306 +tag: <empty>, total_payouts: 57513246.041 HBD, net_votes: 47471936, top_posts: 4523493, comments: 27287924, trending: 100430269400 +tag: life, total_payouts: 12563434.550 HBD, net_votes: 10898489, top_posts: 1193059, comments: 1164873, trending: 7440962326 +tag: photography, total_payouts: 7529111.644 HBD, net_votes: 8578110, top_posts: 819008, comments: 1498469, trending: 7311205387 +tag: kr, total_payouts: 2953387.067 HBD, net_votes: 749380, top_posts: 79842, comments: 2138776, trending: 7009078414 +tag: steemit, total_payouts: 8531217.920 HBD, net_votes: 5393375, top_posts: 580400, comments: 1156174, trending: 5471456871 +tag: art, total_payouts: 4017591.434 HBD, net_votes: 3577651, top_posts: 330597, comments: 716566, trending: 3302526197 +tag: bitcoin, total_payouts: 3556944.650 HBD, net_votes: 2885034, top_posts: 416088, comments: 625529, trending: 3284115413 +tag: introduceyourself, total_payouts: 1863437.063 HBD, net_votes: 725570, top_posts: 24891, comments: 986875, trending: 3185017448 +tag: spanish, total_payouts: 1221282.258 HBD, net_votes: 2683931, top_posts: 154983, comments: 827033, trending: 3103643123 +tag: travel, total_payouts: 3976626.578 HBD, net_votes: 2505962, top_posts: 229401, comments: 622754, trending: 2687292306 ``` ### Tag fields @@ -81,7 +81,7 @@ Tags in the results of `get_trending_tags` returns the following fields: ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): * `[limit]` (optional) diff --git a/_tutorials-ruby/stream_blockchain_transactions.md b/_tutorials-ruby/stream_blockchain_transactions.md index a09b98f0..372ad13a 100644 --- a/_tutorials-ruby/stream_blockchain_transactions.md +++ b/_tutorials-ruby/stream_blockchain_transactions.md @@ -1,7 +1,7 @@ --- title: 'RB: Stream Blockchain Transactions' position: 13 -description: "*How to stream transactions and operations from Steem blockchain.*" +description: "*How to stream transactions and operations from Hive blockchain.*" layout: full canonical_url: stream_blockchain_transactions.html --- @@ -28,7 +28,7 @@ ruby stream_blockchain_transactions.rb head transactions This will instruct the script to follow transactions at head `block_num` instead of irreversible. -See: [`head_block_number`](https://developers.steem.io/tutorials-recipes/understanding-dynamic-global-properties#head_block_number) vs. [`last_irreversible_block_num`](https://developers.steem.io/tutorials-recipes/understanding-dynamic-global-properties#last_irreversible_block_num) +See: [`head_block_number`](https://developers.hive.io/tutorials-recipes/understanding-dynamic-global-properties#head_block_number) vs. [`last_irreversible_block_num`](https://developers.hive.io/tutorials-recipes/understanding-dynamic-global-properties#last_irreversible_block_num) This is done by using the following ruby: @@ -80,7 +80,7 @@ The `type` variable can be `nil` or the type of ops we're looking for whereas `a ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): ```bash git clone git@github.com:steemit/devportal-tutorials-rb.git diff --git a/_tutorials-ruby/submit_comment_reply.md b/_tutorials-ruby/submit_comment_reply.md index a02f7434..27e3b3d0 100644 --- a/_tutorials-ruby/submit_comment_reply.md +++ b/_tutorials-ruby/submit_comment_reply.md @@ -1,7 +1,7 @@ --- title: 'RB: Submit Comment Reply' position: 11 -description: "_By the end of this tutorial you should know how to prepare comments for Steem and then submit using Radiator._" +description: "_By the end of this tutorial you should know how to prepare comments for Hive and then submit using Radiator._" layout: full canonical_url: submit_comment_reply.html --- @@ -18,7 +18,7 @@ A reply is differentiated from a post by whether or not a `parent_author` exists ### Script -You should change `wif` to the posting key that matches your `author`. This script will pass along the values as a [`comment` operation](https://developers.steem.io/apidefinitions/broadcast-ops.html#broadcast_ops_comment): +You should change `wif` to the posting key that matches your `author`. This script will pass along the values as a [`comment` operation](https://developers.hive.io/apidefinitions/broadcast-ops.html#broadcast_ops_comment): * `author` - Account name of the author currently replying. * `permlink` - Value unique to the author @@ -30,7 +30,7 @@ You should change `wif` to the posting key that matches your `author`. This scr ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): ```bash git clone git@github.com:steemit/devportal-tutorials-rb.git @@ -54,7 +54,7 @@ ruby submit_comment_reply.rb } ``` -The response we get after broadcasting the transaction gives us the transaction id ([`3fef14c...`](https://steemd.com/tx/3fef14cac921e9baa7b31e43245e5380f3fb4332)), block number ([`22867626`](https://steemd.com/b/23355115)), and the transaction number of that block (`13`). +The response we get after broadcasting the transaction gives us the transaction id ([`3fef14c...`](https://hiveblocks.com/tx/3fef14cac921e9baa7b31e43245e5380f3fb4332)), block number ([`22867626`](https://hiveblocks.com/b/23355115)), and the transaction number of that block (`13`). #### Error Handling diff --git a/_tutorials-ruby/submit_post.md b/_tutorials-ruby/submit_post.md index db9ed382..a2471c8d 100644 --- a/_tutorials-ruby/submit_post.md +++ b/_tutorials-ruby/submit_post.md @@ -26,7 +26,7 @@ You should change `wif` to the posting key that matches your `author`. This scr ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository): ```bash git clone git@github.com:steemit/devportal-tutorials-rb.git @@ -50,7 +50,7 @@ ruby submit_a_new_post.rb } ``` -The response we get after broadcasting the transaction gives us the transaction id ([`768f7f6...`](https://steemd.com/tx/768f7f64cee94413da0017ef79f592bb4da86baf)), block number ([`22867626`](https://steemd.com/b/22867626)), and the transaction number of that block (`43`). +The response we get after broadcasting the transaction gives us the transaction id ([`768f7f6...`](https://hiveblocks.com/tx/768f7f64cee94413da0017ef79f592bb4da86baf)), block number ([`22867626`](https://hiveblocks.com/b/22867626)), and the transaction number of that block (`43`). #### Error Handling diff --git a/_tutorials-ruby/vote_on_content.md b/_tutorials-ruby/vote_on_content.md index 3836606c..8250a536 100644 --- a/_tutorials-ruby/vote_on_content.md +++ b/_tutorials-ruby/vote_on_content.md @@ -52,7 +52,7 @@ tx.operations << { And to do the same with our tutorial script: ```bash -ruby vote_on_content.rb https://steemit.com/@inertia/kinda-spooky +ruby vote_on_content.rb https://hive.blog/@inertia/kinda-spooky ``` #### Example Output @@ -72,12 +72,12 @@ From the example we get the following output from our script: } ``` -The response we get after broadcasting the transaction gives us the transaction id ([`244a67b...`](https://steemd.com/tx/244a67bf1e64f05fb2ab52a0652a8edd30c5d273)), block number ([`27035223`](https://steemd.com/b/27035223)), and the transaction number of that block (`15`). +The response we get after broadcasting the transaction gives us the transaction id ([`244a67b...`](https://hiveblocks.com/tx/244a67bf1e64f05fb2ab52a0652a8edd30c5d273)), block number ([`27035223`](https://hiveblocks.com/b/27035223)), and the transaction number of that block (`15`). Note, this script accepts accepts an optional percentage (defaulting `100.0 %`). To set the vote to `50.0 %`: ```bash -ruby vote_on_content.rb https://steemit.com/@inertia/kinda-spooky 50 +ruby vote_on_content.rb https://hive.blog/@inertia/kinda-spooky 50 ``` ### Example Error @@ -89,7 +89,7 @@ If an invalid vote weight is given (e.g.: `101 %`), we will get back an error: "jsonrpc": "2.0", "error": { "code": -32000, - "message": "Assert Exception:abs(weight) <= STEEM_100_PERCENT: Weight is not a STEEMIT percentage", + "message": "Assert Exception:abs(weight) <= HIVE_100_PERCENT: Weight is not a HIVE percentage", "data": { "code": 10, "name": "assert_exception", @@ -98,13 +98,13 @@ If an invalid vote weight is given (e.g.: `101 %`), we will get back an error: { "context": { "level": "error", - "file": "steem_operations.cpp", + "file": "hive_operations.cpp", "line": 179, "method": "validate", "hostname": "", "timestamp": "2018-10-22T16:09:50" }, - "format": "abs(weight) <= STEEM_100_PERCENT: Weight is not a STEEMIT percentage", + "format": "abs(weight) <= HIVE_100_PERCENT: Weight is not a HIVE percentage", "data": { } }, @@ -198,7 +198,7 @@ Broadcasting a `vote` operation will require the following fields: ### To Run -First, set up your workstation using the steps provided in [Getting Started](https://developers.steem.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository) with the following arguments: +First, set up your workstation using the steps provided in [Getting Started](https://developers.hive.io/tutorials-ruby/getting_started). Then you can create and execute the script (or clone from this repository) with the following arguments: * `<url>` - the URL to vote on * `[weight]` - the weight of the vote as percentage, optional (default `100.0 %`) diff --git a/images/logo.svg b/images/logo.svg index 18a98e27..09b052ae 100644 --- a/images/logo.svg +++ b/images/logo.svg @@ -1,6 +1,6 @@ <svg width="28px" height="29px" viewBox="0 0 28 29" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g stroke="none" stroke-width="1" fill="#ffffff" fill-rule="evenodd"> - <g id="SteemLogo"> + <g id="HiveLogo"> <path d="M4.22924444,3.23195745 C3.94488889,3.09004255 0.337866667,6.07148936 0.337866667,8.265 C0.332888889,11.2631064 4.54533333,18.0552766 5.25466667,20.6825532 C5.86506667,22.9359149 4.21928889,25.6403191 4.67164444,25.7631064 C5.0848,26.0284255 9.01475556,22.0486383 9.16782222,20.3518298 C9.36506667,17.6498936 4.57893333,9.77114894 4.19751111,7.73682979 C3.75511111,5.36253191 4.54782222,3.28502128 4.22924444,3.23195745 L4.22924444,3.23195745 L4.22924444,3.23195745 Z" id="Fill-1" fill="#1A5099"></path> <path d="M13.2321778,0.130191489 C12.8700444,-0.0505957447 8.26871111,3.74778723 8.26871111,6.54844681 C8.26373333,10.3715106 13.6353778,19.0338723 14.5394667,22.3812128 C15.3172444,25.2546809 13.2197333,28.7038298 13.7934222,28.8580851 C14.3235556,29.1949787 19.3324444,24.1242979 19.5296889,21.9573191 C19.7823111,18.5131064 13.6764444,8.46738298 13.1904889,5.86910638 C12.6267556,2.84878723 13.6353778,0.197446809 13.2321778,0.130191489 L13.2321778,0.130191489 L13.2321778,0.130191489 Z" id="Fill-2" fill="#4BA2F2"></path> <path d="M22.5238222,3.23195745 C22.2419556,3.09004255 18.6324444,6.07148936 18.6324444,8.265 C18.6280889,11.2631064 22.8399111,18.0552766 23.5498667,20.6825532 C24.1596444,22.9359149 22.5144889,25.6403191 22.9662222,25.7631064 C23.3818667,26.0284255 27.3124444,22.0486383 27.4630222,20.3518298 C27.6596444,17.6498936 22.8741333,9.77114894 22.4920889,7.73682979 C22.0503111,5.36253191 22.8424,3.28502128 22.5238222,3.23195745 L22.5238222,3.23195745 Z" id="Fill-3" fill="#1A5099"></path> diff --git a/images/logo_white.svg b/images/logo_white.svg index 3cdde110..3cdd4e3e 100644 --- a/images/logo_white.svg +++ b/images/logo_white.svg @@ -2,7 +2,7 @@ <g> <title>Layer 1</title> <g id="svg_1" fill-rule="evenodd" fill="#ffffff"> - <g id="SteemLogo"> + <g id="HiveLogo"> <path fill="#ffffff" id="Fill-1" d="m4.22924,3.23196c-0.28435,-0.14192 -3.89137,2.83953 -3.89137,5.03304c-0.00498,2.99811 4.20746,9.79028 4.9168,12.41755c0.6104,2.25336 -1.03538,4.95777 -0.58303,5.08056c0.41316,0.26532 4.34312,-3.71447 4.49618,-5.41128c0.19725,-2.70194 -4.58889,-10.58068 -4.97031,-12.615c-0.4424,-2.3743 0.35031,-4.45181 0.03173,-4.50487l0,0l0,0z"/> <path fill="#ffffff" id="Fill-2" d="m13.23218,0.13019c-0.36214,-0.18079 -4.96347,3.6176 -4.96347,6.41826c-0.00498,3.82306 5.36667,12.48542 6.27076,15.83276c0.77777,2.87347 -1.31974,6.32262 -0.74605,6.47688c0.53014,0.33689 5.53902,-4.73379 5.73627,-6.90077c0.25262,-3.44421 -5.85325,-13.48994 -6.3392,-16.08821c-0.56373,-3.02032 0.44489,-5.67166 0.04169,-5.73892l0,0l0,0z"/> <path fill="#ffffff" id="Fill-3" d="m22.52382,3.23196c-0.28186,-0.14192 -3.89138,2.83953 -3.89138,5.03304c-0.00435,2.99811 4.20747,9.79028 4.91743,12.41755c0.60977,2.25336 -1.03538,4.95777 -0.58365,5.08056c0.41565,0.26532 4.34622,-3.71447 4.4968,-5.41128c0.19662,-2.70194 -4.58889,-10.58068 -4.97093,-12.615c-0.44178,-2.3743 0.35031,-4.45181 0.03173,-4.50487l0,0z"/> diff --git a/lib/scrape/api_definitions_job.rb b/lib/scrape/api_definitions_job.rb index 5ae4f3b2..a90a8104 100644 --- a/lib/scrape/api_definitions_job.rb +++ b/lib/scrape/api_definitions_job.rb @@ -1,4 +1,4 @@ -require 'steem' +require 'hive' module Scrape @@ -12,7 +12,7 @@ module Scrape def initialize(options = {url: DEFAULT_URL, api_data_path: DEFAULT_API_DATA_PATH}) @url = options[:url] || DEFAULT_URL @api_data_path = options[:api_data_path] || DEFAULT_API_DATA_PATH - @jsonrpc = Steem::Jsonrpc.new(url: @url) + @jsonrpc = Hive::Jsonrpc.new(url: @url) end # Execute the job. @@ -121,4 +121,4 @@ module Scrape apis end end -end \ No newline at end of file +end diff --git a/tutorials/javascript/01_blog_feed/public/app.js b/tutorials/javascript/01_blog_feed/public/app.js index 5fd9e011..51a1d20b 100755 --- a/tutorials/javascript/01_blog_feed/public/app.js +++ b/tutorials/javascript/01_blog_feed/public/app.js @@ -1,6 +1,6 @@ const { Client } = require("@hivechain/dhive"); -const client = new Client('https://api.openhive.network'); +const client = new Client('https://api.hive.blog'); function fetchBlog() { const query = { diff --git a/tutorials/javascript/02_hivesigner/package.json b/tutorials/javascript/02_hivesigner/package.json index 6fc7e048..8b9faaa3 100755 --- a/tutorials/javascript/02_hivesigner/package.json +++ b/tutorials/javascript/02_hivesigner/package.json @@ -1,7 +1,7 @@ { - "name": "02_steemconnect", + "name": "02_hiveconnect", "version": "1.0.0", - "description": "Getting started with Steemconnect", + "description": "Getting started with Hiveconnect", "main": "index.js", "scripts": { "start": "webpack && node ./index.js", diff --git a/tutorials/javascript/02_hivesigner/public/bundle.js b/tutorials/javascript/02_hivesigner/public/bundle.js index be32dcfa..da60f36b 100644 --- a/tutorials/javascript/02_hivesigner/public/bundle.js +++ b/tutorials/javascript/02_hivesigner/public/bundle.js @@ -1,4 +1,4 @@ -!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){let n=r(1).Initialize({app:"demo-app",callbackURL:"http://localhost:3000",accessToken:"access_token",scope:["vote","comment"]}),o=n.getLoginURL(),i=new URLSearchParams(document.location.search).get("access_token"),s=new URLSearchParams(document.location.search).get("username"),a="",u="",f="",c="",h="";i?(n.setAccessToken(i),a="<a href=\"#\" onclick='logOut()'>Log Out</a>",u=`<p>User: <b>${s}</b></p>`,f="<a href=\"#\" onclick='getUserDetails()'>Get User details</a>",c='<pre id="userDetailsJSON"></pre>',h=a+u+f+c):h=`<a href=${o}>Log In</a>`,document.getElementById("content").innerHTML=h,window.logOut=()=>(n.revokeToken((function(t,e){e&&e.success&&(i=null,document.location.href="/")})),!1),window.getUserDetails=()=>{n.me((function(t,e){if(e){const t=JSON.stringify(e,void 0,2);document.getElementById("userDetailsJSON").innerHTML=t}}))}},function(t,e,r){window,t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=52)}([function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(25)("wks"),o=r(16),i=r(0).Symbol,s="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=n},function(t,e,r){var n=r(4),o=r(36),i=r(28),s=Object.defineProperty;e.f=r(5)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(9);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){t.exports=!r(13)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(0),o=r(1),i=r(17),s=r(8),a=r(6),u=function(t,e,r){var f,c,h,l=t&u.F,p=t&u.G,d=t&u.S,y=t&u.P,v=t&u.B,g=t&u.W,m=p?o:o[e]||(o[e]={}),b=m.prototype,w=p?n:d?n[e]:(n[e]||{}).prototype;for(f in p&&(r=e),r)(c=!l&&w&&void 0!==w[f])&&a(m,f)||(h=c?w[f]:r[f],m[f]=p&&"function"!=typeof w[f]?r[f]:v&&c?i(h,n):g&&w[f]==h?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):y&&"function"==typeof h?i(Function.call,h):h,y&&((m.virtual||(m.virtual={}))[f]=h,t&u.R&&b&&!b[f]&&s(b,f,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,r){var n=r(3),o=r(19);t.exports=r(5)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(56),o=r(22);t.exports=function(t){return n(o(t))}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports={}},function(t,e,r){var n=r(34),o=r(26);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){var n=r(18);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(3).f,o=r(6),i=r(2)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(22);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(25)("keys"),o=r(16);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e,r){var n=r(1),o=r(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(12)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(9),o=r(0).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,r){var n=r(9);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){e.f=r(2)},function(t,e,r){var n=r(0),o=r(1),i=r(12),s=r(29),a=r(3).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){"use strict";var n=r(18);function o(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)}t.exports.f=function(t){return new o(t)}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(6),o=r(10),i=r(57)(!1),s=r(24)("IE_PROTO");t.exports=function(t,e){var r,a=o(t),u=0,f=[];for(r in a)r!=s&&n(a,r)&&f.push(r);for(;e.length>u;)n(a,r=e[u++])&&(~i(f,r)||f.push(r));return f}},function(t,e,r){var n=r(23),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){t.exports=!r(5)&&!r(13)((function(){return 7!=Object.defineProperty(r(27)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){"use strict";var n=r(63)(!0);r(38)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e,r){"use strict";var n=r(12),o=r(7),i=r(39),s=r(8),a=r(14),u=r(64),f=r(20),c=r(66),h=r(2)("iterator"),l=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,r,d,y,v,g){u(r,e,d);var m,b,w,_=function(t){if(!l&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},x=e+" Iterator",O="values"==y,A=!1,E=t.prototype,P=E[h]||E["@@iterator"]||y&&E[y],S=P||_(y),T=y?O?_("entries"):S:void 0,R="Array"==e&&E.entries||P;if(R&&(w=c(R.call(new t)))!==Object.prototype&&w.next&&(f(w,x,!0),n||"function"==typeof w[h]||s(w,h,p)),O&&P&&"values"!==P.name&&(A=!0,S=function(){return P.call(this)}),n&&!g||!l&&!A&&E[h]||s(E,h,S),a[e]=S,a[x]=p,y)if(m={values:O?S:_("values"),keys:v?S:_("keys"),entries:T},g)for(b in m)b in E||i(E,b,m[b]);else o(o.P+o.F*(l||A),e,m);return m}},function(t,e,r){t.exports=r(8)},function(t,e,r){var n=r(4),o=r(65),i=r(26),s=r(24)("IE_PROTO"),a=function(){},u=function(){var t,e=r(27)("iframe"),n=i.length;for(e.style.display="none",r(41).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;n--;)delete u.prototype[i[n]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[s]=t):r=u(),void 0===e?r:o(r,e)}},function(t,e,r){var n=r(0).document;t.exports=n&&n.documentElement},function(t,e,r){r(67);for(var n=r(0),o=r(8),i=r(14),s=r(2)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var f=a[u],c=n[f],h=c&&c.prototype;h&&!h[s]&&o(h,s,f),i[f]=i.Array}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(34),o=r(26).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e){},function(t,e,r){var n=r(11),o=r(2)("toStringTag"),i="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:i?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,r){var n=r(4),o=r(18),i=r(2)("species");t.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||null==(r=n(s)[i])?e:o(r)}},function(t,e,r){var n,o,i,s=r(17),a=r(88),u=r(41),f=r(27),c=r(0),h=c.process,l=c.setImmediate,p=c.clearImmediate,d=c.MessageChannel,y=c.Dispatch,v=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){m.call(t.data)};l&&p||(l=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++v]=function(){a("function"==typeof t?t:Function(t),e)},n(v),v},p=function(t){delete g[t]},"process"==r(11)(h)?n=function(t){h.nextTick(s(m,t,1))}:y&&y.now?n=function(t){y.now(s(m,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,n=s(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):n="onreadystatechange"in f("script")?function(t){u.appendChild(f("script")).onreadystatechange=function(){u.removeChild(this),m.call(t)}}:function(t){setTimeout(s(m,t,1),0)}),t.exports={set:l,clear:p}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n=r(4),o=r(9),i=r(32);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){"use strict";var n=r(109),o=r(111);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return o.isString(t)&&(t=b(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(f),h=["%","/","?",";","#"].concat(c),l=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=r(112);function b(t,e,r){if(t&&o.isObject(t)&&t instanceof i)return t;var n=new i;return n.parse(t,e,r),n}i.prototype.parse=function(t,e,r){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i<t.indexOf("#")?"?":"#",f=t.split(a);f[0]=f[0].replace(/\\/g,"/");var b=t=f.join(a);if(b=b.trim(),!r&&1===t.split("#").length){var w=u.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=e?m.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var _=s.exec(b);if(_){var x=(_=_[0]).toLowerCase();this.protocol=x,b=b.substr(_.length)}if(r||_||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var O="//"===b.substr(0,2);!O||_&&v[_]||(b=b.substr(2),this.slashes=!0)}if(!v[_]&&(O||_&&!g[_])){for(var A,E,P=-1,S=0;S<l.length;S++)-1!==(T=b.indexOf(l[S]))&&(-1===P||T<P)&&(P=T);for(-1!==(E=-1===P?b.lastIndexOf("@"):b.lastIndexOf("@",P))&&(A=b.slice(0,E),b=b.slice(E+1),this.auth=decodeURIComponent(A)),P=-1,S=0;S<h.length;S++){var T;-1!==(T=b.indexOf(h[S]))&&(-1===P||T<P)&&(P=T)}-1===P&&(P=b.length),this.host=b.slice(0,P),b=b.slice(P),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var j=this.hostname.split(/\./),U=(S=0,j.length);S<U;S++){var k=j[S];if(k&&!k.match(p)){for(var L="",I=0,B=k.length;I<B;I++)k.charCodeAt(I)>127?L+="x":L+=k[I];if(!L.match(p)){var M=j.slice(0,S),C=j.slice(S+1),D=k.match(d);D&&(M.push(D[1]),C.unshift(D[2])),C.length&&(b="/"+C.join(".")+b),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=n.toASCII(this.hostname));var N=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+N,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!y[x])for(S=0,U=c.length;S<U;S++){var Y=c[S];if(-1!==b.indexOf(Y)){var q=encodeURIComponent(Y);q===Y&&(q=escape(Y)),b=b.split(Y).join(q)}}var H=b.indexOf("#");-1!==H&&(this.hash=b.substr(H),b=b.slice(0,H));var z=b.indexOf("?");if(-1!==z?(this.search=b.substr(z),this.query=b.substr(z+1),e&&(this.query=m.parse(this.query)),b=b.slice(0,z)):e&&(this.search="",this.query={}),b&&(this.pathname=b),g[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){N=this.pathname||"";var J=this.search||"";this.path=N+J}return this.href=this.format(),this},i.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,s="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(s=m.stringify(this.query));var a=this.search||s&&"?"+s||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(t){return this.resolveObject(b(t,!1,!0)).format()},i.prototype.resolveObject=function(t){if(o.isString(t)){var e=new i;e.parse(t,!1,!0),t=e}for(var r=new i,n=Object.keys(this),s=0;s<n.length;s++){var a=n[s];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),f=0;f<u.length;f++){var c=u[f];"protocol"!==c&&(r[c]=t[c])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!g[t.protocol]){for(var h=Object.keys(t),l=0;l<h.length;l++){var p=h[l];r[p]=t[p]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||v[t.protocol])r.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var y=r.pathname||"",m=r.search||"";r.path=y+m}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),w=t.host||t.pathname&&"/"===t.pathname.charAt(0),_=w||b||r.host&&t.pathname,x=_,O=r.pathname&&r.pathname.split("/")||[],A=(d=t.pathname&&t.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(A&&(r.hostname="",r.port=null,r.host&&(""===O[0]?O[0]=r.host:O.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),_=_&&(""===d[0]||""===O[0])),w)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,O=d;else if(d.length)O||(O=[]),O.pop(),O=O.concat(d),r.search=t.search,r.query=t.query;else if(!o.isNullOrUndefined(t.search))return A&&(r.hostname=r.host=O.shift(),(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=t.search,r.query=t.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!O.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=O.slice(-1)[0],P=(r.host||t.host||O.length>1)&&("."===E||".."===E)||""===E,S=0,T=O.length;T>=0;T--)"."===(E=O[T])?O.splice(T,1):".."===E?(O.splice(T,1),S++):S&&(O.splice(T,1),S--);if(!_&&!x)for(;S--;S)O.unshift("..");!_||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),P&&"/"!==O.join("/").substr(-1)&&O.push("");var R,j=""===O[0]||O[0]&&"/"===O[0].charAt(0);return A&&(r.hostname=r.host=j?"":O.length?O.shift():"",(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),(_=_||r.host&&O.length)&&!j&&O.unshift(""),O.length?r.pathname=O.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=h(r(53)),o=h(r(60)),i=h(r(80)),s=h(r(96)),a=h(r(98)),u=h(r(99)),f=h(r(103)),c=r(104);function h(t){return t&&t.__esModule?t:{default:t}}var l="https://hivesigner.com",p=function(){return"undefined"!=typeof window&&window},d=function(){return p()&&window._hivesigner},y=function(){return p()&&window.hive_keychain},v=function(){return!d()&&y()},g=function(){function t(e){(0,a.default)(this,t),this.apiURL=e.apiURL||"https://hivesigner.com",this.app=e.app,this.callbackURL=e.callbackURL,this.accessToken=e.accessToken,this.scope=e.scope||[],this.responseType=e.responseType}return(0,u.default)(t,[{key:"setBaseURL",value:function(){return console.warn('The function "setBaseUrl" is deprecated, the base URL is always "https://hivesigner.com", you can only change the API URL with "setApiURL"'),this}},{key:"setApiURL",value:function(t){return this.apiURL=t,this}},{key:"setApp",value:function(t){return this.app=t,this}},{key:"setCallbackURL",value:function(t){return this.callbackURL=t,this}},{key:"setAccessToken",value:function(t){return this.accessToken=t,this}},{key:"removeAccessToken",value:function(){return delete this.accessToken,this}},{key:"setScope",value:function(t){return this.scope=t,this}},{key:"getLoginURL",value:function(t){var e=encodeURIComponent(this.callbackURL),r="https://hivesigner.com/oauth2/authorize?client_id="+this.app+"&redirect_uri="+e;return"code"===this.responseType&&(r+="&response_type="+this.responseType),this.scope&&(r+="&scope="+this.scope.join(",")),t&&(r+="&state="+encodeURIComponent(t)),r}},{key:"login",value:function(t,e){if(d()){var r={};this.app&&(r.app=this.app),t.authority&&(r.authority=t.authority),window._hivesigner.login(r,e)}else if(y()&&t.username){var n={type:"login"};this.app&&(n.app=this.app);var o=parseInt((new Date).getTime()/1e3,10),i={signed_message:n,authors:[t.username],timestamp:o};window.hive_keychain.requestSignBuffer(t.username,(0,s.default)(i),"Posting",(function(t){if(t.error)return e(t.error);i.signatures=[t.result];var r=btoa((0,s.default)(i));return e(null,r)}))}else p()&&(window.location=this.getLoginURL(t.state))}},{key:"send",value:function(t,e,r,n){var o=this.apiURL+"/api/"+t,a=(0,f.default)(o,{method:e,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json",Authorization:this.accessToken},body:(0,s.default)(r)}).then((function(t){var e=t.json();return 200!==t.status?e.then((function(t){return i.default.reject(t)})):e})).then((function(t){return t.error?i.default.reject(t):t}));return n?a.then((function(t){return n(null,t)})).catch((function(t){return n(t,null)})):a}},{key:"me",value:function(t){return this.send("me","POST",{},t)}},{key:"broadcast",value:function(t,e){if(d()){var r=(0,c.encodeOps)(t);return window._hivesigner.sign(r,e)}return this.send("broadcast","POST",{operations:t},e)}},{key:"vote",value:function(t,e,r,n,o){if(v())return window.hive_keychain.requestVote(t,r,e,n,(function(t){return t.error?o(t.error):o(null,t)}));var i={voter:t,author:e,permlink:r,weight:n};return this.broadcast([["vote",i]],o)}},{key:"comment",value:function(t,e,r,n,o,i,a,u){if(v())return window.hive_keychain.requestPost(r,o,i,e,t,a,n,"",(function(t){return t.error?u(t.error):u(null,t)}));var f={parent_author:t,parent_permlink:e,author:r,permlink:n,title:o,body:i,json_metadata:(0,s.default)(a)};return this.broadcast([["comment",f]],u)}},{key:"deleteComment",value:function(t,e,r){var n={author:t,permlink:e};return this.broadcast([["delete_comment",n]],r)}},{key:"customJson",value:function(t,e,r,n,o){if(v())return window.hive_keychain.requestCustomJson(e[0],r,"Posting",n,"",(function(t){return t.error?o(t.error):o(null,t)}));var i={required_auths:t,required_posting_auths:e,id:r,json:n};return this.broadcast([["custom_json",i]],o)}},{key:"reblog",value:function(t,e,r,n){var o=["reblog",{account:t,author:e,permlink:r}];return this.customJson([],[t],"follow",(0,s.default)(o),n)}},{key:"follow",value:function(t,e,r){var n=["follow",{follower:t,following:e,what:["blog"]}];return this.customJson([],[t],"follow",(0,s.default)(n),r)}},{key:"unfollow",value:function(t,e,r){var n=["follow",{follower:t,following:e,what:[]}];return this.customJson([],[t],"follow",(0,s.default)(n),r)}},{key:"ignore",value:function(t,e,r){var n=["follow",{follower:t,following:e,what:["ignore"]}];return this.customJson([],[t],"follow",(0,s.default)(n),r)}},{key:"claimRewardBalance",value:function(t,e,r,n,o){var i={account:t,reward_steem:e,reward_sbd:r,reward_vests:n};return this.broadcast([["claim_reward_balance",i]],o)}},{key:"revokeToken",value:function(t){var e=this;return this.send("oauth2/token/revoke","POST",{token:this.accessToken},t).then((function(){return e.removeAccessToken()}))}},{key:"updateUserMetadata",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];return console.warn('The function "updateUserMetadata" is deprecated.'),this.send("me","PUT",{user_metadata:t},e)}}]),t}();e.default={Client:g,Initialize:function(t){return console.warn('The function "Initialize" is deprecated, please use the class "Client" instead.'),new g(t)},sign:function(t,e,r){if(console.warn('The function "sign" is deprecated.'),"string"!=typeof t||"object"!==(void 0===e?"undefined":(0,o.default)(e)))return{error:"invalid_request",error_description:"Request has an invalid format"};var i="https://hivesigner.com/sign/"+t+"?";return(i+=(0,n.default)(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&"))+(r?"&redirect_uri="+encodeURIComponent(r):"")},sendTransaction:function(t,e,r){var n=(0,c.encodeTx)(t,e),o=n.replace("hive://",l+"/");return d()?window._hivesigner.sign(n,r):r&&p()?window.open(o,"_blank").focus():o},sendOperations:function(t,e,r){var n=(0,c.encodeOps)(t,e),o=n.replace("hive://",l+"/");return d()?window._hivesigner.sign(n,r):r&&p()?window.open(o,"_blank").focus():o},sendOperation:function(t,e,r){var n=(0,c.encodeOp)(t,e),o=n.replace("hive://",l+"/");return d()?window._hivesigner.sign(n,r):r&&p()?window.open(o,"_blank").focus():o},hasChromeExtension:d,hasHiveKeychain:y,useHiveKeychain:v},t.exports=e.default},function(t,e,r){t.exports={default:r(54),__esModule:!0}},function(t,e,r){r(55),t.exports=r(1).Object.keys},function(t,e,r){var n=r(21),o=r(15);r(59)("keys",(function(){return function(t){return o(n(t))}}))},function(t,e,r){var n=r(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){var n=r(10),o=r(35),i=r(58);t.exports=function(t){return function(e,r,s){var a,u=n(e),f=o(u.length),c=i(s,f);if(t&&r!=r){for(;f>c;)if((a=u[c++])!=a)return!0}else for(;f>c;c++)if((t||c in u)&&u[c]===r)return t||c||0;return!t&&-1}}},function(t,e,r){var n=r(23),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=n(t))<0?o(t+e,0):i(t,e)}},function(t,e,r){var n=r(7),o=r(1),i=r(13);t.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],s={};s[t]=e(r),n(n.S+n.F*i((function(){r(1)})),"Object",s)}},function(t,e,r){"use strict";e.__esModule=!0;var n=s(r(61)),o=s(r(70)),i="function"==typeof o.default&&"symbol"==typeof n.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};function s(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof o.default&&"symbol"===i(n.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}},function(t,e,r){t.exports={default:r(62),__esModule:!0}},function(t,e,r){r(37),r(42),t.exports=r(29).f("iterator")},function(t,e,r){var n=r(23),o=r(22);t.exports=function(t){return function(e,r){var i,s,a=String(o(e)),u=n(r),f=a.length;return u<0||u>=f?t?"":void 0:(i=a.charCodeAt(u))<55296||i>56319||u+1===f||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):i:t?a.slice(u,u+2):s-56320+(i-55296<<10)+65536}}},function(t,e,r){"use strict";var n=r(40),o=r(19),i=r(20),s={};r(8)(s,r(2)("iterator"),(function(){return this})),t.exports=function(t,e,r){t.prototype=n(s,{next:o(1,r)}),i(t,e+" Iterator")}},function(t,e,r){var n=r(3),o=r(4),i=r(15);t.exports=r(5)?Object.defineProperties:function(t,e){o(t);for(var r,s=i(e),a=s.length,u=0;a>u;)n.f(t,r=s[u++],e[r]);return t}},function(t,e,r){var n=r(6),o=r(21),i=r(24)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,r){"use strict";var n=r(68),o=r(69),i=r(14),s=r(10);t.exports=r(38)(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){t.exports={default:r(71),__esModule:!0}},function(t,e,r){r(72),r(45),r(78),r(79),t.exports=r(1).Symbol},function(t,e,r){"use strict";var n=r(0),o=r(6),i=r(5),s=r(7),a=r(39),u=r(73).KEY,f=r(13),c=r(25),h=r(20),l=r(16),p=r(2),d=r(29),y=r(30),v=r(74),g=r(75),m=r(4),b=r(9),w=r(21),_=r(10),x=r(28),O=r(19),A=r(40),E=r(76),P=r(77),S=r(43),T=r(3),R=r(15),j=P.f,U=T.f,k=E.f,L=n.Symbol,I=n.JSON,B=I&&I.stringify,M=p("_hidden"),C=p("toPrimitive"),D={}.propertyIsEnumerable,N=c("symbol-registry"),F=c("symbols"),Y=c("op-symbols"),q=Object.prototype,H="function"==typeof L&&!!S.f,z=n.QObject,J=!z||!z.prototype||!z.prototype.findChild,G=i&&f((function(){return 7!=A(U({},"a",{get:function(){return U(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=j(q,e);n&&delete q[e],U(t,e,r),n&&t!==q&&U(q,e,n)}:U,V=function(t){var e=F[t]=A(L.prototype);return e._k=t,e},K=H&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},W=function(t,e,r){return t===q&&W(Y,e,r),m(t),e=x(e,!0),m(r),o(F,e)?(r.enumerable?(o(t,M)&&t[M][e]&&(t[M][e]=!1),r=A(r,{enumerable:O(0,!1)})):(o(t,M)||U(t,M,O(1,{})),t[M][e]=!0),G(t,e,r)):U(t,e,r)},$=function(t,e){m(t);for(var r,n=v(e=_(e)),o=0,i=n.length;i>o;)W(t,r=n[o++],e[r]);return t},X=function(t){var e=D.call(this,t=x(t,!0));return!(this===q&&o(F,t)&&!o(Y,t))&&(!(e||!o(this,t)||!o(F,t)||o(this,M)&&this[M][t])||e)},Z=function(t,e){if(t=_(t),e=x(e,!0),t!==q||!o(F,e)||o(Y,e)){var r=j(t,e);return!r||!o(F,e)||o(t,M)&&t[M][e]||(r.enumerable=!0),r}},Q=function(t){for(var e,r=k(_(t)),n=[],i=0;r.length>i;)o(F,e=r[i++])||e==M||e==u||n.push(e);return n},tt=function(t){for(var e,r=t===q,n=k(r?Y:_(t)),i=[],s=0;n.length>s;)!o(F,e=n[s++])||r&&!o(q,e)||i.push(F[e]);return i};H||(a((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(r){this===q&&e.call(Y,r),o(this,M)&&o(this[M],t)&&(this[M][t]=!1),G(this,t,O(1,r))};return i&&J&&G(q,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",(function(){return this._k})),P.f=Z,T.f=W,r(44).f=E.f=Q,r(31).f=X,S.f=tt,i&&!r(12)&&a(q,"propertyIsEnumerable",X,!0),d.f=function(t){return V(p(t))}),s(s.G+s.W+s.F*!H,{Symbol:L});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)p(et[rt++]);for(var nt=R(p.store),ot=0;nt.length>ot;)y(nt[ot++]);s(s.S+s.F*!H,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=L(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),s(s.S+s.F*!H,"Object",{create:function(t,e){return void 0===e?A(t):$(A(t),e)},defineProperty:W,defineProperties:$,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var it=f((function(){S.f(1)}));s(s.S+s.F*it,"Object",{getOwnPropertySymbols:function(t){return S.f(w(t))}}),I&&s(s.S+s.F*(!H||f((function(){var t=L();return"[null]"!=B([t])||"{}"!=B({a:t})||"{}"!=B(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(b(e)||void 0!==t)&&!K(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!K(e))return e}),n[1]=e,B.apply(I,n)}}),L.prototype[C]||r(8)(L.prototype,C,L.prototype.valueOf),h(L,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(t,e,r){var n=r(16)("meta"),o=r(9),i=r(6),s=r(3).f,a=0,u=Object.isExtensible||function(){return!0},f=!r(13)((function(){return u(Object.preventExtensions({}))})),c=function(t){s(t,n,{value:{i:"O"+ ++a,w:{}}})},h=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[n].i},getWeak:function(t,e){if(!i(t,n)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[n].w},onFreeze:function(t){return f&&h.NEED&&u(t)&&!i(t,n)&&c(t),t}}},function(t,e,r){var n=r(15),o=r(43),i=r(31);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var s,a=r(t),u=i.f,f=0;a.length>f;)u.call(t,s=a[f++])&&e.push(s);return e}},function(t,e,r){var n=r(11);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(10),o=r(44).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(n(t))}},function(t,e,r){var n=r(31),o=r(19),i=r(10),s=r(28),a=r(6),u=r(36),f=Object.getOwnPropertyDescriptor;e.f=r(5)?f:function(t,e){if(t=i(t),e=s(e,!0),u)try{return f(t,e)}catch(t){}if(a(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,r){r(30)("asyncIterator")},function(t,e,r){r(30)("observable")},function(t,e,r){t.exports={default:r(81),__esModule:!0}},function(t,e,r){r(45),r(37),r(42),r(82),r(94),r(95),t.exports=r(1).Promise},function(t,e,r){"use strict";var n,o,i,s,a=r(12),u=r(0),f=r(17),c=r(46),h=r(7),l=r(9),p=r(18),d=r(83),y=r(84),v=r(47),g=r(48).set,m=r(89)(),b=r(32),w=r(49),_=r(90),x=r(50),O=u.TypeError,A=u.process,E=A&&A.versions,P=E&&E.v8||"",S=u.Promise,T="process"==c(A),R=function(){},j=o=b.f,U=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[r(2)("species")]=function(t){t(R,R)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(R)instanceof e&&0!==P.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),k=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var r=t._c;m((function(){for(var n=t._v,o=1==t._s,i=0,s=function(e){var r,i,s,a=o?e.ok:e.fail,u=e.resolve,f=e.reject,c=e.domain;try{a?(o||(2==t._h&&M(t),t._h=1),!0===a?r=n:(c&&c.enter(),r=a(n),c&&(c.exit(),s=!0)),r===e.promise?f(O("Promise-chain cycle")):(i=k(r))?i.call(r,u,f):u(r)):f(n)}catch(t){c&&!s&&c.exit(),f(t)}};r.length>i;)s(r[i++]);t._c=[],t._n=!1,e&&!t._h&&I(t)}))}},I=function(t){g.call(u,(function(){var e,r,n,o=t._v,i=B(t);if(i&&(e=w((function(){T?A.emit("unhandledRejection",o,t):(r=u.onunhandledrejection)?r({promise:t,reason:o}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",o)})),t._h=T||B(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(t){g.call(u,(function(){var e;T?A.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},C=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},D=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw O("Promise can't be resolved itself");(e=k(t))?m((function(){var n={_w:r,_d:!1};try{e.call(t,f(D,n,1),f(C,n,1))}catch(t){C.call(n,t)}})):(r._v=t,r._s=1,L(r,!1))}catch(t){C.call({_w:r,_d:!1},t)}}};U||(S=function(t){d(this,S,"Promise","_h"),p(t),n.call(this);try{t(f(D,this,1),f(C,this,1))}catch(t){C.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(91)(S.prototype,{then:function(t,e){var r=j(v(this,S));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=T?A.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&L(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n;this.promise=t,this.resolve=f(D,t,1),this.reject=f(C,t,1)},b.f=j=function(t){return t===S||t===s?new i(t):o(t)}),h(h.G+h.W+h.F*!U,{Promise:S}),r(20)(S,"Promise"),r(92)("Promise"),s=r(1).Promise,h(h.S+h.F*!U,"Promise",{reject:function(t){var e=j(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!U),"Promise",{resolve:function(t){return x(a&&this===s?S:this,t)}}),h(h.S+h.F*!(U&&r(93)((function(t){S.all(t).catch(R)}))),"Promise",{all:function(t){var e=this,r=j(e),n=r.resolve,o=r.reject,i=w((function(){var r=[],i=0,s=1;y(t,!1,(function(t){var a=i++,u=!1;r.push(void 0),s++,e.resolve(t).then((function(t){u||(u=!0,r[a]=t,--s||n(r))}),o)})),--s||n(r)}));return i.e&&o(i.v),r.promise},race:function(t){var e=this,r=j(e),n=r.reject,o=w((function(){y(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return o.e&&n(o.v),r.promise}})},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e,r){var n=r(17),o=r(85),i=r(86),s=r(4),a=r(35),u=r(87),f={},c={};(e=t.exports=function(t,e,r,h,l){var p,d,y,v,g=l?function(){return t}:u(t),m=n(r,h,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(p=a(t.length);p>b;b++)if((v=e?m(s(d=t[b])[0],d[1]):m(t[b]))===f||v===c)return v}else for(y=g.call(t);!(d=y.next()).done;)if((v=o(y,m,d.value,e))===f||v===c)return v}).BREAK=f,e.RETURN=c},function(t,e,r){var n=r(4);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},function(t,e,r){var n=r(14),o=r(2)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},function(t,e,r){var n=r(46),o=r(2)("iterator"),i=r(14);t.exports=r(1).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[n(t)]}},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(0),o=r(48).set,i=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,u="process"==r(11)(s);t.exports=function(){var t,e,r,f=function(){var n,o;for(u&&(n=s.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(u)r=function(){s.nextTick(f)};else if(!i||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var c=a.resolve(void 0);r=function(){c.then(f)}}else r=function(){o.call(n,f)};else{var h=!0,l=document.createTextNode("");new i(f).observe(l,{characterData:!0}),r=function(){l.data=h=!h}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},function(t,e,r){var n=r(0).navigator;t.exports=n&&n.userAgent||""},function(t,e,r){var n=r(8);t.exports=function(t,e,r){for(var o in e)r&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}},function(t,e,r){"use strict";var n=r(0),o=r(1),i=r(3),s=r(5),a=r(2)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];s&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(2)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],s=i[n]();s.next=function(){return{done:r=!0}},i[n]=function(){return s},t(i)}catch(t){}return r}},function(t,e,r){"use strict";var n=r(7),o=r(1),i=r(0),s=r(47),a=r(50);n(n.P+n.R,"Promise",{finally:function(t){var e=s(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return a(e,t()).then((function(){return r}))}:t,r?function(r){return a(e,t()).then((function(){throw r}))}:t)}})},function(t,e,r){"use strict";var n=r(7),o=r(32),i=r(49);n(n.S,"Promise",{try:function(t){var e=o.f(this),r=i(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){t.exports={default:r(97),__esModule:!0}},function(t,e,r){var n=r(1),o=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var n,o=(n=r(100))&&n.__esModule?n:{default:n};e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,o.default)(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},function(t,e,r){t.exports={default:r(101),__esModule:!0}},function(t,e,r){r(102);var n=r(1).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){var n=r(7);n(n.S+n.F*!r(5),"Object",{defineProperty:r(3).f})},function(t,e){var r=function(t){function e(){this.fetch=!1,this.DOMException=t.DOMException}return e.prototype=t,new e}("undefined"!=typeof self?self:this);!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function y(t){var e=new FileReader,r=d(e);return e.readAsArrayBuffer(t),r}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,r,n=p(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=d(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=f(t),e=c(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},l.prototype.delete=function(t){delete this.map[f(t)]},l.prototype.get=function(t){return t=f(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(f(t))},l.prototype.set=function(t,e){this.map[f(t)]=c(e)},l.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),h(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),h(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),h(t)},n&&(l.prototype[Symbol.iterator]=l.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(t,e){var r,n,o=(e=e||{}).body;if(t instanceof b){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(n=(r=e.method||this.method||"GET").toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function _(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},_.error=function(){var t=new _(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];_.redirect=function(t,e){if(-1===x.indexOf(e))throw new RangeError("Invalid status code");return new _(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,r){return new Promise((function(n,i){var s=new b(t,r);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new _(o,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=l,t.Request=b,t.Response=_),e.Headers=l,e.Request=b,e.Response=_,e.fetch=O}({})}(r),delete r.fetch.polyfill,(e=r.fetch).default=r.fetch,e.fetch=r.fetch,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,t.exports=e},function(t,e,r){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),"undefined"==typeof URL&&(t.URL=r(51).URL),"undefined"==typeof URLSearchParams&&(t.URLSearchParams=r(51).URLSearchParams),"undefined"==typeof btoa&&(t.btoa=function(t){return new n(t,"binary").toString("base64")}),"undefined"==typeof atob&&(t.atob=function(t){return new n(t,"base64").toString("binary")});var o={"/":"_",_:"/","+":"-","-":"+","=":".",".":"="},i=function(t){return btoa(t).replace(/(\+|\/|=)/g,(function(t){return o[t]}))},s=function(t){return atob(t.replace(/(-|_|\.)/g,(function(t){return o[t]})))};e.decode=function(t){var e=t.slice(0,5),r=new URL(t.replace(/^hive:/,"http:"));if("hive:"!==e)throw new Error("Invalid protocol, expected 'hive:' got '"+e+"'");if("sign"!==r.host)throw new Error("Invalid action, expected 'sign' got '"+r.host+"'");var n,o,i=r.pathname.split("/").slice(1),a=i[0],u=i[1];try{n=JSON.parse(s(u))}catch(t){throw t.message="Invalid payload: "+t.message,t}switch(a){case"tx":o=n;break;case"op":case"ops":o={ref_block_num:"__ref_block_num",ref_block_prefix:"__ref_block_prefix",expiration:"__expiration",extensions:[],operations:"ops"===a?n:[n]};break;default:throw new Error("Invalid signing action '"+a+"'")}var f={};return r.searchParams.has("cb")&&(f.callback=s(r.searchParams.get("cb"))),r.searchParams.has("nb")&&(f.no_broadcast=!0),r.searchParams.has("s")&&(f.signer=r.searchParams.get("s")),{tx:o,params:f}};var a=/(__(ref_block_(num|prefix)|expiration|signer))/g;e.resolveTransaction=function(t,e,r){var n=e.signer||r.preferred_signer;if(!r.signers.includes(n))throw new Error("Signer '"+n+"' not available");var o={__ref_block_num:r.ref_block_num,__ref_block_prefix:r.ref_block_prefix,__expiration:r.expiration,__signer:n},i=function(t){var e=typeof t;switch("object"===e&&Array.isArray(t)?e="array":null===t&&(e="null"),e){case"string":return t.replace(a,(function(t){return o[t]}));case"array":return t.map(i);case"object":for(var r={},n=0,s=Object.entries(t);n<s.length;n++){var u=s[n],f=u[0],c=u[1];r[f]=i(c)}return r;default:return t}};return{signer:n,tx:i(t)}};var u=/({{(sig|id|block|txn)}})/g;function f(t){var e=new URLSearchParams;!0===t.no_broadcast&&e.set("nb",""),t.signer&&e.set("s",t.signer),t.callback&&e.set("cb",i(t.callback));var r=e.toString();return r.length>0&&(r="?"+r),r}function c(t){return i(JSON.stringify(t,null,0))}e.resolveCallback=function(t,e){return t.replace(u,(function(t,r,n){return e[n]||""}))},e.encodeTx=function(t,e){return void 0===e&&(e={}),"hive://sign/tx/"+c(t)+f(e)},e.encodeOp=function(t,e){return void 0===e&&(e={}),"hive://sign/op/"+c(t)+f(e)},e.encodeOps=function(t,e){return void 0===e&&(e={}),"hive://sign/ops/"+c(t)+f(e)}}).call(this,r(33),r(105).Buffer)},function(t,e,r){"use strict";(function(t){ +!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){let n=r(1).Initialize({app:"demo-app",callbackURL:"http://localhost:3000",accessToken:"access_token",scope:["vote","comment"]}),o=n.getLoginURL(),i=new URLSearchParams(document.location.search).get("access_token"),s=new URLSearchParams(document.location.search).get("username"),a="",u="",f="",c="",h="";i?(n.setAccessToken(i),a="<a href=\"#\" onclick='logOut()'>Log Out</a>",u=`<p>User: <b>${s}</b></p>`,f="<a href=\"#\" onclick='getUserDetails()'>Get User details</a>",c='<pre id="userDetailsJSON"></pre>',h=a+u+f+c):h=`<a href=${o}>Log In</a>`,document.getElementById("content").innerHTML=h,window.logOut=()=>(n.revokeToken((function(t,e){e&&e.success&&(i=null,document.location.href="/")})),!1),window.getUserDetails=()=>{n.me((function(t,e){if(e){const t=JSON.stringify(e,void 0,2);document.getElementById("userDetailsJSON").innerHTML=t}}))}},function(t,e,r){window,t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=52)}([function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e){var r=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(25)("wks"),o=r(16),i=r(0).Symbol,s="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=n},function(t,e,r){var n=r(4),o=r(36),i=r(28),s=Object.defineProperty;e.f=r(5)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(9);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){t.exports=!r(13)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(0),o=r(1),i=r(17),s=r(8),a=r(6),u=function(t,e,r){var f,c,h,l=t&u.F,p=t&u.G,d=t&u.S,y=t&u.P,v=t&u.B,g=t&u.W,m=p?o:o[e]||(o[e]={}),b=m.prototype,w=p?n:d?n[e]:(n[e]||{}).prototype;for(f in p&&(r=e),r)(c=!l&&w&&void 0!==w[f])&&a(m,f)||(h=c?w[f]:r[f],m[f]=p&&"function"!=typeof w[f]?r[f]:v&&c?i(h,n):g&&w[f]==h?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):y&&"function"==typeof h?i(Function.call,h):h,y&&((m.virtual||(m.virtual={}))[f]=h,t&u.R&&b&&!b[f]&&s(b,f,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,r){var n=r(3),o=r(19);t.exports=r(5)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(56),o=r(22);t.exports=function(t){return n(o(t))}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports={}},function(t,e,r){var n=r(34),o=r(26);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){var n=r(18);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(3).f,o=r(6),i=r(2)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(22);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(25)("keys"),o=r(16);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e,r){var n=r(1),o=r(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(12)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(9),o=r(0).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,r){var n=r(9);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){e.f=r(2)},function(t,e,r){var n=r(0),o=r(1),i=r(12),s=r(29),a=r(3).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){"use strict";var n=r(18);function o(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)}t.exports.f=function(t){return new o(t)}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(6),o=r(10),i=r(57)(!1),s=r(24)("IE_PROTO");t.exports=function(t,e){var r,a=o(t),u=0,f=[];for(r in a)r!=s&&n(a,r)&&f.push(r);for(;e.length>u;)n(a,r=e[u++])&&(~i(f,r)||f.push(r));return f}},function(t,e,r){var n=r(23),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){t.exports=!r(5)&&!r(13)((function(){return 7!=Object.defineProperty(r(27)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){"use strict";var n=r(63)(!0);r(38)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})}))},function(t,e,r){"use strict";var n=r(12),o=r(7),i=r(39),s=r(8),a=r(14),u=r(64),f=r(20),c=r(66),h=r(2)("iterator"),l=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,r,d,y,v,g){u(r,e,d);var m,b,w,_=function(t){if(!l&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},x=e+" Iterator",O="values"==y,A=!1,E=t.prototype,P=E[h]||E["@@iterator"]||y&&E[y],S=P||_(y),T=y?O?_("entries"):S:void 0,R="Array"==e&&E.entries||P;if(R&&(w=c(R.call(new t)))!==Object.prototype&&w.next&&(f(w,x,!0),n||"function"==typeof w[h]||s(w,h,p)),O&&P&&"values"!==P.name&&(A=!0,S=function(){return P.call(this)}),n&&!g||!l&&!A&&E[h]||s(E,h,S),a[e]=S,a[x]=p,y)if(m={values:O?S:_("values"),keys:v?S:_("keys"),entries:T},g)for(b in m)b in E||i(E,b,m[b]);else o(o.P+o.F*(l||A),e,m);return m}},function(t,e,r){t.exports=r(8)},function(t,e,r){var n=r(4),o=r(65),i=r(26),s=r(24)("IE_PROTO"),a=function(){},u=function(){var t,e=r(27)("iframe"),n=i.length;for(e.style.display="none",r(41).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;n--;)delete u.prototype[i[n]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[s]=t):r=u(),void 0===e?r:o(r,e)}},function(t,e,r){var n=r(0).document;t.exports=n&&n.documentElement},function(t,e,r){r(67);for(var n=r(0),o=r(8),i=r(14),s=r(2)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var f=a[u],c=n[f],h=c&&c.prototype;h&&!h[s]&&o(h,s,f),i[f]=i.Array}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(34),o=r(26).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e){},function(t,e,r){var n=r(11),o=r(2)("toStringTag"),i="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:i?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,r){var n=r(4),o=r(18),i=r(2)("species");t.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||null==(r=n(s)[i])?e:o(r)}},function(t,e,r){var n,o,i,s=r(17),a=r(88),u=r(41),f=r(27),c=r(0),h=c.process,l=c.setImmediate,p=c.clearImmediate,d=c.MessageChannel,y=c.Dispatch,v=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){m.call(t.data)};l&&p||(l=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++v]=function(){a("function"==typeof t?t:Function(t),e)},n(v),v},p=function(t){delete g[t]},"process"==r(11)(h)?n=function(t){h.nextTick(s(m,t,1))}:y&&y.now?n=function(t){y.now(s(m,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=b,n=s(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):n="onreadystatechange"in f("script")?function(t){u.appendChild(f("script")).onreadystatechange=function(){u.removeChild(this),m.call(t)}}:function(t){setTimeout(s(m,t,1),0)}),t.exports={set:l,clear:p}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n=r(4),o=r(9),i=r(32);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){"use strict";var n=r(109),o=r(111);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return o.isString(t)&&(t=b(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(f),h=["%","/","?",";","#"].concat(c),l=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=r(112);function b(t,e,r){if(t&&o.isObject(t)&&t instanceof i)return t;var n=new i;return n.parse(t,e,r),n}i.prototype.parse=function(t,e,r){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i<t.indexOf("#")?"?":"#",f=t.split(a);f[0]=f[0].replace(/\\/g,"/");var b=t=f.join(a);if(b=b.trim(),!r&&1===t.split("#").length){var w=u.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=e?m.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var _=s.exec(b);if(_){var x=(_=_[0]).toLowerCase();this.protocol=x,b=b.substr(_.length)}if(r||_||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var O="//"===b.substr(0,2);!O||_&&v[_]||(b=b.substr(2),this.slashes=!0)}if(!v[_]&&(O||_&&!g[_])){for(var A,E,P=-1,S=0;S<l.length;S++)-1!==(T=b.indexOf(l[S]))&&(-1===P||T<P)&&(P=T);for(-1!==(E=-1===P?b.lastIndexOf("@"):b.lastIndexOf("@",P))&&(A=b.slice(0,E),b=b.slice(E+1),this.auth=decodeURIComponent(A)),P=-1,S=0;S<h.length;S++){var T;-1!==(T=b.indexOf(h[S]))&&(-1===P||T<P)&&(P=T)}-1===P&&(P=b.length),this.host=b.slice(0,P),b=b.slice(P),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var j=this.hostname.split(/\./),U=(S=0,j.length);S<U;S++){var k=j[S];if(k&&!k.match(p)){for(var L="",I=0,B=k.length;I<B;I++)k.charCodeAt(I)>127?L+="x":L+=k[I];if(!L.match(p)){var M=j.slice(0,S),C=j.slice(S+1),D=k.match(d);D&&(M.push(D[1]),C.unshift(D[2])),C.length&&(b="/"+C.join(".")+b),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=n.toASCII(this.hostname));var N=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+N,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!y[x])for(S=0,U=c.length;S<U;S++){var Y=c[S];if(-1!==b.indexOf(Y)){var q=encodeURIComponent(Y);q===Y&&(q=escape(Y)),b=b.split(Y).join(q)}}var H=b.indexOf("#");-1!==H&&(this.hash=b.substr(H),b=b.slice(0,H));var z=b.indexOf("?");if(-1!==z?(this.search=b.substr(z),this.query=b.substr(z+1),e&&(this.query=m.parse(this.query)),b=b.slice(0,z)):e&&(this.search="",this.query={}),b&&(this.pathname=b),g[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){N=this.pathname||"";var J=this.search||"";this.path=N+J}return this.href=this.format(),this},i.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,s="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(s=m.stringify(this.query));var a=this.search||s&&"?"+s||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(t){return this.resolveObject(b(t,!1,!0)).format()},i.prototype.resolveObject=function(t){if(o.isString(t)){var e=new i;e.parse(t,!1,!0),t=e}for(var r=new i,n=Object.keys(this),s=0;s<n.length;s++){var a=n[s];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),f=0;f<u.length;f++){var c=u[f];"protocol"!==c&&(r[c]=t[c])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!g[t.protocol]){for(var h=Object.keys(t),l=0;l<h.length;l++){var p=h[l];r[p]=t[p]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||v[t.protocol])r.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var y=r.pathname||"",m=r.search||"";r.path=y+m}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),w=t.host||t.pathname&&"/"===t.pathname.charAt(0),_=w||b||r.host&&t.pathname,x=_,O=r.pathname&&r.pathname.split("/")||[],A=(d=t.pathname&&t.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(A&&(r.hostname="",r.port=null,r.host&&(""===O[0]?O[0]=r.host:O.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),_=_&&(""===d[0]||""===O[0])),w)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,O=d;else if(d.length)O||(O=[]),O.pop(),O=O.concat(d),r.search=t.search,r.query=t.query;else if(!o.isNullOrUndefined(t.search))return A&&(r.hostname=r.host=O.shift(),(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=t.search,r.query=t.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!O.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=O.slice(-1)[0],P=(r.host||t.host||O.length>1)&&("."===E||".."===E)||""===E,S=0,T=O.length;T>=0;T--)"."===(E=O[T])?O.splice(T,1):".."===E?(O.splice(T,1),S++):S&&(O.splice(T,1),S--);if(!_&&!x)for(;S--;S)O.unshift("..");!_||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),P&&"/"!==O.join("/").substr(-1)&&O.push("");var R,j=""===O[0]||O[0]&&"/"===O[0].charAt(0);return A&&(r.hostname=r.host=j?"":O.length?O.shift():"",(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),(_=_||r.host&&O.length)&&!j&&O.unshift(""),O.length?r.pathname=O.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=h(r(53)),o=h(r(60)),i=h(r(80)),s=h(r(96)),a=h(r(98)),u=h(r(99)),f=h(r(103)),c=r(104);function h(t){return t&&t.__esModule?t:{default:t}}var l="https://hivesigner.com",p=function(){return"undefined"!=typeof window&&window},d=function(){return p()&&window._hivesigner},y=function(){return p()&&window.hive_keychain},v=function(){return!d()&&y()},g=function(){function t(e){(0,a.default)(this,t),this.apiURL=e.apiURL||"https://hivesigner.com",this.app=e.app,this.callbackURL=e.callbackURL,this.accessToken=e.accessToken,this.scope=e.scope||[],this.responseType=e.responseType}return(0,u.default)(t,[{key:"setBaseURL",value:function(){return console.warn('The function "setBaseUrl" is deprecated, the base URL is always "https://hivesigner.com", you can only change the API URL with "setApiURL"'),this}},{key:"setApiURL",value:function(t){return this.apiURL=t,this}},{key:"setApp",value:function(t){return this.app=t,this}},{key:"setCallbackURL",value:function(t){return this.callbackURL=t,this}},{key:"setAccessToken",value:function(t){return this.accessToken=t,this}},{key:"removeAccessToken",value:function(){return delete this.accessToken,this}},{key:"setScope",value:function(t){return this.scope=t,this}},{key:"getLoginURL",value:function(t){var e=encodeURIComponent(this.callbackURL),r="https://hivesigner.com/oauth2/authorize?client_id="+this.app+"&redirect_uri="+e;return"code"===this.responseType&&(r+="&response_type="+this.responseType),this.scope&&(r+="&scope="+this.scope.join(",")),t&&(r+="&state="+encodeURIComponent(t)),r}},{key:"login",value:function(t,e){if(d()){var r={};this.app&&(r.app=this.app),t.authority&&(r.authority=t.authority),window._hivesigner.login(r,e)}else if(y()&&t.username){var n={type:"login"};this.app&&(n.app=this.app);var o=parseInt((new Date).getTime()/1e3,10),i={signed_message:n,authors:[t.username],timestamp:o};window.hive_keychain.requestSignBuffer(t.username,(0,s.default)(i),"Posting",(function(t){if(t.error)return e(t.error);i.signatures=[t.result];var r=btoa((0,s.default)(i));return e(null,r)}))}else p()&&(window.location=this.getLoginURL(t.state))}},{key:"send",value:function(t,e,r,n){var o=this.apiURL+"/api/"+t,a=(0,f.default)(o,{method:e,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json",Authorization:this.accessToken},body:(0,s.default)(r)}).then((function(t){var e=t.json();return 200!==t.status?e.then((function(t){return i.default.reject(t)})):e})).then((function(t){return t.error?i.default.reject(t):t}));return n?a.then((function(t){return n(null,t)})).catch((function(t){return n(t,null)})):a}},{key:"me",value:function(t){return this.send("me","POST",{},t)}},{key:"broadcast",value:function(t,e){if(d()){var r=(0,c.encodeOps)(t);return window._hivesigner.sign(r,e)}return this.send("broadcast","POST",{operations:t},e)}},{key:"vote",value:function(t,e,r,n,o){if(v())return window.hive_keychain.requestVote(t,r,e,n,(function(t){return t.error?o(t.error):o(null,t)}));var i={voter:t,author:e,permlink:r,weight:n};return this.broadcast([["vote",i]],o)}},{key:"comment",value:function(t,e,r,n,o,i,a,u){if(v())return window.hive_keychain.requestPost(r,o,i,e,t,a,n,"",(function(t){return t.error?u(t.error):u(null,t)}));var f={parent_author:t,parent_permlink:e,author:r,permlink:n,title:o,body:i,json_metadata:(0,s.default)(a)};return this.broadcast([["comment",f]],u)}},{key:"deleteComment",value:function(t,e,r){var n={author:t,permlink:e};return this.broadcast([["delete_comment",n]],r)}},{key:"customJson",value:function(t,e,r,n,o){if(v())return window.hive_keychain.requestCustomJson(e[0],r,"Posting",n,"",(function(t){return t.error?o(t.error):o(null,t)}));var i={required_auths:t,required_posting_auths:e,id:r,json:n};return this.broadcast([["custom_json",i]],o)}},{key:"reblog",value:function(t,e,r,n){var o=["reblog",{account:t,author:e,permlink:r}];return this.customJson([],[t],"follow",(0,s.default)(o),n)}},{key:"follow",value:function(t,e,r){var n=["follow",{follower:t,following:e,what:["blog"]}];return this.customJson([],[t],"follow",(0,s.default)(n),r)}},{key:"unfollow",value:function(t,e,r){var n=["follow",{follower:t,following:e,what:[]}];return this.customJson([],[t],"follow",(0,s.default)(n),r)}},{key:"ignore",value:function(t,e,r){var n=["follow",{follower:t,following:e,what:["ignore"]}];return this.customJson([],[t],"follow",(0,s.default)(n),r)}},{key:"claimRewardBalance",value:function(t,e,r,n,o){var i={account:t,reward_hive:e,reward_hbd:r,reward_vests:n};return this.broadcast([["claim_reward_balance",i]],o)}},{key:"revokeToken",value:function(t){var e=this;return this.send("oauth2/token/revoke","POST",{token:this.accessToken},t).then((function(){return e.removeAccessToken()}))}},{key:"updateUserMetadata",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];return console.warn('The function "updateUserMetadata" is deprecated.'),this.send("me","PUT",{user_metadata:t},e)}}]),t}();e.default={Client:g,Initialize:function(t){return console.warn('The function "Initialize" is deprecated, please use the class "Client" instead.'),new g(t)},sign:function(t,e,r){if(console.warn('The function "sign" is deprecated.'),"string"!=typeof t||"object"!==(void 0===e?"undefined":(0,o.default)(e)))return{error:"invalid_request",error_description:"Request has an invalid format"};var i="https://hivesigner.com/sign/"+t+"?";return(i+=(0,n.default)(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&"))+(r?"&redirect_uri="+encodeURIComponent(r):"")},sendTransaction:function(t,e,r){var n=(0,c.encodeTx)(t,e),o=n.replace("hive://",l+"/");return d()?window._hivesigner.sign(n,r):r&&p()?window.open(o,"_blank").focus():o},sendOperations:function(t,e,r){var n=(0,c.encodeOps)(t,e),o=n.replace("hive://",l+"/");return d()?window._hivesigner.sign(n,r):r&&p()?window.open(o,"_blank").focus():o},sendOperation:function(t,e,r){var n=(0,c.encodeOp)(t,e),o=n.replace("hive://",l+"/");return d()?window._hivesigner.sign(n,r):r&&p()?window.open(o,"_blank").focus():o},hasChromeExtension:d,hasHiveKeychain:y,useHiveKeychain:v},t.exports=e.default},function(t,e,r){t.exports={default:r(54),__esModule:!0}},function(t,e,r){r(55),t.exports=r(1).Object.keys},function(t,e,r){var n=r(21),o=r(15);r(59)("keys",(function(){return function(t){return o(n(t))}}))},function(t,e,r){var n=r(11);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){var n=r(10),o=r(35),i=r(58);t.exports=function(t){return function(e,r,s){var a,u=n(e),f=o(u.length),c=i(s,f);if(t&&r!=r){for(;f>c;)if((a=u[c++])!=a)return!0}else for(;f>c;c++)if((t||c in u)&&u[c]===r)return t||c||0;return!t&&-1}}},function(t,e,r){var n=r(23),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=n(t))<0?o(t+e,0):i(t,e)}},function(t,e,r){var n=r(7),o=r(1),i=r(13);t.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],s={};s[t]=e(r),n(n.S+n.F*i((function(){r(1)})),"Object",s)}},function(t,e,r){"use strict";e.__esModule=!0;var n=s(r(61)),o=s(r(70)),i="function"==typeof o.default&&"symbol"==typeof n.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};function s(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof o.default&&"symbol"===i(n.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}},function(t,e,r){t.exports={default:r(62),__esModule:!0}},function(t,e,r){r(37),r(42),t.exports=r(29).f("iterator")},function(t,e,r){var n=r(23),o=r(22);t.exports=function(t){return function(e,r){var i,s,a=String(o(e)),u=n(r),f=a.length;return u<0||u>=f?t?"":void 0:(i=a.charCodeAt(u))<55296||i>56319||u+1===f||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):i:t?a.slice(u,u+2):s-56320+(i-55296<<10)+65536}}},function(t,e,r){"use strict";var n=r(40),o=r(19),i=r(20),s={};r(8)(s,r(2)("iterator"),(function(){return this})),t.exports=function(t,e,r){t.prototype=n(s,{next:o(1,r)}),i(t,e+" Iterator")}},function(t,e,r){var n=r(3),o=r(4),i=r(15);t.exports=r(5)?Object.defineProperties:function(t,e){o(t);for(var r,s=i(e),a=s.length,u=0;a>u;)n.f(t,r=s[u++],e[r]);return t}},function(t,e,r){var n=r(6),o=r(21),i=r(24)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,r){"use strict";var n=r(68),o=r(69),i=r(14),s=r(10);t.exports=r(38)(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])}),"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){t.exports={default:r(71),__esModule:!0}},function(t,e,r){r(72),r(45),r(78),r(79),t.exports=r(1).Symbol},function(t,e,r){"use strict";var n=r(0),o=r(6),i=r(5),s=r(7),a=r(39),u=r(73).KEY,f=r(13),c=r(25),h=r(20),l=r(16),p=r(2),d=r(29),y=r(30),v=r(74),g=r(75),m=r(4),b=r(9),w=r(21),_=r(10),x=r(28),O=r(19),A=r(40),E=r(76),P=r(77),S=r(43),T=r(3),R=r(15),j=P.f,U=T.f,k=E.f,L=n.Symbol,I=n.JSON,B=I&&I.stringify,M=p("_hidden"),C=p("toPrimitive"),D={}.propertyIsEnumerable,N=c("symbol-registry"),F=c("symbols"),Y=c("op-symbols"),q=Object.prototype,H="function"==typeof L&&!!S.f,z=n.QObject,J=!z||!z.prototype||!z.prototype.findChild,G=i&&f((function(){return 7!=A(U({},"a",{get:function(){return U(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=j(q,e);n&&delete q[e],U(t,e,r),n&&t!==q&&U(q,e,n)}:U,V=function(t){var e=F[t]=A(L.prototype);return e._k=t,e},K=H&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},W=function(t,e,r){return t===q&&W(Y,e,r),m(t),e=x(e,!0),m(r),o(F,e)?(r.enumerable?(o(t,M)&&t[M][e]&&(t[M][e]=!1),r=A(r,{enumerable:O(0,!1)})):(o(t,M)||U(t,M,O(1,{})),t[M][e]=!0),G(t,e,r)):U(t,e,r)},$=function(t,e){m(t);for(var r,n=v(e=_(e)),o=0,i=n.length;i>o;)W(t,r=n[o++],e[r]);return t},X=function(t){var e=D.call(this,t=x(t,!0));return!(this===q&&o(F,t)&&!o(Y,t))&&(!(e||!o(this,t)||!o(F,t)||o(this,M)&&this[M][t])||e)},Z=function(t,e){if(t=_(t),e=x(e,!0),t!==q||!o(F,e)||o(Y,e)){var r=j(t,e);return!r||!o(F,e)||o(t,M)&&t[M][e]||(r.enumerable=!0),r}},Q=function(t){for(var e,r=k(_(t)),n=[],i=0;r.length>i;)o(F,e=r[i++])||e==M||e==u||n.push(e);return n},tt=function(t){for(var e,r=t===q,n=k(r?Y:_(t)),i=[],s=0;n.length>s;)!o(F,e=n[s++])||r&&!o(q,e)||i.push(F[e]);return i};H||(a((L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),e=function(r){this===q&&e.call(Y,r),o(this,M)&&o(this[M],t)&&(this[M][t]=!1),G(this,t,O(1,r))};return i&&J&&G(q,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",(function(){return this._k})),P.f=Z,T.f=W,r(44).f=E.f=Q,r(31).f=X,S.f=tt,i&&!r(12)&&a(q,"propertyIsEnumerable",X,!0),d.f=function(t){return V(p(t))}),s(s.G+s.W+s.F*!H,{Symbol:L});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)p(et[rt++]);for(var nt=R(p.store),ot=0;nt.length>ot;)y(nt[ot++]);s(s.S+s.F*!H,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=L(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),s(s.S+s.F*!H,"Object",{create:function(t,e){return void 0===e?A(t):$(A(t),e)},defineProperty:W,defineProperties:$,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var it=f((function(){S.f(1)}));s(s.S+s.F*it,"Object",{getOwnPropertySymbols:function(t){return S.f(w(t))}}),I&&s(s.S+s.F*(!H||f((function(){var t=L();return"[null]"!=B([t])||"{}"!=B({a:t})||"{}"!=B(Object(t))}))),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(b(e)||void 0!==t)&&!K(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!K(e))return e}),n[1]=e,B.apply(I,n)}}),L.prototype[C]||r(8)(L.prototype,C,L.prototype.valueOf),h(L,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(t,e,r){var n=r(16)("meta"),o=r(9),i=r(6),s=r(3).f,a=0,u=Object.isExtensible||function(){return!0},f=!r(13)((function(){return u(Object.preventExtensions({}))})),c=function(t){s(t,n,{value:{i:"O"+ ++a,w:{}}})},h=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[n].i},getWeak:function(t,e){if(!i(t,n)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[n].w},onFreeze:function(t){return f&&h.NEED&&u(t)&&!i(t,n)&&c(t),t}}},function(t,e,r){var n=r(15),o=r(43),i=r(31);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var s,a=r(t),u=i.f,f=0;a.length>f;)u.call(t,s=a[f++])&&e.push(s);return e}},function(t,e,r){var n=r(11);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(10),o=r(44).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(n(t))}},function(t,e,r){var n=r(31),o=r(19),i=r(10),s=r(28),a=r(6),u=r(36),f=Object.getOwnPropertyDescriptor;e.f=r(5)?f:function(t,e){if(t=i(t),e=s(e,!0),u)try{return f(t,e)}catch(t){}if(a(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,r){r(30)("asyncIterator")},function(t,e,r){r(30)("observable")},function(t,e,r){t.exports={default:r(81),__esModule:!0}},function(t,e,r){r(45),r(37),r(42),r(82),r(94),r(95),t.exports=r(1).Promise},function(t,e,r){"use strict";var n,o,i,s,a=r(12),u=r(0),f=r(17),c=r(46),h=r(7),l=r(9),p=r(18),d=r(83),y=r(84),v=r(47),g=r(48).set,m=r(89)(),b=r(32),w=r(49),_=r(90),x=r(50),O=u.TypeError,A=u.process,E=A&&A.versions,P=E&&E.v8||"",S=u.Promise,T="process"==c(A),R=function(){},j=o=b.f,U=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[r(2)("species")]=function(t){t(R,R)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(R)instanceof e&&0!==P.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),k=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var r=t._c;m((function(){for(var n=t._v,o=1==t._s,i=0,s=function(e){var r,i,s,a=o?e.ok:e.fail,u=e.resolve,f=e.reject,c=e.domain;try{a?(o||(2==t._h&&M(t),t._h=1),!0===a?r=n:(c&&c.enter(),r=a(n),c&&(c.exit(),s=!0)),r===e.promise?f(O("Promise-chain cycle")):(i=k(r))?i.call(r,u,f):u(r)):f(n)}catch(t){c&&!s&&c.exit(),f(t)}};r.length>i;)s(r[i++]);t._c=[],t._n=!1,e&&!t._h&&I(t)}))}},I=function(t){g.call(u,(function(){var e,r,n,o=t._v,i=B(t);if(i&&(e=w((function(){T?A.emit("unhandledRejection",o,t):(r=u.onunhandledrejection)?r({promise:t,reason:o}):(n=u.console)&&n.error&&n.error("Unhandled promise rejection",o)})),t._h=T||B(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(t){g.call(u,(function(){var e;T?A.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})}))},C=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},D=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw O("Promise can't be resolved itself");(e=k(t))?m((function(){var n={_w:r,_d:!1};try{e.call(t,f(D,n,1),f(C,n,1))}catch(t){C.call(n,t)}})):(r._v=t,r._s=1,L(r,!1))}catch(t){C.call({_w:r,_d:!1},t)}}};U||(S=function(t){d(this,S,"Promise","_h"),p(t),n.call(this);try{t(f(D,this,1),f(C,this,1))}catch(t){C.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(91)(S.prototype,{then:function(t,e){var r=j(v(this,S));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=T?A.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&L(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n;this.promise=t,this.resolve=f(D,t,1),this.reject=f(C,t,1)},b.f=j=function(t){return t===S||t===s?new i(t):o(t)}),h(h.G+h.W+h.F*!U,{Promise:S}),r(20)(S,"Promise"),r(92)("Promise"),s=r(1).Promise,h(h.S+h.F*!U,"Promise",{reject:function(t){var e=j(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!U),"Promise",{resolve:function(t){return x(a&&this===s?S:this,t)}}),h(h.S+h.F*!(U&&r(93)((function(t){S.all(t).catch(R)}))),"Promise",{all:function(t){var e=this,r=j(e),n=r.resolve,o=r.reject,i=w((function(){var r=[],i=0,s=1;y(t,!1,(function(t){var a=i++,u=!1;r.push(void 0),s++,e.resolve(t).then((function(t){u||(u=!0,r[a]=t,--s||n(r))}),o)})),--s||n(r)}));return i.e&&o(i.v),r.promise},race:function(t){var e=this,r=j(e),n=r.reject,o=w((function(){y(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return o.e&&n(o.v),r.promise}})},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e,r){var n=r(17),o=r(85),i=r(86),s=r(4),a=r(35),u=r(87),f={},c={};(e=t.exports=function(t,e,r,h,l){var p,d,y,v,g=l?function(){return t}:u(t),m=n(r,h,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(p=a(t.length);p>b;b++)if((v=e?m(s(d=t[b])[0],d[1]):m(t[b]))===f||v===c)return v}else for(y=g.call(t);!(d=y.next()).done;)if((v=o(y,m,d.value,e))===f||v===c)return v}).BREAK=f,e.RETURN=c},function(t,e,r){var n=r(4);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},function(t,e,r){var n=r(14),o=r(2)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},function(t,e,r){var n=r(46),o=r(2)("iterator"),i=r(14);t.exports=r(1).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[n(t)]}},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(0),o=r(48).set,i=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,u="process"==r(11)(s);t.exports=function(){var t,e,r,f=function(){var n,o;for(u&&(n=s.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(u)r=function(){s.nextTick(f)};else if(!i||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var c=a.resolve(void 0);r=function(){c.then(f)}}else r=function(){o.call(n,f)};else{var h=!0,l=document.createTextNode("");new i(f).observe(l,{characterData:!0}),r=function(){l.data=h=!h}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},function(t,e,r){var n=r(0).navigator;t.exports=n&&n.userAgent||""},function(t,e,r){var n=r(8);t.exports=function(t,e,r){for(var o in e)r&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}},function(t,e,r){"use strict";var n=r(0),o=r(1),i=r(3),s=r(5),a=r(2)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];s&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(2)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],s=i[n]();s.next=function(){return{done:r=!0}},i[n]=function(){return s},t(i)}catch(t){}return r}},function(t,e,r){"use strict";var n=r(7),o=r(1),i=r(0),s=r(47),a=r(50);n(n.P+n.R,"Promise",{finally:function(t){var e=s(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return a(e,t()).then((function(){return r}))}:t,r?function(r){return a(e,t()).then((function(){throw r}))}:t)}})},function(t,e,r){"use strict";var n=r(7),o=r(32),i=r(49);n(n.S,"Promise",{try:function(t){var e=o.f(this),r=i(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){t.exports={default:r(97),__esModule:!0}},function(t,e,r){var n=r(1),o=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var n,o=(n=r(100))&&n.__esModule?n:{default:n};e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,o.default)(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},function(t,e,r){t.exports={default:r(101),__esModule:!0}},function(t,e,r){r(102);var n=r(1).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){var n=r(7);n(n.S+n.F*!r(5),"Object",{defineProperty:r(3).f})},function(t,e){var r=function(t){function e(){this.fetch=!1,this.DOMException=t.DOMException}return e.prototype=t,new e}("undefined"!=typeof self?self:this);!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function y(t){var e=new FileReader,r=d(e);return e.readAsArrayBuffer(t),r}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,r,n=p(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=d(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=f(t),e=c(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},l.prototype.delete=function(t){delete this.map[f(t)]},l.prototype.get=function(t){return t=f(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(f(t))},l.prototype.set=function(t,e){this.map[f(t)]=c(e)},l.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),h(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),h(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),h(t)},n&&(l.prototype[Symbol.iterator]=l.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(t,e){var r,n,o=(e=e||{}).body;if(t instanceof b){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(n=(r=e.method||this.method||"GET").toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function _(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},_.error=function(){var t=new _(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];_.redirect=function(t,e){if(-1===x.indexOf(e))throw new RangeError("Invalid status code");return new _(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,r){return new Promise((function(n,i){var s=new b(t,r);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new _(o,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=l,t.Request=b,t.Response=_),e.Headers=l,e.Request=b,e.Response=_,e.fetch=O}({})}(r),delete r.fetch.polyfill,(e=r.fetch).default=r.fetch,e.fetch=r.fetch,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,t.exports=e},function(t,e,r){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),"undefined"==typeof URL&&(t.URL=r(51).URL),"undefined"==typeof URLSearchParams&&(t.URLSearchParams=r(51).URLSearchParams),"undefined"==typeof btoa&&(t.btoa=function(t){return new n(t,"binary").toString("base64")}),"undefined"==typeof atob&&(t.atob=function(t){return new n(t,"base64").toString("binary")});var o={"/":"_",_:"/","+":"-","-":"+","=":".",".":"="},i=function(t){return btoa(t).replace(/(\+|\/|=)/g,(function(t){return o[t]}))},s=function(t){return atob(t.replace(/(-|_|\.)/g,(function(t){return o[t]})))};e.decode=function(t){var e=t.slice(0,5),r=new URL(t.replace(/^hive:/,"http:"));if("hive:"!==e)throw new Error("Invalid protocol, expected 'hive:' got '"+e+"'");if("sign"!==r.host)throw new Error("Invalid action, expected 'sign' got '"+r.host+"'");var n,o,i=r.pathname.split("/").slice(1),a=i[0],u=i[1];try{n=JSON.parse(s(u))}catch(t){throw t.message="Invalid payload: "+t.message,t}switch(a){case"tx":o=n;break;case"op":case"ops":o={ref_block_num:"__ref_block_num",ref_block_prefix:"__ref_block_prefix",expiration:"__expiration",extensions:[],operations:"ops"===a?n:[n]};break;default:throw new Error("Invalid signing action '"+a+"'")}var f={};return r.searchParams.has("cb")&&(f.callback=s(r.searchParams.get("cb"))),r.searchParams.has("nb")&&(f.no_broadcast=!0),r.searchParams.has("s")&&(f.signer=r.searchParams.get("s")),{tx:o,params:f}};var a=/(__(ref_block_(num|prefix)|expiration|signer))/g;e.resolveTransaction=function(t,e,r){var n=e.signer||r.preferred_signer;if(!r.signers.includes(n))throw new Error("Signer '"+n+"' not available");var o={__ref_block_num:r.ref_block_num,__ref_block_prefix:r.ref_block_prefix,__expiration:r.expiration,__signer:n},i=function(t){var e=typeof t;switch("object"===e&&Array.isArray(t)?e="array":null===t&&(e="null"),e){case"string":return t.replace(a,(function(t){return o[t]}));case"array":return t.map(i);case"object":for(var r={},n=0,s=Object.entries(t);n<s.length;n++){var u=s[n],f=u[0],c=u[1];r[f]=i(c)}return r;default:return t}};return{signer:n,tx:i(t)}};var u=/({{(sig|id|block|txn)}})/g;function f(t){var e=new URLSearchParams;!0===t.no_broadcast&&e.set("nb",""),t.signer&&e.set("s",t.signer),t.callback&&e.set("cb",i(t.callback));var r=e.toString();return r.length>0&&(r="?"+r),r}function c(t){return i(JSON.stringify(t,null,0))}e.resolveCallback=function(t,e){return t.replace(u,(function(t,r,n){return e[n]||""}))},e.encodeTx=function(t,e){return void 0===e&&(e={}),"hive://sign/tx/"+c(t)+f(e)},e.encodeOp=function(t,e){return void 0===e&&(e={}),"hive://sign/op/"+c(t)+f(e)},e.encodeOps=function(t,e){return void 0===e&&(e={}),"hive://sign/ops/"+c(t)+f(e)}}).call(this,r(33),r(105).Buffer)},function(t,e,r){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * diff --git a/tutorials/javascript/03_client_signing/package.json b/tutorials/javascript/03_client_signing/package.json index a3251910..88c35f82 100755 --- a/tutorials/javascript/03_client_signing/package.json +++ b/tutorials/javascript/03_client_signing/package.json @@ -1,7 +1,7 @@ { "name": "03_client_signing", "version": "1.0.0", - "description": "Client signing on Steem", + "description": "Client signing on Hive", "main": "index.js", "scripts": { "start": "webpack && node ./index.js", diff --git a/tutorials/javascript/04_get_posts/public/app.js b/tutorials/javascript/04_get_posts/public/app.js index 536fbb96..93de9c0c 100755 --- a/tutorials/javascript/04_get_posts/public/app.js +++ b/tutorials/javascript/04_get_posts/public/app.js @@ -5,10 +5,10 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dhive.Client('https://api.openhive.network'); +const client = new dhive.Client('https://api.hive.blog'); //filter change selection function window.getPosts = async () => { diff --git a/tutorials/javascript/05_get_post_details/public/app.js b/tutorials/javascript/05_get_post_details/public/app.js index f2378119..dbeb6eec 100755 --- a/tutorials/javascript/05_get_post_details/public/app.js +++ b/tutorials/javascript/05_get_post_details/public/app.js @@ -6,9 +6,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dhive.Client('https://api.openhive.network'); +const client = new dhive.Client('https://api.hive.blog'); //fetch list of trending posts async function main() { diff --git a/tutorials/javascript/06_get_voters_list_on_post/public/app.js b/tutorials/javascript/06_get_voters_list_on_post/public/app.js index adccc1c3..e4936a6a 100755 --- a/tutorials/javascript/06_get_voters_list_on_post/public/app.js +++ b/tutorials/javascript/06_get_voters_list_on_post/public/app.js @@ -5,9 +5,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dhive.Client('https://api.openhive.network'); +const client = new dhive.Client('https://api.hive.blog'); //fetch list of trending posts async function main() { diff --git a/tutorials/javascript/07_get_post_comments/public/app.js b/tutorials/javascript/07_get_post_comments/public/app.js index 58209c48..43ff3ecf 100755 --- a/tutorials/javascript/07_get_post_comments/public/app.js +++ b/tutorials/javascript/07_get_post_comments/public/app.js @@ -6,9 +6,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dhive.Client('https://api.steemit.com'); +const client = new dhive.Client('https://api.hive.blog'); //fetch list of trending posts async function main() { diff --git a/tutorials/javascript/08_get_account_replies/public/app.js b/tutorials/javascript/08_get_account_replies/public/app.js index 9354121a..efbb88b6 100755 --- a/tutorials/javascript/08_get_account_replies/public/app.js +++ b/tutorials/javascript/08_get_account_replies/public/app.js @@ -3,9 +3,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dhive.Client('https://api.openhive.network'); +const client = new dhive.Client('https://api.hive.blog'); const Remarkable = require('remarkable'); const md = new Remarkable({html: true, linkify: true}); diff --git a/tutorials/javascript/09_get_account_comments/public/app.js b/tutorials/javascript/09_get_account_comments/public/app.js index fff45484..db648584 100755 --- a/tutorials/javascript/09_get_account_comments/public/app.js +++ b/tutorials/javascript/09_get_account_comments/public/app.js @@ -3,9 +3,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dhive.Client('https://api.openhive.network'); +const client = new dhive.Client('https://api.hive.blog'); const Remarkable = require('remarkable'); const md = new Remarkable({ html: true, linkify: true }); diff --git a/tutorials/javascript/10_submit_post/public/app.js b/tutorials/javascript/10_submit_post/public/app.js index b674a52f..e56280bf 100755 --- a/tutorials/javascript/10_submit_post/public/app.js +++ b/tutorials/javascript/10_submit_post/public/app.js @@ -1,5 +1,5 @@ import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; diff --git a/tutorials/javascript/10_submit_post/public/index.html b/tutorials/javascript/10_submit_post/public/index.html index f854e973..67ca7550 100755 --- a/tutorials/javascript/10_submit_post/public/index.html +++ b/tutorials/javascript/10_submit_post/public/index.html @@ -5,7 +5,7 @@ </head> <body> <div class="container" id="content"><br/> - <h4>Submit a post to the Steem blockchain</h4> + <h4>Submit a post to the Hive blockchain</h4> Username: <input id="username" type="text" size="65" class="form-control"><br/> Posting private key: <input id="postingKey" type="password" size="65" class="form-control"><br/> Title of post: <input id="title" type="text" size="65" class="form-control" value="Here goes title"><br/> diff --git a/tutorials/javascript/11_submit_comment_reply/public/app.js b/tutorials/javascript/11_submit_comment_reply/public/app.js index ddca9259..9d37f294 100755 --- a/tutorials/javascript/11_submit_comment_reply/public/app.js +++ b/tutorials/javascript/11_submit_comment_reply/public/app.js @@ -1,6 +1,6 @@ //Step 1. import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; diff --git a/tutorials/javascript/11_submit_comment_reply/public/index.html b/tutorials/javascript/11_submit_comment_reply/public/index.html index 5fc83336..5fda9421 100755 --- a/tutorials/javascript/11_submit_comment_reply/public/index.html +++ b/tutorials/javascript/11_submit_comment_reply/public/index.html @@ -5,7 +5,7 @@ </head> <body> <div class="container" id="content"><br/> - <h4>Submit a post to the Steem blockchain</h4> + <h4>Submit a post to the Hive blockchain</h4> Username: <input id="username" type="text" size="65" class="form-control"><br/> Posting private key: <input id="postingKey" type="password" size="65" class="form-control"><br/> Parent Author: <input id="parent_author" type="text" size="20" /><br/> diff --git a/tutorials/javascript/12_edit_content_patching/public/app.js b/tutorials/javascript/12_edit_content_patching/public/app.js index ea53a891..e04f6e61 100755 --- a/tutorials/javascript/12_edit_content_patching/public/app.js +++ b/tutorials/javascript/12_edit_content_patching/public/app.js @@ -1,5 +1,5 @@ import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; diff --git a/tutorials/javascript/12_edit_content_patching/public/index.html b/tutorials/javascript/12_edit_content_patching/public/index.html index 70df18e4..596c6419 100755 --- a/tutorials/javascript/12_edit_content_patching/public/index.html +++ b/tutorials/javascript/12_edit_content_patching/public/index.html @@ -5,7 +5,7 @@ </head> <body> <div class="container" id="content"><br/> - <h4>Submit edited post to the Steem blockchain</h4> + <h4>Submit edited post to the Hive blockchain</h4> <p>We will fetch latest post of @<span id="usernameInText"></span> and fill the form below for editing</p> Username: <input id="username" type="text" size="65" class="form-control"><br/> Posting private key: <input id="postingKey" type="password" size="65" class="form-control"><br/> diff --git a/tutorials/javascript/13_stream_blockchain_transactions/public/app.js b/tutorials/javascript/13_stream_blockchain_transactions/public/app.js index 07d646ba..87d00f9f 100755 --- a/tutorials/javascript/13_stream_blockchain_transactions/public/app.js +++ b/tutorials/javascript/13_stream_blockchain_transactions/public/app.js @@ -5,10 +5,10 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); let stream; let state; diff --git a/tutorials/javascript/13_stream_blockchain_transactions/public/index.html b/tutorials/javascript/13_stream_blockchain_transactions/public/index.html index ce35c3c4..695bdfa0 100755 --- a/tutorials/javascript/13_stream_blockchain_transactions/public/index.html +++ b/tutorials/javascript/13_stream_blockchain_transactions/public/index.html @@ -1,11 +1,11 @@ <html> <head> - <title>Stream Steem blockchain</title> + <title>Stream Hive blockchain</title> <script src="bundle.js"></script> </head> <body> <div class="container" id="content"><br/> - <h4>Stream Steem blocks and transactions</h4> + <h4>Stream Hive blocks and transactions</h4> <br/> <input id="submitPauseBtn" type="button" value="Pause Stream" onclick="pauseStream()" class="btn btn-primary"> <input id="submitResumeBtn" type="button" value="Resume Stream" onclick="resumeStream()" class="btn btn-secondary"> diff --git a/tutorials/javascript/14_reblogging_post/public/app.js b/tutorials/javascript/14_reblogging_post/public/app.js index 02cc559a..5277b016 100755 --- a/tutorials/javascript/14_reblogging_post/public/app.js +++ b/tutorials/javascript/14_reblogging_post/public/app.js @@ -4,9 +4,9 @@ import { Client, PrivateKey } from 'dsteem'; let opts = {}; opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; -//connect to a Steem node. This is currently setup on production, but we recommend using a testnet like https://testnet.steem.vc -const client = new Client('https://api.steemit.com', opts); + 'beeab0de00000000000000000000000000000000000000000000000000000000'; +//connect to a Hive node. This is currently setup on production, but we recommend using a testnet like https://testnet.steem.vc +const client = new Client('https://api.hive.blog', opts); window.client = client; //This is a convenience function for the UI. diff --git a/tutorials/javascript/15_search_accounts/public/app.js b/tutorials/javascript/15_search_accounts/public/app.js index ad51d00b..758267c4 100755 --- a/tutorials/javascript/15_search_accounts/public/app.js +++ b/tutorials/javascript/15_search_accounts/public/app.js @@ -3,9 +3,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); @@ -19,4 +19,4 @@ window.submitAcc = async () => { //disply list of account names with line breaks document.getElementById('accList').innerHTML = _accounts.join('<br>'); -} \ No newline at end of file +} diff --git a/tutorials/javascript/16_search_tags/public/app.js b/tutorials/javascript/16_search_tags/public/app.js index 344dc542..1859f787 100755 --- a/tutorials/javascript/16_search_tags/public/app.js +++ b/tutorials/javascript/16_search_tags/public/app.js @@ -3,9 +3,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); //submitTab function from html input const max = 10; diff --git a/tutorials/javascript/17_vote_on_content/public/app.js b/tutorials/javascript/17_vote_on_content/public/app.js index e5fa152b..1c01bf59 100755 --- a/tutorials/javascript/17_vote_on_content/public/app.js +++ b/tutorials/javascript/17_vote_on_content/public/app.js @@ -1,5 +1,5 @@ import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; @@ -28,9 +28,9 @@ window.createPost = async () => { //for content const time = new Date().getTime(); //get title - const title = `developers.steem.io - JS-T:17 ${time}`; + const title = `developers.hive.io - JS-T:17 ${time}`; //get body - const body = `Go to [developers.steem.io](https://developers.steem.io) for the latest in Steem tutorials! This post was created by someone using the active version of those tutorials at [https://github.com/steemit/devportal-tutorials-js](https://github.com/steemit/devportal-tutorials-js) + const body = `Go to [developers.hive.io](https://developers.hive.io) for the latest in Hive tutorials! This post was created by someone using the active version of those tutorials at [https://github.com/steemit/devportal-tutorials-js](https://github.com/steemit/devportal-tutorials-js) ${time}`; //get tags and convert to array list diff --git a/tutorials/javascript/18_follow_a_user/public/app.js b/tutorials/javascript/18_follow_a_user/public/app.js index 53dc899f..e021fe34 100755 --- a/tutorials/javascript/18_follow_a_user/public/app.js +++ b/tutorials/javascript/18_follow_a_user/public/app.js @@ -1,6 +1,6 @@ //Step 1. import { Client, PrivateKey } from 'dsteem'; -import { Mainnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Mainnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; diff --git a/tutorials/javascript/19_get_follower_and_following_list/public/app.js b/tutorials/javascript/19_get_follower_and_following_list/public/app.js index 5b046fa2..3fdecb4f 100755 --- a/tutorials/javascript/19_get_follower_and_following_list/public/app.js +++ b/tutorials/javascript/19_get_follower_and_following_list/public/app.js @@ -13,9 +13,9 @@ let opts = {}; //define network parameters opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to a steem node, production in this case -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); //Step 2. user fills in the values on the UI diff --git a/tutorials/javascript/20_account_reputation/public/app.js b/tutorials/javascript/20_account_reputation/public/app.js index 285e9a67..29140fc9 100755 --- a/tutorials/javascript/20_account_reputation/public/app.js +++ b/tutorials/javascript/20_account_reputation/public/app.js @@ -3,9 +3,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); /** This is a rough approximation of log10 that works with huge digit-strings. diff --git a/tutorials/javascript/21_transfer_steem_and_sbd/README.md b/tutorials/javascript/21_transfer_steem_and_sbd/README.md index cb296518..1112e3c6 100755 --- a/tutorials/javascript/21_transfer_steem_and_sbd/README.md +++ b/tutorials/javascript/21_transfer_steem_and_sbd/README.md @@ -1 +1 @@ -See: https://developers.hive.io/tutorials-javascript/transfer_steem_and_sbd.html +See: https://developers.hive.io/tutorials-javascript/transfer_hive_and_hbd.html diff --git a/tutorials/javascript/21_transfer_steem_and_sbd/package.json b/tutorials/javascript/21_transfer_steem_and_sbd/package.json index 719a5cee..f23c3b96 100755 --- a/tutorials/javascript/21_transfer_steem_and_sbd/package.json +++ b/tutorials/javascript/21_transfer_steem_and_sbd/package.json @@ -1,5 +1,5 @@ { - "name": "21_transfer_steem_and_sbd", + "name": "21_transfer_hive_and_hbd", "version": "1.0.0", "description": "", "main": "index.js", diff --git a/tutorials/javascript/21_transfer_steem_and_sbd/public/app.js b/tutorials/javascript/21_transfer_steem_and_sbd/public/app.js index 2720f1f9..69564382 100755 --- a/tutorials/javascript/21_transfer_steem_and_sbd/public/app.js +++ b/tutorials/javascript/21_transfer_steem_and_sbd/public/app.js @@ -1,5 +1,5 @@ import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; diff --git a/tutorials/javascript/21_transfer_steem_and_sbd/public/index.html b/tutorials/javascript/21_transfer_steem_and_sbd/public/index.html index 7f2b4c4b..834d9149 100755 --- a/tutorials/javascript/21_transfer_steem_and_sbd/public/index.html +++ b/tutorials/javascript/21_transfer_steem_and_sbd/public/index.html @@ -1,11 +1,11 @@ <html> <head> - <title>Transfer STEEM and SBD</title> + <title>Transfer HIVE and HBD</title> <script src="bundle.js"></script> </head> <body> <div class="container" id="content"> - <h4>Transfer STEEM and SBD</h4> + <h4>Transfer HIVE and HBD</h4> <form> <div class="form-group row"> <label for="username" class="col-sm-2 col-form-label"> @@ -61,14 +61,14 @@ </div> <div class="form-group row"> <label for="type" class="col-sm-2 col-form-label"> - STEEM / SBD + HIVE / HBD </label> <div class="col-sm-10"> <input type="text" class="form-control" id="type" - value="STEEM" + value="HIVE" /> </div> </div> diff --git a/tutorials/javascript/22_witness_listing_and_voting/public/app.js b/tutorials/javascript/22_witness_listing_and_voting/public/app.js index e3d5aeaf..621044dc 100755 --- a/tutorials/javascript/22_witness_listing_and_voting/public/app.js +++ b/tutorials/javascript/22_witness_listing_and_voting/public/app.js @@ -1,5 +1,5 @@ import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; //connect to a steem node, testnet in this case diff --git a/tutorials/javascript/23_claim_rewards/public/app.js b/tutorials/javascript/23_claim_rewards/public/app.js index 53e86c47..3767fbc0 100755 --- a/tutorials/javascript/23_claim_rewards/public/app.js +++ b/tutorials/javascript/23_claim_rewards/public/app.js @@ -3,9 +3,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); //submitAcc function from html input const max = 5; @@ -15,21 +15,21 @@ window.submitAcc = async () => { const _accounts = await client.database.call('get_accounts', [[accSearch]]); console.log(`_accounts:`, _accounts); const name = _accounts[0].name; - const reward_steem = _accounts[0].reward_steem_balance.split(' ')[0]; - const reward_sbd = _accounts[0].reward_sbd_balance.split(' ')[0]; - const reward_sp = _accounts[0].reward_vesting_steem.split(' ')[0]; + const reward_hive = _accounts[0].reward_hive_balance.split(' ')[0]; + const reward_hbd = _accounts[0].reward_hbd_balance.split(' ')[0]; + const reward_sp = _accounts[0].reward_vesting_hive.split(' ')[0]; const reward_vests = _accounts[0].reward_vesting_balance.split(' ')[0]; - const unclaimed_balance = `Unclaimed balance for ${name}: ${reward_steem} STEEM, ${reward_sbd} SBD, ${reward_sp} SP = ${reward_vests} VESTS<br/>`; + const unclaimed_balance = `Unclaimed balance for ${name}: ${reward_hive} HIVE, ${reward_hbd} HBD, ${reward_sp} SP = ${reward_vests} VESTS<br/>`; document.getElementById('accList').innerHTML = unclaimed_balance; - document.getElementById('steem').value = reward_steem; - document.getElementById('sbd').value = reward_sbd; + document.getElementById('steem').value = reward_hive; + document.getElementById('hbd').value = reward_hbd; document.getElementById('sp').value = reward_vests; document.getElementById('sc').style.display = 'block'; - const link = `https://steemconnect.com/sign/claim-reward-balance?account=${name}&reward_steem=${reward_steem}&reward_sbd=${reward_sbd}&reward_vests=${reward_vests}`; + const link = `https://steemconnect.com/sign/claim-reward-balance?account=${name}&reward_hive=${reward_hive}&reward_hbd=${reward_hbd}&reward_vests=${reward_vests}`; document.getElementById( 'sc' - ).innerHTML = `<br/><a href=${link} target="_blank">Steemconnect signing</a>`; + ).innerHTML = `<br/><a href=${link} target="_blank">Hiveconnect signing</a>`; }; window.submitTx = async () => { @@ -40,8 +40,8 @@ window.submitTx = async () => { 'claim_reward_balance', { account: document.getElementById('username').value, - reward_steem: document.getElementById('steem').value + ' STEEM', - reward_sbd: document.getElementById('sbd').value + ' SBD', + reward_hive: document.getElementById('steem').value + ' HIVE', + reward_hbd: document.getElementById('hbd').value + ' HBD', reward_vests: document.getElementById('sp').value + ' VESTS', }, ]; diff --git a/tutorials/javascript/23_claim_rewards/public/index.html b/tutorials/javascript/23_claim_rewards/public/index.html index 30b92b9e..656bb9cd 100755 --- a/tutorials/javascript/23_claim_rewards/public/index.html +++ b/tutorials/javascript/23_claim_rewards/public/index.html @@ -8,16 +8,16 @@ <h4>Account</h4> <input id="username" type="text" size="65" placeholder="Enter account name" class="form-control"><br><input id="submitSearch" type="button" value="Search" onclick="submitAcc()" class="btn btn-primary"><br> <div class="list-group account" id="accList"></div> - <h5>Reward Steem:</h5> + <h5>Reward Hive:</h5> <input id="steem" type="text" size="65" placeholder="steem" class="form-control"><br> - <h5>Reward SBD:</h5> - <input id="sbd" type="text" size="65" placeholder="sbd" class="form-control"><br> + <h5>Reward HBD:</h5> + <input id="hbd" type="text" size="65" placeholder="hbd" class="form-control"><br> <h5>Reward VESTS:</h5> <input id="sp" type="text" size="65" placeholder="vests" class="form-control"><br> <h5>How would you like to claim rewards?</h5> <table> <tr> - <th>Steemconnect</th> + <th>Hiveconnect</th> <th>Client-side</th> </tr> <tr> diff --git a/tutorials/javascript/24_power_up_steem/README.md b/tutorials/javascript/24_power_up_steem/README.md index 26321570..ea01aee0 100755 --- a/tutorials/javascript/24_power_up_steem/README.md +++ b/tutorials/javascript/24_power_up_steem/README.md @@ -1 +1 @@ -See: https://developers.hive.io/tutorials-javascript/power_up_steem.html +See: https://developers.hive.io/tutorials-javascript/power_up_hive.html diff --git a/tutorials/javascript/24_power_up_steem/package-lock.json b/tutorials/javascript/24_power_up_steem/package-lock.json index 60d3b580..085db4c7 100755 --- a/tutorials/javascript/24_power_up_steem/package-lock.json +++ b/tutorials/javascript/24_power_up_steem/package-lock.json @@ -1,5 +1,5 @@ { - "name": "22_power_up_steem", + "name": "22_power_up_hive", "version": "1.0.0", "lockfileVersion": 1, "requires": true, diff --git a/tutorials/javascript/24_power_up_steem/package.json b/tutorials/javascript/24_power_up_steem/package.json index 2801f27e..32747a68 100755 --- a/tutorials/javascript/24_power_up_steem/package.json +++ b/tutorials/javascript/24_power_up_steem/package.json @@ -1,5 +1,5 @@ { - "name": "24_power_up_steem", + "name": "24_power_up_hive", "version": "1.0.0", "description": "", "main": "index.js", diff --git a/tutorials/javascript/24_power_up_steem/public/app.js b/tutorials/javascript/24_power_up_steem/public/app.js index 43a79ff1..623c4b5e 100755 --- a/tutorials/javascript/24_power_up_steem/public/app.js +++ b/tutorials/javascript/24_power_up_steem/public/app.js @@ -1,5 +1,5 @@ import { Client, PrivateKey } from 'dsteem'; -import { Mainnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Mainnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; //connect to a steem node, testnet in this case @@ -13,17 +13,17 @@ window.submitAcc = async () => { const _account = await client.database.call('get_accounts', [[accSearch]]); console.log(`_account:`, _account); const name = _account[0].name; - const steem_balance = _account[0].balance; - const balance = `Available Steem balance for ${name}: ${steem_balance}<br/>`; + const hive_balance = _account[0].balance; + const balance = `Available Hive balance for ${name}: ${hive_balance}<br/>`; document.getElementById('accBalance').innerHTML = balance; - document.getElementById('steem').value = steem_balance; + document.getElementById('steem').value = hive_balance; const receiver = document.getElementById('receiver').value; document.getElementById('sc').style.display = 'block'; - const link = `https://steemconnect.com/sign/transfer-to-vesting?from=${name}&to=${receiver}&amount=${steem_balance}`; + const link = `https://steemconnect.com/sign/transfer-to-vesting?from=${name}&to=${receiver}&amount=${hive_balance}`; document.getElementById('sc').innerHTML = `<br/><a href=${encodeURI( link - )} target="_blank">Steemconnect signing</a>`; + )} target="_blank">Hiveconnect signing</a>`; }; window.submitTx = async () => { diff --git a/tutorials/javascript/24_power_up_steem/public/index.html b/tutorials/javascript/24_power_up_steem/public/index.html index fa9126e2..d43b32be 100755 --- a/tutorials/javascript/24_power_up_steem/public/index.html +++ b/tutorials/javascript/24_power_up_steem/public/index.html @@ -8,14 +8,14 @@ <h4>Account</h4> <input id="username" type="text" size="65" placeholder="enter account name" class="form-control"><br><input id="submitSearch" type="button" value="Search" onclick="submitAcc()" class="btn btn-primary"><br> <div class="list-group account" id="accBalance"></div> - <h5>Steem to Power up:</h5> + <h5>Hive to Power up:</h5> <input id="steem" type="text" size="65" placeholder="steem" class="form-control"><br> <h5>To account:</h5> <input id="receiver" type="text" size="65" placeholder="steem power receiver, can be self" class="form-control"><br> <h5>How would you like to power up?</h5> <table> <tr> - <th>Steemconnect</th> + <th>Hiveconnect</th> <th>Client-side</th> </tr> <tr> diff --git a/tutorials/javascript/25_power_down/public/app.js b/tutorials/javascript/25_power_down/public/app.js index 2fb33b84..33695458 100755 --- a/tutorials/javascript/25_power_down/public/app.js +++ b/tutorials/javascript/25_power_down/public/app.js @@ -1,5 +1,5 @@ import { Client, PrivateKey } from 'dsteem'; -import { Mainnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Mainnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; //connect to a steem node, testnet in this case @@ -22,13 +22,13 @@ window.submitAcc = async () => { parseFloat(_account[0].delegated_vesting_shares); const props = await client.database.getDynamicGlobalProperties(); - const vestSteem = parseFloat( - parseFloat(props.total_vesting_fund_steem) * + const vestHive = parseFloat( + parseFloat(props.total_vesting_fund_hive) * (parseFloat(avail) / parseFloat(props.total_vesting_shares)), 6 ); - const balance = `Available Vests for ${name}: ${avail} VESTS ~ ${vestSteem} STEEM POWER<br/><br/>`; + const balance = `Available Vests for ${name}: ${avail} VESTS ~ ${vestHive} HIVE POWER<br/><br/>`; document.getElementById('accBalance').innerHTML = balance; document.getElementById('steem').value = avail + ' VESTS'; @@ -38,7 +38,7 @@ window.submitAcc = async () => { }`; document.getElementById('sc').innerHTML = `<br/><a href=${encodeURI( link - )} target="_blank">Steemconnect signing</a>`; + )} target="_blank">Hiveconnect signing</a>`; }; window.submitTx = async () => { diff --git a/tutorials/javascript/25_power_down/public/index.html b/tutorials/javascript/25_power_down/public/index.html index db72de19..60e18996 100755 --- a/tutorials/javascript/25_power_down/public/index.html +++ b/tutorials/javascript/25_power_down/public/index.html @@ -13,7 +13,7 @@ <h5>How would you like to power down?</h5> <table> <tr> - <th>Steemconnect</th> + <th>Hiveconnect</th> <th>Client-side</th> </tr> <tr> diff --git a/tutorials/javascript/26_create_account/public/app.js b/tutorials/javascript/26_create_account/public/app.js index 58ed4fad..a1461608 100755 --- a/tutorials/javascript/26_create_account/public/app.js +++ b/tutorials/javascript/26_create_account/public/app.js @@ -3,9 +3,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); // const dsteem = require('dsteem'); // //define network parameters @@ -34,7 +34,7 @@ window.searchAcc = async () => { document.getElementById('accInfo').innerHTML = avail; }; -//create with STEEM function +//create with HIVE function window.submitTx = async () => { const username = document.getElementById('username').value; const password = document.getElementById('password').value; @@ -155,7 +155,7 @@ window.submitDisc = async () => { 'claim_account', { creator: creator, - fee: '0.000 STEEM', + fee: '0.000 HIVE', extensions: [], }, ]; diff --git a/tutorials/javascript/26_create_account/public/index.html b/tutorials/javascript/26_create_account/public/index.html index 82dd27b9..a05314db 100755 --- a/tutorials/javascript/26_create_account/public/index.html +++ b/tutorials/javascript/26_create_account/public/index.html @@ -10,18 +10,18 @@ <div class="list-group account" id="accInfo"></div><br> <h5>Password:</h5> <input id="password" type="text" size="65" placeholder="password" class="form-control"><span class="info">Write down your password and keep it somewhere very safe and secure.</span><br> - <h5>STEEM:</h5> - <input id="steem" type="text" size="65" value="3.000 STEEM" class="form-control"><span class="info">Use the format '0.000 STEEM', the 3 decimals and unit are important.</span><br> + <h5>HIVE:</h5> + <input id="steem" type="text" size="65" value="3.000 HIVE" class="form-control"><span class="info">Use the format '0.000 HIVE', the 3 decimals and unit are important.</span><br> <br/><br/> <h5>How would you like to create an account?</h5> <table> <tr> - <th>Steemconnect</th> + <th>Hiveconnect</th> <th>Client-side</th> </tr> <tr> <td> - <div id="sc"><a href='https://steemconnect.com/accounts/create' target="_blank">Steemconnect account creation page</a></div> + <div id="sc"><a href='https://steemconnect.com/accounts/create' target="_blank">Hiveconnect account creation page</a></div> </td> <td> <div id="client"> @@ -29,7 +29,7 @@ <input id="account" type="text" size="65" placeholder="username" class="form-control"><br> <h5>Active Private key:</h5> <input id="wif" type="text" size="65" placeholder="wif" class="form-control"><br> - <input id="submitTx" type="button" value="Create Account with STEEM" onclick="submitTx()" class="btn btn-primary"><br/> + <input id="submitTx" type="button" value="Create Account with HIVE" onclick="submitTx()" class="btn btn-primary"><br/> <input id="submitDisc" type="button" value="Create Account with RC" onclick="submitDisc()" class="btn btn-primary"><br/> </div> </td> diff --git a/tutorials/javascript/27_delegate_power/public/app.js b/tutorials/javascript/27_delegate_power/public/app.js index a90f34e7..f4266ae2 100755 --- a/tutorials/javascript/27_delegate_power/public/app.js +++ b/tutorials/javascript/27_delegate_power/public/app.js @@ -1,5 +1,5 @@ import { Client, PrivateKey } from 'dsteem'; -import { Mainnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Mainnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; //connect to a steem node, testnet in this case @@ -22,13 +22,13 @@ window.submitAcc = async () => { parseFloat(_account[0].delegated_vesting_shares); const props = await client.database.getDynamicGlobalProperties(); - const vestSteem = parseFloat( - parseFloat(props.total_vesting_fund_steem) * + const vestHive = parseFloat( + parseFloat(props.total_vesting_fund_hive) * (parseFloat(avail) / parseFloat(props.total_vesting_shares)), 6 ); - const balance = `Available Vests for ${name}: ${avail} VESTS ~ ${vestSteem} STEEM POWER<br/><br/>`; + const balance = `Available Vests for ${name}: ${avail} VESTS ~ ${vestHive} HIVE POWER<br/><br/>`; document.getElementById('accBalance').innerHTML = balance; document.getElementById('steem').value = Number(avail).toFixed(6) + ' VESTS'; diff --git a/tutorials/javascript/27_delegate_power/public/index.html b/tutorials/javascript/27_delegate_power/public/index.html index bdb6f0d2..1a38db98 100755 --- a/tutorials/javascript/27_delegate_power/public/index.html +++ b/tutorials/javascript/27_delegate_power/public/index.html @@ -12,15 +12,15 @@ <input id="steem" type="text" size="65" placeholder="0.000000 VESTS" class="form-control"><br> <h5>To account:</h5> <input id="account" type="text" size="65" placeholder="username of delegatee" class="form-control"><br> - <h5>How would you like to delegate STEEM POWER/VESTS?</h5> + <h5>How would you like to delegate HIVE POWER/VESTS?</h5> <table> <tr> - <th>Steemconnect</th> + <th>Hiveconnect</th> <th>Client-side</th> </tr> <tr> <td> - <input id="openSC" type="button" value="Steemconnect" onclick="openSC()" class="btn btn-primary"> + <input id="openSC" type="button" value="Hiveconnect" onclick="openSC()" class="btn btn-primary"> </td> <td> <div id="client"> diff --git a/tutorials/javascript/28_set_withdraw_route/public/app.js b/tutorials/javascript/28_set_withdraw_route/public/app.js index 366ba48a..dae1f5d0 100755 --- a/tutorials/javascript/28_set_withdraw_route/public/app.js +++ b/tutorials/javascript/28_set_withdraw_route/public/app.js @@ -3,9 +3,9 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); //submitAcc function from html input const max = 5; diff --git a/tutorials/javascript/28_set_withdraw_route/public/index.html b/tutorials/javascript/28_set_withdraw_route/public/index.html index 6b163936..1e0d2ae7 100755 --- a/tutorials/javascript/28_set_withdraw_route/public/index.html +++ b/tutorials/javascript/28_set_withdraw_route/public/index.html @@ -17,12 +17,12 @@ <h5>How would you like to set withdraw/powerdown route?</h5> <table> <tr> - <th>Steemconnect</th> + <th>Hiveconnect</th> <th>Client-side</th> </tr> <tr> <td> - <input id="openSC" type="button" value="Steemconnect" onclick="openSC()" class="btn btn-primary"> + <input id="openSC" type="button" value="Hiveconnect" onclick="openSC()" class="btn btn-primary"> </td> <td> <div id="client"> diff --git a/tutorials/javascript/29_get_delegations_by_user/public/app.js b/tutorials/javascript/29_get_delegations_by_user/public/app.js index dfdc822c..5b8a94bf 100755 --- a/tutorials/javascript/29_get_delegations_by_user/public/app.js +++ b/tutorials/javascript/29_get_delegations_by_user/public/app.js @@ -12,9 +12,9 @@ let opts = {}; //define network parameters opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to a steem node, production in this case -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); //active delegations function window.createList = async () => { diff --git a/tutorials/javascript/30_grant_posting_permission/public/app.js b/tutorials/javascript/30_grant_posting_permission/public/app.js index 8874da96..80d23904 100755 --- a/tutorials/javascript/30_grant_posting_permission/public/app.js +++ b/tutorials/javascript/30_grant_posting_permission/public/app.js @@ -1,5 +1,5 @@ import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; diff --git a/tutorials/javascript/31_grant_active_permission/public/app.js b/tutorials/javascript/31_grant_active_permission/public/app.js index fd6e6e6c..0d546aa2 100755 --- a/tutorials/javascript/31_grant_active_permission/public/app.js +++ b/tutorials/javascript/31_grant_active_permission/public/app.js @@ -1,5 +1,5 @@ import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; diff --git a/tutorials/javascript/32_convert_sbd_to_steem/README.md b/tutorials/javascript/32_convert_sbd_to_steem/README.md index 271c3bdb..8a87fb6f 100755 --- a/tutorials/javascript/32_convert_sbd_to_steem/README.md +++ b/tutorials/javascript/32_convert_sbd_to_steem/README.md @@ -1 +1 @@ -See: https://developers.hive.io/tutorials-javascript/convert_sbd_to_steem.html +See: https://developers.hive.io/tutorials-javascript/convert_hbd_to_hive.html diff --git a/tutorials/javascript/32_convert_sbd_to_steem/package.json b/tutorials/javascript/32_convert_sbd_to_steem/package.json index d994a526..325278cb 100755 --- a/tutorials/javascript/32_convert_sbd_to_steem/package.json +++ b/tutorials/javascript/32_convert_sbd_to_steem/package.json @@ -1,5 +1,5 @@ { - "name": "32_convert_sbd_to_steem", + "name": "32_convert_hbd_to_hive", "version": "1.0.0", "description": "", "main": "index.js", diff --git a/tutorials/javascript/32_convert_sbd_to_steem/public/app.js b/tutorials/javascript/32_convert_sbd_to_steem/public/app.js index 38b79334..fa7c4290 100755 --- a/tutorials/javascript/32_convert_sbd_to_steem/public/app.js +++ b/tutorials/javascript/32_convert_sbd_to_steem/public/app.js @@ -1,5 +1,5 @@ import { Client, PrivateKey } from 'dsteem'; -import { Testnet as NetConfig } from '../../configuration'; //A Steem Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Steem blockchain. +import { Testnet as NetConfig } from '../../configuration'; //A Hive Testnet. Replace 'Testnet' with 'Mainnet' to connect to the main Hive blockchain. let opts = { ...NetConfig.net }; @@ -12,10 +12,10 @@ window.submitAcc = async () => { const _account = await client.database.call('get_accounts', [[accSearch]]); console.log(`_account:`, _account); - const availSBD = _account[0].sbd_balance - const availSTEEM = _account[0].balance + const availHBD = _account[0].hbd_balance + const availHIVE = _account[0].balance - const balance = `Available balance: ${availSBD} and ${availSTEEM} <br/>`; + const balance = `Available balance: ${availHBD} and ${availHIVE} <br/>`; document.getElementById('accBalance').innerHTML = balance; //create random number for requestid paramter @@ -35,7 +35,7 @@ window.submitConvert = async () => { //get convert amount const quantity = document.getElementById('quantity').value; //create correct format - const convert = quantity.concat(' SBD'); + const convert = quantity.concat(' HBD'); //assign integer value of ID const requestid = parseInt(document.getElementById('requestID').value); diff --git a/tutorials/javascript/32_convert_sbd_to_steem/public/index.html b/tutorials/javascript/32_convert_sbd_to_steem/public/index.html index 76555d3e..995046b7 100755 --- a/tutorials/javascript/32_convert_sbd_to_steem/public/index.html +++ b/tutorials/javascript/32_convert_sbd_to_steem/public/index.html @@ -1,11 +1,11 @@ <html> <head> - <title>Convert SBD to STEEM</title> + <title>Convert HBD to HIVE</title> <script src="bundle.js"></script> </head> <body> <div class="container" id="content"> - <h4>Convert SBD to STEEM</h4> + <h4>Convert HBD to HIVE</h4> <form> <div class="form-group row"> <label for="username" class="col-sm-2 col-form-label"> diff --git a/tutorials/javascript/34_get_state_replacement_api/public/app.js b/tutorials/javascript/34_get_state_replacement_api/public/app.js index c36a7b51..4e278972 100755 --- a/tutorials/javascript/34_get_state_replacement_api/public/app.js +++ b/tutorials/javascript/34_get_state_replacement_api/public/app.js @@ -5,10 +5,10 @@ let opts = {}; //connect to production server opts.addressPrefix = 'STM'; opts.chainId = - '0000000000000000000000000000000000000000000000000000000000000000'; + 'beeab0de00000000000000000000000000000000000000000000000000000000'; //connect to server which is connected to the network/production -const client = new dsteem.Client('https://api.steemit.com'); +const client = new dsteem.Client('https://api.hive.blog'); window.showAccount = async () => { diff --git a/tutorials/javascript/configuration.js b/tutorials/javascript/configuration.js index a8886e3d..5f5825b4 100644 --- a/tutorials/javascript/configuration.js +++ b/tutorials/javascript/configuration.js @@ -1,5 +1,5 @@ /** - * This is the main configuration file for the Steem developer Javascript tutorials + * This is the main configuration file for the Hive developer Javascript tutorials * * In this configuration file we use 'address' to refer to what in many other contexts are called * user, @@ -11,7 +11,7 @@ * */ -export const TestnetSteemit = { +export const TestnetHive = { accounts: [ { address: 'demo', @@ -71,11 +71,11 @@ export const Testnet = TestnetVC; export const Mainnet = { accounts: [], - url: 'https://api.openhive.network', + url: 'https://api.hive.blog', net: { addressPrefix: 'STM', chainId: - '0000000000000000000000000000000000000000000000000000000000000000', + 'beeab0de00000000000000000000000000000000000000000000000000000000', }, }; diff --git a/tutorials/python/01_using_keys_securely/index.py b/tutorials/python/01_using_keys_securely/index.py index a95f791b..3c018002 100755 --- a/tutorials/python/01_using_keys_securely/index.py +++ b/tutorials/python/01_using_keys_securely/index.py @@ -1,13 +1,13 @@ -# initialize Steem class -from steem import Steem +# initialize Hive class +from steem import Hive # defining private keys inside source code is not secure way but possible -s = Steem(keys=['<private_posting_key>', '<private_active_key>']) +s = Hive(keys=['<private_posting_key>', '<private_active_key>']) # above will allow accessing Commit methods such as -# demo account sending 0.001 STEEM to demo1 account +# demo account sending 0.001 HIVE to demo1 account -s.commit.transfer('demo','0.001','STEEM','memo text','demo1') +s.commit.transfer('demo','0.001','HIVE','memo text','demo1') # if private keys are not defined # accessing Wallet methods are also possible and secure way diff --git a/tutorials/python/04_get_posts/index.py b/tutorials/python/04_get_posts/index.py index 2d6bcbb9..8362bede 100755 --- a/tutorials/python/04_get_posts/index.py +++ b/tutorials/python/04_get_posts/index.py @@ -1,9 +1,9 @@ import pprint from pick import pick -# initialize Steem class -from steem import Steem +# initialize Hive class +from steem import Hive -s = Steem() +s = Hive() title = 'Please choose filter: ' #filters list diff --git a/tutorials/python/05_get_post_details/index.py b/tutorials/python/05_get_post_details/index.py index ac798c2f..dc11c43d 100755 --- a/tutorials/python/05_get_post_details/index.py +++ b/tutorials/python/05_get_post_details/index.py @@ -1,9 +1,9 @@ import pprint from pick import pick -# initialize Steem class -from steem import Steem +# initialize Hive class +from steem import Hive -s = Steem() +s = Hive() query = { "limit":5, #number of posts diff --git a/tutorials/python/06_get_voters_list_on_post/index.py b/tutorials/python/06_get_voters_list_on_post/index.py index 17c942ed..a895e7af 100755 --- a/tutorials/python/06_get_voters_list_on_post/index.py +++ b/tutorials/python/06_get_voters_list_on_post/index.py @@ -1,9 +1,9 @@ import pprint from pick import pick -# initialize Steem class -from steem import Steem +# initialize Hive class +from steem import Hive -s = Steem() +s = Hive() query = { "limit":5, #number of posts diff --git a/tutorials/python/07_get_post_comments/index.py b/tutorials/python/07_get_post_comments/index.py index 09ebb830..a93bda7c 100755 --- a/tutorials/python/07_get_post_comments/index.py +++ b/tutorials/python/07_get_post_comments/index.py @@ -1,9 +1,9 @@ import pprint from pick import pick -# initialize Steem class -from steem import Steem +# initialize Hive class +from steem import Hive -s = Steem() +s = Hive() query = { "limit":5, #number of posts diff --git a/tutorials/python/08_get_account_replies/index.py b/tutorials/python/08_get_account_replies/index.py index c8760ff3..a3a8e609 100755 --- a/tutorials/python/08_get_account_replies/index.py +++ b/tutorials/python/08_get_account_replies/index.py @@ -1,9 +1,9 @@ import pprint from pick import pick -# initialize Steem class -from steem import Steem +# initialize Hive class +from steem import Hive -s = Steem() +s = Hive() query = { "limit":5, #number of posts diff --git a/tutorials/python/09_get_account_comments/index.py b/tutorials/python/09_get_account_comments/index.py index d9e112c0..569c6016 100755 --- a/tutorials/python/09_get_account_comments/index.py +++ b/tutorials/python/09_get_account_comments/index.py @@ -1,9 +1,9 @@ import pprint from pick import pick -# initialize Steem class -from steem import Steem +# initialize Hive class +from steem import Hive -s = Steem() +s = Hive() query = { "limit":5, #number of posts diff --git a/tutorials/python/10_submit_post/index.py b/tutorials/python/10_submit_post/index.py index f3a287a8..cb3a311f 100755 --- a/tutorials/python/10_submit_post/index.py +++ b/tutorials/python/10_submit_post/index.py @@ -4,13 +4,13 @@ import steembase import steem # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #connect node and private posting key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=['5JEZ1EiUjFKfsKP32b15Y7jybjvHQPhnvCYZ9BW62H1LDUnMvHz']) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=['5JEZ1EiUjFKfsKP32b15Y7jybjvHQPhnvCYZ9BW62H1LDUnMvHz']) #capture variables author = input('Username: ') diff --git a/tutorials/python/11_submit_comment_reply/index.py b/tutorials/python/11_submit_comment_reply/index.py index 1a1d6369..63713ebd 100755 --- a/tutorials/python/11_submit_comment_reply/index.py +++ b/tutorials/python/11_submit_comment_reply/index.py @@ -4,9 +4,9 @@ import steembase import steem # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #capture variables @@ -23,7 +23,7 @@ reply_identifier = '/'.join([parentAuthor,parentPermlink]) permlink = ''.join(random.choices(string.digits, k=10)) #connect node and private posting key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) #commit post to blockchain client.commit.post(title='', body=body, author=author, permlink=permlink, reply_identifier=reply_identifier) diff --git a/tutorials/python/12_edit_content_patching/index.py b/tutorials/python/12_edit_content_patching/index.py index d4a72e80..d93bd69d 100755 --- a/tutorials/python/12_edit_content_patching/index.py +++ b/tutorials/python/12_edit_content_patching/index.py @@ -3,9 +3,9 @@ import steem from diff_match_patch import diff_match_patch # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #capture user information @@ -13,7 +13,7 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private POSTING key: ') #demo account: 5JEZ1EiUjFKfsKP32b15Y7jybjvHQPhnvCYZ9BW62H1LDUnMvHz #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) #check valid username userinfo = client.get_account(username) diff --git a/tutorials/python/14_reblogging_post/index.py b/tutorials/python/14_reblogging_post/index.py index a3ce756d..558b7f8c 100755 --- a/tutorials/python/14_reblogging_post/index.py +++ b/tutorials/python/14_reblogging_post/index.py @@ -1,10 +1,10 @@ import pprint from pick import pick -# initialize Steem class -from steem import Steem +# initialize Hive class +from steem import Hive from steem.commit import Commit -s = Steem() +s = Hive() query = { "limit":5, #number of posts @@ -27,7 +27,7 @@ account = input("Enter your username? ") wif = input("Enter your Posting private key? ") # commit or build transaction -c = Commit(steem=Steem(keys=[wif])) +c = Commit(steem=Hive(keys=[wif])) # broadcast transaction c.resteem(option, account=account) diff --git a/tutorials/python/15_search_accounts/index.py b/tutorials/python/15_search_accounts/index.py index cb8320a8..ea7ade38 100755 --- a/tutorials/python/15_search_accounts/index.py +++ b/tutorials/python/15_search_accounts/index.py @@ -1,9 +1,9 @@ -from steem import Steem +from steem import Hive from pick import pick -# initialize Steem class +# initialize Hive class -s = Steem() +s = Hive() #choose list type title = 'Please select type of list:' diff --git a/tutorials/python/17_vote_on_content/index.py b/tutorials/python/17_vote_on_content/index.py index ec56962e..bfc891ad 100755 --- a/tutorials/python/17_vote_on_content/index.py +++ b/tutorials/python/17_vote_on_content/index.py @@ -4,9 +4,9 @@ from pick import pick from steembase.exceptions import RPCError, RPCErrorRecoverable # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #capture user information @@ -14,7 +14,7 @@ username = input('Please enter your username: ') #'cdemo' postingkey = input('Please enter your private posting key: ') #'5JEZ1EiUjFKfsKP32b15Y7jybjvHQPhnvCYZ9BW62H1LDUnMvHz' #connect node and private posting key, demo account being used: cdemo, posting key: 5JEZ1EiUjFKfsKP32b15Y7jybjvHQPhnvCYZ9BW62H1LDUnMvHz -s = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[postingkey]) +s = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[postingkey]) #capture variables author = input('Author of post/comment that you wish to vote for: ') diff --git a/tutorials/python/18_follow_a_user/index.py b/tutorials/python/18_follow_a_user/index.py index 6deb0fa8..294e78f0 100755 --- a/tutorials/python/18_follow_a_user/index.py +++ b/tutorials/python/18_follow_a_user/index.py @@ -3,9 +3,9 @@ import steem from pick import pick # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #capture user information @@ -13,7 +13,7 @@ username = input('Please enter your username: ') postingkey = input('Please enter your private posting key: ') #connect node and private posting key, demo account being used: cdemo, posting key: 5JEZ1EiUjFKfsKP32b15Y7jybjvHQPhnvCYZ9BW62H1LDUnMvHz -s = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[postingkey]) +s = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[postingkey]) #capture variables author = input('Author to follow: ') diff --git a/tutorials/python/19_get_follower_and_following_list/index.py b/tutorials/python/19_get_follower_and_following_list/index.py index 38447d94..f2a2cbf6 100755 --- a/tutorials/python/19_get_follower_and_following_list/index.py +++ b/tutorials/python/19_get_follower_and_following_list/index.py @@ -1,8 +1,8 @@ from pick import pick -# initialize Steem class -from steem import Steem +# initialize Hive class +from steem import Hive -s = Steem() +s = Hive() #capture username username = input("Username: ") diff --git a/tutorials/python/20_account_reputation/index.py b/tutorials/python/20_account_reputation/index.py index e3342886..978b881f 100755 --- a/tutorials/python/20_account_reputation/index.py +++ b/tutorials/python/20_account_reputation/index.py @@ -2,11 +2,11 @@ import pprint import math from pick import pick -# initialize Steem class -from steem import Steem +# initialize Hive class +from steem import Hive -s = Steem() +s = Hive() title = 'Please choose account: ' options = ["steemitblog","esteemapp","busy.org","demo"] @@ -20,7 +20,7 @@ pprint.pprint("Selected: "+option) user = s.get_accounts([option]) def rep_log10(rep): - """Convert raw steemd rep into a UI-ready value centered at 25.""" + """Convert raw hived rep into a UI-ready value centered at 25.""" def log10(string): leading_digits = int(string[0:4]) log = math.log10(leading_digits) + 0.00000001 diff --git a/tutorials/python/21_transfer_steem_and_sbd/README.md b/tutorials/python/21_transfer_steem_and_sbd/README.md index 8f046dc6..5b7f54c9 100755 --- a/tutorials/python/21_transfer_steem_and_sbd/README.md +++ b/tutorials/python/21_transfer_steem_and_sbd/README.md @@ -1 +1 @@ -See: https://developers.hive.io/tutorials-python/transfer_STEEM_and_SBD.html +See: https://developers.hive.io/tutorials-python/transfer_HIVE_and_HBD.html diff --git a/tutorials/python/21_transfer_steem_and_sbd/index.py b/tutorials/python/21_transfer_steem_and_sbd/index.py index cf90f919..003e5bf3 100755 --- a/tutorials/python/21_transfer_steem_and_sbd/index.py +++ b/tutorials/python/21_transfer_steem_and_sbd/index.py @@ -3,9 +3,9 @@ import steem from pick import pick # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #capture user information @@ -13,14 +13,14 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) -#get account balance for STEEM and SBD +#get account balance for HIVE and HBD userinfo = client.get_account(username) -total_steem = userinfo['balance'] -total_sbd = userinfo['sbd_balance'] +total_hive = userinfo['balance'] +total_hbd = userinfo['hbd_balance'] -print('CURRENT ACCOUNT BALANCE:' + '\n' + total_steem + '\n' + total_sbd + '\n') +print('CURRENT ACCOUNT BALANCE:' + '\n' + total_hive + '\n' + total_hbd + '\n') #get recipient name recipient = input('Enter the user you wish to transfer funds to: ') @@ -31,7 +31,7 @@ result = client.get_account(recipient) if result: #choice of transfer title = 'Please choose transfer type: ' - options = ['STEEM', 'SBD', 'Cancel Transfer'] + options = ['HIVE', 'HBD', 'Cancel Transfer'] # get index and selected transfer type option, index = pick(options, title) else: @@ -42,22 +42,22 @@ if option == 'Cancel Transfer': print('Transaction cancelled') exit() else: - if option == 'STEEM': - #get STEEM transfer amount - amount = input('Enter amount of STEEM to transfer to ' + recipient + ': ') - asset = 'STEEM' + if option == 'HIVE': + #get HIVE transfer amount + amount = input('Enter amount of HIVE to transfer to ' + recipient + ': ') + asset = 'HIVE' else: - #get SBD transfer amount - amount = input('Enter amount of SBD to transfer to ' + recipient + ': ') - asset = 'SBD' + #get HBD transfer amount + amount = input('Enter amount of HBD to transfer to ' + recipient + ': ') + asset = 'HBD' #parameters: to, amount, asset, memo='', account client.transfer(recipient, float(amount), asset, '', username) print('\n' + amount + ' ' + asset + ' has been transferred to ' + recipient) -#get remaining account balance for STEEM and SBD +#get remaining account balance for HIVE and HBD userinfo = client.get_account(username) -total_steem = userinfo['balance'] -total_sbd = userinfo['sbd_balance'] +total_hive = userinfo['balance'] +total_hbd = userinfo['hbd_balance'] -print('\n' + 'REMAINING ACCOUNT BALANCE:' + '\n' + total_steem + '\n' + total_sbd + '\n') \ No newline at end of file +print('\n' + 'REMAINING ACCOUNT BALANCE:' + '\n' + total_hive + '\n' + total_hbd + '\n') \ No newline at end of file diff --git a/tutorials/python/22_witness_listing_and_voting/index.py b/tutorials/python/22_witness_listing_and_voting/index.py index 7d329309..36144e60 100755 --- a/tutorials/python/22_witness_listing_and_voting/index.py +++ b/tutorials/python/22_witness_listing_and_voting/index.py @@ -4,9 +4,9 @@ from pick import pick import pprint # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #capture user information @@ -14,10 +14,10 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) #connect to production server with active key -# client = steem.Steem(keys=[wif]) +# client = steem.Hive(keys=[wif]) #check valid user userinfo = client.get_account(username) diff --git a/tutorials/python/23_claim_rewards/index.py b/tutorials/python/23_claim_rewards/index.py index 05c7a4e5..b1d4ed9b 100755 --- a/tutorials/python/23_claim_rewards/index.py +++ b/tutorials/python/23_claim_rewards/index.py @@ -4,9 +4,9 @@ from pick import pick from steem.amount import Amount # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #capture user information @@ -14,7 +14,7 @@ username = input('Enter username: ') #demo account: demo01 wif = input('Enter private ACTIVE key: ') #demo account: 5HxTntgeoLm4trnTz94YBsY6MpAap1qRVXEKsU5n1v2du1gAgVH #connect node -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) #get account reward balances userinfo = client.get_account(username) @@ -23,15 +23,15 @@ if(userinfo is None) : print('Oops. Looks like user ' + username + ' doesn\'t exist on this chain!') exit() -reward_steem = userinfo['reward_steem_balance'] -reward_sbd = userinfo['reward_sbd_balance'] -reward_sp = userinfo['reward_vesting_steem'] +reward_hive = userinfo['reward_hive_balance'] +reward_hbd = userinfo['reward_hbd_balance'] +reward_sp = userinfo['reward_vesting_hive'] reward_vests = userinfo['reward_vesting_balance'] print('Reward Balances:' + '\n' + - 'STEEM: ' + reward_steem + '\n' + - 'SBD: ' + reward_sbd + '\n' + - 'STEEM POWER: ' + reward_sp + '\n' + + 'HIVE: ' + reward_hive + '\n' + + 'HBD: ' + reward_hbd + '\n' + + 'HIVE POWER: ' + reward_sp + '\n' + 'VESTS: ' + reward_vests ) @@ -45,29 +45,29 @@ option, index = pick(options, title) #commit claim based on selection if option == 'ALL': - if Amount(reward_steem).amount + Amount(reward_sbd).amount + Amount(reward_vests).amount == 0: + if Amount(reward_hive).amount + Amount(reward_hbd).amount + Amount(reward_vests).amount == 0: print('\n' + 'No rewards to claim') exit() else: - client.claim_reward_balance(reward_steem, reward_sbd, reward_vests, username) + client.claim_reward_balance(reward_hive, reward_hbd, reward_vests, username) print('\n' + 'All reward balances have been claimed. New reward balances are:' + '\n') else: if option == 'CANCEL': print('\n' + 'Operation cancelled') exit() else: - claim_steem = input('\n' + 'Please enter the amount of STEEM to claim: ') + ' STEEM' - claim_sbd = input('Please enter the amount of SBD to claim: ') + ' SBD' + claim_hive = input('\n' + 'Please enter the amount of HIVE to claim: ') + ' HIVE' + claim_hbd = input('Please enter the amount of HBD to claim: ') + ' HBD' claim_vests = input('Please enter the amount of VESTS to claim: ') + ' VESTS' - if Amount(claim_steem).amount + Amount(claim_sbd).amount + Amount(claim_vests).amount == 0: + if Amount(claim_hive).amount + Amount(claim_hbd).amount + Amount(claim_vests).amount == 0: print('\n' + 'Zero values entered, no claim to submit') exit() else: - if claim_steem > reward_steem or claim_sbd > reward_sbd or claim_vests > reward_vests: + if claim_hive > reward_hive or claim_hbd > reward_hbd or claim_vests > reward_vests: print('\n' + 'Requested claim value higher than available rewards') exit() else: - client.claim_reward_balance(claim_steem, claim_sbd, claim_vests, username) + client.claim_reward_balance(claim_hive, claim_hbd, claim_vests, username) print('\n' + 'Claim has been processed. New reward balances are:' + '\n') @@ -76,13 +76,13 @@ input("Press enter for new account balances") userinfo = client.get_account(username) -reward_steem = userinfo['reward_steem_balance'] -reward_sbd = userinfo['reward_sbd_balance'] -reward_sp = userinfo['reward_vesting_steem'] +reward_hive = userinfo['reward_hive_balance'] +reward_hbd = userinfo['reward_hbd_balance'] +reward_sp = userinfo['reward_vesting_hive'] reward_vests = userinfo['reward_vesting_balance'] -print('STEEM: ' + reward_steem + '\n' + - 'SBD: ' + reward_sbd + '\n' + - 'STEEM POWER: ' + reward_sp + '\n' + +print('HIVE: ' + reward_hive + '\n' + + 'HBD: ' + reward_hbd + '\n' + + 'HIVE POWER: ' + reward_sp + '\n' + 'VESTS: ' + reward_vests ) \ No newline at end of file diff --git a/tutorials/python/24_power_up_steem/README.md b/tutorials/python/24_power_up_steem/README.md index d942e94e..7a29f42e 100755 --- a/tutorials/python/24_power_up_steem/README.md +++ b/tutorials/python/24_power_up_steem/README.md @@ -1 +1 @@ -See: https://developers.hive.io/tutorials-python/power_up_steem.html +See: https://developers.hive.io/tutorials-python/power_up_hive.html diff --git a/tutorials/python/24_power_up_steem/index.py b/tutorials/python/24_power_up_steem/index.py index 3abed920..63ae9634 100755 --- a/tutorials/python/24_power_up_steem/index.py +++ b/tutorials/python/24_power_up_steem/index.py @@ -4,9 +4,9 @@ from steem.amount import Amount from pick import pick # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #capture user information @@ -14,7 +14,7 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) #check valid user and get account balance userinfo = client.get_account(username) @@ -23,7 +23,7 @@ if(userinfo is None) : exit() balance = userinfo['balance'] -print('Available STEEM balance: ' + balance + '\n') +print('Available HIVE balance: ' + balance + '\n') input('Press any key to continue') @@ -35,22 +35,22 @@ option, index = pick(options, title) if (option == 'OTHER') : #account to power up to - to_account = input('Please enter the ACCOUNT to where the STEEM will be transferred: ') + to_account = input('Please enter the ACCOUNT to where the HIVE will be transferred: ') #check valid username result = client.get_account(to_account) if (not result) : print(to_account + ' doesn\'t exist on this chain!') exit() else : - print('\n' + 'Power up STEEM to own account' + '\n') + print('\n' + 'Power up HIVE to own account' + '\n') to_account = username #amount to power up -amount = float(input('Please enter the amount of STEEM to power up: ')) +amount = float(input('Please enter the amount of HIVE to power up: ')) #parameters: amount, to, account if (amount == 0) : - print('\n' + 'No STEEM entered for powering up') + print('\n' + 'No HIVE entered for powering up') exit() else : if (amount > Amount(balance).amount) : @@ -58,9 +58,9 @@ else : exit() else : client.transfer_to_vesting(amount, to_account, username) - print('\n' + str(amount) + ' STEEM has been powered up successfully to ' + to_account) + print('\n' + str(amount) + ' HIVE has been powered up successfully to ' + to_account) #get new account balance userinfo = client.get_account(username) balance = userinfo['balance'] -print('New STEEM balance: ' + balance) \ No newline at end of file +print('New HIVE balance: ' + balance) \ No newline at end of file diff --git a/tutorials/python/25_power_down/index.py b/tutorials/python/25_power_down/index.py index 84726291..f42e8e6d 100755 --- a/tutorials/python/25_power_down/index.py +++ b/tutorials/python/25_power_down/index.py @@ -4,9 +4,9 @@ from pick import pick from steem.amount import Amount # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #capture user information @@ -14,7 +14,7 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) #get account balance for vesting shares userinfo = client.get_account(username) diff --git a/tutorials/python/27_delegate_power/index.py b/tutorials/python/27_delegate_power/index.py index 7373607f..125f5e11 100755 --- a/tutorials/python/27_delegate_power/index.py +++ b/tutorials/python/27_delegate_power/index.py @@ -5,9 +5,9 @@ import pprint from steem.amount import Amount # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #capture user information @@ -15,10 +15,10 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) #connect to production server with active key -# client = steem.Steem(keys=[wif]) +# client = steem.Hive(keys=[wif]) #check valid user userinfo = client.get_account(username) diff --git a/tutorials/python/29_get_delegations_by_user/index.py b/tutorials/python/29_get_delegations_by_user/index.py index fa5df5de..d0b5924e 100755 --- a/tutorials/python/29_get_delegations_by_user/index.py +++ b/tutorials/python/29_get_delegations_by_user/index.py @@ -1,9 +1,9 @@ from pick import pick -from steem import Steem +from steem import Hive import pprint -client = Steem() +client = Hive() #capture username username = input('Username: ') diff --git a/tutorials/python/30_grant_posting_permission/index.py b/tutorials/python/30_grant_posting_permission/index.py index e386cbda..e6123ae4 100755 --- a/tutorials/python/30_grant_posting_permission/index.py +++ b/tutorials/python/30_grant_posting_permission/index.py @@ -3,9 +3,9 @@ import steem from pick import pick # connect to testnet -# steembase.chains.known_chains['STEEM'] = { +# steembase.chains.known_chains['HIVE'] = { # 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', -# 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' +# 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' # } #capture user information @@ -13,10 +13,10 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node and private active key -# client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +# client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) #connect to production server with active key -client = steem.Steem(keys=[wif]) +client = steem.Hive(keys=[wif]) #check valid user userinfo = client.get_account(username) diff --git a/tutorials/python/31_grant_active_permission/index.py b/tutorials/python/31_grant_active_permission/index.py index e5dd4614..51913868 100755 --- a/tutorials/python/31_grant_active_permission/index.py +++ b/tutorials/python/31_grant_active_permission/index.py @@ -3,9 +3,9 @@ import steem from pick import pick # # connect to testnet -# steembase.chains.known_chains['STEEM'] = { +# steembase.chains.known_chains['HIVE'] = { # 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', -# 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' +# 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' # } #capture user information @@ -13,10 +13,10 @@ username = input('Enter username: ') #demo account: cdemo wif = input('Enter private ACTIVE key: ') #demo account: 5KaNM84WWSqzwKzY82fXPaUW43idbLnPqf5SfjGxLfw6eV2kAP3 #connect node and private active key -# client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +# client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) #connect to production server with active key -client = steem.Steem(keys=[wif]) +client = steem.Hive(keys=[wif]) #check valid user userinfo = client.get_account(username) diff --git a/tutorials/python/32_convert_sbd_to_steem/README.md b/tutorials/python/32_convert_sbd_to_steem/README.md index 7dab69aa..9be1d191 100755 --- a/tutorials/python/32_convert_sbd_to_steem/README.md +++ b/tutorials/python/32_convert_sbd_to_steem/README.md @@ -1 +1 @@ -See: https://developers.hive.io/tutorials-python/convert_sbd_to_steem.html +See: https://developers.hive.io/tutorials-python/convert_hbd_to_hive.html diff --git a/tutorials/python/32_convert_sbd_to_steem/index.py b/tutorials/python/32_convert_sbd_to_steem/index.py index fdf6bbf4..9aecccca 100755 --- a/tutorials/python/32_convert_sbd_to_steem/index.py +++ b/tutorials/python/32_convert_sbd_to_steem/index.py @@ -2,9 +2,9 @@ import steembase import steem # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #capture user information @@ -12,26 +12,26 @@ username = input('Enter username: ') #demo account: demo01 wif = input('Enter private ACTIVE key: ') #demo account: 5HxTntgeoLm4trnTz94YBsY6MpAap1qRVXEKsU5n1v2du1gAgVH #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) -#get account balance for STEEM and SBD +#get account balance for HIVE and HBD userinfo = client.get_account(username) -total_steem = userinfo['balance'] -total_sbd = userinfo['sbd_balance'] +total_hive = userinfo['balance'] +total_hbd = userinfo['hbd_balance'] -print('CURRENT ACCOUNT BALANCE:' + '\n' + total_steem + '\n' + total_sbd + '\n') +print('CURRENT ACCOUNT BALANCE:' + '\n' + total_hive + '\n' + total_hbd + '\n') #get recipient name -convert_amount = input('Enter the amount of SBD to convert to STEEM: ') #must be > 0 +convert_amount = input('Enter the amount of HBD to convert to HIVE: ') #must be > 0 #parameters: amount, account, request_id client.convert(float(convert_amount), username) -print('\n' + convert_amount + ' SBD has been converted to STEEM') +print('\n' + convert_amount + ' HBD has been converted to HIVE') -#get remaining account balance for STEEM and SBD +#get remaining account balance for HIVE and HBD userinfo = client.get_account(username) -total_steem = userinfo['balance'] -total_sbd = userinfo['sbd_balance'] +total_hive = userinfo['balance'] +total_hbd = userinfo['hbd_balance'] -print('\n' + 'REMAINING ACCOUNT BALANCE:' + '\n' + total_steem + '\n' + total_sbd) \ No newline at end of file +print('\n' + 'REMAINING ACCOUNT BALANCE:' + '\n' + total_hive + '\n' + total_hbd) \ No newline at end of file diff --git a/tutorials/python/33_password_key_change/index.py b/tutorials/python/33_password_key_change/index.py index 5d18062a..afc0ca74 100755 --- a/tutorials/python/33_password_key_change/index.py +++ b/tutorials/python/33_password_key_change/index.py @@ -12,9 +12,9 @@ old_owner_key = str( PasswordKey(account, old_password, "owner").get_private_key() ) -client = steem.Steem(keys=[old_owner_key]) +client = steem.Hive(keys=[old_owner_key]) -#client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +#client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) new_public_keys = {} diff --git a/tutorials/python/33_transfer_steem_and_sbd_to_savings_balance/README.md b/tutorials/python/33_transfer_steem_and_sbd_to_savings_balance/README.md index 8644d3e3..53bbcfc3 100755 --- a/tutorials/python/33_transfer_steem_and_sbd_to_savings_balance/README.md +++ b/tutorials/python/33_transfer_steem_and_sbd_to_savings_balance/README.md @@ -1 +1 @@ -See: https://developers.hive.io/tutorials-python/transfer_steem_and_sbd_to_savings_balance.html +See: https://developers.hive.io/tutorials-python/transfer_hive_and_hbd_to_savings_balance.html diff --git a/tutorials/python/33_transfer_steem_and_sbd_to_savings_balance/index.py b/tutorials/python/33_transfer_steem_and_sbd_to_savings_balance/index.py index a300a1a4..0e710ad3 100755 --- a/tutorials/python/33_transfer_steem_and_sbd_to_savings_balance/index.py +++ b/tutorials/python/33_transfer_steem_and_sbd_to_savings_balance/index.py @@ -4,9 +4,9 @@ from pick import pick import random # connect to testnet -steembase.chains.known_chains['STEEM'] = { +steembase.chains.known_chains['HIVE'] = { 'chain_id': '79276aea5d4877d9a25892eaa01b0adf019d3e5cb12a97478df3298ccdd01673', - 'prefix': 'STX', 'steem_symbol': 'STEEM', 'sbd_symbol': 'SBD', 'vests_symbol': 'VESTS' + 'prefix': 'STX', 'hive_symbol': 'HIVE', 'hbd_symbol': 'HBD', 'vests_symbol': 'VESTS' } #capture user information @@ -14,20 +14,20 @@ username = input('Enter username: ') #demo account: demo01 wif = input('Enter private ACTIVE key: ') #demo account: 5HxTntgeoLm4trnTz94YBsY6MpAap1qRVXEKsU5n1v2du1gAgVH #connect node and private active key -client = steem.Steem(nodes=['https://testnet.steem.vc'], keys=[wif]) +client = steem.Hive(nodes=['https://testnet.steem.vc'], keys=[wif]) -#check for valid account and get account balance for STEEM and SBD +#check for valid account and get account balance for HIVE and HBD userinfo = client.get_account(username) if(userinfo is None) : print('Oops. Looks like user ' + username + ' doesn\'t exist on this chain!') exit() -total_steem = userinfo['balance'] -total_sbd = userinfo['sbd_balance'] -savings_steem = userinfo['savings_balance'] -savings_sbd = userinfo['savings_sbd_balance'] +total_hive = userinfo['balance'] +total_hbd = userinfo['hbd_balance'] +savings_hive = userinfo['savings_balance'] +savings_hbd = userinfo['savings_hbd_balance'] -print('CURRENT ACCOUNT BALANCE:' + '\n' + total_steem + '\n' + total_sbd + '\n') -print('CURRENT SAVINGS BALANCE:' + '\n' + savings_steem + '\n' + savings_sbd + '\n') +print('CURRENT ACCOUNT BALANCE:' + '\n' + total_hive + '\n' + total_hbd + '\n') +print('CURRENT SAVINGS BALANCE:' + '\n' + savings_hive + '\n' + savings_hbd + '\n') input('Press enter to continue with the transfer' + '\n') @@ -44,18 +44,18 @@ if transfer_type == 'Cancel': #choice of currency title2 = 'Please choose currency: ' -options2 = ['STEEM', 'SBD'] +options2 = ['HIVE', 'HBD'] # get index and selected currency option, index = pick(options2, title2) -if option == 'STEEM': - #get STEEM transfer amount - amount = input('Enter amount of STEEM to transfer: ') - asset = 'STEEM' +if option == 'HIVE': + #get HIVE transfer amount + amount = input('Enter amount of HIVE to transfer: ') + asset = 'HIVE' else: - #get SBD transfer amount - amount = input('Enter amount of SBD to transfer: ') - asset = 'SBD' + #get HBD transfer amount + amount = input('Enter amount of HBD to transfer: ') + asset = 'HBD' if transfer_type == 'Transfer': #parameters: amount, asset, memo, to, account @@ -68,12 +68,12 @@ else: client.transfer_from_savings(float(amount), asset, '', requestID, username, username) print('\n' + 'Withdrawal from savings successful, transaction ID: ' + str(requestID)) -#get remaining account balance for STEEM and SBD +#get remaining account balance for HIVE and HBD userinfo = client.get_account(username) -total_steem = userinfo['balance'] -total_sbd = userinfo['sbd_balance'] -savings_steem = userinfo['savings_balance'] -savings_sbd = userinfo['savings_sbd_balance'] +total_hive = userinfo['balance'] +total_hbd = userinfo['hbd_balance'] +savings_hive = userinfo['savings_balance'] +savings_hbd = userinfo['savings_hbd_balance'] -print('\n' + 'REMAINING ACCOUNT BALANCE:' + '\n' + total_steem + '\n' + total_sbd + '\n') -print('CURRENT SAVINGS BALANCE:' + '\n' + savings_steem + '\n' + savings_sbd + '\n') \ No newline at end of file +print('\n' + 'REMAINING ACCOUNT BALANCE:' + '\n' + total_hive + '\n' + total_hbd + '\n') +print('CURRENT SAVINGS BALANCE:' + '\n' + savings_hive + '\n' + savings_hbd + '\n') \ No newline at end of file diff --git a/tutorials/python/35_account_recovery/index.py b/tutorials/python/35_account_recovery/index.py index 2efd85fe..d2a964fc 100755 --- a/tutorials/python/35_account_recovery/index.py +++ b/tutorials/python/35_account_recovery/index.py @@ -1,6 +1,6 @@ import beembase from beem.account import Account -from beem import Steem +from beem import Hive from beem.transactionbuilder import TransactionBuilder from beemgraphenebase.account import PasswordKey from beembase.objects import Permission @@ -13,7 +13,7 @@ new_password = input('new password for account: ') recovery_account = input('account owner (recovery account): ') recovery_account_private_key = input('account owner private ACTIVE key: ') -s = Steem(node=['https://api.steemit.com'], keys=[recovery_account_private_key]) +s = Hive(node=['https://api.hive.blog'], keys=[recovery_account_private_key]) #create new account owner keys new_account_owner_private_key = PasswordKey(username, new_password, role='owner').get_private_key() @@ -93,7 +93,7 @@ op_account_update_data = { } #recover account initialisation and transmission -s = Steem(node=['https://api.steemit.com'], keys=[recovery_account_private_key]) +s = Hive(node=['https://api.hive.blog'], keys=[recovery_account_private_key]) op_recover_account = beembase.operations.Recover_account(**op_recover_account_data) @@ -111,7 +111,7 @@ print('result') print(result) #update account keys initialisation and transmission -s = Steem(node=['https://api.steemit.com'], keys=[new_account_owner_private_key]) +s = Hive(node=['https://api.hive.blog'], keys=[new_account_owner_private_key]) op_account_update = beembase.operations.Account_update(**op_account_update_data) diff --git a/tutorials/ruby/01_blog_feed/blog_feed.rb b/tutorials/ruby/01_blog_feed/blog_feed.rb index d91d4064..b1b96736 100755 --- a/tutorials/ruby/01_blog_feed/blog_feed.rb +++ b/tutorials/ruby/01_blog_feed/blog_feed.rb @@ -26,6 +26,6 @@ api.get_discussions_by_blog(query) do |posts| puts " #{type}: #{post.title}" puts " By: #{author}" puts " Words: #{words.size}" - puts " https://steemit.com/#{uri.join('/')}" + puts " https://hive.blog/#{uri.join('/')}" end end diff --git a/tutorials/ruby/04_get_posts/get_posts_by_category.rb b/tutorials/ruby/04_get_posts/get_posts_by_category.rb index 541e23cf..760b0cb1 100755 --- a/tutorials/ruby/04_get_posts/get_posts_by_category.rb +++ b/tutorials/ruby/04_get_posts/get_posts_by_category.rb @@ -51,6 +51,6 @@ api.send("get_discussions_by_#{category}", options) do |posts, error| puts " Replies: #{post.children}" puts " Promoted: #{promoted}" puts " Words: #{words.size}" - puts " https://steemit.com/#{uri.join('/')}" + puts " https://hive.blog/#{uri.join('/')}" end end diff --git a/tutorials/ruby/05_get_post_details/get_post_details.rb b/tutorials/ruby/05_get_post_details/get_post_details.rb index 37a09d81..d306edb6 100755 --- a/tutorials/ruby/05_get_post_details/get_post_details.rb +++ b/tutorials/ruby/05_get_post_details/get_post_details.rb @@ -64,9 +64,9 @@ api.get_content(author, permlink) do |content| # Value of the maximum payout this content will receive. puts "\t\tmax_accepted_payout: #{content.max_accepted_payout}" - # The percent of Steem Dollars to keep, unkept amounts will be received as - # STEEM Power. - puts "\t\tpercent_steem_dollars: #{'%.2f %%' % (content.percent_steem_dollars / 100.0)}" + # The percent of Hive Dollars to keep, unkept amounts will be received as + # HIVE Power. + puts "\t\tpercent_hbd: #{'%.2f %%' % (content.percent_hbd / 100.0)}" # 7 days from the created date. if (cashout = Time.parse(content.cashout_time + 'Z') - Time.now.utc) > 0 @@ -88,7 +88,7 @@ api.get_content(author, permlink) do |content| # Tracks the author payout this content has received over time, measured in # the debt asset. - puts "\t\tauthor_rewards: #{('%.3f SBD' % (content.author_rewards / 1000.0))}" + puts "\t\tauthor_rewards: #{('%.3f HBD' % (content.author_rewards / 1000.0))}" # Tracks the curator payout this content has received over time, measured in # the debt asset. @@ -103,7 +103,7 @@ api.get_content(author, permlink) do |content| puts "\tpromoted: #{content.promoted}" # The list of up to 8 beneficiary accounts for this content as well as the - # percentage of the author reward they will receive in STEEM Power. + # percentage of the author reward they will receive in HIVE Power. if content.beneficiaries.any? puts "\tbeneficiaries:" diff --git a/tutorials/ruby/08_get_account_replies/get_account_replies.rb b/tutorials/ruby/08_get_account_replies/get_account_replies.rb index 3c181108..11159686 100755 --- a/tutorials/ruby/08_get_account_replies/get_account_replies.rb +++ b/tutorials/ruby/08_get_account_replies/get_account_replies.rb @@ -14,7 +14,7 @@ api.get_account_history(account_name, -1, 10000) do |history| next if op.parent_author.empty? # skip posts next unless op.parent_author == account_name # skip comments by account - url = "https://steemit.com/@#{op.author}/#{op.permlink}" + url = "https://hive.blog/@#{op.author}/#{op.permlink}" api.get_content(op.author, op.permlink) do |reply| puts "Reply by @#{op.author} in discussion: \"#{reply.root_title}\"" diff --git a/tutorials/ruby/09_get_account_comments/get_account_comments.rb b/tutorials/ruby/09_get_account_comments/get_account_comments.rb index d1088f9d..42138571 100755 --- a/tutorials/ruby/09_get_account_comments/get_account_comments.rb +++ b/tutorials/ruby/09_get_account_comments/get_account_comments.rb @@ -14,7 +14,7 @@ api.get_account_history(account_name, -1, 10000) do |history| next if op.parent_author.empty? # skip posts next if op.parent_author == account_name # skip replies to account - url = "https://steemit.com/@#{op.author}/#{op.permlink}" + url = "https://hive.blog/@#{op.author}/#{op.permlink}" api.get_content(op.author, op.permlink) do |reply| puts "Reply to @#{op.parent_author} in discussion: \"#{reply.root_title}\"" diff --git a/unused/community.md b/unused/community.md index 3527e29f..730409b9 100644 --- a/unused/community.md +++ b/unused/community.md @@ -3,23 +3,23 @@ title: Community position: 4 --- -#### Steemdata +#### Hivedata Mongo database for accessing steem data. ``` -Host: mongo0.steemdata.com +Host: mongo0.hivedata.com Port: 27017 -Database: Steem +Database: Hive Username: steemit Password: steemit ``` -Official site: [steemdata](http://www.steemsql.com/) +Official site: [hivedata](http://www.steemsql.com/) -#### SteemSQL +#### HiveSQL Microsoft SQL database for accessing steem data diff --git a/unused/docker.md b/unused/docker.md index 120e65e7..8346dc8d 100644 --- a/unused/docker.md +++ b/unused/docker.md @@ -13,10 +13,10 @@ dockerized container. Both common binary types are included. To run a p2p node (ca. 2GB of memory is required at the moment): docker run \ - -d -p 2001:2001 -p 8090:8090 --name steemd-default \ + -d -p 2001:2001 -p 8090:8090 --name hived-default \ steemit/steem - docker logs -f steemd-default # follow along + docker logs -f hived-default # follow along #### Dockerized Full Node @@ -25,10 +25,10 @@ that uses ca. 14GB of memory and growing: docker run \ --env USE_WAY_TOO_MUCH_RAM=1 \ - -d -p 2001:2001 -p 8090:8090 --name steemd-full \ + -d -p 2001:2001 -p 8090:8090 --name hived-full \ steemit/steem - docker logs -f steemd-full + docker logs -f hived-full #### Seed Nodes @@ -36,5 +36,5 @@ A list of some seed nodes to get you started can be found in [doc/seednodes.txt](doc/seednodes.txt). This same file is baked into the docker images and can be overridden by -setting `STEEMD_SEED_NODES` in the container environment at `docker run` +setting `HIVED_SEED_NODES` in the container environment at `docker run` time to a whitespace delimited list of seed nodes (with port). \ No newline at end of file diff --git a/unused/sbds.md b/unused/sbds.md index 4dde259e..9b1cc1eb 100644 --- a/unused/sbds.md +++ b/unused/sbds.md @@ -1,39 +1,39 @@ --- -title: SBDS +title: HBDS position: 5 --- -**sbds** is a tool for easily querying the data of the Steem Blockchain. +**hbds** is a tool for easily querying the data of the Hive Blockchain. -While providing direct interfaces to several pluggable storage architectures that may be used for querying the blockchain, sbds may also be used as a lower level API upon which other applications can be built. +While providing direct interfaces to several pluggable storage architectures that may be used for querying the blockchain, hbds may also be used as a lower level API upon which other applications can be built. **Docker Hub** ``` -docker run -d steemit/sbds +docker run -d steemit/hbds ``` **Python 3** ``` -pip3 install -e git+git@github.com:steemit/sbds.git#egg=sbds +pip3 install -e git+git@github.com:steemit/hbds.git#egg=hbds ``` **Examples** Stream blocks 1 to 3450000 from our dev S3 bucket ``` -sbds checkpoints get-blocks s3://steemit-dev-sbds-checkpoints/gzipped --start 1 --end 3450000 +hbds checkpoints get-blocks s3://steemit-dev-hbds-checkpoints/gzipped --start 1 --end 3450000 ``` Stream blocks 8000000 to the last block from your local copy of our S3 bucket ``` -sbds checkpoints get-blocks /home/ubuntu/checkpoints/gzipped --start 8000000 +hbds checkpoints get-blocks /home/ubuntu/checkpoints/gzipped --start 8000000 ``` Stream all blocks from your local copy of our S3 bucket ``` -sbds checkpoints get-blocks /home/ubuntu/checkpoints/gzipped +hbds checkpoints get-blocks /home/ubuntu/checkpoints/gzipped ``` **Routes** diff --git a/unused/steemd.md b/unused/steemd.md index f9cdb060..d8acf2d2 100644 --- a/unused/steemd.md +++ b/unused/steemd.md @@ -1,4 +1,4 @@ --- -title: Steemd +title: Hived position: 3 --- \ No newline at end of file diff --git a/unused/tutorials.md b/unused/tutorials.md index 6668c4c6..8f058888 100644 --- a/unused/tutorials.md +++ b/unused/tutorials.md @@ -3,7 +3,7 @@ title: Tutorials position: 2 --- -##### __steem-py examples__ +##### __hive-py examples__ Install steem-py: ~~~ @@ -27,10 +27,10 @@ Example for operation Stream: Example for decentralized exchange: ~~~ python -from steem import Steem +from steem import Hive import os import json -steem = Steem(wif="<posting-key-for-default-author>") +steem = Hive(wif="<posting-key-for-default-author>") for c in steem.stream_comments(): if "Anything you want" in c["body"]: print(c.reply(".. anything you want")) @@ -57,13 +57,13 @@ for a in blockchain.ops() ~~~ python from pprint import pprint -from steem import Steem +from steem import Hive from steem.dex import Dex -steem = Steem() +steem = Hive() dex = Dex(steem) -pprint(dex.buy(10, "SBD", 100)) -pprint(dex.sell(10, "SBD", 100)) +pprint(dex.buy(10, "HBD", 100)) +pprint(dex.sell(10, "HBD", 100)) pprint(dex.cancel("24432422")) pprint(dex.returnTicker()) pprint(dex.return24Volume()) @@ -74,7 +74,7 @@ pprint(dex.returnMarketHistoryBuckets()) pprint(dex.returnMarketHistory(300)) pprint(dex.get_lowest_ask()) pprint(dex.get_higest_bid()) -pprint(dex.transfer(10, "SBD", "fabian", "foobar")) +pprint(dex.transfer(10, "HBD", "fabian", "foobar")) ~~~ {: title="Decentralized Exchange"} -- GitLab