{"id":22111090,"url":"https://github.com/volumefi/uniswap_v3_twap_bot_script","last_synced_at":"2025-03-24T04:28:34.356Z","repository":{"id":198279670,"uuid":"697952874","full_name":"VolumeFi/uniswap_v3_twap_bot_script","owner":"VolumeFi","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-03T14:15:36.000Z","size":2217,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T10:29:31.392Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"VolumeFi/twap_bot_python_script","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VolumeFi.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}},"created_at":"2023-09-28T20:20:14.000Z","updated_at":"2024-09-03T14:15:32.000Z","dependencies_parsed_at":"2025-01-29T10:38:56.498Z","dependency_job_id":null,"html_url":"https://github.com/VolumeFi/uniswap_v3_twap_bot_script","commit_stats":null,"previous_names":["volumefi/uniswap_v3_twap_bot_script"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Funiswap_v3_twap_bot_script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Funiswap_v3_twap_bot_script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Funiswap_v3_twap_bot_script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolumeFi%2Funiswap_v3_twap_bot_script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VolumeFi","download_url":"https://codeload.github.com/VolumeFi/uniswap_v3_twap_bot_script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245209142,"owners_count":20577991,"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-01T10:33:36.764Z","updated_at":"2025-03-24T04:28:34.326Z","avatar_url":"https://github.com/VolumeFi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PancakeSwap Bot\n\nThis repository contains scripts to interact with decentralized exchanges such as PancakeSwap, Uniswap, and Apeswap. The scripts utilize `web3` and `paloma_sdk` to connect with the blockchain and perform specific tasks.\n\n## Setup\n\n1. **Clone the repository** `git clone https://github.com/your-github-username/pancakeswap-bot.git`\n2. **Navigate to the cloned directory** `cd pancakeswap-bot`\n3. **Install dependencies** `pip install -r requirements.txt`\n\n\n## Environment Variables\n\nThe scripts rely on certain environment variables. To set them up, create a `.env` file in the project root with the following entries:\n\n```\nPALOMA_LCD=\u003clcd-endpoint\u003e\nPALOMA_CHAIN_ID=\u003cchain-id\u003e\nPALOMA_KEY=\u003cmnemonic-key\u003e\n```\n\n\nReplace `\u003clcd-endpoint\u003e`, `\u003cchain-id\u003e`, and `\u003cmnemonic-key\u003e` with actual values.\n\n## Network Configuration\n\nThe scripts use a `networks.json` file for network-specific configurations. This file should contain an array of objects, each representing a network. The networks are cycled through when the scripts are run.\n\nHere's the structure of a network configuration:\n\n```json\n[{\n  \"NODE\": \"\u003cnode-url\u003e\",\n  \"ABI\": \"\u003ccontract-abi\u003e\",\n  \"ADDRESS\": \"\u003ccontract-address\u003e\",\n  \"JOB_ID\": \"\u003cjob-id\u003e\",\n  \"CHAIN_TYPE\": \"\u003cchain-type\u003e\",\n  \"CHAIN_REFERENCE_ID\": \"\u003cchain-reference-id\u003e\",\n  \"COINGECKO_CHAIN_ID\": \"\u003ccoingecko-chain-id\u003e\",\n  \"NETWORK_NAME\": \"\u003cnetwork-name\u003e\",\n  \"WETH\": \"\u003cweth-address\u003e\",\n  \"FROM_BLOCK\": \"\u003cfrom-block\u003e\",\n  \"CW\": \"\u003ccw\u003e\",\n  \"DEX\": \"\u003cdex-name\u003e\"\n}]\n```\nReplace the placeholders with actual values.\n\n## Running the Scripts\n\nThe following scripts are available:\n\nbot_execute.py: Runs the PancakeSwap bot.\nbot_init.py: Calls the triggerable deposit function and performs swaps if applicable.\nbot_set_paloma.py: Executes a set_paloma command.\n\nTo run a script, use the following command:\n`python \u003cscript-name\u003e.py`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolumefi%2Funiswap_v3_twap_bot_script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolumefi%2Funiswap_v3_twap_bot_script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolumefi%2Funiswap_v3_twap_bot_script/lists"}