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.git
npm 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 compile
npx hardhat node
npx hardhat test --network localhost
You can check build results in /artifacts
and gas reports in /contract
.
- set up foundry with the above instructions.
forge build
forge test
orforge test -vv
if you want to check logs.anvil
if 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 compile
npx hardhat run --network <network> scripts/_01_deploy_treasury.sol
.- You must check your initial block header is properly set with
initialHeader
variable inmisc/constants.ts
. - Update
misc/addresses.ts
with deployed contract address.
You can use prettier for code formatting.
npx prettier --write .
This project is licensed under the MIT license.