From f2f560354001b37daa07a57e84fa3a82ca039dc9 Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Mon, 13 Feb 2023 14:57:26 -0800 Subject: [PATCH 1/6] package --- .gitignore | 4 - dexguru_data_sources/.editorconfig | 21 + .../.github/ISSUE_TEMPLATE.md | 15 + dexguru_data_sources/.gitignore | 106 ++ dexguru_data_sources/.travis.yml | 15 + dexguru_data_sources/AUTHORS.rst | 8 + dexguru_data_sources/HISTORY.rst | 8 + dexguru_data_sources/LICENSE | 22 + dexguru_data_sources/MANIFEST.in | 11 + dexguru_data_sources/Makefile | 87 ++ dexguru_data_sources/README.rst | 32 + .../dexguru_data_sources/__init__.py | 5 + .../dexguru_data_sources/api_data/__init__.py | 0 .../api_data/chains/evm/1/config.json | 29 + .../api_data/chains/evm/10/config.json | 21 + .../api_data/chains/evm/100/config.json | 19 + .../api_data/chains/evm/137/config.json | 28 + .../api_data/chains/evm/250/config.json | 21 + .../api_data/chains/evm/42161/config.json | 20 + .../api_data/chains/evm/42220/config.json | 20 + .../api_data/chains/evm/43114/config.json | 22 + .../api_data/chains/evm/56/config.json | 25 + .../api_data/dapps/evm/1inch/config.json | 11 + .../api_data/dapps/evm/balancer/config.json | 107 ++ .../api_data/dapps/evm/bancor_v2/config.json | 11 + .../api_data/dapps/evm/curve/config.json | 74 ++ .../api_data/dapps/evm/dmm/config.json | 72 ++ .../api_data/dapps/evm/dodo/config.json | 68 ++ .../api_data/dapps/evm/dodo_v2/config.json | 62 + .../api_data/dapps/evm/ellipsis/config.json | 11 + .../dapps/evm/kyberswap_elastic/config.json | 93 ++ .../api_data/dapps/evm/meshswap/config.json | 11 + .../api_data/dapps/evm/platypus/config.json | 11 + .../api_data/dapps/evm/saddle/config.json | 29 + .../api_data/dapps/evm/solidly/config.json | 30 + .../dapps/evm/sushiswap_bento/config.json | 20 + .../api_data/dapps/evm/uniswap_v2/config.json | 1041 +++++++++++++++++ .../api_data/dapps/evm/uniswap_v3/config.json | 100 ++ .../dexguru_data_sources.py | 85 ++ .../dexguru_data_sources/enums.py | 9 + .../dexguru_data_sources/models/__init__.py | 0 .../models/amm_inventory_model.py | 17 + .../dexguru_data_sources/models/base_model.py | 8 + .../models/chain_inventory_model.py | 21 + .../models/token_inventory.py | 21 + .../dexguru_data_sources/models/values.py | 10 + dexguru_data_sources/docs/Makefile | 20 + dexguru_data_sources/docs/authors.rst | 1 + dexguru_data_sources/docs/conf.py | 162 +++ dexguru_data_sources/docs/history.rst | 1 + dexguru_data_sources/docs/installation.rst | 51 + dexguru_data_sources/docs/make.bat | 36 + dexguru_data_sources/docs/readme.rst | 1 + dexguru_data_sources/docs/usage.rst | 7 + dexguru_data_sources/poetry.lock | 8 + dexguru_data_sources/pyproject.toml | 14 + dexguru_data_sources/setup.cfg | 20 + dexguru_data_sources/setup.py | 44 + dexguru_data_sources/tests/__init__.py | 1 + .../tests/test_dexguru_data_sources.py | 13 + dexguru_data_sources/tox.ini | 26 + 61 files changed, 2862 insertions(+), 4 deletions(-) create mode 100644 dexguru_data_sources/.editorconfig create mode 100644 dexguru_data_sources/.github/ISSUE_TEMPLATE.md create mode 100644 dexguru_data_sources/.gitignore create mode 100644 dexguru_data_sources/.travis.yml create mode 100644 dexguru_data_sources/AUTHORS.rst create mode 100644 dexguru_data_sources/HISTORY.rst create mode 100644 dexguru_data_sources/LICENSE create mode 100644 dexguru_data_sources/MANIFEST.in create mode 100644 dexguru_data_sources/Makefile create mode 100644 dexguru_data_sources/README.rst create mode 100644 dexguru_data_sources/dexguru_data_sources/__init__.py create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/__init__.py create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/1/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/10/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/100/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/137/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/250/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42161/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42220/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/43114/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/56/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/1inch/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/balancer/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/bancor_v2/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/curve/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dmm/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo_v2/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/ellipsis/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/kyberswap_elastic/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/meshswap/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/platypus/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/saddle/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/solidly/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/sushiswap_bento/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v2/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v3/config.json create mode 100644 dexguru_data_sources/dexguru_data_sources/dexguru_data_sources.py create mode 100644 dexguru_data_sources/dexguru_data_sources/enums.py create mode 100644 dexguru_data_sources/dexguru_data_sources/models/__init__.py create mode 100644 dexguru_data_sources/dexguru_data_sources/models/amm_inventory_model.py create mode 100644 dexguru_data_sources/dexguru_data_sources/models/base_model.py create mode 100644 dexguru_data_sources/dexguru_data_sources/models/chain_inventory_model.py create mode 100644 dexguru_data_sources/dexguru_data_sources/models/token_inventory.py create mode 100644 dexguru_data_sources/dexguru_data_sources/models/values.py create mode 100644 dexguru_data_sources/docs/Makefile create mode 100644 dexguru_data_sources/docs/authors.rst create mode 100755 dexguru_data_sources/docs/conf.py create mode 100644 dexguru_data_sources/docs/history.rst create mode 100644 dexguru_data_sources/docs/installation.rst create mode 100644 dexguru_data_sources/docs/make.bat create mode 100644 dexguru_data_sources/docs/readme.rst create mode 100644 dexguru_data_sources/docs/usage.rst create mode 100644 dexguru_data_sources/poetry.lock create mode 100644 dexguru_data_sources/pyproject.toml create mode 100644 dexguru_data_sources/setup.cfg create mode 100644 dexguru_data_sources/setup.py create mode 100644 dexguru_data_sources/tests/__init__.py create mode 100644 dexguru_data_sources/tests/test_dexguru_data_sources.py create mode 100644 dexguru_data_sources/tox.ini diff --git a/.gitignore b/.gitignore index 7ed07d0..9f412fa 100644 --- a/.gitignore +++ b/.gitignore @@ -12,8 +12,6 @@ build/ develop-eggs/ dist/ downloads/ -eggs/ -.eggs/ lib/ lib64/ parts/ @@ -22,9 +20,7 @@ var/ wheels/ pip-wheel-metadata/ share/python-wheels/ -*.egg-info/ .installed.cfg -*.egg MANIFEST # PyInstaller diff --git a/dexguru_data_sources/.editorconfig b/dexguru_data_sources/.editorconfig new file mode 100644 index 0000000..d4a2c44 --- /dev/null +++ b/dexguru_data_sources/.editorconfig @@ -0,0 +1,21 @@ +# http://editorconfig.org + +root = true + +[*] +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true +insert_final_newline = true +charset = utf-8 +end_of_line = lf + +[*.bat] +indent_style = tab +end_of_line = crlf + +[LICENSE] +insert_final_newline = false + +[Makefile] +indent_style = tab diff --git a/dexguru_data_sources/.github/ISSUE_TEMPLATE.md b/dexguru_data_sources/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..fe7a937 --- /dev/null +++ b/dexguru_data_sources/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,15 @@ +* dexguru_data_sources version: +* Python version: +* Operating System: + +### Description + +Describe what you were trying to get done. +Tell us what happened, what went wrong, and what you expected to happen. + +### What I Did + +``` +Paste the command(s) you ran and the output. +If there was a crash, please include the traceback here. +``` diff --git a/dexguru_data_sources/.gitignore b/dexguru_data_sources/.gitignore new file mode 100644 index 0000000..4c915d1 --- /dev/null +++ b/dexguru_data_sources/.gitignore @@ -0,0 +1,106 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# dotenv +.env + +# virtualenv +.venv +venv/ +ENV/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ + +# IDE settings +.vscode/ +.idea/ diff --git a/dexguru_data_sources/.travis.yml b/dexguru_data_sources/.travis.yml new file mode 100644 index 0000000..aaba487 --- /dev/null +++ b/dexguru_data_sources/.travis.yml @@ -0,0 +1,15 @@ +# Config file for automatic testing at travis-ci.com + +language: python +python: + - 3.8 + - 3.7 + - 3.6 + +# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors +install: pip install -U tox-travis + +# Command to run tests, e.g. python setup.py test +script: tox + + diff --git a/dexguru_data_sources/AUTHORS.rst b/dexguru_data_sources/AUTHORS.rst new file mode 100644 index 0000000..4b679d3 --- /dev/null +++ b/dexguru_data_sources/AUTHORS.rst @@ -0,0 +1,8 @@ +======= +Credits +======= + +Development Lead +---------------- + +* Vitaly Vakhteev ``GitHub: VitalyVakhteev`` diff --git a/dexguru_data_sources/HISTORY.rst b/dexguru_data_sources/HISTORY.rst new file mode 100644 index 0000000..7a93bed --- /dev/null +++ b/dexguru_data_sources/HISTORY.rst @@ -0,0 +1,8 @@ +======= +History +======= + +0.1.0 (2023-02-13) +------------------ + +* First release on PyPI. diff --git a/dexguru_data_sources/LICENSE b/dexguru_data_sources/LICENSE new file mode 100644 index 0000000..4e5b45b --- /dev/null +++ b/dexguru_data_sources/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2023, Vitaly Vakhteev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/dexguru_data_sources/MANIFEST.in b/dexguru_data_sources/MANIFEST.in new file mode 100644 index 0000000..965b2dd --- /dev/null +++ b/dexguru_data_sources/MANIFEST.in @@ -0,0 +1,11 @@ +include AUTHORS.rst +include CONTRIBUTING.rst +include HISTORY.rst +include LICENSE +include README.rst + +recursive-include tests * +recursive-exclude * __pycache__ +recursive-exclude * *.py[co] + +recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif diff --git a/dexguru_data_sources/Makefile b/dexguru_data_sources/Makefile new file mode 100644 index 0000000..262fc18 --- /dev/null +++ b/dexguru_data_sources/Makefile @@ -0,0 +1,87 @@ +.PHONY: clean clean-build clean-pyc clean-test coverage dist docs help install lint lint/flake8 +.DEFAULT_GOAL := help + +define BROWSER_PYSCRIPT +import os, webbrowser, sys + +from urllib.request import pathname2url + +webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1]))) +endef +export BROWSER_PYSCRIPT + +define PRINT_HELP_PYSCRIPT +import re, sys + +for line in sys.stdin: + match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line) + if match: + target, help = match.groups() + print("%-20s %s" % (target, help)) +endef +export PRINT_HELP_PYSCRIPT + +BROWSER := python -c "$$BROWSER_PYSCRIPT" + +help: + @python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST) + +clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts + +clean-build: ## remove build artifacts + rm -fr build/ + rm -fr dist/ + rm -fr .eggs/ + find . -name '*.egg-info' -exec rm -fr {} + + find . -name '*.egg' -exec rm -f {} + + +clean-pyc: ## remove Python file artifacts + find . -name '*.pyc' -exec rm -f {} + + find . -name '*.pyo' -exec rm -f {} + + find . -name '*~' -exec rm -f {} + + find . -name '__pycache__' -exec rm -fr {} + + +clean-test: ## remove test and coverage artifacts + rm -fr .tox/ + rm -f .coverage + rm -fr htmlcov/ + rm -fr .pytest_cache + +lint/flake8: ## check style with flake8 + flake8 dexguru_data_sources tests + +lint: lint/flake8 ## check style + +test: ## run tests quickly with the default Python + pytest + +test-all: ## run tests on every Python version with tox + tox + +coverage: ## check code coverage quickly with the default Python + coverage run --source dexguru_data_sources -m pytest + coverage report -m + coverage html + $(BROWSER) htmlcov/index.html + +docs: ## generate Sphinx HTML documentation, including API docs + rm -f docs/dexguru_data_sources.rst + rm -f docs/modules.rst + sphinx-apidoc -o docs/ dexguru_data_sources + $(MAKE) -C docs clean + $(MAKE) -C docs html + $(BROWSER) docs/_build/html/index.html + +servedocs: docs ## compile the docs watching for changes + watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D . + +release: dist ## package and upload a release + twine upload dist/* + +dist: clean ## builds source and wheel package + python setup.py sdist + python setup.py bdist_wheel + ls -l dist + +install: clean ## install the package to the active Python's site-packages + python setup.py install diff --git a/dexguru_data_sources/README.rst b/dexguru_data_sources/README.rst new file mode 100644 index 0000000..ebf0af4 --- /dev/null +++ b/dexguru_data_sources/README.rst @@ -0,0 +1,32 @@ +==================== +dexguru_data_sources +==================== + + +.. image:: https://img.shields.io/pypi/v/dexguru_data_sources.svg + :target: https://pypi.python.org/pypi/dexguru_data_sources + +.. image:: https://img.shields.io/travis/VitalyVakhteev/dexguru_data_sources.svg + :target: https://travis-ci.com/VitalyVakhteev/dexguru_data_sources + + + + +The DexGuru Data Sources package allows the importation of JSONs for API use + + +* Free software: MIT license + + +Features +-------- + +* TODO + +Credits +------- + +This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template. + +.. _Cookiecutter: https://github.com/audreyr/cookiecutter +.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage diff --git a/dexguru_data_sources/dexguru_data_sources/__init__.py b/dexguru_data_sources/dexguru_data_sources/__init__.py new file mode 100644 index 0000000..9cd63ec --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/__init__.py @@ -0,0 +1,5 @@ +"""Top-level package for dexguru_config_package.""" + +__author__ = """VitalyVakhteev""" +__email__ = 'vitaly.v@techusage.com' +__version__ = '0.1.0' diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/__init__.py b/dexguru_data_sources/dexguru_data_sources/api_data/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/1/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/1/config.json new file mode 100644 index 0000000..0137362 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/1/config.json @@ -0,0 +1,29 @@ +[ + { + "id": 1, + "name": "eth", + "type": "evm", + "enabled": true, + "native_token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", + "native_token": { + "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", + "name": "Wrapped Ether", + "symbol": "WETH", + "decimals": 18 + }, + "stablecoin_addresses": [ + "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", + "0xdac17f958d2ee523a2206206994597c13d831ec7", + "0x6b175474e89094c44da98b954eedeac495271d0f", + "0x0000000000085d4780b73119b644ae5ecd22b376", + "0x4fabb145d64652a948d72533023f6e7a623c7c53", + "0x8e870d67f660d95d5be530380d0ec0bd388289e1", + "0x956F47F50A910163D8BF957Cf5846D573E7f87CA", + "0x853d955aCEf822Db058eb8505911ED77F175b99e", + "0xBC6DA0FE9aD5f3b0d58160288917AA56653660E9", + "0x57Ab1ec28D129707052df4dF418D58a2D46d5f51", + "0x5f98805A4E8be255a32880FDeC7F6728C6568bA0", + "0x674C6Ad92Fd080e4004b2312b45f796a192D27a0" + ] + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/10/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/10/config.json new file mode 100644 index 0000000..5b8b512 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/10/config.json @@ -0,0 +1,21 @@ +[ + { + "id": 10, + "name": "optimism", + "type": "evm", + "enabled": true, + "native_token_address": "0x4200000000000000000000000000000000000006", + "native_token": { + "address": "0x4200000000000000000000000000000000000006", + "name": "Wrapped Ether", + "symbol": "WETH", + "decimals": 18 + }, + "stablecoin_addresses": [ + "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58", + "0x7f5c764cbc14f9669b88837ca1490cca17c31607", + "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1", + "0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9" + ] + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/100/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/100/config.json new file mode 100644 index 0000000..f926c92 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/100/config.json @@ -0,0 +1,19 @@ +[ + { + "id": 100, + "name": "gnosis", + "type": "evm", + "enabled": true, + "native_token_address": "0xe91d153e0b41518a2ce8dd3d7944fa863463a97d", + "native_token": { + "address": "0xe91d153e0b41518a2ce8dd3d7944fa863463a97d", + "name": "Wrapped xDAI", + "symbol": "xDAI", + "decimals": 18 + }, + "stablecoin_addresses": [ + "0x44fa8e6f47987339850636f88629646662444217", + "0xddafbb505ad214d7b80b1f830fccc89b60fb7a83" + ] + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/137/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/137/config.json new file mode 100644 index 0000000..9df24c7 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/137/config.json @@ -0,0 +1,28 @@ +[ + { + "id": 137, + "name": "polygon", + "type": "evm", + "enabled": true, + "native_token_address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", + "native_token": { + "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", + "name": "WMATIC2", + "symbol": "WMATIC", + "decimals": 18 + }, + "stablecoin_addresses": [ + "0x2791bca1f2de4661ed88a30c99a7a9449aa84174", + "0xc2132d05d31c914a87c6611c10748aeb04b58e8f", + "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", + "0x45c32fa6df82ead1e2ef74d17b76547eddfaff89", + "0x87ff96aba480f1813af5c780387d8de7cf7d8261", + "0x104592a158490a9228070e0a8e5343b499e125d0", + "0xd2eba21c2e0d6f996fdd063ae20aca8264ac1929", + "0x23001f892c0c82b79303edc9b9033cd190bb21c7", + "0x60d55f02a771d515e077c9c2403a1ef324885cec", + "0x27f8d03b3a2196956ed754badc28d73be8830a6e", + "0x1a13f4ca1d028320a707d99520abfefca3998b7f" + ] + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/250/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/250/config.json new file mode 100644 index 0000000..6153f9e --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/250/config.json @@ -0,0 +1,21 @@ +[ + { + "id": 250, + "name": "fantom", + "type": "evm", + "enabled": true, + "native_token_address": "0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83", + "native_token": { + "address": "0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83", + "name": "Wrapped FTM", + "symbol": "WFTM", + "decimals": 18 + }, + "stablecoin_addresses": [ + "0x04068da6c83afcfa0e13ba15a6696662335d5b75", + "0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e", + "0xdc301622e621166bd8e82f2ca0a26c13ad0be355", + "0x049d68029688eabf473097a2fc38ef61633a3c7a" + ] + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42161/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42161/config.json new file mode 100644 index 0000000..e5f9313 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42161/config.json @@ -0,0 +1,20 @@ +[ + { + "id": 42161, + "name": "arbitrum", + "type": "evm", + "enabled": true, + "native_token_address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1", + "native_token": { + "address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1", + "name": "WETH", + "symbol": "WETH", + "decimals": 18 + }, + "stablecoin_addresses": [ + "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9", + "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8", + "0xa970af1a584579b618be4d69ad6f73459d112f95" + ] + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42220/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42220/config.json new file mode 100644 index 0000000..112dd58 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42220/config.json @@ -0,0 +1,20 @@ +[ + { + "id": 42220, + "name": "celo", + "type": "evm", + "enabled": true, + "native_token_address": "0x471ece3750da237f93b8e339c536989b8978a438", + "native_token": { + "address": "0x471ece3750da237f93b8e339c536989b8978a438", + "name": "Celo", + "symbol": "CELO", + "decimals": 18 + }, + "stablecoin_addresses": [ + "0x918146359264c492bd6934071c6bd31c854edbc3", + "0x765DE816845861e75A25fCA122bb6898B8B1282a", + "0x2a3684e9dc20b857375ea04235f2f7edbe818fa7" + ] + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/43114/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/43114/config.json new file mode 100644 index 0000000..3c35acc --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/43114/config.json @@ -0,0 +1,22 @@ +[ + { + "id": 43114, + "name": "avalanche", + "type": "evm", + "enabled": true, + "native_token_address": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7", + "native_token": { + "address": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7", + "name": "Wrapped AVAX", + "symbol": "WAVAX", + "decimals": 18 + }, + "stablecoin_addresses": [ + "0xc7198437980c041c805a1edcba50c1ce5db95118", + "0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664", + "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7", + "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e", + "0xd24c2ad096400b6fbcd2ad8b24e7acbc21a1da64" + ] + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/56/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/56/config.json new file mode 100644 index 0000000..9b9c636 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/56/config.json @@ -0,0 +1,25 @@ +[ + { + "id": 56, + "name": "bsc", + "type": "evm", + "enabled": true, + "native_token_address": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c", + "native_token": { + "address": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c", + "name": "Wrapped BNB", + "symbol": "WBNB", + "decimals": 18 + }, + "stablecoin_addresses": [ + "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d", + "0x55d398326f99059ff775485246999027b3197955", + "0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3", + "0xe9e7cea3dedca5984780bafc599bd69add087d56", + "0xb7f8cd00c5a06c0537e2abff0b58033d02e5e094", + "0x29ced01c447166958605519f10dcf8b0255fb379", + "0x23e8a70534308a4aaf76fb8c32ec13d17a3bd89e", + "0x03ab98f5dc94996f8c33e15cd4468794d12d41f9" + ] + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/1inch/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/1inch/config.json new file mode 100644 index 0000000..66daca1 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/1inch/config.json @@ -0,0 +1,11 @@ +[ + { + "chain_id": 1, + "name": "1inch", + "type": "1inch", + "enabled": true, + "contracts": { + "OneInchFactory": "0x71CD6666064C3A1354a3B4dca5fA1E2D3ee7D303" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/balancer/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/balancer/config.json new file mode 100644 index 0000000..f49a0c0 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/balancer/config.json @@ -0,0 +1,107 @@ +[ + { + "chain_id": 1, + "name": "balancer", + "type": "balancer", + "enabled": true, + "contracts": { + "Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", + "StablePoolFactory": "0xc66Ba2B6595D3613CCab350C886aCE23866EDe24", + "StablePoolFactoryV2": "0x8df6EfEc5547e31B0eb7d1291B511FF8a2bf987c", + "WeightedPoolFactory": "0x8E9aa87E45e92bad84D5F8DD1bff34Fb92637dE9", + "AaveLinearPoolFactory": "0xD7FAD3bd59D6477cbe1BE7f646F7f1BA25b230f8", + "ConvergentPoolFactory": "0xb7561f547F3207eDb42A6AfA42170Cd47ADD17BD", + "InvestmentPoolFactory": "0x48767F9F868a4A7b86A90736632F6E44C2df7fa9", + "MetaStablePoolFactory": "0x67d27634E44793fE63c467035E31ea8635117cd4", + "AaveLinearPoolV2Factory": "0x6A0AC04f5C2A10297D5FA79FA6358837a8770041", + "ERC4626LinearPoolFactory": "0xe061bf85648e9fa7b59394668cfeef980aec4c66", + "StablePhantomPoolFactory": "0xb08E16cFc07C684dAA2f93C70323BAdb2A6CBFd2", + "WeightedPool2TokensFactory": "0xA5bf2ddF098bb0Ef6d120C98217dD6B141c74EE0", + "ComposableStablePoolFactory": "0xf9ac7B9dF2b3454E841110CcE5550bD5AC6f875F", + "LiquidityBootstrappingPoolFactory": "0x751A0bC0e3f75b38e01Cf25bFCE7fF36DE1C87DE", + "HighAmpComposableStablePoolFactory": "0xBa1b4a90bAD57470a2cbA762A32955dC491f76e0", + "TempLiquidityBootstrappingPoolFactory": "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e", + "NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e" + } + }, + { + "chain_id": 250, + "name": "beethoven", + "type": "balancer", + "enabled": true, + "contracts": { + "Vault": "0x20dd72Ed959b6147912C2e529F0a0C651c33c9ce", + "StablePoolFactory": "0x55df810876354Fc3e249f701Dd78DeDE57991F8D", + "WeightedPoolFactory": "0x60467cb225092cE0c989361934311175f437Cf53", + "MetaStablePoolFactory": "0x70b55Af71B29c5Ca7e67bD1995250364C4bE5554", + "StablePhantomPoolFactory": "0x0E2AFa0b5F9174750d4E84Bf9798f89b79Bd5bF4", + "WeightedPool2TokensFactory": "0x92b377187bcCC6556FceD2f1e6DAd65850C20630", + "NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x2C774732c93CE393eC8125bDA49fb3737Ae6F473" + } + }, + { + "chain_id": 10, + "name": "beethoven", + "type": "balancer", + "enabled": true, + "contracts": { + "Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", + "StablePoolFactory": "0xeb151668006CD04DAdD098AFd0a82e78F77076c3", + "WeightedPoolFactory": "0xdAE7e32ADc5d490a43cCba1f0c736033F2b4eFca", + "MetaStablePoolFactory": "0xb08E16cFc07C684dAA2f93C70323BAdb2A6CBFd2", + "WeightedPool2TokensFactory": "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e" + } + }, + { + "chain_id": 42161, + "name": "balancer", + "type": "balancer", + "enabled": true, + "contracts": { + "Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", + "StablePoolFactory": "0xEF44D6786b2b4d544b7850Fe67CE6381626Bf2D6", + "StablePoolV2Factory": "0xEF44D6786b2b4d544b7850Fe67CE6381626Bf2D6", + "WeightedPoolFactory": "0x7dFdEF5f355096603419239CE743BfaF1120312B", + "AaveLinearPoolFactory": "0xdcdbf71A870cc60C6F9B621E28a7D3Ffd6Dd4965", + "InvestmentPoolFactory": "0xaCd615B3705B9c880E4E7293f1030B34e57B4c1c", + "MetaStablePoolFactory": "0xEBFD5681977E38Af65A7487DC70B8221D089cCAD", + "WeightedPoolV2Factory": "0x8df6EfEc5547e31B0eb7d1291B511FF8a2bf987c", + "AaveLinearPoolV2Factory": "0xe2E901AB09f37884BA31622dF3Ca7FC19AA443Be", + "ERC4626LinearPoolFactory": "0x2794953110874981a0d301286c986992022A62a1", + "StablePhantomPoolFactory": "0xdAE7e32ADc5d490a43cCba1f0c736033F2b4eFca", + "WeightedPool2TokensFactory": "0xCF0a32Bbef8F064969F21f7e02328FB577382018", + "ComposableStablePoolFactory": "0xaEb406b0E430BF5Ea2Dc0B9Fe62E4E53f74B3a33", + "LiquidityBootstrappingPoolFactory": "0x142B9666a0a3A30477b052962ddA81547E7029ab", + "TempLiquidityBootstrappingPoolFactory": "0x1802953277FD955f9a254B80Aa0582f193cF1d77", + "NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x1802953277FD955f9a254B80Aa0582f193cF1d77" + } + }, + { + "chain_id": 137, + "name": "balancer", + "type": "balancer", + "enabled": true, + "contracts": { + "Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", + "Gyro2PoolFactory": "0x5d8545a7330245150bE0Ce88F8afB0EDc41dFc34", + "Gyro3PoolFactory": "0x90f08B3705208E41DbEEB37A42Fb628dD483AdDa", + "GyroEPoolFactory": "0xD4204551BC5397455f8897745d50Ac4F6beE0EF6", + "StablePoolFactory": "0xcA96C4f198d343E251b1a01F3EBA061ef3DA73C1", + "StablePoolV2Factory": "0xcA96C4f198d343E251b1a01F3EBA061ef3DA73C1", + "WeightedPoolFactory": "0x8E9aa87E45e92bad84D5F8DD1bff34Fb92637dE9", + "AaveLinearPoolFactory": "0xf302f9F50958c5593770FDf4d4812309fF77414f", + "InvestmentPoolFactory": "0x0f7bb7ce7b6ed9366F9b6B910AdeFE72dC538193", + "MetaStablePoolFactory": "0xdAE7e32ADc5d490a43cCba1f0c736033F2b4eFca", + "WeightedPoolV2Factory": "0x0e39C3D9b2ec765eFd9c5c70BB290B1fCD8536E3", + "AaveLinearPoolV2Factory": "0x8df6EfEc5547e31B0eb7d1291B511FF8a2bf987c", + "ERC4626LinearPoolFactory": "0xC6bD2497332d24094eC16a7261eec5C412B5a2C1", + "StablePhantomPoolFactory": "0xC128a9954e6c874eA3d62ce62B468bA073093F25", + "WeightedPool2TokensFactory": "0xA5bf2ddF098bb0Ef6d120C98217dD6B141c74EE0", + "ComposableStablePoolFactory": "0x136FD06Fa01eCF624C7F2B3CB15742c1339dC2c4", + "ERC4626LinearPoolFactoryBeta": "0xC6bD2497332d24094eC16a7261eec5C412B5a2C1", + "LiquidityBootstrappingPoolFactory": "0x751A0bC0e3f75b38e01Cf25bFCE7fF36DE1C87DE", + "TempLiquidityBootstrappingPoolFactory": "0x41B953164995c11C81DA73D212ED8Af25741b7Ac", + "NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x41B953164995c11C81DA73D212ED8Af25741b7Ac" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/bancor_v2/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/bancor_v2/config.json new file mode 100644 index 0000000..bfe3374 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/bancor_v2/config.json @@ -0,0 +1,11 @@ +[ + { + "chain_id": 1, + "name": "bancor_v2", + "type": "bancor_v2", + "enabled": true, + "contracts": { + "ContractRegistry": "0x52Ae12ABe5D8BD778BD5397F99cA900624CfADD4" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/curve/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/curve/config.json new file mode 100644 index 0000000..d0b66ea --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/curve/config.json @@ -0,0 +1,74 @@ +[ + { + "chain_id": 1, + "name": "curve", + "type": "curve", + "enabled": true, + "contracts": { + "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" + } + }, + { + "chain_id": 42161, + "name": "curve", + "type": "curve", + "enabled": true, + "contracts": { + "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" + } + }, + { + "chain_id": 43114, + "name": "curve", + "type": "curve", + "enabled": true, + "contracts": { + "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" + } + }, + { + "chain_id": 250, + "name": "curve", + "type": "curve", + "enabled": true, + "contracts": { + "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" + } + }, + { + "chain_id": 10, + "name": "curve", + "type": "curve", + "enabled": true, + "contracts": { + "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" + } + }, + { + "chain_id": 137, + "name": "curve", + "type": "curve", + "enabled": true, + "contracts": { + "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" + } + }, + { + "chain_id": 100, + "name": "curve", + "type": "curve", + "enabled": true, + "contracts": { + "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" + } + }, + { + "chain_id": 42220, + "name": "curve", + "type": "curve", + "enabled": true, + "contracts": { + "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dmm/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dmm/config.json new file mode 100644 index 0000000..3b8d292 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dmm/config.json @@ -0,0 +1,72 @@ +[ + { + "chain_id": 1, + "name": "kyber", + "type": "dmm", + "enabled": true, + "contracts": { + "IDMMFactory": "0x833e4083B7ae46CeA85695c4f7ed25CDAd8886dE", + "IDMMRouter02": "0x1c87257F5e8609940Bc751a07BB085Bb7f8cDBE6" + } + }, + { + "chain_id": 56, + "name": "kyber", + "type": "dmm", + "enabled": true, + "contracts": { + "IDMMFactory": "0x878dFE971d44e9122048308301F540910Bbd934c", + "IDMMRouter02": "0x78df70615ffc8066cc0887917f2Cd72092C86409" + } + }, + { + "chain_id": 137, + "name": "kyber", + "type": "dmm", + "enabled": true, + "contracts": { + "IDMMFactory": "0x5f1fe642060b5b9658c15721ea22e982643c095c", + "IDMMRouter02": "0x546C79662E028B661dFB4767664d0273184E4dD1" + } + }, + { + "chain_id": 250, + "name": "kyber", + "type": "dmm", + "enabled": true, + "contracts": { + "IDMMFactory": "0x78df70615ffc8066cc0887917f2Cd72092C86409", + "IDMMRouter02": "0x5d5A5a0a465129848c2549669e12cDC2f8DE039A" + } + }, + { + "chain_id": 43114, + "name": "kyber", + "type": "dmm", + "enabled": true, + "contracts": { + "IDMMFactory": "0x10908C875D865C66f271F5d3949848971c9595C9", + "IDMMRouter02": "0x8Efa5A9AD6D594Cf76830267077B78cE0Bc5A5F8" + } + }, + { + "chain_id": 42161, + "name": "kyber", + "type": "dmm", + "enabled": true, + "contracts": { + "IDMMFactory": "0x51E8D106C646cA58Caf32A47812e95887C071a62", + "IDMMRouter02": "0x51E8D106C646cA58Caf32A47812e95887C071a62" + } + }, + { + "chain_id": 10, + "name": "kyber", + "type": "dmm", + "enabled": true, + "contracts": { + "IDMMFactory": "0x833e4083B7ae46CeA85695c4f7ed25CDAd8886dE", + "IDMMRouter02": "0x1c87257F5e8609940Bc751a07BB085Bb7f8cDBE6" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo/config.json new file mode 100644 index 0000000..9a743c5 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo/config.json @@ -0,0 +1,68 @@ +[ + { + "chain_id": 56, + "name": "dodo", + "type": "dodo", + "enabled": true, + "contracts": { + "DODO": "0xF6A8E47daEEdDcCe297e7541523e27DF2f167BF3", + "DODORouteProxy": "0x6B3D817814eABc984d51896b1015C0b89E9737Ca", + "GnosisSafeProxy": "0xcaa42F09AF66A8BAE3A7445a7f63DAD97c11638b" + } + }, + { + "chain_id": 1, + "name": "dodo", + "type": "dodo", + "enabled": true, + "contracts": { + "DODO": "0xC9f93163c99695c6526b799EbcA2207Fdf7D61aD", + "DODORouteProxy": "0xa2398842F37465f89540430bDC00219fA9E4D28a", + "GnosisSafeProxy": "0x95C4F5b83aA70810D4f142d58e5F7242Bd891CB0" + } + }, + { + "chain_id": 137, + "name": "dodo", + "type": "dodo", + "enabled": true, + "contracts": { + "DODO": "0x813FddecCD0401c4Fa73B092b074802440544E52", + "DODORouteProxy": "0x2fA4334cfD7c56a0E7Ca02BD81455205FcBDc5E9", + "GnosisSafeProxy": "0x3CD6D7F5fF977bf8069548eA1F9441b061162b42" + } + }, + { + "chain_id": 42161, + "name": "dodo", + "type": "dodo", + "enabled": true, + "contracts": { + "DODO": "0xe4B2Dfc82977dd2DCE7E8d37895a6A8F50CbB4fB", + "DODORouteProxy": "0x3B6067D4CAa8A14c63fdBE6318F27A0bBc9F9237", + "GnosisSafeProxy": "0x01d3E7271c278Aa3AA56EeBa6a109b2C200679fA" + } + }, + { + "chain_id": 43114, + "name": "dodo", + "type": "dodo", + "enabled": true, + "contracts": { + "DODO": "0xC9f93163c99695c6526b799EbcA2207Fdf7D61aD", + "DODORouteProxy": "0xa2398842F37465f89540430bDC00219fA9E4D28a", + "GnosisSafeProxy": "0x9FCFD9ff955D36856F8EE480471B05488C0eB5cA" + } + }, + { + "chain_id": 10, + "name": "dodo", + "type": "dodo", + "enabled": true, + "contracts": { + "DODO": "0xC9f93163c99695c6526b799EbcA2207Fdf7D61aD", + "DODORouteProxy": "0xa2398842F37465f89540430bDC00219fA9E4D28a", + "GnosisSafeProxy": "0x677dD94031b3263Bd0E27ef5093C69A1a3037a00" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo_v2/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo_v2/config.json new file mode 100644 index 0000000..aeef3ef --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo_v2/config.json @@ -0,0 +1,62 @@ +[ + { + "chain_id": 1, + "name": "dodo_v2", + "type": "dodo_v2", + "enabled": true, + "contracts": { + "DVM": "0xfb8c399f1187bdb5adf2007b32d5d76651b77ff4", + "GnosisSafeProxy": "0x95C4F5b83aA70810D4f142d58e5F7242Bd891CB0" + } + }, + { + "chain_id": 56, + "name": "dodo_v2", + "type": "dodo_v2", + "enabled": true, + "contracts": { + "DVM": "0xfb8c399f1187bdb5adf2007b32d5d76651b77ff4", + "GnosisSafeProxy": "0xcaa42F09AF66A8BAE3A7445a7f63DAD97c11638b" + } + }, + { + "chain_id": 137, + "name": "dodo_v2", + "type": "dodo_v2", + "enabled": true, + "contracts": { + "DVM": "0xfb8c399f1187bdb5adf2007b32d5d76651b77ff4", + "GnosisSafeProxy": "0x3CD6D7F5fF977bf8069548eA1F9441b061162b42" + } + }, + { + "chain_id": 42161, + "name": "dodo_v2", + "type": "dodo_v2", + "enabled": true, + "contracts": { + "DVM": "0xfb8c399f1187bdb5adf2007b32d5d76651b77ff4", + "GnosisSafeProxy": "0x01d3E7271c278Aa3AA56EeBa6a109b2C200679fA" + } + }, + { + "chain_id": 43114, + "name": "dodo_v2", + "type": "dodo_v2", + "enabled": true, + "contracts": { + "DVM": "0xfb8c399f1187bdb5adf2007b32d5d76651b77ff4", + "GnosisSafeProxy": "0x9FCFD9ff955D36856F8EE480471B05488C0eB5cA" + } + }, + { + "chain_id": 10, + "name": "dodo_v2", + "type": "dodo_v2", + "enabled": true, + "contracts": { + "DVM": "0xfb8c399f1187bdb5adf2007b32d5d76651b77ff4", + "GnosisSafeProxy": "0x677dD94031b3263Bd0E27ef5093C69A1a3037a00" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/ellipsis/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/ellipsis/config.json new file mode 100644 index 0000000..c2d8426 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/ellipsis/config.json @@ -0,0 +1,11 @@ +[ + { + "chain_id": 56, + "name": "ellipsis", + "type": "ellipsis", + "enabled": true, + "contracts": { + "AddressProvider": "0x31D236483A15F9B9dD60b36D4013D75e9dbF852b" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/kyberswap_elastic/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/kyberswap_elastic/config.json new file mode 100644 index 0000000..df99478 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/kyberswap_elastic/config.json @@ -0,0 +1,93 @@ +[ + { + "chain_id": 1, + "name": "kyberswap_elastic", + "type": "kyberswap_elastic", + "enabled": true, + "contracts": { + "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", + "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", + "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", + "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", + "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" + } + }, + { + "chain_id": 56, + "name": "kyberswap_elastic", + "type": "kyberswap_elastic", + "enabled": true, + "contracts": { + "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", + "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", + "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", + "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", + "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" + } + }, + { + "chain_id": 137, + "name": "kyberswap_elastic", + "type": "kyberswap_elastic", + "enabled": true, + "contracts": { + "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", + "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", + "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", + "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", + "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" + } + }, + { + "chain_id": 43114, + "name": "kyberswap_elastic", + "type": "kyberswap_elastic", + "enabled": true, + "contracts": { + "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", + "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", + "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", + "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", + "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" + } + }, + { + "chain_id": 250, + "name": "kyberswap_elastic", + "type": "kyberswap_elastic", + "enabled": true, + "contracts": { + "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", + "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", + "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", + "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", + "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" + } + }, + { + "chain_id": 42161, + "name": "kyberswap_elastic", + "type": "kyberswap_elastic", + "enabled": true, + "contracts": { + "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", + "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", + "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", + "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", + "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" + } + }, + { + "chain_id": 10, + "name": "kyberswap_elastic", + "type": "kyberswap_elastic", + "enabled": true, + "contracts": { + "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", + "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", + "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", + "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", + "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/meshswap/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/meshswap/config.json new file mode 100644 index 0000000..7733655 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/meshswap/config.json @@ -0,0 +1,11 @@ +[ + { + "chain_id": 137, + "name": "meshswap", + "type": "meshswap", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x9f3044f7f9fc8bc9ed615d54845b4577b833282d" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/platypus/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/platypus/config.json new file mode 100644 index 0000000..a8931f3 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/platypus/config.json @@ -0,0 +1,11 @@ +[ + { + "chain_id": 43114, + "name": "platypus", + "type": "platypus", + "enabled": true, + "contracts": { + "Asset": "0x416a7989a964C9ED60257B064Efc3a30FE6bF2eE" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/saddle/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/saddle/config.json new file mode 100644 index 0000000..d7fa643 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/saddle/config.json @@ -0,0 +1,29 @@ +[ + { + "chain_id": 1, + "name": "saddle", + "type": "saddle", + "enabled": true, + "contracts": { + "PoolRegistry": "0xfb4de84c4375d7c8577327153de88f58f69eec81" + } + }, + { + "chain_id": 10, + "name": "saddle", + "type": "saddle", + "enabled": true, + "contracts": { + "PoolRegistry": "0x4e1484607760118ebe2ab07c0c71f1b4d9671e01" + } + }, + { + "chain_id": 42161, + "name": "saddle", + "type": "saddle", + "enabled": true, + "contracts": { + "PoolRegistry": "0x38262c17a06a6b3588d3e5b70dfa768c06bf4ef1" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/solidly/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/solidly/config.json new file mode 100644 index 0000000..62cee0c --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/solidly/config.json @@ -0,0 +1,30 @@ +[ + { + "chain_id": 10, + "name": "velodrome", + "type": "solidly", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xa132DAB612dB5cB9fC9Ac426A0Cc215A3423F9c9", + "UniswapV2Factory": "0x25CbdDb98b35ab1FF77413456B31EC81A6B6B746" + } + }, + { + "chain_id": 137, + "name": "dystopia", + "type": "solidly", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x1d21Db6cde1b18c7E47B0F7F42f4b3F68b9beeC9" + } + }, + { + "chain_id": 56, + "name": "impossible_finance_v3", + "type": "solidly", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x4233ad9b8b7c1ccf0818907908a7f0796a3df85f" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/sushiswap_bento/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/sushiswap_bento/config.json new file mode 100644 index 0000000..cdddda1 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/sushiswap_bento/config.json @@ -0,0 +1,20 @@ +[ + { + "chain_id": 10, + "name": "sushiswap_bento", + "type": "sushiswap_bento", + "enabled": true, + "contracts": { + "BentoBox": "0xc35dadb65012ec5796536bd9864ed8773abc74c4" + } + }, + { + "chain_id": 137, + "name": "sushiswap_bento", + "type": "sushiswap_bento", + "enabled": true, + "contracts": { + "BentoBox": "0x0319000133d3AdA02600f0875d2cf03D442C3367" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v2/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v2/config.json new file mode 100644 index 0000000..ad76c18 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v2/config.json @@ -0,0 +1,1041 @@ +[ + { + "chain_id": 1, + "name": "uniswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", + "UniswapV2Factory": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f" + } + }, + { + "chain_id": 1, + "name": "sushiswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F", + "UniswapV2Factory": "0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac" + } + }, + { + "chain_id": 56, + "name": "pancakeswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x10ED43C718714eb63d5aA57B78B54704E256024E", + "UniswapV2Factory": "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73" + } + }, + { + "chain_id": 137, + "name": "quickswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff", + "UniswapV2Factory": "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32" + } + }, + { + "chain_id": 43114, + "name": "pangolin", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xE54Ca86531e17Ef3616d22Ca28b0D458b6C89106", + "UniswapV2Factory": "0xefa94DE7a4656D787667C749f7E1223D71E9FD88" + } + }, + { + "chain_id": 43114, + "name": "traderjoe", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x60aE616a2155Ee3d9A68541Ba4544862310933d4", + "UniswapV2Factory": "0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10" + } + }, + { + "chain_id": 42220, + "name": "ubeswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xE3D8bd6Aed4F159bc8000a9cD47CffDb95F96121", + "UniswapV2Factory": "0x62d5b84bE28a183aBB507E125B384122D2C25fAE" + } + }, + { + "chain_id": 250, + "name": "spookyswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xF491e7B69E4244ad4002BC14e878a34207E38c29", + "UniswapV2Factory": "0x152eE697f2E276fA89E96742e9bB9aB1F2E61bE3" + } + }, + { + "chain_id": 250, + "name": "spiritswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x16327E3FbDaCA3bcF7E38F5Af2599D2DDc33aE52", + "UniswapV2Factory": "0xEF45d134b73241eDa7703fa787148D9C9F4950b0" + } + }, + { + "chain_id": 42161, + "name": "sushiswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", + "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" + } + }, + { + "chain_id": 250, + "name": "sushiswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", + "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" + } + }, + { + "chain_id": 43114, + "name": "lydia", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xa52abe4676dbfd04df42ef7755f01a3c41f28d27", + "UniswapV2Factory": "0xe0C1bb6DF4851feEEdc3E14Bd509FEAF428f7655" + } + }, + { + "chain_id": 56, + "name": "impossible_finance", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x8f2A0d8865D995364DC6843D51Cf6989001f989e", + "UniswapV2Factory": "0x918d7e714243F7d9d463C37e106235dCde294ffC" + } + }, + { + "chain_id": 1, + "name": "cryptocom", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xceb90e4c17d626be0facd78b79c9c87d7ca181b3", + "UniswapV2Factory": "0x9DEB29c9a4c7A88a3C0257393b7f3335338D9A9D" + } + }, + { + "chain_id": 137, + "name": "firebid_finance", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xF6fa9Ea1f64f1BBfA8d71f7f43fAF6D45520bfac", + "UniswapV2Factory": "0x5De74546d3B86C8Df7FEEc30253865e1149818C8" + } + }, + { + "chain_id": 43114, + "name": "elk_finance", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x9E4AAbd2B3E60Ee1322E94307d0776F2c8e6CFbb", + "UniswapV2Factory": "0x091d35d7F63487909C863001ddCA481c6De47091" + } + }, + { + "chain_id": 43114, + "name": "canary", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x06f8ED60393AC6A4B16900273C9313222dfe9940", + "UniswapV2Factory": "0xCFBA329d49C24b70F3a8b9CC0853493d4645436b" + } + }, + { + "chain_id": 43114, + "name": "empiredex", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xdADaae6cDFE4FA3c35d54811087b3bC3Cd60F348", + "UniswapV2Factory": "0x06530550A48F990360DFD642d2132354A144F31d" + } + }, + { + "chain_id": 43114, + "name": "yetiswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x262DcFB36766C88E6A7a2953c16F8defc40c378A", + "UniswapV2Factory": "0x58C8CD291Fa36130119E6dEb9E520fbb6AcA1c3a" + } + }, + { + "chain_id": 43114, + "name": "baguette", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xF7b1e993d1b4F7348D64Aa55A294E4B74512F7f2", + "UniswapV2Factory": "0x3587B8c0136c2C3605a9E5B03ab54Da3e4044b50" + } + }, + { + "chain_id": 250, + "name": "zoodex", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x40b12a3E261416fF0035586ff96e23c2894560f2", + "UniswapV2Factory": "0x6178C3B21F7cA1adD84c16AD35452c85a85F5df4" + } + }, + { + "chain_id": 250, + "name": "jetswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x845E76A8691423fbc4ECb8Dd77556Cb61c09eE25", + "UniswapV2Factory": "0xf6488205957f0b4497053d6422F49e27944eE3Dd" + } + }, + { + "chain_id": 56, + "name": "jetswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xBe65b8f75B9F20f4C522e0067a3887FADa714800", + "UniswapV2Factory": "0x0eb58E5c8aA63314ff5547289185cC4583DfCBD5" + } + }, + { + "chain_id": 137, + "name": "jetswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x5C6EC38fb0e2609672BDf628B1fD605A523E5923", + "UniswapV2Factory": "0x668ad0ed2622C62E24f0d5ab6B6Ac1b9D2cD4AC7" + } + }, + { + "chain_id": 250, + "name": "soulswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x6b3d631B87FE27aF29efeC61d2ab8CE4d621cCBF", + "UniswapV2Factory": "0x1120e150dA9def6Fe930f4fEDeD18ef57c0CA7eF" + } + }, + { + "chain_id": 250, + "name": "paintswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xfD000ddCEa75a2E23059881c3589F6425bFf1AbB", + "UniswapV2Factory": "0x733A9D1585f2d14c77b49d39BC7d7dd14CdA4aa5" + } + }, + { + "chain_id": 250, + "name": "hyperswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x53c153a0df7E050BbEFbb70eE9632061f12795fB", + "UniswapV2Factory": "0x9C454510848906FDDc846607E4baa27Ca999FBB6" + } + }, + { + "chain_id": 250, + "name": "morpheusswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x8aC868293D97761A1fED6d4A01E9FF17C5594Aa3", + "UniswapV2Factory": "0x9C454510848906FDDc846607E4baa27Ca999FBB6" + } + }, + { + "chain_id": 250, + "name": "wakaswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xAad831F5CF9E39c666cCba4cF12A70af19782AB9", + "UniswapV2Factory": "0xae9b81fe0620ceb9a11e4d42711bc9baf672f756" + } + }, + { + "chain_id": 250, + "name": "elk_finance", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x4D2cf285a519261F30b4d9c2c344Baf260d65Fa2", + "UniswapV2Factory": "0x7Ba73c99e6f01a37f3e33854c8F544BbbadD3420" + } + }, + { + "chain_id": 250, + "name": "yoshi_exchange", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x3dc57B391262e3aAe37a08D91241f9bA9d58b570", + "UniswapV2Factory": "0xc5bc174cb6382fbab17771d05e6a918441deceea" + } + }, + { + "chain_id": 137, + "name": "dfyn", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xA102072A4C07F06EC3B4900FDC4C7B80b6c57429", + "UniswapV2Factory": "0xE7Fb3e833eFE5F9c441105EB65Ef8b261266423B" + } + }, + { + "chain_id": 250, + "name": "dfyn", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x2724B9497b2cF3325C6BE3ea430b3cec34B5Ef2d", + "UniswapV2Factory": "0xd9820a17053d6314B20642E465a84Bf01a3D64f5" + } + }, + { + "chain_id": 42161, + "name": "dfyn", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xaedE1EFe768bD8A1663A7608c63290C60B85e71c", + "UniswapV2Factory": "0xA102072A4C07F06EC3B4900FDC4C7B80b6c57429" + } + }, + { + "chain_id": 137, + "name": "waultswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x3a1d87f206d12415f5b0a33e786967680aab4f6d", + "UniswapV2Factory": "0xa98ea6356a316b44bf710d5f9b6b4ea0081409ef" + } + }, + { + "chain_id": 56, + "name": "waultswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xD48745E39BbED146eEC15b79cBF964884F9877c2", + "UniswapV2Factory": "0xB42E3FE71b7E0673335b3331B3e1053BD9822570" + } + }, + { + "chain_id": 137, + "name": "polydex", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xC60aE14F2568b102F8Ca6266e8799112846DD088", + "UniswapV2Factory": "0xEAA98F7b5f7BfbcD1aF14D0efAa9d9e68D82f640" + } + }, + { + "chain_id": 137, + "name": "elk_finance", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xf38a7A7Ac2D745E2204c13F824c00139DF831FFf", + "UniswapV2Factory": "0xE3BD06c7ac7E1CeB17BdD2E5BA83E40D1515AF2a" + } + }, + { + "chain_id": 137, + "name": "cafeswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x9055682E58C74fc8DdBFC55Ad2428aB1F96098Fc", + "UniswapV2Factory": "0x5eDe3f4e7203Bf1F12d57aF1810448E5dB20f46C" + } + }, + { + "chain_id": 56, + "name": "cafeswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x933DAea3a5995Fb94b14A7696a5F3ffD7B1E385A", + "UniswapV2Factory": "0x3e708FdbE3ADA63fc94F8F61811196f1302137AD" + } + }, + { + "chain_id": 56, + "name": "alitaswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x730aCC3bBf2443f2EaEaCFc7ac7b4d8DC9E32dB8", + "UniswapV2Factory": "0xC7a506ab3ac668EAb6bF9eCf971433D6CFeF05D9" + } + }, + { + "chain_id": 137, + "name": "apeswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xC0788A3aD43d79aa53B09c2EaCc313A787d1d607", + "UniswapV2Factory": "0xCf083Be4164828f00cAE704EC15a36D711491284" + } + }, + { + "chain_id": 56, + "name": "apeswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xcF0feBd3f17CEf5b47b0cD257aCf6025c5BFf3b7", + "UniswapV2Factory": "0x0841BD0B734E4F5853f0dD8d7Ea041c241fb0Da6" + } + }, + { + "chain_id": 56, + "name": "cheeseswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x3047799262d8D2EF41eD2a222205968bC9B0d895", + "UniswapV2Factory": "0xdd538e4fd1b69b7863e1f741213276a6cf1efb3b" + } + }, + { + "chain_id": 56, + "name": "julswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xbd67d157502A23309Db761c41965600c2Ec788b2", + "UniswapV2Factory": "0x553990F2CBA90272390f62C5BDb1681fFc899675" + } + }, + { + "chain_id": 56, + "name": "hyperswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x3bc677674df90A9e5D741f28f6CA303357D0E4Ec", + "UniswapV2Factory": "0xaC653cE27E04C6ac565FD87F18128aD33ca03Ba2" + } + }, + { + "chain_id": 56, + "name": "babyswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x325E343f1dE602396E256B67eFd1F61C3A6B38Bd", + "UniswapV2Factory": "0x86407bEa2078ea5f5EB5A52B2caA963bC1F889Da" + } + }, + { + "chain_id": 56, + "name": "safeswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xe804f3c3e6dda8159055428848fe6f2a91c2b9af", + "UniswapV2Factory": "0x86a859773cf6df9c8117f20b0b950ada84e7644d" + } + }, + { + "chain_id": 56, + "name": "elk_finance", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xA63B831264183D755756ca9AE5190fF5183d65D6", + "UniswapV2Factory": "0x31aFfd875e9f68cd6Cd12Cee8943566c9A4bBA13" + } + }, + { + "chain_id": 1, + "name": "swapr", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xb9960d9bca016e9748be75dd52f02188b9d0829f", + "UniswapV2Factory": "0xd34971BaB6E5E356fd250715F5dE0492BB070452" + } + }, + { + "chain_id": 56, + "name": "pancakeswap_v1", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F", + "UniswapV2Factory": "0xBCfCcbde45cE874adCB698cC183deBcF17952812" + } + }, + { + "chain_id": 137, + "name": "sushiswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", + "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" + } + }, + { + "chain_id": 56, + "name": "sushiswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", + "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" + } + }, + { + "chain_id": 42220, + "name": "sushiswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", + "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" + } + }, + { + "chain_id": 43114, + "name": "sushiswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", + "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" + } + }, + { + "chain_id": 42161, + "name": "swapr", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x530476d5583724A89c8841eB6Da76E7Af4C0F17E", + "UniswapV2Factory": "0x359F20Ad0F42D75a5077e65F30274cABe6f4F01a" + } + }, + { + "chain_id": 1, + "name": "standard", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x6c78d71ce7300343e3633e0c45d6c7a79fee4650", + "UniswapV2Factory": "0x53AC1d1FA4F9F6c604B8B198cE29A50d28cbA893" + } + }, + { + "chain_id": 137, + "name": "polycat", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x94930a328162957FF1dd48900aF67B5439336cBD", + "UniswapV2Factory": "0x477Ce834Ae6b7aB003cCe4BC4d8697763FF456FA" + } + }, + { + "chain_id": 56, + "name": "biswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x3a6d8cA21D1CF76F653A67577FA0D27453350dD8", + "UniswapV2Factory": "0x858E3312ed3A876947EA49d572A7C42DE08af7EE" + } + }, + { + "chain_id": 56, + "name": "yieldfields", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xa4385646517d9b34ada4ac393a64ea120d08408c", + "UniswapV2Factory": "0x0A376eE063184B444ff66a9a22AD91525285FE1C" + } + }, + { + "chain_id": 56, + "name": "unitedfarmers", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xad02320a81606fbB760C32e065495A8ddbf322A8", + "UniswapV2Factory": "0x2fcd5B3B7A5088509bAbC9910eD2F1B6Fe5775B6" + } + }, + { + "chain_id": 137, + "name": "gravity_finance", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x57de98135e8287f163c59ca4ff45f1341b680248", + "UniswapV2Factory": "0x3ed75AfF4094d2Aaa38FaFCa64EF1C152ec1Cf20" + } + }, + { + "chain_id": 1, + "name": "shibaswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x03f7724180aa6b939894b5ca4314783b0b36b329", + "UniswapV2Factory": "0x115934131916c8b277dd010ee02de363c09d037c" + } + }, + { + "chain_id": 10, + "name": "zipswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xE6Df0BB08e5A97b40B21950a0A51b94c4DbA0Ff6", + "UniswapV2Factory": "0x8BCeDD62DD46F1A76F8A1633d4f5B76e0CDa521E" + } + }, + { + "chain_id": 56, + "name": "bakeryswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xCDe540d7eAFE93aC5fE6233Bee57E1270D3E330F", + "UniswapV2Factory": "0x01bF7C66c6BD861915CdaaE475042d3c4BaE16A7" + } + }, + { + "chain_id": 250, + "name": "solidly", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xa38cd27185a464914D3046f0AB9d43356B34829D", + "UniswapV2Factory": "0x3fAaB499b519fdC5819e3D7ed0C26111904cbc28" + } + }, + { + "chain_id": 250, + "name": "tomb_finance", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xE236f6890F1824fa0a7ffc39b1597A5A6077Cfe9", + "UniswapV2Factory": "0xE236f6890F1824fa0a7ffc39b1597A5A6077Cfe9" + } + }, + { + "chain_id": 56, + "name": "knightswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0xf0bc2E21a76513aa7CC2730C7A1D6deE0790751f" + } + }, + { + "chain_id": 56, + "name": "mdex", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x3CD1C46068dAEa5Ebb0d3f55F6915B10648062B8" + } + }, + { + "chain_id": 137, + "name": "comethswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x800b052609c355cA8103E06F022aA30647eAd60a" + } + }, + { + "chain_id": 56, + "name": "safemoon", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x4d05D0045df5562D6D52937e93De6Ec1FECDAd21" + } + }, + { + "chain_id": 1, + "name": "fraxswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xC14d550632db8592D1243Edc8B95b0Ad06703867", + "UniswapV2Factory": "0x43eC799eAdd63848443E2347C49f5f52e8Fe0F6f" + } + }, + { + "chain_id": 42161, + "name": "fraxswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xCAAaB0A72f781B92bA63Af27477aA46aB8F653E7", + "UniswapV2Factory": "0x8374A74A728f06bEa6B7259C68AA7BBB732bfeaD" + } + }, + { + "chain_id": 43114, + "name": "fraxswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x5977b16AA9aBC4D1281058C73B789C65Bf9ab3d3", + "UniswapV2Factory": "0xf77ca9B635898980fb219b4F4605C50e4ba58afF" + } + }, + { + "chain_id": 56, + "name": "fraxswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x67F755137E0AE2a2aa0323c047715Bf6523116E5", + "UniswapV2Factory": "0xf89e6CA06121B6d4370f4B196Ae458e8b969A011" + } + }, + { + "chain_id": 250, + "name": "fraxswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x7D21C651Dd333306B35F2FeAC2a19FA1e1241545", + "UniswapV2Factory": "0xDc745E09fC459aDC295E2e7baACe881354dB7F64" + } + }, + { + "chain_id": 137, + "name": "fraxswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xE52D0337904D4D0519EF7487e707268E1DB6495F", + "UniswapV2Factory": "0x54F454D747e037Da288dB568D4121117EAb34e79" + } + }, + { + "chain_id": 1, + "name": "stepn", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x1e895bFe59E3A5103e8B7dA3897d1F2391476f3c" + } + }, + { + "chain_id": 56, + "name": "stepn", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x1e895bFe59E3A5103e8B7dA3897d1F2391476f3c" + } + }, + { + "chain_id": 56, + "name": "fstswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x9A272d734c5a0d7d84E0a892e891a553e8066dce" + } + }, + { + "chain_id": 56, + "name": "pandora", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0xFf9A4E72405Df3ca3D909523229677e6B2b8dC71" + } + }, + { + "chain_id": 56, + "name": "nomiswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0xd6715A8be3944ec72738F0BFDC739d48C3c29349" + } + }, + { + "chain_id": 56, + "name": "planet", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0xa053582601214FEb3778031a002135cbBB7DBa18" + } + }, + { + "chain_id": 56, + "name": "jfswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0xd654CbF99F2907F06c88399AE123606121247D5C" + } + }, + { + "chain_id": 56, + "name": "titano", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x80f112CD8Ac529d6993090A0c9a04E01d495BfBf" + } + }, + { + "chain_id": 56, + "name": "orbitalswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x1A04Afe9778f95829017741bF46C9524B91433fB" + } + }, + { + "chain_id": 250, + "name": "wigoswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0xC831A5cBfb4aC2Da5ed5B194385DFD9bF5bFcBa7" + } + }, + { + "chain_id": 43114, + "name": "swapsicle", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x9C60C867cE07a3c403E2598388673C10259EC768" + } + }, + { + "chain_id": 100, + "name": "sushiswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", + "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" + } + }, + { + "chain_id": 100, + "name": "swapr", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x5D48C95AdfFD4B40c1AAADc4e08fc44117E02179" + } + }, + { + "chain_id": 100, + "name": "honeyswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0xA818b4F111Ccac7AA31D0BCc0806d64F2E0737D7" + } + }, + { + "chain_id": 100, + "name": "baoswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x6093AeBAC87d62b1A5a4cEec91204e35020E38bE", + "UniswapV2Factory": "0x45DE240fbE2077dd3e711299538A09854FAE9c9b" + } + }, + { + "chain_id": 100, + "name": "levin_swap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x965769C9CeA8A7667246058504dcdcDb1E2975A5" + } + }, + { + "chain_id": 100, + "name": "elk_finance", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0xCB018587dA9590A18f49fFE2b85314c33aF3Ad3B" + } + }, + { + "chain_id": 100, + "name": "empiredex", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0xdADaae6cDFE4FA3c35d54811087b3bC3Cd60F348" + } + }, + { + "chain_id": 1, + "name": "pancakeswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Factory": "0x1097053Fd2ea711dad45caCcc45EfF7548fCB362" + } + }, + { + "chain_id": 56, + "name": "babydogeswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xC9a0F685F39d05D835c369036251ee3aEaaF3c47", + "UniswapV2Factory": "0x4693B62E5fc9c0a45F89D62e6300a03C85f43137" + } + }, + { + "chain_id": 137, + "name": "radioshack", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xaf877420786516fc6692372c209e0056169eebaf", + "UniswapV2Factory": "0xB581D0A3b7Ea5cDc029260e989f768Ae167Ef39B" + } + }, + { + "chain_id": 1, + "name": "radioshack", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x3e445e3280C5747a188DB8d0aB7762838A50E4ff", + "UniswapV2Factory": "0x91fAe1bc94A9793708fbc66aDcb59087C46dEe10" + } + }, + { + "chain_id": 56, + "name": "radioshack", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x5bc3ED94919af03279c8613cB807ab667cE5De99", + "UniswapV2Factory": "0x98957ab49b8bc9f7ddbCfD8BcC83728085ecb238" + } + }, + { + "chain_id": 43114, + "name": "radioshack", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x763D8D37669bB18064b410e17E3bB46BCF34F487", + "UniswapV2Factory": "0xA0FbfDa09B8815Dd42dDC70E4f9fe794257CD9B6" + } + }, + { + "chain_id": 250, + "name": "radioshack", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x4e2a57A8ffE65F794e9A32637Bc67b502fFc84C6", + "UniswapV2Factory": "0x5eF0153590D4a762F129dCf3c59186D91365e4e1" + } + }, + { + "chain_id": 10, + "name": "radioshack", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x68797130D8E63745761C524C33121fdD7290cB72", + "UniswapV2Factory": "0x5eF0153590D4a762F129dCf3c59186D91365e4e1" + } + }, + { + "chain_id": 56, + "name": "padswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x76437234D29f84D9A12820A137c6c6A719138C24", + "UniswapV2Factory": "0xB836017ACf10b8A7c6c6C9e99eFE0f5B0250FC45" + } + }, + { + "chain_id": 1, + "name": "apeswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0x5f509a3C3F16dF2Fba7bF84dEE1eFbce6BB85587", + "UniswapV2Factory": "0xBAe5dc9B19004883d0377419FeF3c2C8832d7d7B" + } + }, + { + "chain_id": 10, + "name": "fraxswap", + "type": "uniswap_v2", + "enabled": true, + "contracts": { + "UniswapV2Router": "0xB9A55F455e46e8D717eEA5E47D2c449416A0437F", + "UniswapV2Factory": "0x67a1412d2D6CbF211bb71F8e851b4393b491B10f" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v3/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v3/config.json new file mode 100644 index 0000000..a3a3ea1 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v3/config.json @@ -0,0 +1,100 @@ +[ + { + "chain_id": 1, + "name": "uniswap_v3", + "type": "uniswap_v3", + "enabled": true, + "contracts": { + "Quoter": "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6", + "TickLens": "0xbfd8137f7d1516D3ea5cA83523914859ec47F573", + "Multicall2": "0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696", + "ProxyAdmin": "0xB753548F6E010e7e680BA186F9Ca1BdAB2E90cf2", + "SwapRouter": "0xE592427A0AEce92De3Edee1F18E0157C05861564", + "V3Migrator": "0xA5644E29708357803b5A882D272c41cC0dF92B34", + "NFTDescriptor": "0x42B24A95702b9986e82d421cC3568932790A48Ec", + "UniswapV3Factory": "0x1F98431c8aD98523631AE4a59f267346ea31F984", + "NonfungiblePositionManager": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", + "TransparentUpgradeableProxy": "0xEe6A57eC80ea46401049E92587E52f5Ec1c24785", + "NonfungibleTokenPositionDescriptor": "0x91ae842A5Ffd8d12023116943e72A606179294f3" + } + }, + { + "chain_id": 42161, + "name": "uniswap_v3", + "type": "uniswap_v3", + "enabled": true, + "contracts": { + "Quoter": "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6", + "TickLens": "0xbfd8137f7d1516D3ea5cA83523914859ec47F573", + "Multicall2": "0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696", + "ProxyAdmin": "0xB753548F6E010e7e680BA186F9Ca1BdAB2E90cf2", + "SwapRouter": "0xE592427A0AEce92De3Edee1F18E0157C05861564", + "V3Migrator": "0xA5644E29708357803b5A882D272c41cC0dF92B34", + "NFTDescriptor": "0x42B24A95702b9986e82d421cC3568932790A48Ec", + "UniswapV3Factory": "0x1F98431c8aD98523631AE4a59f267346ea31F984", + "NonfungiblePositionManager": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", + "TransparentUpgradeableProxy": "0xEe6A57eC80ea46401049E92587E52f5Ec1c24785", + "NonfungibleTokenPositionDescriptor": "0x91ae842A5Ffd8d12023116943e72A606179294f3" + } + }, + { + "chain_id": 137, + "name": "uniswap_v3", + "type": "uniswap_v3", + "enabled": true, + "contracts": { + "Quoter": "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6", + "TickLens": "0xbfd8137f7d1516D3ea5cA83523914859ec47F573", + "Multicall2": "0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696", + "ProxyAdmin": "0xB753548F6E010e7e680BA186F9Ca1BdAB2E90cf2", + "SwapRouter": "0xE592427A0AEce92De3Edee1F18E0157C05861564", + "V3Migrator": "0xA5644E29708357803b5A882D272c41cC0dF92B34", + "NFTDescriptor": "0x42B24A95702b9986e82d421cC3568932790A48Ec", + "UniswapV3Factory": "0x1F98431c8aD98523631AE4a59f267346ea31F984", + "NonfungiblePositionManager": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", + "TransparentUpgradeableProxy": "0xEe6A57eC80ea46401049E92587E52f5Ec1c24785", + "NonfungibleTokenPositionDescriptor": "0x91ae842A5Ffd8d12023116943e72A606179294f3" + } + }, + { + "chain_id": 10, + "name": "uniswap_v3", + "type": "uniswap_v3", + "enabled": true, + "contracts": { + "Quoter": "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6", + "TickLens": "0xbfd8137f7d1516D3ea5cA83523914859ec47F573", + "Multicall2": "0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696", + "ProxyAdmin": "0xB753548F6E010e7e680BA186F9Ca1BdAB2E90cf2", + "SwapRouter": "0xE592427A0AEce92De3Edee1F18E0157C05861564", + "V3Migrator": "0xA5644E29708357803b5A882D272c41cC0dF92B34", + "NFTDescriptor": "0x42B24A95702b9986e82d421cC3568932790A48Ec", + "UniswapV3Factory": "0x1F98431c8aD98523631AE4a59f267346ea31F984", + "NonfungiblePositionManager": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", + "TransparentUpgradeableProxy": "0xEe6A57eC80ea46401049E92587E52f5Ec1c24785", + "NonfungibleTokenPositionDescriptor": "0x91ae842A5Ffd8d12023116943e72A606179294f3" + } + }, + { + "chain_id": 56, + "name": "sheepdex", + "type": "uniswap_v3", + "enabled": true, + "contracts": { + "Quoter": "0x6fbe54c589d3aC30DCd8FdD4fcB84C1b43f1F552", + "TickLens": "0xbfd8137f7d1516D3ea5cA83523914859ec47F573", + "SwapRouter": "0xcD87782A717F40542e18C61Ebb7210d3132e17d8", + "NFTDescriptor": "0x42B24A95702b9986e82d421cC3568932790A48Ec", + "UniswapV3Factory": "0x571521f8c16f3c4eD5f2490f19187bA7A5A3CBDf" + } + }, + { + "chain_id": 42220, + "name": "uniswap_v3", + "type": "uniswap_v3", + "enabled": true, + "contracts": { + "UniswapV3Factory": "0xAfE208a311B21f13EF87E33A90049fC17A7acDEc" + } + } +] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/dexguru_data_sources.py b/dexguru_data_sources/dexguru_data_sources/dexguru_data_sources.py new file mode 100644 index 0000000..0f59629 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/dexguru_data_sources.py @@ -0,0 +1,85 @@ +"""Main module.""" +import os +import json +from abc import ABC +from typing import List, Optional + +from pydantic import BaseSettings + +from dexguru_data_sources.models.amm_inventory_model import BaseAmmModel +from dexguru_data_sources.models.chain_inventory_model import BaseChainModel + + +class UtilsConfig(BaseSettings): + CONFIG_API_URL: Optional[str] = None + CONFIG_API_TOKEN: Optional[str] = None + + +utils_config = UtilsConfig() + + +class APIClient(ABC): + + def get_chains(self) -> List[BaseChainModel]: + raise NotImplementedError + + def get_dapps(self, chain_id: int) -> List[BaseAmmModel]: + raise NotImplementedError + + +def get_client(api_token: Optional[str] = None) -> APIClient: + return LocalAPIClient() + + +class LocalAPIClient(APIClient): + def __init__(self): + chains_result, dapps_result = self.scan_paths() + self.chains_data = chains_result + self.dapps_data = dapps_result + self.chains_dictionary = self.get_chains() + self.dapps_dictionary = self.get_dapps() + + def scan_paths(self): + path_parent = os.path.dirname(os.getcwd()) + chains_path = f'{path_parent}/dexguru_data_sources/api_data/chains/evm' + dapps_path = f'{path_parent}/dexguru_data_sources/api_data/dapps/evm' + chains_scan = os.scandir(chains_path) + dapps_scan = os.scandir(dapps_path) + chains_result = [] + dapps_result = [] + for chain in chains_scan: + iterate_scan = os.scandir(chain.path) + for jsons in iterate_scan: + with open(jsons.path) as iterate_json: + chains = json.load(iterate_json) + chains_result.append(chains) + for dapp in dapps_scan: + iterate_scan = os.scandir(dapp.path) + for jsons_dapp in iterate_scan: + with open(jsons_dapp.path) as iterate_json_dapp: + dapps = json.load(iterate_json_dapp) + dapps_result.append(dapps) + return chains_result, dapps_result + + def get_chains(self): + chains = [] + chains_dictionary = {} + for chain in self.chains_data: + if chain: + chains.append(chain) + for chain_list in chains: + for dictionary in chain_list: + chains_dictionary[dictionary['id']] = dictionary + return chains_dictionary + + def get_dapps(self): + dapps = [] + dapps_dictionary = {} + for dapp in self.dapps_data: + if dapp: + dapps.append(dapp) + for dapps_list in dapps: + for dictionary_dapp in dapps_list: + string_int = '_' + str(dictionary_dapp['chain_id']) + dapps_dictionary[dictionary_dapp['name'] + string_int] = dictionary_dapp + return dapps_dictionary diff --git a/dexguru_data_sources/dexguru_data_sources/enums.py b/dexguru_data_sources/dexguru_data_sources/enums.py new file mode 100644 index 0000000..75afc7c --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/enums.py @@ -0,0 +1,9 @@ +from dexguru_data_sources.dexguru_data_sources import get_client, utils_config + +api_client = get_client(url=utils_config.CONFIG_API_URL, api_token=utils_config.CONFIG_API_TOKEN) + +AmmChoices = api_client.get_amm_choices() +AmmIDChoices = api_client.get_amm_id_choices() +NetworkChoices = api_client.get_network_choices() +ChainChoices = api_client.get_chain_choices() +NativeTokenAddresses = api_client.get_native_token_addresses() diff --git a/dexguru_data_sources/dexguru_data_sources/models/__init__.py b/dexguru_data_sources/dexguru_data_sources/models/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/dexguru_data_sources/dexguru_data_sources/models/amm_inventory_model.py b/dexguru_data_sources/dexguru_data_sources/models/amm_inventory_model.py new file mode 100644 index 0000000..c39fdd1 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/models/amm_inventory_model.py @@ -0,0 +1,17 @@ +from pydantic import constr, PositiveInt + +from .base_model import BaseModelDexGuru + +""" + New Amm models are devided into Backend and Frontend parts + BackendModel key: BackendAmmModel:id-1, mset + MetadataAmmModel key: MetadataAmmModel:id-2 +""" + + +class BaseAmmModel(BaseModelDexGuru): + chain_id: PositiveInt + name: constr(strict=True, min_length=1, max_length=50, strip_whitespace=True) = '' + type: constr(strict=True, min_length=1, max_length=50, strip_whitespace=True) = '' + enabled: bool = False + contracts: dict = {} diff --git a/dexguru_data_sources/dexguru_data_sources/models/base_model.py b/dexguru_data_sources/dexguru_data_sources/models/base_model.py new file mode 100644 index 0000000..c87dc5b --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/models/base_model.py @@ -0,0 +1,8 @@ +from pydantic import BaseModel + + +class BaseModelDexGuru(BaseModel): + class Config: + # check types on set/update + validate_assignment = True + validate_all = True \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/models/chain_inventory_model.py b/dexguru_data_sources/dexguru_data_sources/models/chain_inventory_model.py new file mode 100644 index 0000000..5f8058a --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/models/chain_inventory_model.py @@ -0,0 +1,21 @@ +from typing import Optional, List + +from pydantic import constr, PositiveInt + +from .base_model import BaseModelDexGuru +from .token_inventory import TokenInventoryStatic +from .values import address + + +class ChainId(BaseModelDexGuru): + value: PositiveInt = 1 + + +class BaseChainModel(BaseModelDexGuru): + chain_id: PositiveInt = 1 + name: constr(strict=True, min_length=0, max_length=50, strip_whitespace=True) = '' + type: constr(strict=True, min_length=0, max_length=50, strip_whitespace=True) = '' + enabled: bool = True + native_token_address: address = '' + native_token: Optional[TokenInventoryStatic] = None + stablecoin_addresses: List[str] = [] diff --git a/dexguru_data_sources/dexguru_data_sources/models/token_inventory.py b/dexguru_data_sources/dexguru_data_sources/models/token_inventory.py new file mode 100644 index 0000000..34db8d5 --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/models/token_inventory.py @@ -0,0 +1,21 @@ +from typing import Optional + +from pydantic import constr, conint + +from .base_model import BaseModelDexGuru +from .values import address + +SUPPORTED_TRANSACTION_TYPES = [] +SUPPORTED_AMM_LIST = [] +SUPPORTED_NETWORK_LIST = [] + + +class TokenInventoryStatic(BaseModelDexGuru): + """ Not modified fields of TokenInventory """ + id: constr(strip_whitespace=True) + address: address + name: constr(strict=True, min_length=1, max_length=50, strip_whitespace=True) + symbol: constr(strict=True, min_length=1, max_length=50, strip_whitespace=True) + logo_uri: Optional[str] = None + decimals: conint(ge=0) = 0 + chain_id: Optional[int] = None diff --git a/dexguru_data_sources/dexguru_data_sources/models/values.py b/dexguru_data_sources/dexguru_data_sources/models/values.py new file mode 100644 index 0000000..a05ef5b --- /dev/null +++ b/dexguru_data_sources/dexguru_data_sources/models/values.py @@ -0,0 +1,10 @@ +from pydantic import constr + +address = constr(strict=True, strip_whitespace=True) +hex_color = constr( + strict=True, min_length=4, max_length=7, strip_whitespace=True, to_lower=True, regex=r'^#[\da-f]+$' +) +rgba_color = constr( + strict=True, min_length=13, max_length=24, strip_whitespace=True, to_lower=True, + regex=r'^rgba\(\d{1,3},\s?\d{1,3},\s?\d{1,3},\s?\d(\.\d)?\)$' +) \ No newline at end of file diff --git a/dexguru_data_sources/docs/Makefile b/dexguru_data_sources/docs/Makefile new file mode 100644 index 0000000..19c961a --- /dev/null +++ b/dexguru_data_sources/docs/Makefile @@ -0,0 +1,20 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = python -msphinx +SPHINXPROJ = dexguru_data_sources +SOURCEDIR = . +BUILDDIR = _build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/dexguru_data_sources/docs/authors.rst b/dexguru_data_sources/docs/authors.rst new file mode 100644 index 0000000..e122f91 --- /dev/null +++ b/dexguru_data_sources/docs/authors.rst @@ -0,0 +1 @@ +.. include:: ../AUTHORS.rst diff --git a/dexguru_data_sources/docs/conf.py b/dexguru_data_sources/docs/conf.py new file mode 100755 index 0000000..8e48bb3 --- /dev/null +++ b/dexguru_data_sources/docs/conf.py @@ -0,0 +1,162 @@ +#!/usr/bin/env python +# +# dexguru_data_sources documentation build configuration file, created by +# sphinx-quickstart on Fri Jun 9 13:47:02 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another +# directory, add these directories to sys.path here. If the directory is +# relative to the documentation root, use os.path.abspath to make it +# absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('..')) + +import dexguru_data_sources + +# -- General configuration --------------------------------------------- + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'dexguru_data_sources' +copyright = "2023, Vitaly Vakhteev" +author = "Vitaly Vakhteev" + +# The version info for the project you're documenting, acts as replacement +# for |version| and |release|, also used in various other places throughout +# the built documents. +# +# The short X.Y version. +version = dexguru_data_sources.__version__ +# The full version, including alpha/beta/rc tags. +release = dexguru_data_sources.__version__ + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = None + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = False + + +# -- Options for HTML output ------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'alabaster' + +# Theme options are theme-specific and customize the look and feel of a +# theme further. For a list of options available for each theme, see the +# documentation. +# +# html_theme_options = {} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['_static'] + + +# -- Options for HTMLHelp output --------------------------------------- + +# Output file base name for HTML help builder. +htmlhelp_basename = 'dexguru_data_sourcesdoc' + + +# -- Options for LaTeX output ------------------------------------------ + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, author, documentclass +# [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'dexguru_data_sources.tex', + 'dexguru_data_sources Documentation', + 'Vitaly Vakhteev', 'manual'), +] + + +# -- Options for manual page output ------------------------------------ + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'dexguru_data_sources', + 'dexguru_data_sources Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ---------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'dexguru_data_sources', + 'dexguru_data_sources Documentation', + author, + 'dexguru_data_sources', + 'One line description of project.', + 'Miscellaneous'), +] + + + diff --git a/dexguru_data_sources/docs/history.rst b/dexguru_data_sources/docs/history.rst new file mode 100644 index 0000000..2506499 --- /dev/null +++ b/dexguru_data_sources/docs/history.rst @@ -0,0 +1 @@ +.. include:: ../HISTORY.rst diff --git a/dexguru_data_sources/docs/installation.rst b/dexguru_data_sources/docs/installation.rst new file mode 100644 index 0000000..a05bc9c --- /dev/null +++ b/dexguru_data_sources/docs/installation.rst @@ -0,0 +1,51 @@ +.. highlight:: shell + +============ +Installation +============ + + +Stable release +-------------- + +To install dexguru_data_sources, run this command in your terminal: + +.. code-block:: console + + $ pip install dexguru_data_sources + +This is the preferred method to install dexguru_data_sources, as it will always install the most recent stable release. + +If you don't have `pip`_ installed, this `Python installation guide`_ can guide +you through the process. + +.. _pip: https://pip.pypa.io +.. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/ + + +From sources +------------ + +The sources for dexguru_data_sources can be downloaded from the `Github repo`_. + +You can either clone the public repository: + +.. code-block:: console + + $ git clone git://github.com/VitalyVakhteev/dexguru_data_sources + +Or download the `tarball`_: + +.. code-block:: console + + $ curl -OJL https://github.com/VitalyVakhteev/dexguru_data_sources/tarball/master + +Once you have a copy of the source, you can install it with: + +.. code-block:: console + + $ python setup.py install + + +.. _Github repo: https://github.com/VitalyVakhteev/dexguru_data_sources +.. _tarball: https://github.com/VitalyVakhteev/dexguru_data_sources/tarball/master diff --git a/dexguru_data_sources/docs/make.bat b/dexguru_data_sources/docs/make.bat new file mode 100644 index 0000000..824ea70 --- /dev/null +++ b/dexguru_data_sources/docs/make.bat @@ -0,0 +1,36 @@ +@ECHO OFF + +pushd %~dp0 + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=python -msphinx +) +set SOURCEDIR=. +set BUILDDIR=_build +set SPHINXPROJ=dexguru_data_sources + +if "%1" == "" goto help + +%SPHINXBUILD% >NUL 2>NUL +if errorlevel 9009 ( + echo. + echo.The Sphinx module was not found. Make sure you have Sphinx installed, + echo.then set the SPHINXBUILD environment variable to point to the full + echo.path of the 'sphinx-build' executable. Alternatively you may add the + echo.Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.http://sphinx-doc.org/ + exit /b 1 +) + +%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% +goto end + +:help +%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% + +:end +popd diff --git a/dexguru_data_sources/docs/readme.rst b/dexguru_data_sources/docs/readme.rst new file mode 100644 index 0000000..72a3355 --- /dev/null +++ b/dexguru_data_sources/docs/readme.rst @@ -0,0 +1 @@ +.. include:: ../README.rst diff --git a/dexguru_data_sources/docs/usage.rst b/dexguru_data_sources/docs/usage.rst new file mode 100644 index 0000000..502f407 --- /dev/null +++ b/dexguru_data_sources/docs/usage.rst @@ -0,0 +1,7 @@ +===== +Usage +===== + +To use dexguru_data_sources in a project:: + + import dexguru_data_sources diff --git a/dexguru_data_sources/poetry.lock b/dexguru_data_sources/poetry.lock new file mode 100644 index 0000000..5b9f72e --- /dev/null +++ b/dexguru_data_sources/poetry.lock @@ -0,0 +1,8 @@ +package = [] + +[metadata] +lock-version = "1.1" +python-versions = "^3.10" +content-hash = "17ca553b0bb9298a6ed528dd21e544ca433179192dba32a9920168e1c199d74f" + +[metadata.files] diff --git a/dexguru_data_sources/pyproject.toml b/dexguru_data_sources/pyproject.toml new file mode 100644 index 0000000..76be174 --- /dev/null +++ b/dexguru_data_sources/pyproject.toml @@ -0,0 +1,14 @@ +[tool.poetry] +name = "dexguru_data_sources" +version = "0.1.0" +description = "" +authors = ["Vitaly Vakhteev "] + +[tool.poetry.dependencies] +python = "^3.10" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" diff --git a/dexguru_data_sources/setup.cfg b/dexguru_data_sources/setup.cfg new file mode 100644 index 0000000..94702a6 --- /dev/null +++ b/dexguru_data_sources/setup.cfg @@ -0,0 +1,20 @@ +[bumpversion] +current_version = 0.1.0 +commit = True +tag = True + +[bumpversion:file:setup.py] +search = version='{current_version}' +replace = version='{new_version}' + +[bumpversion:file:dexguru_data_sources/__init__.py] +search = __version__ = '{current_version}' +replace = __version__ = '{new_version}' + +[bdist_wheel] +universal = 1 + +[flake8] +exclude = docs +[tool:pytest] +collect_ignore = ['setup.py'] diff --git a/dexguru_data_sources/setup.py b/dexguru_data_sources/setup.py new file mode 100644 index 0000000..111fc25 --- /dev/null +++ b/dexguru_data_sources/setup.py @@ -0,0 +1,44 @@ +#!/usr/bin/env python + +"""The setup script.""" + +from setuptools import setup, find_packages + +with open('README.rst') as readme_file: + readme = readme_file.read() + +with open('HISTORY.rst') as history_file: + history = history_file.read() + +requirements = [ ] + +test_requirements = ['pytest>=3', ] + +setup( + author="Vitaly Vakhteev", + author_email='vitaly.v@techusage.com', + python_requires='>=3.6', + classifiers=[ + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Natural Language :: English', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + ], + description="The DexGuru Data Sources package allows the importation of JSONs for API use", + install_requires=requirements, + license="MIT license", + long_description=readme + '\n\n' + history, + include_package_data=True, + keywords='dexguru_data_sources', + name='dexguru_data_sources', + packages=find_packages(include=['dexguru_data_sources', 'dexguru_data_sources.*']), + test_suite='tests', + tests_require=test_requirements, + url='https://github.com/dex-guru/data-sources', + version='0.1.0', + zip_safe=False, +) diff --git a/dexguru_data_sources/tests/__init__.py b/dexguru_data_sources/tests/__init__.py new file mode 100644 index 0000000..a2f8d65 --- /dev/null +++ b/dexguru_data_sources/tests/__init__.py @@ -0,0 +1 @@ +"""Unit test package for dexguru_config_package.""" diff --git a/dexguru_data_sources/tests/test_dexguru_data_sources.py b/dexguru_data_sources/tests/test_dexguru_data_sources.py new file mode 100644 index 0000000..c1363ec --- /dev/null +++ b/dexguru_data_sources/tests/test_dexguru_data_sources.py @@ -0,0 +1,13 @@ +#!/usr/bin/env python + +"""Tests for `dexguru_config_package` package.""" + +import pytest + +from dexguru_data_sources.dexguru_data_sources import get_client + + +class TestLocalAPIClient: + def test_config(self): + config = get_client() + assert config diff --git a/dexguru_data_sources/tox.ini b/dexguru_data_sources/tox.ini new file mode 100644 index 0000000..0a8ed11 --- /dev/null +++ b/dexguru_data_sources/tox.ini @@ -0,0 +1,26 @@ +[tox] +envlist = py36, py37, py38, flake8 + +[travis] +python = + 3.8: py38 + 3.7: py37 + 3.6: py36 + +[testenv:flake8] +basepython = python +deps = flake8 +commands = flake8 dexguru_data_sources tests + +[testenv] +setenv = + PYTHONPATH = {toxinidir} +deps = + -r{toxinidir}/requirements_dev.txt +; If you want to make tox run the tests with the same versions, create a +; requirements.txt with the pinned versions and uncomment the following line: +; -r{toxinidir}/requirements.txt +commands = + pip install -U pip + pytest --basetemp={envtmpdir} + From ebf3e2d88974e3e6c8ae7ac4f8642efc3b6bb2d3 Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Mon, 13 Feb 2023 14:58:20 -0800 Subject: [PATCH 2/6] fix git ignore --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 9f412fa..7ed07d0 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,8 @@ build/ develop-eggs/ dist/ downloads/ +eggs/ +.eggs/ lib/ lib64/ parts/ @@ -20,7 +22,9 @@ var/ wheels/ pip-wheel-metadata/ share/python-wheels/ +*.egg-info/ .installed.cfg +*.egg MANIFEST # PyInstaller From 5f082ebddbc220be4b53ba54d275fcc62887f138 Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Mon, 13 Feb 2023 15:07:55 -0800 Subject: [PATCH 3/6] changes --- .../dexguru_data_sources/api_data/__init__.py | 0 .../api_data/chains/evm/1/config.json | 29 - .../api_data/chains/evm/10/config.json | 21 - .../api_data/chains/evm/100/config.json | 19 - .../api_data/chains/evm/137/config.json | 28 - .../api_data/chains/evm/250/config.json | 21 - .../api_data/chains/evm/42161/config.json | 20 - .../api_data/chains/evm/42220/config.json | 20 - .../api_data/chains/evm/43114/config.json | 22 - .../api_data/chains/evm/56/config.json | 25 - .../api_data/dapps/evm/1inch/config.json | 11 - .../api_data/dapps/evm/balancer/config.json | 107 -- .../api_data/dapps/evm/bancor_v2/config.json | 11 - .../api_data/dapps/evm/curve/config.json | 74 -- .../api_data/dapps/evm/dmm/config.json | 72 -- .../api_data/dapps/evm/dodo/config.json | 68 -- .../api_data/dapps/evm/dodo_v2/config.json | 62 - .../api_data/dapps/evm/ellipsis/config.json | 11 - .../dapps/evm/kyberswap_elastic/config.json | 93 -- .../api_data/dapps/evm/meshswap/config.json | 11 - .../api_data/dapps/evm/platypus/config.json | 11 - .../api_data/dapps/evm/saddle/config.json | 29 - .../api_data/dapps/evm/solidly/config.json | 30 - .../dapps/evm/sushiswap_bento/config.json | 20 - .../api_data/dapps/evm/uniswap_v2/config.json | 1041 ----------------- .../api_data/dapps/evm/uniswap_v3/config.json | 100 -- .../dexguru_data_sources.py | 5 +- 27 files changed, 3 insertions(+), 1958 deletions(-) delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/__init__.py delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/1/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/10/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/100/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/137/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/250/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42161/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42220/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/43114/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/56/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/1inch/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/balancer/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/bancor_v2/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/curve/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dmm/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo_v2/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/ellipsis/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/kyberswap_elastic/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/meshswap/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/platypus/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/saddle/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/solidly/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/sushiswap_bento/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v2/config.json delete mode 100644 dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v3/config.json diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/__init__.py b/dexguru_data_sources/dexguru_data_sources/api_data/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/1/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/1/config.json deleted file mode 100644 index 0137362..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/1/config.json +++ /dev/null @@ -1,29 +0,0 @@ -[ - { - "id": 1, - "name": "eth", - "type": "evm", - "enabled": true, - "native_token_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", - "native_token": { - "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", - "name": "Wrapped Ether", - "symbol": "WETH", - "decimals": 18 - }, - "stablecoin_addresses": [ - "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", - "0xdac17f958d2ee523a2206206994597c13d831ec7", - "0x6b175474e89094c44da98b954eedeac495271d0f", - "0x0000000000085d4780b73119b644ae5ecd22b376", - "0x4fabb145d64652a948d72533023f6e7a623c7c53", - "0x8e870d67f660d95d5be530380d0ec0bd388289e1", - "0x956F47F50A910163D8BF957Cf5846D573E7f87CA", - "0x853d955aCEf822Db058eb8505911ED77F175b99e", - "0xBC6DA0FE9aD5f3b0d58160288917AA56653660E9", - "0x57Ab1ec28D129707052df4dF418D58a2D46d5f51", - "0x5f98805A4E8be255a32880FDeC7F6728C6568bA0", - "0x674C6Ad92Fd080e4004b2312b45f796a192D27a0" - ] - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/10/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/10/config.json deleted file mode 100644 index 5b8b512..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/10/config.json +++ /dev/null @@ -1,21 +0,0 @@ -[ - { - "id": 10, - "name": "optimism", - "type": "evm", - "enabled": true, - "native_token_address": "0x4200000000000000000000000000000000000006", - "native_token": { - "address": "0x4200000000000000000000000000000000000006", - "name": "Wrapped Ether", - "symbol": "WETH", - "decimals": 18 - }, - "stablecoin_addresses": [ - "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58", - "0x7f5c764cbc14f9669b88837ca1490cca17c31607", - "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1", - "0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9" - ] - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/100/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/100/config.json deleted file mode 100644 index f926c92..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/100/config.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "id": 100, - "name": "gnosis", - "type": "evm", - "enabled": true, - "native_token_address": "0xe91d153e0b41518a2ce8dd3d7944fa863463a97d", - "native_token": { - "address": "0xe91d153e0b41518a2ce8dd3d7944fa863463a97d", - "name": "Wrapped xDAI", - "symbol": "xDAI", - "decimals": 18 - }, - "stablecoin_addresses": [ - "0x44fa8e6f47987339850636f88629646662444217", - "0xddafbb505ad214d7b80b1f830fccc89b60fb7a83" - ] - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/137/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/137/config.json deleted file mode 100644 index 9df24c7..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/137/config.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "id": 137, - "name": "polygon", - "type": "evm", - "enabled": true, - "native_token_address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", - "native_token": { - "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", - "name": "WMATIC2", - "symbol": "WMATIC", - "decimals": 18 - }, - "stablecoin_addresses": [ - "0x2791bca1f2de4661ed88a30c99a7a9449aa84174", - "0xc2132d05d31c914a87c6611c10748aeb04b58e8f", - "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063", - "0x45c32fa6df82ead1e2ef74d17b76547eddfaff89", - "0x87ff96aba480f1813af5c780387d8de7cf7d8261", - "0x104592a158490a9228070e0a8e5343b499e125d0", - "0xd2eba21c2e0d6f996fdd063ae20aca8264ac1929", - "0x23001f892c0c82b79303edc9b9033cd190bb21c7", - "0x60d55f02a771d515e077c9c2403a1ef324885cec", - "0x27f8d03b3a2196956ed754badc28d73be8830a6e", - "0x1a13f4ca1d028320a707d99520abfefca3998b7f" - ] - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/250/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/250/config.json deleted file mode 100644 index 6153f9e..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/250/config.json +++ /dev/null @@ -1,21 +0,0 @@ -[ - { - "id": 250, - "name": "fantom", - "type": "evm", - "enabled": true, - "native_token_address": "0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83", - "native_token": { - "address": "0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83", - "name": "Wrapped FTM", - "symbol": "WFTM", - "decimals": 18 - }, - "stablecoin_addresses": [ - "0x04068da6c83afcfa0e13ba15a6696662335d5b75", - "0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e", - "0xdc301622e621166bd8e82f2ca0a26c13ad0be355", - "0x049d68029688eabf473097a2fc38ef61633a3c7a" - ] - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42161/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42161/config.json deleted file mode 100644 index e5f9313..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42161/config.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "id": 42161, - "name": "arbitrum", - "type": "evm", - "enabled": true, - "native_token_address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1", - "native_token": { - "address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1", - "name": "WETH", - "symbol": "WETH", - "decimals": 18 - }, - "stablecoin_addresses": [ - "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9", - "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8", - "0xa970af1a584579b618be4d69ad6f73459d112f95" - ] - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42220/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42220/config.json deleted file mode 100644 index 112dd58..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/42220/config.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "id": 42220, - "name": "celo", - "type": "evm", - "enabled": true, - "native_token_address": "0x471ece3750da237f93b8e339c536989b8978a438", - "native_token": { - "address": "0x471ece3750da237f93b8e339c536989b8978a438", - "name": "Celo", - "symbol": "CELO", - "decimals": 18 - }, - "stablecoin_addresses": [ - "0x918146359264c492bd6934071c6bd31c854edbc3", - "0x765DE816845861e75A25fCA122bb6898B8B1282a", - "0x2a3684e9dc20b857375ea04235f2f7edbe818fa7" - ] - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/43114/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/43114/config.json deleted file mode 100644 index 3c35acc..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/43114/config.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "id": 43114, - "name": "avalanche", - "type": "evm", - "enabled": true, - "native_token_address": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7", - "native_token": { - "address": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7", - "name": "Wrapped AVAX", - "symbol": "WAVAX", - "decimals": 18 - }, - "stablecoin_addresses": [ - "0xc7198437980c041c805a1edcba50c1ce5db95118", - "0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664", - "0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7", - "0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e", - "0xd24c2ad096400b6fbcd2ad8b24e7acbc21a1da64" - ] - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/56/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/56/config.json deleted file mode 100644 index 9b9c636..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/chains/evm/56/config.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - { - "id": 56, - "name": "bsc", - "type": "evm", - "enabled": true, - "native_token_address": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c", - "native_token": { - "address": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c", - "name": "Wrapped BNB", - "symbol": "WBNB", - "decimals": 18 - }, - "stablecoin_addresses": [ - "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d", - "0x55d398326f99059ff775485246999027b3197955", - "0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3", - "0xe9e7cea3dedca5984780bafc599bd69add087d56", - "0xb7f8cd00c5a06c0537e2abff0b58033d02e5e094", - "0x29ced01c447166958605519f10dcf8b0255fb379", - "0x23e8a70534308a4aaf76fb8c32ec13d17a3bd89e", - "0x03ab98f5dc94996f8c33e15cd4468794d12d41f9" - ] - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/1inch/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/1inch/config.json deleted file mode 100644 index 66daca1..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/1inch/config.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "chain_id": 1, - "name": "1inch", - "type": "1inch", - "enabled": true, - "contracts": { - "OneInchFactory": "0x71CD6666064C3A1354a3B4dca5fA1E2D3ee7D303" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/balancer/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/balancer/config.json deleted file mode 100644 index f49a0c0..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/balancer/config.json +++ /dev/null @@ -1,107 +0,0 @@ -[ - { - "chain_id": 1, - "name": "balancer", - "type": "balancer", - "enabled": true, - "contracts": { - "Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", - "StablePoolFactory": "0xc66Ba2B6595D3613CCab350C886aCE23866EDe24", - "StablePoolFactoryV2": "0x8df6EfEc5547e31B0eb7d1291B511FF8a2bf987c", - "WeightedPoolFactory": "0x8E9aa87E45e92bad84D5F8DD1bff34Fb92637dE9", - "AaveLinearPoolFactory": "0xD7FAD3bd59D6477cbe1BE7f646F7f1BA25b230f8", - "ConvergentPoolFactory": "0xb7561f547F3207eDb42A6AfA42170Cd47ADD17BD", - "InvestmentPoolFactory": "0x48767F9F868a4A7b86A90736632F6E44C2df7fa9", - "MetaStablePoolFactory": "0x67d27634E44793fE63c467035E31ea8635117cd4", - "AaveLinearPoolV2Factory": "0x6A0AC04f5C2A10297D5FA79FA6358837a8770041", - "ERC4626LinearPoolFactory": "0xe061bf85648e9fa7b59394668cfeef980aec4c66", - "StablePhantomPoolFactory": "0xb08E16cFc07C684dAA2f93C70323BAdb2A6CBFd2", - "WeightedPool2TokensFactory": "0xA5bf2ddF098bb0Ef6d120C98217dD6B141c74EE0", - "ComposableStablePoolFactory": "0xf9ac7B9dF2b3454E841110CcE5550bD5AC6f875F", - "LiquidityBootstrappingPoolFactory": "0x751A0bC0e3f75b38e01Cf25bFCE7fF36DE1C87DE", - "HighAmpComposableStablePoolFactory": "0xBa1b4a90bAD57470a2cbA762A32955dC491f76e0", - "TempLiquidityBootstrappingPoolFactory": "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e", - "NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e" - } - }, - { - "chain_id": 250, - "name": "beethoven", - "type": "balancer", - "enabled": true, - "contracts": { - "Vault": "0x20dd72Ed959b6147912C2e529F0a0C651c33c9ce", - "StablePoolFactory": "0x55df810876354Fc3e249f701Dd78DeDE57991F8D", - "WeightedPoolFactory": "0x60467cb225092cE0c989361934311175f437Cf53", - "MetaStablePoolFactory": "0x70b55Af71B29c5Ca7e67bD1995250364C4bE5554", - "StablePhantomPoolFactory": "0x0E2AFa0b5F9174750d4E84Bf9798f89b79Bd5bF4", - "WeightedPool2TokensFactory": "0x92b377187bcCC6556FceD2f1e6DAd65850C20630", - "NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x2C774732c93CE393eC8125bDA49fb3737Ae6F473" - } - }, - { - "chain_id": 10, - "name": "beethoven", - "type": "balancer", - "enabled": true, - "contracts": { - "Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", - "StablePoolFactory": "0xeb151668006CD04DAdD098AFd0a82e78F77076c3", - "WeightedPoolFactory": "0xdAE7e32ADc5d490a43cCba1f0c736033F2b4eFca", - "MetaStablePoolFactory": "0xb08E16cFc07C684dAA2f93C70323BAdb2A6CBFd2", - "WeightedPool2TokensFactory": "0x0F3e0c4218b7b0108a3643cFe9D3ec0d4F57c54e" - } - }, - { - "chain_id": 42161, - "name": "balancer", - "type": "balancer", - "enabled": true, - "contracts": { - "Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", - "StablePoolFactory": "0xEF44D6786b2b4d544b7850Fe67CE6381626Bf2D6", - "StablePoolV2Factory": "0xEF44D6786b2b4d544b7850Fe67CE6381626Bf2D6", - "WeightedPoolFactory": "0x7dFdEF5f355096603419239CE743BfaF1120312B", - "AaveLinearPoolFactory": "0xdcdbf71A870cc60C6F9B621E28a7D3Ffd6Dd4965", - "InvestmentPoolFactory": "0xaCd615B3705B9c880E4E7293f1030B34e57B4c1c", - "MetaStablePoolFactory": "0xEBFD5681977E38Af65A7487DC70B8221D089cCAD", - "WeightedPoolV2Factory": "0x8df6EfEc5547e31B0eb7d1291B511FF8a2bf987c", - "AaveLinearPoolV2Factory": "0xe2E901AB09f37884BA31622dF3Ca7FC19AA443Be", - "ERC4626LinearPoolFactory": "0x2794953110874981a0d301286c986992022A62a1", - "StablePhantomPoolFactory": "0xdAE7e32ADc5d490a43cCba1f0c736033F2b4eFca", - "WeightedPool2TokensFactory": "0xCF0a32Bbef8F064969F21f7e02328FB577382018", - "ComposableStablePoolFactory": "0xaEb406b0E430BF5Ea2Dc0B9Fe62E4E53f74B3a33", - "LiquidityBootstrappingPoolFactory": "0x142B9666a0a3A30477b052962ddA81547E7029ab", - "TempLiquidityBootstrappingPoolFactory": "0x1802953277FD955f9a254B80Aa0582f193cF1d77", - "NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x1802953277FD955f9a254B80Aa0582f193cF1d77" - } - }, - { - "chain_id": 137, - "name": "balancer", - "type": "balancer", - "enabled": true, - "contracts": { - "Vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", - "Gyro2PoolFactory": "0x5d8545a7330245150bE0Ce88F8afB0EDc41dFc34", - "Gyro3PoolFactory": "0x90f08B3705208E41DbEEB37A42Fb628dD483AdDa", - "GyroEPoolFactory": "0xD4204551BC5397455f8897745d50Ac4F6beE0EF6", - "StablePoolFactory": "0xcA96C4f198d343E251b1a01F3EBA061ef3DA73C1", - "StablePoolV2Factory": "0xcA96C4f198d343E251b1a01F3EBA061ef3DA73C1", - "WeightedPoolFactory": "0x8E9aa87E45e92bad84D5F8DD1bff34Fb92637dE9", - "AaveLinearPoolFactory": "0xf302f9F50958c5593770FDf4d4812309fF77414f", - "InvestmentPoolFactory": "0x0f7bb7ce7b6ed9366F9b6B910AdeFE72dC538193", - "MetaStablePoolFactory": "0xdAE7e32ADc5d490a43cCba1f0c736033F2b4eFca", - "WeightedPoolV2Factory": "0x0e39C3D9b2ec765eFd9c5c70BB290B1fCD8536E3", - "AaveLinearPoolV2Factory": "0x8df6EfEc5547e31B0eb7d1291B511FF8a2bf987c", - "ERC4626LinearPoolFactory": "0xC6bD2497332d24094eC16a7261eec5C412B5a2C1", - "StablePhantomPoolFactory": "0xC128a9954e6c874eA3d62ce62B468bA073093F25", - "WeightedPool2TokensFactory": "0xA5bf2ddF098bb0Ef6d120C98217dD6B141c74EE0", - "ComposableStablePoolFactory": "0x136FD06Fa01eCF624C7F2B3CB15742c1339dC2c4", - "ERC4626LinearPoolFactoryBeta": "0xC6bD2497332d24094eC16a7261eec5C412B5a2C1", - "LiquidityBootstrappingPoolFactory": "0x751A0bC0e3f75b38e01Cf25bFCE7fF36DE1C87DE", - "TempLiquidityBootstrappingPoolFactory": "0x41B953164995c11C81DA73D212ED8Af25741b7Ac", - "NoProtocolFeeLiquidityBootstrappingPoolFactory": "0x41B953164995c11C81DA73D212ED8Af25741b7Ac" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/bancor_v2/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/bancor_v2/config.json deleted file mode 100644 index bfe3374..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/bancor_v2/config.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "chain_id": 1, - "name": "bancor_v2", - "type": "bancor_v2", - "enabled": true, - "contracts": { - "ContractRegistry": "0x52Ae12ABe5D8BD778BD5397F99cA900624CfADD4" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/curve/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/curve/config.json deleted file mode 100644 index d0b66ea..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/curve/config.json +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "chain_id": 1, - "name": "curve", - "type": "curve", - "enabled": true, - "contracts": { - "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" - } - }, - { - "chain_id": 42161, - "name": "curve", - "type": "curve", - "enabled": true, - "contracts": { - "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" - } - }, - { - "chain_id": 43114, - "name": "curve", - "type": "curve", - "enabled": true, - "contracts": { - "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" - } - }, - { - "chain_id": 250, - "name": "curve", - "type": "curve", - "enabled": true, - "contracts": { - "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" - } - }, - { - "chain_id": 10, - "name": "curve", - "type": "curve", - "enabled": true, - "contracts": { - "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" - } - }, - { - "chain_id": 137, - "name": "curve", - "type": "curve", - "enabled": true, - "contracts": { - "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" - } - }, - { - "chain_id": 100, - "name": "curve", - "type": "curve", - "enabled": true, - "contracts": { - "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" - } - }, - { - "chain_id": 42220, - "name": "curve", - "type": "curve", - "enabled": true, - "contracts": { - "AddressProvider": "0x0000000022D53366457F9d5E68Ec105046FC4383" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dmm/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dmm/config.json deleted file mode 100644 index 3b8d292..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dmm/config.json +++ /dev/null @@ -1,72 +0,0 @@ -[ - { - "chain_id": 1, - "name": "kyber", - "type": "dmm", - "enabled": true, - "contracts": { - "IDMMFactory": "0x833e4083B7ae46CeA85695c4f7ed25CDAd8886dE", - "IDMMRouter02": "0x1c87257F5e8609940Bc751a07BB085Bb7f8cDBE6" - } - }, - { - "chain_id": 56, - "name": "kyber", - "type": "dmm", - "enabled": true, - "contracts": { - "IDMMFactory": "0x878dFE971d44e9122048308301F540910Bbd934c", - "IDMMRouter02": "0x78df70615ffc8066cc0887917f2Cd72092C86409" - } - }, - { - "chain_id": 137, - "name": "kyber", - "type": "dmm", - "enabled": true, - "contracts": { - "IDMMFactory": "0x5f1fe642060b5b9658c15721ea22e982643c095c", - "IDMMRouter02": "0x546C79662E028B661dFB4767664d0273184E4dD1" - } - }, - { - "chain_id": 250, - "name": "kyber", - "type": "dmm", - "enabled": true, - "contracts": { - "IDMMFactory": "0x78df70615ffc8066cc0887917f2Cd72092C86409", - "IDMMRouter02": "0x5d5A5a0a465129848c2549669e12cDC2f8DE039A" - } - }, - { - "chain_id": 43114, - "name": "kyber", - "type": "dmm", - "enabled": true, - "contracts": { - "IDMMFactory": "0x10908C875D865C66f271F5d3949848971c9595C9", - "IDMMRouter02": "0x8Efa5A9AD6D594Cf76830267077B78cE0Bc5A5F8" - } - }, - { - "chain_id": 42161, - "name": "kyber", - "type": "dmm", - "enabled": true, - "contracts": { - "IDMMFactory": "0x51E8D106C646cA58Caf32A47812e95887C071a62", - "IDMMRouter02": "0x51E8D106C646cA58Caf32A47812e95887C071a62" - } - }, - { - "chain_id": 10, - "name": "kyber", - "type": "dmm", - "enabled": true, - "contracts": { - "IDMMFactory": "0x833e4083B7ae46CeA85695c4f7ed25CDAd8886dE", - "IDMMRouter02": "0x1c87257F5e8609940Bc751a07BB085Bb7f8cDBE6" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo/config.json deleted file mode 100644 index 9a743c5..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo/config.json +++ /dev/null @@ -1,68 +0,0 @@ -[ - { - "chain_id": 56, - "name": "dodo", - "type": "dodo", - "enabled": true, - "contracts": { - "DODO": "0xF6A8E47daEEdDcCe297e7541523e27DF2f167BF3", - "DODORouteProxy": "0x6B3D817814eABc984d51896b1015C0b89E9737Ca", - "GnosisSafeProxy": "0xcaa42F09AF66A8BAE3A7445a7f63DAD97c11638b" - } - }, - { - "chain_id": 1, - "name": "dodo", - "type": "dodo", - "enabled": true, - "contracts": { - "DODO": "0xC9f93163c99695c6526b799EbcA2207Fdf7D61aD", - "DODORouteProxy": "0xa2398842F37465f89540430bDC00219fA9E4D28a", - "GnosisSafeProxy": "0x95C4F5b83aA70810D4f142d58e5F7242Bd891CB0" - } - }, - { - "chain_id": 137, - "name": "dodo", - "type": "dodo", - "enabled": true, - "contracts": { - "DODO": "0x813FddecCD0401c4Fa73B092b074802440544E52", - "DODORouteProxy": "0x2fA4334cfD7c56a0E7Ca02BD81455205FcBDc5E9", - "GnosisSafeProxy": "0x3CD6D7F5fF977bf8069548eA1F9441b061162b42" - } - }, - { - "chain_id": 42161, - "name": "dodo", - "type": "dodo", - "enabled": true, - "contracts": { - "DODO": "0xe4B2Dfc82977dd2DCE7E8d37895a6A8F50CbB4fB", - "DODORouteProxy": "0x3B6067D4CAa8A14c63fdBE6318F27A0bBc9F9237", - "GnosisSafeProxy": "0x01d3E7271c278Aa3AA56EeBa6a109b2C200679fA" - } - }, - { - "chain_id": 43114, - "name": "dodo", - "type": "dodo", - "enabled": true, - "contracts": { - "DODO": "0xC9f93163c99695c6526b799EbcA2207Fdf7D61aD", - "DODORouteProxy": "0xa2398842F37465f89540430bDC00219fA9E4D28a", - "GnosisSafeProxy": "0x9FCFD9ff955D36856F8EE480471B05488C0eB5cA" - } - }, - { - "chain_id": 10, - "name": "dodo", - "type": "dodo", - "enabled": true, - "contracts": { - "DODO": "0xC9f93163c99695c6526b799EbcA2207Fdf7D61aD", - "DODORouteProxy": "0xa2398842F37465f89540430bDC00219fA9E4D28a", - "GnosisSafeProxy": "0x677dD94031b3263Bd0E27ef5093C69A1a3037a00" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo_v2/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo_v2/config.json deleted file mode 100644 index aeef3ef..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/dodo_v2/config.json +++ /dev/null @@ -1,62 +0,0 @@ -[ - { - "chain_id": 1, - "name": "dodo_v2", - "type": "dodo_v2", - "enabled": true, - "contracts": { - "DVM": "0xfb8c399f1187bdb5adf2007b32d5d76651b77ff4", - "GnosisSafeProxy": "0x95C4F5b83aA70810D4f142d58e5F7242Bd891CB0" - } - }, - { - "chain_id": 56, - "name": "dodo_v2", - "type": "dodo_v2", - "enabled": true, - "contracts": { - "DVM": "0xfb8c399f1187bdb5adf2007b32d5d76651b77ff4", - "GnosisSafeProxy": "0xcaa42F09AF66A8BAE3A7445a7f63DAD97c11638b" - } - }, - { - "chain_id": 137, - "name": "dodo_v2", - "type": "dodo_v2", - "enabled": true, - "contracts": { - "DVM": "0xfb8c399f1187bdb5adf2007b32d5d76651b77ff4", - "GnosisSafeProxy": "0x3CD6D7F5fF977bf8069548eA1F9441b061162b42" - } - }, - { - "chain_id": 42161, - "name": "dodo_v2", - "type": "dodo_v2", - "enabled": true, - "contracts": { - "DVM": "0xfb8c399f1187bdb5adf2007b32d5d76651b77ff4", - "GnosisSafeProxy": "0x01d3E7271c278Aa3AA56EeBa6a109b2C200679fA" - } - }, - { - "chain_id": 43114, - "name": "dodo_v2", - "type": "dodo_v2", - "enabled": true, - "contracts": { - "DVM": "0xfb8c399f1187bdb5adf2007b32d5d76651b77ff4", - "GnosisSafeProxy": "0x9FCFD9ff955D36856F8EE480471B05488C0eB5cA" - } - }, - { - "chain_id": 10, - "name": "dodo_v2", - "type": "dodo_v2", - "enabled": true, - "contracts": { - "DVM": "0xfb8c399f1187bdb5adf2007b32d5d76651b77ff4", - "GnosisSafeProxy": "0x677dD94031b3263Bd0E27ef5093C69A1a3037a00" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/ellipsis/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/ellipsis/config.json deleted file mode 100644 index c2d8426..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/ellipsis/config.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "chain_id": 56, - "name": "ellipsis", - "type": "ellipsis", - "enabled": true, - "contracts": { - "AddressProvider": "0x31D236483A15F9B9dD60b36D4013D75e9dbF852b" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/kyberswap_elastic/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/kyberswap_elastic/config.json deleted file mode 100644 index df99478..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/kyberswap_elastic/config.json +++ /dev/null @@ -1,93 +0,0 @@ -[ - { - "chain_id": 1, - "name": "kyberswap_elastic", - "type": "kyberswap_elastic", - "enabled": true, - "contracts": { - "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", - "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", - "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", - "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", - "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" - } - }, - { - "chain_id": 56, - "name": "kyberswap_elastic", - "type": "kyberswap_elastic", - "enabled": true, - "contracts": { - "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", - "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", - "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", - "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", - "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" - } - }, - { - "chain_id": 137, - "name": "kyberswap_elastic", - "type": "kyberswap_elastic", - "enabled": true, - "contracts": { - "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", - "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", - "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", - "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", - "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" - } - }, - { - "chain_id": 43114, - "name": "kyberswap_elastic", - "type": "kyberswap_elastic", - "enabled": true, - "contracts": { - "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", - "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", - "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", - "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", - "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" - } - }, - { - "chain_id": 250, - "name": "kyberswap_elastic", - "type": "kyberswap_elastic", - "enabled": true, - "contracts": { - "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", - "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", - "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", - "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", - "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" - } - }, - { - "chain_id": 42161, - "name": "kyberswap_elastic", - "type": "kyberswap_elastic", - "enabled": true, - "contracts": { - "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", - "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", - "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", - "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", - "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" - } - }, - { - "chain_id": 10, - "name": "kyberswap_elastic", - "type": "kyberswap_elastic", - "enabled": true, - "contracts": { - "Quoter": "0x0D125c15D54cA1F8a813C74A81aEe34ebB508C1f", - "Router": "0xC1e7dFE73E1598E3910EF4C7845B68A9Ab6F4c83", - "Factory": "0x5F1dddbf348aC2fbe22a163e30F99F9ECE3DD50a", - "PositionManager": "0x2B1c7b41f6A8F2b2bc45C3233a5d5FB3cD6dC9A8", - "TicksFeesReader": "0xD7ab1699280980E756C446769B4c0F04550f88c9" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/meshswap/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/meshswap/config.json deleted file mode 100644 index 7733655..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/meshswap/config.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "chain_id": 137, - "name": "meshswap", - "type": "meshswap", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x9f3044f7f9fc8bc9ed615d54845b4577b833282d" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/platypus/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/platypus/config.json deleted file mode 100644 index a8931f3..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/platypus/config.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "chain_id": 43114, - "name": "platypus", - "type": "platypus", - "enabled": true, - "contracts": { - "Asset": "0x416a7989a964C9ED60257B064Efc3a30FE6bF2eE" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/saddle/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/saddle/config.json deleted file mode 100644 index d7fa643..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/saddle/config.json +++ /dev/null @@ -1,29 +0,0 @@ -[ - { - "chain_id": 1, - "name": "saddle", - "type": "saddle", - "enabled": true, - "contracts": { - "PoolRegistry": "0xfb4de84c4375d7c8577327153de88f58f69eec81" - } - }, - { - "chain_id": 10, - "name": "saddle", - "type": "saddle", - "enabled": true, - "contracts": { - "PoolRegistry": "0x4e1484607760118ebe2ab07c0c71f1b4d9671e01" - } - }, - { - "chain_id": 42161, - "name": "saddle", - "type": "saddle", - "enabled": true, - "contracts": { - "PoolRegistry": "0x38262c17a06a6b3588d3e5b70dfa768c06bf4ef1" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/solidly/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/solidly/config.json deleted file mode 100644 index 62cee0c..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/solidly/config.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "chain_id": 10, - "name": "velodrome", - "type": "solidly", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xa132DAB612dB5cB9fC9Ac426A0Cc215A3423F9c9", - "UniswapV2Factory": "0x25CbdDb98b35ab1FF77413456B31EC81A6B6B746" - } - }, - { - "chain_id": 137, - "name": "dystopia", - "type": "solidly", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x1d21Db6cde1b18c7E47B0F7F42f4b3F68b9beeC9" - } - }, - { - "chain_id": 56, - "name": "impossible_finance_v3", - "type": "solidly", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x4233ad9b8b7c1ccf0818907908a7f0796a3df85f" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/sushiswap_bento/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/sushiswap_bento/config.json deleted file mode 100644 index cdddda1..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/sushiswap_bento/config.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "chain_id": 10, - "name": "sushiswap_bento", - "type": "sushiswap_bento", - "enabled": true, - "contracts": { - "BentoBox": "0xc35dadb65012ec5796536bd9864ed8773abc74c4" - } - }, - { - "chain_id": 137, - "name": "sushiswap_bento", - "type": "sushiswap_bento", - "enabled": true, - "contracts": { - "BentoBox": "0x0319000133d3AdA02600f0875d2cf03D442C3367" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v2/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v2/config.json deleted file mode 100644 index ad76c18..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v2/config.json +++ /dev/null @@ -1,1041 +0,0 @@ -[ - { - "chain_id": 1, - "name": "uniswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", - "UniswapV2Factory": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f" - } - }, - { - "chain_id": 1, - "name": "sushiswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F", - "UniswapV2Factory": "0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac" - } - }, - { - "chain_id": 56, - "name": "pancakeswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x10ED43C718714eb63d5aA57B78B54704E256024E", - "UniswapV2Factory": "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73" - } - }, - { - "chain_id": 137, - "name": "quickswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff", - "UniswapV2Factory": "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32" - } - }, - { - "chain_id": 43114, - "name": "pangolin", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xE54Ca86531e17Ef3616d22Ca28b0D458b6C89106", - "UniswapV2Factory": "0xefa94DE7a4656D787667C749f7E1223D71E9FD88" - } - }, - { - "chain_id": 43114, - "name": "traderjoe", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x60aE616a2155Ee3d9A68541Ba4544862310933d4", - "UniswapV2Factory": "0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10" - } - }, - { - "chain_id": 42220, - "name": "ubeswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xE3D8bd6Aed4F159bc8000a9cD47CffDb95F96121", - "UniswapV2Factory": "0x62d5b84bE28a183aBB507E125B384122D2C25fAE" - } - }, - { - "chain_id": 250, - "name": "spookyswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xF491e7B69E4244ad4002BC14e878a34207E38c29", - "UniswapV2Factory": "0x152eE697f2E276fA89E96742e9bB9aB1F2E61bE3" - } - }, - { - "chain_id": 250, - "name": "spiritswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x16327E3FbDaCA3bcF7E38F5Af2599D2DDc33aE52", - "UniswapV2Factory": "0xEF45d134b73241eDa7703fa787148D9C9F4950b0" - } - }, - { - "chain_id": 42161, - "name": "sushiswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", - "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" - } - }, - { - "chain_id": 250, - "name": "sushiswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", - "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" - } - }, - { - "chain_id": 43114, - "name": "lydia", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xa52abe4676dbfd04df42ef7755f01a3c41f28d27", - "UniswapV2Factory": "0xe0C1bb6DF4851feEEdc3E14Bd509FEAF428f7655" - } - }, - { - "chain_id": 56, - "name": "impossible_finance", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x8f2A0d8865D995364DC6843D51Cf6989001f989e", - "UniswapV2Factory": "0x918d7e714243F7d9d463C37e106235dCde294ffC" - } - }, - { - "chain_id": 1, - "name": "cryptocom", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xceb90e4c17d626be0facd78b79c9c87d7ca181b3", - "UniswapV2Factory": "0x9DEB29c9a4c7A88a3C0257393b7f3335338D9A9D" - } - }, - { - "chain_id": 137, - "name": "firebid_finance", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xF6fa9Ea1f64f1BBfA8d71f7f43fAF6D45520bfac", - "UniswapV2Factory": "0x5De74546d3B86C8Df7FEEc30253865e1149818C8" - } - }, - { - "chain_id": 43114, - "name": "elk_finance", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x9E4AAbd2B3E60Ee1322E94307d0776F2c8e6CFbb", - "UniswapV2Factory": "0x091d35d7F63487909C863001ddCA481c6De47091" - } - }, - { - "chain_id": 43114, - "name": "canary", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x06f8ED60393AC6A4B16900273C9313222dfe9940", - "UniswapV2Factory": "0xCFBA329d49C24b70F3a8b9CC0853493d4645436b" - } - }, - { - "chain_id": 43114, - "name": "empiredex", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xdADaae6cDFE4FA3c35d54811087b3bC3Cd60F348", - "UniswapV2Factory": "0x06530550A48F990360DFD642d2132354A144F31d" - } - }, - { - "chain_id": 43114, - "name": "yetiswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x262DcFB36766C88E6A7a2953c16F8defc40c378A", - "UniswapV2Factory": "0x58C8CD291Fa36130119E6dEb9E520fbb6AcA1c3a" - } - }, - { - "chain_id": 43114, - "name": "baguette", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xF7b1e993d1b4F7348D64Aa55A294E4B74512F7f2", - "UniswapV2Factory": "0x3587B8c0136c2C3605a9E5B03ab54Da3e4044b50" - } - }, - { - "chain_id": 250, - "name": "zoodex", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x40b12a3E261416fF0035586ff96e23c2894560f2", - "UniswapV2Factory": "0x6178C3B21F7cA1adD84c16AD35452c85a85F5df4" - } - }, - { - "chain_id": 250, - "name": "jetswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x845E76A8691423fbc4ECb8Dd77556Cb61c09eE25", - "UniswapV2Factory": "0xf6488205957f0b4497053d6422F49e27944eE3Dd" - } - }, - { - "chain_id": 56, - "name": "jetswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xBe65b8f75B9F20f4C522e0067a3887FADa714800", - "UniswapV2Factory": "0x0eb58E5c8aA63314ff5547289185cC4583DfCBD5" - } - }, - { - "chain_id": 137, - "name": "jetswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x5C6EC38fb0e2609672BDf628B1fD605A523E5923", - "UniswapV2Factory": "0x668ad0ed2622C62E24f0d5ab6B6Ac1b9D2cD4AC7" - } - }, - { - "chain_id": 250, - "name": "soulswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x6b3d631B87FE27aF29efeC61d2ab8CE4d621cCBF", - "UniswapV2Factory": "0x1120e150dA9def6Fe930f4fEDeD18ef57c0CA7eF" - } - }, - { - "chain_id": 250, - "name": "paintswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xfD000ddCEa75a2E23059881c3589F6425bFf1AbB", - "UniswapV2Factory": "0x733A9D1585f2d14c77b49d39BC7d7dd14CdA4aa5" - } - }, - { - "chain_id": 250, - "name": "hyperswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x53c153a0df7E050BbEFbb70eE9632061f12795fB", - "UniswapV2Factory": "0x9C454510848906FDDc846607E4baa27Ca999FBB6" - } - }, - { - "chain_id": 250, - "name": "morpheusswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x8aC868293D97761A1fED6d4A01E9FF17C5594Aa3", - "UniswapV2Factory": "0x9C454510848906FDDc846607E4baa27Ca999FBB6" - } - }, - { - "chain_id": 250, - "name": "wakaswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xAad831F5CF9E39c666cCba4cF12A70af19782AB9", - "UniswapV2Factory": "0xae9b81fe0620ceb9a11e4d42711bc9baf672f756" - } - }, - { - "chain_id": 250, - "name": "elk_finance", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x4D2cf285a519261F30b4d9c2c344Baf260d65Fa2", - "UniswapV2Factory": "0x7Ba73c99e6f01a37f3e33854c8F544BbbadD3420" - } - }, - { - "chain_id": 250, - "name": "yoshi_exchange", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x3dc57B391262e3aAe37a08D91241f9bA9d58b570", - "UniswapV2Factory": "0xc5bc174cb6382fbab17771d05e6a918441deceea" - } - }, - { - "chain_id": 137, - "name": "dfyn", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xA102072A4C07F06EC3B4900FDC4C7B80b6c57429", - "UniswapV2Factory": "0xE7Fb3e833eFE5F9c441105EB65Ef8b261266423B" - } - }, - { - "chain_id": 250, - "name": "dfyn", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x2724B9497b2cF3325C6BE3ea430b3cec34B5Ef2d", - "UniswapV2Factory": "0xd9820a17053d6314B20642E465a84Bf01a3D64f5" - } - }, - { - "chain_id": 42161, - "name": "dfyn", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xaedE1EFe768bD8A1663A7608c63290C60B85e71c", - "UniswapV2Factory": "0xA102072A4C07F06EC3B4900FDC4C7B80b6c57429" - } - }, - { - "chain_id": 137, - "name": "waultswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x3a1d87f206d12415f5b0a33e786967680aab4f6d", - "UniswapV2Factory": "0xa98ea6356a316b44bf710d5f9b6b4ea0081409ef" - } - }, - { - "chain_id": 56, - "name": "waultswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xD48745E39BbED146eEC15b79cBF964884F9877c2", - "UniswapV2Factory": "0xB42E3FE71b7E0673335b3331B3e1053BD9822570" - } - }, - { - "chain_id": 137, - "name": "polydex", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xC60aE14F2568b102F8Ca6266e8799112846DD088", - "UniswapV2Factory": "0xEAA98F7b5f7BfbcD1aF14D0efAa9d9e68D82f640" - } - }, - { - "chain_id": 137, - "name": "elk_finance", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xf38a7A7Ac2D745E2204c13F824c00139DF831FFf", - "UniswapV2Factory": "0xE3BD06c7ac7E1CeB17BdD2E5BA83E40D1515AF2a" - } - }, - { - "chain_id": 137, - "name": "cafeswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x9055682E58C74fc8DdBFC55Ad2428aB1F96098Fc", - "UniswapV2Factory": "0x5eDe3f4e7203Bf1F12d57aF1810448E5dB20f46C" - } - }, - { - "chain_id": 56, - "name": "cafeswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x933DAea3a5995Fb94b14A7696a5F3ffD7B1E385A", - "UniswapV2Factory": "0x3e708FdbE3ADA63fc94F8F61811196f1302137AD" - } - }, - { - "chain_id": 56, - "name": "alitaswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x730aCC3bBf2443f2EaEaCFc7ac7b4d8DC9E32dB8", - "UniswapV2Factory": "0xC7a506ab3ac668EAb6bF9eCf971433D6CFeF05D9" - } - }, - { - "chain_id": 137, - "name": "apeswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xC0788A3aD43d79aa53B09c2EaCc313A787d1d607", - "UniswapV2Factory": "0xCf083Be4164828f00cAE704EC15a36D711491284" - } - }, - { - "chain_id": 56, - "name": "apeswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xcF0feBd3f17CEf5b47b0cD257aCf6025c5BFf3b7", - "UniswapV2Factory": "0x0841BD0B734E4F5853f0dD8d7Ea041c241fb0Da6" - } - }, - { - "chain_id": 56, - "name": "cheeseswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x3047799262d8D2EF41eD2a222205968bC9B0d895", - "UniswapV2Factory": "0xdd538e4fd1b69b7863e1f741213276a6cf1efb3b" - } - }, - { - "chain_id": 56, - "name": "julswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xbd67d157502A23309Db761c41965600c2Ec788b2", - "UniswapV2Factory": "0x553990F2CBA90272390f62C5BDb1681fFc899675" - } - }, - { - "chain_id": 56, - "name": "hyperswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x3bc677674df90A9e5D741f28f6CA303357D0E4Ec", - "UniswapV2Factory": "0xaC653cE27E04C6ac565FD87F18128aD33ca03Ba2" - } - }, - { - "chain_id": 56, - "name": "babyswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x325E343f1dE602396E256B67eFd1F61C3A6B38Bd", - "UniswapV2Factory": "0x86407bEa2078ea5f5EB5A52B2caA963bC1F889Da" - } - }, - { - "chain_id": 56, - "name": "safeswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xe804f3c3e6dda8159055428848fe6f2a91c2b9af", - "UniswapV2Factory": "0x86a859773cf6df9c8117f20b0b950ada84e7644d" - } - }, - { - "chain_id": 56, - "name": "elk_finance", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xA63B831264183D755756ca9AE5190fF5183d65D6", - "UniswapV2Factory": "0x31aFfd875e9f68cd6Cd12Cee8943566c9A4bBA13" - } - }, - { - "chain_id": 1, - "name": "swapr", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xb9960d9bca016e9748be75dd52f02188b9d0829f", - "UniswapV2Factory": "0xd34971BaB6E5E356fd250715F5dE0492BB070452" - } - }, - { - "chain_id": 56, - "name": "pancakeswap_v1", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F", - "UniswapV2Factory": "0xBCfCcbde45cE874adCB698cC183deBcF17952812" - } - }, - { - "chain_id": 137, - "name": "sushiswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", - "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" - } - }, - { - "chain_id": 56, - "name": "sushiswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", - "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" - } - }, - { - "chain_id": 42220, - "name": "sushiswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", - "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" - } - }, - { - "chain_id": 43114, - "name": "sushiswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", - "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" - } - }, - { - "chain_id": 42161, - "name": "swapr", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x530476d5583724A89c8841eB6Da76E7Af4C0F17E", - "UniswapV2Factory": "0x359F20Ad0F42D75a5077e65F30274cABe6f4F01a" - } - }, - { - "chain_id": 1, - "name": "standard", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x6c78d71ce7300343e3633e0c45d6c7a79fee4650", - "UniswapV2Factory": "0x53AC1d1FA4F9F6c604B8B198cE29A50d28cbA893" - } - }, - { - "chain_id": 137, - "name": "polycat", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x94930a328162957FF1dd48900aF67B5439336cBD", - "UniswapV2Factory": "0x477Ce834Ae6b7aB003cCe4BC4d8697763FF456FA" - } - }, - { - "chain_id": 56, - "name": "biswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x3a6d8cA21D1CF76F653A67577FA0D27453350dD8", - "UniswapV2Factory": "0x858E3312ed3A876947EA49d572A7C42DE08af7EE" - } - }, - { - "chain_id": 56, - "name": "yieldfields", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xa4385646517d9b34ada4ac393a64ea120d08408c", - "UniswapV2Factory": "0x0A376eE063184B444ff66a9a22AD91525285FE1C" - } - }, - { - "chain_id": 56, - "name": "unitedfarmers", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xad02320a81606fbB760C32e065495A8ddbf322A8", - "UniswapV2Factory": "0x2fcd5B3B7A5088509bAbC9910eD2F1B6Fe5775B6" - } - }, - { - "chain_id": 137, - "name": "gravity_finance", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x57de98135e8287f163c59ca4ff45f1341b680248", - "UniswapV2Factory": "0x3ed75AfF4094d2Aaa38FaFCa64EF1C152ec1Cf20" - } - }, - { - "chain_id": 1, - "name": "shibaswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x03f7724180aa6b939894b5ca4314783b0b36b329", - "UniswapV2Factory": "0x115934131916c8b277dd010ee02de363c09d037c" - } - }, - { - "chain_id": 10, - "name": "zipswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xE6Df0BB08e5A97b40B21950a0A51b94c4DbA0Ff6", - "UniswapV2Factory": "0x8BCeDD62DD46F1A76F8A1633d4f5B76e0CDa521E" - } - }, - { - "chain_id": 56, - "name": "bakeryswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xCDe540d7eAFE93aC5fE6233Bee57E1270D3E330F", - "UniswapV2Factory": "0x01bF7C66c6BD861915CdaaE475042d3c4BaE16A7" - } - }, - { - "chain_id": 250, - "name": "solidly", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xa38cd27185a464914D3046f0AB9d43356B34829D", - "UniswapV2Factory": "0x3fAaB499b519fdC5819e3D7ed0C26111904cbc28" - } - }, - { - "chain_id": 250, - "name": "tomb_finance", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xE236f6890F1824fa0a7ffc39b1597A5A6077Cfe9", - "UniswapV2Factory": "0xE236f6890F1824fa0a7ffc39b1597A5A6077Cfe9" - } - }, - { - "chain_id": 56, - "name": "knightswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0xf0bc2E21a76513aa7CC2730C7A1D6deE0790751f" - } - }, - { - "chain_id": 56, - "name": "mdex", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x3CD1C46068dAEa5Ebb0d3f55F6915B10648062B8" - } - }, - { - "chain_id": 137, - "name": "comethswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x800b052609c355cA8103E06F022aA30647eAd60a" - } - }, - { - "chain_id": 56, - "name": "safemoon", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x4d05D0045df5562D6D52937e93De6Ec1FECDAd21" - } - }, - { - "chain_id": 1, - "name": "fraxswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xC14d550632db8592D1243Edc8B95b0Ad06703867", - "UniswapV2Factory": "0x43eC799eAdd63848443E2347C49f5f52e8Fe0F6f" - } - }, - { - "chain_id": 42161, - "name": "fraxswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xCAAaB0A72f781B92bA63Af27477aA46aB8F653E7", - "UniswapV2Factory": "0x8374A74A728f06bEa6B7259C68AA7BBB732bfeaD" - } - }, - { - "chain_id": 43114, - "name": "fraxswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x5977b16AA9aBC4D1281058C73B789C65Bf9ab3d3", - "UniswapV2Factory": "0xf77ca9B635898980fb219b4F4605C50e4ba58afF" - } - }, - { - "chain_id": 56, - "name": "fraxswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x67F755137E0AE2a2aa0323c047715Bf6523116E5", - "UniswapV2Factory": "0xf89e6CA06121B6d4370f4B196Ae458e8b969A011" - } - }, - { - "chain_id": 250, - "name": "fraxswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x7D21C651Dd333306B35F2FeAC2a19FA1e1241545", - "UniswapV2Factory": "0xDc745E09fC459aDC295E2e7baACe881354dB7F64" - } - }, - { - "chain_id": 137, - "name": "fraxswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xE52D0337904D4D0519EF7487e707268E1DB6495F", - "UniswapV2Factory": "0x54F454D747e037Da288dB568D4121117EAb34e79" - } - }, - { - "chain_id": 1, - "name": "stepn", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x1e895bFe59E3A5103e8B7dA3897d1F2391476f3c" - } - }, - { - "chain_id": 56, - "name": "stepn", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x1e895bFe59E3A5103e8B7dA3897d1F2391476f3c" - } - }, - { - "chain_id": 56, - "name": "fstswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x9A272d734c5a0d7d84E0a892e891a553e8066dce" - } - }, - { - "chain_id": 56, - "name": "pandora", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0xFf9A4E72405Df3ca3D909523229677e6B2b8dC71" - } - }, - { - "chain_id": 56, - "name": "nomiswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0xd6715A8be3944ec72738F0BFDC739d48C3c29349" - } - }, - { - "chain_id": 56, - "name": "planet", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0xa053582601214FEb3778031a002135cbBB7DBa18" - } - }, - { - "chain_id": 56, - "name": "jfswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0xd654CbF99F2907F06c88399AE123606121247D5C" - } - }, - { - "chain_id": 56, - "name": "titano", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x80f112CD8Ac529d6993090A0c9a04E01d495BfBf" - } - }, - { - "chain_id": 56, - "name": "orbitalswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x1A04Afe9778f95829017741bF46C9524B91433fB" - } - }, - { - "chain_id": 250, - "name": "wigoswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0xC831A5cBfb4aC2Da5ed5B194385DFD9bF5bFcBa7" - } - }, - { - "chain_id": 43114, - "name": "swapsicle", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x9C60C867cE07a3c403E2598388673C10259EC768" - } - }, - { - "chain_id": 100, - "name": "sushiswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", - "UniswapV2Factory": "0xc35DADB65012eC5796536bD9864eD8773aBc74C4" - } - }, - { - "chain_id": 100, - "name": "swapr", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x5D48C95AdfFD4B40c1AAADc4e08fc44117E02179" - } - }, - { - "chain_id": 100, - "name": "honeyswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0xA818b4F111Ccac7AA31D0BCc0806d64F2E0737D7" - } - }, - { - "chain_id": 100, - "name": "baoswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x6093AeBAC87d62b1A5a4cEec91204e35020E38bE", - "UniswapV2Factory": "0x45DE240fbE2077dd3e711299538A09854FAE9c9b" - } - }, - { - "chain_id": 100, - "name": "levin_swap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x965769C9CeA8A7667246058504dcdcDb1E2975A5" - } - }, - { - "chain_id": 100, - "name": "elk_finance", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0xCB018587dA9590A18f49fFE2b85314c33aF3Ad3B" - } - }, - { - "chain_id": 100, - "name": "empiredex", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0xdADaae6cDFE4FA3c35d54811087b3bC3Cd60F348" - } - }, - { - "chain_id": 1, - "name": "pancakeswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Factory": "0x1097053Fd2ea711dad45caCcc45EfF7548fCB362" - } - }, - { - "chain_id": 56, - "name": "babydogeswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xC9a0F685F39d05D835c369036251ee3aEaaF3c47", - "UniswapV2Factory": "0x4693B62E5fc9c0a45F89D62e6300a03C85f43137" - } - }, - { - "chain_id": 137, - "name": "radioshack", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xaf877420786516fc6692372c209e0056169eebaf", - "UniswapV2Factory": "0xB581D0A3b7Ea5cDc029260e989f768Ae167Ef39B" - } - }, - { - "chain_id": 1, - "name": "radioshack", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x3e445e3280C5747a188DB8d0aB7762838A50E4ff", - "UniswapV2Factory": "0x91fAe1bc94A9793708fbc66aDcb59087C46dEe10" - } - }, - { - "chain_id": 56, - "name": "radioshack", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x5bc3ED94919af03279c8613cB807ab667cE5De99", - "UniswapV2Factory": "0x98957ab49b8bc9f7ddbCfD8BcC83728085ecb238" - } - }, - { - "chain_id": 43114, - "name": "radioshack", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x763D8D37669bB18064b410e17E3bB46BCF34F487", - "UniswapV2Factory": "0xA0FbfDa09B8815Dd42dDC70E4f9fe794257CD9B6" - } - }, - { - "chain_id": 250, - "name": "radioshack", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x4e2a57A8ffE65F794e9A32637Bc67b502fFc84C6", - "UniswapV2Factory": "0x5eF0153590D4a762F129dCf3c59186D91365e4e1" - } - }, - { - "chain_id": 10, - "name": "radioshack", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x68797130D8E63745761C524C33121fdD7290cB72", - "UniswapV2Factory": "0x5eF0153590D4a762F129dCf3c59186D91365e4e1" - } - }, - { - "chain_id": 56, - "name": "padswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x76437234D29f84D9A12820A137c6c6A719138C24", - "UniswapV2Factory": "0xB836017ACf10b8A7c6c6C9e99eFE0f5B0250FC45" - } - }, - { - "chain_id": 1, - "name": "apeswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0x5f509a3C3F16dF2Fba7bF84dEE1eFbce6BB85587", - "UniswapV2Factory": "0xBAe5dc9B19004883d0377419FeF3c2C8832d7d7B" - } - }, - { - "chain_id": 10, - "name": "fraxswap", - "type": "uniswap_v2", - "enabled": true, - "contracts": { - "UniswapV2Router": "0xB9A55F455e46e8D717eEA5E47D2c449416A0437F", - "UniswapV2Factory": "0x67a1412d2D6CbF211bb71F8e851b4393b491B10f" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v3/config.json b/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v3/config.json deleted file mode 100644 index a3a3ea1..0000000 --- a/dexguru_data_sources/dexguru_data_sources/api_data/dapps/evm/uniswap_v3/config.json +++ /dev/null @@ -1,100 +0,0 @@ -[ - { - "chain_id": 1, - "name": "uniswap_v3", - "type": "uniswap_v3", - "enabled": true, - "contracts": { - "Quoter": "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6", - "TickLens": "0xbfd8137f7d1516D3ea5cA83523914859ec47F573", - "Multicall2": "0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696", - "ProxyAdmin": "0xB753548F6E010e7e680BA186F9Ca1BdAB2E90cf2", - "SwapRouter": "0xE592427A0AEce92De3Edee1F18E0157C05861564", - "V3Migrator": "0xA5644E29708357803b5A882D272c41cC0dF92B34", - "NFTDescriptor": "0x42B24A95702b9986e82d421cC3568932790A48Ec", - "UniswapV3Factory": "0x1F98431c8aD98523631AE4a59f267346ea31F984", - "NonfungiblePositionManager": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", - "TransparentUpgradeableProxy": "0xEe6A57eC80ea46401049E92587E52f5Ec1c24785", - "NonfungibleTokenPositionDescriptor": "0x91ae842A5Ffd8d12023116943e72A606179294f3" - } - }, - { - "chain_id": 42161, - "name": "uniswap_v3", - "type": "uniswap_v3", - "enabled": true, - "contracts": { - "Quoter": "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6", - "TickLens": "0xbfd8137f7d1516D3ea5cA83523914859ec47F573", - "Multicall2": "0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696", - "ProxyAdmin": "0xB753548F6E010e7e680BA186F9Ca1BdAB2E90cf2", - "SwapRouter": "0xE592427A0AEce92De3Edee1F18E0157C05861564", - "V3Migrator": "0xA5644E29708357803b5A882D272c41cC0dF92B34", - "NFTDescriptor": "0x42B24A95702b9986e82d421cC3568932790A48Ec", - "UniswapV3Factory": "0x1F98431c8aD98523631AE4a59f267346ea31F984", - "NonfungiblePositionManager": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", - "TransparentUpgradeableProxy": "0xEe6A57eC80ea46401049E92587E52f5Ec1c24785", - "NonfungibleTokenPositionDescriptor": "0x91ae842A5Ffd8d12023116943e72A606179294f3" - } - }, - { - "chain_id": 137, - "name": "uniswap_v3", - "type": "uniswap_v3", - "enabled": true, - "contracts": { - "Quoter": "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6", - "TickLens": "0xbfd8137f7d1516D3ea5cA83523914859ec47F573", - "Multicall2": "0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696", - "ProxyAdmin": "0xB753548F6E010e7e680BA186F9Ca1BdAB2E90cf2", - "SwapRouter": "0xE592427A0AEce92De3Edee1F18E0157C05861564", - "V3Migrator": "0xA5644E29708357803b5A882D272c41cC0dF92B34", - "NFTDescriptor": "0x42B24A95702b9986e82d421cC3568932790A48Ec", - "UniswapV3Factory": "0x1F98431c8aD98523631AE4a59f267346ea31F984", - "NonfungiblePositionManager": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", - "TransparentUpgradeableProxy": "0xEe6A57eC80ea46401049E92587E52f5Ec1c24785", - "NonfungibleTokenPositionDescriptor": "0x91ae842A5Ffd8d12023116943e72A606179294f3" - } - }, - { - "chain_id": 10, - "name": "uniswap_v3", - "type": "uniswap_v3", - "enabled": true, - "contracts": { - "Quoter": "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6", - "TickLens": "0xbfd8137f7d1516D3ea5cA83523914859ec47F573", - "Multicall2": "0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696", - "ProxyAdmin": "0xB753548F6E010e7e680BA186F9Ca1BdAB2E90cf2", - "SwapRouter": "0xE592427A0AEce92De3Edee1F18E0157C05861564", - "V3Migrator": "0xA5644E29708357803b5A882D272c41cC0dF92B34", - "NFTDescriptor": "0x42B24A95702b9986e82d421cC3568932790A48Ec", - "UniswapV3Factory": "0x1F98431c8aD98523631AE4a59f267346ea31F984", - "NonfungiblePositionManager": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", - "TransparentUpgradeableProxy": "0xEe6A57eC80ea46401049E92587E52f5Ec1c24785", - "NonfungibleTokenPositionDescriptor": "0x91ae842A5Ffd8d12023116943e72A606179294f3" - } - }, - { - "chain_id": 56, - "name": "sheepdex", - "type": "uniswap_v3", - "enabled": true, - "contracts": { - "Quoter": "0x6fbe54c589d3aC30DCd8FdD4fcB84C1b43f1F552", - "TickLens": "0xbfd8137f7d1516D3ea5cA83523914859ec47F573", - "SwapRouter": "0xcD87782A717F40542e18C61Ebb7210d3132e17d8", - "NFTDescriptor": "0x42B24A95702b9986e82d421cC3568932790A48Ec", - "UniswapV3Factory": "0x571521f8c16f3c4eD5f2490f19187bA7A5A3CBDf" - } - }, - { - "chain_id": 42220, - "name": "uniswap_v3", - "type": "uniswap_v3", - "enabled": true, - "contracts": { - "UniswapV3Factory": "0xAfE208a311B21f13EF87E33A90049fC17A7acDEc" - } - } -] \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/dexguru_data_sources.py b/dexguru_data_sources/dexguru_data_sources/dexguru_data_sources.py index 0f59629..0e38b63 100644 --- a/dexguru_data_sources/dexguru_data_sources/dexguru_data_sources.py +++ b/dexguru_data_sources/dexguru_data_sources/dexguru_data_sources.py @@ -41,8 +41,9 @@ def __init__(self): def scan_paths(self): path_parent = os.path.dirname(os.getcwd()) - chains_path = f'{path_parent}/dexguru_data_sources/api_data/chains/evm' - dapps_path = f'{path_parent}/dexguru_data_sources/api_data/dapps/evm' + main_parent = os.path.dirname(path_parent) + chains_path = f'{main_parent}/chains/evm' + dapps_path = f'{main_parent}/dapps/evm' chains_scan = os.scandir(chains_path) dapps_scan = os.scandir(dapps_path) chains_result = [] From 558287f9ce255f47f784bf35dfcfae481f5bf7e6 Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Mon, 13 Feb 2023 16:17:45 -0800 Subject: [PATCH 4/6] fix linter --- .github/workflows/linter.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 6bb3eaa..d6933f0 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -23,5 +23,6 @@ jobs: env: VALIDATE_ALL_CODEBASE: false VALIDATE_GITLEAKS: false + VALIDATE_PYTHON: false DEFAULT_BRANCH: master GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From eaa36042ea92457f1ad81b3d5cecde5a0a58ae46 Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Mon, 13 Feb 2023 18:57:46 -0800 Subject: [PATCH 5/6] Optimize package, add changes --- .../dexguru_data_sources.py | 68 ++++++------------- .../dexguru_data_sources/enums.py | 9 --- .../dexguru_data_sources/models/__init__.py | 0 .../models/amm_inventory_model.py | 17 ----- .../dexguru_data_sources/models/base_model.py | 8 --- .../models/chain_inventory_model.py | 21 ------ .../models/token_inventory.py | 21 ------ .../dexguru_data_sources/models/values.py | 10 --- .../tests/test_dexguru_data_sources.py | 2 +- 9 files changed, 23 insertions(+), 133 deletions(-) delete mode 100644 dexguru_data_sources/dexguru_data_sources/enums.py delete mode 100644 dexguru_data_sources/dexguru_data_sources/models/__init__.py delete mode 100644 dexguru_data_sources/dexguru_data_sources/models/amm_inventory_model.py delete mode 100644 dexguru_data_sources/dexguru_data_sources/models/base_model.py delete mode 100644 dexguru_data_sources/dexguru_data_sources/models/chain_inventory_model.py delete mode 100644 dexguru_data_sources/dexguru_data_sources/models/token_inventory.py delete mode 100644 dexguru_data_sources/dexguru_data_sources/models/values.py diff --git a/dexguru_data_sources/dexguru_data_sources/dexguru_data_sources.py b/dexguru_data_sources/dexguru_data_sources/dexguru_data_sources.py index 0e38b63..e8317ac 100644 --- a/dexguru_data_sources/dexguru_data_sources/dexguru_data_sources.py +++ b/dexguru_data_sources/dexguru_data_sources/dexguru_data_sources.py @@ -1,43 +1,19 @@ """Main module.""" -import os import json -from abc import ABC -from typing import List, Optional - -from pydantic import BaseSettings - -from dexguru_data_sources.models.amm_inventory_model import BaseAmmModel -from dexguru_data_sources.models.chain_inventory_model import BaseChainModel - - -class UtilsConfig(BaseSettings): - CONFIG_API_URL: Optional[str] = None - CONFIG_API_TOKEN: Optional[str] = None - - -utils_config = UtilsConfig() - - -class APIClient(ABC): - - def get_chains(self) -> List[BaseChainModel]: - raise NotImplementedError - - def get_dapps(self, chain_id: int) -> List[BaseAmmModel]: - raise NotImplementedError +import os -def get_client(api_token: Optional[str] = None) -> APIClient: - return LocalAPIClient() +def get_client(): + return EVMDataSources() -class LocalAPIClient(APIClient): +class EVMDataSources: def __init__(self): - chains_result, dapps_result = self.scan_paths() - self.chains_data = chains_result - self.dapps_data = dapps_result - self.chains_dictionary = self.get_chains() - self.dapps_dictionary = self.get_dapps() + iterated_chains, iterated_dapps = self.scan_paths() + self.chains_jsons = iterated_chains + self.dapps_jsons = iterated_dapps + self.chains = self.get_chains() + self.dapps = self.get_dapps() def scan_paths(self): path_parent = os.path.dirname(os.getcwd()) @@ -46,40 +22,40 @@ def scan_paths(self): dapps_path = f'{main_parent}/dapps/evm' chains_scan = os.scandir(chains_path) dapps_scan = os.scandir(dapps_path) - chains_result = [] - dapps_result = [] + iterated_chains = [] + iterated_dapps = [] for chain in chains_scan: iterate_scan = os.scandir(chain.path) for jsons in iterate_scan: with open(jsons.path) as iterate_json: chains = json.load(iterate_json) - chains_result.append(chains) + iterated_chains.append(chains) for dapp in dapps_scan: iterate_scan = os.scandir(dapp.path) for jsons_dapp in iterate_scan: with open(jsons_dapp.path) as iterate_json_dapp: dapps = json.load(iterate_json_dapp) - dapps_result.append(dapps) - return chains_result, dapps_result + iterated_dapps.append(dapps) + return iterated_chains, iterated_dapps def get_chains(self): - chains = [] + chains_list = [] chains_dictionary = {} - for chain in self.chains_data: + for chain in self.chains_jsons: if chain: - chains.append(chain) - for chain_list in chains: + chains_list.append(chain) + for chain_list in chains_list: for dictionary in chain_list: chains_dictionary[dictionary['id']] = dictionary return chains_dictionary def get_dapps(self): - dapps = [] + dapps_list = [] dapps_dictionary = {} - for dapp in self.dapps_data: + for dapp in self.dapps_jsons: if dapp: - dapps.append(dapp) - for dapps_list in dapps: + dapps_list.append(dapp) + for dapps_list in dapps_list: for dictionary_dapp in dapps_list: string_int = '_' + str(dictionary_dapp['chain_id']) dapps_dictionary[dictionary_dapp['name'] + string_int] = dictionary_dapp diff --git a/dexguru_data_sources/dexguru_data_sources/enums.py b/dexguru_data_sources/dexguru_data_sources/enums.py deleted file mode 100644 index 75afc7c..0000000 --- a/dexguru_data_sources/dexguru_data_sources/enums.py +++ /dev/null @@ -1,9 +0,0 @@ -from dexguru_data_sources.dexguru_data_sources import get_client, utils_config - -api_client = get_client(url=utils_config.CONFIG_API_URL, api_token=utils_config.CONFIG_API_TOKEN) - -AmmChoices = api_client.get_amm_choices() -AmmIDChoices = api_client.get_amm_id_choices() -NetworkChoices = api_client.get_network_choices() -ChainChoices = api_client.get_chain_choices() -NativeTokenAddresses = api_client.get_native_token_addresses() diff --git a/dexguru_data_sources/dexguru_data_sources/models/__init__.py b/dexguru_data_sources/dexguru_data_sources/models/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/dexguru_data_sources/dexguru_data_sources/models/amm_inventory_model.py b/dexguru_data_sources/dexguru_data_sources/models/amm_inventory_model.py deleted file mode 100644 index c39fdd1..0000000 --- a/dexguru_data_sources/dexguru_data_sources/models/amm_inventory_model.py +++ /dev/null @@ -1,17 +0,0 @@ -from pydantic import constr, PositiveInt - -from .base_model import BaseModelDexGuru - -""" - New Amm models are devided into Backend and Frontend parts - BackendModel key: BackendAmmModel:id-1, mset - MetadataAmmModel key: MetadataAmmModel:id-2 -""" - - -class BaseAmmModel(BaseModelDexGuru): - chain_id: PositiveInt - name: constr(strict=True, min_length=1, max_length=50, strip_whitespace=True) = '' - type: constr(strict=True, min_length=1, max_length=50, strip_whitespace=True) = '' - enabled: bool = False - contracts: dict = {} diff --git a/dexguru_data_sources/dexguru_data_sources/models/base_model.py b/dexguru_data_sources/dexguru_data_sources/models/base_model.py deleted file mode 100644 index c87dc5b..0000000 --- a/dexguru_data_sources/dexguru_data_sources/models/base_model.py +++ /dev/null @@ -1,8 +0,0 @@ -from pydantic import BaseModel - - -class BaseModelDexGuru(BaseModel): - class Config: - # check types on set/update - validate_assignment = True - validate_all = True \ No newline at end of file diff --git a/dexguru_data_sources/dexguru_data_sources/models/chain_inventory_model.py b/dexguru_data_sources/dexguru_data_sources/models/chain_inventory_model.py deleted file mode 100644 index 5f8058a..0000000 --- a/dexguru_data_sources/dexguru_data_sources/models/chain_inventory_model.py +++ /dev/null @@ -1,21 +0,0 @@ -from typing import Optional, List - -from pydantic import constr, PositiveInt - -from .base_model import BaseModelDexGuru -from .token_inventory import TokenInventoryStatic -from .values import address - - -class ChainId(BaseModelDexGuru): - value: PositiveInt = 1 - - -class BaseChainModel(BaseModelDexGuru): - chain_id: PositiveInt = 1 - name: constr(strict=True, min_length=0, max_length=50, strip_whitespace=True) = '' - type: constr(strict=True, min_length=0, max_length=50, strip_whitespace=True) = '' - enabled: bool = True - native_token_address: address = '' - native_token: Optional[TokenInventoryStatic] = None - stablecoin_addresses: List[str] = [] diff --git a/dexguru_data_sources/dexguru_data_sources/models/token_inventory.py b/dexguru_data_sources/dexguru_data_sources/models/token_inventory.py deleted file mode 100644 index 34db8d5..0000000 --- a/dexguru_data_sources/dexguru_data_sources/models/token_inventory.py +++ /dev/null @@ -1,21 +0,0 @@ -from typing import Optional - -from pydantic import constr, conint - -from .base_model import BaseModelDexGuru -from .values import address - -SUPPORTED_TRANSACTION_TYPES = [] -SUPPORTED_AMM_LIST = [] -SUPPORTED_NETWORK_LIST = [] - - -class TokenInventoryStatic(BaseModelDexGuru): - """ Not modified fields of TokenInventory """ - id: constr(strip_whitespace=True) - address: address - name: constr(strict=True, min_length=1, max_length=50, strip_whitespace=True) - symbol: constr(strict=True, min_length=1, max_length=50, strip_whitespace=True) - logo_uri: Optional[str] = None - decimals: conint(ge=0) = 0 - chain_id: Optional[int] = None diff --git a/dexguru_data_sources/dexguru_data_sources/models/values.py b/dexguru_data_sources/dexguru_data_sources/models/values.py deleted file mode 100644 index a05ef5b..0000000 --- a/dexguru_data_sources/dexguru_data_sources/models/values.py +++ /dev/null @@ -1,10 +0,0 @@ -from pydantic import constr - -address = constr(strict=True, strip_whitespace=True) -hex_color = constr( - strict=True, min_length=4, max_length=7, strip_whitespace=True, to_lower=True, regex=r'^#[\da-f]+$' -) -rgba_color = constr( - strict=True, min_length=13, max_length=24, strip_whitespace=True, to_lower=True, - regex=r'^rgba\(\d{1,3},\s?\d{1,3},\s?\d{1,3},\s?\d(\.\d)?\)$' -) \ No newline at end of file diff --git a/dexguru_data_sources/tests/test_dexguru_data_sources.py b/dexguru_data_sources/tests/test_dexguru_data_sources.py index c1363ec..937ef67 100644 --- a/dexguru_data_sources/tests/test_dexguru_data_sources.py +++ b/dexguru_data_sources/tests/test_dexguru_data_sources.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -"""Tests for `dexguru_config_package` package.""" +"""Test for `dexguru_config_package` package.""" import pytest From a04d3ca2b9a24aac1231274b51289ec230732a0f Mon Sep 17 00:00:00 2001 From: Vitaly Vakhteev Date: Mon, 13 Feb 2023 19:11:27 -0800 Subject: [PATCH 6/6] fix linter --- .github/workflows/linter.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index d6933f0..861a489 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -24,5 +24,9 @@ jobs: VALIDATE_ALL_CODEBASE: false VALIDATE_GITLEAKS: false VALIDATE_PYTHON: false + VALIDATE_PYTHON_BLACK: false + VALIDATE_PYTHON_FLAKE8: false + VALIDATE_PYTHON_ISORT: false + VALIDATE_PYTHON_MYPY: false DEFAULT_BRANCH: master GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file