Sha256: 19c504a667e245b2f97a6f9e1b011b8510f614499ff9e8aa108090f1c71207df

Contents?: true

Size: 945 Bytes

Versions: 5

Compression:

Stored size: 945 Bytes

Contents

module OpenAssets
  module Transaction

    # The value object of a bitcoin or asset transfer.
    class TransferParameters

      attr_accessor :unspent_outputs
      attr_accessor :amount
      attr_accessor :change_script
      attr_accessor :to_script

      # initialize
      # @param [Array[OpenAssets::Transaction::SpendableOutput]] unspent_outputs Array of the unspent outputs available for the transaction.
      # @param [String] to_script the output script to which to send the assets or bitcoins.
      # @param [String] change_script the output script to which to send any remaining change.
      # @param [Integer] amount The asset quantity or amount of the satoshi sent in the transaction.
      def initialize(unspent_outputs, to_script, change_script, amount)
        @unspent_outputs = unspent_outputs
        @to_script = to_script
        @change_script = change_script
        @amount = amount
      end

    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
openassets-ruby-0.1.5 lib/openassets/transaction/transfer_parameters.rb
openassets-ruby-0.1.4 lib/openassets/transaction/transfer_parameters.rb
openassets-ruby-0.1.3 lib/openassets/transaction/transfer_parameters.rb
openassets-ruby-0.1.2 lib/openassets/transaction/transfer_parameters.rb
openassets-ruby-0.1.1 lib/openassets/transaction/transfer_parameters.rb