Line data Source code
1 : /**
2 : * Copyright Soramitsu Co., Ltd. All Rights Reserved.
3 : * SPDX-License-Identifier: Apache-2.0
4 : */
5 :
6 : #include "backend/protobuf/commands/proto_remove_signatory.hpp"
7 :
8 : namespace shared_model {
9 : namespace proto {
10 :
11 : template <typename CommandType>
12 : RemoveSignatory::RemoveSignatory(CommandType &&command)
13 108 : : CopyableProto(std::forward<CommandType>(command)),
14 108 : remove_signatory_{proto_->remove_signatory()},
15 : pubkey_{[this] {
16 64 : return interface::types::PubkeyType(remove_signatory_.public_key());
17 108 : }} {}
18 :
19 : template RemoveSignatory::RemoveSignatory(RemoveSignatory::TransportType &);
20 : template RemoveSignatory::RemoveSignatory(
21 : const RemoveSignatory::TransportType &);
22 : template RemoveSignatory::RemoveSignatory(
23 : RemoveSignatory::TransportType &&);
24 :
25 : RemoveSignatory::RemoveSignatory(const RemoveSignatory &o)
26 0 : : RemoveSignatory(o.proto_) {}
27 :
28 : RemoveSignatory::RemoveSignatory(RemoveSignatory &&o) noexcept
29 108 : : RemoveSignatory(std::move(o.proto_)) {}
30 :
31 : const interface::types::AccountIdType &RemoveSignatory::accountId() const {
32 75 : return remove_signatory_.account_id();
33 : }
34 :
35 : const interface::types::PubkeyType &RemoveSignatory::pubkey() const {
36 75 : return *pubkey_;
37 : }
38 :
39 : } // namespace proto
40 : } // namespace shared_model
|