1+ # Anchor configuration for Whirlpool program
2+ # Note: Tests now use LiteSVM instead of Anchor's test validator.
3+ # External programs and preloaded accounts are configured in litesvm.ts.
4+
15[programs .localnet ]
26whirlpool = " whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"
37
@@ -7,104 +11,3 @@ url = "https://anchor.projectserum.com"
711[provider ]
812cluster = " localnet"
913wallet = " ~/.config/solana/id.json"
10-
11- [scripts ]
12- # When you run "anchor test" command, it searches for Test.toml files under the anchor_tests directory and executes them in order.
13- # These tests are large and require several hours to complete.
14- #
15- # If you want to run only specific test cases, specify the directory where Test.toml resides using --run option.
16- #
17- # Example 1) Run all tests
18- #
19- # anchor test
20- #
21- # Example 2) Run only the tests for integration/token-badge
22- #
23- # anchor test --run anchor_tests/int/token-badge
24- #
25- # Example 3) Run only the tests for integration/token-badge and sdk/whirlpools/utils
26- #
27- # anchor test --run anchor_tests/int/token-badge --run anchor_tests/sdk/utils
28-
29- [test .validator ]
30- # If we use slot_per_epoch = "33", rent for Position account (216 byte) was not 0.00239424 but 0.002394239
31- slots_per_epoch = " 32"
32- ticks_per_slot = 7
33- url = " https://api.mainnet-beta.solana.com"
34-
35- # In v0.29.0, this doesn't work because ProgramData account is cloned with executable = false (anchor bug ?)
36- # So we need to use test.genesis config.
37- # [[test.validator.clone]]
38- # address = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
39-
40- [[test .genesis ]]
41- address = " metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
42- program = " legacy-sdk/whirlpool/tests/external_program/mpl_token_metadata.20240214.so"
43-
44- [[test .genesis ]]
45- address = " EBZDYx7599krFc4m2govwBdZcicr4GgepqC78m71nsHS"
46- program = " legacy-sdk/whirlpool/tests/external_program/transfer_hook_counter.so"
47-
48- # Newer Token-2022
49- [[test .genesis ]]
50- address = " TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
51- program = " legacy-sdk/whirlpool/tests/external_program/token_2022.20250510.so"
52-
53- # For reset_position_range test
54- # Now, it is impossible to initialize position account without additional rent for ticks.
55- # So we need to load test old position account without the additional rent.
56- [[test .validator .account ]]
57- address = " 4GQ4VQZKPt4fLxGCusfdBZia2ge5hUZpfwwr3pqxUrmf"
58- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/owner_wallet.json"
59- [[test .validator .account ]]
60- address = " Jd4M8bfJG3sAkd82RsGWyEXoaBXQP7njFzBwEaCTuDa"
61- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/token_a.json"
62- [[test .validator .account ]]
63- address = " BRjpCHtyQLNCo8gqRUr8jtdAj5AjPYQaoqbvcZiHok1k"
64- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/token_b.json"
65- [[test .validator .account ]]
66- address = " EgxU92G34jw6QDG9RuTX9StFg1PmHuDqkRKAE5kVEiZ4"
67- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/whirlpool.json"
68- [[test .validator .account ]]
69- address = " GedZgiHw8dJpR6Fyt1PNgSwYznEyh18qgZvobuxYxMQ3"
70- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/vault_a.json"
71- [[test .validator .account ]]
72- address = " 4KDudC7XagDiZZbd9Xzabcy5yZMC8bvz7c8q7Bb9vXTa"
73- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/vault_b.json"
74- [[test .validator .account ]]
75- address = " AihMywzP74pU2riq1ihFW2YSVcc1itT3yiP7minvkxDs"
76- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/fixed_tick_array_lower.json"
77- [[test .validator .account ]]
78- address = " F4h3qr6uBgdLDJyTms4YiebiaiuCEvC5C9LJE8scA1LV"
79- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/fixed_tick_array_upper.json"
80- [[test .validator .account ]]
81- address = " CzKujYEJWNCvFHhjCBcv5gKnnTdvXrQ3b9ecxyZQV6sg"
82- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/position_mint.json"
83- [[test .validator .account ]]
84- address = " J6DFYFKUsoMYgxkbeAqVnpSb8fniA9tHR44ZQu8KBgMS"
85- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/position.json"
86- [[test .validator .account ]]
87- address = " 6wGj2VeDPPP1ni6TJA1KuwExFXCWKsvXLyJZvfBsfgWY"
88- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/position_ata.json"
89- [[test .validator .account ]]
90- address = " oH6UWXaG2uvePMcqR9bih8E2Gt9eS4jhYx5VyAEC4k1"
91- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/token_a_ata.json"
92- [[test .validator .account ]]
93- address = " 7kshCxjaA7uY2C77X733ZZjM1EE31FhceM9dm4QXrxqZ"
94- filename = " legacy-sdk/whirlpool/tests/preload_account/reset_position_range/token_b_ata.json"
95-
96- # For migrate_repurpose_reward_authority_space test
97- # Now, it is impossible to initialize whirlpool with 3 reward authorities (not migrated layout)
98- # So we need to load test old Whirlpool account.
99- [[test .validator .account ]]
100- address = " 7vWRTPPBq3aNaJZsrfterTz1BSjht4YSHBXJwnbuV6SC"
101- filename = " legacy-sdk/whirlpool/tests/preload_account/migrate_repurpose_reward_authority_space/whirlpool.json"
102-
103- # For open_position_with_token_extensions test
104- # Now, it is impossible to initialize whirlpool with 3 reward authorities (not migrated layout)
105- # So we need to load test old Whirlpool account.
106- # This account has not been migrated, and unless that is recognized, the bit array may be misinterpreted as control_flags,
107- # potentially resulting in the creation of a non-transferable position.
108- [[test .validator .account ]]
109- address = " Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE"
110- filename = " legacy-sdk/whirlpool/tests/preload_account/open_position_with_token_extensions/whirlpool.json"
0 commit comments