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

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

#include <InvariantCheck.h>

Collaboration diagram for ripple::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 513 of file InvariantCheck.h.

Member Function Documentation

◆ visitEntry()

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

Definition at line 1251 of file InvariantCheck.cpp.

◆ finalize()

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

Definition at line 1270 of file InvariantCheck.cpp.

Member Data Documentation

◆ beforeMintedTotal

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

Definition at line 515 of file InvariantCheck.h.

◆ beforeBurnedTotal

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

Definition at line 516 of file InvariantCheck.h.

◆ afterMintedTotal

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

Definition at line 517 of file InvariantCheck.h.

◆ afterBurnedTotal

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

Definition at line 518 of file InvariantCheck.h.