11 auto by_hash = props.get_index<
"byhash"_n>();
12 auto it = by_hash.find(hash);
13 eosio::check(it != by_hash.end(),
14 "MARKETPLACE_IPROP_NOT_FOUND: Заявление о паевом взносе имуществом в участок не найдено");
19inline void update(eosio::name coopname, uint64_t
id, F&& fn) {
21 auto it = props.find(
id);
22 props.modify(it,
RamPayer::of(props, coopname), std::forward<F>(fn));
25inline void erase(eosio::name coopname, uint64_t
id) {
27 auto it = props.find(
id);
28 if (it != props.end()) props.erase(it);
32inline eosio::name
trustee_of(eosio::name coopname, eosio::name braname) {
static constexpr eosio::name _marketplace
Definition: consts.hpp:193
Definition: iprop_helpers.hpp:7
mkt_invprop get_or_fail(eosio::name coopname, const checksum256 &hash)
Definition: iprop_helpers.hpp:9
void erase(eosio::name coopname, uint64_t id)
Definition: iprop_helpers.hpp:25
void update(eosio::name coopname, uint64_t id, F &&fn)
Definition: iprop_helpers.hpp:19
eosio::name trustee_of(eosio::name coopname, eosio::name braname)
Председатель участка — тот, кто подписывает за участок.
Definition: iprop_helpers.hpp:32
eosio::name of(const Table &table, eosio::name coopname)
Definition: ram_payer.hpp:78
eosio::name trustee
Definition: table_branch_branches.hpp:19
Заявление инициатора о паевом взносе имуществом в кооперативный участок (registry 1120) до второй под...
Definition: table_marketplace_invest.hpp:206
coobranch get_branch_or_fail(eosio::name coopname, eosio::name braname)
Definition: table_branch_branches.hpp:88
eosio::multi_index< "invprops"_n, mkt_invprop, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun< mkt_invprop, checksum256, &mkt_invprop::by_hash > >, eosio::indexed_by<"bybranch"_n, eosio::const_mem_fun< mkt_invprop, uint64_t, &mkt_invprop::by_branch > >, eosio::indexed_by<"byuser"_n, eosio::const_mem_fun< mkt_invprop, uint64_t, &mkt_invprop::by_user > > > mkt_invprops_index
Definition: table_marketplace_invest.hpp:231