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