File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 11
11
* btcli subnets set-identity
12
12
* btcli subnets get-identity
13
13
* btcli subnets register
14
+ * btcli subnets price
14
15
* btcli stake add
15
16
* btcli stake remove
16
17
* btcli stake show
@@ -234,6 +235,25 @@ def test_staking(local_chain, wallet_setup):
234
235
assert get_identity_output ["logo_url" ] == sn_logo_url
235
236
assert get_identity_output ["additional" ] == sn_add_info
236
237
238
+ get_s_price = exec_command_alice (
239
+ "subnets" ,
240
+ "price" ,
241
+ extra_args = [
242
+ "--chain" ,
243
+ "ws://127.0.0.1:9945" ,
244
+ "--netuid" ,
245
+ netuid ,
246
+ "--current" ,
247
+ "--json-output" ,
248
+ ],
249
+ )
250
+ get_s_price_output = json .loads (get_s_price .stdout )
251
+ assert str (netuid ) in get_s_price_output .keys ()
252
+ stats = get_s_price_output [str (netuid )]["stats" ]
253
+ assert stats ["name" ] == sn_name
254
+ assert stats ["current_price" ] == 0.0
255
+ assert stats ["market_cap" ] == 0.0
256
+
237
257
# Start emissions on SNs
238
258
for netuid_ in multiple_netuids :
239
259
start_subnet_emissions = exec_command_alice (
You can’t perform that action at this time.
0 commit comments