COOPENOMICS  v1
Кооперативная Экономика
table_fund_accfunds.hpp
См. документацию.
1#pragma once
2
3
4#include "../core/ram_payer.hpp"
5#include <eosio/asset.hpp>
6#include <eosio/binary_extension.hpp>
7#include <eosio/eosio.hpp>
8#include <string>
9
10#include "../consts.hpp"
11
30struct [[eosio::table, eosio::contract(FUND)]] accfund {
31 uint64_t id;
32 eosio::name coopname;
33 eosio::name contract;
34
35 std::string name;
36 std::string description;
37
38 uint64_t percent;
39 eosio::asset available;
40 eosio::asset withdrawed;
41
46 eosio::binary_extension<eosio::name> wallet_name;
47
48 uint64_t primary_key() const { return id; }
49};
50
51typedef eosio::multi_index<"accfunds"_n, accfund> accfunds_index;
52
53// Плательщик за оперативную память строк таблицы — правило в lib/core/ram_payer.hpp.
contract
Definition: eosio.msig_tests.cpp:977
Definition: eosio.msig.hpp:34
Фонд накопления кооператива.
Definition: table_fund_accfunds.hpp:30
std::string name
Definition: table_fund_accfunds.hpp:35
eosio::name contract
Definition: table_fund_accfunds.hpp:33
eosio::asset withdrawed
Definition: table_fund_accfunds.hpp:40
uint64_t primary_key() const
Definition: table_fund_accfunds.hpp:48
std::string description
Definition: table_fund_accfunds.hpp:36
eosio::binary_extension< eosio::name > wallet_name
Definition: table_fund_accfunds.hpp:46
eosio::name coopname
Definition: table_fund_accfunds.hpp:32
eosio::asset available
Definition: table_fund_accfunds.hpp:39
uint64_t id
Definition: table_fund_accfunds.hpp:31
uint64_t percent
Definition: table_fund_accfunds.hpp:38
RAM_PAYER_CLASS(accfund, contract)
eosio::multi_index<"accfunds"_n, accfund > accfunds_index
Definition: table_fund_accfunds.hpp:51