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