File tree Expand file tree Collapse file tree 6 files changed +15
-4
lines changed Expand file tree Collapse file tree 6 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -1468,7 +1468,8 @@ workflows:
1468
1468
- t_ems_ext : *job_native_test_ext_trident
1469
1469
- t_ems_ext : *job_native_test_ext_euler
1470
1470
- t_ems_ext : *job_native_test_ext_yield_liquidator
1471
- - t_ems_ext : *job_native_test_ext_bleeps
1471
+ # Disabled until we have a fix for https://github.com/wighawag/bleeps/issues/2
1472
+ # -t_ems_ext: *job_native_test_ext_bleeps
1472
1473
- t_ems_ext : *job_native_test_ext_pool_together
1473
1474
- t_ems_ext : *job_native_test_ext_perpetual_pools
1474
1475
- t_ems_ext : *job_native_test_ext_uniswap
Original file line number Diff line number Diff line change @@ -27,15 +27,16 @@ source test/externalTests/common.sh
27
27
verify_input " $@ "
28
28
BINARY_TYPE=" $1 "
29
29
BINARY_PATH=" $2 "
30
+ SELECTED_PRESETS=" $3 "
30
31
31
32
function compile_fn { npm run compile; }
32
33
function test_fn { npm run test ; }
33
34
34
35
function bleeps_test
35
36
{
36
37
local repo=" https://github.com/wighawag/bleeps"
37
- local ref_type=tag
38
- local ref=bleeps_migrations # TODO: There's a 0.4.19 contract in ' main' that would need patching for the latest compiler.
38
+ local ref_type=branch
39
+ local ref=main
39
40
local config_file=" hardhat.config.ts"
40
41
local config_var=config
41
42
@@ -65,6 +66,12 @@ function bleeps_test
65
66
pushd " contracts/"
66
67
sed -i ' s|"bleeps-common": "workspace:\*",|"bleeps-common": "file:../common-lib/",|g' package.json
67
68
69
+ sed -i ' s/function() public/fallback() external/g' src/externals/WETH9.sol
70
+ sed -i ' s/this\.balance/address(this).balance/g' src/externals/WETH9.sol
71
+ sed -i ' s/uint(-1)/type(uint).max/g' src/externals/WETH9.sol
72
+ sed -i ' s/msg\.sender\.transfer(/payable(msg.sender).transfer(/g' src/externals/WETH9.sol
73
+ sed -i ' s/^\s*\(Deposit\|Withdrawal\|Approval\|Transfer\)(/emit \1(/g' src/externals/WETH9.sol
74
+
68
75
neutralize_package_lock
69
76
neutralize_package_json_hooks
70
77
force_hardhat_compiler_binary " $config_file " " $BINARY_TYPE " " $BINARY_PATH "
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ source test/externalTests/common.sh
27
27
verify_input " $@ "
28
28
BINARY_TYPE=" $1 "
29
29
BINARY_PATH=" $2 "
30
+ SELECTED_PRESETS=" $3 "
30
31
31
32
function compile_fn { npm run build; }
32
33
function test_fn { npm run test ; }
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function test_fn { yarn test; }
34
34
35
35
function perpetual_pools_test
36
36
{
37
- local repo=" https://github.com/tracer-protocol /perpetual-pools-contracts"
37
+ local repo=" https://github.com/solidity-external-tests /perpetual-pools-contracts"
38
38
local ref_type=branch
39
39
local ref=pools-v2
40
40
local config_file=" hardhat.config.ts"
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ source test/externalTests/common.sh
27
27
verify_input " $@ "
28
28
BINARY_TYPE=" $1 "
29
29
BINARY_PATH=" $2 "
30
+ SELECTED_PRESETS=" $3 "
30
31
31
32
function compile_fn { yarn build; }
32
33
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ source test/externalTests/common.sh
27
27
verify_input " $@ "
28
28
BINARY_TYPE=" $1 "
29
29
BINARY_PATH=" $2 "
30
+ SELECTED_PRESETS=" $3 "
30
31
31
32
function compile_fn { yarn compile; }
32
33
function test_fn { UPDATE_SNAPSHOT=1 npx hardhat test ; }
You can’t perform that action at this time.
0 commit comments