rippled
Loading...
Searching...
No Matches
NFTokenAcceptOffer.h
1#pragma once
2
3#include <xrpld/app/tx/detail/Transactor.h>
4
5namespace xrpl {
6
8{
9private:
10 TER
11 pay(AccountID const& from, AccountID const& to, STAmount const& amount);
12
13 TER
15
16 TER
18
19 TER
20 transferNFToken(AccountID const& buyer, AccountID const& seller, uint256 const& nfTokenID);
21
22public:
24
26 {
27 }
28
29 static std::uint32_t
31
32 static NotTEC
33 preflight(PreflightContext const& ctx);
34
35 static TER
36 preclaim(PreclaimContext const& ctx);
37
38 TER
39 doApply() override;
40};
41
42} // namespace xrpl
State information when applying a tx.
TER acceptOffer(std::shared_ptr< SLE > const &offer)
TER transferNFToken(AccountID const &buyer, AccountID const &seller, uint256 const &nfTokenID)
TER pay(AccountID const &from, AccountID const &to, STAmount const &amount)
static NotTEC preflight(PreflightContext const &ctx)
static TER preclaim(PreclaimContext const &ctx)
static constexpr ConsequencesFactoryType ConsequencesFactory
TER bridgeOffers(std::shared_ptr< SLE > const &buy, std::shared_ptr< SLE > const &sell)
static std::uint32_t getFlagsMask(PreflightContext const &ctx)
NFTokenAcceptOffer(ApplyContext &ctx)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
@ sell
Definition Steps.h:25
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