Skip to content

Commit

Permalink
Upgrade: deprecated ds-test, use forge-std for all
Browse files Browse the repository at this point in the history
Tested: FlippazOne.sol
  • Loading branch information
finn79426 committed Jul 15, 2022
1 parent 16b2bab commit 7a842cc
Show file tree
Hide file tree
Showing 46 changed files with 48 additions and 45 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
2 changes: 1 addition & 1 deletion src/test/Anyswap_poc.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Auctus_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract MockACOToken {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Bacon_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Beanstalk_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/BuildF_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/CompoundTusd_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Cover_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

interface Blacksmith {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Cream_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Discover_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

interface ETHpledge {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Elephant_Money_poc.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//Credit: W2Ning
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Fantasm_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Gym_1_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Gym_2_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Harmony_multisig.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/HarvestFinance_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/InverseFinance_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Mono_exp.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Novo_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

// Exploit Alert ref: https://www.panewslab.com/zh_hk/articledetails/f40t9xb4.html
Expand Down
2 changes: 1 addition & 1 deletion src/test/Omni_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

interface IDOODLENFTXVault{
Expand Down
2 changes: 1 addition & 1 deletion src/test/OneRing_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Optimism_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

interface ProxyFactory {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Paraluni_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract EvilToken {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Parity_kill.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

interface parity {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Quixotic_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

interface Quixotic {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Rari_exp.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Revest_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Rikkei_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/SenseFinance_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

interface ISpace {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Snood_poc.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

interface IUNIPAIR is IERC20 {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Sushimiso_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

interface IDutchAuction {
Expand Down
2 changes: 1 addition & 1 deletion src/test/TreasureDAO_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Visor_exp.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Wdoge_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/XCarnival.exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

// @KeyInfo
Expand Down
2 changes: 1 addition & 1 deletion src/test/XSURGE_exp.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

interface IpancakePair {
Expand Down
2 changes: 1 addition & 1 deletion src/test/Zeed_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/deus_exp.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/dodo_flashloan.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

interface Token {
Expand Down
2 changes: 1 addition & 1 deletion src/test/dodo_flashloan_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/flashloan_aave.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/flashloan_balancer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// !! THIS FILE WAS AUTOGENERATED BY abi-to-sol v0.5.3. SEE SOURCE BELOW. !!
pragma solidity >=0.7.0 <0.9.0;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/flashloan_biswap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract Exploit is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/flashloan_uniswapv2.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/flashswap_pancake.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;

import "ds-test/test.sol";
import "forge-std/Test.sol";
import "./interface.sol";

contract ContractTest is DSTest {
Expand Down
Loading

0 comments on commit 7a842cc

Please sign in to comment.