COOPENOMICS  v1
Кооперативная Экономика
table_registrator_candidates_legacy.hpp
См. документацию.
1#pragma once
2
3
4#include "../core/ram_payer.hpp"
5#include <eosio/asset.hpp>
6#include <eosio/crypto.hpp>
7#include <eosio/eosio.hpp>
8
9#include "../consts.hpp"
10#include "document_core.hpp"
11
12namespace Registrator {
13
14using namespace eosio;
15
16struct [[eosio::table, eosio::contract(REGISTRATOR)]] candidate_legacy {
19 name braname;
20 name status;
21 time_point_sec created_at;
23 checksum256 registration_hash;
24 asset initial;
25 asset minimum;
26
27 uint64_t primary_key() const { return username.value; }
28 checksum256 by_hash() const { return registration_hash; }
29};
30
31typedef multi_index<
32 "candidates"_n, candidate_legacy,
33 indexed_by<"byhash"_n, const_mem_fun<candidate_legacy, checksum256, &candidate_legacy::by_hash>>>
35
36} // namespace Registrator
37
38// Плательщик за оперативную память строк таблицы — правило в lib/core/ram_payer.hpp.
contract
Definition: eosio.msig_tests.cpp:977
Вспомогательные функции процедуры выхода пайщика из кооператива.
Definition: table_registrator_candidates.hpp:15
multi_index< "candidates"_n, candidate_legacy, indexed_by<"byhash"_n, const_mem_fun< candidate_legacy, checksum256, &candidate_legacy::by_hash > > > candidates_legacy_index
Definition: table_registrator_candidates_legacy.hpp:34
Definition: eosio.msig.hpp:34
Definition: table_registrator_candidates_legacy.hpp:16
checksum256 registration_hash
Definition: table_registrator_candidates_legacy.hpp:23
name status
Definition: table_registrator_candidates_legacy.hpp:20
asset minimum
Definition: table_registrator_candidates_legacy.hpp:25
uint64_t primary_key() const
Definition: table_registrator_candidates_legacy.hpp:27
checksum256 by_hash() const
Definition: table_registrator_candidates_legacy.hpp:28
document statement
Definition: table_registrator_candidates_legacy.hpp:22
name coopname
Definition: table_registrator_candidates_legacy.hpp:18
time_point_sec created_at
Definition: table_registrator_candidates_legacy.hpp:21
asset initial
Definition: table_registrator_candidates_legacy.hpp:24
name username
Definition: table_registrator_candidates_legacy.hpp:17
name braname
Definition: table_registrator_candidates_legacy.hpp:19
Definition: table_registrator_orgs.hpp:17
Definition: document_core.hpp:10
RAM_PAYER_CLASS(Registrator::candidate_legacy, cooperative)