rippled
Loading...
Searching...
No Matches
NFTokenMint.h
1#pragma once
2
3#include <xrpld/app/tx/detail/NFTokenUtils.h>
4#include <xrpld/app/tx/detail/Transactor.h>
5
6#include <xrpl/protocol/nft.h>
7
8namespace xrpl {
9
10class NFTokenMint : public Transactor
11{
12public:
14
15 explicit NFTokenMint(ApplyContext& ctx) : Transactor(ctx)
16 {
17 }
18
19 static bool
21
22 static std::uint32_t
24
25 static NotTEC
26 preflight(PreflightContext const& ctx);
27
28 static TER
29 preclaim(PreclaimContext const& ctx);
30
31 TER
32 doApply() override;
33
34 // Public to support unit tests.
35 static uint256
37 std::uint16_t flags,
38 std::uint16_t fee,
39 AccountID const& issuer,
40 nft::Taxon taxon,
41 std::uint32_t tokenSeq);
42};
43
44} // namespace xrpl
State information when applying a tx.
static uint256 createNFTokenID(std::uint16_t flags, std::uint16_t fee, AccountID const &issuer, nft::Taxon taxon, std::uint32_t tokenSeq)
static NotTEC preflight(PreflightContext const &ctx)
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition NFTokenMint.h:13
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
NFTokenMint(ApplyContext &ctx)
Definition NFTokenMint.h:15
TER doApply() override
static TER preclaim(PreclaimContext const &ctx)
static bool checkExtraFeatures(PreflightContext const &ctx)
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:5
State information when determining if a tx is likely to claim a fee.
Definition Transactor.h:53
State information when preflighting a tx.
Definition Transactor.h:15