Sha256: 19a3c8f5e03bf589e0959d04f6db4372de08bf9a709d145d4092e0993923d509

Contents?: true

Size: 1.87 KB

Versions: 1

Compression:

Stored size: 1.87 KB

Contents

# This code was automatically generated using xdrgen
# DO NOT EDIT or your changes may be overwritten

require 'xdr'

# === xdr source ============================================================
#
#   enum ManageOfferResultCode
#   {
#       // codes considered as "success" for the operation
#       MANAGE_OFFER_SUCCESS = 0,
#   
#       // codes considered as "failure" for the operation
#       MANAGE_OFFER_MALFORMED = -1,     // generated offer would be invalid
#       MANAGE_OFFER_SELL_NO_TRUST = -2, // no trust line for what we're selling
#       MANAGE_OFFER_BUY_NO_TRUST = -3,  // no trust line for what we're buying
#       MANAGE_OFFER_SELL_NOT_AUTHORIZED = -4, // not authorized to sell
#       MANAGE_OFFER_BUY_NOT_AUTHORIZED = -5,  // not authorized to buy
#       MANAGE_OFFER_LINE_FULL = -6,   // can't receive more of what it's buying
#       MANAGE_OFFER_UNDERFUNDED = -7, // doesn't hold what it's trying to sell
#       MANAGE_OFFER_CROSS_SELF = -8,  // would cross an offer from the same user
#   
#       // update errors
#       MANAGE_OFFER_NOT_FOUND = -9, // offerID does not match an existing offer
#   
#       MANAGE_OFFER_LOW_RESERVE = -10 // not enough funds to create a new Offer
#   };
#
# ===========================================================================
module Stellar
  class ManageOfferResultCode < XDR::Enum
    member :manage_offer_success,             0
    member :manage_offer_malformed,           -1
    member :manage_offer_sell_no_trust,       -2
    member :manage_offer_buy_no_trust,        -3
    member :manage_offer_sell_not_authorized, -4
    member :manage_offer_buy_not_authorized,  -5
    member :manage_offer_line_full,           -6
    member :manage_offer_underfunded,         -7
    member :manage_offer_cross_self,          -8
    member :manage_offer_not_found,           -9
    member :manage_offer_low_reserve,         -10

    seal
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stellar-base-0.5.0 generated/stellar/manage_offer_result_code.rb