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