@@ -37,6 +37,7 @@ async def add_liquidity_extrinsic(
3737 liquidity : Balance ,
3838 price_low : Balance ,
3939 price_high : Balance ,
40+ announce_only : bool = False ,
4041 wait_for_inclusion : bool = True ,
4142 wait_for_finalization : bool = False ,
4243) -> tuple [bool , str , Optional [AsyncExtrinsicReceipt ]]:
@@ -86,6 +87,7 @@ async def add_liquidity_extrinsic(
8687 call = call ,
8788 wallet = wallet ,
8889 proxy = proxy ,
90+ announce_only = announce_only ,
8991 wait_for_inclusion = wait_for_inclusion ,
9092 wait_for_finalization = wait_for_finalization ,
9193 )
@@ -99,6 +101,7 @@ async def modify_liquidity_extrinsic(
99101 proxy : Optional [str ],
100102 position_id : int ,
101103 liquidity_delta : Balance ,
104+ announce_only : bool = False ,
102105 wait_for_inclusion : bool = True ,
103106 wait_for_finalization : bool = False ,
104107) -> tuple [bool , str , Optional [AsyncExtrinsicReceipt ]]:
@@ -142,6 +145,7 @@ async def modify_liquidity_extrinsic(
142145 call = call ,
143146 wallet = wallet ,
144147 proxy = proxy ,
148+ announce_only = announce_only ,
145149 wait_for_inclusion = wait_for_inclusion ,
146150 wait_for_finalization = wait_for_finalization ,
147151 )
@@ -154,6 +158,7 @@ async def remove_liquidity_extrinsic(
154158 proxy : Optional [str ],
155159 netuid : int ,
156160 position_id : int ,
161+ announce_only : bool = False ,
157162 wait_for_inclusion : bool = True ,
158163 wait_for_finalization : bool = False ,
159164) -> tuple [bool , str , Optional [AsyncExtrinsicReceipt ]]:
@@ -195,6 +200,7 @@ async def remove_liquidity_extrinsic(
195200 call = call ,
196201 wallet = wallet ,
197202 proxy = proxy ,
203+ announce_only = announce_only ,
198204 wait_for_inclusion = wait_for_inclusion ,
199205 wait_for_finalization = wait_for_finalization ,
200206 )
@@ -254,6 +260,7 @@ async def add_liquidity(
254260 decline : bool ,
255261 quiet : bool ,
256262 json_output : bool ,
263+ announce_only : bool = False ,
257264) -> tuple [bool , str ]:
258265 """Add liquidity position to provided subnet."""
259266 # Check wallet access
@@ -288,6 +295,7 @@ async def add_liquidity(
288295 liquidity = liquidity ,
289296 price_low = price_low ,
290297 price_high = price_high ,
298+ announce_only = announce_only ,
291299 )
292300 if success :
293301 await print_extrinsic_id (ext_receipt )
@@ -575,6 +583,7 @@ async def remove_liquidity(
575583 quiet : bool = False ,
576584 all_liquidity_ids : Optional [bool ] = None ,
577585 json_output : bool = False ,
586+ announce_only : bool = False ,
578587) -> None :
579588 """Remove liquidity position from provided subnet."""
580589 if not await subtensor .subnet_exists (netuid = netuid ):
@@ -617,6 +626,7 @@ async def remove_liquidity(
617626 proxy = proxy ,
618627 netuid = netuid ,
619628 position_id = pos_id ,
629+ announce_only = announce_only ,
620630 )
621631 for pos_id in position_ids
622632 ]
@@ -652,6 +662,7 @@ async def modify_liquidity(
652662 decline : bool = False ,
653663 quiet : bool = False ,
654664 json_output : bool = False ,
665+ announce_only : bool = False ,
655666) -> bool :
656667 """Modify liquidity position in provided subnet."""
657668 if not await subtensor .subnet_exists (netuid = netuid ):
@@ -684,6 +695,7 @@ async def modify_liquidity(
684695 proxy = proxy ,
685696 position_id = position_id ,
686697 liquidity_delta = liquidity_delta ,
698+ announce_only = announce_only ,
687699 )
688700 if json_output :
689701 ext_id = await ext_receipt .get_extrinsic_identifier () if success else None
0 commit comments