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/eosio.hpp>
7#include <string>
8
9#include "../consts.hpp"
10
16struct [[eosio::table, eosio::contract(FUND)]] accfund {
17 uint64_t id;
18 eosio::name coopname;
19 eosio::name contract;
20
21 std::string name;
22 std::string description;
23
24 uint64_t percent;
25 eosio::asset available;
26 eosio::asset withdrawed;
27
28 uint64_t primary_key() const { return id; }
29};
30
31typedef eosio::multi_index<"accfunds"_n, accfund> accfunds_index;
32
33// Плательщик за оперативную память строк таблицы — правило в lib/core/ram_payer.hpp.
contract
Definition: eosio.msig_tests.cpp:977
Definition: eosio.msig.hpp:34
Definition: table_fund_accfunds.hpp:16
std::string name
Definition: table_fund_accfunds.hpp:21
eosio::name contract
Definition: table_fund_accfunds.hpp:19
eosio::asset withdrawed
Definition: table_fund_accfunds.hpp:26
uint64_t primary_key() const
Definition: table_fund_accfunds.hpp:28
std::string description
Definition: table_fund_accfunds.hpp:22
eosio::name coopname
Definition: table_fund_accfunds.hpp:18
eosio::asset available
Definition: table_fund_accfunds.hpp:25
uint64_t id
Definition: table_fund_accfunds.hpp:17
uint64_t percent
Definition: table_fund_accfunds.hpp:24
RAM_PAYER_CLASS(accfund, contract)
eosio::multi_index<"accfunds"_n, accfund > accfunds_index
Definition: table_fund_accfunds.hpp:31