This repository implements the settlement chain interface for an EVM-based ecosystem that can interact with simperby. If you don't know what simperby is, please visit simperby.
git clone https://github.com/postech-dao/simperby-evm.gitnpm install- Install foundry if you want to use for testing.
forge install- (Optional) Create .env and fill your environment variables with the format of .env.example.
Currently, we support both 'hardhat' and 'foundry' for testing.
- Install dependencies
npx hardhat compilenpx hardhat nodenpx hardhat test --network localhost
You can check build results in /artifacts and gas reports in /contract.
- set up foundry with the above instructions.
forge buildforge testorforge test -vvif you want to check logs.anvilif you want to run a local node with foundry.
For more details about foundry, please refer to foundry
If you want to deploy EVMTreasury to any EVM chains, you need to fill .env file and check hardhat.config.ts.
npx hardhat compilenpx hardhat run --network <network> scripts/_01_deploy_treasury.sol.- You must check your initial block header is properly set with
initialHeadervariable inmisc/constants.ts. - Update
misc/addresses.tswith deployed contract address.
You can use prettier for code formatting.
npx prettier --write .This project is licensed under the MIT license.