2022-10-25 23:59:25 +02:00
|
|
|
// Copyright (c) 2014-2022 Zano Project
|
2022-08-12 19:26:28 +02:00
|
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
#pragma once
|
|
|
|
|
#include "chaingen.h"
|
|
|
|
|
#include "wallet_tests_basic.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct zarcanum_basic_test : public wallet_test
|
|
|
|
|
{
|
|
|
|
|
zarcanum_basic_test();
|
|
|
|
|
bool generate(std::vector<test_event_entry>& events) const;
|
|
|
|
|
bool c1(currency::core& c, size_t ev_index, const std::vector<test_event_entry>& events);
|
|
|
|
|
};
|
2022-10-16 14:44:45 +02:00
|
|
|
|
|
|
|
|
struct zarcanum_test_n_inputs_validation : public wallet_test
|
|
|
|
|
{
|
|
|
|
|
zarcanum_test_n_inputs_validation();
|
|
|
|
|
bool generate(std::vector<test_event_entry>& events) const;
|
|
|
|
|
};
|
|
|
|
|
|
2022-11-01 00:10:51 +01:00
|
|
|
struct zarcanum_gen_time_balance : public wallet_test
|
2022-10-25 23:59:25 +02:00
|
|
|
{
|
2022-11-01 00:10:51 +01:00
|
|
|
zarcanum_gen_time_balance();
|
2022-10-25 23:59:25 +02:00
|
|
|
bool generate(std::vector<test_event_entry>& events) const;
|
2022-10-26 20:50:21 +02:00
|
|
|
};
|
2022-10-27 00:50:45 +02:00
|
|
|
|
2022-11-08 00:11:11 +01:00
|
|
|
struct zarcanum_pos_block_math : public test_chain_unit_enchanced
|
|
|
|
|
{
|
|
|
|
|
zarcanum_pos_block_math();
|
|
|
|
|
bool generate(std::vector<test_event_entry>& events) const;
|
|
|
|
|
};
|
|
|
|
|
|
2022-11-09 23:48:18 +01:00
|
|
|
struct zarcanum_txs_with_big_shuffled_decoy_set_shuffled : public wallet_test
|
2022-11-07 23:57:43 +01:00
|
|
|
{
|
2022-11-09 23:48:18 +01:00
|
|
|
zarcanum_txs_with_big_shuffled_decoy_set_shuffled();
|
2022-11-07 23:57:43 +01:00
|
|
|
bool generate(std::vector<test_event_entry>& events) const;
|
|
|
|
|
};
|
|
|
|
|
|
2022-11-23 22:01:55 +01:00
|
|
|
struct zarcanum_in_alt_chain : public wallet_test
|
|
|
|
|
{
|
|
|
|
|
zarcanum_in_alt_chain();
|
|
|
|
|
bool generate(std::vector<test_event_entry>& events) const;
|
|
|
|
|
bool c1(currency::core& c, size_t ev_index, const std::vector<test_event_entry>& events);
|
|
|
|
|
};
|
2022-11-07 23:57:43 +01:00
|
|
|
|
2023-06-08 04:18:37 +02:00
|
|
|
struct zarcanum_block_with_txs : public wallet_test
|
|
|
|
|
{
|
|
|
|
|
zarcanum_block_with_txs();
|
|
|
|
|
bool generate(std::vector<test_event_entry>& events) const;
|
|
|
|
|
bool c1(currency::core& c, size_t ev_index, const std::vector<test_event_entry>& events);
|
|
|
|
|
|
|
|
|
|
mutable uint64_t m_alice_balance = 0;
|
|
|
|
|
};
|
|
|
|
|
|