Remove unused commands.js file
This commit is contained in:
@@ -1,85 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
addMultiSigAddress: 'addmultisigaddress',
|
|
||||||
addNode: 'addnode', // bitcoind v0.8.0+
|
|
||||||
backupWallet: 'backupwallet',
|
|
||||||
createMultiSig: 'createmultisig',
|
|
||||||
createRawTransaction: 'createrawtransaction', // bitcoind v0.7.0+
|
|
||||||
decodeRawTransaction: 'decoderawtransaction', // bitcoind v0.7.0+
|
|
||||||
decodeScript: 'decodescript',
|
|
||||||
dumpPrivKey: 'dumpprivkey',
|
|
||||||
dumpWallet: 'dumpwallet', // bitcoind v0.9.0+
|
|
||||||
encryptWallet: 'encryptwallet',
|
|
||||||
estimateFee: 'estimatefee', // bitcoind v0.10.0x
|
|
||||||
estimatePriority: 'estimatepriority', // bitcoind v0.10.0+
|
|
||||||
generate: 'generate', // bitcoind v0.11.0+
|
|
||||||
getAccount: 'getaccount',
|
|
||||||
getAccountAddress: 'getaccountaddress',
|
|
||||||
getAddedNodeInfo: 'getaddednodeinfo', // bitcoind v0.8.0+
|
|
||||||
getAddressesByAccount: 'getaddressesbyaccount',
|
|
||||||
getBalance: 'getbalance',
|
|
||||||
getBestBlockHash: 'getbestblockhash', // bitcoind v0.9.0+
|
|
||||||
getBlock: 'getblock',
|
|
||||||
getBlockchainInfo: 'getblockchaininfo', // bitcoind v0.9.2+
|
|
||||||
getBlockCount: 'getblockcount',
|
|
||||||
getBlockHash: 'getblockhash',
|
|
||||||
getBlockTemplate: 'getblocktemplate', // bitcoind v0.7.0+
|
|
||||||
getChainTips: 'getchaintips', // bitcoind v0.10.0+
|
|
||||||
getConnectionCount: 'getconnectioncount',
|
|
||||||
getDifficulty: 'getdifficulty',
|
|
||||||
getGenerate: 'getgenerate',
|
|
||||||
getInfo: 'getinfo',
|
|
||||||
getMempoolInfo: 'getmempoolinfo', // bitcoind v0.10+
|
|
||||||
getMiningInfo: 'getmininginfo',
|
|
||||||
getNetTotals: 'getnettotals',
|
|
||||||
getNetworkInfo: 'getnetworkinfo', // bitcoind v0.9.2+
|
|
||||||
getNetworkHashPs: 'getnetworkhashps', // bitcoind v0.9.0+
|
|
||||||
getNewAddress: 'getnewaddress',
|
|
||||||
getPeerInfo: 'getpeerinfo', // bitcoind v0.7.0+
|
|
||||||
getRawChangeAddress: 'getrawchangeaddress', // bitcoin v0.9+
|
|
||||||
getRawMemPool: 'getrawmempool', // bitcoind v0.7.0+
|
|
||||||
getRawTransaction: 'getrawtransaction', // bitcoind v0.7.0+
|
|
||||||
getReceivedByAccount: 'getreceivedbyaccount',
|
|
||||||
getReceivedByAddress: 'getreceivedbyaddress',
|
|
||||||
getTransaction: 'gettransaction',
|
|
||||||
getTxOut: 'gettxout', // bitcoind v0.7.0+
|
|
||||||
getTxOutProof: 'gettxoutproof', // bitcoind v0.11.0+
|
|
||||||
getTxOutSetInfo: 'gettxoutsetinfo', // bitcoind v0.7.0+
|
|
||||||
getUnconfirmedBalance: 'getunconfirmedbalance', // bitcoind v0.9.0+
|
|
||||||
getWalletInfo: 'getwalletinfo', // bitcoind v0.9.2+
|
|
||||||
help: 'help',
|
|
||||||
importAddress: 'importaddress', // bitcoind v0.10.0+
|
|
||||||
importPrivKey: 'importprivkey',
|
|
||||||
importWallet: 'importwallet', // bitcoind v0.9.0+
|
|
||||||
keypoolRefill: 'keypoolrefill',
|
|
||||||
keyPoolRefill: 'keypoolrefill',
|
|
||||||
listAccounts: 'listaccounts',
|
|
||||||
listAddressGroupings: 'listaddressgroupings', // bitcoind v0.7.0+
|
|
||||||
listLockUnspent: 'listlockunspent', // bitcoind v0.8.0+
|
|
||||||
listReceivedByAccount: 'listreceivedbyaccount',
|
|
||||||
listReceivedByAddress: 'listreceivedbyaddress',
|
|
||||||
listSinceBlock: 'listsinceblock',
|
|
||||||
listTransactions: 'listtransactions',
|
|
||||||
listUnspent: 'listunspent', // bitcoind v0.7.0+
|
|
||||||
lockUnspent: 'lockunspent', // bitcoind v0.8.0+
|
|
||||||
move: 'move',
|
|
||||||
ping: 'ping', // bitcoind v0.9.0+
|
|
||||||
prioritiseTransaction: 'prioritisetransaction', // bitcoind v0.10.0+
|
|
||||||
sendFrom: 'sendfrom',
|
|
||||||
sendMany: 'sendmany',
|
|
||||||
sendRawTransaction: 'sendrawtransaction', // bitcoind v0.7.0+
|
|
||||||
sendToAddress: 'sendtoaddress',
|
|
||||||
setAccount: 'setaccount',
|
|
||||||
setGenerate: 'setgenerate',
|
|
||||||
setTxFee: 'settxfee',
|
|
||||||
signMessage: 'signmessage',
|
|
||||||
signRawTransaction: 'signrawtransaction', // bitcoind v0.7.0+
|
|
||||||
stop: 'stop',
|
|
||||||
submitBlock: 'submitblock', // bitcoind v0.7.0+
|
|
||||||
validateAddress: 'validateaddress',
|
|
||||||
verifyChain: 'verifychain', // bitcoind v0.9.0+
|
|
||||||
verifyMessage: 'verifymessage',
|
|
||||||
verifyTxOutProof: 'verifytxoutproof', // bitcoind v0.11.0+
|
|
||||||
walletLock: 'walletlock',
|
|
||||||
walletPassphrase: 'walletpassphrase',
|
|
||||||
walletPassphraseChange: 'walletpassphrasechange'
|
|
||||||
};
|
|
||||||
-12
@@ -1,4 +1,3 @@
|
|||||||
var commands = require('./commands');
|
|
||||||
var rpc = require('./jsonrpc');
|
var rpc = require('./jsonrpc');
|
||||||
|
|
||||||
function Client(opts) {
|
function Client(opts) {
|
||||||
@@ -31,15 +30,4 @@ function callRpc (cmd, args, rpc) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
(function() {
|
|
||||||
for (var protoFn in commands) {
|
|
||||||
(function(protoFn) {
|
|
||||||
Client.prototype[protoFn] = function() {
|
|
||||||
var args = [].slice.call(arguments);
|
|
||||||
callRpc(commands[protoFn], args, this.rpc);
|
|
||||||
};
|
|
||||||
})(protoFn);
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
|
|
||||||
module.exports.Client = Client;
|
module.exports.Client = Client;
|
||||||
Reference in New Issue
Block a user