{"id":21529329,"url":"https://github.com/kaonone/akropolis","last_synced_at":"2025-03-17T19:14:15.897Z","repository":{"id":46813703,"uuid":"319250826","full_name":"kaonone/akropolis","owner":"kaonone","description":"💥 Akropolis+Yearn","archived":false,"fork":false,"pushed_at":"2021-10-06T11:34:19.000Z","size":902,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"development","last_synced_at":"2025-01-24T06:12:47.938Z","etag":null,"topics":["akropolis","delphi","smart-contracts","vaults","yearn"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaonone.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":"security/clone-packages.sh","support":null}},"created_at":"2020-12-07T08:22:30.000Z","updated_at":"2022-01-06T05:31:04.000Z","dependencies_parsed_at":"2022-09-06T23:11:12.140Z","dependency_job_id":null,"html_url":"https://github.com/kaonone/akropolis","commit_stats":null,"previous_names":["kaonone/akropolis"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaonone%2Fakropolis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaonone%2Fakropolis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaonone%2Fakropolis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaonone%2Fakropolis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaonone","download_url":"https://codeload.github.com/kaonone/akropolis/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244094271,"owners_count":20397020,"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":["akropolis","delphi","smart-contracts","vaults","yearn"],"created_at":"2024-11-24T01:56:50.340Z","updated_at":"2025-03-17T19:14:15.863Z","avatar_url":"https://github.com/kaonone.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Akropolis+Yearn \n\nSolidity contracts used in [Akropolis Delphi](https://delphi.akropolis.io/) yearn pools.\n\n\n## Testing and Development\n\n### Dependencies\n\n* [python3](https://www.python.org/downloads/release/python-368/) version 3.6 or greater, python3-dev\n* [brownie](https://github.com/iamdefinitelyahuman/brownie) - tested with version [1.12.0](https://github.com/eth-brownie/brownie/releases/tag/v1.12.0)\n* [ganache-cli](https://github.com/trufflesuite/ganache-cli) - tested with version [6.11.0](https://github.com/trufflesuite/ganache-cli/releases/tag/v6.11.0)\n\nDelphi contracts are compiled using [Solidity], however installation of the required Solidity versions is handled by Brownie.\n\n### Setup\n\nTo get started, first create and initialize a Python [virtual environment](https://docs.python.org/3/library/venv.html). Next, clone the repo and install the developer dependencies:\n\n```bash\ngit clone https://github.com/akropolisio/delphi-yearn.git\ncd contracts\npip install -r requirements.txt\n```\n\nRun the command:\n```bash\nnpm install\n```\nIt executes several intallation steps:\n* install all npm dependencies\n* install all python dependencies (if not installed yet) including Brownie framework\n* install Brownie dependency packages (openzeppelin and yearn)\n* copy these packages to the working directory (see explanation below)\n* compile contracts\n* generate abi artifaacts (if needed)\n\n\nDue to the existing [bug in Brownie framework](https://github.com/eth-brownie/brownie/issues/893) you may need to install the packages manually:\n```\nnpm run clone-packages\n```\n\n### Running the Tests\n\nTo run the entire suite:\n\n```bash\nbrownie test\n```\n\n### Security tools\n\nSee [the instruction for running security tools](security/readme.md) upon Akropolis Delphi protocol.\nSlither, Echidna and Manticore are integrated.\n\n\n### Deployment\nCreate *.env* file with *DEPLOYER_PRIVATE_KEY* filled up.\n*.env* file also should contain *ADMIN_PRIVATE_KEY* in case of human-admin or *PROXY_ADMIN_ADDRESS* in case of AdminProxy contract already deployed. Leave both variables empty if new AdminProxy contract should be deployed.\n\nFor the local deployment run the command:\n\n```bash\nnpm run deploy:devV1\n```\nor \n```bash\nbrownie run deploy_vault_savingsV1.py\n```\n\nFor the *Rinkeby* deployment firstly export Infura id:\n\n```bash\nexport WEB3_INFURA_PROJECT_ID=b20c30c9e04c4a6bb1cd728ff589a15e\n```\n\nand run:\n\n```bash\nnpm run deploy:rinkebyV1\n```\nor \n```bash\nbrownie run deploy_vault_savingsV1.py --network rinkeby\n```\n\n### Fork Mainnet\nIn order to perform mainnet-fork testing in automatic way you should perform next actions:\n\n1) If you want to work with Alchemy node (instead of slow Infurra node), first of all export host address (for example):\n```bash\nexport ALCHEMY_ARCHIVE_NODE=https://eth-mainnet.alchemyapi.io/v2/3MsO_qdMuAz1ILi6KhiNZ-UO6lqq5mtA\n```\n2) Infura project ID\n```bash\nexport WEB3_INFURA_PROJECT_ID=\u003cYOUR_PROJECT_ID\u003e\n```\n3) Also you need to export Etherscan token in order to be able to fetch the data (to get enough requests attempts):\n```bash\nexport ETHERSCAN_TOKEN=\u003cYOUR_ETHER_SCAN_TOKEN\u003e\n```\n4) After that add it to the mainnet-fork configuration:\n```bash\nnpm run test:add-fork\n```\n\nNow you can run the test:\n```bash\nnpm run test:swap-mainnet\n```\n\nOr you can run the console with the free emulation:\n```bash\nbrownie console --network mainnet-fork\n```\n\n## License\n\nCopyright (c) 2020 A Labs Ltd., AGPL V3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaonone%2Fakropolis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaonone%2Fakropolis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaonone%2Fakropolis/lists"}