|
rippled
|
#include <Oracle.h>


Public Member Functions | |
| Oracle (std::shared_ptr< SLE const > sle) | |
| Construct a Oracle ledger entry wrapper from an existing SLE object. | |
| SF_ACCOUNT::type::value_type | getOwner () const |
| Get sfOwner (soeREQUIRED) | |
| protocol_autogen::Optional< SF_UINT32::type::value_type > | getOracleDocumentID () const |
| Get sfOracleDocumentID (soeOPTIONAL) | |
| bool | hasOracleDocumentID () const |
| Check if sfOracleDocumentID is present. | |
| SF_VL::type::value_type | getProvider () const |
| Get sfProvider (soeREQUIRED) | |
| STArray const & | getPriceDataSeries () const |
| Get sfPriceDataSeries (soeREQUIRED) | |
| SF_VL::type::value_type | getAssetClass () const |
| Get sfAssetClass (soeREQUIRED) | |
| SF_UINT32::type::value_type | getLastUpdateTime () const |
| Get sfLastUpdateTime (soeREQUIRED) | |
| protocol_autogen::Optional< SF_VL::type::value_type > | getURI () const |
| Get sfURI (soeOPTIONAL) | |
| bool | hasURI () const |
| Check if sfURI is present. | |
| SF_UINT64::type::value_type | getOwnerNode () const |
| Get sfOwnerNode (soeREQUIRED) | |
| SF_UINT256::type::value_type | getPreviousTxnID () const |
| Get sfPreviousTxnID (soeREQUIRED) | |
| SF_UINT32::type::value_type | getPreviousTxnLgrSeq () const |
| Get sfPreviousTxnLgrSeq (soeREQUIRED) | |
| 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 = ltORACLE |
Protected Attributes | |
| std::shared_ptr< SLE const > | sle_ |
| The underlying serialized ledger entry being wrapped. | |
Type: ltORACLE (0x0080) RPC Name: oracle
Immutable wrapper around SLE providing type-safe field access. Use OracleBuilder to construct new ledger entries.
Definition at line 27 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.h.
|
explicit |
Construct a Oracle 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/Oracle.h.
| SF_ACCOUNT::type::value_type xrpl::ledger_entries::Oracle::getOwner | ( | ) | const |
Get sfOwner (soeREQUIRED)
Definition at line 54 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.h.
| protocol_autogen::Optional< SF_UINT32::type::value_type > xrpl::ledger_entries::Oracle::getOracleDocumentID | ( | ) | const |
Get sfOracleDocumentID (soeOPTIONAL)
Definition at line 65 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.h.
| bool xrpl::ledger_entries::Oracle::hasOracleDocumentID | ( | ) | const |
Check if sfOracleDocumentID is present.
Definition at line 78 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.h.
| SF_VL::type::value_type xrpl::ledger_entries::Oracle::getProvider | ( | ) | const |
Get sfProvider (soeREQUIRED)
Definition at line 89 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.h.
| STArray const & xrpl::ledger_entries::Oracle::getPriceDataSeries | ( | ) | const |
Get sfPriceDataSeries (soeREQUIRED)
Definition at line 101 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.h.
| SF_VL::type::value_type xrpl::ledger_entries::Oracle::getAssetClass | ( | ) | const |
Get sfAssetClass (soeREQUIRED)
Definition at line 112 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.h.
| SF_UINT32::type::value_type xrpl::ledger_entries::Oracle::getLastUpdateTime | ( | ) | const |
Get sfLastUpdateTime (soeREQUIRED)
Definition at line 123 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.h.
| protocol_autogen::Optional< SF_VL::type::value_type > xrpl::ledger_entries::Oracle::getURI | ( | ) | const |
Get sfURI (soeOPTIONAL)
Definition at line 134 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.h.
| bool xrpl::ledger_entries::Oracle::hasURI | ( | ) | const |
Check if sfURI is present.
Definition at line 147 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.h.
| SF_UINT64::type::value_type xrpl::ledger_entries::Oracle::getOwnerNode | ( | ) | const |
Get sfOwnerNode (soeREQUIRED)
Definition at line 158 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.h.
| SF_UINT256::type::value_type xrpl::ledger_entries::Oracle::getPreviousTxnID | ( | ) | const |
Get sfPreviousTxnID (soeREQUIRED)
Definition at line 169 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.h.
| SF_UINT32::type::value_type xrpl::ledger_entries::Oracle::getPreviousTxnLgrSeq | ( | ) | const |
Get sfPreviousTxnLgrSeq (soeREQUIRED)
Definition at line 180 of file include/xrpl/protocol_autogen/ledger_entries/Oracle.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/Oracle.h.
|
protectedinherited |
The underlying serialized ledger entry being wrapped.
Definition at line 149 of file LedgerEntryBase.h.