@@ -10,7 +10,8 @@ pub enum MakerCommands {
1010 about = "Mint three DCD token types and create an initial Maker offer for a Taker" ,
1111 long_about = "Mint three distinct DCD token types and initialize a Maker offer. \
1212 These tokens represent the Maker/Taker claims on collateral and settlement assets \
13- and are used to manage the contract lifecycle (funding, early termination, settlement)."
13+ and are used to manage the contract lifecycle (funding, early termination, settlement).",
14+ name = "init"
1415 ) ]
1516 InitOrder {
1617 /// LBTC UTXO used to fund issuance fees and the first DCD token
@@ -65,12 +66,12 @@ pub enum MakerCommands {
6566 /// UTXO containing grantor collateral tokens to be burned for early termination
6667 #[ arg( long = "grant-coll-utxo" ) ]
6768 grantor_collateral_token_utxo : OutPoint ,
68- /// UTXO used to pay miner fees for the early-termination collateral transaction
69- #[ arg( long = "fee-utxo" ) ]
70- fee_utxo : OutPoint ,
7169 /// UTXO containing the collateral asset (e.g. LBTC) to be withdrawn by the Maker
7270 #[ arg( long = "coll-utxo" ) ]
7371 collateral_token_utxo : OutPoint ,
72+ /// UTXO used to pay miner fees for the early-termination collateral transaction
73+ #[ arg( long = "fee-utxo" ) ]
74+ fee_utxo : OutPoint ,
7475 /// Miner fee in satoshis (LBTC) for the early-termination collateral transaction
7576 #[ arg( long = "fee-amount" , default_value_t = 1500 ) ]
7677 fee_amount : u64 ,
@@ -87,15 +88,15 @@ pub enum MakerCommands {
8788 about = "Withdraw Maker settlement asset early by burning grantor settlement tokens (DCD early termination leg)"
8889 ) ]
8990 TerminationSettlement {
90- /// UTXO used to pay miner fees for the early-termination settlement transaction
91- #[ arg( long = "fee-utxo" ) ]
92- fee_utxo : OutPoint ,
9391 /// UTXO providing the settlement asset (e.g. LBTC) to be withdrawn by the Maker
9492 #[ arg( long = "settl-asset-utxo" ) ]
9593 settlement_asset_utxo : OutPoint ,
9694 /// UTXO containing grantor settlement tokens to be burned for early termination
9795 #[ arg( long = "grant-settl-utxo" ) ]
9896 grantor_settlement_token_utxo : OutPoint ,
97+ /// UTXO used to pay miner fees for the early-termination settlement transaction
98+ #[ arg( long = "fee-utxo" ) ]
99+ fee_utxo : OutPoint ,
99100 /// Miner fee in satoshis (LBTC) for the early-termination settlement transaction
100101 #[ arg( long = "fee-amount" , default_value_t = 1500 ) ]
101102 fee_amount : u64 ,
@@ -118,24 +119,24 @@ pub enum MakerCommands {
118119 /// UTXO containing grantor settlement tokens used in final settlement
119120 #[ arg( long = "grant-settl-utxo" ) ]
120121 grantor_settlement_token_utxo : OutPoint ,
121- /// UTXO used to pay miner fees for the final Maker settlement transaction
122- #[ arg( long = "fee-utxo" ) ]
123- fee_utxo : OutPoint ,
124122 /// UTXO providing the asset (collateral or settlement) paid out to the Maker at maturity
125123 #[ arg( long = "asset-utxo" ) ]
126124 asset_utxo : OutPoint ,
125+ /// UTXO used to pay miner fees for the final Maker settlement transaction
126+ #[ arg( long = "fee-utxo" ) ]
127+ fee_utxo : OutPoint ,
127128 /// Miner fee in satoshis (LBTC) for the final settlement transaction
128129 #[ arg( long = "fee-amount" , default_value_t = 1500 ) ]
129130 fee_amount : u64 ,
131+ /// Amount of grantor (settlement and collateral) tokens (in satoshis) to burn during settlement step
132+ #[ arg( long = "grantor-amount-burn" ) ]
133+ grantor_amount_to_burn : u64 ,
130134 /// Oracle price at current block height used for settlement decision
131- #[ arg( long = "grantor-settl-burn " ) ]
135+ #[ arg( long = "price-now " ) ]
132136 price_at_current_block_height : u64 ,
133137 /// Schnorr signature produced by the oracle over the published price
134138 #[ arg( long = "oracle-sign" ) ]
135139 oracle_signature : String ,
136- /// Amount of grantor tokens (in satoshis) to burn during settlement
137- #[ arg( long = "grantor-amount-burn" ) ]
138- grantor_amount_to_burn : u64 ,
139140 /// `EventId` of the Maker\'s original order event on Nostr
140141 #[ arg( short = 'i' , long) ]
141142 maker_order_event_id : EventId ,
0 commit comments