Sha256: 70758b7b7a0abd9a5d9093e28503f04ba8b388dad8dc8a9dbbeac3d5f35160ce

Contents?: true

Size: 957 Bytes

Versions: 2

Compression:

Stored size: 957 Bytes

Contents

# Automatically generated on 2015-04-26T19:13:29-07:00
# DO NOT EDIT or your changes may be overwritten
        
require 'xdr'

# === xdr source ============================================================
#
#   struct OfferEntry
#   {
#       AccountID accountID;
#       uint64 offerID;
#       Currency takerGets; // A
#       Currency takerPays; // B
#       int64 amount;       // amount of A
#   
#       /* price for this offer:
#           price of A in terms of B
#           price=AmountB/AmountA=priceNumerator/priceDenominator
#           price is after fees
#       */
#       Price price;
#   };
#
# ===========================================================================
module Stellar
  class OfferEntry < XDR::Struct
    attribute :account_id, AccountID
    attribute :offer_id,   Uint64
    attribute :taker_gets, Currency
    attribute :taker_pays, Currency
    attribute :amount,     Int64
    attribute :price,      Price
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stellar-base-0.0.3 generated/stellar/offer_entry.rb
stellar-base-0.0.2 generated/stellar/offer_entry.rb