rippled
Loading...
Searching...
No Matches
DelegateUtils.h
1#ifndef XRPL_APP_MISC_DELEGATEUTILS_H_INCLUDED
2#define XRPL_APP_MISC_DELEGATEUTILS_H_INCLUDED
3
4#include <xrpl/protocol/Permissions.h>
5#include <xrpl/protocol/STLedgerEntry.h>
6#include <xrpl/protocol/STTx.h>
7#include <xrpl/protocol/TER.h>
8
9namespace ripple {
10
19checkTxPermission(std::shared_ptr<SLE const> const& delegate, STTx const& tx);
20
30void
32 std::shared_ptr<SLE const> const& delegate,
33 TxType const& type,
35
36} // namespace ripple
37
38#endif // XRPL_APP_MISC_DELEGATEUTILS_H_INCLUDED
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
NotTEC checkTxPermission(std::shared_ptr< SLE const > const &delegate, STTx const &tx)
Check if the delegate account has permission to execute the transaction.
TxType
Transaction type identifiers.
Definition TxFormats.h:38
void loadGranularPermission(std::shared_ptr< SLE const > const &delegate, TxType const &type, std::unordered_set< GranularPermissionType > &granularPermissions)
Load the granular permissions granted to the delegate account for the specified transaction type.
TERSubset< CanCvtToNotTEC > NotTEC
Definition TER.h:590