mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-28 07:48:01 +00:00
fix build issues
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <xrpl/protocol/AccountID.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/SeqProxy.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -25,7 +26,7 @@ public:
|
||||
|
||||
explicit CheckEntry(
|
||||
AccountID const& id,
|
||||
std::uint32_t seq,
|
||||
SeqProxy const& seq,
|
||||
Base::view_ref_type view,
|
||||
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
|
||||
: Base(keylet::check(id, seq), view, j)
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <xrpl/protocol/AccountID.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/SeqProxy.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -24,7 +25,7 @@ public:
|
||||
|
||||
explicit EscrowEntry(
|
||||
AccountID const& src,
|
||||
std::uint32_t seq,
|
||||
SeqProxy const& seq,
|
||||
Base::view_ref_type view,
|
||||
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
|
||||
: Base(keylet::escrow(src, seq), view, j)
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <xrpl/protocol/AccountID.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/SeqProxy.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -25,7 +26,7 @@ public:
|
||||
|
||||
explicit LoanBrokerEntry(
|
||||
AccountID const& owner,
|
||||
std::uint32_t seq,
|
||||
SeqProxy const& seq,
|
||||
Base::view_ref_type view,
|
||||
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
|
||||
: Base(keylet::loanBroker(owner, seq), view, j)
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <xrpl/ledger/helpers/SLEBase.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/SeqProxy.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -24,7 +25,7 @@ public:
|
||||
|
||||
explicit LoanEntry(
|
||||
uint256 const& loanBrokerID,
|
||||
std::uint32_t loanSeq,
|
||||
SeqProxy const& loanSeq,
|
||||
Base::view_ref_type view,
|
||||
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
|
||||
: Base(keylet::loan(loanBrokerID, loanSeq), view, j)
|
||||
|
||||
@@ -29,7 +29,7 @@ public:
|
||||
AccountID const& issuer,
|
||||
Base::view_ref_type view,
|
||||
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
|
||||
: Base(keylet::mptokenIssuance(seq, issuer), view, j)
|
||||
: Base(keylet::mptokenIssuance(makeMptID(seq, issuer)), view, j)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <xrpl/protocol/AccountID.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/SeqProxy.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -25,7 +26,7 @@ public:
|
||||
|
||||
explicit NFTokenOfferEntry(
|
||||
AccountID const& owner,
|
||||
std::uint32_t seq,
|
||||
SeqProxy const& seq,
|
||||
Base::view_ref_type view,
|
||||
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
|
||||
: Base(keylet::nftokenOffer(owner, seq), view, j)
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <xrpl/protocol/AccountID.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/SeqProxy.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -25,7 +26,7 @@ public:
|
||||
|
||||
explicit OfferEntry(
|
||||
AccountID const& id,
|
||||
std::uint32_t seq,
|
||||
SeqProxy const& seq,
|
||||
Base::view_ref_type view,
|
||||
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
|
||||
: Base(keylet::offer(id, seq), view, j)
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <xrpl/protocol/AccountID.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/SeqProxy.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -25,7 +26,7 @@ public:
|
||||
explicit PayChannelEntry(
|
||||
AccountID const& src,
|
||||
AccountID const& dst,
|
||||
std::uint32_t seq,
|
||||
SeqProxy const& seq,
|
||||
Base::view_ref_type view,
|
||||
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
|
||||
: Base(keylet::payChannel(src, dst, seq), view, j)
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <xrpl/protocol/AccountID.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/SeqProxy.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -25,7 +26,7 @@ public:
|
||||
|
||||
explicit PermissionedDomainEntry(
|
||||
AccountID const& account,
|
||||
std::uint32_t seq,
|
||||
SeqProxy const& seq,
|
||||
Base::view_ref_type view,
|
||||
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
|
||||
: Base(keylet::permissionedDomain(account, seq), view, j)
|
||||
|
||||
@@ -26,16 +26,7 @@ public:
|
||||
|
||||
explicit TicketEntry(
|
||||
AccountID const& id,
|
||||
std::uint32_t ticketSeq,
|
||||
Base::view_ref_type view,
|
||||
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
|
||||
: Base(keylet::ticket(id, ticketSeq), view, j)
|
||||
{
|
||||
}
|
||||
|
||||
explicit TicketEntry(
|
||||
AccountID const& id,
|
||||
SeqProxy ticketSeq,
|
||||
SeqProxy const& ticketSeq,
|
||||
Base::view_ref_type view,
|
||||
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
|
||||
: Base(keylet::ticket(id, ticketSeq), view, j)
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <xrpl/protocol/AccountID.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/SeqProxy.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -25,7 +26,7 @@ public:
|
||||
|
||||
explicit VaultEntry(
|
||||
AccountID const& owner,
|
||||
std::uint32_t seq,
|
||||
SeqProxy const& seq,
|
||||
Base::view_ref_type view,
|
||||
beast::Journal j = beast::Journal{beast::Journal::getNullSink()})
|
||||
: Base(keylet::vault(owner, seq), view, j)
|
||||
|
||||
@@ -6,12 +6,41 @@
|
||||
#include <xrpl/ledger/ApplyView.h>
|
||||
#include <xrpl/ledger/ApplyViewImpl.h>
|
||||
#include <xrpl/ledger/ReadView.h>
|
||||
#include <xrpl/ledger/helpers/AMMEntry.h>
|
||||
#include <xrpl/ledger/helpers/AccountRootEntry.h>
|
||||
#include <xrpl/ledger/helpers/AmendmentsEntry.h>
|
||||
#include <xrpl/ledger/helpers/BridgeEntry.h>
|
||||
#include <xrpl/ledger/helpers/CheckEntry.h>
|
||||
#include <xrpl/ledger/helpers/CredentialEntry.h>
|
||||
#include <xrpl/ledger/helpers/DIDEntry.h>
|
||||
#include <xrpl/ledger/helpers/DelegateEntry.h>
|
||||
#include <xrpl/ledger/helpers/DepositPreauthEntry.h>
|
||||
#include <xrpl/ledger/helpers/DirectoryNodeEntry.h>
|
||||
#include <xrpl/ledger/helpers/EscrowEntry.h>
|
||||
#include <xrpl/ledger/helpers/FeeSettingsEntry.h>
|
||||
#include <xrpl/ledger/helpers/LedgerHashesEntry.h>
|
||||
#include <xrpl/ledger/helpers/LoanBrokerEntry.h>
|
||||
#include <xrpl/ledger/helpers/LoanEntry.h>
|
||||
#include <xrpl/ledger/helpers/MPTokenEntry.h>
|
||||
#include <xrpl/ledger/helpers/MPTokenIssuanceEntry.h>
|
||||
#include <xrpl/ledger/helpers/NFTokenOfferEntry.h>
|
||||
#include <xrpl/ledger/helpers/NFTokenPageEntry.h>
|
||||
#include <xrpl/ledger/helpers/NegativeUNLEntry.h>
|
||||
#include <xrpl/ledger/helpers/OfferEntry.h>
|
||||
#include <xrpl/ledger/helpers/OracleEntry.h>
|
||||
#include <xrpl/ledger/helpers/PayChannelEntry.h>
|
||||
#include <xrpl/ledger/helpers/PermissionedDomainEntry.h>
|
||||
#include <xrpl/ledger/helpers/RippleStateEntry.h>
|
||||
#include <xrpl/ledger/helpers/SLEBase.h>
|
||||
#include <xrpl/ledger/helpers/SignerListEntry.h>
|
||||
#include <xrpl/ledger/helpers/SponsorshipEntry.h>
|
||||
#include <xrpl/ledger/helpers/TicketEntry.h>
|
||||
#include <xrpl/ledger/helpers/VaultEntry.h>
|
||||
#include <xrpl/ledger/helpers/XChainOwnedClaimIDEntry.h>
|
||||
#include <xrpl/ledger/helpers/XChainOwnedCreateAccountClaimIDEntry.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/LedgerFormats.h>
|
||||
#include <xrpl/protocol/SeqProxy.h>
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
@@ -122,10 +151,10 @@ class SLEWrapper_test : public beast::unit_test::Suite
|
||||
|
||||
// Entry that does not exist yet: newSLE() -> insert().
|
||||
{
|
||||
WTicketEntry ticket(keylet::ticket(alice.id(), 1), av);
|
||||
WTicketEntry ticket(keylet::ticket(alice.id(), SeqProxy::rawTicket(1)), av);
|
||||
BEAST_EXPECT(!ticket.exists());
|
||||
BEAST_EXPECT(!ticket.canModify());
|
||||
BEAST_EXPECT(ticket.key() == keylet::ticket(alice.id(), 1).key);
|
||||
BEAST_EXPECT(ticket.key() == keylet::ticket(alice.id(), SeqProxy::rawTicket(1)).key);
|
||||
BEAST_EXPECT(ticket.type() == ltTICKET);
|
||||
BEAST_EXPECT(ticket.keylet().type == ltTICKET);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user