xrpld
Loading...
Searching...
No Matches
NFTokenOfferEntry.cpp
1#include <xrpl/ledger/entries/NFTokenOfferEntry.h>
2
3#include <xrpl/protocol/Indexes.h>
4#include <xrpl/protocol/SeqProxy.h>
5
6#include <gtest/gtest.h>
7#include <ledger/EntryTestHelpers.h>
8
9namespace xrpl::test {
10
11TEST(NFTokenOfferEntryTests, constructors)
12{
14
15 SeqProxy const seq = SeqProxy::rawSequence(13);
16
18 e, keylet::nftokenOffer(e.alice.id(), seq), "nftokenOffer(owner, seq)", e.alice.id(), seq);
19
21 e, keylet::nftokenOffer(e.someID()), "nftokenOffer(UInt256)", e.someID());
22}
23
24} // namespace xrpl::test
A type that represents either a sequence value or a ticket value.
Definition SeqProxy.h:37
static constexpr SeqProxy rawSequence(std::uint32_t v)
Factory function to return a sequence-based SeqProxy.
Definition SeqProxy.h:62
Scaffolding shared by the per-entry-type suites.
UInt256 someID() const
An arbitrary but stable UInt256, for the entry constructors that take an object ID directly.
AccountID id() const
Returns the Account ID.
Keylet nftokenOffer(AccountID const &owner, SeqProxy const &seq)
An offer from an account to buy or sell an NFT.
Definition Indexes.cpp:453
TEST(UnitsTest, types)
Definition Units.cpp:16
void expectKeylet(EntryTestEnv &e, Keylet const &expected, std::string const &what, Args const &... args)
Assert that both flavors of Entry built from args resolve the ledger object that expected names.