32 #ifndef LEDGER_CORE_BITCOINLIKEWRITABLEINPUTAPI_H 33 #define LEDGER_CORE_BITCOINLIKEWRITABLEINPUTAPI_H 35 #include <api/BitcoinLikeInput.hpp> 36 #include <wallet/bitcoin/BitcoinLikeAccount.hpp> 37 #include <wallet/common/api_impl/DerivationPathApi.h> 38 #include <wallet/bitcoin/scripts/BitcoinLikeScript.h> 46 const std::shared_ptr<ledger::core::BitcoinLikeBlockchainExplorer>& explorer,
47 const std::shared_ptr<api::ExecutionContext>& context,
49 const std::vector<std::vector<uint8_t> >& pubKeys,
50 const std::vector<std::shared_ptr<api::DerivationPath>>& paths,
51 const std::string& address,
52 const std::shared_ptr<api::Amount>& amount,
53 const std::string& previousTxHash,
55 const std::vector<uint8_t>& scriptSig,
56 const std::shared_ptr<api::BitcoinLikeOutput>& previousOutput,
57 const std::string &keychainEngine =
"" 61 std::shared_ptr<api::Amount>
getValue()
override;
72 void setScriptSig(
const std::vector<uint8_t> &scriptSig)
override;
76 void getPreviousTransaction(
const std::shared_ptr<api::BinaryCallback> &callback)
override;
83 std::shared_ptr<ledger::core::BitcoinLikeBlockchainExplorer> _explorer;
84 std::shared_ptr<ledger::core::api::ExecutionContext> _context;
86 std::vector<std::vector<uint8_t> > _pubKeys;
87 std::vector<std::shared_ptr<api::DerivationPath>> _paths;
89 std::shared_ptr<api::Amount> _amount;
90 std::string _previousHash;
93 std::shared_ptr<api::BitcoinLikeOutput> _previousScript;
99 #endif //LEDGER_CORE_BITCOINLIKEWRITABLEINPUTAPI_H
Definition: Deffered.hpp:49
Definition: BitcoinLikeScript.h:94
Definition: Account.cpp:8
Definition: optional.hpp:177