hardhat-fe icon indicating copy to clipboard operation
hardhat-fe copied to clipboard

feat: cache for compile task

Open swr1bm86 opened this issue 3 years ago • 3 comments

right now, it will compile all Fe contract files every time with npx hardhat compile, need a cache mechanism for eliminate redundant compiling process.

swr1bm86 avatar May 07 '22 00:05 swr1bm86

What do you imagine the solution to this looking like? Where in the stack does it live?

with-heart avatar May 16 '22 19:05 with-heart

@with-heart I think a dispatcher to memorize last modified timestamp of each contract file will do the rescue :)

swr1bm86 avatar May 22 '22 08:05 swr1bm86

https://github.com/NomicFoundation/hardhat/blob/master/packages/hardhat-vyper/src/cache.ts#L28

swr1bm86 avatar Jun 12 '22 14:06 swr1bm86