rippled
Loading...
Searching...
No Matches
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
9namespace ripple {
10
11class NFTokenMint : public Transactor
12{
13public:
15
16 explicit NFTokenMint(ApplyContext& ctx) : Transactor(ctx)
17 {
18 }
19
20 static bool
22
23 static std::uint32_t
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
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
State information when applying a tx.
static NotTEC preflight(PreflightContext const &ctx)
static bool checkExtraFeatures(PreflightContext const &ctx)
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
static uint256 createNFTokenID(std::uint16_t flags, std::uint16_t fee, AccountID const &issuer, nft::Taxon taxon, std::uint32_t tokenSeq)
NFTokenMint(ApplyContext &ctx)
Definition NFTokenMint.h:16
static TER preclaim(PreclaimContext const &ctx)
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition NFTokenMint.h:14
TER doApply() override
A type-safe wrap around standard integral types.
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