Transactor specialized for creating offers in the ledger.
More...
#include <OfferCreate.h>
|
| static NotTEC | checkSign (ReadView const &view, ApplyFlags flags, std::optional< uint256 const > const &parentBatchId, AccountID const &idAccount, STObject const &sigObject, beast::Journal const j) |
| |
| static XRPAmount | minimumFee (ServiceRegistry ®istry, XRPAmount 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.
|
| |
| static XRPAmount | calculateOwnerReserveFee (ReadView const &view, STTx const &tx) |
| |
| static NotTEC | preflightSigValidated (PreflightContext const &ctx) |
| |
| static bool | validDataLength (std::optional< Slice > const &slice, std::size_t maxLength) |
| |
| template<class T > |
| static bool | validNumericRange (std::optional< T > value, T max, T min=T{}) |
| |
| template<class T , class Unit > |
| static bool | validNumericRange (std::optional< T > value, unit::ValueUnit< Unit, T > max, unit::ValueUnit< Unit, T > min=unit::ValueUnit< Unit, T >{}) |
| |
| template<class T > |
| static bool | validNumericMinimum (std::optional< T > value, T min=T{}) |
| | Minimum will usually be zero.
|
| |
| template<class T , class Unit > |
| static bool | validNumericMinimum (std::optional< T > value, unit::ValueUnit< Unit, T > min=unit::ValueUnit< Unit, T >{}) |
| | Minimum will usually be zero.
|
| |
|
| std::pair< TER, bool > | applyGuts (Sandbox &view, Sandbox &view_cancel) |
| |
| std::pair< TER, Amounts > | flowCross (PaymentSandbox &psb, PaymentSandbox &psbCancel, Amounts const &takerAmount, std::optional< uint256 > const &domainID) |
| |
| TER | applyHybrid (Sandbox &sb, std::shared_ptr< STLedgerEntry > sleOffer, Keylet const &offer_index, STAmount const &saTakerPays, STAmount const &saTakerGets, std::function< void(SLE::ref, std::optional< uint256 >)> const &setDir) |
| |
| std::pair< TER, XRPAmount > | reset (XRPAmount fee) |
| | Reset the context, discarding any changes made and adjust the fee.
|
| |
| TER | consumeSeqProxy (SLE::pointer const &sleAccount) |
| |
| TER | payFee () |
| |
| void | trapTransaction (uint256) const |
| |
|
| static TER | checkAcceptAsset (ReadView const &view, ApplyFlags const flags, AccountID const id, beast::Journal const j, Issue const &issue) |
| |
| static std::string | format_amount (STAmount const &amount) |
| |
| static NotTEC | checkSingleSign (ReadView const &view, AccountID const &idSigner, AccountID const &idAccount, std::shared_ptr< SLE const > sleAccount, beast::Journal const j) |
| |
| static NotTEC | checkMultiSign (ReadView const &view, ApplyFlags flags, AccountID const &id, STObject const &sigObject, beast::Journal const j) |
| |
| static NotTEC | preflight1 (PreflightContext const &ctx, std::uint32_t flagMask) |
| | Performs early sanity checks on the account and fee fields.
|
| |
| static NotTEC | preflight2 (PreflightContext const &ctx) |
| | Checks whether the signature appears valid.
|
| |
Transactor specialized for creating offers in the ledger.
Definition at line 12 of file tx/transactors/dex/OfferCreate.h.
◆ ConsequencesFactoryType
| Enumerator |
|---|
| Normal | |
| Blocker | |
| Custom | |
Definition at line 126 of file Transactor.h.
◆ OfferCreate()
◆ makeTxConsequences()
◆ checkExtraFeatures()
◆ getFlagsMask()
◆ preflight()
◆ preclaim()
◆ doApply()
| TER xrpl::OfferCreate::doApply |
( |
| ) |
|
|
overridevirtual |
◆ applyGuts()
◆ checkAcceptAsset()
◆ flowCross()
◆ format_amount()
◆ applyHybrid()
◆ operator()()
◆ view() [1/2]
◆ view() [2/2]
| ApplyView const & xrpl::Transactor::view |
( |
| ) |
const |
|
inherited |
◆ checkSeqProxy()
◆ checkPriorTxAndLastLedger()
◆ checkFee()
◆ checkSign() [1/2]
◆ checkSign() [2/2]
◆ checkBatchSign()
◆ calculateBaseFee()
◆ invokePreflight() [1/3]
◆ invokePreflight() [2/3]
◆ invokePreflight() [3/3]
◆ checkPermission()
◆ ticketDelete()
◆ apply()
| TER xrpl::Transactor::apply |
( |
| ) |
|
|
protectedinherited |
◆ preCompute()
| void xrpl::Transactor::preCompute |
( |
| ) |
|
|
protectedvirtualinherited |
◆ minimumFee()
Compute the minimum fee required to process a transaction with a given baseFee based on the current server load.
- Parameters
-
| registry | The service registry. |
| baseFee | The base fee of a candidate transaction |
- See also
- xrpl::calculateBaseFee
- Parameters
-
| fees | Fee settings from the current ledger |
| flags | Transaction processing fees |
Definition at line 314 of file Transactor.cpp.
◆ calculateOwnerReserveFee()
◆ preflightSigValidated()
◆ validDataLength()
◆ validNumericRange() [1/2]
template<class T >
| bool xrpl::Transactor::validNumericRange |
( |
std::optional< T > |
value, |
|
|
T |
max, |
|
|
T |
min = T{} |
|
) |
| |
|
staticprotectedinherited |
◆ validNumericRange() [2/2]
template<class T , class Unit >
◆ validNumericMinimum() [1/2]
template<class T >
| bool xrpl::Transactor::validNumericMinimum |
( |
std::optional< T > |
value, |
|
|
T |
min = T{} |
|
) |
| |
|
staticprotectedinherited |
◆ validNumericMinimum() [2/2]
template<class T , class Unit >
◆ reset()
Reset the context, discarding any changes made and adjust the fee.
- Parameters
-
| fee | The transaction fee to be charged. |
- Returns
- A pair containing the transaction result and the actual fee charged.
Definition at line 1015 of file Transactor.cpp.
◆ consumeSeqProxy()
◆ payFee()
| TER xrpl::Transactor::payFee |
( |
| ) |
|
|
privateinherited |
◆ checkSingleSign()
◆ checkMultiSign()
◆ trapTransaction()
| void xrpl::Transactor::trapTransaction |
( |
uint256 |
txHash | ) |
const |
|
privateinherited |
◆ preflight1()
Performs early sanity checks on the account and fee fields.
(And passes flagMask to preflight0)
Do not try to call preflight1 from preflight() in derived classes. See the description of invokePreflight for details.
Definition at line 139 of file Transactor.cpp.
◆ preflight2()
Checks whether the signature appears valid.
Do not try to call preflight2 from preflight() in derived classes. See the description of invokePreflight for details.
Definition at line 193 of file Transactor.cpp.
◆ ConsequencesFactory
◆ ctx_
◆ sink_
◆ j_
◆ account_
◆ preFeeBalance_
| XRPAmount xrpl::Transactor::preFeeBalance_ {} |
|
protectedinherited |