mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 01:37:00 +00:00
This change reorganizes the `tx/transactors` directory for consistency and discoverability. There are no behavioral changes, this is a pure refactor. Underscores were chosen as the way to separate multi-words as this is the more popular option in C++ projects. Specific changes: - Rename all subdirectories to lowercase/snake_case (`AMM` → `amm`, `Check` → `check`, `NFT` → `nft`, `PermissionedDomain` → `permissioned_domain`, etc.) - Merge `AMM/` and `Offer/` into `dex/`, including `PermissionedDEXHelpers` - Rename `MPT/` → `token/`, absorbing `SetTrust` and `Clawback` - Move top-level transactors into named groups: `account/`, `bridge/`, `credentials/`, `did/`, `escrow/`, `oracle/`, `payment/`, `payment_channel/`, `system/` - Update all include paths across the codebase and `transactions.macro`
56 lines
1.2 KiB
C++
56 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <xrpl/basics/Log.h>
|
|
#include <xrpl/protocol/Indexes.h>
|
|
#include <xrpl/tx/Transactor.h>
|
|
|
|
namespace xrpl {
|
|
|
|
class Batch : public Transactor
|
|
{
|
|
public:
|
|
static constexpr ConsequencesFactoryType ConsequencesFactory{Normal};
|
|
|
|
explicit Batch(ApplyContext& ctx) : Transactor(ctx)
|
|
{
|
|
}
|
|
|
|
static XRPAmount
|
|
calculateBaseFee(ReadView const& view, STTx const& tx);
|
|
|
|
static std::uint32_t
|
|
getFlagsMask(PreflightContext const& ctx);
|
|
|
|
static NotTEC
|
|
preflight(PreflightContext const& ctx);
|
|
|
|
static NotTEC
|
|
preflightSigValidated(PreflightContext const& ctx);
|
|
|
|
static NotTEC
|
|
checkSign(PreclaimContext const& ctx);
|
|
|
|
TER
|
|
doApply() override;
|
|
|
|
static constexpr auto disabledTxTypes = std::to_array<TxType>({
|
|
ttVAULT_CREATE,
|
|
ttVAULT_SET,
|
|
ttVAULT_DELETE,
|
|
ttVAULT_DEPOSIT,
|
|
ttVAULT_WITHDRAW,
|
|
ttVAULT_CLAWBACK,
|
|
ttLOAN_BROKER_SET,
|
|
ttLOAN_BROKER_DELETE,
|
|
ttLOAN_BROKER_COVER_DEPOSIT,
|
|
ttLOAN_BROKER_COVER_WITHDRAW,
|
|
ttLOAN_BROKER_COVER_CLAWBACK,
|
|
ttLOAN_SET,
|
|
ttLOAN_DELETE,
|
|
ttLOAN_MANAGE,
|
|
ttLOAN_PAY,
|
|
});
|
|
};
|
|
|
|
} // namespace xrpl
|