{"id":22873979,"url":"https://github.com/angleprotocol/angle-strategies","last_synced_at":"2025-04-14T17:53:32.449Z","repository":{"id":234091728,"uuid":"459118434","full_name":"AngleProtocol/angle-strategies","owner":"AngleProtocol","description":"🧑‍🌾 Yield strategies implemented by the Angle Protocol","archived":false,"fork":false,"pushed_at":"2023-03-13T09:40:00.000Z","size":1805,"stargazers_count":3,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T06:23:34.390Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://angle.money","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AngleProtocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-02-14T10:38:35.000Z","updated_at":"2024-10-16T01:15:18.000Z","dependencies_parsed_at":"2024-04-18T06:05:49.024Z","dependency_job_id":null,"html_url":"https://github.com/AngleProtocol/angle-strategies","commit_stats":null,"previous_names":["angleprotocol/angle-strategies"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngleProtocol%2Fangle-strategies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngleProtocol%2Fangle-strategies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngleProtocol%2Fangle-strategies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngleProtocol%2Fangle-strategies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AngleProtocol","download_url":"https://codeload.github.com/AngleProtocol/angle-strategies/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248931698,"owners_count":21185229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-13T14:32:10.508Z","updated_at":"2025-04-14T17:53:32.411Z","avatar_url":"https://github.com/AngleProtocol.png","language":"TypeScript","readme":"# \u003cimg src=\"logo.svg\" alt=\"Angle Strategies\" height=\"40px\"\u003e Angle Project Strategies\n\n[![CI](https://github.com/AngleProtocol/strategies-dev/workflows/CI/badge.svg)](https://github.com/AngleProtocol/strategies-dev/actions?query=workflow%3ACI)\n\nThis repository proposes a template that mixes hardhat and foundry frameworks. It also provides templates for EVM compatible smart contracts (in `./contracts/examples`), tests and deployment scripts.\n\n## Starting\n\n### Install packages\n\nYou can install all dependencies by running\n\n```bash\nyarn\nforge i\n```\n\n### Create `.env` file\n\nIn order to interact with non local networks, you must create an `.env` that has:\n\n- `PRIVATE_KEY`\n- `MNEMONIC`\n- network key (eg. `ALCHEMY_NETWORK_KEY`)\n- `ETHERSCAN_API_KEY`\n\nFor additional keys, you can check the `.env.example` file.\n\nWarning: always keep your confidential information safe.\n\n## Headers\n\nTo automatically create headers, follow: https://github.com/Picodes/headers\n\n## Hardhat Command line completion\n\nFollow these instructions to have hardhat command line arguments completion: https://hardhat.org/hardhat-runner/docs/guides/command-line-completion\n\n## Foundry Installation\n\n```bash\ncurl -L https://foundry.paradigm.xyz | bash\n\nsource /root/.zshrc\n# or, if you're under bash: source /root/.bashrc\n\nfoundryup\n```\n\nTo install the standard library:\n\n```bash\nforge install foundry-rs/forge-std\n```\n\nTo update libraries:\n\n```bash\nforge update\n```\n\n### Foundry on Docker 🐳\n\n**If you don’t want to install Rust and Foundry on your computer, you can use Docker**\nImage is available here [ghcr.io/foundry-rs/foundry](http://ghcr.io/foundry-rs/foundry).\n\n```bash\ndocker pull ghcr.io/foundry-rs/foundry\ndocker tag ghcr.io/foundry-rs/foundry:latest foundry:latest\n```\n\nTo run the container:\n\n```bash\ndocker run -it --rm -v $(pwd):/app -w /app foundry sh\n```\n\nThen you are inside the container and can run Foundry’s commands.\n\n### Tests\n\nYou can run tests as follows:\n\n```bash\nforge test -vvvv --watch\nforge test -vvvv --match-path contracts/test/forge/testXX1.t.sol\nforge test -vvvv --match-test \"testAbc*\"\nforge test -vvvv --fork-url https://eth-mainnet.alchemyapi.io/v2/Lc7oIGYeL_QvInzI0Wiu_pOZZDEKBrdf\n```\n\nYou can also list tests:\n\n```bash\nforge test --list\nforge test --list --json --match-test \"testXXX*\"\n```\n\n### Deploying\n\nThere is an example script in the `scripts/foundry` folder. Then you can run:\n\n```bash\nyarn foundry:deploy \u003cFILE_NAME\u003e --rpc-url \u003cNETWORK_NAME\u003e\n```\n\nExample:\n\n```bash\nyarn foundry:deploy scripts/foundry/DeployMockAgEUR.s.sol --rpc-url goerli\n```\n\n### Coverage\n\nWe recommend the use of this [vscode extension](ryanluker.vscode-coverage-gutters).\n\n```bash\nyarn hardhat:coverage\nyarn foundry:coverage\n```\n\n### Gas report\n\n```bash\nyarn foundry:gas\n```\n\n## Slither\n\n```bash\npip3 install slither-analyzer\npip3 install solc-select\nsolc-select install 0.8.11\nsolc-select use 0.8.11\nslither .\n```\n\n## Media\n\nDon't hesitate to reach out on [Twitter](https://twitter.com/AngleProtocol) 🐦\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangleprotocol%2Fangle-strategies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangleprotocol%2Fangle-strategies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangleprotocol%2Fangle-strategies/lists"}