Skip to content

Commit bc5c34b

Browse files
[BSIP40] Add external serializations
See https://github.com/bitshares/bitshares-core/pull/ 2093#discussion_r399386266
1 parent e22436f commit bc5c34b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

libraries/protocol/custom_authority.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,10 @@ void custom_authority_delete_operation::validate()const {
9898
}
9999

100100
} } // graphene::protocol
101+
102+
GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(graphene::protocol::custom_authority_create_operation::fee_parameters_type)
103+
GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(graphene::protocol::custom_authority_update_operation::fee_parameters_type)
104+
GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(graphene::protocol::custom_authority_delete_operation::fee_parameters_type)
105+
GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(graphene::protocol::custom_authority_create_operation)
106+
GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(graphene::protocol::custom_authority_update_operation)
107+
GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(graphene::protocol::custom_authority_delete_operation)

libraries/protocol/include/graphene/protocol/custom_authority.hpp

+7
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,10 @@ FC_REFLECT(graphene::protocol::custom_authority_update_operation,
134134
(fee)(account)(authority_to_update)(new_enabled)(new_valid_from)
135135
(new_valid_to)(new_auth)(restrictions_to_remove)(restrictions_to_add)(extensions))
136136
FC_REFLECT(graphene::protocol::custom_authority_delete_operation, (fee)(account)(authority_to_delete)(extensions))
137+
138+
GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(graphene::protocol::custom_authority_create_operation::fee_parameters_type)
139+
GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(graphene::protocol::custom_authority_update_operation::fee_parameters_type)
140+
GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(graphene::protocol::custom_authority_delete_operation::fee_parameters_type)
141+
GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(graphene::protocol::custom_authority_create_operation)
142+
GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(graphene::protocol::custom_authority_update_operation)
143+
GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(graphene::protocol::custom_authority_delete_operation)

0 commit comments

Comments
 (0)