COOPENOMICS  v1
Кооперативная Экономика
table_ano_repschemas.hpp
См. документацию.
1#pragma once
2
3
4#include "../core/ram_payer.hpp"
5#include <eosio/eosio.hpp>
6#include <eosio/time.hpp>
7#include <string>
8
9namespace Ano {
10
11using namespace eosio;
12
40struct [[eosio::table, eosio::contract(ANO)]] repschema {
41 uint64_t version;
42 std::string document;
43 time_point_sec published_at;
44
45 uint64_t primary_key() const { return version; }
46};
47
52typedef eosio::multi_index<"repschemas"_n, repschema> repschemas_index;
53
54} // namespace Ano
55
56// Плательщик за оперативную память строк таблицы — правило в lib/core/ram_payer.hpp.
contract
Definition: eosio.msig_tests.cpp:977
Definition: ano.hpp:67
eosio::multi_index<"repschemas"_n, repschema > repschemas_index
Definition: table_ano_repschemas.hpp:52
Definition: eosio.msig.hpp:34
Версия единой схемы весов репутации сети.
Definition: table_ano_repschemas.hpp:40
uint64_t primary_key() const
Definition: table_ano_repschemas.hpp:45
uint64_t version
номер версии — первичный ключ; растёт без пропусков
Definition: table_ano_repschemas.hpp:41
std::string document
полный JSON схемы весов, включая заголовки и описания типов
Definition: table_ano_repschemas.hpp:42
time_point_sec published_at
когда версия опубликована и начала действовать
Definition: table_ano_repschemas.hpp:43
RAM_PAYER_CLASS(Ano::repschema, contract)