]> Git Repo - VerusCoin.git/blame - src/core_io.h
use const references where appropriate
[VerusCoin.git] / src / core_io.h
CommitLineData
f914f1a7 1// Copyright (c) 2009-2014 The Bitcoin Core developers
78253fcb 2// Distributed under the MIT software license, see the accompanying
2b600992
PK
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
3dcbb9b6 11class CBlock;
b2aeaa79 12class CScript;
ae775b5b 13class CTransaction;
611116d4 14class uint256;
cbe39a38 15class UniValue;
ae775b5b
JG
16
17// core_read.cpp
db954a65 18extern CScript ParseScript(const std::string& s);
ae775b5b 19extern bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx);
3dcbb9b6 20extern bool DecodeHexBlk(CBlock&, const std::string& strHexBlk);
cbe39a38 21extern uint256 ParseHashUV(const UniValue& v, const std::string& strName);
7f718139 22extern uint256 ParseHashStr(const std::string&, const std::string& strName);
cbe39a38 23extern std::vector<unsigned char> ParseHexUV(const UniValue& v, const std::string& strName);
ae775b5b
JG
24
25// core_write.cpp
8138cbea 26extern std::string FormatScript(const CScript& script);
ae775b5b 27extern std::string EncodeHexTx(const CTransaction& tx);
cbe39a38
JG
28extern void ScriptPubKeyToUniv(const CScript& scriptPubKey,
29 UniValue& out, bool fIncludeHex);
30extern void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry);
ae775b5b 31
84738627 32#endif // BITCOIN_CORE_IO_H
This page took 0.095184 seconds and 4 git commands to generate.