Reflect many more types
This commit is contained in:
parent
e934b9cf44
commit
9e46ed80a0
5 changed files with 11 additions and 3 deletions
|
|
@ -1571,4 +1571,5 @@ FC_REFLECT( graphene::chain::custom_operation, (fee)(payer)(required_auths)(id)(
|
||||||
FC_REFLECT( graphene::chain::void_result, )
|
FC_REFLECT( graphene::chain::void_result, )
|
||||||
|
|
||||||
FC_REFLECT_TYPENAME( graphene::chain::operation )
|
FC_REFLECT_TYPENAME( graphene::chain::operation )
|
||||||
|
FC_REFLECT_TYPENAME( graphene::chain::operation_result )
|
||||||
FC_REFLECT_TYPENAME( fc::flat_set<graphene::chain::vote_id_type> )
|
FC_REFLECT_TYPENAME( fc::flat_set<graphene::chain::vote_id_type> )
|
||||||
|
|
|
||||||
|
|
@ -576,6 +576,8 @@ FC_REFLECT( graphene::chain::chain_parameters,
|
||||||
(worker_budget_per_day)
|
(worker_budget_per_day)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
FC_REFLECT_TYPENAME( graphene::chain::share_type )
|
||||||
|
|
||||||
FC_REFLECT_TYPENAME( graphene::chain::key_id_type )
|
FC_REFLECT_TYPENAME( graphene::chain::key_id_type )
|
||||||
FC_REFLECT_TYPENAME( graphene::chain::account_id_type )
|
FC_REFLECT_TYPENAME( graphene::chain::account_id_type )
|
||||||
FC_REFLECT_TYPENAME( graphene::chain::asset_id_type )
|
FC_REFLECT_TYPENAME( graphene::chain::asset_id_type )
|
||||||
|
|
|
||||||
|
|
@ -149,6 +149,8 @@ FC_REFLECT(graphene::chain::cdd_vesting_policy,
|
||||||
(coin_seconds_earned_last_update)
|
(coin_seconds_earned_last_update)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
FC_REFLECT_TYPENAME( graphene::chain::vesting_policy )
|
||||||
|
|
||||||
FC_REFLECT_DERIVED(graphene::chain::vesting_balance_object, (graphene::db::object),
|
FC_REFLECT_DERIVED(graphene::chain::vesting_balance_object, (graphene::db::object),
|
||||||
(owner)
|
(owner)
|
||||||
(balance)
|
(balance)
|
||||||
|
|
|
||||||
|
|
@ -188,6 +188,8 @@ FC_REFLECT( graphene::chain::refund_worker_type, (total_burned) )
|
||||||
FC_REFLECT( graphene::chain::refund_worker_type::initializer, )
|
FC_REFLECT( graphene::chain::refund_worker_type::initializer, )
|
||||||
FC_REFLECT( graphene::chain::vesting_balance_worker_type, (balance) )
|
FC_REFLECT( graphene::chain::vesting_balance_worker_type, (balance) )
|
||||||
FC_REFLECT( graphene::chain::vesting_balance_worker_type::initializer, (pay_vesting_period_days) )
|
FC_REFLECT( graphene::chain::vesting_balance_worker_type::initializer, (pay_vesting_period_days) )
|
||||||
|
FC_REFLECT_TYPENAME( graphene::chain::worker_type )
|
||||||
|
FC_REFLECT_TYPENAME( graphene::chain::worker_initializer )
|
||||||
FC_REFLECT_DERIVED( graphene::chain::worker_object, (graphene::db::object),
|
FC_REFLECT_DERIVED( graphene::chain::worker_object, (graphene::db::object),
|
||||||
(worker_account)
|
(worker_account)
|
||||||
(work_begin_date)
|
(work_begin_date)
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,8 @@ namespace graphene { namespace db {
|
||||||
virtual vector<char> pack()const { return fc::raw::pack( static_cast<const DerivedClass&>(*this) ); }
|
virtual vector<char> pack()const { return fc::raw::pack( static_cast<const DerivedClass&>(*this) ); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef flat_map<uint8_t, object_id_type> annotation_map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class annotated_object
|
* @class annotated_object
|
||||||
* @brief An object that is easily extended by providing pointers to other objects, one for each space.
|
* @brief An object that is easily extended by providing pointers to other objects, one for each space.
|
||||||
|
|
@ -117,12 +119,11 @@ namespace graphene { namespace db {
|
||||||
* Annotations should be accessed via get_annotation and set_annotation so
|
* Annotations should be accessed via get_annotation and set_annotation so
|
||||||
* that they can be maintained in sorted order.
|
* that they can be maintained in sorted order.
|
||||||
*/
|
*/
|
||||||
flat_map<uint8_t,object_id_type> annotations;
|
annotation_map annotations;
|
||||||
};
|
};
|
||||||
|
|
||||||
} } // graphene::db
|
} } // graphene::db
|
||||||
|
|
||||||
|
FC_REFLECT_TYPENAME( graphene::db::annotation_map )
|
||||||
FC_REFLECT( graphene::db::object, (id) )
|
FC_REFLECT( graphene::db::object, (id) )
|
||||||
FC_REFLECT_DERIVED_TEMPLATE( (typename Derived), graphene::db::annotated_object<Derived>, (graphene::db::object), (annotations) )
|
FC_REFLECT_DERIVED_TEMPLATE( (typename Derived), graphene::db::annotated_object<Derived>, (graphene::db::object), (annotations) )
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue