Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/util.h
Show All 13 Lines | |||||
#include <util/check.h> | #include <util/check.h> | ||||
#include <boost/variant.hpp> | #include <boost/variant.hpp> | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
class CChainParams; | class CChainParams; | ||||
class CKeyStore; | class CBasicKeyStore; | ||||
class CPubKey; | class CPubKey; | ||||
class CScript; | class CScript; | ||||
class UniValue; | class UniValue; | ||||
/** | /** | ||||
* Wrapper for UniValue::VType, which includes typeAny: used to denote don't | * Wrapper for UniValue::VType, which includes typeAny: used to denote don't | ||||
* care type. | * care type. | ||||
*/ | */ | ||||
Show All 36 Lines | |||||
extern Amount AmountFromValue(const UniValue &value); | extern Amount AmountFromValue(const UniValue &value); | ||||
extern std::string HelpExampleCli(const std::string &methodname, | extern std::string HelpExampleCli(const std::string &methodname, | ||||
const std::string &args); | const std::string &args); | ||||
extern std::string HelpExampleRpc(const std::string &methodname, | extern std::string HelpExampleRpc(const std::string &methodname, | ||||
const std::string &args); | const std::string &args); | ||||
CPubKey HexToPubKey(const std::string &hex_in); | CPubKey HexToPubKey(const std::string &hex_in); | ||||
CPubKey AddrToPubKey(const CChainParams &chainparams, CKeyStore *const keystore, | CPubKey AddrToPubKey(const CChainParams &chainparams, | ||||
CBasicKeyStore *const keystore, | |||||
const std::string &addr_in); | const std::string &addr_in); | ||||
CTxDestination AddAndGetMultisigDestination(const int required, | CTxDestination AddAndGetMultisigDestination(const int required, | ||||
const std::vector<CPubKey> &pubkeys, | const std::vector<CPubKey> &pubkeys, | ||||
OutputType type, | OutputType type, | ||||
CKeyStore &keystore, | CBasicKeyStore &keystore, | ||||
CScript &script_out); | CScript &script_out); | ||||
UniValue DescribeAddress(const CTxDestination &dest); | UniValue DescribeAddress(const CTxDestination &dest); | ||||
RPCErrorCode RPCErrorFromTransactionError(TransactionError terr); | RPCErrorCode RPCErrorFromTransactionError(TransactionError terr); | ||||
UniValue JSONRPCTransactionError(TransactionError terr, | UniValue JSONRPCTransactionError(TransactionError terr, | ||||
const std::string &err_string = ""); | const std::string &err_string = ""); | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |