lib/cosgrove/config.rb in cosgrove-0.0.4.0 vs lib/cosgrove/config.rb in cosgrove-0.0.4.1
- old
+ new
@@ -34,27 +34,55 @@
def steem_api_failover_urls
[chain[:steem_api_failover_urls]].flatten.compact
end
+ def hive_api_url
+ chain[:hive_api_url]
+ end
+
+ def hive_api_failover_urls
+ [chain[:hive_api_failover_urls]].flatten.compact
+ end
+
def test_api_url
chain[:test_api_url]
end
def test_api_failover_urls
[chain[:test_api_failover_urls]].flatten.compact
end
+ def steem_engine_api_url
+ (chain[:steem_engine_api_url] rescue nil) || 'https://api.steem-engine.com/rpc'
+ end
+
+ def hive_engine_api_url
+ (chain[:hive_engine_api_url] rescue nil) || 'https://api.hive-engine.com/rpc'
+ end
+
def steem_account
chain[:steem_account]
end
def steem_posting_wif
chain[:steem_posting_wif]
end
+ def hive_account
+ chain[:hive_account]
+ end
+
+ def hive_posting_wif
+ chain[:hive_posting_wif]
+ end
+
def test_posting_wif
chain[:test_posting_wif]
+ end
+
+ def meeseeker_url
+ chain[:meeseeker][:url]
end
def discord_channels
return ENV['CHANNELS'].to_s.split(' ') if !!ENV['CHANNELS']