Sha256: 32b4c24aca0a741355bbc5cc659a02f3904eebdcd7a3c9adbcf2605c82bce47d

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

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
      attr_accessor :output_qty

      # 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, output_qty = 1)
        @unspent_outputs = unspent_outputs
        @to_script = to_script
        @change_script = change_script
        @amount = amount
        @output_qty = output_qty
      end

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openassets-ruby-0.1.6 lib/openassets/transaction/transfer_parameters.rb