ManageSellOfferResultCodeXdr

XDR Source: enum ManageSellOfferResultCode { // codes considered as "success" for the operation MANAGE_SELL_OFFER_SUCCESS = 0,

// codes considered as "failure" for the operation
MANAGE_SELL_OFFER_MALFORMED = -1, // generated offer would be invalid
MANAGE_SELL_OFFER_SELL_NO_TRUST =
    -2,                              // no trust line for what we're selling
MANAGE_SELL_OFFER_BUY_NO_TRUST = -3, // no trust line for what we're buying
MANAGE_SELL_OFFER_SELL_NOT_AUTHORIZED = -4, // not authorized to sell
MANAGE_SELL_OFFER_BUY_NOT_AUTHORIZED = -5,  // not authorized to buy
MANAGE_SELL_OFFER_LINE_FULL = -6, // can't receive more of what it's buying
MANAGE_SELL_OFFER_UNDERFUNDED = -7, // doesn't hold what it's trying to sell
MANAGE_SELL_OFFER_CROSS_SELF =
    -8, // would cross an offer from the same user
MANAGE_SELL_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling
MANAGE_SELL_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying

// update errors
MANAGE_SELL_OFFER_NOT_FOUND =
    -11, // offerID does not match an existing offer

MANAGE_SELL_OFFER_LOW_RESERVE =
    -12 // not enough funds to create a new Offer

};

Entries

Link copied to clipboard

codes considered as "success" for the operation

Link copied to clipboard

codes considered as "failure" for the operation generated offer would be invalid

Link copied to clipboard

no trust line for what we're buying

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

can't receive more of what it's buying

Link copied to clipboard

doesn't hold what it's trying to sell

Link copied to clipboard

no issuer for what we're selling

Link copied to clipboard

no issuer for what we're buying

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard
val value: Int

Functions

Link copied to clipboard
fun encode(writer: XdrWriter)
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.