xrpld
Loading...
Searching...
No Matches
xrpl::TxsRawView Class Referenceabstract

Interface for changing ledger entries with transactions. More...

#include <RawView.h>

Inheritance diagram for xrpl::TxsRawView:
Collaboration diagram for xrpl::TxsRawView:

Public Member Functions

virtual void rawTxInsert (ReadView::key_type const &key, std::shared_ptr< Serializer const > const &txn, std::shared_ptr< Serializer const > const &metaData)=0
 Add a transaction to the tx map.
virtual void rawErase (SLE::ref sle)=0
 Delete an existing state item.
virtual void rawInsert (SLE::ref sle)=0
 Unconditionally insert a state item.
virtual void rawReplace (SLE::ref sle)=0
 Unconditionally replace a state item.
virtual void rawDestroyXRP (XRPAmount const &fee)=0
 Destroy XRP.

Detailed Description

Interface for changing ledger entries with transactions.

Allows raw modification of ledger entries and insertion of transactions into the transaction map.

Definition at line 74 of file RawView.h.

Member Function Documentation

◆ rawTxInsert()

virtual void xrpl::TxsRawView::rawTxInsert ( ReadView::key_type const & key,
std::shared_ptr< Serializer const > const & txn,
std::shared_ptr< Serializer const > const & metaData )
pure virtual

Add a transaction to the tx map.

Closed ledgers must have metadata, while open ledgers omit metadata.

Implemented in xrpl::OpenView.

◆ rawErase()

virtual void xrpl::RawView::rawErase ( SLE::ref sle)
pure virtualinherited

Delete an existing state item.

The SLE is provided so the implementation can calculate metadata.

Implemented in xrpl::detail::ApplyViewBase, xrpl::Ledger, and xrpl::OpenView.

◆ rawInsert()

virtual void xrpl::RawView::rawInsert ( SLE::ref sle)
pure virtualinherited

Unconditionally insert a state item.

Requirements: The key must not already exist.

Effects:

The key is associated with the SLE.
Note
The key is taken from the SLE

Implemented in xrpl::detail::ApplyViewBase, xrpl::Ledger, and xrpl::OpenView.

◆ rawReplace()

virtual void xrpl::RawView::rawReplace ( SLE::ref sle)
pure virtualinherited

Unconditionally replace a state item.

Requirements:

The key must exist.

Effects:

The key is associated with the SLE.
Note
The key is taken from the SLE

Implemented in xrpl::detail::ApplyViewBase, xrpl::Ledger, and xrpl::OpenView.

◆ rawDestroyXRP()

virtual void xrpl::RawView::rawDestroyXRP ( XRPAmount const & fee)
pure virtualinherited

Destroy XRP.

This is used to pay for transaction fees.

Implemented in xrpl::detail::ApplyViewBase, xrpl::Ledger, and xrpl::OpenView.