rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
xrpl::NFTokenCountTracking Class Reference

Invariant: Validates counts of NFTokens after all transaction types. More...

#include <InvariantCheck.h>

Collaboration diagram for xrpl::NFTokenCountTracking:
Collaboration graph
[legend]

Public Member Functions

void visitEntry (bool, std::shared_ptr< SLE const > const &, std::shared_ptr< SLE const > const &)
 
bool finalize (STTx const &, TER const, XRPAmount const, ReadView const &, beast::Journal const &)
 

Private Attributes

std::uint32_t beforeMintedTotal = 0
 
std::uint32_t beforeBurnedTotal = 0
 
std::uint32_t afterMintedTotal = 0
 
std::uint32_t afterBurnedTotal = 0
 

Detailed Description

Invariant: Validates counts of NFTokens after all transaction types.

The following checks are made:

Definition at line 382 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

void xrpl::NFTokenCountTracking::visitEntry ( bool  ,
std::shared_ptr< SLE const > const &  before,
std::shared_ptr< SLE const > const &  after 
)

Definition at line 1160 of file InvariantCheck.cpp.

◆ finalize()

bool xrpl::NFTokenCountTracking::finalize ( STTx const &  tx,
TER const  result,
XRPAmount const  ,
ReadView const &  view,
beast::Journal const &  j 
)

Definition at line 1179 of file InvariantCheck.cpp.

Member Data Documentation

◆ beforeMintedTotal

std::uint32_t xrpl::NFTokenCountTracking::beforeMintedTotal = 0
private

Definition at line 384 of file InvariantCheck.h.

◆ beforeBurnedTotal

std::uint32_t xrpl::NFTokenCountTracking::beforeBurnedTotal = 0
private

Definition at line 385 of file InvariantCheck.h.

◆ afterMintedTotal

std::uint32_t xrpl::NFTokenCountTracking::afterMintedTotal = 0
private

Definition at line 386 of file InvariantCheck.h.

◆ afterBurnedTotal

std::uint32_t xrpl::NFTokenCountTracking::afterBurnedTotal = 0
private

Definition at line 387 of file InvariantCheck.h.