rippled
Loading...
Searching...
No Matches
xrpld
app
tx
detail
NFTokenMint.h
1
#ifndef XRPL_TX_NFTTOKENMINT_H_INCLUDED
2
#define XRPL_TX_NFTTOKENMINT_H_INCLUDED
3
4
#include <xrpld/app/tx/detail/NFTokenUtils.h>
5
#include <xrpld/app/tx/detail/Transactor.h>
6
7
#include <xrpl/protocol/nft.h>
8
9
namespace
ripple
{
10
11
class
NFTokenMint
:
public
Transactor
12
{
13
public
:
14
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Normal
};
15
16
explicit
NFTokenMint
(
ApplyContext
& ctx) :
Transactor
(ctx)
17
{
18
}
19
20
static
bool
21
checkExtraFeatures
(
PreflightContext
const
& ctx);
22
23
static
std::uint32_t
24
getFlagsMask
(
PreflightContext
const
& ctx);
25
26
static
NotTEC
27
preflight
(
PreflightContext
const
& ctx);
28
29
static
TER
30
preclaim
(
PreclaimContext
const
& ctx);
31
32
TER
33
doApply
()
override
;
34
35
// Public to support unit tests.
36
static
uint256
37
createNFTokenID
(
38
std::uint16_t
flags,
39
std::uint16_t
fee,
40
AccountID
const
& issuer,
41
nft::Taxon
taxon,
42
std::uint32_t
tokenSeq);
43
};
44
45
}
// namespace ripple
46
47
#endif
ripple::ApplyContext
State information when applying a tx.
Definition
ApplyContext.h:18
ripple::NFTokenMint
Definition
NFTokenMint.h:12
ripple::NFTokenMint::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition
NFTokenMint.cpp:65
ripple::NFTokenMint::checkExtraFeatures
static bool checkExtraFeatures(PreflightContext const &ctx)
Definition
NFTokenMint.cpp:31
ripple::NFTokenMint::getFlagsMask
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
Definition
NFTokenMint.cpp:37
ripple::NFTokenMint::createNFTokenID
static uint256 createNFTokenID(std::uint16_t flags, std::uint16_t fee, AccountID const &issuer, nft::Taxon taxon, std::uint32_t tokenSeq)
Definition
NFTokenMint.cpp:115
ripple::NFTokenMint::NFTokenMint
NFTokenMint(ApplyContext &ctx)
Definition
NFTokenMint.h:16
ripple::NFTokenMint::preclaim
static TER preclaim(PreclaimContext const &ctx)
Definition
NFTokenMint.cpp:163
ripple::NFTokenMint::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition
NFTokenMint.h:14
ripple::NFTokenMint::doApply
TER doApply() override
Definition
NFTokenMint.cpp:204
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::base_uint< 256 >
ripple::tagged_integer
A type-safe wrap around standard integral types.
Definition
tagged_integer.h:37
std::uint32_t
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