rippled
Loading...
Searching...
No Matches
DelegateUtils.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(std::shared_ptr<SLE const> const& delegate, STTx const& tx);
19
29void
31 std::shared_ptr<SLE const> const& delegate,
32 TxType const& type,
34
35} // namespace xrpl
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:37
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.
NotTEC checkTxPermission(std::shared_ptr< SLE const > const &delegate, STTx const &tx)
Check if the delegate account has permission to execute the transaction.
TERSubset< CanCvtToNotTEC > NotTEC
Definition TER.h:580