Add AMM types to AccountTx filter (#954)

This commit is contained in:
Sergey Kuznetsov
2023-10-30 16:36:28 +00:00
committed by GitHub
parent 1ec5d3e5a3
commit 200d97f0de
3 changed files with 52 additions and 6 deletions

View File

@@ -351,7 +351,7 @@ TEST_P(AccountTxParameterTest, CheckParams)
{
mockBackendPtr->updateRange(MINSEQ); // min
mockBackendPtr->updateRange(MAXSEQ); // max
auto const testBundle = GetParam();
auto const& testBundle = GetParam();
auto* rawBackendPtr = dynamic_cast<MockBackend*>(mockBackendPtr.get());
ASSERT_NE(rawBackendPtr, nullptr);
auto const req = json::parse(testBundle.testJson);
@@ -1502,6 +1502,46 @@ generateTransactionTypeTestValues()
"tx_type": "AccountDelete"
})",
"[]"},
AccountTxTransactionBundle{
"AMMBid",
R"({
"account": "rLNaPoKeeBjZe2qs6x52yVPZpZ8td4dc6w",
"ledger_index": "validated",
"tx_type": "AMMBid"
})",
"[]"},
AccountTxTransactionBundle{
"AMMCreate",
R"({
"account": "rLNaPoKeeBjZe2qs6x52yVPZpZ8td4dc6w",
"ledger_index": "validated",
"tx_type": "AMMCreate"
})",
"[]"},
AccountTxTransactionBundle{
"AMMDelete",
R"({
"account": "rLNaPoKeeBjZe2qs6x52yVPZpZ8td4dc6w",
"ledger_index": "validated",
"tx_type": "AMMDelete"
})",
"[]"},
AccountTxTransactionBundle{
"AMMDeposit",
R"({
"account": "rLNaPoKeeBjZe2qs6x52yVPZpZ8td4dc6w",
"ledger_index": "validated",
"tx_type": "AMMDeposit"
})",
"[]"},
AccountTxTransactionBundle{
"AMMVote",
R"({
"account": "rLNaPoKeeBjZe2qs6x52yVPZpZ8td4dc6w",
"ledger_index": "validated",
"tx_type": "AMMVote"
})",
"[]"},
AccountTxTransactionBundle{
"CheckCancel",
R"({