Use hardhat-exposed to reduce the need for mocks (#3666)

Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
Hadrien Croubois
2023-01-03 15:38:13 +01:00
committed by GitHub
parent a81b0d0b21
commit c1d9da4052
190 changed files with 2297 additions and 4311 deletions

View File

@ -16,18 +16,10 @@ function getVersion (path) {
}
for (const [ file, template ] of Object.entries({
// SafeCast
'utils/math/SafeCast.sol': './templates/SafeCast.js',
'mocks/SafeCastMock.sol': './templates/SafeCastMock.js',
// EnumerableSet
'utils/structs/EnumerableSet.sol': './templates/EnumerableSet.js',
'mocks/EnumerableSetMock.sol': './templates/EnumerableSetMock.js',
// EnumerableMap
'utils/structs/EnumerableMap.sol': './templates/EnumerableMap.js',
'mocks/EnumerableMapMock.sol': './templates/EnumerableMapMock.js',
// Checkpoints
'utils/Checkpoints.sol': './templates/Checkpoints.js',
'mocks/CheckpointsMock.sol': './templates/CheckpointsMock.js',
})) {
const script = path.relative(path.join(__dirname, '../..'), __filename);
const input = path.join(path.dirname(script), template);