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