Forráskód Böngészése

Rename to singular (#1276)

guibescos 1 éve
szülő
commit
3555b9a976

+ 3 - 3
target_chains/solana/README.md

@@ -16,10 +16,10 @@ Receiving a price update from Pythnet involves two steps:
 
 This contract offers two ways to post a price update from Pythnet onto Solana:
 
-- `post_updates` allows you to do it in 2 transactions and checks all the Wormhole guardian signatures (the quorum is currently 13 signatures). It relies on the Wormhole contract to verify the signatures.
-- `post_updates_atomic` allows you to do it in 1 transaction but only partially checks the Wormhole guardian signatures (5 signatures seems like the best it can currently do). Therefore it is less secure. It relies on a guardian set account from the Wormhole contract to check the signatures against the guardian keys.
+- `post_update` allows you to do it in 2 transactions and checks all the Wormhole guardian signatures (the quorum is currently 13 signatures). It relies on the Wormhole contract to verify the signatures.
+- `post_update_atomic` allows you to do it in 1 transaction but only partially checks the Wormhole guardian signatures (5 signatures seems like the best it can currently do). Therefore it is less secure. It relies on a guardian set account from the Wormhole contract to check the signatures against the guardian keys.
 
-`post_updates` is also a more efficient way to post updates if you're looking to post data for many different price feeds at a single point in time.
+`post_update` is also a more efficient way to post updates if you're looking to post data for many different price feeds at a single point in time.
 This is because it persists a verified encoded VAA, so guardian signatures will only get checked once. Then that single posted VAA can be used to prove the price update for all price feeds for that given point in time.
 
 # Devnet deployment

+ 8 - 8
target_chains/solana/cli/src/main.rs

@@ -21,8 +21,8 @@ use {
             DEFAULT_TREASURY_ID,
         },
         state::config::DataSource,
-        PostUpdatesAtomicParams,
-        PostUpdatesParams,
+        PostUpdateAtomicParams,
+        PostUpdateParams,
     },
     pythnet_sdk::wire::v1::MerklePriceUpdate,
     serde_wormhole::RawMessage,
@@ -255,7 +255,7 @@ pub fn process_post_price_update_atomic(
         ComputeBudgetInstruction::set_compute_unit_limit(400_000);
 
 
-    let post_update_accounts = pyth_solana_receiver::accounts::PostUpdatesAtomic::populate(
+    let post_update_accounts = pyth_solana_receiver::accounts::PostUpdateAtomic::populate(
         payer.pubkey(),
         price_update_keypair.pubkey(),
         *wormhole,
@@ -267,8 +267,8 @@ pub fn process_post_price_update_atomic(
     let post_update_instruction = Instruction {
         program_id: pyth_solana_receiver::id(),
         accounts:   post_update_accounts,
-        data:       pyth_solana_receiver::instruction::PostUpdatesAtomic {
-            params: PostUpdatesAtomicParams {
+        data:       pyth_solana_receiver::instruction::PostUpdateAtomic {
+            params: PostUpdateAtomicParams {
                 merkle_price_update: merkle_price_update.clone(),
                 vaa:                 serde_wormhole::to_vec(&(header, body)).unwrap(),
                 treasury_id:         DEFAULT_TREASURY_ID,
@@ -463,7 +463,7 @@ pub fn process_write_encoded_vaa_and_post_price_update(
 
     let price_update_keypair = Keypair::new();
 
-    let post_update_accounts = pyth_solana_receiver::accounts::PostUpdates::populate(
+    let post_update_accounts = pyth_solana_receiver::accounts::PostUpdate::populate(
         payer.pubkey(),
         encoded_vaa_keypair.pubkey(),
         price_update_keypair.pubkey(),
@@ -472,8 +472,8 @@ pub fn process_write_encoded_vaa_and_post_price_update(
     let post_update_instructions = Instruction {
         program_id: pyth_solana_receiver::id(),
         accounts:   post_update_accounts,
-        data:       pyth_solana_receiver::instruction::PostUpdates {
-            params: PostUpdatesParams {
+        data:       pyth_solana_receiver::instruction::PostUpdate {
+            params: PostUpdateParams {
                 merkle_price_update: merkle_price_update.clone(),
                 treasury_id:         DEFAULT_TREASURY_ID,
             },

+ 2 - 2
target_chains/solana/programs/pyth-solana-receiver/src/error.rs

@@ -18,10 +18,10 @@ pub enum ReceiverError {
     // Price account permissions
     #[msg("This signer can't write to price update account")]
     WrongWriteAuthority,
-    // Wormhole contract encoded vaa error (from post_updates)
+    // Wormhole contract encoded vaa error (from post_update)
     #[msg("The posted VAA account has the wrong owner.")]
     WrongVaaOwner,
-    // Wormhole signatures verification errors (from post_updates_atomic)
+    // Wormhole signatures verification errors (from post_update_atomic)
     #[msg("An error occurred when deserializing the VAA.")]
     DeserializeVaaFailed,
     #[msg("The number of guardian signatures is below the minimum")]

+ 11 - 11
target_chains/solana/programs/pyth-solana-receiver/src/lib.rs

@@ -108,11 +108,11 @@ pub mod pyth_solana_receiver {
 
     /// Post a price update using a VAA and a MerklePriceUpdate.
     /// This function allows you to post a price update in a single transaction.
-    /// Compared to post_updates, it is less secure since you won't be able to verify all guardian signatures if you use this function because of transaction size limitations.
+    /// Compared to post_update, it is less secure since you won't be able to verify all guardian signatures if you use this function because of transaction size limitations.
     /// Typically, you can fit 5 guardian signatures in a transaction that uses this.
-    pub fn post_updates_atomic(
-        ctx: Context<PostUpdatesAtomic>,
-        params: PostUpdatesAtomicParams,
+    pub fn post_update_atomic(
+        ctx: Context<PostUpdateAtomic>,
+        params: PostUpdateAtomicParams,
     ) -> Result<()> {
         let config = &ctx.accounts.config;
         let guardian_set =
@@ -191,7 +191,7 @@ pub mod pyth_solana_receiver {
     /// Post a price update using an encoded_vaa account and a MerklePriceUpdate calldata.
     /// This should be called after the client has already verified the Vaa via the Wormhole contract.
     /// Check out target_chains/solana/cli/src/main.rs for an example of how to do this.
-    pub fn post_updates(ctx: Context<PostUpdates>, params: PostUpdatesParams) -> Result<()> {
+    pub fn post_update(ctx: Context<PostUpdate>, params: PostUpdateParams) -> Result<()> {
         let config = &ctx.accounts.config;
         let payer: &Signer<'_> = &ctx.accounts.payer;
         let encoded_vaa = VaaAccount::load(&ctx.accounts.encoded_vaa)?;
@@ -259,8 +259,8 @@ pub struct AcceptGovernanceAuthorityTransfer<'info> {
 }
 
 #[derive(Accounts)]
-#[instruction(params: PostUpdatesParams)]
-pub struct PostUpdates<'info> {
+#[instruction(params: PostUpdateParams)]
+pub struct PostUpdate<'info> {
     #[account(mut)]
     pub payer:                Signer<'info>,
     #[account(owner = config.wormhole @ ReceiverError::WrongVaaOwner)]
@@ -280,8 +280,8 @@ pub struct PostUpdates<'info> {
 }
 
 #[derive(Accounts)]
-#[instruction(params: PostUpdatesAtomicParams)]
-pub struct PostUpdatesAtomic<'info> {
+#[instruction(params: PostUpdateAtomicParams)]
+pub struct PostUpdateAtomic<'info> {
     #[account(mut)]
     pub payer:                Signer<'info>,
     /// CHECK: We can't use AccountVariant::<GuardianSet> here because its owner is hardcoded as the "official" Wormhole program and we want to get the wormhole address from the config.
@@ -310,14 +310,14 @@ pub struct ReclaimRent<'info> {
 }
 
 #[derive(Debug, AnchorSerialize, AnchorDeserialize, Clone)]
-pub struct PostUpdatesAtomicParams {
+pub struct PostUpdateAtomicParams {
     pub vaa:                 Vec<u8>,
     pub merkle_price_update: MerklePriceUpdate,
     pub treasury_id:         u8,
 }
 
 #[derive(Debug, AnchorSerialize, AnchorDeserialize, Clone)]
-pub struct PostUpdatesParams {
+pub struct PostUpdateParams {
     pub merkle_price_update: MerklePriceUpdate,
     pub treasury_id:         u8,
 }

+ 14 - 14
target_chains/solana/programs/pyth-solana-receiver/src/sdk.rs

@@ -6,8 +6,8 @@ use {
             Config,
             DataSource,
         },
-        PostUpdatesAtomicParams,
-        PostUpdatesParams,
+        PostUpdateAtomicParams,
+        PostUpdateParams,
         CONFIG_SEED,
         ID,
         TREASURY_SEED,
@@ -40,7 +40,7 @@ impl accounts::Initialize {
     }
 }
 
-impl accounts::PostUpdatesAtomic {
+impl accounts::PostUpdateAtomic {
     pub fn populate(
         payer: Pubkey,
         price_update_account: Pubkey,
@@ -53,7 +53,7 @@ impl accounts::PostUpdatesAtomic {
 
         let guardian_set = get_guardian_set_address(wormhole_address, guardian_set_index);
 
-        accounts::PostUpdatesAtomic {
+        accounts::PostUpdateAtomic {
             payer,
             guardian_set,
             config,
@@ -64,11 +64,11 @@ impl accounts::PostUpdatesAtomic {
     }
 }
 
-impl accounts::PostUpdates {
+impl accounts::PostUpdate {
     pub fn populate(payer: Pubkey, encoded_vaa: Pubkey, price_update_account: Pubkey) -> Self {
         let config = get_config_address();
         let treasury = get_treasury_address(DEFAULT_TREASURY_ID);
-        accounts::PostUpdates {
+        accounts::PostUpdate {
             payer,
             encoded_vaa,
             config,
@@ -113,7 +113,7 @@ impl instruction::Initialize {
     }
 }
 
-impl instruction::PostUpdates {
+impl instruction::PostUpdate {
     pub fn populate(
         payer: Pubkey,
         encoded_vaa: Pubkey,
@@ -121,13 +121,13 @@ impl instruction::PostUpdates {
         merkle_price_update: MerklePriceUpdate,
     ) -> Instruction {
         let post_update_accounts =
-            accounts::PostUpdates::populate(payer, encoded_vaa, price_update_account)
+            accounts::PostUpdate::populate(payer, encoded_vaa, price_update_account)
                 .to_account_metas(None);
         Instruction {
             program_id: ID,
             accounts:   post_update_accounts,
-            data:       instruction::PostUpdates {
-                params: PostUpdatesParams {
+            data:       instruction::PostUpdate {
+                params: PostUpdateParams {
                     merkle_price_update,
                     treasury_id: DEFAULT_TREASURY_ID,
                 },
@@ -138,7 +138,7 @@ impl instruction::PostUpdates {
 }
 
 
-impl instruction::PostUpdatesAtomic {
+impl instruction::PostUpdateAtomic {
     pub fn populate(
         payer: Pubkey,
         price_update_account: Pubkey,
@@ -148,7 +148,7 @@ impl instruction::PostUpdatesAtomic {
         merkle_price_update: MerklePriceUpdate,
         treasury_id: u8,
     ) -> Instruction {
-        let post_update_accounts = accounts::PostUpdatesAtomic::populate(
+        let post_update_accounts = accounts::PostUpdateAtomic::populate(
             payer,
             price_update_account,
             wormhole_address,
@@ -159,8 +159,8 @@ impl instruction::PostUpdatesAtomic {
         Instruction {
             program_id: ID,
             accounts:   post_update_accounts,
-            data:       instruction::PostUpdatesAtomic {
-                params: PostUpdatesAtomicParams {
+            data:       instruction::PostUpdateAtomic {
+                params: PostUpdateAtomicParams {
                     vaa,
                     merkle_price_update,
                     treasury_id,

+ 1 - 1
target_chains/solana/programs/pyth-solana-receiver/tests/common/mod.rs

@@ -157,7 +157,7 @@ pub enum WrongSetupOption {
 /**
  * Setup to test the Pyth Receiver. The return values are a tuple composed of :
  * - The program simulator, which is used to send transactions
- * - The pubkeys of the encoded VAA accounts corresponding to the VAAs passed as argument, these accounts are prepopulated and can be used to test post_updates
+ * - The pubkeys of the encoded VAA accounts corresponding to the VAAs passed as argument, these accounts are prepopulated and can be used to test post_update
  */
 pub async fn setup_pyth_receiver(
     vaas: Vec<Vaa<&RawMessage>>,

+ 11 - 11
target_chains/solana/programs/pyth-solana-receiver/tests/test_post_price_update_from_vaa.rs

@@ -12,7 +12,7 @@ use {
     pyth_solana_receiver::{
         error::ReceiverError,
         instruction::{
-            PostUpdatesAtomic,
+            PostUpdateAtomic,
             SetDataSources,
             SetFee,
         },
@@ -78,7 +78,7 @@ async fn test_invalid_wormhole_message() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -123,7 +123,7 @@ async fn test_invalid_update_message() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -181,7 +181,7 @@ async fn test_post_price_update_from_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -203,7 +203,7 @@ async fn test_post_price_update_from_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -242,7 +242,7 @@ async fn test_post_price_update_from_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -280,7 +280,7 @@ async fn test_post_price_update_from_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -317,7 +317,7 @@ async fn test_post_price_update_from_vaa() {
     // Now it works
     program_simulator
         .process_ix_with_default_compute_limit(
-            PostUpdatesAtomic::populate(
+            PostUpdateAtomic::populate(
                 poster.pubkey(),
                 price_update_keypair.pubkey(),
                 BRIDGE_ID,
@@ -364,7 +364,7 @@ async fn test_post_price_update_from_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -415,7 +415,7 @@ async fn test_post_price_update_from_vaa() {
 
     program_simulator
         .process_ix_with_default_compute_limit(
-            PostUpdatesAtomic::populate(
+            PostUpdateAtomic::populate(
                 poster.pubkey(),
                 price_update_keypair.pubkey(),
                 BRIDGE_ID,
@@ -458,7 +458,7 @@ async fn test_post_price_update_from_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster_2.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,

+ 8 - 8
target_chains/solana/programs/pyth-solana-receiver/tests/test_post_updates.rs

@@ -11,7 +11,7 @@ use {
     pyth_solana_receiver::{
         error::ReceiverError,
         instruction::{
-            PostUpdates,
+            PostUpdate,
             ReclaimRent,
         },
         sdk::{
@@ -41,7 +41,7 @@ mod common;
 
 
 #[tokio::test]
-async fn test_post_updates() {
+async fn test_post_update() {
     let feed_1 = create_dummy_price_feed_message(100);
     let feed_2 = create_dummy_price_feed_message(200);
     let message = create_accumulator_message(&[feed_1, feed_2], &[feed_1, feed_2], false, false);
@@ -66,7 +66,7 @@ async fn test_post_updates() {
     // post one update
     program_simulator
         .process_ix_with_default_compute_limit(
-            PostUpdates::populate(
+            PostUpdate::populate(
                 poster.pubkey(),
                 encoded_vaa_addresses[0],
                 price_update_keypair.pubkey(),
@@ -98,7 +98,7 @@ async fn test_post_updates() {
     // post another update to the same account
     program_simulator
         .process_ix_with_default_compute_limit(
-            PostUpdates::populate(
+            PostUpdate::populate(
                 poster.pubkey(),
                 encoded_vaa_addresses[0],
                 price_update_keypair.pubkey(),
@@ -161,7 +161,7 @@ async fn test_post_updates() {
 }
 
 #[tokio::test]
-async fn test_post_updates_wrong_encoded_vaa_owner() {
+async fn test_post_update_wrong_encoded_vaa_owner() {
     let feed_1 = create_dummy_price_feed_message(100);
     let feed_2 = create_dummy_price_feed_message(200);
     let message = create_accumulator_message(&[feed_1, feed_2], &[feed_1, feed_2], false, false);
@@ -183,7 +183,7 @@ async fn test_post_updates_wrong_encoded_vaa_owner() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdates::populate(
+                PostUpdate::populate(
                     poster.pubkey(),
                     Pubkey::new_unique(), // Random pubkey instead of the encoded VAA address
                     price_update_keypair.pubkey(),
@@ -200,7 +200,7 @@ async fn test_post_updates_wrong_encoded_vaa_owner() {
 }
 
 #[tokio::test]
-async fn test_post_updates_wrong_setup() {
+async fn test_post_update_wrong_setup() {
     let feed_1 = create_dummy_price_feed_message(100);
     let feed_2 = create_dummy_price_feed_message(200);
     let message = create_accumulator_message(&[feed_1, feed_2], &[feed_1, feed_2], false, false);
@@ -222,7 +222,7 @@ async fn test_post_updates_wrong_setup() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdates::populate(
+                PostUpdate::populate(
                     poster.pubkey(),
                     encoded_vaa_addresses[0],
                     price_update_keypair.pubkey(),

+ 18 - 18
target_chains/solana/programs/pyth-solana-receiver/tests/test_post_updates_atomic.rs

@@ -11,7 +11,7 @@ use {
     program_simulator::into_transaction_error,
     pyth_solana_receiver::{
         error::ReceiverError,
-        instruction::PostUpdatesAtomic,
+        instruction::PostUpdateAtomic,
         sdk::{
             deserialize_accumulator_update_data,
             get_guardian_set_address,
@@ -44,7 +44,7 @@ mod common;
 
 
 #[tokio::test]
-async fn test_post_updates_atomic() {
+async fn test_post_update_atomic() {
     let feed_1 = create_dummy_price_feed_message(100);
     let feed_2 = create_dummy_price_feed_message(200);
     let message = create_accumulator_message(&[feed_1, feed_2], &[feed_1, feed_2], false, false);
@@ -69,7 +69,7 @@ async fn test_post_updates_atomic() {
     // post one update atomically
     program_simulator
         .process_ix_with_default_compute_limit(
-            PostUpdatesAtomic::populate(
+            PostUpdateAtomic::populate(
                 poster.pubkey(),
                 price_update_keypair.pubkey(),
                 BRIDGE_ID,
@@ -104,7 +104,7 @@ async fn test_post_updates_atomic() {
     // post another update to the same account
     program_simulator
         .process_ix_with_default_compute_limit(
-            PostUpdatesAtomic::populate(
+            PostUpdateAtomic::populate(
                 poster.pubkey(),
                 price_update_keypair.pubkey(),
                 BRIDGE_ID,
@@ -140,7 +140,7 @@ async fn test_post_updates_atomic() {
     // use another treasury account
     program_simulator
         .process_ix_with_default_compute_limit(
-            PostUpdatesAtomic::populate(
+            PostUpdateAtomic::populate(
                 poster.pubkey(),
                 price_update_keypair.pubkey(),
                 BRIDGE_ID,
@@ -174,7 +174,7 @@ async fn test_post_updates_atomic() {
 }
 
 #[tokio::test]
-async fn test_post_updates_atomic_wrong_vaa() {
+async fn test_post_update_atomic_wrong_vaa() {
     let feed_1 = create_dummy_price_feed_message(100);
     let feed_2 = create_dummy_price_feed_message(200);
     let message = create_accumulator_message(&[feed_1, feed_2], &[feed_1, feed_2], false, false);
@@ -195,7 +195,7 @@ async fn test_post_updates_atomic_wrong_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -221,7 +221,7 @@ async fn test_post_updates_atomic_wrong_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -246,7 +246,7 @@ async fn test_post_updates_atomic_wrong_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -270,7 +270,7 @@ async fn test_post_updates_atomic_wrong_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -294,7 +294,7 @@ async fn test_post_updates_atomic_wrong_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -319,7 +319,7 @@ async fn test_post_updates_atomic_wrong_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -343,7 +343,7 @@ async fn test_post_updates_atomic_wrong_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -368,7 +368,7 @@ async fn test_post_updates_atomic_wrong_vaa() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -386,7 +386,7 @@ async fn test_post_updates_atomic_wrong_vaa() {
         into_transaction_error(ReceiverError::InvalidGuardianKeyRecovery)
     );
 
-    let mut wrong_instruction = PostUpdatesAtomic::populate(
+    let mut wrong_instruction = PostUpdateAtomic::populate(
         poster.pubkey(),
         price_update_keypair.pubkey(),
         BRIDGE_ID,
@@ -414,7 +414,7 @@ async fn test_post_updates_atomic_wrong_vaa() {
 
 
 #[tokio::test]
-async fn test_post_updates_atomic_wrong_setup() {
+async fn test_post_update_atomic_wrong_setup() {
     let feed_1 = create_dummy_price_feed_message(100);
     let feed_2 = create_dummy_price_feed_message(200);
     let message = create_accumulator_message(&[feed_1, feed_2], &[feed_1, feed_2], false, false);
@@ -430,7 +430,7 @@ async fn test_post_updates_atomic_wrong_setup() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,
@@ -458,7 +458,7 @@ async fn test_post_updates_atomic_wrong_setup() {
     assert_eq!(
         program_simulator
             .process_ix_with_default_compute_limit(
-                PostUpdatesAtomic::populate(
+                PostUpdateAtomic::populate(
                     poster.pubkey(),
                     price_update_keypair.pubkey(),
                     BRIDGE_ID,