@@ -530,13 +530,13 @@ pub fn launch_spot_market_atom(exchange: &Exchange<InjectiveTestApp>, signer: &S
530
530
. instant_spot_market_launch_v2 (
531
531
v2:: MsgInstantSpotMarketLaunch {
532
532
sender : signer. address ( ) ,
533
- ticker : "INJ /USDT" . to_owned ( ) ,
534
- base_denom : "inj" . to_owned ( ) ,
535
- quote_denom : "usdt" . to_owned ( ) ,
533
+ ticker : "ATOM /USDT" . to_owned ( ) ,
534
+ base_denom : MOCK_ATOM_DENOM . to_owned ( ) ,
535
+ quote_denom : MOCK_QUOTE_DENOM . to_owned ( ) ,
536
536
min_price_tick_size : dec_to_proto ( FPDecimal :: must_from_str ( "0.000010000000000000" ) ) ,
537
537
min_quantity_tick_size : dec_to_proto ( FPDecimal :: must_from_str ( "100000" ) ) ,
538
538
min_notional : dec_to_proto ( FPDecimal :: must_from_str ( "1" ) ) ,
539
- base_decimals : MOCK_BASE_DECIMALS as u32 ,
539
+ base_decimals : MOCK_ATOM_DECIMALS as u32 ,
540
540
quote_decimals : MOCK_QUOTE_DECIMALS as u32 ,
541
541
} ,
542
542
signer,
@@ -575,6 +575,39 @@ pub fn launch_spot_market_custom(
575
575
get_spot_market_id ( exchange, ticker)
576
576
}
577
577
578
+ pub fn launch_spot_market_custom_v2 (
579
+ exchange : & Exchange < InjectiveTestApp > ,
580
+ signer : & SigningAccount ,
581
+ ticker : String ,
582
+ base_denom : String ,
583
+ quote_denom : String ,
584
+ min_price_tick_size : String ,
585
+ min_quantity_tick_size : String ,
586
+ base_decimals : u32 ,
587
+ quote_decimals : u32 ,
588
+ ) -> String {
589
+ exchange
590
+ . instant_spot_market_launch_v2 (
591
+ v2:: MsgInstantSpotMarketLaunch {
592
+ sender : signer. address ( ) ,
593
+ ticker : ticker. clone ( ) ,
594
+ base_denom,
595
+ quote_denom,
596
+ min_price_tick_size : dec_to_proto ( FPDecimal :: must_from_str ( & min_price_tick_size) ) ,
597
+ min_quantity_tick_size : dec_to_proto ( FPDecimal :: must_from_str ( & min_quantity_tick_size) ) ,
598
+ min_notional : dec_to_proto ( FPDecimal :: must_from_str ( "1" ) ) ,
599
+ base_decimals,
600
+ quote_decimals,
601
+ } ,
602
+ signer,
603
+ )
604
+ . unwrap ( ) ;
605
+
606
+ get_spot_market_id ( exchange, ticker)
607
+ }
608
+
609
+
610
+
578
611
pub fn launch_perp_market ( exchange : & Exchange < InjectiveTestApp > , signer : & SigningAccount , ticker : String ) -> String {
579
612
exchange
580
613
. instant_perpetual_market_launch_v2 (
@@ -608,9 +641,9 @@ pub fn launch_perp_market_atom(exchange: &Exchange<InjectiveTestApp>, signer: &S
608
641
v2:: MsgInstantPerpetualMarketLaunch {
609
642
sender : signer. address ( ) ,
610
643
ticker : ticker. to_owned ( ) ,
611
- quote_denom : "usdt" . to_string ( ) ,
612
- oracle_base : "atom" . to_string ( ) ,
613
- oracle_quote : "usdt" . to_string ( ) ,
644
+ quote_denom : MOCK_QUOTE_DENOM . to_owned ( ) ,
645
+ oracle_base : MOCK_ATOM_DENOM . to_owned ( ) ,
646
+ oracle_quote : MOCK_QUOTE_DENOM . to_owned ( ) ,
614
647
oracle_scale_factor : 6u32 ,
615
648
oracle_type : 2i32 ,
616
649
maker_fee_rate : "-000100000000000000" . to_owned ( ) ,
0 commit comments