Sha256: 96c41f4293fb9429a1de5fe602f6be5f2116f012da4075e2e8e67ad8d72af004

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

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

# === xdr source ============================================================
#
#   enum AllowTrustResultCode
#   {
#       // codes considered as "success" for the operation
#       ALLOW_TRUST_SUCCESS = 0,
#       // codes considered as "failure" for the operation
#       ALLOW_TRUST_MALFORMED = -1,     // currency is not CURRENCY_TYPE_ALPHANUM
#       ALLOW_TRUST_NO_TRUST_LINE = -2, // trustor does not have a trustline
#       ALLOW_TRUST_TRUST_NOT_REQUIRED =
#           -3,                      // source account does not require trust
#       ALLOW_TRUST_CANT_REVOKE = -4 // source account can't revoke trust
#   };
#
# ===========================================================================
module Stellar
  class AllowTrustResultCode < XDR::Enum
    member :allow_trust_success,            0
    member :allow_trust_malformed,          -1
    member :allow_trust_no_trust_line,      -2
    member :allow_trust_trust_not_required, -3
    member :allow_trust_cant_revoke,        -4

    seal
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stellar-base-0.0.12 generated/stellar/allow_trust_result_code.rb
stellar-base-0.0.11 generated/stellar/allow_trust_result_code.rb
stellar-base-0.0.10 generated/stellar/allow_trust_result_code.rb
stellar-base-0.0.9 generated/stellar/allow_trust_result_code.rb
stellar-base-0.0.8 generated/stellar/allow_trust_result_code.rb