2 #include <boost/multi_index/composite_key.hpp>
6 #include <fc/exception/exception.hpp>
13 :
public object<withdraw_scorumpower_route_object_type, withdraw_scorumpower_route_object>
37 uint16_t withdraw_routes = 0u;
53 time_point_sec next_vesting_withdrawal
54 =
fc::time_point_sec::maximum();
59 namespace withdraw_scorumpower_objects {
68 FC_ASSERT(
false,
"Unknown type.");
124 using namespace withdraw_scorumpower_objects;
126 if (a.which() == b.which())
128 return a.visit(less_ids_visitor(b));
130 return a.which() < b.which();
136 using namespace withdraw_scorumpower_objects;
138 if (a.which() == b.which())
140 return a.visit(equal_ids_visitor(b));
146 struct by_withdraw_route;
147 struct by_destination;
148 typedef shared_multi_index_container<withdraw_scorumpower_route_object,
149 indexed_by<ordered_unique<tag<by_id>,
150 member<withdraw_scorumpower_route_object,
153 ordered_unique<tag<by_withdraw_route>,
154 composite_key<withdraw_scorumpower_route_object,
155 member<withdraw_scorumpower_route_object,
157 &withdraw_scorumpower_route_object::
159 member<withdraw_scorumpower_route_object,
161 &withdraw_scorumpower_route_object::
163 composite_key_compare<less_for_withdrawable_id,
164 less_for_withdrawable_id>>,
165 ordered_unique<tag<by_destination>,
166 composite_key<withdraw_scorumpower_route_object,
167 member<withdraw_scorumpower_route_object,
169 &withdraw_scorumpower_route_object::
171 member<withdraw_scorumpower_route_object,
173 &withdraw_scorumpower_route_object::
175 composite_key_compare<less_for_withdrawable_id,
177 less<withdraw_scorumpower_route_id_type>>>>>
181 indexed_by<ordered_unique<tag<by_id>,
184 &withdraw_scorumpower_route_statistic_object::
186 ordered_unique<tag<by_destination>,
189 &withdraw_scorumpower_route_statistic_object::
194 struct by_next_vesting_withdrawal;
196 indexed_by<ordered_unique<tag<by_id>,
200 ordered_unique<tag<by_destination>,
205 ordered_unique<tag<by_next_vesting_withdrawal>,
209 &withdraw_scorumpower_object::
210 next_vesting_withdrawal>,
213 &withdraw_scorumpower_object::
239 (vesting_withdraw_rate)
240 (next_vesting_withdrawal)
withdrawable_id_type from_id
bool operator()(const account_id_type &left) const
equal_ids_visitor(const withdrawable_id_type &right)
bool operator()(const dev_committee_id_type &left) const
bool operator()(const Op &) const
const withdrawable_id_type & _right
ids_visitor(const withdrawable_id_type &right)
bool operator()(const dev_committee_id_type &left) const
bool operator()(const account_id_type &left) const
less_ids_visitor(const withdrawable_id_type &right)
withdrawable_id_type from_id
withdrawable_id_type to_id
FC_REFLECT(appender_args,(appender)(stream)) FC_REFLECT_DERIVED(file_appender_args
bool is_equal_withdrawable_id(const withdrawable_id_type &a, const withdrawable_id_type &b)
oid< withdraw_scorumpower_object > withdraw_scorumpower_id_type
fc::static_variant< account_id_type, dev_committee_id_type > withdrawable_id_type
shared_multi_index_container< withdraw_scorumpower_route_statistic_object, indexed_by< ordered_unique< tag< by_id >, member< withdraw_scorumpower_route_statistic_object, withdraw_scorumpower_route_statistic_id_type, &withdraw_scorumpower_route_statistic_object::id > >, ordered_unique< tag< by_destination >, member< withdraw_scorumpower_route_statistic_object, withdrawable_id_type, &withdraw_scorumpower_route_statistic_object::from_id >, less_for_withdrawable_id > > > withdraw_scorumpower_route_statistic_index
oid< withdraw_scorumpower_route_statistic_object > withdraw_scorumpower_route_statistic_id_type
@ withdraw_scorumpower_route_statistic_object_type
@ withdraw_scorumpower_object_type
shared_multi_index_container< withdraw_scorumpower_route_object, indexed_by< ordered_unique< tag< by_id >, member< withdraw_scorumpower_route_object, withdraw_scorumpower_route_id_type, &withdraw_scorumpower_route_object::id > >, ordered_unique< tag< by_withdraw_route >, composite_key< withdraw_scorumpower_route_object, member< withdraw_scorumpower_route_object, withdrawable_id_type, &withdraw_scorumpower_route_object::from_id >, member< withdraw_scorumpower_route_object, withdrawable_id_type, &withdraw_scorumpower_route_object::to_id > >, composite_key_compare< less_for_withdrawable_id, less_for_withdrawable_id > >, ordered_unique< tag< by_destination >, composite_key< withdraw_scorumpower_route_object, member< withdraw_scorumpower_route_object, withdrawable_id_type, &withdraw_scorumpower_route_object::to_id >, member< withdraw_scorumpower_route_object, withdraw_scorumpower_route_id_type, &withdraw_scorumpower_route_object::id > >, composite_key_compare< less_for_withdrawable_id, std::less< withdraw_scorumpower_route_id_type > > > > > withdraw_scorumpower_route_index
oid< withdraw_scorumpower_route_object > withdraw_scorumpower_route_id_type
shared_multi_index_container< withdraw_scorumpower_object, indexed_by< ordered_unique< tag< by_id >, member< withdraw_scorumpower_object, withdraw_scorumpower_id_type, &withdraw_scorumpower_object::id > >, ordered_unique< tag< by_destination >, member< withdraw_scorumpower_object, withdrawable_id_type, &withdraw_scorumpower_object::from_id >, less_for_withdrawable_id >, ordered_unique< tag< by_next_vesting_withdrawal >, composite_key< withdraw_scorumpower_object, member< withdraw_scorumpower_object, time_point_sec, &withdraw_scorumpower_object::next_vesting_withdrawal >, member< withdraw_scorumpower_object, withdraw_scorumpower_id_type, &withdraw_scorumpower_object::id > > > > > withdraw_scorumpower_index
bool operator()(const withdrawable_id_type &a, const withdrawable_id_type &b) const