rippled
ripple
app
tx
impl
NFTokenMint.h
1
//------------------------------------------------------------------------------
2
/*
3
This file is part of rippled: https://github.com/ripple/rippled
4
Copyright (c) 2021 Ripple Labs Inc.
5
6
Permission to use, copy, modify, and/or distribute this software for any
7
purpose with or without fee is hereby granted, provided that the above
8
copyright notice and this permission notice appear in all copies.
9
10
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
*/
18
//==============================================================================
19
20
#ifndef RIPPLE_TX_NFTTOKENMINT_H_INCLUDED
21
#define RIPPLE_TX_NFTTOKENMINT_H_INCLUDED
22
23
#include <ripple/app/tx/impl/Transactor.h>
24
#include <ripple/app/tx/impl/details/NFTokenUtils.h>
25
26
namespace
ripple
{
27
28
class
NFTokenMint
:
public
Transactor
29
{
30
public
:
31
static
constexpr
ConsequencesFactoryType
ConsequencesFactory
{
Normal
};
32
33
explicit
NFTokenMint
(
ApplyContext
& ctx) :
Transactor
(ctx)
34
{
35
}
36
37
static
NotTEC
38
preflight
(
PreflightContext
const
& ctx);
39
40
static
TER
41
preclaim
(
PreclaimContext
const
& ctx);
42
43
TER
44
doApply
()
override
;
45
46
// Public to support unit tests.
47
static
uint256
48
createNFTokenID
(
49
std::uint16_t
flags,
50
std::uint16_t
fee,
51
AccountID
const
& issuer,
52
nft::Taxon
taxon,
53
std::uint32_t
tokenSeq);
54
};
55
56
}
// namespace ripple
57
58
#endif
ripple::NFTokenMint::preclaim
static TER preclaim(PreclaimContext const &ctx)
Definition:
NFTokenMint.cpp:133
ripple::NFTokenMint
Definition:
NFTokenMint.h:28
ripple::NFTokenMint::ConsequencesFactory
static constexpr ConsequencesFactoryType ConsequencesFactory
Definition:
NFTokenMint.h:31
ripple::Transactor
Definition:
Transactor.h:85
ripple::NFTokenMint::doApply
TER doApply() override
Definition:
NFTokenMint.cpp:153
ripple::base_uint< 256 >
ripple::NFTokenMint::preflight
static NotTEC preflight(PreflightContext const &ctx)
Definition:
NFTokenMint.cpp:35
ripple::Transactor::ConsequencesFactoryType
ConsequencesFactoryType
Definition:
Transactor.h:101
ripple::TERSubset
Definition:
TER.h:340
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:87
ripple::ApplyContext
State information when applying a tx.
Definition:
ApplyContext.h:35
std::uint16_t
ripple::NFTokenMint::NFTokenMint
NFTokenMint(ApplyContext &ctx)
Definition:
NFTokenMint.h:33
ripple::PreclaimContext
State information when determining if a tx is likely to claim a fee.
Definition:
Transactor.h:52
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition:
RCLCensorshipDetector.h:29
ripple::Transactor::Normal
@ Normal
Definition:
Transactor.h:101
ripple::tagged_integer
A type-safe wrap around standard integral types.
Definition:
tagged_integer.h:44
ripple::PreflightContext
State information when preflighting a tx.
Definition:
Transactor.h:31
Generated by
1.8.17