rippled
Loading...
Searching...
No Matches
AMMCreate.h
1#pragma once
2
3#include <xrpld/app/tx/detail/Transactor.h>
4
5namespace xrpl {
6
37class AMMCreate : public Transactor
38{
39public:
41
42 explicit AMMCreate(ApplyContext& ctx) : Transactor(ctx)
43 {
44 }
45
46 static bool
48
49 static NotTEC
50 preflight(PreflightContext const& ctx);
51
52 static XRPAmount
53 calculateBaseFee(ReadView const& view, STTx const& tx);
54
55 static TER
56 preclaim(PreclaimContext const& ctx);
57
59 TER
60 doApply() override;
61};
62
63} // namespace xrpl
AMMCreate implements Automatic Market Maker(AMM) creation Transactor.
Definition AMMCreate.h:38
TER doApply() override
Attempt to create the AMM instance.
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition AMMCreate.cpp:16
static TER preclaim(PreclaimContext const &ctx)
Definition AMMCreate.cpp:62
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition AMMCreate.h:40
static NotTEC preflight(PreflightContext const &ctx)
Definition AMMCreate.cpp:22
AMMCreate(ApplyContext &ctx)
Definition AMMCreate.h:42
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Definition AMMCreate.cpp:55
State information when applying a tx.
A view into a ledger.
Definition ReadView.h:31
ApplyView & view()
Definition Transactor.h:128
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
State information when determining if a tx is likely to claim a fee.
Definition Transactor.h:53
State information when preflighting a tx.
Definition Transactor.h:15