3#include <eosio/asset.hpp>
4#include <eosio/crypto.hpp>
5#include <eosio/eosio.hpp>
9#include "../consts.hpp"
10#include "../core/document.hpp"
11#include "../core/utils.hpp"
34namespace WroffStatus {
37 inline constexpr eosio::name
PROPOSED =
"proposed"_n;
38 inline constexpr eosio::name
AUTHORIZED =
"authorized"_n;
112typedef eosio::multi_index<
113 "wroffprops"_n, writeoff_proposal,
114 eosio::indexed_by<
"byhash"_n, eosio::const_mem_fun<writeoff_proposal, checksum256, &writeoff_proposal::by_hash>>,
115 eosio::indexed_by<
"bystatus"_n, eosio::const_mem_fun<writeoff_proposal, uint64_t, &writeoff_proposal::by_status>>>
static constexpr eosio::symbol _root_govern_symbol
Definition: consts.hpp:231
contract
Definition: eosio.msig_tests.cpp:977
constexpr eosio::name PROPOSED
Definition: table_marketplace_writeoff_proposals.hpp:37
constexpr eosio::name AUTHORIZED
Definition: table_marketplace_writeoff_proposals.hpp:38
Canonical helpers контракта marketplace (Story 11.1).
Definition: marketplace.hpp:32
eosio::multi_index< "wroffprops"_n, writeoff_proposal, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun< writeoff_proposal, checksum256, &writeoff_proposal::by_hash > >, eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun< writeoff_proposal, uint64_t, &writeoff_proposal::by_status > > > writeoff_proposals_index
Definition: table_marketplace_writeoff_proposals.hpp:116
Definition: eosio.msig.hpp:34
On-chain Проект решения совета о списании скоропорта — анкер процесса p.mkt.wroff.
Definition: table_marketplace_writeoff_proposals.hpp:90
checksum256 by_hash() const
Definition: table_marketplace_writeoff_proposals.hpp:108
checksum256 hash
process_hash для p.mkt.wroff
Definition: table_marketplace_writeoff_proposals.hpp:92
eosio::name decided_by
actor execwroff/declwroff (председатель / совет)
Definition: table_marketplace_writeoff_proposals.hpp:95
uint64_t id
Definition: table_marketplace_writeoff_proposals.hpp:91
eosio::name proposed_by
backend / админ — инициатор propwroff
Definition: table_marketplace_writeoff_proposals.hpp:94
eosio::name coopname
Definition: table_marketplace_writeoff_proposals.hpp:93
uint64_t primary_key() const
Definition: table_marketplace_writeoff_proposals.hpp:107
std::vector< wroff_item > items
Definition: table_marketplace_writeoff_proposals.hpp:97
document2 protocol
Подписанный советом протокол решения; кладётся в callback onmktwoauth.
Definition: table_marketplace_writeoff_proposals.hpp:101
uint64_t by_status() const
Definition: table_marketplace_writeoff_proposals.hpp:109
Позиция к списанию в составе writeoff_proposal.
Definition: table_marketplace_writeoff_proposals.hpp:67
eosio::asset amount
Definition: table_marketplace_writeoff_proposals.hpp:70
bool executed
true после execwroff(proposal_hash, item_index)
Definition: table_marketplace_writeoff_proposals.hpp:72
eosio::name braname
КУ-склад источник списания
Definition: table_marketplace_writeoff_proposals.hpp:69
uint64_t source_order_id
0 если списание из складского остатка без привязки к order'у
Definition: table_marketplace_writeoff_proposals.hpp:68
std::string meta
Definition: table_marketplace_writeoff_proposals.hpp:71
Definition: document_core.hpp:27