xrpld
Loading...
Searching...
No Matches
delegate.h
1#pragma once
2
3#include <test/jtx/Account.h>
4#include <test/jtx/Env.h>
5
6#include <utility>
7
9
11set(jtx::Account const& account,
12 jtx::Account const& authorize,
13 std::vector<std::string> const& permissions);
14
16entry(jtx::Env& env, jtx::Account const& account, jtx::Account const& authorize);
17
18struct As
19{
20private:
22
23public:
24 explicit As(jtx::Account account) : delegate_(std::move(account))
25 {
26 }
27
28 void
30 {
31 jtx.jv[sfDelegate.jsonName] = delegate_.human();
32 }
33};
34
35} // namespace xrpl::test::jtx::delegate
Represents a JSON value.
Definition json_value.h:130
Immutable cryptographic account descriptor.
Definition jtx/Account.h:17
A transaction testing environment.
Definition Env.h:143
STL namespace.
json::Value entry(jtx::Env &env, jtx::Account const &account, jtx::Account const &authorize)
Definition delegate.cpp:41
json::Value set(jtx::Account const &account, jtx::Account const &authorize, std::vector< std::string > const &permissions)
Definition delegate.cpp:17
Execution context for applying a JSON transaction.
Definition JTx.h:23
As(jtx::Account account)
Definition delegate.h:24
void operator()(jtx::Env &, jtx::JTx &jtx) const
Definition delegate.h:29