Adapt to btcjson api changes.
Add placeholder help text for all the json types that btcws adds. Jrick will fill them in when he adds documentation.
This commit is contained in:
parent
e745fffb83
commit
7e1c44369c
2 changed files with 44 additions and 22 deletions
39
cmds.go
39
cmds.go
|
@ -13,19 +13,32 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
btcjson.RegisterCustomCmd("createencryptedwallet", parseCreateEncryptedWalletCmd)
|
||||
btcjson.RegisterCustomCmd("exportwatchingwallet", parseExportWatchingWalletCmd)
|
||||
btcjson.RegisterCustomCmd("getaddressbalance", parseGetAddressBalanceCmd)
|
||||
btcjson.RegisterCustomCmd("getbestblock", parseGetBestBlockCmd)
|
||||
btcjson.RegisterCustomCmd("getcurrentnet", parseGetCurrentNetCmd)
|
||||
btcjson.RegisterCustomCmd("getunconfirmedbalance", parseGetUnconfirmedBalanceCmd)
|
||||
btcjson.RegisterCustomCmd("listaddresstransactions", parseListAddressTransactionsCmd)
|
||||
btcjson.RegisterCustomCmd("listalltransactions", parseListAllTransactionsCmd)
|
||||
btcjson.RegisterCustomCmd("notifyblocks", parseNotifyBlocksCmd)
|
||||
btcjson.RegisterCustomCmd("notifynewtxs", parseNotifyNewTXsCmd)
|
||||
btcjson.RegisterCustomCmd("notifyspent", parseNotifySpentCmd)
|
||||
btcjson.RegisterCustomCmd("rescan", parseRescanCmd)
|
||||
btcjson.RegisterCustomCmd("walletislocked", parseWalletIsLockedCmd)
|
||||
btcjson.RegisterCustomCmd("createencryptedwallet",
|
||||
parseCreateEncryptedWalletCmd, `TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd("exportwatchingwallet",
|
||||
parseExportWatchingWalletCmd, `TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd("getaddressbalance",
|
||||
parseGetAddressBalanceCmd, `TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd("getbestblock", parseGetBestBlockCmd,
|
||||
`TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd("getcurrentnet", parseGetCurrentNetCmd,
|
||||
`TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd("getunconfirmedbalance",
|
||||
parseGetUnconfirmedBalanceCmd, `TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd("listaddresstransactions",
|
||||
parseListAddressTransactionsCmd, `TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd("listalltransactions",
|
||||
parseListAllTransactionsCmd, `TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd("notifyblocks", parseNotifyBlocksCmd,
|
||||
`TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd("notifynewtxs", parseNotifyNewTXsCmd,
|
||||
`TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd("notifyspent", parseNotifySpentCmd,
|
||||
`TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd("rescan", parseRescanCmd,
|
||||
`TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd("walletislocked", parseWalletIsLockedCmd,
|
||||
`TODO(jrick) fillmein`)
|
||||
}
|
||||
|
||||
// GetCurrentNetCmd is a type handling custom marshaling and
|
||||
|
|
|
@ -57,15 +57,24 @@ const (
|
|||
|
||||
// Register notifications with btcjson.
|
||||
func init() {
|
||||
btcjson.RegisterCustomCmd(AccountBalanceNtfnMethod, parseAccountBalanceNtfn)
|
||||
btcjson.RegisterCustomCmd(BlockConnectedNtfnMethod, parseBlockConnectedNtfn)
|
||||
btcjson.RegisterCustomCmd(BlockDisconnectedNtfnMethod, parseBlockDisconnectedNtfn)
|
||||
btcjson.RegisterCustomCmd(BtcdConnectedNtfnMethod, parseBtcdConnectedNtfn)
|
||||
btcjson.RegisterCustomCmd(ProcessedTxNtfnMethod, parseProcessedTxNtfn)
|
||||
btcjson.RegisterCustomCmd(TxMinedNtfnMethod, parseTxMinedNtfn)
|
||||
btcjson.RegisterCustomCmd(TxSpentNtfnMethod, parseTxSpentNtfn)
|
||||
btcjson.RegisterCustomCmd(TxNtfnMethod, parseTxNtfn)
|
||||
btcjson.RegisterCustomCmd(WalletLockStateNtfnMethod, parseWalletLockStateNtfn)
|
||||
btcjson.RegisterCustomCmd(AccountBalanceNtfnMethod,
|
||||
parseAccountBalanceNtfn, `TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd(BlockConnectedNtfnMethod,
|
||||
parseBlockConnectedNtfn, `TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd(BlockDisconnectedNtfnMethod,
|
||||
parseBlockDisconnectedNtfn, `TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd(BtcdConnectedNtfnMethod,
|
||||
parseBtcdConnectedNtfn, `TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd(ProcessedTxNtfnMethod,
|
||||
parseProcessedTxNtfn, `TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd(TxMinedNtfnMethod, parseTxMinedNtfn,
|
||||
`TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd(TxSpentNtfnMethod, parseTxSpentNtfn,
|
||||
`TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd(TxNtfnMethod, parseTxNtfn,
|
||||
`TODO(jrick) fillmein`)
|
||||
btcjson.RegisterCustomCmd(WalletLockStateNtfnMethod,
|
||||
parseWalletLockStateNtfn, `TODO(jrick) fillmein`)
|
||||
}
|
||||
|
||||
// AccountBalanceNtfn is a type handling custom marshaling and
|
||||
|
|
Loading…
Reference in a new issue