COOPENOMICS  v1
Кооперативная Экономика
shared_marketplace.hpp
См. документацию.
1#pragma once
2
3// Сигнатуры для callback действий marketplace
4#define AUTH_SIGNATURE eosio::name coopname, checksum256 request_hash, document2 authorization
5
7
8
9namespace Marketplace {
10
23struct [[eosio::table, eosio::contract(MARKETPLACE)]] segment {
24 uint64_t id;
25 uint64_t request_id;
26 eosio::name type;
27 eosio::name status;
31 uint64_t decision_id;
37 // Документы транспортировки
43 eosio::name coopactor;
44 eosio::name username;
45 eosio::name driver_username;
48 eosio::time_point_sec created_at;
49 eosio::time_point_sec updated_at;
50
51 uint64_t primary_key() const { return id; }
52 uint64_t by_request() const { return request_id; }
53 uint64_t by_type() const { return type.value; }
54 uint64_t by_status() const { return status.value; }
55};
56
57typedef eosio::multi_index<
58 "segments"_n, segment,
59 eosio::indexed_by<"byrequest"_n, eosio::const_mem_fun<segment, uint64_t, &segment::by_request>>,
60 eosio::indexed_by<"bytype"_n, eosio::const_mem_fun<segment, uint64_t, &segment::by_type>>,
61 eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun<segment, uint64_t, &segment::by_status>>
63
64
79struct [[eosio::table, eosio::contract(MARKETPLACE)]] shipment {
80 uint64_t id;
81 checksum256 hash;
82 eosio::name coopname;
83 eosio::name driver_username;
84 eosio::name source_braname;
85 eosio::name destination_braname;
86 eosio::name status;
88 std::vector<checksum256> request_hashes;
90 std::vector<Document::named_document> documents;
92 eosio::time_point_sec created_at;
93 eosio::time_point_sec loaded_at;
94 eosio::time_point_sec delivered_at;
95 eosio::time_point_sec completed_at;
97 uint64_t primary_key() const { return id; }
98 checksum256 by_hash() const { return hash; }
99 uint64_t by_coop() const { return coopname.value; }
100 uint64_t by_driver() const { return driver_username.value; }
101 uint64_t by_source() const { return source_braname.value; }
102 uint64_t by_destination() const { return destination_braname.value; }
103 uint64_t by_status() const { return status.value; }
104 uint64_t by_created() const { return created_at.sec_since_epoch(); }
105};
106
107typedef eosio::multi_index<
108 "shipments"_n, shipment,
109 eosio::indexed_by<"byhash"_n, eosio::const_mem_fun<shipment, checksum256, &shipment::by_hash>>,
110 eosio::indexed_by<"bycoop"_n, eosio::const_mem_fun<shipment, uint64_t, &shipment::by_coop>>,
111 eosio::indexed_by<"bydriver"_n, eosio::const_mem_fun<shipment, uint64_t, &shipment::by_driver>>,
112 eosio::indexed_by<"bysource"_n, eosio::const_mem_fun<shipment, uint64_t, &shipment::by_source>>,
113 eosio::indexed_by<"bydest"_n, eosio::const_mem_fun<shipment, uint64_t, &shipment::by_destination>>,
114 eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun<shipment, uint64_t, &shipment::by_status>>,
115 eosio::indexed_by<"bycreated"_n, eosio::const_mem_fun<shipment, uint64_t, &shipment::by_created>>
117
118
123struct [[eosio::table, eosio::contract(MARKETPLACE)]] request {
124 uint64_t id;
125 checksum256 hash;
126 eosio::name coopname;
127 eosio::name type;
128 eosio::name status;
129 eosio::name username;
130 eosio::name braname;
131 eosio::name warehouse;
132 eosio::name token_contract;
134 eosio::name receiver_braname;
135 eosio::name supplier_braname;
137 eosio::asset unit_cost;
138 eosio::asset base_cost;
140 eosio::asset total_cost;
142 uint64_t units;
143 std::string meta;
145 eosio::name money_contributor;
148 std::vector<Document::named_document> documents;
150 uint64_t product_lifecycle_secs; // жизненный цикл продукта
151 uint64_t warranty_period_secs; // гарантийный срок в секундах
152 eosio::asset cancellation_fee_amount; // сумма штрафа за отмену заявки
153
154 eosio::time_point_sec warranty_delay_until;
155 eosio::time_point_sec deadline_for_receipt;
156
157 bool is_warranty_return = false;
159
160 eosio::time_point_sec created_at;
161 eosio::time_point_sec accepted_at;
162 eosio::time_point_sec supplied_at;
163 eosio::time_point_sec delivered_at;
164 eosio::time_point_sec received_at;
165 eosio::time_point_sec completed_at;
166 eosio::time_point_sec declined_at;
167 eosio::time_point_sec disputed_at;
168 eosio::time_point_sec canceled_at;
169
170
171 uint64_t primary_key() const { return id; }
172 uint64_t by_coop() const {return coopname.value;}
173 uint64_t by_status() const { return status.value; }
174 uint64_t by_type() const { return type.value; }
175 checksum256 by_hash() const { return hash; }
176 uint64_t by_username() const { return username.value;}
177
178 uint64_t by_created() const { return created_at.sec_since_epoch();}
179 uint64_t by_completed() const { return completed_at.sec_since_epoch();}
180 uint64_t by_declined() const { return declined_at.sec_since_epoch();}
181 uint64_t by_canceled() const { return canceled_at.sec_since_epoch();}
182 uint64_t by_warranty_id() const { return warranty_return_id;}
183
184 // Логические геттеры для получения актуальных ролей
185 eosio::name get_money_contributor() const {
186 return is_warranty_return ? product_contributor : money_contributor;
187 }
188
189 eosio::name get_product_contributor() const {
190 return is_warranty_return ? money_contributor : product_contributor;
191 }
192
193 // Геттеры для понимания ролей в контексте текущей операции
194 eosio::name get_payer() const {
195 return get_money_contributor();
196 }
197
198 eosio::name get_supplier() const {
199 return get_product_contributor();
200 }
201
202 // Специальные геттеры для гарантийного возврата
203 // Возвращают участников в контексте процесса возврата брака
204
209 eosio::name get_product_backer() const {
210 return money_contributor;
211 }
212
217 eosio::name get_defective_supplier() const {
218 return product_contributor;
219 }
220};
221
222typedef eosio::multi_index<
223 "requests"_n, request,
224 eosio::indexed_by<"bycoop"_n, eosio::const_mem_fun<request, uint64_t, &request::by_coop>>,
225 eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun<request, uint64_t, &request::by_status>>,
226 eosio::indexed_by<"bytype"_n, eosio::const_mem_fun<request, uint64_t, &request::by_type>>,
227 eosio::indexed_by<"byhash"_n, eosio::const_mem_fun<request, checksum256, &request::by_hash>>,
228 eosio::indexed_by<"byusername"_n, eosio::const_mem_fun<request, uint64_t, &request::by_username>>,
229 eosio::indexed_by<"bycreated"_n, eosio::const_mem_fun<request, uint64_t, &request::by_created>>,
230 eosio::indexed_by<"bycompleted"_n, eosio::const_mem_fun<request, uint64_t, &request::by_completed>>,
231 eosio::indexed_by<"bydeclined"_n, eosio::const_mem_fun<request, uint64_t, &request::by_declined>>,
232 eosio::indexed_by<"bycanceled"_n, eosio::const_mem_fun<request, uint64_t, &request::by_canceled>>,
233 eosio::indexed_by<"bywarrantyid"_n, eosio::const_mem_fun<request, uint64_t, &request::by_warranty_id>>
235
236static const std::set<eosio::name> marketplace_callback_actions = {
237 "authoffs2c"_n, // авторизация сегмента contribute для направления OFFER → ORDER
238 "authoffc2r"_n, // авторизация сегмента return для направления OFFER → ORDER
239 "authordcont"_n, // авторизация сегмента contribute для направления ORDER → OFFER
240 "authordret"_n, // авторизация сегмента return для направления ORDER → OFFER
241 "declineacc"_n, // отклонение принятия заявки
242};
243
244inline eosio::name get_valid_marketplace_action(const eosio::name& action) {
245 eosio::check(marketplace_callback_actions.contains(action), "Недопустимое имя действия marketplace");
246 return action;
247}
248
249// Вспомогательные функции для поиска заявок по хэшу
250static std::optional<request> get_request_by_hash(eosio::name coopname, checksum256 request_hash) {
251 requests_index requests(_marketplace, coopname.value);
252 auto idx = requests.get_index<"byhash"_n>();
253 auto req = idx.find(request_hash);
254
255 if (req != idx.end()) {
256 return *req;
257 }
258 return std::nullopt;
259}
260
261// Вспомогательные функции для поиска перевозок по хэшу
262static std::optional<shipment> get_shipment_by_hash(eosio::name coopname, checksum256 shipment_hash) {
263 shipments_index shipments(_marketplace, coopname.value);
264 auto idx = shipments.get_index<"byhash"_n>();
265 auto ship = idx.find(shipment_hash);
266
267 if (ship != idx.end()) {
268 return *ship;
269 }
270 return std::nullopt;
271}
272
273static request get_request_by_hash_or_fail(eosio::name coopname, checksum256 request_hash, const std::string& error_msg = "Заявка не найдена по хэшу") {
274 auto request_opt = get_request_by_hash(coopname, request_hash);
275 eosio::check(request_opt.has_value(), error_msg);
276 return *request_opt;
277}
278
279static shipment get_shipment_by_hash_or_fail(eosio::name coopname, checksum256 shipment_hash, const std::string& error_msg = "Перевозка не найдена по хэшу") {
280 auto shipment_opt = get_shipment_by_hash(coopname, shipment_hash);
281 eosio::check(shipment_opt.has_value(), error_msg);
282 return *shipment_opt;
283}
284
288namespace DocumentNames {
289 static constexpr const name RETURN_STMT = "returnstmt"_n; // заявление на возврат имущества
290 static constexpr const name CONVERT_FROM = "convertfrom"_n; // заявление на конвертацию из кошелька
291 static constexpr const name CONVERT_TO = "convertto"_n; // заявление на конвертацию в кошелек
292 static constexpr const name CONTRIB_STMT = "contribstmt"_n; // заявление на имущественный паевой взнос
293 static constexpr const name CONTRIB_AUTH = "contribauth"_n; // авторизация взноса
294 static constexpr const name RETURN_AUTH = "returnauth"_n; // авторизация возврата
295 static constexpr const name RECEIVE_ACT = "receiveact"_n; // акт получения
296 static constexpr const name RECEIVE_ACT_CONF = "receiveconf"_n; // подтверждение акта получения
297 static constexpr const name TRANSPORT1 = "transport1"_n; // акт транспортировки 1 (УСТАРЕВШИЙ)
298 static constexpr const name TRANSPORT2 = "transport2"_n; // акт транспортировки 2 (УСТАРЕВШИЙ)
299 static constexpr const name TRANSPORT3 = "transport3"_n; // акт транспортировки 3 (УСТАРЕВШИЙ)
300 static constexpr const name TRANSPORT4 = "transport4"_n; // акт транспортировки 4 (УСТАРЕВШИЙ)
301 static constexpr const name SUPPLY_ACT = "supplyact"_n; // акт поставки
302 static constexpr const name SUPPLY_ACT_CONF = "supplyconf"_n; // подтверждение акта поставки
303 static constexpr const name SHIPMENT_ACT = "shipmentact"_n; // товарно-транспортная накладная
304 static constexpr const name DELIVERY_ACT = "deliveryact"_n; // акт доставки (УСТАРЕВШИЙ)
305
306 // Документы новой системы перевозок
307 static constexpr const name SHIPMENT_SEND_ACT = "shsendact"_n; // акт передачи от отправителя
308 static constexpr const name SHIPMENT_LOADING_ACT = "shloadact"_n; // акт приёма водителем
309 static constexpr const name SHIPMENT_ARRIVE_ACT = "sharriveact"_n; // акт прибытия/доставки на склад, подписанный водителем
310 static constexpr const name SHIPMENT_RECV_ACT = "shrecvact"_n; // акт приёма на складе получателем
311
312 // Документы гарантийного возврата
313 static constexpr const name WDISPUTE = "wdispute"_n; // претензия на гарантийный возврат
314 static constexpr const name WRETURN_AUTH = "wreturnauth"_n; // авторизация гарантийного возврата
315 static constexpr const name WSUPPLY_AUTH = "wsupplyauth"_n; // авторизация гарантийной выдачи
316 static constexpr const name WRETURN_ACT = "wreturnact"_n; // акт гарантийного возврата
317 static constexpr const name WOFFER_ACT = "wofferact"_n; // акт предложения товара поставщику
318 static constexpr const name WACCEPT_ACT = "wacceptact"_n; // акт принятия/отказа поставщика
319}
320
321} // namespace Marketplace
static constexpr eosio::name _marketplace
Definition: consts.hpp:155
contract
Definition: eosio.msig_tests.cpp:977
static constexpr const name SHIPMENT_ARRIVE_ACT
Definition: shared_marketplace.hpp:309
static constexpr const name SHIPMENT_ACT
Definition: shared_marketplace.hpp:303
static constexpr const name CONTRIB_STMT
Definition: shared_marketplace.hpp:292
static constexpr const name RETURN_STMT
Definition: shared_marketplace.hpp:289
static constexpr const name WACCEPT_ACT
Definition: shared_marketplace.hpp:318
static constexpr const name SHIPMENT_RECV_ACT
Definition: shared_marketplace.hpp:310
static constexpr const name SUPPLY_ACT_CONF
Definition: shared_marketplace.hpp:302
static constexpr const name SHIPMENT_LOADING_ACT
Definition: shared_marketplace.hpp:308
static constexpr const name RECEIVE_ACT_CONF
Definition: shared_marketplace.hpp:296
static constexpr const name CONVERT_FROM
Definition: shared_marketplace.hpp:290
static constexpr const name WDISPUTE
Definition: shared_marketplace.hpp:313
static constexpr const name SHIPMENT_SEND_ACT
Definition: shared_marketplace.hpp:307
static constexpr const name WRETURN_ACT
Definition: shared_marketplace.hpp:316
static constexpr const name TRANSPORT2
Definition: shared_marketplace.hpp:298
static constexpr const name CONVERT_TO
Definition: shared_marketplace.hpp:291
static constexpr const name TRANSPORT4
Definition: shared_marketplace.hpp:300
static constexpr const name TRANSPORT3
Definition: shared_marketplace.hpp:299
static constexpr const name RETURN_AUTH
Definition: shared_marketplace.hpp:294
static constexpr const name WSUPPLY_AUTH
Definition: shared_marketplace.hpp:315
static constexpr const name CONTRIB_AUTH
Definition: shared_marketplace.hpp:293
static constexpr const name TRANSPORT1
Definition: shared_marketplace.hpp:297
static constexpr const name DELIVERY_ACT
Definition: shared_marketplace.hpp:304
static constexpr const name WRETURN_AUTH
Definition: shared_marketplace.hpp:314
static constexpr const name SUPPLY_ACT
Definition: shared_marketplace.hpp:301
static constexpr const name WOFFER_ACT
Definition: shared_marketplace.hpp:317
static constexpr const name RECEIVE_ACT
Definition: shared_marketplace.hpp:295
Definition: shared_marketplace.hpp:9
static std::optional< request > get_request_by_hash(eosio::name coopname, checksum256 request_hash)
Definition: shared_marketplace.hpp:250
eosio::multi_index< "segments"_n, segment, eosio::indexed_by<"byrequest"_n, eosio::const_mem_fun< segment, uint64_t, &segment::by_request > >, eosio::indexed_by<"bytype"_n, eosio::const_mem_fun< segment, uint64_t, &segment::by_type > >, eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun< segment, uint64_t, &segment::by_status > > > segments_index
Definition: shared_marketplace.hpp:62
eosio::multi_index< "shipments"_n, shipment, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun< shipment, checksum256, &shipment::by_hash > >, eosio::indexed_by<"bycoop"_n, eosio::const_mem_fun< shipment, uint64_t, &shipment::by_coop > >, eosio::indexed_by<"bydriver"_n, eosio::const_mem_fun< shipment, uint64_t, &shipment::by_driver > >, eosio::indexed_by<"bysource"_n, eosio::const_mem_fun< shipment, uint64_t, &shipment::by_source > >, eosio::indexed_by<"bydest"_n, eosio::const_mem_fun< shipment, uint64_t, &shipment::by_destination > >, eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun< shipment, uint64_t, &shipment::by_status > >, eosio::indexed_by<"bycreated"_n, eosio::const_mem_fun< shipment, uint64_t, &shipment::by_created > > > shipments_index
Definition: shared_marketplace.hpp:116
static request get_request_by_hash_or_fail(eosio::name coopname, checksum256 request_hash, const std::string &error_msg="Заявка не найдена по хэшу")
Definition: shared_marketplace.hpp:273
eosio::multi_index< "requests"_n, request, eosio::indexed_by<"bycoop"_n, eosio::const_mem_fun< request, uint64_t, &request::by_coop > >, eosio::indexed_by<"bystatus"_n, eosio::const_mem_fun< request, uint64_t, &request::by_status > >, eosio::indexed_by<"bytype"_n, eosio::const_mem_fun< request, uint64_t, &request::by_type > >, eosio::indexed_by<"byhash"_n, eosio::const_mem_fun< request, checksum256, &request::by_hash > >, eosio::indexed_by<"byusername"_n, eosio::const_mem_fun< request, uint64_t, &request::by_username > >, eosio::indexed_by<"bycreated"_n, eosio::const_mem_fun< request, uint64_t, &request::by_created > >, eosio::indexed_by<"bycompleted"_n, eosio::const_mem_fun< request, uint64_t, &request::by_completed > >, eosio::indexed_by<"bydeclined"_n, eosio::const_mem_fun< request, uint64_t, &request::by_declined > >, eosio::indexed_by<"bycanceled"_n, eosio::const_mem_fun< request, uint64_t, &request::by_canceled > >, eosio::indexed_by<"bywarrantyid"_n, eosio::const_mem_fun< request, uint64_t, &request::by_warranty_id > > > requests_index
Definition: shared_marketplace.hpp:234
static const std::set< eosio::name > marketplace_callback_actions
Definition: shared_marketplace.hpp:236
static std::optional< shipment > get_shipment_by_hash(eosio::name coopname, checksum256 shipment_hash)
Definition: shared_marketplace.hpp:262
eosio::name get_valid_marketplace_action(const eosio::name &action)
Definition: shared_marketplace.hpp:244
static shipment get_shipment_by_hash_or_fail(eosio::name coopname, checksum256 shipment_hash, const std::string &error_msg="Перевозка не найдена по хэшу")
Definition: shared_marketplace.hpp:279
Definition: eosio.msig.hpp:34
action(permission_level{ _gateway, "active"_n}, _gateway, "adduser"_n, std::make_tuple(coopname, deposit->username, to_spread, to_circulation, eosio::current_time_point(), true)).send()
#define AUTH_SIGNATURE
Definition: shared_marketplace.hpp:4
void(AUTH_SIGNATURE) auth_interface
Definition: shared_marketplace.hpp:6
Таблица обменов для контракта "marketplace".
Definition: shared_marketplace.hpp:123
uint64_t id
Definition: shared_marketplace.hpp:124
checksum256 by_hash() const
Definition: shared_marketplace.hpp:175
uint64_t units
Definition: shared_marketplace.hpp:142
eosio::name coopname
Definition: shared_marketplace.hpp:126
uint64_t by_type() const
Definition: shared_marketplace.hpp:174
eosio::name status
Definition: shared_marketplace.hpp:128
uint64_t product_lifecycle_secs
Definition: shared_marketplace.hpp:150
uint64_t by_created() const
Definition: shared_marketplace.hpp:178
eosio::name type
Definition: shared_marketplace.hpp:127
eosio::asset unit_cost
Definition: shared_marketplace.hpp:137
eosio::time_point_sec declined_at
Definition: shared_marketplace.hpp:166
eosio::name get_defective_supplier() const
Получить поставщика брака в гарантийном возврате Это тот, кто изначально поставил товар и теперь по...
Definition: shared_marketplace.hpp:217
eosio::time_point_sec supplied_at
Definition: shared_marketplace.hpp:162
eosio::name supplier_braname
Definition: shared_marketplace.hpp:135
uint64_t by_canceled() const
Definition: shared_marketplace.hpp:181
eosio::time_point_sec canceled_at
Definition: shared_marketplace.hpp:168
eosio::time_point_sec disputed_at
Definition: shared_marketplace.hpp:167
eosio::name product_contributor
Definition: shared_marketplace.hpp:146
eosio::name warehouse
Definition: shared_marketplace.hpp:131
eosio::name token_contract
Definition: shared_marketplace.hpp:132
checksum256 hash
Definition: shared_marketplace.hpp:125
uint64_t by_status() const
Definition: shared_marketplace.hpp:173
uint64_t by_completed() const
Definition: shared_marketplace.hpp:179
eosio::time_point_sec deadline_for_receipt
Definition: shared_marketplace.hpp:155
eosio::asset total_cost
Definition: shared_marketplace.hpp:140
eosio::time_point_sec completed_at
Definition: shared_marketplace.hpp:165
eosio::name braname
Definition: shared_marketplace.hpp:130
eosio::name get_money_contributor() const
Definition: shared_marketplace.hpp:185
std::string meta
Definition: shared_marketplace.hpp:143
uint64_t warranty_period_secs
Definition: shared_marketplace.hpp:151
eosio::asset base_cost
Definition: shared_marketplace.hpp:138
eosio::name get_supplier() const
Definition: shared_marketplace.hpp:198
uint64_t warranty_return_id
Definition: shared_marketplace.hpp:158
eosio::name get_payer() const
Definition: shared_marketplace.hpp:194
eosio::name receiver_braname
Definition: shared_marketplace.hpp:134
eosio::time_point_sec delivered_at
Definition: shared_marketplace.hpp:163
eosio::name username
Definition: shared_marketplace.hpp:129
eosio::name money_contributor
Definition: shared_marketplace.hpp:145
uint64_t by_warranty_id() const
Definition: shared_marketplace.hpp:182
eosio::name get_product_contributor() const
Definition: shared_marketplace.hpp:189
std::vector< Document::named_document > documents
Definition: shared_marketplace.hpp:148
uint64_t by_declined() const
Definition: shared_marketplace.hpp:180
eosio::asset cancellation_fee_amount
Definition: shared_marketplace.hpp:152
eosio::name get_product_backer() const
Получить пайщика, который возвращает товар в гарантийном возврате Это тот, кто изначально получил тов...
Definition: shared_marketplace.hpp:209
eosio::time_point_sec received_at
Definition: shared_marketplace.hpp:164
uint64_t primary_key() const
Definition: shared_marketplace.hpp:171
uint64_t by_coop() const
Definition: shared_marketplace.hpp:172
eosio::asset membership_fee_amount
Definition: shared_marketplace.hpp:139
eosio::time_point_sec created_at
Definition: shared_marketplace.hpp:160
eosio::time_point_sec accepted_at
Definition: shared_marketplace.hpp:161
eosio::time_point_sec warranty_delay_until
Definition: shared_marketplace.hpp:154
uint64_t by_username() const
Definition: shared_marketplace.hpp:176
Сегмент поставки - унифицированная структура для работы с документами
Definition: shared_marketplace.hpp:23
document2 authorization
Definition: shared_marketplace.hpp:32
eosio::name username
Definition: shared_marketplace.hpp:44
uint64_t decision_id
Definition: shared_marketplace.hpp:31
uint64_t request_id
Definition: shared_marketplace.hpp:25
uint64_t id
Definition: shared_marketplace.hpp:24
document2 transport_act_3
Definition: shared_marketplace.hpp:40
document2 act2
Definition: shared_marketplace.hpp:34
document2 convert_in
Definition: shared_marketplace.hpp:29
document2 convert_out
Definition: shared_marketplace.hpp:35
document2 statement
Definition: shared_marketplace.hpp:30
eosio::time_point_sec created_at
Definition: shared_marketplace.hpp:48
uint64_t by_request() const
Definition: shared_marketplace.hpp:52
eosio::name coopactor
Definition: shared_marketplace.hpp:43
document2 transport_act_2
Definition: shared_marketplace.hpp:39
document2 transport_act_4
Definition: shared_marketplace.hpp:41
eosio::time_point_sec updated_at
Definition: shared_marketplace.hpp:49
eosio::name type
Definition: shared_marketplace.hpp:26
eosio::name status
Definition: shared_marketplace.hpp:27
document2 act1
Definition: shared_marketplace.hpp:33
document2 transport_act_1
Definition: shared_marketplace.hpp:38
eosio::name receive_from_driver_coopactor
Definition: shared_marketplace.hpp:46
uint64_t primary_key() const
Definition: shared_marketplace.hpp:51
uint64_t by_type() const
Definition: shared_marketplace.hpp:53
eosio::name driver_username
Definition: shared_marketplace.hpp:45
uint64_t by_status() const
Definition: shared_marketplace.hpp:54
Перевозка имущества - объединение нескольких заявок в одну транспортную накладную
Definition: shared_marketplace.hpp:79
eosio::name driver_username
Definition: shared_marketplace.hpp:83
std::vector< checksum256 > request_hashes
Definition: shared_marketplace.hpp:88
eosio::name source_braname
Definition: shared_marketplace.hpp:84
eosio::name coopname
Definition: shared_marketplace.hpp:82
eosio::name destination_braname
Definition: shared_marketplace.hpp:85
uint64_t by_source() const
Definition: shared_marketplace.hpp:101
checksum256 hash
Definition: shared_marketplace.hpp:81
uint64_t by_destination() const
Definition: shared_marketplace.hpp:102
eosio::time_point_sec loaded_at
Definition: shared_marketplace.hpp:93
uint64_t by_status() const
Definition: shared_marketplace.hpp:103
uint64_t by_created() const
Definition: shared_marketplace.hpp:104
uint64_t by_driver() const
Definition: shared_marketplace.hpp:100
uint64_t id
Definition: shared_marketplace.hpp:80
eosio::name status
Definition: shared_marketplace.hpp:86
uint64_t primary_key() const
Definition: shared_marketplace.hpp:97
uint64_t by_coop() const
Definition: shared_marketplace.hpp:99
std::vector< Document::named_document > documents
Definition: shared_marketplace.hpp:90
eosio::time_point_sec delivered_at
Definition: shared_marketplace.hpp:94
checksum256 by_hash() const
Definition: shared_marketplace.hpp:98
eosio::time_point_sec created_at
Definition: shared_marketplace.hpp:92
eosio::time_point_sec completed_at
Definition: shared_marketplace.hpp:95
Definition: drafts.hpp:28