rippled
Loading...
Searching...
No Matches
xrpld
app
tx
detail
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
6
namespace
ripple
{
7
38
class
AMMCreate
:
public
Transactor
39
{
40
public
:
41
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Normal
};
42
43
explicit
AMMCreate
(
ApplyContext
& ctx) :
Transactor
(ctx)
44
{
45
}
46
47
static
bool
48
checkExtraFeatures
(
PreflightContext
const
& ctx);
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
ripple::AMMCreate
AMMCreate implements Automatic Market Maker(AMM) creation Transactor.
Definition
AMMCreate.h:39
ripple::AMMCreate::preclaim
static TER preclaim(PreclaimContext const &ctx)
Definition
AMMCreate.cpp:63
ripple::AMMCreate::checkExtraFeatures
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition
AMMCreate.cpp:16
ripple::AMMCreate::doApply
TER doApply() override
Attempt to create the AMM instance.
Definition
AMMCreate.cpp:320
ripple::AMMCreate::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition
AMMCreate.cpp:22
ripple::AMMCreate::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
AMMCreate.h:41
ripple::AMMCreate::AMMCreate
AMMCreate(ApplyContext &ctx)
Definition
AMMCreate.h:43
ripple::AMMCreate::calculateBaseFee
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Definition
AMMCreate.cpp:56
ripple::ApplyContext
State information when applying a tx.
Definition
ApplyContext.h:18
ripple::ReadView
A view into a ledger.
Definition
ReadView.h:32
ripple::STTx
Definition
STTx.h:29
ripple::TERSubset
Definition
TER.h:396
ripple::Transactor
Definition
Transactor.h:122
ripple::Transactor::ConsequencesFactoryType
ConsequencesFactoryType
Definition
Transactor.h:138
ripple::Transactor::Normal
@ Normal
Definition
Transactor.h:138
ripple::Transactor::view
ApplyView & view()
Definition
Transactor.h:144
ripple::XRPAmount
Definition
XRPAmount.h:24
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:6
ripple::PreclaimContext
State information when determining if a tx is likely to claim a fee.
Definition
Transactor.h:61
ripple::PreflightContext
State information when preflighting a tx.
Definition
Transactor.h:16
Generated by
1.9.8