Sha256: c0f922f3ba57ca919a80b05e669316e2e5b2d5ecc7f87edc5160d6a12f1e49f2

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

# Automatically generated on 2015-04-07T10:52:07-07:00
# DO NOT EDIT or your changes may be overwritten
        
require 'xdr'

# === xdr source ============================================================
#
#   struct PaymentOp
#   {
#       AccountID destination; // recipient of the payment
#       Currency currency;     // what they end up with
#       int64 amount;          // amount they end up with
#   
#       opaque memo<32>;
#       opaque sourceMemo<32>; // used to return a payment
#   
#       // payment over path
#       Currency path<5>; // what hops it must go through to get there
#       int64 sendMax; // the maximum amount of the source currency (==path[0]) to
#                      // send (excluding fees).
#                      // The operation will fail if can't be met
#   };
#
# ===========================================================================
module Stellar
  class PaymentOp < XDR::Struct
    attribute :destination, AccountID
    attribute :currency,    Currency
    attribute :amount,      Int64
    attribute :memo,        XDR::VarOpaque[32]
    attribute :source_memo, XDR::VarOpaque[32]
    attribute :path,        XDR::VarArray[Currency, 5]
    attribute :send_max,    Int64
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stellar-base-0.0.1 generated/stellar/payment_op.rb