rippled
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ripple::test::Escrow_test Struct Reference
Inheritance diagram for ripple::test::Escrow_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::test::Escrow_test:
Collaboration graph
[legend]

Classes

struct  cancel_time
 Set the "CancelAfter" time tag on a JTx. More...
 
struct  condition
 
struct  finish_time
 Set the "FinishAfter" time tag on a JTx. More...
 
struct  fulfillment
 

Public Member Functions

void testEnablement ()
 
void testTiming ()
 
void testTags ()
 
void testDisallowXRP ()
 
void test1571 ()
 
void testFails ()
 
void testLockup ()
 
void testEscrowConditions ()
 
void testMetaAndOwnership ()
 
void testConsequences ()
 
void testEscrowWithTickets ()
 
void run () override
 

Static Public Member Functions

static Json::Value escrow (jtx::Account const &account, jtx::Account const &to, STAmount const &amount)
 
static Json::Value finish (jtx::Account const &account, jtx::Account const &from, std::uint32_t seq)
 
static Json::Value cancel (jtx::Account const &account, jtx::Account const &from, std::uint32_t seq)
 

Public Attributes

const std::array< std::uint8_t, 4 > fb1 = {{0xA0, 0x02, 0x80, 0x00}}
 
const std::array< std::uint8_t, 39 > cb1
 
const std::array< std::uint8_t, 7 > fb2
 
const std::array< std::uint8_t, 39 > cb2
 
const std::array< std::uint8_t, 8 > fb3
 
const std::array< std::uint8_t, 39 > cb3
 

Detailed Description

Definition at line 33 of file Escrow_test.cpp.

Member Function Documentation

◆ escrow()

static Json::Value ripple::test::Escrow_test::escrow ( jtx::Account const &  account,
jtx::Account const &  to,
STAmount const &  amount 
)
static

Definition at line 147 of file Escrow_test.cpp.

◆ finish()

static Json::Value ripple::test::Escrow_test::finish ( jtx::Account const &  account,
jtx::Account const &  from,
std::uint32_t  seq 
)
static

Definition at line 163 of file Escrow_test.cpp.

◆ cancel()

static Json::Value ripple::test::Escrow_test::cancel ( jtx::Account const &  account,
jtx::Account const &  from,
std::uint32_t  seq 
)
static

Definition at line 178 of file Escrow_test.cpp.

◆ testEnablement()

void ripple::test::Escrow_test::testEnablement ( )

Definition at line 193 of file Escrow_test.cpp.

◆ testTiming()

void ripple::test::Escrow_test::testTiming ( )

Definition at line 229 of file Escrow_test.cpp.

◆ testTags()

void ripple::test::Escrow_test::testTags ( )

Definition at line 366 of file Escrow_test.cpp.

◆ testDisallowXRP()

void ripple::test::Escrow_test::testDisallowXRP ( )

Definition at line 402 of file Escrow_test.cpp.

◆ test1571()

void ripple::test::Escrow_test::test1571 ( )

Definition at line 431 of file Escrow_test.cpp.

◆ testFails()

void ripple::test::Escrow_test::testFails ( )

Definition at line 500 of file Escrow_test.cpp.

◆ testLockup()

void ripple::test::Escrow_test::testLockup ( )

Definition at line 632 of file Escrow_test.cpp.

◆ testEscrowConditions()

void ripple::test::Escrow_test::testEscrowConditions ( )

Definition at line 875 of file Escrow_test.cpp.

◆ testMetaAndOwnership()

void ripple::test::Escrow_test::testMetaAndOwnership ( )

Definition at line 1263 of file Escrow_test.cpp.

◆ testConsequences()

void ripple::test::Escrow_test::testConsequences ( )

Definition at line 1440 of file Escrow_test.cpp.

◆ testEscrowWithTickets()

void ripple::test::Escrow_test::testEscrowWithTickets ( )

Definition at line 1500 of file Escrow_test.cpp.

◆ run()

void ripple::test::Escrow_test::run ( )
override

Definition at line 1639 of file Escrow_test.cpp.

Member Data Documentation

◆ fb1

const std::array<std::uint8_t, 4> ripple::test::Escrow_test::fb1 = {{0xA0, 0x02, 0x80, 0x00}}

Definition at line 36 of file Escrow_test.cpp.

◆ cb1

const std::array<std::uint8_t, 39> ripple::test::Escrow_test::cb1
Initial value:
= {
{0xA0, 0x25, 0x80, 0x20, 0xE3, 0xB0, 0xC4, 0x42, 0x98, 0xFC,
0x1C, 0x14, 0x9A, 0xFB, 0xF4, 0xC8, 0x99, 0x6F, 0xB9, 0x24,
0x27, 0xAE, 0x41, 0xE4, 0x64, 0x9B, 0x93, 0x4C, 0xA4, 0x95,
0x99, 0x1B, 0x78, 0x52, 0xB8, 0x55, 0x81, 0x01, 0x00}}

Definition at line 38 of file Escrow_test.cpp.

◆ fb2

const std::array<std::uint8_t, 7> ripple::test::Escrow_test::fb2
Initial value:
= {
{0xA0, 0x05, 0x80, 0x03, 0x61, 0x61, 0x61}}

Definition at line 45 of file Escrow_test.cpp.

◆ cb2

const std::array<std::uint8_t, 39> ripple::test::Escrow_test::cb2
Initial value:
= {
{0xA0, 0x25, 0x80, 0x20, 0x98, 0x34, 0x87, 0x6D, 0xCF, 0xB0,
0x5C, 0xB1, 0x67, 0xA5, 0xC2, 0x49, 0x53, 0xEB, 0xA5, 0x8C,
0x4A, 0xC8, 0x9B, 0x1A, 0xDF, 0x57, 0xF2, 0x8F, 0x2F, 0x9D,
0x09, 0xAF, 0x10, 0x7E, 0xE8, 0xF0, 0x81, 0x01, 0x03}}

Definition at line 48 of file Escrow_test.cpp.

◆ fb3

const std::array<std::uint8_t, 8> ripple::test::Escrow_test::fb3
Initial value:
= {
{0xA0, 0x06, 0x80, 0x04, 0x6E, 0x69, 0x6B, 0x62}}

Definition at line 55 of file Escrow_test.cpp.

◆ cb3

const std::array<std::uint8_t, 39> ripple::test::Escrow_test::cb3
Initial value:
= {
{0xA0, 0x25, 0x80, 0x20, 0x6E, 0x4C, 0x71, 0x45, 0x30, 0xC0,
0xA4, 0x26, 0x8B, 0x3F, 0xA6, 0x3B, 0x1B, 0x60, 0x6F, 0x2D,
0x26, 0x4A, 0x2D, 0x85, 0x7B, 0xE8, 0xA0, 0x9C, 0x1D, 0xFD,
0x57, 0x0D, 0x15, 0x85, 0x8B, 0xD4, 0x81, 0x01, 0x04}}

Definition at line 58 of file Escrow_test.cpp.