xrpld
Loading...
Searching...
No Matches
FeeSettingsEntry.h
1#pragma once
2
3#include <xrpl/beast/utility/Journal.h>
4#include <xrpl/ledger/ApplyView.h>
5#include <xrpl/ledger/ReadView.h>
6#include <xrpl/ledger/entries/SLEBase.h>
7#include <xrpl/protocol/Indexes.h>
8#include <xrpl/protocol/LedgerFormats.h>
9
10namespace xrpl {
11
12template <typename ViewT>
13class FeeSettingsEntry : public SLEBase<ViewT, ltFEE_SETTINGS>
14{
15public:
17
18 // Inherit base constructors: adopt an existing SLE, or resolve one from a
19 // Keylet against the view.
20 using Base::Base;
21
25 : Base(keylet::feeSettings(), view, j)
26 {
27 }
28};
29
32
33} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:44
static Sink & getNullSink()
Returns a Sink which does nothing.
FeeSettingsEntry(Base::ViewRefType view, beast::Journal j=beast::Journal{beast::Journal::getNullSink()})
SLEBase< ViewT, ltFEE_SETTINGS > Base
std::conditional_t< kIsWritable, ApplyView &, ReadView const & > ViewRefType
Definition SLEBase.h:106
SLEBase(SLEBase const &)=default
Keylet computation functions.
Definition Indexes.h:40
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
FeeSettingsEntry< ApplyView > FeeSettingsEntryW
FeeSettingsEntry< ReadView > FeeSettingsEntryR