Offer Entry Xdr
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 feesContent copied to clipboard
*/ Price price; uint32 flags; // see OfferEntryFlags
// reserved for future use
union switch (int v)
{
case 0:
void;
}
ext;Content copied to clipboard
};
Constructors
Link copied to clipboard
constructor(sellerId: AccountIDXdr, offerId: Int64Xdr, selling: AssetXdr, buying: AssetXdr, amount: Int64Xdr, price: PriceXdr, flags: Uint32Xdr, ext: OfferEntryExtXdr)