Module: WavesRubyClient
- Defined in:
- lib/waves_ruby_client.rb,
lib/waves_ruby_client/api.rb,
lib/waves_ruby_client/asset.rb,
lib/waves_ruby_client/order.rb,
lib/waves_ruby_client/wallet.rb,
lib/waves_ruby_client/version.rb,
lib/waves_ruby_client/conversion.rb,
lib/waves_ruby_client/order_book.rb,
lib/waves_ruby_client/transaction.rb,
lib/waves_ruby_client/order_data/place.rb,
lib/waves_ruby_client/order_data/cancel.rb,
lib/waves_ruby_client/order_data/user_orders.rb
Defined Under Namespace
Modules: Conversion, OrderData Classes: Api, Asset, Order, OrderBook, Transaction, Wallet
Constant Summary collapse
- WAVES_PUBLIC_KEY =
ENV['WAVES_PUBLIC_KEY']
- WAVES_PRIVATE_KEY =
ENV['WAVES_PRIVATE_KEY']
- WAVES_ADDRESS =
ENV['WAVES_ADDRESS']
- API_URL =
ENV['WAVES_API_URL'] || 'https://nodes.wavesnodes.com'
- MATCHER_PUBLIC_KEY =
ENV['WAVES_MATCHER_PUBLIC_KEY'] || '7kPFrHDiGw1rCm7LPszuECwWYL3dMf6iMifLRDJQZMzy'
- BTC_ASSET_ID =
'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS'- WAVES_ASSET_ID =
'WAVES'- MATCHER_FEE =
0.003
- NUMBER_MULTIPLIKATOR =
10**8
- PRICE_ASSET =
WavesRubyClient::Asset.btc
- AMOUNT_ASSET =
WavesRubyClient::Asset.waves
- OrderAlreadyFilled =
Class.new(StandardError)
- VERSION =
'0.1.0'
Class Method Summary collapse
-
.try_many_times(times = 5) ⇒ Object
try method call several times.
Class Method Details
.try_many_times(times = 5) ⇒ Object
try method call several times
48 49 50 51 52 53 54 55 |
# File 'lib/waves_ruby_client.rb', line 48 def self.try_many_times(times = 5) tries ||= times yield rescue StandardError => e sleep(5) retry unless (tries -= 1).zero? raise e end |