COOPENOMICS
v1
Кооперативная Экономика
|
#include <boost/test/unit_test.hpp>
#include <cstdlib>
#include <eosio/chain/contract_table_objects.hpp>
#include <eosio/chain/exceptions.hpp>
#include <eosio/chain/global_property_object.hpp>
#include <eosio/chain/resource_limits.hpp>
#include <eosio/chain/wast_to_wasm.hpp>
#include <fc/log/logger.hpp>
#include <iostream>
#include <sstream>
#include "contracts.hpp"
#include "eosio.system_tester.hpp"
Классы | |
struct | powerup_config |
struct | powerup_tester |
struct | powerup_tester::account_info |
Функции | |
FC_REFLECT (powerup_config,(powerup_days)(min_powerup_fee)) struct powerup_state_resource | |
FC_REFLECT (powerup_state_resource,(weight)(utilization)) struct powerup_state | |
FC_REFLECT (powerup_state,(net)(cpu)(ram)(powerup_days)(min_powerup_fee)) using namespace eosio_system | |
template<typename A , typename B , typename D > | |
bool | near (A a, B b, D delta) |
BOOST_FIXTURE_TEST_CASE (config_tests, powerup_tester) | |
BOOST_AUTO_TEST_CASE (rent_tests) | |
BOOST_AUTO_TEST_CASE (debts_tests) | |
BOOST_AUTO_TEST_CASE (emission_tests) | |
Переменные | |
constexpr int64_t | powerup_frac = 1'000'000'000'000'000ll |
constexpr int64_t | stake_weight = 100'000'000'0000ll |
BOOST_AUTO_TEST_CASE | ( | debts_tests | ) |
BOOST_AUTO_TEST_CASE | ( | emission_tests | ) |
BOOST_AUTO_TEST_CASE | ( | rent_tests | ) |
BOOST_FIXTURE_TEST_CASE | ( | config_tests | , |
powerup_tester | |||
) |
FC_REFLECT | ( | powerup_config | , |
(powerup_days)(min_powerup_fee) | |||
) |
FC_REFLECT | ( | powerup_state | , |
(net)(cpu)(ram)(powerup_days)(min_powerup_fee) | |||
) |
FC_REFLECT | ( | powerup_state_resource | , |
(weight)(utilization) | |||
) |
bool near | ( | A | a, |
B | b, | ||
D | delta | ||
) |
|
inlineconstexpr |
|
inlineconstexpr |