Skip to content

Commit 3f2a8e2

Browse files
Bengt Lofgrena5-pickle
authored andcommitted
refactored and docstringed matching-engine-testing/tests/shimful directory
1 parent 9a52c06 commit 3f2a8e2

File tree

12 files changed

+545
-573
lines changed

12 files changed

+545
-573
lines changed

solana/modules/matching-engine-testing/tests/shimful/fast_market_order_shim.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ pub async fn initialize_fast_market_order_shimful(
9292
&[initialize_fast_market_order_ix],
9393
Some(&payer_signer.pubkey()),
9494
&[&payer_signer],
95-
1000000000,
96-
1000000000,
95+
None,
96+
None,
9797
)
9898
.await;
9999
testing_context

solana/modules/matching-engine-testing/tests/shimful/post_message.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,21 @@ pub async fn set_up_post_message_transaction_test(
110110
);
111111
}
112112

113+
/// Set up post message transaction
114+
///
115+
/// This function sets up a post message transaction
116+
///
117+
/// # Arguments
118+
///
119+
/// * `payload` - The payload to post
120+
/// * `payer_signer` - The payer signer
121+
/// * `emitter_signer` - The emitter signer
122+
/// * `recent_blockhash` - The recent blockhash
123+
///
124+
/// # Returns
125+
///
126+
/// * `VersionedTransaction` - The versioned transaction that can be executed to post the message
127+
/// * `BumpCosts` - The bump costs for the message and sequence
113128
fn set_up_post_message_transaction(
114129
payload: &[u8],
115130
payer_signer: &Keypair,

0 commit comments

Comments
 (0)