File tree Expand file tree Collapse file tree
pda-mint-authority/anchor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ node_modules/
88** /* /node_modules
99** /* /package-lock.json
1010** /* /Cargo.lock
11+ # Exception: escrow native needs Cargo.lock to pin blake3 (see tokens/escrow/native/Cargo.toml)
12+ ! tokens /escrow /native /Cargo.lock
1113
1214** /* /.anchor
1315** /* /.DS_Store
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ wallet = "~/.config/solana/id.json"
1818[scripts ]
1919test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
2020
21+ # Tests use solana-bankrun (in-process simulation), not the local validator.
22+ # No [test.validator] section needed — adding one (e.g. to clone programs from
23+ # mainnet) would slow down validator startup without benefit, since bankrun
24+ # loads programs directly from the local build.
2125[test ]
2226startup_wait = 25000
2327shutdown_wait = 2000
Original file line number Diff line number Diff line change 11[workspace ]
22members = [" program" ]
33resolver = " 2"
4+
5+ # Cargo.lock is committed to pin blake3 to 1.5.5 (and constant_time_eq to 0.3.1).
6+ # blake3 >= 1.8.3 requires Rust edition 2024, which the Cargo bundled with
7+ # solana-program 1.18.17's platform-tools (Cargo 1.84.0) doesn't support.
8+ # When solana-program is upgraded to a version with edition 2024 support,
9+ # this Cargo.lock pin can be removed and the crate re-resolved freely.
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ describe('Escrow!', async () => {
6464 const vaultTokenAccount = AccountLayout . decode ( vaultInfo . data ) ;
6565
6666 assert ( offer . id . toString ( ) === values . id . toString ( ) , 'wrong id' ) ;
67+ // borsh deserializes pubkeys as raw byte arrays, wrap in PublicKey for comparison
6768 assert ( new PublicKey ( offer . maker ) . toBase58 ( ) === values . maker . publicKey . toBase58 ( ) , 'maker key does not match' ) ;
6869 assert ( new PublicKey ( offer . token_mint_a ) . toBase58 ( ) === values . mintAKeypair . publicKey . toBase58 ( ) , 'wrong mint A' ) ;
6970 assert ( new PublicKey ( offer . token_mint_b ) . toBase58 ( ) === values . mintBKeypair . publicKey . toBase58 ( ) , 'wrong mint B' ) ;
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ wallet = "~/.config/solana/id.json"
1919[scripts ]
2020test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
2121
22+ # Tests use solana-bankrun (in-process simulation), not the local validator.
23+ # No [test.validator] section needed — adding one (e.g. to clone programs from
24+ # mainnet) would slow down validator startup without benefit, since bankrun
25+ # loads programs directly from the local build.
2226[test ]
2327startup_wait = 25000
2428shutdown_wait = 2000
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ url = "https://api.apr.dev"
1818cluster = " localnet"
1919wallet = " ~/.config/solana/id.json"
2020
21+ # Tests use solana-bankrun (in-process simulation), not the local validator.
22+ # No [test.validator] section needed — adding one (e.g. to clone programs from
23+ # mainnet) would slow down validator startup without benefit, since bankrun
24+ # loads programs directly from the local build.
2125[test ]
2226startup_wait = 25000
2327
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ wallet = "~/.config/solana/id.json"
1818[scripts ]
1919test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
2020
21+ # Tests use solana-bankrun (in-process simulation), not the local validator.
22+ # No [test.validator] section needed — adding one (e.g. to clone programs from
23+ # mainnet) would slow down validator startup without benefit, since bankrun
24+ # loads programs directly from the local build.
2125[test ]
2226startup_wait = 25000
2327shutdown_wait = 2000
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ wallet = "~/.config/solana/id.json"
1818[scripts ]
1919test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
2020
21+ # Tests use solana-bankrun (in-process simulation), not the local validator.
22+ # No [test.validator] section needed — adding one (e.g. to clone programs from
23+ # mainnet) would slow down validator startup without benefit, since bankrun
24+ # loads programs directly from the local build.
2125[test ]
2226startup_wait = 25000
2327shutdown_wait = 2000
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ url = "https://api.apr.dev"
1414cluster = " Localnet"
1515wallet = " ~/.config/solana/id.json"
1616
17+ # Tests use solana-bankrun (in-process simulation), not the local validator.
18+ # No [test.validator] section needed — adding one (e.g. to clone programs from
19+ # mainnet) would slow down validator startup without benefit, since bankrun
20+ # loads programs directly from the local build.
1721[test ]
1822startup_wait = 25000
1923
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ wallet = "~/.config/solana/id.json"
1818[scripts ]
1919test = " pnpm ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
2020
21+ # Tests use the real local validator (not bankrun) because transfer-hook
22+ # tests need the actual validator runtime. startup_wait is 120s because the
23+ # validator clones programs from devnet which is slow in CI.
2124[test ]
2225startup_wait = 120000
2326shutdown_wait = 2000
You can’t perform that action at this time.
0 commit comments