|
xrpld
|
#include <vault.h>

Classes | |
| struct | CreateArgs |
| struct | CreateClosedEndedArgs |
| struct | SetArgs |
| struct | DeleteArgs |
| struct | DepositArgs |
| struct | WithdrawArgs |
| struct | ClawbackArgs |
Public Member Functions | |
| std::tuple< json::Value, Keylet > | create (CreateArgs const &args) const |
| Return a VaultCreate transaction and the Vault's expected keylet. | |
| std::tuple< json::Value, Keylet, NetClock::time_point > | createClosedEnded (CreateClosedEndedArgs const &args) const |
| Return a VaultCreate transaction for a closed-ended vault, its expected keylet, and the vault's SubscriptionDate. | |
| void | closePastSubscription (NetClock::time_point subscriptionDate) const |
| Advance env's clock to just past subscriptionDate, moving a closed-ended vault from the Subscription phase into the Investment phase. | |
Static Public Member Functions | |
| static json::Value | set (SetArgs const &args) |
| static json::Value | del (DeleteArgs const &args) |
| static json::Value | deposit (DepositArgs const &args) |
| static json::Value | withdraw (WithdrawArgs const &args) |
| static json::Value | clawback (ClawbackArgs const &args) |
Public Attributes | |
| Env & | env |
|
nodiscard |
Return a VaultCreate transaction and the Vault's expected keylet.
|
nodiscard |
Return a VaultCreate transaction for a closed-ended vault, its expected keylet, and the vault's SubscriptionDate.
Under featureLendingProtocolV1_1, LoanBrokerSet::preclaim only accepts closed-ended vaults, so tests that attach a loan broker need one. SubscriptionDate is set to now() + subscriptionOffset, giving callers a window to deposit while still in the Subscription phase; pass the returned date to closePastSubscription() afterwards to advance into the Investment phase.
| void xrpl::test::jtx::Vault::closePastSubscription | ( | NetClock::time_point | subscriptionDate | ) | const |
|
static |
|
static |
|
static |
|
static |
|
static |