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() {
|
func init() {
|
||||||
btcjson.RegisterCustomCmd("createencryptedwallet", parseCreateEncryptedWalletCmd)
|
btcjson.RegisterCustomCmd("createencryptedwallet",
|
||||||
btcjson.RegisterCustomCmd("exportwatchingwallet", parseExportWatchingWalletCmd)
|
parseCreateEncryptedWalletCmd, `TODO(jrick) fillmein`)
|
||||||
btcjson.RegisterCustomCmd("getaddressbalance", parseGetAddressBalanceCmd)
|
btcjson.RegisterCustomCmd("exportwatchingwallet",
|
||||||
btcjson.RegisterCustomCmd("getbestblock", parseGetBestBlockCmd)
|
parseExportWatchingWalletCmd, `TODO(jrick) fillmein`)
|
||||||
btcjson.RegisterCustomCmd("getcurrentnet", parseGetCurrentNetCmd)
|
btcjson.RegisterCustomCmd("getaddressbalance",
|
||||||
btcjson.RegisterCustomCmd("getunconfirmedbalance", parseGetUnconfirmedBalanceCmd)
|
parseGetAddressBalanceCmd, `TODO(jrick) fillmein`)
|
||||||
btcjson.RegisterCustomCmd("listaddresstransactions", parseListAddressTransactionsCmd)
|
btcjson.RegisterCustomCmd("getbestblock", parseGetBestBlockCmd,
|
||||||
btcjson.RegisterCustomCmd("listalltransactions", parseListAllTransactionsCmd)
|
`TODO(jrick) fillmein`)
|
||||||
btcjson.RegisterCustomCmd("notifyblocks", parseNotifyBlocksCmd)
|
btcjson.RegisterCustomCmd("getcurrentnet", parseGetCurrentNetCmd,
|
||||||
btcjson.RegisterCustomCmd("notifynewtxs", parseNotifyNewTXsCmd)
|
`TODO(jrick) fillmein`)
|
||||||
btcjson.RegisterCustomCmd("notifyspent", parseNotifySpentCmd)
|
btcjson.RegisterCustomCmd("getunconfirmedbalance",
|
||||||
btcjson.RegisterCustomCmd("rescan", parseRescanCmd)
|
parseGetUnconfirmedBalanceCmd, `TODO(jrick) fillmein`)
|
||||||
btcjson.RegisterCustomCmd("walletislocked", parseWalletIsLockedCmd)
|
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
|
// GetCurrentNetCmd is a type handling custom marshaling and
|
||||||
|
|
|
@ -57,15 +57,24 @@ const (
|
||||||
|
|
||||||
// Register notifications with btcjson.
|
// Register notifications with btcjson.
|
||||||
func init() {
|
func init() {
|
||||||
btcjson.RegisterCustomCmd(AccountBalanceNtfnMethod, parseAccountBalanceNtfn)
|
btcjson.RegisterCustomCmd(AccountBalanceNtfnMethod,
|
||||||
btcjson.RegisterCustomCmd(BlockConnectedNtfnMethod, parseBlockConnectedNtfn)
|
parseAccountBalanceNtfn, `TODO(jrick) fillmein`)
|
||||||
btcjson.RegisterCustomCmd(BlockDisconnectedNtfnMethod, parseBlockDisconnectedNtfn)
|
btcjson.RegisterCustomCmd(BlockConnectedNtfnMethod,
|
||||||
btcjson.RegisterCustomCmd(BtcdConnectedNtfnMethod, parseBtcdConnectedNtfn)
|
parseBlockConnectedNtfn, `TODO(jrick) fillmein`)
|
||||||
btcjson.RegisterCustomCmd(ProcessedTxNtfnMethod, parseProcessedTxNtfn)
|
btcjson.RegisterCustomCmd(BlockDisconnectedNtfnMethod,
|
||||||
btcjson.RegisterCustomCmd(TxMinedNtfnMethod, parseTxMinedNtfn)
|
parseBlockDisconnectedNtfn, `TODO(jrick) fillmein`)
|
||||||
btcjson.RegisterCustomCmd(TxSpentNtfnMethod, parseTxSpentNtfn)
|
btcjson.RegisterCustomCmd(BtcdConnectedNtfnMethod,
|
||||||
btcjson.RegisterCustomCmd(TxNtfnMethod, parseTxNtfn)
|
parseBtcdConnectedNtfn, `TODO(jrick) fillmein`)
|
||||||
btcjson.RegisterCustomCmd(WalletLockStateNtfnMethod, parseWalletLockStateNtfn)
|
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
|
// AccountBalanceNtfn is a type handling custom marshaling and
|
||||||
|
|
Loading…
Reference in a new issue