ledger-core
BitcoinLikeNetworkParameters.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from addresses.djinni
3 
4 #ifndef DJINNI_GENERATED_BITCOINLIKENETWORKPARAMETERS_HPP
5 #define DJINNI_GENERATED_BITCOINLIKENETWORKPARAMETERS_HPP
6 
7 #include "BitcoinLikeFeePolicy.hpp"
8 #include <cstdint>
9 #include <iostream>
10 #include <string>
11 #include <utility>
12 #include <vector>
13 
14 namespace ledger { namespace core { namespace api {
15 
19  std::string Identifier;
21  std::vector<uint8_t> P2PKHVersion;
23  std::vector<uint8_t> P2SHVersion;
25  std::vector<uint8_t> XPUBVersion;
27  BitcoinLikeFeePolicy FeePolicy;
29  int64_t DustAmount;
31  std::string MessagePrefix;
35  int64_t TimestampDelay;
37  std::vector<uint8_t> SigHash;
39  std::vector<std::string> AdditionalBIPs;
40 
41  BitcoinLikeNetworkParameters(std::string Identifier_,
42  std::vector<uint8_t> P2PKHVersion_,
43  std::vector<uint8_t> P2SHVersion_,
44  std::vector<uint8_t> XPUBVersion_,
45  BitcoinLikeFeePolicy FeePolicy_,
46  int64_t DustAmount_,
47  std::string MessagePrefix_,
48  bool UsesTimestampedTransaction_,
49  int64_t TimestampDelay_,
50  std::vector<uint8_t> SigHash_,
51  std::vector<std::string> AdditionalBIPs_)
52  : Identifier(std::move(Identifier_))
53  , P2PKHVersion(std::move(P2PKHVersion_))
54  , P2SHVersion(std::move(P2SHVersion_))
55  , XPUBVersion(std::move(XPUBVersion_))
56  , FeePolicy(std::move(FeePolicy_))
57  , DustAmount(std::move(DustAmount_))
58  , MessagePrefix(std::move(MessagePrefix_))
59  , UsesTimestampedTransaction(std::move(UsesTimestampedTransaction_))
60  , TimestampDelay(std::move(TimestampDelay_))
61  , SigHash(std::move(SigHash_))
62  , AdditionalBIPs(std::move(AdditionalBIPs_))
63  {}
64 
66  this->Identifier = cpy.Identifier;
67  this->P2PKHVersion = cpy.P2PKHVersion;
68  this->P2SHVersion = cpy.P2SHVersion;
69  this->XPUBVersion = cpy.XPUBVersion;
70  this->FeePolicy = cpy.FeePolicy;
71  this->DustAmount = cpy.DustAmount;
72  this->MessagePrefix = cpy.MessagePrefix;
73  this->UsesTimestampedTransaction = cpy.UsesTimestampedTransaction;
74  this->TimestampDelay = cpy.TimestampDelay;
75  this->SigHash = cpy.SigHash;
76  this->AdditionalBIPs = cpy.AdditionalBIPs;
77  }
78 
79  BitcoinLikeNetworkParameters() = default;
80 
81 
83  this->Identifier = cpy.Identifier;
84  this->P2PKHVersion = cpy.P2PKHVersion;
85  this->P2SHVersion = cpy.P2SHVersion;
86  this->XPUBVersion = cpy.XPUBVersion;
87  this->FeePolicy = cpy.FeePolicy;
88  this->DustAmount = cpy.DustAmount;
89  this->MessagePrefix = cpy.MessagePrefix;
90  this->UsesTimestampedTransaction = cpy.UsesTimestampedTransaction;
91  this->TimestampDelay = cpy.TimestampDelay;
92  this->SigHash = cpy.SigHash;
93  this->AdditionalBIPs = cpy.AdditionalBIPs;
94  return *this;
95  }
96 
97  template <class Archive>
98  void load(Archive& archive) {
99  archive(Identifier, P2PKHVersion, P2SHVersion, XPUBVersion, FeePolicy, DustAmount, MessagePrefix, UsesTimestampedTransaction, TimestampDelay, SigHash, AdditionalBIPs);
100  }
101 
102  template <class Archive>
103  void save(Archive& archive) const {
104  archive(Identifier, P2PKHVersion, P2SHVersion, XPUBVersion, FeePolicy, DustAmount, MessagePrefix, UsesTimestampedTransaction, TimestampDelay, SigHash, AdditionalBIPs);
105  }
106 };
107 
108 } } } // namespace ledger::core::api
109 #endif //DJINNI_GENERATED_BITCOINLIKENETWORKPARAMETERS_HPP
std::vector< uint8_t > P2SHVersion
Definition: BitcoinLikeNetworkParameters.hpp:23
std::string MessagePrefix
Definition: BitcoinLikeNetworkParameters.hpp:31
std::vector< uint8_t > SigHash
Definition: BitcoinLikeNetworkParameters.hpp:37
std::vector< uint8_t > XPUBVersion
Definition: BitcoinLikeNetworkParameters.hpp:25
Definition: BitcoinLikeFeePolicy.hpp:29
std::vector< std::string > AdditionalBIPs
Definition: BitcoinLikeNetworkParameters.hpp:39
std::string Identifier
Definition: BitcoinLikeNetworkParameters.hpp:19
int64_t DustAmount
Definition: BitcoinLikeNetworkParameters.hpp:29
std::vector< uint8_t > P2PKHVersion
Definition: BitcoinLikeNetworkParameters.hpp:21
Definition: Account.cpp:8
BitcoinLikeFeePolicy FeePolicy
Definition: BitcoinLikeNetworkParameters.hpp:27
bool UsesTimestampedTransaction
Definition: BitcoinLikeNetworkParameters.hpp:33
int64_t TimestampDelay
Definition: BitcoinLikeNetworkParameters.hpp:35
Definition: BitcoinLikeNetworkParameters.hpp:17