Skip to content

Commit aa9dbd4

Browse files
author
Bengt Lofgren
committed
attended all comments so far
1 parent 0c36e1b commit aa9dbd4

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

solana/modules/matching-engine-testing/tests/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,23 @@ What is expected:
3232

3333
What is expected:
3434
- Fast market order account is created
35-
- Guardian set is created
35+
- Guardian signatures account is created via Verify VAA Shim program, which are the signatures found in the fast market order VAA from the source network.
3636
- Fast market order is initialised
3737

3838
### Close fast market order
3939

4040
What is expected:
4141
- Fast market order account is closed
42-
- Guardian set is closed
43-
- Close account refund recipient is sent usdc
42+
- Close account refund recipient is sent lamports from the fast market order account
4443

45-
### Place initial offer (shimless)
44+
### Place initial offer (shim)
4645

4746
What is expected:
4847
- Fast market order is initialised
4948
- Initial offer is placed
5049
- Auction account is created and corresponds to a vaa and the initial offer
5150

52-
### Place initial offer (shim)
51+
### Place initial offer (shimless)
5352

5453
What is expected:
5554
- Fast market order is posted as a vaa

solana/modules/matching-engine-testing/tests/utils/constants.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,14 @@ impl Chain {
184184

185185
// Registered Token Routers
186186
lazy_static::lazy_static! {
187-
pub static ref REGISTERED_TOKEN_ROUTERS: std::collections::HashMap<Chain, Vec<u8>> = {
187+
pub static ref REGISTERED_TOKEN_ROUTERS: std::collections::HashMap<Chain, [u8; 32]> = {
188188
let mut m = std::collections::HashMap::new();
189-
m.insert(Chain::Ethereum, vec![0xf0; 32]);
190-
m.insert(Chain::Avalanche, vec![0xf1; 32]);
191-
m.insert(Chain::Optimism, vec![0xf2; 32]);
192-
m.insert(Chain::Arbitrum, vec![0xf3; 32]);
193-
m.insert(Chain::Base, vec![0xf6; 32]);
194-
m.insert(Chain::Polygon, vec![0xf7; 32]);
189+
m.insert(Chain::Ethereum, [0xf0; 32]);
190+
m.insert(Chain::Avalanche, [0xf1; 32]);
191+
m.insert(Chain::Optimism, [0xf2; 32]);
192+
m.insert(Chain::Arbitrum, [0xf3; 32]);
193+
m.insert(Chain::Base, [0xf6; 32]);
194+
m.insert(Chain::Polygon, [0xf7; 32]);
195195
m
196196
};
197197
}

0 commit comments

Comments
 (0)