one more try 🤞
This commit is contained in:
@@ -67,3 +67,22 @@ yarn lint
|
||||
```bash
|
||||
yarn test
|
||||
```
|
||||
|
||||
### Run Foundry Tests
|
||||
you will need to create a .env that the root of `/contracts/zero-ex` containing rpc's for all 7 chains the tests will be run on
|
||||
|
||||
```sh
|
||||
FORGE_ARBITRUM_RPC=https://arb-mainnet........
|
||||
FORGE_AVALANCHE_RPC=https://avalanche-........
|
||||
FORGE_BSC_RPC=https://winter-frosty-fi........
|
||||
FORGE_FANTOM_RPC=https://muddy-rough-m........
|
||||
FORGE_MAINNET_RPC=https://eth-mainnet.........
|
||||
FORGE_OPTIMISM_RPC=https://opt-mainnet........
|
||||
FORGE_POLYGON_RPC=https://polygon-main........
|
||||
```
|
||||
|
||||
```bash
|
||||
yarn foundry:SU
|
||||
foundryup
|
||||
yarn forge
|
||||
```
|
||||
|
@@ -12,7 +12,7 @@ import "src/transformers/WethTransformer.sol";
|
||||
import "src/transformers/FillQuoteTransformer.sol";
|
||||
import "src/transformers/bridges/BridgeProtocols.sol";
|
||||
import "src/features/OtcOrdersFeature.sol";
|
||||
import "@0x/samplers/UniswapV2Sampler.sol";
|
||||
import "samplers/UniswapV2Sampler.sol";
|
||||
import "forge-std/StdJson.sol";
|
||||
|
||||
contract ETHToERC20TransformTest is Test, ForkUtils, TestUtils {
|
||||
|
@@ -12,7 +12,7 @@ import "src/transformers/WethTransformer.sol";
|
||||
import "src/transformers/FillQuoteTransformer.sol";
|
||||
import "src/transformers/bridges/BridgeProtocols.sol";
|
||||
import "src/features/OtcOrdersFeature.sol";
|
||||
import "@0x/samplers/UniswapV2Sampler.sol";
|
||||
import "samplers/UniswapV2Sampler.sol";
|
||||
import "forge-std/StdJson.sol";
|
||||
|
||||
contract NativeTokenToERC20WithOtcTest is Test, ForkUtils, TestUtils {
|
||||
|
@@ -8,7 +8,7 @@ remappings = [
|
||||
'@0x/contracts-erc20/=../erc20/',
|
||||
'src/=./contracts/src',
|
||||
'@0x/contract-addresses/=../../packages/contract-addresses',
|
||||
'@0x/samplers/=contracts/test/samplers',
|
||||
'samplers/=contracts/test/samplers',
|
||||
]
|
||||
cache_path = 'foundry-cache'
|
||||
optimizer_runs = 1000000
|
||||
|
Reference in New Issue
Block a user