2018-12-28 12:10:28 +01:00
|
|
|
/*
|
|
|
|
|
* This file is part of the Flowee project
|
|
|
|
|
* Copyright (C) 2011-2015 The Bitcoin Core developers
|
2024-09-01 18:49:11 +02:00
|
|
|
* Copyright (C) 2016,2024 Tom Zander <tom@flowee.org>
|
2018-12-28 12:10:28 +01:00
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
#ifndef TX_TESTS_H
|
|
|
|
|
#define TX_TESTS_H
|
|
|
|
|
|
|
|
|
|
#include <common/TestFloweeEnvPlusNet.h>
|
|
|
|
|
|
|
|
|
|
class TransactionTests : public TestFloweeEnvPlusNet
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
static unsigned int parseScriptFlags(const std::string &strFlags);
|
|
|
|
|
std::string FormatScriptFlags(unsigned int flags) const;
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void tx_valid();
|
|
|
|
|
void tx_invalid();
|
|
|
|
|
void basic_transaction_tests();
|
|
|
|
|
void test_IsStandard();
|
|
|
|
|
void transactionIter();
|
|
|
|
|
void transactionIter2();
|
2024-09-01 18:49:11 +02:00
|
|
|
void txIterWithTokens();
|
2026-05-08 16:48:15 +02:00
|
|
|
void may2023_contextual_transaction_rules();
|
2026-05-14 08:10:38 +02:00
|
|
|
void may2023_cashtoken_output_structure_rules();
|
2026-05-14 08:52:55 +02:00
|
|
|
void may2023_cashtoken_output_structure_edge_cases();
|
2026-05-14 08:11:19 +02:00
|
|
|
void may2023_cashtoken_input_structure_rules();
|
2026-05-14 08:12:13 +02:00
|
|
|
void may2023_cashtoken_amount_accounting_rules();
|
2026-05-14 08:52:55 +02:00
|
|
|
void may2023_cashtoken_amount_accounting_edge_cases();
|
2026-05-14 08:12:58 +02:00
|
|
|
void may2023_cashtoken_nft_accounting_rules();
|
2026-05-14 08:52:55 +02:00
|
|
|
void may2023_cashtoken_nft_accounting_edge_cases();
|
2018-12-28 12:10:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|