@@ -9,7 +9,7 @@ Thare are two types of test contracts:
99 assets, contract initialization state, etc.
1010- ExchangeForkTests: Tests that are specific to the exchange, such as trading limits, swaps, circuit breakers, etc.
1111
12- To make it easier to debug and develop, we have one ChainForkTest for each chain (Alfajores, Celo) and
12+ To make it easier to debug and develop, we have one ChainForkTest for each chain (Celo) and
1313one ExchangeForkTest for each exchange provider and exchange pair.
1414
1515The ChainForkTests are instantiated with:
@@ -26,17 +26,17 @@ The ExchangeForkTests are instantiated with:
2626
2727And the naming convention for them is:
2828- ${ChainName}_P${ExchangeProviderIndex}E${ExchangeIndex}_ExchangeForkTest
29- - e.g. "Alfajores_P0E00_ExchangeForkTest (Alfajores , Exchange Provider 0, Exchange 0)"
29+ - e.g. "Celo_P0E00_ExchangeForkTest (Celo , Exchange Provider 0, Exchange 0)"
3030The Exchange Index is 0 padded to make them align nicely in the file.
3131Exchange provider counts shouldn't exceed 10. If they do, then we need to update the naming convention.
3232
3333This makes it easy to drill into which exchange is failing and debug it like:
3434- `$ env FOUNDRY_PROFILE=fork-tests forge test --match-contract CELO_P0E12`
3535or run all tests for a chain:
36- - `$ env FOUNDRY_PROFILE=fork-tests forge test --match-contract Alfajores `
36+ - `$ env FOUNDRY_PROFILE=fork-tests forge test --match-contract Celo `
3737*/
3838
39- import { CELO_ID, ALFAJORES_ID } from "mento-std/Constants.sol " ;
39+ import { CELO_ID } from "mento-std/Constants.sol " ;
4040import { uints } from "mento-std/Array.sol " ;
4141import { ChainForkTest } from "./ChainForkTest.sol " ;
4242import { ExchangeForkTest } from "./ExchangeForkTest.sol " ;
@@ -45,46 +45,6 @@ import { GoodDollarTradingLimitsForkTest } from "./GoodDollar/TradingLimitsForkT
4545import { GoodDollarSwapForkTest } from "./GoodDollar/SwapForkTest.sol " ;
4646import { GoodDollarExpansionForkTest } from "./GoodDollar/ExpansionForkTest.sol " ;
4747
48- contract Alfajores_ChainForkTest is ChainForkTest (ALFAJORES_ID , 1 , uints (19 )) {}
49-
50- contract Alfajores_P0E00_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 0 ) {}
51-
52- contract Alfajores_P0E01_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 1 ) {}
53-
54- contract Alfajores_P0E02_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 2 ) {}
55-
56- contract Alfajores_P0E03_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 3 ) {}
57-
58- contract Alfajores_P0E04_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 4 ) {}
59-
60- contract Alfajores_P0E05_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 5 ) {}
61-
62- contract Alfajores_P0E06_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 6 ) {}
63-
64- contract Alfajores_P0E07_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 7 ) {}
65-
66- contract Alfajores_P0E08_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 8 ) {}
67-
68- contract Alfajores_P0E09_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 9 ) {}
69-
70- contract Alfajores_P0E10_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 10 ) {}
71-
72- contract Alfajores_P0E11_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 11 ) {}
73-
74- contract Alfajores_P0E12_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 12 ) {}
75-
76- contract Alfajores_P0E13_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 13 ) {}
77-
78- contract Alfajores_P0E14_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 14 ) {}
79-
80- contract Alfajores_P0E15_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 15 ) {}
81-
82- contract Alfajores_P0E16_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 16 ) {}
83-
84- contract Alfajores_P0E17_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 17 ) {}
85-
86- contract Alfajores_P0E18_ExchangeForkTest is ExchangeForkTest (ALFAJORES_ID , 0 , 18 ) {}
87-
8848contract Celo_ChainForkTest is ChainForkTest (CELO_ID , 1 , uints (19 )) {}
8949
9050contract Celo_P0E00_ExchangeForkTest is ExchangeForkTest (CELO_ID , 0 , 0 ) {}
0 commit comments