rippled
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | List of all members
ripple::PayChanFund Class Reference
Inheritance diagram for ripple::PayChanFund:
Inheritance graph
[legend]
Collaboration diagram for ripple::PayChanFund:
Collaboration graph
[legend]

Public Member Functions

 PayChanFund (ApplyContext &ctx)
 
TER doApply () override
 
std::pair< TER, bool > operator() ()
 Process the transaction. More...
 
ApplyViewview ()
 
ApplyView const & view () const
 

Static Public Member Functions

static NotTEC preflight (PreflightContext const &ctx)
 
static NotTEC checkSeq (PreclaimContext const &ctx)
 
static TER checkFee (PreclaimContext const &ctx, FeeUnit64 baseFee)
 
static NotTEC checkSign (PreclaimContext const &ctx)
 
static FeeUnit64 calculateBaseFee (ReadView const &view, STTx const &tx)
 
static bool affectsSubsequentTransactionAuth (STTx const &tx)
 
static XRPAmount calculateFeePaid (STTx const &tx)
 
static XRPAmount calculateMaxSpend (STTx const &tx)
 
static TER preclaim (PreclaimContext const &ctx)
 

Protected Member Functions

TER apply ()
 
virtual void preCompute ()
 

Static Protected Member Functions

static XRPAmount minimumFee (Application &app, FeeUnit64 baseFee, Fees const &fees, ApplyFlags flags)
 Compute the minimum fee required to process a transaction with a given baseFee based on the current server load. More...
 

Protected Attributes

ApplyContextctx_
 
const beast::Journal j_
 
AccountID account_
 
XRPAmount mPriorBalance
 
XRPAmount mSourceBalance
 

Private Member Functions

XRPAmount reset (XRPAmount fee)
 Reset the context, discarding any changes made and adjust the fee. More...
 
void setSeq ()
 
TER payFee ()
 

Static Private Member Functions

static NotTEC checkSingleSign (PreclaimContext const &ctx)
 
static NotTEC checkMultiSign (PreclaimContext const &ctx)
 

Detailed Description

Definition at line 46 of file app/tx/impl/PayChan.h.

Constructor & Destructor Documentation

◆ PayChanFund()

ripple::PayChanFund::PayChanFund ( ApplyContext ctx)
explicit

Definition at line 49 of file app/tx/impl/PayChan.h.

Member Function Documentation

◆ preflight()

NotTEC ripple::PayChanFund::preflight ( PreflightContext const &  ctx)
static

Definition at line 296 of file PayChan.cpp.

◆ doApply()

TER ripple::PayChanFund::doApply ( )
overridevirtual

Implements ripple::Transactor.

Definition at line 312 of file PayChan.cpp.

◆ operator()()

std::pair< TER, bool > ripple::Transactor::operator() ( )
inherited

Process the transaction.

Definition at line 627 of file Transactor.cpp.

◆ view() [1/2]

ApplyView& ripple::Transactor::view ( )
inherited

Definition at line 107 of file Transactor.h.

◆ view() [2/2]

ApplyView const& ripple::Transactor::view ( ) const
inherited

Definition at line 113 of file Transactor.h.

◆ checkSeq()

NotTEC ripple::Transactor::checkSeq ( PreclaimContext const &  ctx)
staticinherited

Definition at line 227 of file Transactor.cpp.

◆ checkFee()

TER ripple::Transactor::checkFee ( PreclaimContext const &  ctx,
FeeUnit64  baseFee 
)
staticinherited

Definition at line 161 of file Transactor.cpp.

◆ checkSign()

NotTEC ripple::Transactor::checkSign ( PreclaimContext const &  ctx)
staticinherited

Definition at line 329 of file Transactor.cpp.

◆ calculateBaseFee()

FeeUnit64 ripple::Transactor::calculateBaseFee ( ReadView const &  view,
STTx const &  tx 
)
staticinherited

Definition at line 121 of file Transactor.cpp.

◆ affectsSubsequentTransactionAuth()

static bool ripple::Transactor::affectsSubsequentTransactionAuth ( STTx const &  tx)
staticinherited

Definition at line 142 of file Transactor.h.

◆ calculateFeePaid()

XRPAmount ripple::Transactor::calculateFeePaid ( STTx const &  tx)
staticinherited

Definition at line 139 of file Transactor.cpp.

◆ calculateMaxSpend()

XRPAmount ripple::Transactor::calculateMaxSpend ( STTx const &  tx)
staticinherited

Definition at line 155 of file Transactor.cpp.

◆ preclaim()

static TER ripple::Transactor::preclaim ( PreclaimContext const &  ctx)
staticinherited

Definition at line 154 of file Transactor.h.

◆ apply()

TER ripple::Transactor::apply ( )
protectedinherited

Definition at line 298 of file Transactor.cpp.

◆ preCompute()

void ripple::Transactor::preCompute ( )
protectedvirtualinherited

Reimplemented in ripple::SetSignerList, ripple::CreateOffer, and ripple::Change.

Definition at line 291 of file Transactor.cpp.

◆ minimumFee()

XRPAmount ripple::Transactor::minimumFee ( Application app,
FeeUnit64  baseFee,
Fees const &  fees,
ApplyFlags  flags 
)
staticprotectedinherited

Compute the minimum fee required to process a transaction with a given baseFee based on the current server load.

Parameters
appThe application hosting the server
baseFeeThe base fee of a candidate transaction
See also
ripple::calculateBaseFee
Parameters
feesFee settings from the current ledger
flagsTransaction processing fees

Definition at line 145 of file Transactor.cpp.

◆ reset()

XRPAmount ripple::Transactor::reset ( XRPAmount  fee)
privateinherited

Reset the context, discarding any changes made and adjust the fee.

Definition at line 594 of file Transactor.cpp.

◆ setSeq()

void ripple::Transactor::setSeq ( )
privateinherited

Definition at line 275 of file Transactor.cpp.

◆ payFee()

TER ripple::Transactor::payFee ( )
privateinherited

Definition at line 207 of file Transactor.cpp.

◆ checkSingleSign()

NotTEC ripple::Transactor::checkSingleSign ( PreclaimContext const &  ctx)
staticprivateinherited

Definition at line 339 of file Transactor.cpp.

◆ checkMultiSign()

NotTEC ripple::Transactor::checkMultiSign ( PreclaimContext const &  ctx)
staticprivateinherited

Definition at line 413 of file Transactor.cpp.

Member Data Documentation

◆ ctx_

ApplyContext& ripple::Transactor::ctx_
protectedinherited

Definition at line 89 of file Transactor.h.

◆ j_

const beast::Journal ripple::Transactor::j_
protectedinherited

Definition at line 90 of file Transactor.h.

◆ account_

AccountID ripple::Transactor::account_
protectedinherited

Definition at line 92 of file Transactor.h.

◆ mPriorBalance

XRPAmount ripple::Transactor::mPriorBalance
protectedinherited

Definition at line 93 of file Transactor.h.

◆ mSourceBalance

XRPAmount ripple::Transactor::mSourceBalance
protectedinherited

Definition at line 94 of file Transactor.h.