@@ -108,16 +108,16 @@ UniValue preparebudget(const JSONRPCRequest& request)
108108
109109 if (request.fHelp || request.params .size () != 6 )
110110 throw std::runtime_error (
111- " preparebudget \" proposal- name\" \" url\" payment-count block- start \" pivx- address\" monthy-payment \n "
111+ " preparebudget \" name\" \" url\" npayments start \" address\" monthly_payment \n "
112112 " \n Prepare proposal for network by signing and creating tx\n "
113113
114114 " \n Arguments:\n "
115- " 1. \" proposal- name\" : (string, required) Desired proposal name (20 character limit)\n "
116- " 2. \" url\" : (string, required) URL of proposal details (64 character limit)\n "
117- " 3. payment-count: (numeric, required) Total number of monthly payments\n "
118- " 4. block- start: (numeric, required) Starting super block height\n "
119- " 5. \" pivx- address\" : (string, required) PIVX address to send payments to\n "
120- " 6. monthly-payment: (numeric, required) Monthly payment amount\n "
115+ " 1. \" name\" : (string, required) Desired proposal name (20 character limit)\n "
116+ " 2. \" url\" : (string, required) URL of proposal details (64 character limit)\n "
117+ " 3. npayments: (numeric, required) Total number of monthly payments\n "
118+ " 4. start: (numeric, required) Starting super block height\n "
119+ " 5. \" address\" : (string, required) PIVX address to send payments to\n "
120+ " 6. monthly_payment: (numeric, required) Monthly payment amount\n "
121121
122122 " \n Result:\n "
123123 " \" xxxx\" (string) proposal fee hash (if successful) or error message (if failed)\n "
@@ -171,17 +171,17 @@ UniValue submitbudget(const JSONRPCRequest& request)
171171{
172172 if (request.fHelp || request.params .size () != 7 )
173173 throw std::runtime_error (
174- " submitbudget \" proposal- name\" \" url\" payment-count block- start \" pivx- address\" monthly-payment \" fee-tx \"\n "
174+ " submitbudget \" name\" \" url\" npayments start \" address\" monthly_payment \" fee_txid \"\n "
175175 " \n Submit proposal to the network\n "
176176
177177 " \n Arguments:\n "
178- " 1. \" proposal- name\" : (string, required) Desired proposal name (20 character limit)\n "
179- " 2. \" url\" : (string, required) URL of proposal details (64 character limit)\n "
180- " 3. payment-count: (numeric, required) Total number of monthly payments\n "
181- " 4. block- start: (numeric, required) Starting super block height\n "
182- " 5. \" pivx- address\" : (string, required) PIVX address to send payments to\n "
183- " 6. monthly-payment : (numeric, required) Monthly payment amount\n "
184- " 7. \" fee-tx \" : (string, required) Transaction hash from preparebudget command\n "
178+ " 1. \" name\" : (string, required) Desired proposal name (20 character limit)\n "
179+ " 2. \" url\" : (string, required) URL of proposal details (64 character limit)\n "
180+ " 3. npayments: (numeric, required) Total number of monthly payments\n "
181+ " 4. start: (numeric, required) Starting super block height\n "
182+ " 5. \" address\" : (string, required) PIVX address to send payments to\n "
183+ " 6. monthly_payment : (numeric, required) Monthly payment amount\n "
184+ " 7. \" fee_txid \" : (string, required) Transaction hash from preparebudget command\n "
185185
186186 " \n Result:\n "
187187 " \" xxxx\" (string) proposal hash (if successful) or error message (if failed)\n "
@@ -471,13 +471,13 @@ UniValue mnbudgetvote(const JSONRPCRequest& request)
471471 if (request.fHelp || (request.params .size () == 3 && (strCommand != " local" && strCommand != " many" )) || (request.params .size () == 4 && strCommand != " alias" ) ||
472472 request.params .size () > 5 || request.params .size () < 3 )
473473 throw std::runtime_error (
474- " mnbudgetvote \" local|many|alias\" \" votehash \" \" yes|no\" ( \" alias\" legacy )\n "
474+ " mnbudgetvote \" local|many|alias\" \" hash \" \" yes|no\" ( \" alias\" legacy )\n "
475475 " \n Vote on a budget proposal\n "
476476 " \n After V6 enforcement, the deterministic masternode system is used by default. Set the \" legacy\" parameter to true to vote with legacy masternodes."
477477
478478 " \n Arguments:\n "
479479 " 1. \" mode\" (string, required) The voting mode. 'local' for voting directly from a masternode, 'many' for voting with a MN controller and casting the same vote for each MN, 'alias' for voting with a MN controller and casting a vote for a single MN\n "
480- " 2. \" votehash \" (string, required) The vote hash for the proposal\n "
480+ " 2. \" hash \" (string, required) The budget proposal hash \n "
481481 " 3. \" votecast\" (string, required) Your vote. 'yes' to vote for the proposal, 'no' to vote against\n "
482482 " 4. \" alias\" (string, required for 'alias' mode) The MN alias to cast a vote for (for deterministic masternodes it's the hash of the proTx transaction).\n "
483483 " 5. \" legacy\" (boolean, optional, default=false) Use the legacy masternode system after deterministic masternodes enforcement.\n "
@@ -529,11 +529,11 @@ UniValue getbudgetvotes(const JSONRPCRequest& request)
529529{
530530 if (request.params .size () != 1 )
531531 throw std::runtime_error (
532- " getbudgetvotes \" proposal- name\"\n "
532+ " getbudgetvotes \" name\"\n "
533533 " \n Print vote information for a budget proposal\n "
534534
535535 " \n Arguments:\n "
536- " 1. \" proposal- name\" : (string, required) Name of the proposal\n "
536+ " 1. \" name\" : (string, required) Name of the proposal\n "
537537
538538 " \n Result:\n "
539539 " [\n "
@@ -636,11 +636,11 @@ UniValue getbudgetinfo(const JSONRPCRequest& request)
636636{
637637 if (request.fHelp || request.params .size () > 1 )
638638 throw std::runtime_error (
639- " getbudgetinfo ( \" proposal \" )\n "
639+ " getbudgetinfo ( \" name \" )\n "
640640 " \n Show current masternode budgets\n "
641641
642642 " \n Arguments:\n "
643- " 1. \" proposal \" (string, optional) Proposal name\n "
643+ " 1. \" name \" (string, optional) Proposal name\n "
644644
645645 " \n Result:\n "
646646 " [\n "
@@ -699,16 +699,16 @@ UniValue mnbudgetrawvote(const JSONRPCRequest& request)
699699{
700700 if (request.fHelp || request.params .size () != 6 )
701701 throw std::runtime_error (
702- " mnbudgetrawvote \" masternode-tx-hash \" masternode-tx-index \" proposal- hash\" yes|no time \" vote- sig\"\n "
702+ " mnbudgetrawvote \" collat_txid \" collat_vout \" hash\" votecast time \" sig\"\n "
703703 " \n Compile and relay a proposal vote with provided external signature instead of signing vote internally\n "
704704
705705 " \n Arguments:\n "
706- " 1. \" masternode-tx-hash \" (string, required) Transaction hash for the masternode\n "
707- " 2. masternode-tx-index (numeric, required) Output index for the masternode\n "
708- " 3. \" proposal- hash\" (string, required) Proposal vote hash\n "
709- " 4. yes|no (boolean, required) Vote to cast \n "
710- " 5. time (numeric, required) Time since epoch in seconds\n "
711- " 6. \" vote- sig\" (string, required) External signature\n "
706+ " 1. \" collat_txid \" (string, required) Transaction hash for the masternode collateral \n "
707+ " 2. collat_vout (numeric, required) Output index for the masternode collateral \n "
708+ " 3. \" hash\" (string, required) Budget Proposal hash\n "
709+ " 4. \" votecast \" (string, required) Your vote. 'yes' to vote for the proposal, 'no' to vote against \n "
710+ " 5. time (numeric, required) Time since epoch in seconds\n "
711+ " 6. \" sig\" (string, required) External signature\n "
712712
713713 " \n Result:\n "
714714 " \" status\" (string) Vote status or error message\n "
@@ -865,21 +865,21 @@ UniValue checkbudgets(const JSONRPCRequest& request)
865865}
866866
867867static const CRPCCommand commands[] =
868- { // category name actor (function) okSafeMode
869- // --------------------- ------------------------ ----------------------- ----------
870- { " budget" , " preparebudget" , &preparebudget, true },
871- { " budget" , " submitbudget" , &submitbudget, true },
872- { " budget" , " mnbudgetvote" , &mnbudgetvote, true },
873- { " budget" , " getbudgetvotes" , &getbudgetvotes, true },
874- { " budget" , " getnextsuperblock" , &getnextsuperblock, true },
875- { " budget" , " getbudgetprojection" , &getbudgetprojection, true },
876- { " budget" , " getbudgetinfo" , &getbudgetinfo, true },
877- { " budget" , " mnbudgetrawvote" , &mnbudgetrawvote, true },
878- { " budget" , " mnfinalbudget" , &mnfinalbudget, true },
879- { " budget" , " checkbudgets" , &checkbudgets, true },
868+ { // category name actor (function) okSafe argNames
869+ // --------------------- ------------------------ ----------------------- ------ ---- ----
870+ { " budget" , " preparebudget" , &preparebudget, true , { " name " , " url " , " npayments " , " start " , " address " , " monthly_payment " } },
871+ { " budget" , " submitbudget" , &submitbudget, true , { " name " , " url " , " npayments " , " start " , " address " , " monthly_payment " , " fee_txid " } },
872+ { " budget" , " mnbudgetvote" , &mnbudgetvote, true , { " mode " , " hash " , " votecast " , " alias " , " legacy " } },
873+ { " budget" , " getbudgetvotes" , &getbudgetvotes, true , { " name " } },
874+ { " budget" , " getnextsuperblock" , &getnextsuperblock, true , {} },
875+ { " budget" , " getbudgetprojection" , &getbudgetprojection, true , {} },
876+ { " budget" , " getbudgetinfo" , &getbudgetinfo, true , { " name " } },
877+ { " budget" , " mnbudgetrawvote" , &mnbudgetrawvote, true , { " collat_txid " , " collat_vout " , " hash " , " votecast " , " time " , " sig " } },
878+ { " budget" , " mnfinalbudget" , &mnfinalbudget, true , { " command " } },
879+ { " budget" , " checkbudgets" , &checkbudgets, true , {} },
880880
881881 /* Not shown in help */
882- { " hidden" , " mnfinalbudgetsuggest" , &mnfinalbudgetsuggest, true },
882+ { " hidden" , " mnfinalbudgetsuggest" , &mnfinalbudgetsuggest, true , {} },
883883
884884};
885885
0 commit comments