XLS-39 Clawback: (#4553)

Introduces:
* AccountRoot flag: lsfAllowClawback
* New Clawback transaction
* More info on clawback spec: https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-39d-clawback
This commit is contained in:
Shawn Xie
2023-06-26 17:07:20 -04:00
committed by GitHub
parent 9eb30d4316
commit b7e902dccc
19 changed files with 1343 additions and 2 deletions

View File

@@ -59,6 +59,17 @@ trust(
return jv;
}
Json::Value
claw(Account const& account, STAmount const& amount)
{
Json::Value jv;
jv[jss::Account] = account.human();
jv[jss::Amount] = amount.getJson(JsonOptions::none);
jv[jss::TransactionType] = jss::Clawback;
return jv;
}
} // namespace jtx
} // namespace test
} // namespace ripple