one more try 🤞

This commit is contained in:
dextracker
2022-11-22 19:36:15 -05:00
parent bdf71a94e8
commit f39dded7cb
4 changed files with 22 additions and 3 deletions

View File

@@ -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
```

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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