xrpld
Loading...
Searching...
No Matches
include
xrpl
ledger
helpers
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
11
namespace
xrpl
{
12
20
NotTEC
21
checkTxPermission
(
SLE::const_ref
delegate,
STTx
const
& tx);
22
31
std::unordered_set<GranularPermissionType>
32
getGranularPermission
(
SLE::const_ref
delegate,
TxType
const
& type);
33
34
}
// namespace xrpl
xrpl::STLedgerEntry::const_ref
std::shared_ptr< STLedgerEntry const > const & const_ref
Definition
STLedgerEntry.h:34
xrpl::STTx
Definition
STTx.h:41
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::TxType
TxType
Transaction type identifiers.
Definition
TxFormats.h:45
xrpl::getGranularPermission
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.
Definition
DelegateUtils.cpp:33
xrpl::checkTxPermission
NotTEC checkTxPermission(SLE::const_ref delegate, STTx const &tx)
Check if the delegate account has permission to execute the transaction.
Definition
DelegateUtils.cpp:14
xrpl::NotTEC
TERSubset< CanCvtToNotTEC > NotTEC
Definition
TER.h:607
unordered_set
Generated by
1.16.1