Skip to content

Commit

Permalink
Set up testing using foundry
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasdenH committed Apr 19, 2022
1 parent d4962cb commit 100c507
Show file tree
Hide file tree
Showing 19 changed files with 167,759 additions and 3 deletions.
197 changes: 197 additions & 0 deletions cache/solidity-files-cache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
{
"_format": "ethers-rs-sol-cache-3",
"paths": {
"artifacts": "out",
"sources": "src",
"tests": "test",
"libraries": [
"lib"
]
},
"files": {
"F:\\Git\\yvarb\\lib\\ds-test\\src/test.sol": {
"lastModificationDate": 1650365129624,
"contentHash": "2c9806925f5d78ba4f4fb0570611cca3",
"sourceName": "lib\\ds-test\\src/test.sol",
"solcConfig": {
"settings": {
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers"
]
}
},
"evmVersion": "london"
}
},
"imports": [],
"versionRequirement": ">=0.5.0",
"artifacts": {
"DSTest": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "test.sol\\DSTest.json"
}
}
},
"F:\\Git\\yvarb\\src\\YieldLever.sol": {
"lastModificationDate": 1650373944406,
"contentHash": "50fa26e3effb92bcb0894fd72797e8f2",
"sourceName": "src\\YieldLever.sol",
"solcConfig": {
"settings": {
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers"
]
}
},
"evmVersion": "london"
}
},
"imports": [],
"versionRequirement": "^0.8.13",
"artifacts": {
"Cauldron": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.sol\\Cauldron.json"
},
"IERC20": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.sol\\IERC20.json"
},
"IFYToken": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.sol\\IFYToken.json"
},
"IToken": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.sol\\IToken.json"
},
"YieldLadle": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.sol\\YieldLadle.json"
},
"YieldLever": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.sol\\YieldLever.json"
},
"yVault": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.sol\\yVault.json"
}
}
},
"F:\\Git\\yvarb\\test\\Interfaces.sol": {
"lastModificationDate": 1645212081681,
"contentHash": "3dfdd07ce11cc0f3f5811c96038216b0",
"sourceName": "test\\Interfaces.sol",
"solcConfig": {
"settings": {
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers"
]
}
},
"evmVersion": "london"
}
},
"imports": [],
"versionRequirement": "^0.8.0",
"artifacts": {
"IUniswapV2Router02": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "Interfaces.sol\\IUniswapV2Router02.json"
}
}
},
"F:\\Git\\yvarb\\test\\YieldLever.t.sol": {
"lastModificationDate": 1650374139987,
"contentHash": "3d1fb30be8bb8cd0cc1888e7d1b38376",
"sourceName": "test\\YieldLever.t.sol",
"solcConfig": {
"settings": {
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers"
]
}
},
"evmVersion": "london"
}
},
"imports": [
"lib\\ds-test\\src/test.sol",
"src\\YieldLever.sol"
],
"versionRequirement": "^0.8.13",
"artifacts": {
"AccessControl": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.t.sol\\AccessControl.json"
},
"CheatCodes": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.t.sol\\CheatCodes.json"
},
"HelperContract": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.t.sol\\HelperContract.json"
},
"IUniswapV2Router02": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.t.sol\\IUniswapV2Router02.json"
},
"Pool": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.t.sol\\Pool.json"
},
"YieldLeverTest": {
"0.8.13+commit.abaa5c0e.Windows.msvc": "YieldLever.t.sol\\YieldLeverTest.json"
}
}
}
}
}
5 changes: 5 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[default]
src = 'src'
out = 'out'

# See more config options https://github.com/gakonst/foundry/tree/master/config
Loading

0 comments on commit 100c507

Please sign in to comment.