@@ -4,8 +4,8 @@ use super::types::futarchy::StakeToProposalInstructionAccounts;
44use super :: types:: futarchy:: StakeToProposalInstructionData ;
55use super :: types:: * ;
66
7+ use trident_fuzz:: fuzzing:: prelude:: TridentTransactionResult ;
78use trident_fuzz:: fuzzing:: * ;
8- use trident_fuzz:: trident:: transaction_result:: TransactionResult ;
99
1010use super :: constants:: * ;
1111use super :: types:: futarchy:: InitializeDaoParams ;
@@ -65,7 +65,7 @@ pub fn initialize_dao(
6565
6666 let res = trident. process_transaction ( & [ init_dao] , message) ;
6767
68- assert ! ( res. is_success( ) ) ;
68+ invariant ! ( res. is_success( ) ) ;
6969
7070 ( dao, squads_multisig)
7171}
@@ -108,7 +108,7 @@ pub fn initialize_proposal(
108108
109109 let res = trident. process_transaction ( & [ init_prop] , message) ;
110110
111- assert ! ( res. is_success( ) ) ;
111+ invariant ! ( res. is_success( ) ) ;
112112
113113 proposal
114114}
@@ -155,7 +155,7 @@ pub fn stake_to_proposal(
155155
156156 let res = trident. process_transaction ( & [ stake_to_proposal_ix] , message) ;
157157
158- assert ! ( res. is_success( ) ) ;
158+ invariant ! ( res. is_success( ) ) ;
159159}
160160
161161#[ allow( clippy:: too_many_arguments) ]
@@ -222,7 +222,7 @@ pub fn launch_proposal(
222222
223223 let res = trident. process_transaction ( & [ launch_ix] , message) ;
224224
225- assert ! ( res. is_success( ) ) ;
225+ invariant ! ( res. is_success( ) ) ;
226226}
227227
228228pub fn spot_swap (
@@ -231,7 +231,7 @@ pub fn spot_swap(
231231 user : Pubkey ,
232232 params : futarchy:: SpotSwapParams ,
233233 message : Option < & str > ,
234- ) -> TransactionResult {
234+ ) -> TridentTransactionResult {
235235 let dao_data = trident
236236 . get_account_with_type :: < futarchy:: Dao > ( & dao, None )
237237 . expect ( "Dao not found" ) ;
@@ -273,7 +273,7 @@ pub fn add_liqidity(
273273 liquidity_provider : Pubkey ,
274274 params : futarchy:: ProvideLiquidityParams ,
275275 message : Option < & str > ,
276- ) -> TransactionResult {
276+ ) -> TridentTransactionResult {
277277 let dao_data = trident
278278 . get_account_with_type :: < futarchy:: Dao > ( & dao, None )
279279 . expect ( "Dao not found" ) ;
@@ -328,7 +328,7 @@ pub fn withdraw_liquidity(
328328 liquidity_provider : Pubkey ,
329329 params : futarchy:: WithdrawLiquidityParams ,
330330 message : Option < & str > ,
331- ) -> TransactionResult {
331+ ) -> TridentTransactionResult {
332332 let dao_data = trident
333333 . get_account_with_type :: < futarchy:: Dao > ( & dao, None )
334334 . expect ( "Dao not found" ) ;
@@ -395,7 +395,7 @@ pub fn conditional_swap(
395395 quote_vault : Pubkey ,
396396 params : futarchy:: ConditionalSwapParams ,
397397 message : Option < & str > ,
398- ) -> TransactionResult {
398+ ) -> TridentTransactionResult {
399399 let dao_data = trident
400400 . get_account_with_type :: < futarchy:: Dao > ( & dao, None )
401401 . expect ( "Dao not found" ) ;
@@ -488,7 +488,7 @@ pub fn finalize_proposal(
488488 base_vault : Pubkey ,
489489 quote_vault : Pubkey ,
490490 message : Option < & str > ,
491- ) -> TransactionResult {
491+ ) -> TridentTransactionResult {
492492 let dao_data = trident
493493 . get_account_with_type :: < futarchy:: Dao > ( & dao, None )
494494 . expect ( "Dao not found" ) ;
0 commit comments