{"id":22873971,"url":"https://github.com/angleprotocol/angle-router","last_synced_at":"2026-03-05T14:03:45.838Z","repository":{"id":64719831,"uuid":"468842541","full_name":"AngleProtocol/angle-router","owner":"AngleProtocol","description":"🛣 Routing contracts of the Angle Protocol","archived":false,"fork":false,"pushed_at":"2024-09-02T08:46:39.000Z","size":2624,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-06T19:12:25.084Z","etag":null,"topics":["ethereum-contract","foundry","hardhat"],"latest_commit_sha":null,"homepage":"","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":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-03-11T17:29:11.000Z","updated_at":"2024-09-02T08:46:41.000Z","dependencies_parsed_at":"2024-07-18T20:37:44.347Z","dependency_job_id":"f9a6040e-91d5-4d38-85ed-9dff1b8fffe8","html_url":"https://github.com/AngleProtocol/angle-router","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AngleProtocol/angle-router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngleProtocol%2Fangle-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngleProtocol%2Fangle-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngleProtocol%2Fangle-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngleProtocol%2Fangle-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AngleProtocol","download_url":"https://codeload.github.com/AngleProtocol/angle-router/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngleProtocol%2Fangle-router/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30130031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T12:40:50.676Z","status":"ssl_error","status_checked_at":"2026-03-05T12:39:32.209Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ethereum-contract","foundry","hardhat"],"created_at":"2024-12-13T14:32:10.059Z","updated_at":"2026-03-05T14:03:45.816Z","avatar_url":"https://github.com/AngleProtocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"logo.svg\" alt=\"Angle Router Contracts\" height=\"40px\"\u003e Angle Router Contracts\n\n[![CI](https://github.com/AngleProtocol/angle-router/actions/workflows/ci.yml/badge.svg)](https://github.com/AngleProtocol/angle-router/actions?query=workflow%3ACI)\n\n## Documentation\n\nThis repository contains router contracts for the Angle Protocol. These contracts are designed to facilitate the composition of actions on top of Angle and other protocols in a single transaction.\n\nThere is one router contract per chain on which the protocol is natively deployed with a very similar implementation each time.\n\nAcross all chains, router contracts implementations rely on a **mixer()** function that can be called with a set of instructions, including the different actions it can perform and their parameters.\n\nInstructions can range from transferring funds to another address, performing a swap on 1Inch, opening a perpetual, depositing in an ERC4626 contract, wrapping the native token of a chain (e.g ETH to wETH), ...\n\nSome actions are possible on some chains but not on others, and we recommend to look at the implementation of the contract to view what kind of actions are supported.\n\nThe list of all potentially available actions is defined in the `ActionType` enum.\n\n## Setup\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- `MNEMONIC`\n- 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### Tests\n\nContracts in this repo rely on Hardhat tests. You can run tests as follows:\n\n```bash\nyarn hardhat:test ./test/hardhat/router/baseRouter.test.ts\n```\n\nYou can also check the coverage of the tests with:\n\n```bash\nyarn hardhat:coverage\n```\n\n### Coverage\n\n```bash\nyarn hardhat:coverage\n```\n\n### Deploying\n\n```bash\nyarn deploy mainnet\n```\n\nMake sure to change the tag corresponding to the file you're deploying, and to adapt the `CoreBorrow`, `Treasury` and `ProxyAdmin` to your use case.\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## Media\n\nDon't hesitate to reach out on [Twitter](https://twitter.com/AngleProtocol) 🐦\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangleprotocol%2Fangle-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangleprotocol%2Fangle-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangleprotocol%2Fangle-router/lists"}