{"id":25817480,"url":"https://github.com/dodoex/dodo-route-contract","last_synced_at":"2025-10-10T18:05:40.098Z","repository":{"id":88078242,"uuid":"538867309","full_name":"DODOEX/dodo-route-contract","owner":"DODOEX","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-14T16:37:17.000Z","size":628,"stargazers_count":7,"open_issues_count":3,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T19:51:52.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DODOEX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-09-20T07:43:43.000Z","updated_at":"2024-12-12T13:58:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdce2ac0-54da-48d6-9937-d8232bde7240","html_url":"https://github.com/DODOEX/dodo-route-contract","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DODOEX/dodo-route-contract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DODOEX%2Fdodo-route-contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DODOEX%2Fdodo-route-contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DODOEX%2Fdodo-route-contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DODOEX%2Fdodo-route-contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DODOEX","download_url":"https://codeload.github.com/DODOEX/dodo-route-contract/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DODOEX%2Fdodo-route-contract/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004906,"owners_count":26083802,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-02-28T06:36:55.033Z","updated_at":"2025-10-10T18:05:40.065Z","avatar_url":"https://github.com/DODOEX.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FeeRoute\n\nMain Contract: ./contracts/SmartRoute/DODORouteProxy.sol\n\nDODORouteProxy is a new routeProxy contract with fee rebate to manage all route. It provides three methods to swap, including mixSwap,multiSwap and externalSwap. Mixswap is for linear swap, which describes one token path with one pool each time. Multiswap is a simplified version about 1inch, which describes one token path with several pools each time. ExternalSwap is for other routers like 0x, 1inch and paraswap. Dodo and front-end users could take certain route fee rebate from each swap. Wherein dodo will get a fixed percentage, and front-end users could assign any proportion through function parameters. \n\n\nInheritaged a template using Foundry \u0026\u0026 HardHat architecture.\nWe use hardhat test.\n\n## Motivation\n\nWith this new architecture, we can get:\n\n- Unit tests written in solidity\n- Foundry's cast\n- Integration testing with Hardhat\n- Hardhat deploy \u0026 verify\n- Typescript\n\n### Foundry\n\n**Foundry is a blazing fast, portable and modular toolkit for Ethereum\napplication development written in Rust.**\n\nFoundry consists of:\n\n- [**Forge**](./forge): Ethereum testing framework (like Truffle, Hardhat and\n  Dapptools).\n- [**Cast**](./cast): Swiss army knife for interacting with EVM smart contracts,\n  sending transactions and getting chain data.\n\n**Need help getting started with Foundry? Read the [📖 Foundry\nBook][foundry-book] (WIP)!**\n\n[foundry-book]: https://onbjerg.github.io/foundry-book/\n\n### Hardhat\n\nHardhat is an Ethereum development environment for professionals. It facilitates performing frequent tasks, such as running tests, automatically checking code for mistakes or interacting with a smart contract.\n\nOn [Hardhat's website](https://hardhat.org) you will find:\n\n- [Guides to get started](https://hardhat.org/getting-started/)\n- [Hardhat Network](https://hardhat.org/hardhat-network/)\n- [Plugin list](https://hardhat.org/plugins/)\n\n## Directory Structure\n\n```\nintegration - \"Hardhat integration tests\"\nlib - forge-std: \"Test dependency\"\nscripts - \"hardhat deploy scripts\"\ncontracts - \"Solidity contract\"\ntest - \"forge tests\"\n.env.example - \"Expamle dot env\"\n.gitignore - \"Ignore workfiles\"\n.gitmodules -  \"Dependecy modules\"\n.solcover.js - \"Configure coverage\"\n.solhint.json - \"Configure solidity lint\"\nfoundry.toml - \"Configure foundry\"\nhardhat.config.ts - \"Configure hardhat\"\npackage.json - \"Node dependencies\"\nREADME.md - \"This file\"\nremappings.txt - \"Forge dependcy mappings\"\nslither.config.json - \"Configure slither\"\n```\n\n## Installation\n\n### Foundry\n\nFirst run the command below to get `foundryup`, the Foundry toolchain installer:\n\n```sh\ncurl -L https://foundry.paradigm.xyz | bash\n```\n\nIf you do not want to use the redirect, feel free to manually download the\nfoundryup installation script from\n[here](https://raw.githubusercontent.com/gakonst/foundry/master/foundryup/install).\n\nThen, in a new terminal session or after reloading your `PATH`, run it to get\nthe latest `forge` and `cast` binaries:\n\n```sh\nfoundryup\n```\n\nAdvanced ways to use `foundryup`, and other documentation, can be found in the\n[foundryup package](./foundryup/README.md). Happy forging!\n\n### Hardhat\n\n`npm install` or `yarn`\n\n## Commands\n\n```sh\nScripts available via `npm run-script`:\n  compile\n    npx hardhat compile\n  coverage\n    npx hardhat coverage --solcoverjs .solcover.js\n  deploy\n    npx hardhat run scripts/deploy.ts\n  integration\n    npx hardhat test\n  verify\n    npx hardhat verify\n```\n```sh\nHardhat Commands\n  integration tests\n    yarn integration\n  coverage\n    yarn coverage\n```\n```sh\nFoundry Commands\n  unit tests\n    forge test\n  coverage\n    forge coverage\n```\n## Adding dependency\n\nPrefer `npm` packages when available and update the remappings.\n\n### Example\n\ninstall:\n`yarn add -D @openzeppelin/contracts`\n\nremapping:\n`@openzeppelin/contracts=node_modules/@openzeppelin/contracts`\n\nimport:\n`import \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodoex%2Fdodo-route-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodoex%2Fdodo-route-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodoex%2Fdodo-route-contract/lists"}