rippled
Loading...
Searching...
No Matches
permissioned_domains.h
1#pragma once
2
3#include <test/jtx/Account.h>
4#include <test/jtx/Env.h>
5#include <test/jtx/deposit.h>
6
7namespace xrpl {
8namespace test {
9namespace jtx {
10namespace pdomain {
11
12// Helpers for PermissionedDomains testing
15
16// helpers
17// Make json for PermissionedDomainSet transaction
19setTx(AccountID const& account, Credentials const& credentials, std::optional<uint256> domain = std::nullopt);
20
21// Make json for PermissionedDomainDelete transaction
23deleteTx(AccountID const& account, uint256 const& domain);
24
25// Get PermissionedDomain objects from account_objects rpc call
27getObjects(Account const& account, Env& env, bool withType = true);
28
29// Check if ledger object is there
30bool
31objectExists(uint256 const& objID, Env& env);
32
33// Extract credentials from account_object object
36
37// Sort credentials the same way as PermissionedDomainSet
39sortCredentials(Credentials const& input);
40
41// Get newly created domain from transaction metadata.
44
45} // namespace pdomain
46} // namespace jtx
47} // namespace test
48} // namespace xrpl
Represents a JSON value.
Definition json_value.h:130
Immutable cryptographic account descriptor.
Definition Account.h:19
A transaction testing environment.
Definition Env.h:119
Set the domain on a JTx.
Definition domain.h:11
T is_same_v
Credentials credentialsFromJson(Json::Value const &object, std::unordered_map< std::string, Account > const &human2Acc)
Json::Value setTx(AccountID const &account, Credentials const &credentials, std::optional< uint256 > domain)
Json::Value deleteTx(AccountID const &account, uint256 const &domain)
uint256 getNewDomain(std::shared_ptr< STObject const > const &meta)
Credentials sortCredentials(Credentials const &input)
std::map< uint256, Json::Value > getObjects(Account const &account, Env &env, bool withType)
bool objectExists(uint256 const &objID, Env &env)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5