rippled
Classes | Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
ripple::Taker_test Class Reference
Inheritance diagram for ripple::Taker_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::Taker_test:
Collaboration graph
[legend]

Classes

struct  cross_attempt_offer
 
class  TestTaker
 

Public Member Functions

void test_xrp_to_iou ()
 
void test_iou_to_xrp ()
 
void test_iou_to_iou ()
 
void run () override
 

Private Member Functions

Issue const & usd () const
 
Issue const & eur () const
 
Issue const & xrp () const
 
STAmount parse_amount (std::string const &amount, Issue const &issue)
 
Amounts parse_amounts (std::string const &amount_in, Issue const &issue_in, std::string const &amount_out, Issue const &issue_out)
 
std::string format_amount (STAmount const &amount)
 
void attempt (bool sell, std::string name, Quality taker_quality, cross_attempt_offer const offer, std::string const funds, Quality cross_quality, cross_attempt_offer const cross, std::string const cross_funds, cross_attempt_offer const flow, Issue const &issue_in, Issue const &issue_out, Rate rate_in=parityRate, Rate rate_out=parityRate)
 
Quality get_quality (std::string in, std::string out)
 

Static Private Attributes

static const bool Buy = false
 
static const bool Sell = true
 

Detailed Description

Definition at line 27 of file Taker_test.cpp.

Member Function Documentation

◆ usd()

Issue const& ripple::Taker_test::usd ( ) const
private

Definition at line 127 of file Taker_test.cpp.

◆ eur()

Issue const& ripple::Taker_test::eur ( ) const
private

Definition at line 135 of file Taker_test.cpp.

◆ xrp()

Issue const& ripple::Taker_test::xrp ( ) const
private

Definition at line 143 of file Taker_test.cpp.

◆ parse_amount()

STAmount ripple::Taker_test::parse_amount ( std::string const &  amount,
Issue const &  issue 
)
private

Definition at line 150 of file Taker_test.cpp.

◆ parse_amounts()

Amounts ripple::Taker_test::parse_amounts ( std::string const &  amount_in,
Issue const &  issue_in,
std::string const &  amount_out,
Issue const &  issue_out 
)
private

Definition at line 156 of file Taker_test.cpp.

◆ format_amount()

std::string ripple::Taker_test::format_amount ( STAmount const &  amount)
private

Definition at line 181 of file Taker_test.cpp.

◆ attempt()

void ripple::Taker_test::attempt ( bool  sell,
std::string  name,
Quality  taker_quality,
cross_attempt_offer const  offer,
std::string const  funds,
Quality  cross_quality,
cross_attempt_offer const  cross,
std::string const  cross_funds,
cross_attempt_offer const  flow,
Issue const &  issue_in,
Issue const &  issue_out,
Rate  rate_in = parityRate,
Rate  rate_out = parityRate 
)
private

Definition at line 190 of file Taker_test.cpp.

◆ get_quality()

Quality ripple::Taker_test::get_quality ( std::string  in,
std::string  out 
)
private

Definition at line 250 of file Taker_test.cpp.

◆ test_xrp_to_iou()

void ripple::Taker_test::test_xrp_to_iou ( )

Definition at line 270 of file Taker_test.cpp.

◆ test_iou_to_xrp()

void ripple::Taker_test::test_iou_to_xrp ( )

Definition at line 794 of file Taker_test.cpp.

◆ test_iou_to_iou()

void ripple::Taker_test::test_iou_to_iou ( )

Definition at line 1241 of file Taker_test.cpp.

◆ run()

void ripple::Taker_test::run ( )
override

Definition at line 1385 of file Taker_test.cpp.

Member Data Documentation

◆ Buy

const bool ripple::Taker_test::Buy = false
staticprivate

Definition at line 29 of file Taker_test.cpp.

◆ Sell

const bool ripple::Taker_test::Sell = true
staticprivate

Definition at line 30 of file Taker_test.cpp.