COOPENOMICS  v1
Кооперативная Экономика
Файл accounts.hpp
#include <eosio/binary_extension.hpp>

См. исходные тексты.

Классы

struct  verification
 Структура, представляющая верификацию. Подробнее...
 
struct  account
 Структура, представляющая учетные записи аккаунтов. Подробнее...
 
struct  org_data
 Структура данных нового юридического лица Подробнее...
 
struct  cooperative
 Структура, представляющая организации. Подробнее...
 
struct  cooperative2
 Структура, представляющая организации с новым документом document2. Подробнее...
 

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

typedef eosio::multi_index< "accounts"_n, account, eosio::indexed_by< "byreferer"_n, eosio::const_mem_fun< account, uint64_t, &account::by_referer > >, eosio::indexed_by<"bytype"_n, eosio::const_mem_fun< account, uint64_t, &account::by_type > >, eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun< account, uint64_t, &account::by_status > >, eosio::indexed_by<"byregistr"_n, eosio::const_mem_fun< account, uint64_t, &account::by_registr > >, eosio::indexed_by<"byregistred"_n, eosio::const_mem_fun< account, uint64_t, &account::by_registered_at > >, eosio::indexed_by<"byverif"_n, eosio::const_mem_fun< account, uint64_t,&account::is_verified_index > > > accounts_index
 
typedef eosio::multi_index<"orgs"_n, cooperative, eosio::indexed_by<"iscoop"_n, eosio::const_mem_fun< cooperative, uint64_t, &cooperative::is_coop_index > >, eosio::indexed_by<"byparent"_n, eosio::const_mem_fun< cooperative, uint64_t, &cooperative::by_parent > >, eosio::indexed_by<"bycoopchilds"_n, eosio::const_mem_fun< cooperative, uint128_t, &cooperative::by_coop_childs > >, eosio::indexed_by<"bycooptype"_n, eosio::const_mem_fun< cooperative, uint64_t, &cooperative::bycooptype > > > cooperatives_index
 
typedef eosio::multi_index<"coops"_n, cooperative2, eosio::indexed_by<"iscoop"_n, eosio::const_mem_fun< cooperative2, uint64_t, &cooperative2::is_coop_index > >, eosio::indexed_by<"byparent"_n, eosio::const_mem_fun< cooperative2, uint64_t, &cooperative2::by_parent > >, eosio::indexed_by<"bycoopchilds"_n, eosio::const_mem_fun< cooperative2, uint128_t, &cooperative2::by_coop_childs > >, eosio::indexed_by<"bycooptype"_n, eosio::const_mem_fun< cooperative2, uint64_t, &cooperative2::bycooptype > > > cooperatives2_index
 

Функции

bool check_auth_and_get_payer (const std::vector< eosio::name > &payers)
 
eosio::name check_auth_and_get_payer_or_fail (const std::vector< eosio::name > &payers)
 
cooperative2 get_cooperative_or_fail (eosio::name coopname)
 
account get_account_or_fail (eosio::name username)
 

Типы

◆ accounts_index

typedef eosio::multi_index< "accounts"_n, account, eosio::indexed_by< "byreferer"_n, eosio::const_mem_fun<account, uint64_t, &account::by_referer> >, eosio::indexed_by<"bytype"_n, eosio::const_mem_fun<account, uint64_t, &account::by_type> >, eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun<account, uint64_t, &account::by_status> >, eosio::indexed_by<"byregistr"_n, eosio::const_mem_fun<account, uint64_t, &account::by_registr> >, eosio::indexed_by<"byregistred"_n, eosio::const_mem_fun<account, uint64_t, &account::by_registered_at> >, eosio::indexed_by<"byverif"_n, eosio::const_mem_fun<account, uint64_t,&account::is_verified_index> > > accounts_index

◆ cooperatives2_index

typedef eosio::multi_index<"coops"_n, cooperative2,eosio::indexed_by<"iscoop"_n, eosio::const_mem_fun<cooperative2, uint64_t, &cooperative2::is_coop_index> >,eosio::indexed_by<"byparent"_n, eosio::const_mem_fun<cooperative2, uint64_t, &cooperative2::by_parent> >,eosio::indexed_by<"bycoopchilds"_n, eosio::const_mem_fun<cooperative2, uint128_t, &cooperative2::by_coop_childs> >,eosio::indexed_by<"bycooptype"_n, eosio::const_mem_fun<cooperative2, uint64_t, &cooperative2::bycooptype> >> cooperatives2_index

◆ cooperatives_index

typedef eosio::multi_index<"orgs"_n, cooperative,eosio::indexed_by<"iscoop"_n, eosio::const_mem_fun<cooperative, uint64_t, &cooperative::is_coop_index> >,eosio::indexed_by<"byparent"_n, eosio::const_mem_fun<cooperative, uint64_t, &cooperative::by_parent> >,eosio::indexed_by<"bycoopchilds"_n, eosio::const_mem_fun<cooperative, uint128_t, &cooperative::by_coop_childs> >,eosio::indexed_by<"bycooptype"_n, eosio::const_mem_fun<cooperative, uint64_t, &cooperative::bycooptype> >> cooperatives_index

Функции

◆ check_auth_and_get_payer()

bool check_auth_and_get_payer ( const std::vector< eosio::name > &  payers)

◆ check_auth_and_get_payer_or_fail()

eosio::name check_auth_and_get_payer_or_fail ( const std::vector< eosio::name > &  payers)

◆ get_account_or_fail()

account get_account_or_fail ( eosio::name  username)

◆ get_cooperative_or_fail()

cooperative2 get_cooperative_or_fail ( eosio::name  coopname)