|
rippled
|
#include <AMM.h>


Public Member Functions | |
| AMM (std::shared_ptr< SLE const > sle) | |
| Construct a AMM ledger entry wrapper from an existing SLE object. | |
| SF_ACCOUNT::type::value_type | getAccount () const |
| Get sfAccount (soeREQUIRED) | |
| protocol_autogen::Optional< SF_UINT16::type::value_type > | getTradingFee () const |
| Get sfTradingFee (soeDEFAULT) | |
| bool | hasTradingFee () const |
| Check if sfTradingFee is present. | |
| std::optional< std::reference_wrapper< STArray const > > | getVoteSlots () const |
| Get sfVoteSlots (soeOPTIONAL) | |
| bool | hasVoteSlots () const |
| Check if sfVoteSlots is present. | |
| std::optional< STObject > | getAuctionSlot () const |
| Get sfAuctionSlot (soeOPTIONAL) | |
| bool | hasAuctionSlot () const |
| Check if sfAuctionSlot is present. | |
| SF_AMOUNT::type::value_type | getLPTokenBalance () const |
| Get sfLPTokenBalance (soeREQUIRED) | |
| SF_ISSUE::type::value_type | getAsset () const |
| Get sfAsset (soeREQUIRED) | |
| SF_ISSUE::type::value_type | getAsset2 () const |
| Get sfAsset2 (soeREQUIRED) | |
| SF_UINT64::type::value_type | getOwnerNode () const |
| Get sfOwnerNode (soeREQUIRED) | |
| protocol_autogen::Optional< SF_UINT256::type::value_type > | getPreviousTxnID () const |
| Get sfPreviousTxnID (soeOPTIONAL) | |
| bool | hasPreviousTxnID () const |
| Check if sfPreviousTxnID is present. | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getPreviousTxnLgrSeq () const |
| Get sfPreviousTxnLgrSeq (soeOPTIONAL) | |
| bool | hasPreviousTxnLgrSeq () const |
| Check if sfPreviousTxnLgrSeq is present. | |
| bool | validate () const |
| Validate the ledger entry. | |
| LedgerEntryType | getType () const |
| Get the ledger entry type. | |
| uint256 const & | getKey () const |
| Get the key (index) of this ledger entry. | |
| std::optional< uint256 > | getLedgerIndex () const |
| Get the ledger index (sfLedgerIndex). | |
| bool | hasLedgerIndex () const |
| Check if the ledger entry has a ledger index. | |
| uint16_t | getLedgerEntryType () const |
| Get the ledger entry type field (sfLedgerEntryType). | |
| std::uint32_t | getFlags () const |
| Get the flags field (sfFlags). | |
| std::shared_ptr< SLE const > | getSle () const |
| Get the underlying SLE object. | |
Static Public Attributes | |
| static constexpr LedgerEntryType | entryType = ltAMM |
Protected Attributes | |
| std::shared_ptr< SLE const > | sle_ |
| The underlying serialized ledger entry being wrapped. | |
Type: ltAMM (0x0079) RPC Name: amm
Immutable wrapper around SLE providing type-safe field access. Use AMMBuilder to construct new ledger entries.
Definition at line 27 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
|
explicit |
Construct a AMM ledger entry wrapper from an existing SLE object.
| std::runtime_error | if the ledger entry type doesn't match. |
Definition at line 36 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| SF_ACCOUNT::type::value_type xrpl::ledger_entries::AMM::getAccount | ( | ) | const |
Get sfAccount (soeREQUIRED)
Definition at line 54 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| protocol_autogen::Optional< SF_UINT16::type::value_type > xrpl::ledger_entries::AMM::getTradingFee | ( | ) | const |
Get sfTradingFee (soeDEFAULT)
Definition at line 65 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| bool xrpl::ledger_entries::AMM::hasTradingFee | ( | ) | const |
Check if sfTradingFee is present.
Definition at line 78 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| std::optional< std::reference_wrapper< STArray const > > xrpl::ledger_entries::AMM::getVoteSlots | ( | ) | const |
Get sfVoteSlots (soeOPTIONAL)
Definition at line 90 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| bool xrpl::ledger_entries::AMM::hasVoteSlots | ( | ) | const |
Check if sfVoteSlots is present.
Definition at line 103 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| std::optional< STObject > xrpl::ledger_entries::AMM::getAuctionSlot | ( | ) | const |
Get sfAuctionSlot (soeOPTIONAL)
Definition at line 115 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| bool xrpl::ledger_entries::AMM::hasAuctionSlot | ( | ) | const |
Check if sfAuctionSlot is present.
Definition at line 128 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| SF_AMOUNT::type::value_type xrpl::ledger_entries::AMM::getLPTokenBalance | ( | ) | const |
Get sfLPTokenBalance (soeREQUIRED)
Definition at line 139 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| SF_ISSUE::type::value_type xrpl::ledger_entries::AMM::getAsset | ( | ) | const |
Get sfAsset (soeREQUIRED)
Definition at line 150 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| SF_ISSUE::type::value_type xrpl::ledger_entries::AMM::getAsset2 | ( | ) | const |
Get sfAsset2 (soeREQUIRED)
Definition at line 161 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| SF_UINT64::type::value_type xrpl::ledger_entries::AMM::getOwnerNode | ( | ) | const |
Get sfOwnerNode (soeREQUIRED)
Definition at line 172 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| protocol_autogen::Optional< SF_UINT256::type::value_type > xrpl::ledger_entries::AMM::getPreviousTxnID | ( | ) | const |
Get sfPreviousTxnID (soeOPTIONAL)
Definition at line 183 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| bool xrpl::ledger_entries::AMM::hasPreviousTxnID | ( | ) | const |
Check if sfPreviousTxnID is present.
Definition at line 196 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::AMM::getPreviousTxnLgrSeq | ( | ) | const |
Get sfPreviousTxnLgrSeq (soeOPTIONAL)
Definition at line 207 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
| bool xrpl::ledger_entries::AMM::hasPreviousTxnLgrSeq | ( | ) | const |
Check if sfPreviousTxnLgrSeq is present.
Definition at line 220 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
|
inherited |
Validate the ledger entry.
Definition at line 40 of file LedgerEntryBase.h.
|
inherited |
Get the ledger entry type.
Definition at line 57 of file LedgerEntryBase.h.
|
inherited |
Get the key (index) of this ledger entry.
The key uniquely identifies this ledger entry in the ledger state.
Definition at line 70 of file LedgerEntryBase.h.
|
inherited |
Get the ledger index (sfLedgerIndex).
This field is OPTIONAL and represents the index of the ledger entry.
Definition at line 85 of file LedgerEntryBase.h.
|
inherited |
Check if the ledger entry has a ledger index.
Definition at line 100 of file LedgerEntryBase.h.
|
inherited |
Get the ledger entry type field (sfLedgerEntryType).
This field is REQUIRED for all ledger entries and indicates the type of the ledger entry (e.g., AccountRoot, RippleState, Offer, etc.).
Definition at line 114 of file LedgerEntryBase.h.
|
inherited |
Get the flags field (sfFlags).
This field is REQUIRED for all ledger entries and contains type-specific flags that modify the behavior of the ledger entry.
Definition at line 128 of file LedgerEntryBase.h.
|
inherited |
Get the underlying SLE object.
Provides direct access to the wrapped serialized ledger entry object for cases where the type-safe accessors are insufficient.
Definition at line 142 of file LedgerEntryBase.h.
|
staticconstexpr |
Definition at line 30 of file include/xrpl/protocol_autogen/ledger_entries/AMM.h.
|
protectedinherited |
The underlying serialized ledger entry being wrapped.
Definition at line 149 of file LedgerEntryBase.h.