@@ -104,17 +104,13 @@ enum Command {
104104 } ,
105105
106106 /// Extract reward tokens to a chosen address
107- ExtractRewardTokens {
108- rewards_address : String ,
109- } ,
107+ ExtractRewardTokens { rewards_address : String } ,
110108
111109 /// Print the number of reward tokens earned by the oracle.
112110 PrintRewardTokens ,
113111
114112 /// Transfer an oracle token to a chosen address.
115- TransferOracleToken {
116- oracle_token_address : String ,
117- } ,
113+ TransferOracleToken { oracle_token_address : String } ,
118114
119115 /// Vote to update the oracle pool
120116 VoteUpdatePool {
@@ -127,14 +123,21 @@ enum Command {
127123 /// The creation height of the update box.
128124 update_box_creation_height : u32 ,
129125 } ,
126+ /// Initiate the Update Pool transaction.
127+ /// Run with no arguments to to show diff between oracle_config.yaml and oracle_config_updated.yaml
128+ /// Updated config file must be created using --prepare-update command first
130129 UpdatePool {
130+ /// New pool box hash. Must match hash of updated pool contract
131131 new_pool_box_hash : Option < String > ,
132+ /// New reward token id (optional)
132133 reward_token_id : Option < String > ,
134+ /// New reward token amount, required if new token id was voted for
133135 reward_token_amount : Option < u64 > ,
134- height : Option < u64 > ,
135136 } ,
137+ /// Prepare updating oracle pool with new contracts/parameters.
136138 PrepareUpdate {
137- update_bootstrap_file : String ,
139+ /// Name of update parameters file (.yaml)
140+ update_file : String ,
138141 } ,
139142}
140143
@@ -255,24 +258,20 @@ fn main() {
255258 new_pool_box_hash,
256259 reward_token_id,
257260 reward_token_amount,
258- height,
259261 } => {
260262 assert_wallet_unlocked ( & new_node_interface ( ) ) ;
261263 if let Err ( e) = cli_commands:: update_pool:: update_pool (
262264 new_pool_box_hash,
263265 reward_token_id,
264266 reward_token_amount,
265- height,
266267 ) {
267268 error ! ( "Fatal update-pool error: {}" , e) ;
268269 std:: process:: exit ( exitcode:: SOFTWARE ) ;
269270 }
270271 }
271- Command :: PrepareUpdate {
272- update_bootstrap_file,
273- } => {
272+ Command :: PrepareUpdate { update_file } => {
274273 assert_wallet_unlocked ( & new_node_interface ( ) ) ;
275- if let Err ( e) = cli_commands:: update:: prepare_update ( update_bootstrap_file ) {
274+ if let Err ( e) = cli_commands:: update:: prepare_update ( update_file ) {
276275 error ! ( "Fatal update error : {}" , e) ;
277276 std:: process:: exit ( exitcode:: SOFTWARE ) ;
278277 }
0 commit comments