mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
27 lines
619 B
C++
27 lines
619 B
C++
#include "AccountItems.h"
|
|
|
|
class Offer : public AccountItem
|
|
{
|
|
RippleAddress mAccount;
|
|
STAmount mTakerGets;
|
|
STAmount mTakerPays;
|
|
int mSeq;
|
|
|
|
|
|
Offer(SerializedLedgerEntry::pointer ledgerEntry); // For accounts in a ledger
|
|
public:
|
|
Offer(){}
|
|
virtual ~Offer(){}
|
|
AccountItem::pointer makeItem(const uint160&, SerializedLedgerEntry::ref ledgerEntry);
|
|
LedgerEntryType getType(){ return(ltOFFER); }
|
|
|
|
STAmount getTakerPays(){ return(mTakerPays); }
|
|
STAmount getTakerGets(){ return(mTakerGets); }
|
|
RippleAddress getAccount(){ return(mAccount); }
|
|
int getSeq(){ return(mSeq); }
|
|
Json::Value getJson(int);
|
|
|
|
};
|
|
|
|
// vim:ts=4
|