xrpld
Loading...
Searching...
No Matches
DelegateHelpers.h
1#pragma once
2
3#include <xrpl/protocol/Permissions.h>
4#include <xrpl/protocol/STLedgerEntry.h>
5#include <xrpl/protocol/STTx.h>
6#include <xrpl/protocol/TER.h>
7#include <xrpl/protocol/TxFormats.h>
8
9#include <unordered_set>
10
11namespace xrpl {
12
21checkTxPermission(SLE::const_ref delegate, STTx const& tx);
22
31std::unordered_set<GranularPermissionType>
32getGranularPermission(SLE::const_ref delegate, TxType const& type);
33
34} // namespace xrpl
std::shared_ptr< STLedgerEntry const > const & const_ref
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
TxType
Transaction type identifiers.
Definition TxFormats.h:45
std::unordered_set< GranularPermissionType > getGranularPermission(SLE::const_ref delegate, TxType const &type)
Load the granular permissions granted to the delegate account for the specified transaction type.
NotTEC checkTxPermission(SLE::const_ref delegate, STTx const &tx)
Check if the delegate account has permission to execute the transaction.
TERSubset< CanCvtToNotTEC > NotTEC
Definition TER.h:607