COOPENOMICS  v1
Кооперативная Экономика
table_fund_funds.hpp
См. документацию.
1#pragma once
2
3#include <eosio/eosio.hpp>
4#include <eosio/asset.hpp>
5#include <string>
6
7#include "../consts.hpp"
8#include "../core/ram_payer.hpp"
9
29struct [[eosio::table, eosio::contract(FUND)]] fundrow {
30 uint64_t id;
31 eosio::name coopname;
32 eosio::name kind;
33 std::string name;
34 std::string description;
35 uint64_t percent;
36 eosio::name wallet;
37
38 uint64_t primary_key() const { return id; }
39};
40
41typedef eosio::multi_index<"funds"_n, fundrow> funds_index;
42
43// Плательщик за оперативную память строк таблицы — правило в lib/core/ram_payer.hpp.
contract
Definition: eosio.msig_tests.cpp:977
Definition: eosio.msig.hpp:34
Реестр фондов кооператива — настройки без остатков (задача 99D-25, решение владельца 03....
Definition: table_fund_funds.hpp:29
uint64_t primary_key() const
Definition: table_fund_funds.hpp:38
uint64_t percent
Процент отчислений ×10 000; у фондов списания 0.
Definition: table_fund_funds.hpp:35
eosio::name wallet
Кошелёк ledger2 фонда (счёт 86)
Definition: table_fund_funds.hpp:36
eosio::name coopname
Кооператив
Definition: table_fund_funds.hpp:31
std::string name
Название фонда по Положению о фондах
Definition: table_fund_funds.hpp:33
std::string description
Описание — правит председатель совета
Definition: table_fund_funds.hpp:34
eosio::name kind
accum — фонд накопления, expend — фонд списания
Definition: table_fund_funds.hpp:32
uint64_t id
1 неделимый, 2 резервный, 3 развития, 4 хозяйственный, 5 социально-экономического взаимодействия и со...
Definition: table_fund_funds.hpp:30
eosio::multi_index<"funds"_n, fundrow > funds_index
Definition: table_fund_funds.hpp:41
RAM_PAYER_CLASS(fundrow, contract)