xrpld
Loading...
Searching...
No Matches
offer.h
1#pragma once
2
3#include <test/jtx/Account.h>
4
5#include <xrpl/json/json_value.h>
6#include <xrpl/protocol/STAmount.h>
7
8#include <cstdint>
9
10namespace xrpl::test::jtx {
11
15json::Value
16offer(
17 Account const& account,
18 STAmount const& takerPays,
19 STAmount const& takerGets,
20 std::uint32_t flags = 0);
21
25json::Value
26offerCancel(Account const& account, std::uint32_t offerSeq);
27
28} // namespace xrpl::test::jtx
Immutable cryptographic account descriptor.
Definition jtx/Account.h:21
json::Value offerCancel(Account const &account, std::uint32_t offerSeq)
Cancel an offer.
Definition offer.cpp:31
json::Value offer(Account const &account, STAmount const &takerPays, STAmount const &takerGets, std::uint32_t flags)
Create an offer.
Definition offer.cpp:14