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