2014-06-24 05:10:24 +02:00
|
|
|
#ifndef __BITCOIN_CORE_IO_H__
|
|
|
|
#define __BITCOIN_CORE_IO_H__
|
|
|
|
|
|
|
|
#include <string>
|
2014-08-01 08:32:41 +02:00
|
|
|
#include <vector>
|
2014-06-24 05:10:24 +02:00
|
|
|
|
2014-07-29 17:12:44 +02:00
|
|
|
class uint256;
|
2014-06-24 05:16:33 +02:00
|
|
|
class CScript;
|
2014-06-24 05:10:24 +02:00
|
|
|
class CTransaction;
|
2014-07-29 17:12:44 +02:00
|
|
|
class UniValue;
|
2014-06-24 05:10:24 +02:00
|
|
|
|
|
|
|
// core_read.cpp
|
2014-06-24 05:16:33 +02:00
|
|
|
extern CScript ParseScript(std::string s);
|
2014-06-24 05:10:24 +02:00
|
|
|
extern bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx);
|
2014-07-29 17:12:44 +02:00
|
|
|
extern uint256 ParseHashUV(const UniValue& v, const std::string& strName);
|
|
|
|
extern std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName);
|
2014-06-24 05:10:24 +02:00
|
|
|
|
|
|
|
// core_write.cpp
|
|
|
|
extern std::string EncodeHexTx(const CTransaction& tx);
|
2014-07-29 17:12:44 +02:00
|
|
|
extern void ScriptPubKeyToUniv(const CScript& scriptPubKey,
|
|
|
|
UniValue& out, bool fIncludeHex);
|
|
|
|
extern void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry);
|
2014-06-24 05:10:24 +02:00
|
|
|
|
|
|
|
#endif // __BITCOIN_CORE_IO_H__
|