]>
Commit | Line | Data |
---|---|---|
2b600992 PK |
1 | // Copyright (c) 2009-2014 The Bitcoin developers |
2 | // Distributed under the MIT/X11 software license, see the accompanying | |
3 | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
4 | ||
84738627 PJ |
5 | #ifndef BITCOIN_CORE_IO_H |
6 | #define BITCOIN_CORE_IO_H | |
ae775b5b JG |
7 | |
8 | #include <string> | |
1b73d36b | 9 | #include <vector> |
ae775b5b | 10 | |
b2aeaa79 | 11 | class CScript; |
ae775b5b | 12 | class CTransaction; |
611116d4 | 13 | class uint256; |
cbe39a38 | 14 | class UniValue; |
ae775b5b JG |
15 | |
16 | // core_read.cpp | |
b2aeaa79 | 17 | extern CScript ParseScript(std::string s); |
ae775b5b | 18 | extern bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx); |
cbe39a38 JG |
19 | extern uint256 ParseHashUV(const UniValue& v, const std::string& strName); |
20 | extern std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName); | |
ae775b5b JG |
21 | |
22 | // core_write.cpp | |
8138cbea | 23 | extern std::string FormatScript(const CScript& script); |
ae775b5b | 24 | extern std::string EncodeHexTx(const CTransaction& tx); |
cbe39a38 JG |
25 | extern void ScriptPubKeyToUniv(const CScript& scriptPubKey, |
26 | UniValue& out, bool fIncludeHex); | |
27 | extern void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry); | |
ae775b5b | 28 | |
84738627 | 29 | #endif // BITCOIN_CORE_IO_H |