@@ -2,7 +2,7 @@ use crate::msg::{InstantiateMsg, MSG_CREATE_DERIVATIVE_LIMIT_ORDER_ENDPOINT, MSG
22use cosmwasm_std:: { coin, Addr , Coin } ;
33use injective_cosmwasm:: { checked_address_to_subaccount_id, get_default_subaccount_id_for_checked_address, SubaccountId } ;
44use injective_math:: { scale:: Scaled , FPDecimal } ;
5- use injective_std:: types:: injective:: exchange:: v2;
5+ use injective_std:: types:: injective:: exchange:: v2:: { self , open_notional_cap :: Cap , OpenNotionalCap , OpenNotionalCapUncapped } ;
66use injective_test_tube:: {
77 injective_std:: {
88 shim:: { Any , Timestamp } ,
@@ -33,7 +33,7 @@ use injective_test_tube::{
3333} ;
3434use injective_testing:: {
3535 mocks:: { MOCK_BASE_DECIMALS , MOCK_BASE_DENOM , MOCK_QUOTE_DECIMALS , MOCK_QUOTE_DENOM } ,
36- test_tube:: exchange:: { add_denom_notional_and_decimal, add_exchange_admin , launch_spot_market} ,
36+ test_tube:: exchange:: { add_denom_notional_and_decimal, add_exchange_admin_v2 , launch_spot_market} ,
3737 utils:: human_to_i64,
3838} ;
3939use prost:: Message ;
@@ -167,7 +167,7 @@ impl Setup {
167167 market_id = Some ( launch_spot_market ( & exchange, & owner, "INJ/USDT" . to_string ( ) ) ) ;
168168 }
169169 ExchangeType :: Derivative => {
170- add_exchange_admin ( & app, & validator, owner. address ( ) ) ;
170+ add_exchange_admin_v2 ( & app, & validator, owner. address ( ) ) ;
171171 market_id = Some ( launch_perp_market ( & exchange, & owner, "INJ/USDT" . to_string ( ) ) ) ;
172172 }
173173 ExchangeType :: None => { }
@@ -354,6 +354,9 @@ pub fn launch_perp_market(exchange: &Exchange<InjectiveTestApp>, signer: &Signin
354354 min_quantity_tick_size : dec_to_proto ( FPDecimal :: must_from_str ( "0.001" ) ) ,
355355 min_notional : dec_to_proto ( FPDecimal :: must_from_str ( "0.01" ) ) ,
356356 reduce_margin_ratio : dec_to_proto ( FPDecimal :: must_from_str ( "0.033333" ) ) ,
357+ open_notional_cap : Some ( OpenNotionalCap {
358+ cap : Some ( Cap :: Uncapped ( OpenNotionalCapUncapped { } ) ) ,
359+ } ) ,
357360 } ,
358361 signer,
359362 )
@@ -724,6 +727,9 @@ pub fn set_address_of_pyth_contract(app: &InjectiveTestApp, validator: &SigningA
724727 authority : GOV_MODULE_ADDRESS . to_string ( ) ,
725728 params : Some ( Params {
726729 pyth_contract : pyth_address. address ( ) ,
730+ chainlink_verifier_proxy_contract : "" . to_string ( ) ,
731+ accept_unverified_chainlink_data_streams_reports : true ,
732+ chainlink_data_streams_verification_gas_limit : 1000000 ,
727733 } ) ,
728734 } ,
729735 & mut buf,
0 commit comments