Skip to content

Commit a729b64

Browse files
authored
Merge pull request #2474 from bitshares/refactor-reflection
Move samet_fund_object reflection into cpp file
2 parents 8fa5eeb + 82c1f5d commit a729b64

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

libraries/chain/include/graphene/chain/asset_object.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ MAP_OBJECT_ID_TO_TYPE(graphene::chain::asset_bitasset_data_object)
416416
FC_REFLECT_DERIVED( graphene::chain::price_feed_with_icr, (graphene::protocol::price_feed),
417417
(initial_collateral_ratio) )
418418

419+
// Note: this is left here but not moved to a cpp file due to the extended_asset_object struct in API.
419420
FC_REFLECT_DERIVED( graphene::chain::asset_object, (graphene::db::object),
420421
(symbol)
421422
(precision)

libraries/chain/include/graphene/chain/liquidity_pool_object.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ typedef generic_index<liquidity_pool_object, liquidity_pool_multi_index_type> li
107107

108108
MAP_OBJECT_ID_TO_TYPE( graphene::chain::liquidity_pool_object )
109109

110+
// Note: this is left here but not moved to a cpp file due to the extended_liquidity_pool_object struct in API.
110111
FC_REFLECT_DERIVED( graphene::chain::liquidity_pool_object, (graphene::db::object),
111112
(asset_a)
112113
(asset_b)

libraries/chain/include/graphene/chain/samet_fund_object.hpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ using samet_fund_index = generic_index<samet_fund_object, samet_fund_multi_index
9191

9292
MAP_OBJECT_ID_TO_TYPE( graphene::chain::samet_fund_object )
9393

94-
FC_REFLECT_DERIVED( graphene::chain::samet_fund_object, (graphene::db::object),
95-
(owner_account)
96-
(asset_type)
97-
(balance)
98-
(fee_rate)
99-
(unpaid_amount)
100-
)
94+
FC_REFLECT_TYPENAME( graphene::chain::samet_fund_object )
10195

10296
GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION( graphene::chain::samet_fund_object )

libraries/chain/small_objects.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,13 @@ FC_REFLECT_DERIVED_NO_TYPENAME( graphene::chain::custom_authority_object, (graph
201201
(account)(enabled)(valid_from)(valid_to)(operation_type)
202202
(auth)(restrictions)(restriction_counter) )
203203

204+
FC_REFLECT_DERIVED_NO_TYPENAME( graphene::chain::samet_fund_object, (graphene::db::object),
205+
(owner_account)
206+
(asset_type)
207+
(balance)
208+
(fee_rate)
209+
(unpaid_amount)
210+
)
204211

205212
GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION( graphene::chain::balance_object )
206213
GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION( graphene::chain::block_summary_object )

0 commit comments

Comments
 (0)