{"repo":"defisaver/defisaver-v3-contracts","free":true,"listed":false,"github":"https://github.com/defisaver/defisaver-v3-contracts","clone":"git clone https://github.com/defisaver/defisaver-v3-contracts.git","description":"All the contracts related to the Defi Saver ecosystem","language":"Solidity","stars":374,"topics":["solidity","defi"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"defisaver-v3-contracts All the contracts related to the Defi Saver ecosystem. A detailed overview of the code can be found at Defi Saver Docs. Install Run yarn in the repository folder. You will also need to create a .env file based on .env.example and fill it in with the appropriate API keys. For a quick start, you can copy .env.example (which contains default values) and rename it to .env . Foundry tests 1. Ensure you have Foundry installed (check with forge --version ). 2. Set the ETHEREUM NODE variable in the .env file with a mainnet RPC URL. 3. Install dependencies: 4. Run tests: All tests are run from a forked state of mainnet. You can specify the block number in test-sol/config/config.json . To run only core tests: To run coverage on core: Hardhat tests Before running tests, compile all contracts: In hardhat.config.js hardhat network will fork mainnet by default. You can change the block number from which the fork starts in the Hardhat config; note that if it starts from an old state, some tests might not work. Running core tests: Example of running tests with a specified network: Custom hardhat tasks npx hardhat customFlatten [contract-name] - will flatten contract that is ready for deployment and put it in contracts/flattened folder npx hardhat customVerify [contract-address] [contract-name] --network [hardhat-settings-network-name] - will verify on etherscan if a contract was deployed using a single file from customFlatten task npx hardhat fladepver [gas-in-gwei] [C","default_branch":null,"files":null,"tree":[],"storefront":"/r/defisaver","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/defisaver/defisaver-v3-contracts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}