ledger-core
BitcoinLikeTransactionRequest.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from bitcoin_like_wallet.djinni
3 
4 #ifndef DJINNI_GENERATED_BITCOINLIKETRANSACTIONREQUEST_HPP
5 #define DJINNI_GENERATED_BITCOINLIKETRANSACTIONREQUEST_HPP
6 
7 #include "../utils/optional.hpp"
8 #include <cstdint>
9 #include <iostream>
10 #include <memory>
11 #include <utility>
12 #include <vector>
13 
14 namespace ledger { namespace core { namespace api {
15 
16 class Amount;
17 class BitcoinLikeOutput;
18 
22  std::vector<std::shared_ptr<BitcoinLikeOutput>> utxo;
24  std::vector<std::shared_ptr<BitcoinLikeOutput>> outputs;
26  std::shared_ptr<Amount> baseFees;
28  std::shared_ptr<Amount> totalFees;
31 
32  BitcoinLikeTransactionRequest(std::vector<std::shared_ptr<BitcoinLikeOutput>> utxo_,
33  std::vector<std::shared_ptr<BitcoinLikeOutput>> outputs_,
34  std::shared_ptr<Amount> baseFees_,
35  std::shared_ptr<Amount> totalFees_,
37  : utxo(std::move(utxo_))
38  , outputs(std::move(outputs_))
39  , baseFees(std::move(baseFees_))
40  , totalFees(std::move(totalFees_))
41  , lockTime(std::move(lockTime_))
42  {}
43 
45  this->utxo = cpy.utxo;
46  this->outputs = cpy.outputs;
47  this->baseFees = cpy.baseFees;
48  this->totalFees = cpy.totalFees;
49  this->lockTime = cpy.lockTime;
50  }
51 
53 
54 
56  this->utxo = cpy.utxo;
57  this->outputs = cpy.outputs;
58  this->baseFees = cpy.baseFees;
59  this->totalFees = cpy.totalFees;
60  this->lockTime = cpy.lockTime;
61  return *this;
62  }
63 
64  template <class Archive>
65  void load(Archive& archive) {
66  archive(utxo, outputs, baseFees, totalFees, lockTime);
67  }
68 
69  template <class Archive>
70  void save(Archive& archive) const {
71  archive(utxo, outputs, baseFees, totalFees, lockTime);
72  }
73 };
74 
75 } } } // namespace ledger::core::api
76 #endif //DJINNI_GENERATED_BITCOINLIKETRANSACTIONREQUEST_HPP
std::experimental::optional< int32_t > lockTime
Definition: BitcoinLikeTransactionRequest.hpp:30
Definition: BitcoinLikeFeePolicy.hpp:29
std::shared_ptr< Amount > totalFees
Definition: BitcoinLikeTransactionRequest.hpp:28
std::vector< std::shared_ptr< BitcoinLikeOutput > > outputs
Definition: BitcoinLikeTransactionRequest.hpp:24
std::vector< std::shared_ptr< BitcoinLikeOutput > > utxo
Definition: BitcoinLikeTransactionRequest.hpp:22
std::shared_ptr< Amount > baseFees
Definition: BitcoinLikeTransactionRequest.hpp:26
Definition: Account.cpp:8
Definition: BitcoinLikeTransactionRequest.hpp:20