OfferEntryXdr

data class OfferEntryXdr(val sellerId: AccountIDXdr, val offerId: Int64Xdr, val selling: AssetXdr, val buying: AssetXdr, val amount: Int64Xdr, val price: PriceXdr, val flags: Uint32Xdr, val ext: OfferEntryExtXdr)

XDR Source: struct OfferEntry { AccountID sellerID; int64 offerID; Asset selling; // A Asset buying; // 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; uint32 flags; // see OfferEntryFlags

// reserved for future use
union switch (int v)
{
case 0:
    void;
}
ext;

};

Constructors

Link copied to clipboard
constructor(sellerId: AccountIDXdr, offerId: Int64Xdr, selling: AssetXdr, buying: AssetXdr, amount: Int64Xdr, price: PriceXdr, flags: Uint32Xdr, ext: OfferEntryExtXdr)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

amount of A

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

see OfferEntryFlags

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

Functions

Link copied to clipboard
fun encode(writer: XdrWriter)