@@ -358,60 +358,60 @@ pub async fn test_place_initial_offer_non_shim_blocks_shim() {
358
358
testing_engine. execute ( instruction_triggers) . await ;
359
359
}
360
360
361
- // #[tokio::test]
362
- // // Testing an execute order from arbitrum to ethereum
363
- // // TODO: Flesh out this test to see if the message was posted correctly
364
- // pub async fn test_execute_order_fallback() {
365
- // let transfer_direction = TransferDirection::FromArbitrumToEthereum;
366
- // let vaa_args = VaaArgs {
367
- // post_vaa: false,
368
- // ..VaaArgs::default()
369
- // };
370
- // let testing_context = setup_environment(
371
- // ShimMode::VerifyAndPostSignature,
372
- // transfer_direction,
373
- // Some(vaa_args),
374
- // )
375
- // .await;
376
- // let testing_engine = TestingEngine::new(testing_context).await;
377
- // let instruction_triggers = vec![
378
- // InstructionTrigger::InitializeProgram(InitializeInstructionConfig::default()),
379
- // InstructionTrigger::CreateCctpRouterEndpoints(
380
- // CreateCctpRouterEndpointsInstructionConfig::default(),
381
- // ),
382
- // InstructionTrigger::InitializeFastMarketOrderShim(
383
- // InitializeFastMarketOrderShimInstructionConfig::default(),
384
- // ),
385
- // InstructionTrigger::PlaceInitialOfferShim(PlaceInitialOfferInstructionConfig::default()),
386
- // InstructionTrigger::ExecuteOrderShim(ExecuteOrderInstructionConfig::default()),
387
- // ];
388
- // testing_engine.execute(instruction_triggers).await;
389
- // }
361
+ #[ tokio:: test]
362
+ // Testing an execute order from arbitrum to ethereum
363
+ // TODO: Flesh out this test to see if the message was posted correctly
364
+ pub async fn test_execute_order_fallback ( ) {
365
+ let transfer_direction = TransferDirection :: FromArbitrumToEthereum ;
366
+ let vaa_args = VaaArgs {
367
+ post_vaa : false ,
368
+ ..VaaArgs :: default ( )
369
+ } ;
370
+ let testing_context = setup_environment (
371
+ ShimMode :: VerifyAndPostSignature ,
372
+ transfer_direction,
373
+ Some ( vaa_args) ,
374
+ )
375
+ . await ;
376
+ let testing_engine = TestingEngine :: new ( testing_context) . await ;
377
+ let instruction_triggers = vec ! [
378
+ InstructionTrigger :: InitializeProgram ( InitializeInstructionConfig :: default ( ) ) ,
379
+ InstructionTrigger :: CreateCctpRouterEndpoints (
380
+ CreateCctpRouterEndpointsInstructionConfig :: default ( ) ,
381
+ ) ,
382
+ InstructionTrigger :: InitializeFastMarketOrderShim (
383
+ InitializeFastMarketOrderShimInstructionConfig :: default ( ) ,
384
+ ) ,
385
+ InstructionTrigger :: PlaceInitialOfferShim ( PlaceInitialOfferInstructionConfig :: default ( ) ) ,
386
+ InstructionTrigger :: ExecuteOrderShim ( ExecuteOrderInstructionConfig :: default ( ) ) ,
387
+ ] ;
388
+ testing_engine. execute ( instruction_triggers) . await ;
389
+ }
390
390
391
- // #[tokio::test]
392
- // pub async fn test_execute_order_shimless() {
393
- // let transfer_direction = TransferDirection::FromArbitrumToEthereum;
394
- // let vaa_args = VaaArgs {
395
- // post_vaa: true,
396
- // ..VaaArgs::default()
397
- // };
398
- // let testing_context = setup_environment(
399
- // ShimMode::VerifyAndPostSignature,
400
- // transfer_direction,
401
- // Some(vaa_args),
402
- // )
403
- // .await;
404
- // let testing_engine = TestingEngine::new(testing_context).await;
405
- // let instruction_triggers = vec![
406
- // InstructionTrigger::InitializeProgram(InitializeInstructionConfig::default()),
407
- // InstructionTrigger::CreateCctpRouterEndpoints(
408
- // CreateCctpRouterEndpointsInstructionConfig::default(),
409
- // ),
410
- // InstructionTrigger::PlaceInitialOfferShimless(PlaceInitialOfferInstructionConfig::default()),
411
- // InstructionTrigger::ExecuteOrderShimless(ExecuteOrderInstructionConfig::default()),
412
- // ];
413
- // testing_engine.execute(instruction_triggers).await;
414
- // }
391
+ #[ tokio:: test]
392
+ pub async fn test_execute_order_shimless ( ) {
393
+ let transfer_direction = TransferDirection :: FromArbitrumToEthereum ;
394
+ let vaa_args = VaaArgs {
395
+ post_vaa : true ,
396
+ ..VaaArgs :: default ( )
397
+ } ;
398
+ let testing_context = setup_environment (
399
+ ShimMode :: VerifyAndPostSignature ,
400
+ transfer_direction,
401
+ Some ( vaa_args) ,
402
+ )
403
+ . await ;
404
+ let testing_engine = TestingEngine :: new ( testing_context) . await ;
405
+ let instruction_triggers = vec ! [
406
+ InstructionTrigger :: InitializeProgram ( InitializeInstructionConfig :: default ( ) ) ,
407
+ InstructionTrigger :: CreateCctpRouterEndpoints (
408
+ CreateCctpRouterEndpointsInstructionConfig :: default ( ) ,
409
+ ) ,
410
+ InstructionTrigger :: PlaceInitialOfferShimless ( PlaceInitialOfferInstructionConfig :: default ( ) ) ,
411
+ InstructionTrigger :: ExecuteOrderShimless ( ExecuteOrderInstructionConfig :: default ( ) ) ,
412
+ ] ;
413
+ testing_engine. execute ( instruction_triggers) . await ;
414
+ }
415
415
// pub async fn test_execute_order_fallback_blocks_shimless() {
416
416
// let transfer_direction = TransferDirection::FromArbitrumToEthereum;
417
417
// let vaa_args = VaaArgs {
0 commit comments