Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp(contracts): Improve make command to compile smart contracts (#2487)
* add hardhat setup and gitignore * move contracts into subdirectory for hardhat compilation * add hardhat compiled contract type and corresponding test - move contracts into testdata subfolder * add WIP go embedding for hardhat contract * add wip for python script to compile all contracts * commit wip scanning the repo for Solidity files * wip * move compiled JSON files next to Solidity files * add compilation step * adjust import path on ERC20NoMetadata contract * check input args to either compile or clean * adjust contract name on ERC20NoMetadata * some fixes for the script * adjust Makefile targets for smart contract compilation * remove print statements * adjust contracts in precompiles dir to work with new approach * improvements to script * adjust ERC20 contracts * add README and --add option * remove todo * add script readme * run black formatter * adjust more linters * add changelog entry * more linter adjustments * fix changelog and improve check message * linters * move flash loan contract into contracts directory * move flash loan contract into testdata directory * rename contracts subdirectory to solidity * fix failure on other script tests * run black formatter * adjust imports on ERC20 go files * remove contracts from being initialized in init functions to dedicated methods to load them * remove unused burnable contract * run gofumpt * address linters * address JS linter * address more JS linters * remove unused contracts and move things into test packages and testdata folders to clean up the production code * run make format * move contracts to test data * Apply suggestions from code review Co-authored-by: Ramiro Carlucho <ramirocarlucho@gmail.com> Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com> Signed-off-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> * update tool readme * refactor contract loading into utility and remove unnecessary go:embed usage in test contracts * add missing licenses * address JS linter * address linters * refactor file reading * fixes after merging * Apply suggestions from code review Signed-off-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> * refactor unmarshalling compiled bytes and use embed for necessary file again * fix changelog --------- Signed-off-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> Co-authored-by: MalteHerrmann <MalteHerrmann@users.noreply.github.com> Co-authored-by: Ramiro Carlucho <ramirocarlucho@gmail.com> Co-authored-by: stepit <48993133+0xstepit@users.noreply.github.com>
- Loading branch information