COOPENOMICS  v1
Кооперативная Экономика
table_branch_expenses.hpp
См. документацию.
1#pragma once
2
3#include <eosio/asset.hpp>
4#include <eosio/crypto.hpp>
5#include <eosio/eosio.hpp>
6
7#include "../consts.hpp"
8
32struct [[eosio::table, eosio::contract(BRANCH)]] branch_expense {
33 uint64_t id;
34 eosio::checksum256 hash;
35 eosio::name braname;
36 eosio::name creator;
37 eosio::asset amount;
38
39 uint64_t primary_key() const { return id; }
40 eosio::checksum256 by_hash() const { return hash; }
41 uint64_t by_branch() const { return braname.value; }
42};
43
44typedef eosio::multi_index<
45 "expenses"_n, branch_expense,
46 eosio::indexed_by<"byhash"_n, eosio::const_mem_fun<branch_expense, eosio::checksum256, &branch_expense::by_hash>>,
47 eosio::indexed_by<"bybranch"_n, eosio::const_mem_fun<branch_expense, uint64_t, &branch_expense::by_branch>>>
contract
Definition: eosio.msig_tests.cpp:977
Definition: eosio.msig.hpp:34
Расход кооперативного участка, поданный в шасси расходов (requirement b6 «Экономика КУ»; процесс p....
Definition: table_branch_expenses.hpp:32
eosio::checksum256 hash
идентификатор расхода (= proposal_hash в шасси расходов)
Definition: table_branch_expenses.hpp:34
eosio::name creator
кто подал служебную записку
Definition: table_branch_expenses.hpp:36
uint64_t primary_key() const
Definition: table_branch_expenses.hpp:39
eosio::asset amount
сумма, выделенная под расход в пул расходов
Definition: table_branch_expenses.hpp:37
uint64_t id
суррогатный ключ (scope coopname)
Definition: table_branch_expenses.hpp:33
eosio::checksum256 by_hash() const
Definition: table_branch_expenses.hpp:40
eosio::name braname
кооперативный участок — владелец средств
Definition: table_branch_expenses.hpp:35
uint64_t by_branch() const
Definition: table_branch_expenses.hpp:41
eosio::multi_index< "expenses"_n, branch_expense, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun< branch_expense, eosio::checksum256, &branch_expense::by_hash > >, eosio::indexed_by<"bybranch"_n, eosio::const_mem_fun< branch_expense, uint64_t, &branch_expense::by_branch > > > branch_expenses_index
Definition: table_branch_expenses.hpp:48