mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
46 lines
704 B
C++
46 lines
704 B
C++
#pragma once
|
|
|
|
#include <xrpl/tx/Transactor.h>
|
|
|
|
namespace xrpl {
|
|
|
|
class Change : public Transactor
|
|
{
|
|
public:
|
|
static constexpr ConsequencesFactoryType ConsequencesFactory{Normal};
|
|
|
|
explicit Change(ApplyContext& ctx) : Transactor(ctx)
|
|
{
|
|
}
|
|
|
|
TER
|
|
doApply() override;
|
|
void
|
|
preCompute() override;
|
|
|
|
static XRPAmount
|
|
calculateBaseFee(ReadView const& view, STTx const& tx)
|
|
{
|
|
return XRPAmount{0};
|
|
}
|
|
|
|
static TER
|
|
preclaim(PreclaimContext const& ctx);
|
|
|
|
private:
|
|
TER
|
|
applyAmendment();
|
|
|
|
TER
|
|
applyFee();
|
|
|
|
TER
|
|
applyUNLModify();
|
|
};
|
|
|
|
using EnableAmendment = Change;
|
|
using SetFee = Change;
|
|
using UNLModify = Change;
|
|
|
|
} // namespace xrpl
|