diff --git a/lib/hive/chain_config.rb b/lib/hive/chain_config.rb index a3b2f4a4157d58fbdd62a0b01d013e8a1408360b..393daa660a2258f75a4a57f2225321f54d7a3efc 100644 --- a/lib/hive/chain_config.rb +++ b/lib/hive/chain_config.rb @@ -12,14 +12,17 @@ module Hive NETWORKS_HIVE_DEFAULT_NODE = 'https://api.openhive.network' # NETWORKS_HIVE_DEFAULT_NODE = 'https://anyx.io' # NETWORKS_HIVE_DEFAULT_NODE = 'http://anyx.io' - # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.hivekings.com' # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.hive.blog' # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.openhive.network' # NETWORKS_HIVE_DEFAULT_NODE = 'https://techcoderx.com' - # NETWORKS_HIVE_DEFAULT_NODE = 'https://rpc.esteem.app' + # NETWORKS_HIVE_DEFAULT_NODE = 'https://rpc.ecency.com' # NETWORKS_HIVE_DEFAULT_NODE = 'https://hived.privex.io' # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.pharesim.me' # NETWORKS_HIVE_DEFAULT_NODE = 'https://rpc.ausbit.dev' + # NETWORKS_HIVE_DEFAULT_NODE = 'https://hived.emre.sh' + # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.deathwing.me' + # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.c0ff33a.uk' + # NETWORKS_HIVE_DEFAULT_NODE = 'https://hive-api.arcange.eu' NETWORKS_TEST_CHAIN_ID = '46d82ab7d8db682eb1959aed0ada039a6d49afa1602491f93dde9cac3e8e6c32' NETWORKS_TEST_ADDRESS_PREFIX = 'TST' diff --git a/logo.png b/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..9fb17a7a08d7abe9641c2246fbad809c96626c54 Binary files /dev/null and b/logo.png differ diff --git a/test/hive/api_test.rb b/test/hive/api_test.rb index 27574fe0da4bb68368d49af0cc68d3b067f0cbc2..82c27a25dff53b618d452f3e6512d436f607fd52 100644 --- a/test/hive/api_test.rb +++ b/test/hive/api_test.rb @@ -80,7 +80,7 @@ module Hive end def test_inspect - assert_equal "#<CondenserApi [@chain=hive, @methods=<87 elements>]>", @api.inspect + assert_equal "#<CondenserApi [@chain=hive, @methods=<90 elements>]>", @api.inspect end def test_inspect_testnet diff --git a/test/hive/broadcast_test.rb b/test/hive/broadcast_test.rb index 789f4d7eb25422873fe285d9af06be61540a3cc2..1309f011dad0caccc1759a0f347dcc9d4be760e3 100644 --- a/test/hive/broadcast_test.rb +++ b/test/hive/broadcast_test.rb @@ -302,7 +302,32 @@ module Hive force_serialize: @force_serialize } - vcr_cassette('broadcast_comment_with_options') do + vcr_cassette('broadcast_comment_with_options_social') do + assert Broadcast.comment(@broadcast_options.merge(options)) + end + end + + def test_comment_with_options_no_authority + options = { + params: { + author: 'alice', + permlink: 'permlink', + parent_permlink: 'parent_permlink', + title: 'title', + body: 'body', + max_accepted_payout: "0.000 #{@debt_symbol}", + # allow_replies: false, + allow_votes: false, + allow_curation_rewards: false, + beneficiaries: [ + {'alice': 1000}, + {'bob': 1000} + ] + }, + force_serialize: @force_serialize + } + + vcr_cassette('broadcast_comment_with_options_no_authority') do assert_raises MissingPostingAuthorityError do Broadcast.comment(@broadcast_options.merge(options)) end diff --git a/test/hive/database_api_test.rb b/test/hive/database_api_test.rb index d23f30f9b6ad4ca9e810df250f270a022cd27f11..dc3f5e90011c40b498a6c0a7b713a84a447969fd 100644 --- a/test/hive/database_api_test.rb +++ b/test/hive/database_api_test.rb @@ -14,7 +14,7 @@ module Hive end def test_inspect - assert_equal "#<DatabaseApi [@chain=hive, @methods=<51 elements>]>", @api.inspect + assert_equal "#<DatabaseApi [@chain=hive, @methods=<55 elements>]>", @api.inspect end def test_method_missing @@ -627,7 +627,7 @@ module Hive assert_raises NoMethodError do @api.get_version end - when '0.20.0', '0.23.0', '1.24.0' + when '0.20.0', '0.23.0', '1.24.0', '1.25.0' @api.get_version do |version| assert version.chain_id end diff --git a/test/hive/jsonrpc_test.rb b/test/hive/jsonrpc_test.rb index 131ecff9224a8627d1df185674c85426548d0c27..3c4947e7391e317889264a52cd10e2bae5da5afc 100644 --- a/test/hive/jsonrpc_test.rb +++ b/test/hive/jsonrpc_test.rb @@ -119,7 +119,10 @@ module Hive "verify_authority", "find_proposals", "list_proposal_votes", - "list_proposals" + "list_proposals", + "find_recurrent_transfers", + "get_collateralized_conversion_requests", + "is_known_transaction" ], database_api: [ "find_account_recovery_requests", @@ -172,7 +175,11 @@ module Hive "list_proposals", "find_hbd_conversion_requests", "get_comment_pending_payouts", - "list_hbd_conversion_requests" + "list_hbd_conversion_requests", + "find_collateralized_conversion_requests", + "find_recurrent_transfers", + "is_known_transaction", + "list_collateralized_conversion_requests" ], # follow_api: [ # "get_account_reputations",