COOPENOMICS  v1
Кооперативная Экономика
table_soviet_taxes.hpp
См. документацию.
1#pragma once
2
3
4#include "../core/ram_payer.hpp"
5#include <eosio/asset.hpp>
6#include <eosio/crypto.hpp>
7#include <eosio/eosio.hpp>
8#include <string>
9
10#include "../consts.hpp"
11
44struct [[eosio::table, eosio::contract(SOVIET)]] soviet_tax {
45 uint64_t id;
46 eosio::checksum256 hash;
47 eosio::asset amount;
48 eosio::time_point_sec created_at = eosio::current_time_point();
49
50 uint64_t primary_key() const { return id; }
51 eosio::checksum256 by_hash() const { return hash; }
52};
53
54typedef eosio::multi_index<
55 "taxes"_n, soviet_tax,
56 eosio::indexed_by<"byhash"_n, eosio::const_mem_fun<soviet_tax, eosio::checksum256, &soviet_tax::by_hash>>>
58
59// Плательщик за оперативную память строк таблицы — правило в lib/core/ram_payer.hpp.
contract
Definition: eosio.msig_tests.cpp:977
Definition: eosio.msig.hpp:34
Заявка на перечисление удержанного НДФЛ в бюджет (процесс p.sov.tax; решение владельца 2026-08-13).
Definition: table_soviet_taxes.hpp:44
uint64_t primary_key() const
Definition: table_soviet_taxes.hpp:50
eosio::checksum256 by_hash() const
Definition: table_soviet_taxes.hpp:51
eosio::asset amount
сумма к перечислению (≤ остатка w.sov.ndfl на момент создания)
Definition: table_soviet_taxes.hpp:47
eosio::checksum256 hash
идентификатор заявки (= outcome_hash в gateway, = process_hash в ledger2)
Definition: table_soviet_taxes.hpp:46
uint64_t id
суррогатный ключ (scope coopname)
Definition: table_soviet_taxes.hpp:45
eosio::multi_index< "taxes"_n, soviet_tax, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun< soviet_tax, eosio::checksum256, &soviet_tax::by_hash > > > soviet_taxes_index
Definition: table_soviet_taxes.hpp:57
RAM_PAYER_CLASS(soviet_tax, contract)