COOPENOMICS  v1
Кооперативная Экономика
Пространство имен Registrator

Классы

struct  candidate
 Структура кандидата на вступление. Подробнее...
 
struct  candidate_legacy
 Структура кандидата на вступление (устаревшая версия). Подробнее...
 

Определения типов

typedef eosio::multi_index<"candidates"_n, candidate_legacy, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun< candidate_legacy, checksum256, &candidate_legacy::by_hash > > > candidates_legacy_index
 
typedef eosio::multi_index<"candidates2"_n, candidate, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun< candidate, checksum256, &candidate::by_hash > > > candidates_index
 

Функции

std::optional< candidateget_candidate_by_hash (eosio::name coopname, const checksum256 &hash)
 Получает кандидата по хэшу регистрации. Подробнее...
 
uint64_t get_active_participants_count (eosio::name coopname)
 Получает количество активных пайщиков кооператива. Подробнее...
 

Типы

◆ candidates_index

typedef eosio::multi_index<"candidates2"_n, candidate, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun<candidate, checksum256, &candidate::by_hash> > > Registrator::candidates_index

◆ candidates_legacy_index

typedef eosio::multi_index<"candidates"_n, candidate_legacy, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun<candidate_legacy, checksum256, &candidate_legacy::by_hash> > > Registrator::candidates_legacy_index

Функции

◆ get_active_participants_count()

uint64_t Registrator::get_active_participants_count ( eosio::name  coopname)
inline

Получает количество активных пайщиков кооператива.

Аргументы
coopnameИмя кооператива
Возвращает
uint64_t Количество активных пайщиков
Исключения
eosio::check_failureесли счетчик пайщиков не найден

◆ get_candidate_by_hash()

std::optional< candidate > Registrator::get_candidate_by_hash ( eosio::name  coopname,
const checksum256 &  hash 
)
inline

Получает кандидата по хэшу регистрации.

Аргументы
coopnameИмя кооператива
hashХэш регистрации
Возвращает
Опциональное значение кандидата или nullopt если не найден