-
Notifications
You must be signed in to change notification settings - Fork 4
/
nmcjson.go
17 lines (15 loc) · 1.01 KB
/
nmcjson.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package nmcjson
import (
"github.com/btcsuite/btcd/btcjson"
)
// Init registers the NMC-specific commands with btcjson.
func Init() {
btcjson.RegisterCustomCmd("name_new", NameNewFromRaw, NameNewReplyParse, nmcHelpStrings["name_new"])
btcjson.RegisterCustomCmd("name_update", NameUpdateFromRaw, NameUpdateReplyParse, nmcHelpStrings["name_update"])
btcjson.RegisterCustomCmd("name_firstupdate", NameFirstUpdateFromRaw, NameFirstUpdateReplyParse, nmcHelpStrings["name_firstupdate"])
btcjson.RegisterCustomCmd("name_list", NameListFromRaw, NameListReplyParse, nmcHelpStrings["name_list"])
btcjson.RegisterCustomCmd("name_history", NameHistoryFromRaw, NameHistoryReplyParse, nmcHelpStrings["name_history"])
btcjson.RegisterCustomCmd("name_show", NameShowFromRaw, NameShowReplyParse, nmcHelpStrings["name_show"])
btcjson.RegisterCustomCmd("name_scan", NameScanFromRaw, NameScanReplyParse, nmcHelpStrings["name_scan"])
btcjson.RegisterCustomCmd("name_filter", NameFilterFromRaw, NameFilterReplyParse, nmcHelpStrings["name_filter"])
}