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
8namespace xrpl {
9
18checkTxPermission(SLE::const_ref delegate, STTx const& tx);
19
28std::unordered_set<GranularPermissionType>
29getGranularPermission(SLE::const_ref delegate, TxType const& type);
30
31} // 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:41
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:594