COOPENOMICS  v1
Кооперативная Экономика
table_registrator_platforms.hpp
См. документацию.
1#pragma once
2
3#include "../core/ram_payer.hpp"
4
5#include <eosio/crypto.hpp>
6#include <eosio/eosio.hpp>
7#include <eosio/time.hpp>
8
9#include "../consts.hpp"
10
11namespace Registrator {
12
13using namespace eosio;
14
31struct [[eosio::table, eosio::contract(REGISTRATOR)]] platform {
32 name username;
33 name coopname;
34 public_key public_key;
35 time_point_sec issued_at;
36
37 uint64_t primary_key() const { return username.value; }
38};
39
40typedef eosio::multi_index<"platforms"_n, platform> platforms_index;
41
42} // namespace Registrator
43
44// Реестр полномочий — служебное хранение: платит контракт.
contract
Definition: eosio.msig_tests.cpp:977
Вспомогательные функции процедуры выхода пайщика из кооператива.
Definition: table_registrator_candidates.hpp:15
eosio::multi_index<"platforms"_n, platform > platforms_index
Definition: table_registrator_platforms.hpp:40
Definition: eosio.msig.hpp:34
Выпущенное разрешение platform аккаунта — ключ, которым узел кооператива подписывает транзакции от им...
Definition: table_registrator_platforms.hpp:31
name coopname
кооператив, через который выпущено (сам аккаунт — при самостоятельном выпуске)
Definition: table_registrator_platforms.hpp:33
name username
аккаунт, которому выпущено разрешение
Definition: table_registrator_platforms.hpp:32
time_point_sec issued_at
Definition: table_registrator_platforms.hpp:35
public_key public_key
ключ разрешения platform
Definition: table_registrator_platforms.hpp:34
uint64_t primary_key() const
Definition: table_registrator_platforms.hpp:37
RAM_PAYER_CLASS(Registrator::platform, contract)