ledger-core
EthereumLikeNetworkParameters.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from addresses.djinni
3 
4 #ifndef DJINNI_GENERATED_ETHEREUMLIKENETWORKPARAMETERS_HPP
5 #define DJINNI_GENERATED_ETHEREUMLIKENETWORKPARAMETERS_HPP
6 
7 #include <cstdint>
8 #include <iostream>
9 #include <string>
10 #include <utility>
11 #include <vector>
12 
13 namespace ledger { namespace core { namespace api {
14 
17  std::string Identifier;
19  std::string MessagePrefix;
21  std::string ChainID;
23  std::vector<uint8_t> XPUBVersion;
25  std::vector<std::string> AdditionalEIPs;
27  int64_t TimestampDelay;
28 
29  EthereumLikeNetworkParameters(std::string Identifier_,
30  std::string MessagePrefix_,
31  std::string ChainID_,
32  std::vector<uint8_t> XPUBVersion_,
33  std::vector<std::string> AdditionalEIPs_,
34  int64_t TimestampDelay_)
35  : Identifier(std::move(Identifier_))
36  , MessagePrefix(std::move(MessagePrefix_))
37  , ChainID(std::move(ChainID_))
38  , XPUBVersion(std::move(XPUBVersion_))
39  , AdditionalEIPs(std::move(AdditionalEIPs_))
40  , TimestampDelay(std::move(TimestampDelay_))
41  {}
42 
44  this->Identifier = cpy.Identifier;
45  this->MessagePrefix = cpy.MessagePrefix;
46  this->ChainID = cpy.ChainID;
47  this->XPUBVersion = cpy.XPUBVersion;
48  this->AdditionalEIPs = cpy.AdditionalEIPs;
49  this->TimestampDelay = cpy.TimestampDelay;
50  }
51 
53 
54 
56  this->Identifier = cpy.Identifier;
57  this->MessagePrefix = cpy.MessagePrefix;
58  this->ChainID = cpy.ChainID;
59  this->XPUBVersion = cpy.XPUBVersion;
60  this->AdditionalEIPs = cpy.AdditionalEIPs;
61  this->TimestampDelay = cpy.TimestampDelay;
62  return *this;
63  }
64 
65  template <class Archive>
66  void load(Archive& archive) {
67  archive(Identifier, MessagePrefix, ChainID, XPUBVersion, AdditionalEIPs, TimestampDelay);
68  }
69 
70  template <class Archive>
71  void save(Archive& archive) const {
72  archive(Identifier, MessagePrefix, ChainID, XPUBVersion, AdditionalEIPs, TimestampDelay);
73  }
74 };
75 
76 } } } // namespace ledger::core::api
77 #endif //DJINNI_GENERATED_ETHEREUMLIKENETWORKPARAMETERS_HPP
std::vector< std::string > AdditionalEIPs
Definition: EthereumLikeNetworkParameters.hpp:25
Definition: BitcoinLikeFeePolicy.hpp:29
std::vector< uint8_t > XPUBVersion
Definition: EthereumLikeNetworkParameters.hpp:23
std::string ChainID
Definition: EthereumLikeNetworkParameters.hpp:21
std::string MessagePrefix
Definition: EthereumLikeNetworkParameters.hpp:19
std::string Identifier
Definition: EthereumLikeNetworkParameters.hpp:17
int64_t TimestampDelay
Definition: EthereumLikeNetworkParameters.hpp:27
Definition: Account.cpp:8
Definition: EthereumLikeNetworkParameters.hpp:15