@@ -19,12 +19,11 @@ use injective_test_tube::{
1919 gov:: v1:: { MsgSubmitProposal , MsgVote } ,
2020 } ,
2121 injective:: exchange:: v1beta1:: {
22- BatchExchangeModificationProposal , DenomDecimals , DenomMinNotional , DenomMinNotionalProposal , DerivativeOrder ,
23- MsgBatchUpdateOrders , MsgBatchUpdateOrdersResponse , MsgCancelDerivativeOrder ,
24- MsgCreateDerivativeLimitOrder , MsgCreateDerivativeLimitOrderResponse , MsgCreateSpotLimitOrder , MsgInstantSpotMarketLaunch ,
25- MsgUpdateParams , OrderInfo , OrderType , PerpetualMarketFunding , Position , QueryDerivativeMarketsRequest , QueryExchangeParamsRequest ,
26- QueryExchangeParamsResponse , QuerySpotMarketsRequest , QuerySubaccountDepositsRequest ,
27- QuerySubaccountEffectivePositionInMarketRequest , SpotOrder , UpdateDenomDecimalsProposal ,
22+ BatchExchangeModificationProposal , DenomDecimals , DenomMinNotional , DenomMinNotionalProposal , DerivativeOrder , MsgBatchUpdateOrders ,
23+ MsgBatchUpdateOrdersResponse , MsgCancelDerivativeOrder , MsgCreateDerivativeLimitOrder , MsgCreateDerivativeLimitOrderResponse ,
24+ MsgCreateSpotLimitOrder , MsgInstantSpotMarketLaunch , MsgUpdateParams , OrderInfo , OrderType , PerpetualMarketFunding , Position ,
25+ QueryDerivativeMarketsRequest , QueryExchangeParamsRequest , QueryExchangeParamsResponse , QuerySpotMarketsRequest ,
26+ QuerySubaccountDepositsRequest , QuerySubaccountEffectivePositionInMarketRequest , SpotOrder , UpdateDenomDecimalsProposal ,
2827 } ,
2928 injective:: exchange:: v2,
3029 } ,
@@ -99,9 +98,6 @@ pub fn add_exchange_admin(app: &InjectiveTestApp, validator: &SigningAccount, ad
9998pub fn add_denom_notional_and_decimal ( app : & InjectiveTestApp , validator : & SigningAccount , denom : String , min_notional : String , decimals : u64 ) {
10099 let gov = Gov :: new ( app) ;
101100
102- // NOTE: this could change int he future
103- let governance_module_address = "inj10d07y265gmmuvt4z0w9aw880jnsr700jstypyt" ;
104-
105101 let proposal = BatchExchangeModificationProposal {
106102 title : "Update params" . to_string ( ) ,
107103 description : "Basically updating the params" . to_string ( ) ,
@@ -147,7 +143,7 @@ pub fn add_denom_notional_and_decimal(app: &InjectiveTestApp, validator: &Signin
147143 proposer : validator. address ( ) ,
148144 } ;
149145
150- let res = gov. submit_proposal_v1beta1 ( msg_submit_proposal, & validator) . unwrap ( ) ;
146+ let res = gov. submit_proposal_v1beta1 ( msg_submit_proposal, validator) . unwrap ( ) ;
151147
152148 let proposal_id = res. events . iter ( ) . find ( |e| e. ty == "submit_proposal" ) . unwrap ( ) . attributes [ 0 ] . value . clone ( ) ;
153149
@@ -158,7 +154,7 @@ pub fn add_denom_notional_and_decimal(app: &InjectiveTestApp, validator: &Signin
158154 option : 1i32 ,
159155 metadata : "" . to_string ( ) ,
160156 } ,
161- & validator,
157+ validator,
162158 )
163159 . unwrap ( ) ;
164160
@@ -543,7 +539,7 @@ pub fn launch_spot_market_atom(exchange: &Exchange<InjectiveTestApp>, signer: &S
543539 base_decimals : MOCK_BASE_DECIMALS as u32 ,
544540 quote_decimals : MOCK_QUOTE_DECIMALS as u32 ,
545541 } ,
546- & signer,
542+ signer,
547543 )
548544 . unwrap ( ) ;
549545
0 commit comments