Foundry is a smart contract development toolchain.
https://book.getfoundry.sh/
code: https://gist.github.com/AndreiD/b4ffe...
Foundry manages your dependencies, compiles your project, runs tests, deploys, and lets you interact with the chain from the command-line and via Solidity scripts.