scti
solidity contract to interface
given a truffle json file, convert the abi to a Solidity abstract contract/interface.
Usage
without install
npx scti ~/my-truffle-project/build/json/MyContract.json
with install
npm i -g scti
scti ~/my-truffle-project/build/json/MyContract.json
Output
The output will be printed to stdout, which you can redirect to a file:
npx scti ~/my-truffle-project/build/json/MyContract.json > MyContractInterface.sol
License
MIT