COOPENOMICS  v1
Кооперативная Экономика
Файл eosio.powerup_tests.cpp
#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() [1/3]

BOOST_AUTO_TEST_CASE ( debts_tests  )

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( emission_tests  )

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( rent_tests  )

◆ BOOST_FIXTURE_TEST_CASE()

BOOST_FIXTURE_TEST_CASE ( config_tests  ,
powerup_tester   
)

◆ FC_REFLECT() [1/3]

FC_REFLECT ( powerup_config  ,
(powerup_days)(min_powerup_fee)   
)

◆ FC_REFLECT() [2/3]

FC_REFLECT ( powerup_state  ,
(net)(cpu)(ram)(powerup_days)(min_powerup_fee)   
)

◆ FC_REFLECT() [3/3]

FC_REFLECT ( powerup_state_resource  ,
(weight)(utilization)   
)

◆ near()

template<typename A , typename B , typename D >
bool near ( a,
b,
delta 
)

Переменные

◆ powerup_frac

constexpr int64_t powerup_frac = 1'000'000'000'000'000ll
inlineconstexpr

◆ stake_weight

constexpr int64_t stake_weight = 100'000'000'0000ll
inlineconstexpr