Sha256: a200bd1d0eedd679308cff5b9f19657f18fe1d73416caaf7d13b3e7db3e58359

Contents?: true

Size: 705 Bytes

Versions: 6

Compression:

Stored size: 705 Bytes

Contents

# frozen_string_literal: true
class Nano::Accounts
  include Nano::Proxy
  include Nano::AccountsHelper

  attr_reader :addresses

  def initialize(addresses = nil, opts = {})
    unless addresses.is_a?(Array)
      raise Nano::MissingParameters,
            'Missing argument: addresses (str[])'
    end

    @addresses = addresses
    super(opts)
  end

  proxy_params accounts: :addresses

  proxy_method :account_move, required: %i[wallet source]
  proxy_method :accounts_balances
  proxy_method :accounts_create, required: %i[wallet count], optional: %i[work]
  proxy_method :accounts_frontiers
  proxy_method :accounts_pending,
               required: %i[count], optional: %i[threshold source]
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nano_rpc-0.9.0 lib/nano_rpc/proxies/accounts.rb
nano_rpc-0.8.0 lib/nano_rpc/proxies/accounts.rb
nano_rpc-0.7.0 lib/nano_rpc/proxies/accounts.rb
nano_rpc-0.6.0 lib/nano_rpc/proxies/accounts.rb
nano_rpc-0.5.0 lib/nano_rpc/proxies/accounts.rb
nano_rpc-0.4.0 lib/nano_rpc/proxies/accounts.rb