rippled
Loading...
Searching...
No Matches
xrpld
app
tx
detail
AMMCreate.h
1
#pragma once
2
3
#include <xrpld/app/tx/detail/Transactor.h>
4
5
namespace
xrpl
{
6
37
class
AMMCreate
:
public
Transactor
38
{
39
public
:
40
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Normal
};
41
42
explicit
AMMCreate
(
ApplyContext
& ctx) :
Transactor
(ctx)
43
{
44
}
45
46
static
bool
47
checkExtraFeatures
(
PreflightContext
const
& ctx);
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
xrpl::AMMCreate
AMMCreate implements Automatic Market Maker(AMM) creation Transactor.
Definition
AMMCreate.h:38
xrpl::AMMCreate::doApply
TER doApply() override
Attempt to create the AMM instance.
Definition
AMMCreate.cpp:284
xrpl::AMMCreate::checkExtraFeatures
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition
AMMCreate.cpp:16
xrpl::AMMCreate::preclaim
static TER preclaim(PreclaimContext const &ctx)
Definition
AMMCreate.cpp:62
xrpl::AMMCreate::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
AMMCreate.h:40
xrpl::AMMCreate::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition
AMMCreate.cpp:22
xrpl::AMMCreate::AMMCreate
AMMCreate(ApplyContext &ctx)
Definition
AMMCreate.h:42
xrpl::AMMCreate::calculateBaseFee
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Definition
AMMCreate.cpp:55
xrpl::ApplyContext
State information when applying a tx.
Definition
ApplyContext.h:17
xrpl::ReadView
A view into a ledger.
Definition
ReadView.h:31
xrpl::STTx
Definition
STTx.h:28
xrpl::TERSubset
Definition
TER.h:395
xrpl::Transactor
Definition
Transactor.h:106
xrpl::Transactor::ConsequencesFactoryType
ConsequencesFactoryType
Definition
Transactor.h:122
xrpl::Transactor::Normal
@ Normal
Definition
Transactor.h:122
xrpl::Transactor::view
ApplyView & view()
Definition
Transactor.h:128
xrpl::XRPAmount
Definition
XRPAmount.h:23
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::PreclaimContext
State information when determining if a tx is likely to claim a fee.
Definition
Transactor.h:53
xrpl::PreflightContext
State information when preflighting a tx.
Definition
Transactor.h:15
Generated by
1.9.8