A set of Solidity smart contracts used by IDriss.
npm install
npx hardhat compile
Mythril is a symbolic execution engine. Setup instructions can be found HERE
Slither is a static code analyzer. Setup instructions can be found HERE
npx hardhat test
- Setup remixd to connect Remix to a local filesystem or copy-paste the contracts mentioned below:
- Deploy
src/contracts/mocks/MaticPriceAggregatorV3Mock.sol
- Deploy
src/contracts/mocks/IDrissRegistryMock.sol
- Add new hash to address mappings by invoking
IDrissRegistryMock.addIDriss()
- Deploy
src/contracts/mocks/SendToHashMock.sol
providing adresses of contracts from step 1 and 2
npm run slither
npm run mythril
In order to automatically deploy smart contracts to EVM node you have to create specific files for each environment:
- .env.dev - used for local development. Deploys contract to local ganache node.
- .env.test - test node config
- .env.prod - mainnet node config
After creating proper config files, you can deploy the contract by using proper command for each environment:
npm run deploy-dev
npm run deploy-test
npm run deploy-prod
This project is licensed under GPLv3.