rippled
Loading...
Searching...
No Matches
include
xrpl
tx
transactors
system
tx/transactors/system/Batch.h
1
#pragma once
2
3
#include <xrpl/basics/Log.h>
4
#include <xrpl/protocol/Indexes.h>
5
#include <xrpl/tx/Transactor.h>
6
7
namespace
xrpl
{
8
9
class
Batch
:
public
Transactor
10
{
11
public
:
12
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Normal
};
13
14
explicit
Batch
(
ApplyContext
& ctx) :
Transactor
(ctx)
15
{
16
}
17
18
static
XRPAmount
19
calculateBaseFee
(
ReadView
const
&
view
,
STTx
const
& tx);
20
21
static
std::uint32_t
22
getFlagsMask
(
PreflightContext
const
& ctx);
23
24
static
NotTEC
25
preflight
(
PreflightContext
const
& ctx);
26
27
static
NotTEC
28
preflightSigValidated
(
PreflightContext
const
& ctx);
29
30
static
NotTEC
31
checkSign
(
PreclaimContext
const
& ctx);
32
33
TER
34
doApply
()
override
;
35
36
static
constexpr
auto
disabledTxTypes
=
std::to_array<TxType>
({
37
ttVAULT_CREATE,
38
ttVAULT_SET,
39
ttVAULT_DELETE,
40
ttVAULT_DEPOSIT,
41
ttVAULT_WITHDRAW,
42
ttVAULT_CLAWBACK,
43
ttLOAN_BROKER_SET,
44
ttLOAN_BROKER_DELETE,
45
ttLOAN_BROKER_COVER_DEPOSIT,
46
ttLOAN_BROKER_COVER_WITHDRAW,
47
ttLOAN_BROKER_COVER_CLAWBACK,
48
ttLOAN_SET,
49
ttLOAN_DELETE,
50
ttLOAN_MANAGE,
51
ttLOAN_PAY,
52
});
53
};
54
55
}
// namespace xrpl
xrpl::ApplyContext
State information when applying a tx.
Definition
ApplyContext.h:15
xrpl::Batch
Definition
tx/transactors/system/Batch.h:10
xrpl::Batch::Batch
Batch(ApplyContext &ctx)
Definition
tx/transactors/system/Batch.h:14
xrpl::Batch::disabledTxTypes
static constexpr auto disabledTxTypes
Definition
tx/transactors/system/Batch.h:36
xrpl::Batch::calculateBaseFee
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Calculates the total base fee for a batch transaction.
Definition
Batch.cpp:35
xrpl::Batch::preflight
static NotTEC preflight(PreflightContext const &ctx)
Performs preflight validation checks for a Batch transaction.
Definition
Batch.cpp:185
xrpl::Batch::checkSign
static NotTEC checkSign(PreclaimContext const &ctx)
Checks the validity of signatures for a batch transaction.
Definition
Batch.cpp:476
xrpl::Batch::doApply
TER doApply() override
Applies the outer batch transaction.
Definition
Batch.cpp:498
xrpl::Batch::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
tx/transactors/system/Batch.h:12
xrpl::Batch::getFlagsMask
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
Definition
Batch.cpp:146
xrpl::Batch::preflightSigValidated
static NotTEC preflightSigValidated(PreflightContext const &ctx)
Definition
Batch.cpp:369
xrpl::ReadView
A view into a ledger.
Definition
ReadView.h:31
xrpl::STTx
Definition
STTx.h:28
xrpl::TERSubset
Definition
TER.h:395
xrpl::Transactor
Definition
Transactor.h:110
xrpl::Transactor::ConsequencesFactoryType
ConsequencesFactoryType
Definition
Transactor.h:126
xrpl::Transactor::Normal
@ Normal
Definition
Transactor.h:126
xrpl::Transactor::view
ApplyView & view()
Definition
Transactor.h:132
xrpl::XRPAmount
Definition
XRPAmount.h:23
std::uint32_t
std::is_same_v
T is_same_v
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::PreclaimContext
State information when determining if a tx is likely to claim a fee.
Definition
Transactor.h:57
xrpl::PreflightContext
State information when preflighting a tx.
Definition
Transactor.h:14
Generated by
1.9.8