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