Skip to content
Snippets Groups Projects
Commit ceacd064 authored by inertia's avatar inertia
Browse files

follow-up

parent b846e5f1
No related branches found
No related tags found
1 merge request!4follow-up
...@@ -12,14 +12,17 @@ module Hive ...@@ -12,14 +12,17 @@ module Hive
NETWORKS_HIVE_DEFAULT_NODE = 'https://api.openhive.network' NETWORKS_HIVE_DEFAULT_NODE = 'https://api.openhive.network'
# NETWORKS_HIVE_DEFAULT_NODE = 'https://anyx.io' # NETWORKS_HIVE_DEFAULT_NODE = 'https://anyx.io'
# NETWORKS_HIVE_DEFAULT_NODE = 'http://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.hive.blog'
# NETWORKS_HIVE_DEFAULT_NODE = 'https://api.openhive.network' # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.openhive.network'
# NETWORKS_HIVE_DEFAULT_NODE = 'https://techcoderx.com' # 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://hived.privex.io'
# NETWORKS_HIVE_DEFAULT_NODE = 'https://api.pharesim.me' # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.pharesim.me'
# NETWORKS_HIVE_DEFAULT_NODE = 'https://rpc.ausbit.dev' # 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_CHAIN_ID = '46d82ab7d8db682eb1959aed0ada039a6d49afa1602491f93dde9cac3e8e6c32'
NETWORKS_TEST_ADDRESS_PREFIX = 'TST' NETWORKS_TEST_ADDRESS_PREFIX = 'TST'
......
logo.png 0 → 100644
logo.png

13.4 KiB

...@@ -80,7 +80,7 @@ module Hive ...@@ -80,7 +80,7 @@ module Hive
end end
def test_inspect def test_inspect
assert_equal "#<CondenserApi [@chain=hive, @methods=<87 elements>]>", @api.inspect assert_equal "#<CondenserApi [@chain=hive, @methods=<90 elements>]>", @api.inspect
end end
def test_inspect_testnet def test_inspect_testnet
......
...@@ -302,7 +302,32 @@ module Hive ...@@ -302,7 +302,32 @@ module Hive
force_serialize: @force_serialize 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 assert_raises MissingPostingAuthorityError do
Broadcast.comment(@broadcast_options.merge(options)) Broadcast.comment(@broadcast_options.merge(options))
end end
......
...@@ -14,7 +14,7 @@ module Hive ...@@ -14,7 +14,7 @@ module Hive
end end
def test_inspect def test_inspect
assert_equal "#<DatabaseApi [@chain=hive, @methods=<51 elements>]>", @api.inspect assert_equal "#<DatabaseApi [@chain=hive, @methods=<55 elements>]>", @api.inspect
end end
def test_method_missing def test_method_missing
...@@ -627,7 +627,7 @@ module Hive ...@@ -627,7 +627,7 @@ module Hive
assert_raises NoMethodError do assert_raises NoMethodError do
@api.get_version @api.get_version
end 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| @api.get_version do |version|
assert version.chain_id assert version.chain_id
end end
......
...@@ -119,7 +119,10 @@ module Hive ...@@ -119,7 +119,10 @@ module Hive
"verify_authority", "verify_authority",
"find_proposals", "find_proposals",
"list_proposal_votes", "list_proposal_votes",
"list_proposals" "list_proposals",
"find_recurrent_transfers",
"get_collateralized_conversion_requests",
"is_known_transaction"
], ],
database_api: [ database_api: [
"find_account_recovery_requests", "find_account_recovery_requests",
...@@ -172,7 +175,11 @@ module Hive ...@@ -172,7 +175,11 @@ module Hive
"list_proposals", "list_proposals",
"find_hbd_conversion_requests", "find_hbd_conversion_requests",
"get_comment_pending_payouts", "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: [ # follow_api: [
# "get_account_reputations", # "get_account_reputations",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment