3#include <eosio/contract.hpp>
4#include <eosio/crypto.hpp>
5#include <eosio/eosio.hpp>
6#include <eosio/system.hpp>
8#include "../consts.hpp"
9#include "../core/utils.hpp"
34 auto draft = drafts.find(draft_id);
36 eosio::check(
draft != drafts.end(),
"Шаблон документа не найден");
Константы контракта шаблонов документов
Definition: draft.hpp:45
static constexpr eosio::name _draft
Definition: consts.hpp:154
contract
Definition: eosio.msig_tests.cpp:977
Definition: eosio.msig.hpp:34
Definition: table_draft_drafts.hpp:18
std::string context
Definition: table_draft_drafts.hpp:24
uint64_t registry_id
Definition: table_draft_drafts.hpp:19
std::string model
Definition: table_draft_drafts.hpp:25
uint64_t version
Definition: table_draft_drafts.hpp:20
uint64_t default_translation_id
Definition: table_draft_drafts.hpp:21
std::string description
Definition: table_draft_drafts.hpp:23
std::string title
Definition: table_draft_drafts.hpp:22
uint64_t primary_key() const
Definition: table_draft_drafts.hpp:27
eosio::multi_index<"drafts"_n, onedraft > drafts_index
Definition: table_draft_drafts.hpp:30
onedraft get_scoped_draft_by_registry_or_fail(eosio::name scope, uint64_t draft_id)
Definition: table_draft_drafts.hpp:32