From a69145b4f2b461433fb914323cc18a28543b3104 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Sat, 7 Nov 2020 19:51:07 +0100 Subject: [PATCH 01/47] Updated DOI --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7d106ec..2fea392 100644 --- a/README.md +++ b/README.md @@ -234,7 +234,7 @@ For problems regarding installing or using the package please open an [issue](ht ## Cite -Kotsias, P. C., A Python API for Etherscan.io. *https://github.com/pcko1/etherscan-python (2020)*. doi:10.5281/zenodo.4147166 +Kotsias, P. C., A Python API for Etherscan.io. *https://github.com/pcko1/etherscan-python (2020)*. doi:10.5281/zenodo.4256826 or in ```bibtex```: @@ -246,7 +246,7 @@ or in ```bibtex```: publisher = {GitHub}, journal = {GitHub repository}, url = {https://github.com/pcko1/etherscan-python}, - doi = {10.5281/zenodo.4147166} + doi = {10.5281/zenodo.4256826} } ``` From defd81a1bfdd2e2c334c32c76e9f764cfce7f90d Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Sat, 7 Nov 2020 20:25:46 +0100 Subject: [PATCH 02/47] Updated description --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2fea392..02f6919 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,12 @@ [![DOI](https://zenodo.org/badge/298646404.svg)](https://zenodo.org/badge/latestdoi/298646404) -A minimal, yet complete, python API for [Etherscan.io](https://etherscan.io/). Available on [PyPI](https://pypi.org/project/etherscan-python/). +A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). All standard and pro endpoints are provided. -All FREE and PRO endpoints are provided. +Available on [PyPI](https://pypi.org/project/etherscan-python/) and powered by [Etherscan.io APIs](https://etherscan.io/apis). + +Feel free to leave a :star: or [cite](#cite) us :scroll: if you found this package useful. -Powered by [Etherscan.io APIs](https://etherscan.io/apis). ___ From 48329c62f923fab9134a77886b97da8d01423030 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Sat, 7 Nov 2020 20:29:17 +0100 Subject: [PATCH 03/47] Updated description --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 02f6919..9e72bba 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). All standard and pro endpoints are provided. -Available on [PyPI](https://pypi.org/project/etherscan-python/) and powered by [Etherscan.io APIs](https://etherscan.io/apis). +Available on [PyPI](https://pypi.org/project/etherscan-python/) and powered by [Etherscan.io APIs](https://etherscan.io/apis#misc). -Feel free to leave a :star: or [cite](#cite) us :scroll: if you found this package useful. +Feel free to leave a :star: or [cite](#cite) :scroll: the package if you found it useful. ___ From 53261ef8cecfc2a11481c43948f63345cebd502b Mon Sep 17 00:00:00 2001 From: pcko1 Date: Sat, 7 Nov 2020 20:52:57 +0100 Subject: [PATCH 04/47] Removed coverage from env --- env.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/env.yml b/env.yml index 91d443f..d450033 100644 --- a/env.yml +++ b/env.yml @@ -26,9 +26,6 @@ dependencies: - zlib=1.2.11=h516909a_1009 - pip: - chardet==3.0.4 - - coverage==5.3 - idna==2.10 - requests==2.24.0 - urllib3==1.25.10 -prefix: /projects/mai/kjmv588/miniconda3/envs/etherscan-python - From b2ba5a882e4285638ee90bff6a6e45a943cc1fa4 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Sat, 7 Nov 2020 20:54:54 +0100 Subject: [PATCH 05/47] Removed coverage dependency --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 32c7797..5a022e2 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ "etherscan.modules", "etherscan.utils", ], - install_requires=["requests", "coverage"], + install_requires=["requests"], include_package_data=True, zip_safe=False, ) From 316538636000b5d2d544dfdbe5d5b0ea1393ce9c Mon Sep 17 00:00:00 2001 From: pcko1 Date: Sat, 7 Nov 2020 21:08:29 +0100 Subject: [PATCH 06/47] Added coverage to dependencies --- env.yml | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/env.yml b/env.yml index d450033..fb66517 100644 --- a/env.yml +++ b/env.yml @@ -26,6 +26,7 @@ dependencies: - zlib=1.2.11=h516909a_1009 - pip: - chardet==3.0.4 + - coverage==5.3 - idna==2.10 - requests==2.24.0 - urllib3==1.25.10 diff --git a/setup.py b/setup.py index 5a022e2..32c7797 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ "etherscan.modules", "etherscan.utils", ], - install_requires=["requests"], + install_requires=["requests", "coverage"], include_package_data=True, zip_safe=False, ) From 88ec2101e9f0da4e5066d91cdee0c4c3106c3190 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Sun, 8 Nov 2020 00:48:26 +0100 Subject: [PATCH 07/47] Fixed example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9e72bba..63da7e8 100644 --- a/README.md +++ b/README.md @@ -190,7 +190,7 @@ The tests also include the PRO endpoints so if your key is not PRO, the correspo In `python`, create a client with your personal [Etherscan.io](https://etherscan.io/) API key: ``` python -from etherscan import Etherscan +from etherscan.etherscan import Etherscan eth = Etherscan(YOUR_API_KEY) # key in quotation marks ``` From 1004af4ed9da6de73ebb12da5080432912c18133 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Sun, 8 Nov 2020 12:12:14 +0100 Subject: [PATCH 08/47] Updated description --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 63da7e8..124dbc9 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). All standard and pro endpoints are provided. -Available on [PyPI](https://pypi.org/project/etherscan-python/) and powered by [Etherscan.io APIs](https://etherscan.io/apis#misc). +Available on [PyPI](https://pypi.org/project/etherscan-python/). Powered by [Etherscan.io APIs](https://etherscan.io/apis#misc). -Feel free to leave a :star: or [cite](#cite) :scroll: the package if you found it useful. +*Feel free to leave a :star: or [cite](#cite) :scroll: the package if you found it useful.* ___ From 2726a556ff8ab5a6a44fd4e2929888abf67472e2 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Fri, 13 Nov 2020 10:03:17 +0100 Subject: [PATCH 09/47] Updated description --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 124dbc9..26aa122 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,6 @@ A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). A Available on [PyPI](https://pypi.org/project/etherscan-python/). Powered by [Etherscan.io APIs](https://etherscan.io/apis#misc). -*Feel free to leave a :star: or [cite](#cite) :scroll: the package if you found it useful.* ___ From 419ca67e885433afff7fb40efeceb9b391ef5e7e Mon Sep 17 00:00:00 2001 From: pcko1 Date: Fri, 4 Dec 2020 16:13:36 +0100 Subject: [PATCH 10/47] Added etherscan.configs package --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 32c7797..1aa46df 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ license="MIT", packages=[ "etherscan", + "etherscan.configs", "etherscan.enums", "etherscan.modules", "etherscan.utils", From f8344664bf7e040a93191051119dcc3b67dfcc42 Mon Sep 17 00:00:00 2001 From: pcko1 Date: Fri, 4 Dec 2020 16:18:50 +0100 Subject: [PATCH 11/47] Updated version to 2.0.2 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1aa46df..9cd3086 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="etherscan-python", - version="2.0.1", + version="2.0.2", description="A minimal, yet complete, python API for etherscan.io.", url="https://github.com/pcko1/etherscan-python", author="Panagiotis-Christos Kotsias", From 8096ec6638e09baecb504f7d2872a48c61263e28 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Fri, 4 Dec 2020 22:26:22 +0100 Subject: [PATCH 12/47] Updated DOI for v2.0.2 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 26aa122..47ce9a1 100644 --- a/README.md +++ b/README.md @@ -189,7 +189,7 @@ The tests also include the PRO endpoints so if your key is not PRO, the correspo In `python`, create a client with your personal [Etherscan.io](https://etherscan.io/) API key: ``` python -from etherscan.etherscan import Etherscan +from etherscan import Etherscan eth = Etherscan(YOUR_API_KEY) # key in quotation marks ``` @@ -234,7 +234,7 @@ For problems regarding installing or using the package please open an [issue](ht ## Cite -Kotsias, P. C., A Python API for Etherscan.io. *https://github.com/pcko1/etherscan-python (2020)*. doi:10.5281/zenodo.4256826 +Kotsias, P. C., A Python API for Etherscan.io. *https://github.com/pcko1/etherscan-python (2020)*. doi:10.5281/zenodo.4306855 or in ```bibtex```: @@ -246,7 +246,7 @@ or in ```bibtex```: publisher = {GitHub}, journal = {GitHub repository}, url = {https://github.com/pcko1/etherscan-python}, - doi = {10.5281/zenodo.4256826} + doi = {10.5281/zenodo.4306855} } ``` From 9b9723bcb4a92c4a3e2ff599e1c82401892821b7 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Sun, 14 Feb 2021 22:50:45 +0100 Subject: [PATCH 13/47] Added FUNDING.yml --- .github/FUNDING.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..11aea7a --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: ['0xA87258F829Fb6b5622d60896dC010cdF57e1DCE6'] From f8ad87ee8e3670beb534cf0d41e9ccc5b3efa5c2 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Sun, 14 Feb 2021 22:57:45 +0100 Subject: [PATCH 14/47] Updated README --- README.md | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 47ce9a1..d030cbc 100644 --- a/README.md +++ b/README.md @@ -148,25 +148,14 @@ Before proceeding, you should register an account on [Etherscan.io](https://ethe If you wish to have access to the PRO endpoints, you should obtain elevated privileges via Etherscan's subscription service. -Assuming [conda](https://docs.conda.io/en/latest/miniconda.html) is already installed on your system, first create the environment: - ``` bash -conda env create -f env.yml -``` - -Activate the environment: - -``` bash -conda activate etherscan-python -``` - -Then, install the package: +Install from source: ``` bash -pip install . +pip install git+https://github.com/pcko1/etherscan-python.git ``` -Alternatively, you can install it from [PyPI](https://pypi.org/project/etherscan-python/): +Alternatively, install from [PyPI](https://pypi.org/project/etherscan-python/): ```bash pip install etherscan-python From 9da66c19123ee7c7bafb31bf9a000755ad452b50 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Sun, 14 Feb 2021 22:58:23 +0100 Subject: [PATCH 15/47] Updated README --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index d030cbc..4ae1a5d 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,6 @@ Before proceeding, you should register an account on [Etherscan.io](https://ethe If you wish to have access to the PRO endpoints, you should obtain elevated privileges via Etherscan's subscription service. -``` bash Install from source: ``` bash From 67b4e2e27d207bdd0b823b6450d1f9a3948be6bf Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Wed, 17 Feb 2021 00:32:31 +0100 Subject: [PATCH 16/47] Added maintainability badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4ae1a5d..73e1d21 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Build Status](https://travis-ci.com/pcko1/etherscan-python.svg?branch=master)](https://travis-ci.com/pcko1/etherscan-python) [![codecov](https://codecov.io/gh/pcko1/etherscan-python/branch/master/graph/badge.svg)](https://codecov.io/gh/pcko1/etherscan-python) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/6db2e36886ee46f58720c6131ef58dd6)](https://app.codacy.com/gh/pcko1/etherscan-python?utm_source=github.com&utm_medium=referral&utm_content=pcko1/etherscan-python&utm_campaign=Badge_Grade) +[![Maintainability](https://api.codeclimate.com/v1/badges/94c15c6d8b1ec869a7fd/maintainability)](https://codeclimate.com/github/pcko1/etherscan-python/maintainability) [![PyPI](https://badge.fury.io/py/etherscan-python.svg)](https://badge.fury.io/py/etherscan-python) ![GitHub](https://img.shields.io/github/license/pcko1/etherscan-python) [![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-385/) From 1482954f9b7d9b023628b746d1a1ccd6e3240156 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Fri, 19 Feb 2021 14:06:26 +0100 Subject: [PATCH 17/47] Updated FUNDING.yml --- .github/FUNDING.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 11aea7a..bb12031 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl liberapay: # Replace with a single Liberapay username issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username -custom: ['0xA87258F829Fb6b5622d60896dC010cdF57e1DCE6'] +custom: ['0xD9D6E8C16686536E3C81124639e975AdF2468197'] From bfee4f37cfbd900d35ccfc8f3cb8835216b80349 Mon Sep 17 00:00:00 2001 From: pcko1 Date: Fri, 19 Feb 2021 15:34:41 +0100 Subject: [PATCH 18/47] Refactored workflows --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ .travis.yml | 11 +---------- setup.py | 2 +- 3 files changed, 35 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..cf1dcff --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: build + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install git+https://github.com/pcko1/etherscan-python.git coverage flake8 + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with unittest + run: | + export API_KEY=${{ secrets.ETHERSCAN_API_KEY }} + bash run_tests.sh API_KEY + bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index e17a763..e0cae0b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,8 @@ language: python python: - '3.8' -before_install: -- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh -- bash miniconda.sh -b -p $HOME/miniconda -- source "$HOME/miniconda/etc/profile.d/conda.sh" -- export PATH=/home/travis/miniconda/bin:$PATH -- conda update -q conda -y -- conda info -a install: -- conda env create -f env.yml -- conda activate etherscan-python -- pip install . +- pip install git+https://github.com/pcko1/etherscan-python.git coverage script: - coverage run -m unittest discover && coverage report -m - bash <(curl -s https://codecov.io/bash) diff --git a/setup.py b/setup.py index 9cd3086..e7751de 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ "etherscan.modules", "etherscan.utils", ], - install_requires=["requests", "coverage"], + install_requires=["requests"], include_package_data=True, zip_safe=False, ) From 17236e351f4257ab79f72c6985b67bb211f370af Mon Sep 17 00:00:00 2001 From: pcko1 Date: Fri, 19 Feb 2021 15:39:50 +0100 Subject: [PATCH 19/47] Changed key --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cf1dcff..16d15ec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,6 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with unittest run: | - export API_KEY=${{ secrets.ETHERSCAN_API_KEY }} + export API_KEY=${{ secrets.ETHERSCAN_API_KEY2 }} bash run_tests.sh API_KEY bash <(curl -s https://codecov.io/bash) \ No newline at end of file From 24e1427aeccf11102f22930cda02e1d817e6da19 Mon Sep 17 00:00:00 2001 From: pcko1 Date: Fri, 19 Feb 2021 15:41:37 +0100 Subject: [PATCH 20/47] Changed API key --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16d15ec..7de20c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,6 +28,6 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with unittest run: | - export API_KEY=${{ secrets.ETHERSCAN_API_KEY2 }} + export API_KEY=$secrets.ETHERSCAN_API_KEY2 bash run_tests.sh API_KEY bash <(curl -s https://codecov.io/bash) \ No newline at end of file From ca6ac5c0d1c32e1835a20e96d1c6416cec062068 Mon Sep 17 00:00:00 2001 From: pcko1 Date: Fri, 19 Feb 2021 15:50:05 +0100 Subject: [PATCH 21/47] Added API key --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7de20c5..c6f1752 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,8 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with unittest + env: + API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} run: | - export API_KEY=$secrets.ETHERSCAN_API_KEY2 bash run_tests.sh API_KEY bash <(curl -s https://codecov.io/bash) \ No newline at end of file From 2bb8a314cf622eb57b018199535867e6fd1086f0 Mon Sep 17 00:00:00 2001 From: pcko1 Date: Fri, 19 Feb 2021 15:51:12 +0100 Subject: [PATCH 22/47] Added API key --- .github/workflows/build.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c6f1752..3bb4e73 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,8 +27,6 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with unittest - env: - API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} run: | - bash run_tests.sh API_KEY + bash run_tests.sh ${{ secrets.ETHERSCAN_API_KEY }} bash <(curl -s https://codecov.io/bash) \ No newline at end of file From c17095ccc9e9e86f8df4e2de269294f375129880 Mon Sep 17 00:00:00 2001 From: pcko1 Date: Fri, 19 Feb 2021 15:53:33 +0100 Subject: [PATCH 23/47] Removed conda --- env.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 env.yml diff --git a/env.yml b/env.yml deleted file mode 100644 index fb66517..0000000 --- a/env.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: etherscan-python -channels: - - conda-forge - - defaults -dependencies: - - _libgcc_mutex=0.1=conda_forge - - _openmp_mutex=4.5=1_gnu - - ca-certificates=2020.6.20=hecda079_0 - - certifi=2020.6.20=py38h32f6830_0 - - ld_impl_linux-64=2.35=h769bd43_9 - - libffi=3.2.1=he1b5a44_1007 - - libgcc-ng=9.3.0=h24d8f2e_16 - - libgomp=9.3.0=h24d8f2e_16 - - libstdcxx-ng=9.3.0=hdf63c60_16 - - ncurses=6.2=he1b5a44_1 - - openssl=1.1.1h=h516909a_0 - - pip=20.2.3=py_0 - - python=3.8.5=h1103e12_9_cpython - - python_abi=3.8=1_cp38 - - readline=8.0=he28a2e2_2 - - setuptools=49.6.0=py38h32f6830_1 - - sqlite=3.33.0=h4cf870e_0 - - tk=8.6.10=hed695b0_0 - - wheel=0.35.1=pyh9f0ad1d_0 - - xz=5.2.5=h516909a_1 - - zlib=1.2.11=h516909a_1009 - - pip: - - chardet==3.0.4 - - coverage==5.3 - - idna==2.10 - - requests==2.24.0 - - urllib3==1.25.10 From f831fdb773303dc340eeb38f9716bff847703187 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Fri, 19 Feb 2021 15:56:24 +0100 Subject: [PATCH 24/47] Updated README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 73e1d21..0d560a1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # etherscan-python -[![Build Status](https://travis-ci.com/pcko1/etherscan-python.svg?branch=master)](https://travis-ci.com/pcko1/etherscan-python) +[![Build Status](https://travis-ci.com/pcko1/etherscan-python.svg?branch=master)](https://travis-ci.com/pcko1/etherscan-python) +[![Build Status](https://github.com/pcko1/etherscan-python/workflows/build/badge.svg)](https://github.com/pcko1/etherscan-python) [![codecov](https://codecov.io/gh/pcko1/etherscan-python/branch/master/graph/badge.svg)](https://codecov.io/gh/pcko1/etherscan-python) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/6db2e36886ee46f58720c6131ef58dd6)](https://app.codacy.com/gh/pcko1/etherscan-python?utm_source=github.com&utm_medium=referral&utm_content=pcko1/etherscan-python&utm_campaign=Badge_Grade) [![Maintainability](https://api.codeclimate.com/v1/badges/94c15c6d8b1ec869a7fd/maintainability)](https://codeclimate.com/github/pcko1/etherscan-python/maintainability) From 9dbad7d1afe74975ffcd80d851e3cbed02c826e6 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Fri, 19 Feb 2021 16:02:16 +0100 Subject: [PATCH 25/47] Updated badges --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0d560a1..4dd3b4b 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![codecov](https://codecov.io/gh/pcko1/etherscan-python/branch/master/graph/badge.svg)](https://codecov.io/gh/pcko1/etherscan-python) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/6db2e36886ee46f58720c6131ef58dd6)](https://app.codacy.com/gh/pcko1/etherscan-python?utm_source=github.com&utm_medium=referral&utm_content=pcko1/etherscan-python&utm_campaign=Badge_Grade) [![Maintainability](https://api.codeclimate.com/v1/badges/94c15c6d8b1ec869a7fd/maintainability)](https://codeclimate.com/github/pcko1/etherscan-python/maintainability) +[![CodeFactor](https://www.codefactor.io/repository/github/pcko1/etherscan-python/badge)](https://www.codefactor.io/repository/github/pcko1/etherscan-python) [![PyPI](https://badge.fury.io/py/etherscan-python.svg)](https://badge.fury.io/py/etherscan-python) ![GitHub](https://img.shields.io/github/license/pcko1/etherscan-python) [![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-385/) From 03c684a05aeab05bf2573c9715ddcf7184234eef Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Fri, 19 Feb 2021 16:14:34 +0100 Subject: [PATCH 26/47] Updated badges --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4dd3b4b..786ece5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,9 @@ [![codecov](https://codecov.io/gh/pcko1/etherscan-python/branch/master/graph/badge.svg)](https://codecov.io/gh/pcko1/etherscan-python) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/6db2e36886ee46f58720c6131ef58dd6)](https://app.codacy.com/gh/pcko1/etherscan-python?utm_source=github.com&utm_medium=referral&utm_content=pcko1/etherscan-python&utm_campaign=Badge_Grade) [![Maintainability](https://api.codeclimate.com/v1/badges/94c15c6d8b1ec869a7fd/maintainability)](https://codeclimate.com/github/pcko1/etherscan-python/maintainability) +[![](https://img.shields.io/codeclimate/tech-debt/pcko1/etherscan-python)](https://codeclimate.com/github/pcko1/etherscan-python) [![CodeFactor](https://www.codefactor.io/repository/github/pcko1/etherscan-python/badge)](https://www.codefactor.io/repository/github/pcko1/etherscan-python) + [![PyPI](https://badge.fury.io/py/etherscan-python.svg)](https://badge.fury.io/py/etherscan-python) ![GitHub](https://img.shields.io/github/license/pcko1/etherscan-python) [![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-385/) From 87cb1514f001052ebede78e12c156e4b8fb2ee4b Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Fri, 19 Feb 2021 16:37:17 +0100 Subject: [PATCH 27/47] Updated badges --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 786ece5..069e2c8 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ [![Build Status](https://github.com/pcko1/etherscan-python/workflows/build/badge.svg)](https://github.com/pcko1/etherscan-python) [![codecov](https://codecov.io/gh/pcko1/etherscan-python/branch/master/graph/badge.svg)](https://codecov.io/gh/pcko1/etherscan-python) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/6db2e36886ee46f58720c6131ef58dd6)](https://app.codacy.com/gh/pcko1/etherscan-python?utm_source=github.com&utm_medium=referral&utm_content=pcko1/etherscan-python&utm_campaign=Badge_Grade) -[![Maintainability](https://api.codeclimate.com/v1/badges/94c15c6d8b1ec869a7fd/maintainability)](https://codeclimate.com/github/pcko1/etherscan-python/maintainability) [![](https://img.shields.io/codeclimate/tech-debt/pcko1/etherscan-python)](https://codeclimate.com/github/pcko1/etherscan-python) +[![Maintainability](https://api.codeclimate.com/v1/badges/94c15c6d8b1ec869a7fd/maintainability)](https://codeclimate.com/github/pcko1/etherscan-python/maintainability) [![CodeFactor](https://www.codefactor.io/repository/github/pcko1/etherscan-python/badge)](https://www.codefactor.io/repository/github/pcko1/etherscan-python) [![PyPI](https://badge.fury.io/py/etherscan-python.svg)](https://badge.fury.io/py/etherscan-python) From d7b156e2024c1f3d3e6868aaf1b2d046deb81dd4 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Fri, 26 Feb 2021 13:47:12 +0100 Subject: [PATCH 28/47] Added download count --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 069e2c8..2745e42 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ [![CodeFactor](https://www.codefactor.io/repository/github/pcko1/etherscan-python/badge)](https://www.codefactor.io/repository/github/pcko1/etherscan-python) [![PyPI](https://badge.fury.io/py/etherscan-python.svg)](https://badge.fury.io/py/etherscan-python) +![PyPI - Downloads](https://img.shields.io/pypi/dm/etherscan-python) ![GitHub](https://img.shields.io/github/license/pcko1/etherscan-python) [![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-385/) [![DOI](https://zenodo.org/badge/298646404.svg)](https://zenodo.org/badge/latestdoi/298646404) From ccee24427e327aee25b30fe4e6db73b3d7ddd403 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Sat, 27 Feb 2021 21:38:33 +0100 Subject: [PATCH 29/47] Removed download count --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 2745e42..069e2c8 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,6 @@ [![CodeFactor](https://www.codefactor.io/repository/github/pcko1/etherscan-python/badge)](https://www.codefactor.io/repository/github/pcko1/etherscan-python) [![PyPI](https://badge.fury.io/py/etherscan-python.svg)](https://badge.fury.io/py/etherscan-python) -![PyPI - Downloads](https://img.shields.io/pypi/dm/etherscan-python) ![GitHub](https://img.shields.io/github/license/pcko1/etherscan-python) [![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-385/) [![DOI](https://zenodo.org/badge/298646404.svg)](https://zenodo.org/badge/latestdoi/298646404) From 2be84401af3f20ff0154f5324270be40c38bf91d Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Thu, 4 Mar 2021 12:52:26 +0100 Subject: [PATCH 30/47] Updated citation info --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 069e2c8..5dc6b62 100644 --- a/README.md +++ b/README.md @@ -227,17 +227,16 @@ For problems regarding installing or using the package please open an [issue](ht ## Cite -Kotsias, P. C., A Python API for Etherscan.io. *https://github.com/pcko1/etherscan-python (2020)*. doi:10.5281/zenodo.4306855 +Kotsias, P. C., pcko1/etherscan-python. *https://github.com/pcko1/etherscan-python (2020)*. doi:10.5281/zenodo.4306855 or in ```bibtex```: ```bibtex @misc{Kotsias2020, author = {Kotsias, P.C.}, - title = {A Python API for Etherscan.io}, + title = {pcko1/etherscan-python}, year = {2020}, - publisher = {GitHub}, - journal = {GitHub repository}, + publisher = {Zenodo}, url = {https://github.com/pcko1/etherscan-python}, doi = {10.5281/zenodo.4306855} } From 61abdba248a6991bc6041fe5ff2528bb18ed001b Mon Sep 17 00:00:00 2001 From: litneet64 Date: Mon, 8 Mar 2021 02:34:30 -0300 Subject: [PATCH 31/47] Added support for testnets --- etherscan/enums/fields_enum.py | 2 +- etherscan/etherscan.py | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/etherscan/enums/fields_enum.py b/etherscan/enums/fields_enum.py index a85fb77..b0bcc4d 100644 --- a/etherscan/enums/fields_enum.py +++ b/etherscan/enums/fields_enum.py @@ -23,7 +23,7 @@ class FieldsEnum: OFFSET: str = "&offset=" PAGE: str = "&page=" POSITION: str = "&position=" - PREFIX: str = "https://api.etherscan.io/api?" + PREFIX: str = "https://api-{}.etherscan.io/api?" SORT: str = "&sort=" START_BLOCK: str = "&startblock=" START_DATE: str = "&startdate=" diff --git a/etherscan/etherscan.py b/etherscan/etherscan.py index 34d9d5b..a8e9b50 100644 --- a/etherscan/etherscan.py +++ b/etherscan/etherscan.py @@ -10,10 +10,10 @@ class Etherscan: - def __new__(cls, api_key: str): - with resources.path(configs, "stable.json") as path: + def __new__(cls, api_key: str, net: str = "MAIN"): + with resources.path(configs, f"{net.upper()}-stable.json") as path: config_path = str(path) - return cls.from_config(api_key=api_key, config_path=config_path) + return cls.from_config(api_key=api_key, config_path=config_path, net=net) @staticmethod def __load_config(config_path: str) -> dict: @@ -21,24 +21,24 @@ def __load_config(config_path: str) -> dict: return json.load(f) @staticmethod - def __run(func, api_key: str): + def __run(func, api_key: str, net: str): def wrapper(*args, **kwargs): url = ( - f"{fields.PREFIX}" + f"{fields.PREFIX.format(net.lower()).replace('-main','')}" f"{func(*args, **kwargs)}" f"{fields.API_KEY}" f"{api_key}" ) - r = requests.get(url) + r = requests.get(url, headers={'User-Agent':''}) return parser.parse(r) return wrapper @classmethod - def from_config(cls, api_key: str, config_path: str): + def from_config(cls, api_key: str, config_path: str, net: str): config = cls.__load_config(config_path) for func, v in config.items(): if not func.startswith("_"): # disabled if _ attr = getattr(getattr(etherscan, v["module"]), func) - setattr(cls, func, cls.__run(attr, api_key)) + setattr(cls, func, cls.__run(attr, api_key, net)) return cls From 8e6380d6a5f91e16ef7bf88477e184cf82b40388 Mon Sep 17 00:00:00 2001 From: litneet64 Date: Mon, 8 Mar 2021 02:38:18 -0300 Subject: [PATCH 32/47] Added testnets on module tests --- test/test_modules.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/test/test_modules.py b/test/test_modules.py index 7ec2004..65e669b 100644 --- a/test/test_modules.py +++ b/test/test_modules.py @@ -6,7 +6,7 @@ from etherscan.etherscan import Etherscan -CONFIG_PATH = "etherscan/configs/stable.json" +CONFIG_PATH = "etherscan/configs/{}-stable.json" API_KEY = os.environ["API_KEY"] # Encrypted env var by Travis @@ -22,18 +22,20 @@ def dump(data, fname): class Case(TestCase): _MODULE = "" + _NETS = ["MAIN", "GOERLI", "KOVAN", "RINKEBY", "ROPSTEN"] - def test_methods(self): - print(f"\nMODULE: {self._MODULE}") - config = load(CONFIG_PATH) - etherscan = Etherscan(API_KEY) + def methods(self, net): + print(f"\nNET: {net}") + print(f"MODULE: {self._MODULE}") + config = load(CONFIG_PATH.format(net)) + etherscan = Etherscan(API_KEY, net) for fun, v in config.items(): if not fun.startswith("_"): # disabled if _ if v["module"] == self._MODULE: res = getattr(etherscan, fun)(**v["kwargs"]) print(f"METHOD: {fun}, RTYPE: {type(res)}") # Create log files (will update existing ones) - fname = f"logs/standard/{fun}.json" + fname = f"logs/standard/{net}-{fun}.json" log = { "method": fun, "module": v["module"], @@ -43,6 +45,10 @@ def test_methods(self): } dump(log, fname) + def test_net_methods(self): + for net in self._NETS: + self.methods(net) + class TestAccounts(Case): _MODULE = "accounts" From 7530eca9b1b8ec78695a5586730d4322f92fdfff Mon Sep 17 00:00:00 2001 From: litneet64 Date: Mon, 8 Mar 2021 03:14:16 -0300 Subject: [PATCH 33/47] Added test cases for testnets --- MANIFEST.in | 6 +- etherscan/configs/GOERLI-stable.json | 466 ++++++++++++++++++ etherscan/configs/KOVAN-stable.json | 466 ++++++++++++++++++ .../configs/{stable.json => MAIN-stable.json} | 0 etherscan/configs/RINKEBY-stable.json | 466 ++++++++++++++++++ etherscan/configs/ROPSTEN-stable.json | 466 ++++++++++++++++++ 6 files changed, 1869 insertions(+), 1 deletion(-) create mode 100644 etherscan/configs/GOERLI-stable.json create mode 100644 etherscan/configs/KOVAN-stable.json rename etherscan/configs/{stable.json => MAIN-stable.json} (100%) create mode 100644 etherscan/configs/RINKEBY-stable.json create mode 100644 etherscan/configs/ROPSTEN-stable.json diff --git a/MANIFEST.in b/MANIFEST.in index 39d0704..952e599 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,5 @@ -include etherscan/configs/stable.json \ No newline at end of file +include etherscan/configs/MAIN-stable.json +include etherscan/configs/GOERLI-stable.json +include etherscan/configs/KOVAN-stable.json +include etherscan/configs/RINKEBY-stable.json +include etherscan/configs/ROPSTEN-stable.json diff --git a/etherscan/configs/GOERLI-stable.json b/etherscan/configs/GOERLI-stable.json new file mode 100644 index 0000000..ba9da4d --- /dev/null +++ b/etherscan/configs/GOERLI-stable.json @@ -0,0 +1,466 @@ +{ + "get_proxy_block_number": { + "module": "proxy", + "kwargs": {} + }, + "get_proxy_block_by_number": { + "module": "proxy", + "kwargs": { + "tag": "0x10d4f" + } + }, + "_get_proxy_uncle_by_block_number_and_index": { + "module": "proxy", + "kwargs": { + "tag": "0x210A9B", + "index": "0x0" + } + }, + "get_proxy_block_transaction_count_by_number": { + "module": "proxy", + "kwargs": { + "tag": "0x10FB78" + } + }, + "get_proxy_transaction_by_hash": { + "module": "proxy", + "kwargs": { + "txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1" + } + }, + "get_proxy_transaction_by_block_number_and_index": { + "module": "proxy", + "kwargs": { + "tag": "0x210A9B", + "index": "0x0" + } + }, + "get_proxy_transaction_count": { + "module": "proxy", + "kwargs": { + "address": "0x2910543af39aba0cd09dbb2d50200b3e800a63d2" + } + }, + "get_proxy_transaction_receipt": { + "module": "proxy", + "kwargs": { + "txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1" + } + }, + "get_proxy_call": { + "module": "proxy", + "kwargs": { + "to": "0xAEEF46DB4855E25702F8237E8f403FddcaF931C0", + "data": "0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724" + } + }, + "get_proxy_code_at": { + "module": "proxy", + "kwargs": { + "address": "0xf75e354c5edc8efed9b59ee9f67a80845ade7d0c" + } + }, + "get_proxy_storage_position_at": { + "module": "proxy", + "kwargs": { + "position": "0x0", + "address": "0x6e03d9cce9d60f3e9f2597e13cd4c54c55330cfd" + } + }, + "get_proxy_gas_price": { + "module": "proxy", + "kwargs": {} + }, + "get_proxy_est_gas": { + "module": "proxy", + "kwargs": { + "data": "0x4e71d92d", + "to": "0xf0160428a8552ac9bb7e050d90eeade4ddd52843", + "value": "0xff22", + "gas_price": "0x51da038cc", + "gas": "0x5f5e0ff" + } + }, + "get_est_confirmation_time": { + "module": "gastracker", + "kwargs": { + "gas_price": "2000000000" + } + }, + "get_gas_oracle": { + "module": "gastracker", + "kwargs": {} + }, + "get_block_reward_by_block_number": { + "module": "blocks", + "kwargs": { + "block_no": "2165403" + } + }, + "get_est_block_countdown_time_by_block_number": { + "module": "blocks", + "kwargs": { + "block_no": "99999999" + } + }, + "get_block_number_by_timestamp": { + "module": "blocks", + "kwargs": { + "timestamp": "1578638524", + "closest": "before" + } + }, + "get_total_eth_supply": { + "module": "stats", + "kwargs": {} + }, + "get_eth_last_price": { + "module": "stats", + "kwargs": {} + }, + "_get_eth_nodes_size": { + "module": "stats", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "client_type": "geth", + "sync_mode": "default", + "sort": "asc" + } + }, + "get_total_supply_by_contract_address": { + "module": "tokens", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055" + } + }, + "get_acc_balance_by_token_and_contract_address": { + "module": "tokens", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", + "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761" + } + }, + "get_contract_abi": { + "module": "contracts", + "kwargs": { + "address": "0x748D03fb181A158bea396489eA6589E7dCfBA495" + } + }, + "get_contract_source_code": { + "module": "contracts", + "kwargs": { + "address": "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413" + } + }, + "get_contract_execution_status": { + "module": "transactions", + "kwargs": { + "txhash": "0x15f8e5ea1079d9a0bb04a4c58ae5fe7654b5b2b4463375ff7ffb490aa0032f3a" + } + }, + "get_tx_receipt_status": { + "module": "transactions", + "kwargs": { + "txhash": "0x513c1ba0bebf66436b5fed86ab668452b7805593c05073eb2d51d3a52f480a76" + } + }, + "get_eth_balance": { + "module": "accounts", + "kwargs": { + "address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a" + } + }, + "get_eth_balance_multiple": { + "module": "accounts", + "kwargs": { + "addresses": [ + "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a", + "0x63a9975ba31b0b9626b34300f7f627147df1f526", + "0x198ef1ec325a96cc354c7266a038be8b5c558f67" + ] + } + }, + "get_normal_txs_by_address": { + "module": "accounts", + "kwargs": { + "address": "0xff6872f2c89ac60fbc1fc977a9724555b9796154", + "startblock": 0, + "endblock": 99999999, + "sort": "asc" + } + }, + "get_normal_txs_by_address_paginated": { + "module": "accounts", + "kwargs": { + "address": "0xff6872f2c89ac60fbc1fc977a9724555b9796154", + "startblock": 0, + "endblock": 99999999, + "page": 1, + "offset": 10, + "sort": "asc" + } + }, + "get_internal_txs_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x126c5b0b637340569ee98c768e97992ea2fa426d", + "startblock": 4397831, + "endblock": 4397831, + "sort": "asc" + } + }, + "get_internal_txs_by_address_paginated": { + "module": "accounts", + "kwargs": { + "address": "0x126c5b0b637340569ee98c768e97992ea2fa426d", + "startblock": 4397831, + "endblock": 4397831, + "page": 1, + "offset": 10, + "sort": "asc" + } + }, + "get_internal_txs_by_txhash": { + "module": "accounts", + "kwargs": { + "txhash": "0x1b71be923f0dcb1f4a196d340d868ff0b35f494e7f3f6575b81812b0824696bb" + } + }, + "get_internal_txs_by_block_range_paginated": { + "module": "accounts", + "kwargs": { + "startblock": 0, + "endblock": 2702578, + "page": 1, + "offset": 10, + "sort": "asc" + } + }, + "get_erc20_token_transfer_events_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x9fc8720759bf397bdc13ae08760a7aea7ebbdf56", + "startblock": 0, + "endblock": 999999999, + "sort": "asc" + } + }, + "get_erc20_token_transfer_events_by_contract_address_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0x2ac3c1d3e24b45c6c310534bc2dd84b5ed576335", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_erc20_token_transfer_events_by_address_and_contract_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0x2ac3c1d3e24b45c6c310534bc2dd84b5ed576335", + "address": "0x9fc8720759bf397bdc13ae08760a7aea7ebbdf56", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_erc721_token_transfer_events_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x3b2f32d32faabd8d94df36afb956bd4d34bf905c", + "startblock": 0, + "endblock": 999999999, + "sort": "asc" + } + }, + "get_erc721_token_transfer_events_by_contract_address_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0xe5975e7dc3dfbb4cbede646b8af7cf292b46693e", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_erc721_token_transfer_events_by_address_and_contract_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0xe5975e7dc3dfbb4cbede646b8af7cf292b46693e", + "address": "0x3b2f32d32faabd8d94df36afb956bd4d34bf905c", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_mined_blocks_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x0000000000000000000000000000000000000000" + } + }, + "get_mined_blocks_by_address_paginated": { + "module": "accounts", + "kwargs": { + "address": "0x0000000000000000000000000000000000000000", + "page": 1, + "offset": 100 + } + }, + "get_hist_eth_balance_for_address_by_block_no": { + "module": "pro", + "kwargs": { + "address": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", + "block_no": "8000000" + } + }, + "get_daily_average_block_size": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_block_count_and_rewards": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_block_rewards": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_average_block_time": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_uncle_block_count_and_rewards": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_hist_erc20_token_total_supply_by_contract_address_and_block_no": { + "module": "pro", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", + "block_no": "8000000" + } + }, + "get_hist_erc20_token_account_balance_for_token_contract_address_by_block_no": { + "module": "pro", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", + "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761", + "block_no": "8000000" + } + }, + "get_token_info_by_contract_address": { + "module": "pro", + "kwargs": { + "contract_address": "0x0e3a2a1f2146d86a604adc220b4967a898d7fe07" + } + }, + "get_daily_average_gas_limit": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_daily_total_gas_used": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_daily_average_gas_price": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_daily_network_tx_fee": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_new_address_count": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_network_utilization": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_average_network_hash_rate": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_tx_count": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_average_network_difficulty": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_hist_daily_market_cap": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_hist_price": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + } +} diff --git a/etherscan/configs/KOVAN-stable.json b/etherscan/configs/KOVAN-stable.json new file mode 100644 index 0000000..dff391d --- /dev/null +++ b/etherscan/configs/KOVAN-stable.json @@ -0,0 +1,466 @@ +{ + "get_proxy_block_number": { + "module": "proxy", + "kwargs": {} + }, + "get_proxy_block_by_number": { + "module": "proxy", + "kwargs": { + "tag": "0x10d4f" + } + }, + "get_proxy_uncle_by_block_number_and_index": { + "module": "proxy", + "kwargs": { + "tag": "0x4d50e2", + "index": "0x0" + } + }, + "get_proxy_block_transaction_count_by_number": { + "module": "proxy", + "kwargs": { + "tag": "0x10FB78" + } + }, + "get_proxy_transaction_by_hash": { + "module": "proxy", + "kwargs": { + "txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1" + } + }, + "get_proxy_transaction_by_block_number_and_index": { + "module": "proxy", + "kwargs": { + "tag": "0x43195c", + "index": "0x0" + } + }, + "get_proxy_transaction_count": { + "module": "proxy", + "kwargs": { + "address": "0x2910543af39aba0cd09dbb2d50200b3e800a63d2" + } + }, + "get_proxy_transaction_receipt": { + "module": "proxy", + "kwargs": { + "txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1" + } + }, + "get_proxy_call": { + "module": "proxy", + "kwargs": { + "to": "0xAEEF46DB4855E25702F8237E8f403FddcaF931C0", + "data": "0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724" + } + }, + "get_proxy_code_at": { + "module": "proxy", + "kwargs": { + "address": "0xf75e354c5edc8efed9b59ee9f67a80845ade7d0c" + } + }, + "get_proxy_storage_position_at": { + "module": "proxy", + "kwargs": { + "position": "0x0", + "address": "0x6e03d9cce9d60f3e9f2597e13cd4c54c55330cfd" + } + }, + "get_proxy_gas_price": { + "module": "proxy", + "kwargs": {} + }, + "get_proxy_est_gas": { + "module": "proxy", + "kwargs": { + "data": "0x4e71d92d", + "to": "0xf0160428a8552ac9bb7e050d90eeade4ddd52843", + "value": "0xff22", + "gas_price": "0x51da038cc", + "gas": "0x5f5e0ff" + } + }, + "get_est_confirmation_time": { + "module": "gastracker", + "kwargs": { + "gas_price": "2000000000" + } + }, + "get_gas_oracle": { + "module": "gastracker", + "kwargs": {} + }, + "get_block_reward_by_block_number": { + "module": "blocks", + "kwargs": { + "block_no": "2165403" + } + }, + "get_est_block_countdown_time_by_block_number": { + "module": "blocks", + "kwargs": { + "block_no": "99999999" + } + }, + "get_block_number_by_timestamp": { + "module": "blocks", + "kwargs": { + "timestamp": "1578638524", + "closest": "before" + } + }, + "get_total_eth_supply": { + "module": "stats", + "kwargs": {} + }, + "get_eth_last_price": { + "module": "stats", + "kwargs": {} + }, + "_get_eth_nodes_size": { + "module": "stats", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "client_type": "geth", + "sync_mode": "default", + "sort": "asc" + } + }, + "get_total_supply_by_contract_address": { + "module": "tokens", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055" + } + }, + "get_acc_balance_by_token_and_contract_address": { + "module": "tokens", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", + "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761" + } + }, + "get_contract_abi": { + "module": "contracts", + "kwargs": { + "address": "0xe309239955502Bb812807e8C29B98C3441775d35" + } + }, + "get_contract_source_code": { + "module": "contracts", + "kwargs": { + "address": "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413" + } + }, + "get_contract_execution_status": { + "module": "transactions", + "kwargs": { + "txhash": "0x15f8e5ea1079d9a0bb04a4c58ae5fe7654b5b2b4463375ff7ffb490aa0032f3a" + } + }, + "get_tx_receipt_status": { + "module": "transactions", + "kwargs": { + "txhash": "0x513c1ba0bebf66436b5fed86ab668452b7805593c05073eb2d51d3a52f480a76" + } + }, + "get_eth_balance": { + "module": "accounts", + "kwargs": { + "address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a" + } + }, + "get_eth_balance_multiple": { + "module": "accounts", + "kwargs": { + "addresses": [ + "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a", + "0x63a9975ba31b0b9626b34300f7f627147df1f526", + "0x198ef1ec325a96cc354c7266a038be8b5c558f67" + ] + } + }, + "get_normal_txs_by_address": { + "module": "accounts", + "kwargs": { + "address": "0xc1918c20650920aa664235bc6cbd8b8728fbe931", + "startblock": 0, + "endblock": 99999999, + "sort": "asc" + } + }, + "get_normal_txs_by_address_paginated": { + "module": "accounts", + "kwargs": { + "address": "0xc1918c20650920aa664235bc6cbd8b8728fbe931", + "startblock": 0, + "endblock": 99999999, + "page": 1, + "offset": 10, + "sort": "asc" + } + }, + "get_internal_txs_by_address": { + "module": "accounts", + "kwargs": { + "address": "0xaaad7966ebe0663b8c9c6f683fb9c3e66e03467f", + "startblock": 23799593, + "endblock": 23799593, + "sort": "asc" + } + }, + "get_internal_txs_by_address_paginated": { + "module": "accounts", + "kwargs": { + "address": "0xaaad7966ebe0663b8c9c6f683fb9c3e66e03467f", + "startblock": 23799593, + "endblock": 23799593, + "page": 1, + "offset": 10, + "sort": "asc" + } + }, + "get_internal_txs_by_txhash": { + "module": "accounts", + "kwargs": { + "txhash": "0xad550ebc0f2473e3b5af8d1d30b093749cb2835bf21ed340e976b1ec25276b04" + } + }, + "get_internal_txs_by_block_range_paginated": { + "module": "accounts", + "kwargs": { + "startblock": 0, + "endblock": 2702578, + "page": 1, + "offset": 10, + "sort": "asc" + } + }, + "get_erc20_token_transfer_events_by_address": { + "module": "accounts", + "kwargs": { + "address": "0xa991b15e414ddfa78b0df1f7af6b3cf2023c738d", + "startblock": 0, + "endblock": 999999999, + "sort": "asc" + } + }, + "get_erc20_token_transfer_events_by_contract_address_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0x8fe80f7ca77daa68b059f8b3e29e1c5d962f01e7", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_erc20_token_transfer_events_by_address_and_contract_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0x8fe80f7ca77daa68b059f8b3e29e1c5d962f01e7", + "address": "0xa991b15e414ddfa78b0df1f7af6b3cf2023c738d", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_erc721_token_transfer_events_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x57e05dba059a8ff2777408e9e1f3c517c20fc719", + "startblock": 0, + "endblock": 999999999, + "sort": "asc" + } + }, + "get_erc721_token_transfer_events_by_contract_address_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0x953067757ec1b3a859f80ae15269f95430e72e69", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_erc721_token_transfer_events_by_address_and_contract_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0x953067757ec1b3a859f80ae15269f95430e72e69", + "address": "0x57e05dba059a8ff2777408e9e1f3c517c20fc719", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_mined_blocks_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x0000000000000000000000000000000000000000" + } + }, + "get_mined_blocks_by_address_paginated": { + "module": "accounts", + "kwargs": { + "address": "0x0000000000000000000000000000000000000000", + "page": 1, + "offset": 100 + } + }, + "get_hist_eth_balance_for_address_by_block_no": { + "module": "pro", + "kwargs": { + "address": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", + "block_no": "8000000" + } + }, + "get_daily_average_block_size": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_block_count_and_rewards": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_block_rewards": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_average_block_time": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_uncle_block_count_and_rewards": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_hist_erc20_token_total_supply_by_contract_address_and_block_no": { + "module": "pro", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", + "block_no": "8000000" + } + }, + "get_hist_erc20_token_account_balance_for_token_contract_address_by_block_no": { + "module": "pro", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", + "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761", + "block_no": "8000000" + } + }, + "get_token_info_by_contract_address": { + "module": "pro", + "kwargs": { + "contract_address": "0x0e3a2a1f2146d86a604adc220b4967a898d7fe07" + } + }, + "get_daily_average_gas_limit": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_daily_total_gas_used": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_daily_average_gas_price": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_daily_network_tx_fee": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_new_address_count": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_network_utilization": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_average_network_hash_rate": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_tx_count": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_average_network_difficulty": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_hist_daily_market_cap": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_hist_price": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + } +} diff --git a/etherscan/configs/stable.json b/etherscan/configs/MAIN-stable.json similarity index 100% rename from etherscan/configs/stable.json rename to etherscan/configs/MAIN-stable.json diff --git a/etherscan/configs/RINKEBY-stable.json b/etherscan/configs/RINKEBY-stable.json new file mode 100644 index 0000000..f288c3b --- /dev/null +++ b/etherscan/configs/RINKEBY-stable.json @@ -0,0 +1,466 @@ +{ + "get_proxy_block_number": { + "module": "proxy", + "kwargs": {} + }, + "get_proxy_block_by_number": { + "module": "proxy", + "kwargs": { + "tag": "0x10d4f" + } + }, + "_get_proxy_uncle_by_block_number_and_index": { + "module": "proxy", + "kwargs": { + "tag": "0x210A9B", + "index": "0x0" + } + }, + "get_proxy_block_transaction_count_by_number": { + "module": "proxy", + "kwargs": { + "tag": "0x10FB78" + } + }, + "get_proxy_transaction_by_hash": { + "module": "proxy", + "kwargs": { + "txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1" + } + }, + "get_proxy_transaction_by_block_number_and_index": { + "module": "proxy", + "kwargs": { + "tag": "0x43195c", + "index": "0x0" + } + }, + "get_proxy_transaction_count": { + "module": "proxy", + "kwargs": { + "address": "0x2910543af39aba0cd09dbb2d50200b3e800a63d2" + } + }, + "get_proxy_transaction_receipt": { + "module": "proxy", + "kwargs": { + "txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1" + } + }, + "get_proxy_call": { + "module": "proxy", + "kwargs": { + "to": "0xAEEF46DB4855E25702F8237E8f403FddcaF931C0", + "data": "0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724" + } + }, + "get_proxy_code_at": { + "module": "proxy", + "kwargs": { + "address": "0xf75e354c5edc8efed9b59ee9f67a80845ade7d0c" + } + }, + "get_proxy_storage_position_at": { + "module": "proxy", + "kwargs": { + "position": "0x0", + "address": "0x6e03d9cce9d60f3e9f2597e13cd4c54c55330cfd" + } + }, + "get_proxy_gas_price": { + "module": "proxy", + "kwargs": {} + }, + "get_proxy_est_gas": { + "module": "proxy", + "kwargs": { + "data": "0x4e71d92d", + "to": "0xf0160428a8552ac9bb7e050d90eeade4ddd52843", + "value": "0xff22", + "gas_price": "0x51da038cc", + "gas": "0x5f5e0ff" + } + }, + "get_est_confirmation_time": { + "module": "gastracker", + "kwargs": { + "gas_price": "2000000000" + } + }, + "get_gas_oracle": { + "module": "gastracker", + "kwargs": {} + }, + "get_block_reward_by_block_number": { + "module": "blocks", + "kwargs": { + "block_no": "2165403" + } + }, + "get_est_block_countdown_time_by_block_number": { + "module": "blocks", + "kwargs": { + "block_no": "99999999" + } + }, + "get_block_number_by_timestamp": { + "module": "blocks", + "kwargs": { + "timestamp": "1578638524", + "closest": "before" + } + }, + "get_total_eth_supply": { + "module": "stats", + "kwargs": {} + }, + "get_eth_last_price": { + "module": "stats", + "kwargs": {} + }, + "_get_eth_nodes_size": { + "module": "stats", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "client_type": "geth", + "sync_mode": "default", + "sort": "asc" + } + }, + "get_total_supply_by_contract_address": { + "module": "tokens", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055" + } + }, + "get_acc_balance_by_token_and_contract_address": { + "module": "tokens", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", + "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761" + } + }, + "get_contract_abi": { + "module": "contracts", + "kwargs": { + "address": "0x79a856049A390336E221d54e2bAB9e629989187f" + } + }, + "get_contract_source_code": { + "module": "contracts", + "kwargs": { + "address": "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413" + } + }, + "get_contract_execution_status": { + "module": "transactions", + "kwargs": { + "txhash": "0x15f8e5ea1079d9a0bb04a4c58ae5fe7654b5b2b4463375ff7ffb490aa0032f3a" + } + }, + "get_tx_receipt_status": { + "module": "transactions", + "kwargs": { + "txhash": "0x513c1ba0bebf66436b5fed86ab668452b7805593c05073eb2d51d3a52f480a76" + } + }, + "get_eth_balance": { + "module": "accounts", + "kwargs": { + "address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a" + } + }, + "get_eth_balance_multiple": { + "module": "accounts", + "kwargs": { + "addresses": [ + "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a", + "0x63a9975ba31b0b9626b34300f7f627147df1f526", + "0x198ef1ec325a96cc354c7266a038be8b5c558f67" + ] + } + }, + "get_normal_txs_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x0cb510e2f16c36ce039ee3164330d5f00ecf9eac", + "startblock": 0, + "endblock": 99999999, + "sort": "asc" + } + }, + "get_normal_txs_by_address_paginated": { + "module": "accounts", + "kwargs": { + "address": "0x0cb510e2f16c36ce039ee3164330d5f00ecf9eac", + "startblock": 0, + "endblock": 99999999, + "page": 1, + "offset": 10, + "sort": "asc" + } + }, + "get_internal_txs_by_address": { + "module": "accounts", + "kwargs": { + "address": "0xd16a6772163463c731e37ef42c98eee95f15a496", + "startblock": 8191436, + "endblock": 8191436, + "sort": "asc" + } + }, + "get_internal_txs_by_address_paginated": { + "module": "accounts", + "kwargs": { + "address": "0xd16a6772163463c731e37ef42c98eee95f15a496", + "startblock": 8191436, + "endblock": 8191436, + "page": 1, + "offset": 10, + "sort": "asc" + } + }, + "get_internal_txs_by_txhash": { + "module": "accounts", + "kwargs": { + "txhash": "0x55f288d70fbdcb4506a792d7cb3f5085132c5480fd06492e39a67bcb12119fe1" + } + }, + "get_internal_txs_by_block_range_paginated": { + "module": "accounts", + "kwargs": { + "startblock": 0, + "endblock": 2702578, + "page": 1, + "offset": 10, + "sort": "asc" + } + }, + "get_erc20_token_transfer_events_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x18045cdf3f619e32ff4b11df689059b4d0358d11", + "startblock": 0, + "endblock": 999999999, + "sort": "asc" + } + }, + "get_erc20_token_transfer_events_by_contract_address_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0xdf82c9014f127243ce1305dfe54151647d74b27a", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_erc20_token_transfer_events_by_address_and_contract_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0xdf82c9014f127243ce1305dfe54151647d74b27a", + "address": "0x18045cdf3f619e32ff4b11df689059b4d0358d11", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_erc721_token_transfer_events_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x0d4444a2473b2832700c693b81bc551e10e5c913", + "startblock": 0, + "endblock": 999999999, + "sort": "asc" + } + }, + "get_erc721_token_transfer_events_by_contract_address_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0xd2ae28b5cb629d9018b91acb855e35cd75f5be80", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_erc721_token_transfer_events_by_address_and_contract_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0xd2ae28b5cb629d9018b91acb855e35cd75f5be80", + "address": "0x0d4444a2473b2832700c693b81bc551e10e5c913", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_mined_blocks_by_address": { + "module": "accounts", + "kwargs": { + "address": "0xd6ae8250b8348c94847280928c79fb3b63ca453e" + } + }, + "get_mined_blocks_by_address_paginated": { + "module": "accounts", + "kwargs": { + "address": "0xd6ae8250b8348c94847280928c79fb3b63ca453e", + "page": 1, + "offset": 100 + } + }, + "get_hist_eth_balance_for_address_by_block_no": { + "module": "pro", + "kwargs": { + "address": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", + "block_no": "8000000" + } + }, + "get_daily_average_block_size": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_block_count_and_rewards": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_block_rewards": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_average_block_time": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_uncle_block_count_and_rewards": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_hist_erc20_token_total_supply_by_contract_address_and_block_no": { + "module": "pro", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", + "block_no": "8000000" + } + }, + "get_hist_erc20_token_account_balance_for_token_contract_address_by_block_no": { + "module": "pro", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", + "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761", + "block_no": "8000000" + } + }, + "get_token_info_by_contract_address": { + "module": "pro", + "kwargs": { + "contract_address": "0x0e3a2a1f2146d86a604adc220b4967a898d7fe07" + } + }, + "get_daily_average_gas_limit": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_daily_total_gas_used": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_daily_average_gas_price": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_daily_network_tx_fee": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_new_address_count": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_network_utilization": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_average_network_hash_rate": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_tx_count": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_average_network_difficulty": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_hist_daily_market_cap": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_hist_price": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + } +} diff --git a/etherscan/configs/ROPSTEN-stable.json b/etherscan/configs/ROPSTEN-stable.json new file mode 100644 index 0000000..84448f2 --- /dev/null +++ b/etherscan/configs/ROPSTEN-stable.json @@ -0,0 +1,466 @@ +{ + "get_proxy_block_number": { + "module": "proxy", + "kwargs": {} + }, + "get_proxy_block_by_number": { + "module": "proxy", + "kwargs": { + "tag": "0x10d4f" + } + }, + "get_proxy_uncle_by_block_number_and_index": { + "module": "proxy", + "kwargs": { + "tag": "0x956df5", + "index": "0x0" + } + }, + "get_proxy_block_transaction_count_by_number": { + "module": "proxy", + "kwargs": { + "tag": "0x10FB78" + } + }, + "get_proxy_transaction_by_hash": { + "module": "proxy", + "kwargs": { + "txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1" + } + }, + "get_proxy_transaction_by_block_number_and_index": { + "module": "proxy", + "kwargs": { + "tag": "0x43195c", + "index": "0x0" + } + }, + "get_proxy_transaction_count": { + "module": "proxy", + "kwargs": { + "address": "0x2910543af39aba0cd09dbb2d50200b3e800a63d2" + } + }, + "get_proxy_transaction_receipt": { + "module": "proxy", + "kwargs": { + "txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1" + } + }, + "get_proxy_call": { + "module": "proxy", + "kwargs": { + "to": "0xAEEF46DB4855E25702F8237E8f403FddcaF931C0", + "data": "0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724" + } + }, + "get_proxy_code_at": { + "module": "proxy", + "kwargs": { + "address": "0xf75e354c5edc8efed9b59ee9f67a80845ade7d0c" + } + }, + "get_proxy_storage_position_at": { + "module": "proxy", + "kwargs": { + "position": "0x0", + "address": "0x6e03d9cce9d60f3e9f2597e13cd4c54c55330cfd" + } + }, + "get_proxy_gas_price": { + "module": "proxy", + "kwargs": {} + }, + "get_proxy_est_gas": { + "module": "proxy", + "kwargs": { + "data": "0x4e71d92d", + "to": "0xf0160428a8552ac9bb7e050d90eeade4ddd52843", + "value": "0xff22", + "gas_price": "0x51da038cc", + "gas": "0x5f5e0ff" + } + }, + "get_est_confirmation_time": { + "module": "gastracker", + "kwargs": { + "gas_price": "2000000000" + } + }, + "get_gas_oracle": { + "module": "gastracker", + "kwargs": {} + }, + "get_block_reward_by_block_number": { + "module": "blocks", + "kwargs": { + "block_no": "2165403" + } + }, + "get_est_block_countdown_time_by_block_number": { + "module": "blocks", + "kwargs": { + "block_no": "99999999" + } + }, + "get_block_number_by_timestamp": { + "module": "blocks", + "kwargs": { + "timestamp": "1578638524", + "closest": "before" + } + }, + "get_total_eth_supply": { + "module": "stats", + "kwargs": {} + }, + "get_eth_last_price": { + "module": "stats", + "kwargs": {} + }, + "_get_eth_nodes_size": { + "module": "stats", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "client_type": "geth", + "sync_mode": "default", + "sort": "asc" + } + }, + "get_total_supply_by_contract_address": { + "module": "tokens", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055" + } + }, + "get_acc_balance_by_token_and_contract_address": { + "module": "tokens", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", + "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761" + } + }, + "get_contract_abi": { + "module": "contracts", + "kwargs": { + "address": "0x036af46B35c5Fe11c1C48bC0301e325738F44c4a" + } + }, + "get_contract_source_code": { + "module": "contracts", + "kwargs": { + "address": "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413" + } + }, + "get_contract_execution_status": { + "module": "transactions", + "kwargs": { + "txhash": "0x15f8e5ea1079d9a0bb04a4c58ae5fe7654b5b2b4463375ff7ffb490aa0032f3a" + } + }, + "get_tx_receipt_status": { + "module": "transactions", + "kwargs": { + "txhash": "0x513c1ba0bebf66436b5fed86ab668452b7805593c05073eb2d51d3a52f480a76" + } + }, + "get_eth_balance": { + "module": "accounts", + "kwargs": { + "address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a" + } + }, + "get_eth_balance_multiple": { + "module": "accounts", + "kwargs": { + "addresses": [ + "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a", + "0x63a9975ba31b0b9626b34300f7f627147df1f526", + "0x198ef1ec325a96cc354c7266a038be8b5c558f67" + ] + } + }, + "get_normal_txs_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x687422eea2cb73b5d3e242ba5456b782919afc85", + "startblock": 0, + "endblock": 99999999, + "sort": "asc" + } + }, + "get_normal_txs_by_address_paginated": { + "module": "accounts", + "kwargs": { + "address": "0x687422eea2cb73b5d3e242ba5456b782919afc85", + "startblock": 0, + "endblock": 99999999, + "page": 1, + "offset": 10, + "sort": "asc" + } + }, + "get_internal_txs_by_address": { + "module": "accounts", + "kwargs": { + "address": "0xf2b4e81ba39f5215db2e05b2f66f482bb8e87fd2", + "startblock": 9793067, + "endblock": 9793067, + "sort": "asc" + } + }, + "get_internal_txs_by_address_paginated": { + "module": "accounts", + "kwargs": { + "address": "0xf2b4e81ba39f5215db2e05b2f66f482bb8e87fd2", + "startblock": 9793067, + "endblock": 9793067, + "page": 1, + "offset": 10, + "sort": "asc" + } + }, + "get_internal_txs_by_txhash": { + "module": "accounts", + "kwargs": { + "txhash": "0xbfb7fd401294dd5bfbcc88842670892182bf119069ad866ac2c5e4d8511cd032" + } + }, + "get_internal_txs_by_block_range_paginated": { + "module": "accounts", + "kwargs": { + "startblock": 0, + "endblock": 2702578, + "page": 1, + "offset": 10, + "sort": "asc" + } + }, + "get_erc20_token_transfer_events_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x3ebe6781be6d436cb7999cfce8b52e40819721cb", + "startblock": 0, + "endblock": 999999999, + "sort": "asc" + } + }, + "get_erc20_token_transfer_events_by_contract_address_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0x8707a5bf4c2842d46b31a405ba41b858c0f876c4", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_erc20_token_transfer_events_by_address_and_contract_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0x8707a5bf4c2842d46b31a405ba41b858c0f876c4", + "address": "0x3ebe6781be6d436cb7999cfce8b52e40819721cb", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_erc721_token_transfer_events_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x07d48bdba7975f0daf73bd5b85a2e3ff87ffb24e", + "startblock": 9792696, + "endblock": 9792696, + "sort": "asc" + } + }, + "get_erc721_token_transfer_events_by_contract_address_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0x130116e22f3e42ab82abde6d940ef4ef14b77c86", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_erc721_token_transfer_events_by_address_and_contract_paginated": { + "module": "accounts", + "kwargs": { + "contract_address": "0x130116e22f3e42ab82abde6d940ef4ef14b77c86", + "address": "0x07d48bdba7975f0daf73bd5b85a2e3ff87ffb24e", + "page": 1, + "offset": 100, + "sort": "asc" + } + }, + "get_mined_blocks_by_address": { + "module": "accounts", + "kwargs": { + "address": "0x635b4764d1939dfacd3a8014726159abc277becc" + } + }, + "get_mined_blocks_by_address_paginated": { + "module": "accounts", + "kwargs": { + "address": "0x635b4764d1939dfacd3a8014726159abc277becc", + "page": 1, + "offset": 100 + } + }, + "get_hist_eth_balance_for_address_by_block_no": { + "module": "pro", + "kwargs": { + "address": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", + "block_no": "8000000" + } + }, + "get_daily_average_block_size": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_block_count_and_rewards": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_block_rewards": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_average_block_time": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_uncle_block_count_and_rewards": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_hist_erc20_token_total_supply_by_contract_address_and_block_no": { + "module": "pro", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", + "block_no": "8000000" + } + }, + "get_hist_erc20_token_account_balance_for_token_contract_address_by_block_no": { + "module": "pro", + "kwargs": { + "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", + "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761", + "block_no": "8000000" + } + }, + "get_token_info_by_contract_address": { + "module": "pro", + "kwargs": { + "contract_address": "0x0e3a2a1f2146d86a604adc220b4967a898d7fe07" + } + }, + "get_daily_average_gas_limit": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_daily_total_gas_used": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_daily_average_gas_price": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_daily_network_tx_fee": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_new_address_count": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_network_utilization": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_average_network_hash_rate": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_tx_count": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_daily_average_network_difficulty": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_hist_daily_market_cap": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + }, + "get_eth_hist_price": { + "module": "pro", + "kwargs": { + "start_date": "2019-02-01", + "end_date": "2019-02-28", + "sort": "asc" + } + } +} From 87be4c62064f01fe42a8ae2021fbc2fad44d688c Mon Sep 17 00:00:00 2001 From: litneet64 Date: Mon, 8 Mar 2021 03:55:33 -0300 Subject: [PATCH 34/47] Added testnet example in Usage --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5dc6b62..16d5d18 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ [![DOI](https://zenodo.org/badge/298646404.svg)](https://zenodo.org/badge/latestdoi/298646404) -A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). All standard and pro endpoints are provided. +A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). All standard and pro endpoints are provided. Görli, Kovan, Rinkeby and Ropsten endpoints are supported. Available on [PyPI](https://pypi.org/project/etherscan-python/). Powered by [Etherscan.io APIs](https://etherscan.io/apis#misc). @@ -193,6 +193,10 @@ eth.get_eth_balance(address="0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a") > '40891631566070000000000' ``` +You can also choose one of the other testnets: +``` python +eth = Etherscan(YOUR_API_KEY, net="ropsten") # net name is case-insensitive, default is main +``` ## Examples From 799f92eeb3bac7e386f2dc821eb731e92e9c3794 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Tue, 16 Mar 2021 19:41:35 +0100 Subject: [PATCH 35/47] Updated badges --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5dc6b62..3c8b034 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ [![CodeFactor](https://www.codefactor.io/repository/github/pcko1/etherscan-python/badge)](https://www.codefactor.io/repository/github/pcko1/etherscan-python) [![PyPI](https://badge.fury.io/py/etherscan-python.svg)](https://badge.fury.io/py/etherscan-python) +![PyPI - Downloads](https://img.shields.io/pypi/dm/etherscan-python) ![GitHub](https://img.shields.io/github/license/pcko1/etherscan-python) [![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-385/) [![DOI](https://zenodo.org/badge/298646404.svg)](https://zenodo.org/badge/latestdoi/298646404) From cc4b735a9e349042673f1e81161f2a4db2e5590f Mon Sep 17 00:00:00 2001 From: pcko1 Date: Wed, 31 Mar 2021 13:09:02 +0200 Subject: [PATCH 36/47] Removed pro config from testnets --- etherscan/configs/GOERLI-stable.json | 158 +------------------------- etherscan/configs/KOVAN-stable.json | 158 +------------------------- etherscan/configs/RINKEBY-stable.json | 158 +------------------------- etherscan/configs/ROPSTEN-stable.json | 158 +------------------------- etherscan/etherscan.py | 2 +- 5 files changed, 5 insertions(+), 629 deletions(-) diff --git a/etherscan/configs/GOERLI-stable.json b/etherscan/configs/GOERLI-stable.json index ba9da4d..4dbe408 100644 --- a/etherscan/configs/GOERLI-stable.json +++ b/etherscan/configs/GOERLI-stable.json @@ -306,161 +306,5 @@ "page": 1, "offset": 100 } - }, - "get_hist_eth_balance_for_address_by_block_no": { - "module": "pro", - "kwargs": { - "address": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", - "block_no": "8000000" - } - }, - "get_daily_average_block_size": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_block_count_and_rewards": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_block_rewards": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_average_block_time": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_uncle_block_count_and_rewards": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_hist_erc20_token_total_supply_by_contract_address_and_block_no": { - "module": "pro", - "kwargs": { - "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", - "block_no": "8000000" - } - }, - "get_hist_erc20_token_account_balance_for_token_contract_address_by_block_no": { - "module": "pro", - "kwargs": { - "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", - "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761", - "block_no": "8000000" - } - }, - "get_token_info_by_contract_address": { - "module": "pro", - "kwargs": { - "contract_address": "0x0e3a2a1f2146d86a604adc220b4967a898d7fe07" - } - }, - "get_daily_average_gas_limit": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_daily_total_gas_used": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_daily_average_gas_price": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_daily_network_tx_fee": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_new_address_count": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_network_utilization": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_average_network_hash_rate": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_tx_count": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_average_network_difficulty": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_hist_daily_market_cap": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_hist_price": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } } -} +} \ No newline at end of file diff --git a/etherscan/configs/KOVAN-stable.json b/etherscan/configs/KOVAN-stable.json index dff391d..a8ac91f 100644 --- a/etherscan/configs/KOVAN-stable.json +++ b/etherscan/configs/KOVAN-stable.json @@ -306,161 +306,5 @@ "page": 1, "offset": 100 } - }, - "get_hist_eth_balance_for_address_by_block_no": { - "module": "pro", - "kwargs": { - "address": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", - "block_no": "8000000" - } - }, - "get_daily_average_block_size": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_block_count_and_rewards": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_block_rewards": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_average_block_time": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_uncle_block_count_and_rewards": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_hist_erc20_token_total_supply_by_contract_address_and_block_no": { - "module": "pro", - "kwargs": { - "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", - "block_no": "8000000" - } - }, - "get_hist_erc20_token_account_balance_for_token_contract_address_by_block_no": { - "module": "pro", - "kwargs": { - "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", - "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761", - "block_no": "8000000" - } - }, - "get_token_info_by_contract_address": { - "module": "pro", - "kwargs": { - "contract_address": "0x0e3a2a1f2146d86a604adc220b4967a898d7fe07" - } - }, - "get_daily_average_gas_limit": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_daily_total_gas_used": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_daily_average_gas_price": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_daily_network_tx_fee": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_new_address_count": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_network_utilization": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_average_network_hash_rate": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_tx_count": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_average_network_difficulty": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_hist_daily_market_cap": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_hist_price": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } } -} +} \ No newline at end of file diff --git a/etherscan/configs/RINKEBY-stable.json b/etherscan/configs/RINKEBY-stable.json index f288c3b..3ca8296 100644 --- a/etherscan/configs/RINKEBY-stable.json +++ b/etherscan/configs/RINKEBY-stable.json @@ -306,161 +306,5 @@ "page": 1, "offset": 100 } - }, - "get_hist_eth_balance_for_address_by_block_no": { - "module": "pro", - "kwargs": { - "address": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", - "block_no": "8000000" - } - }, - "get_daily_average_block_size": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_block_count_and_rewards": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_block_rewards": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_average_block_time": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_uncle_block_count_and_rewards": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_hist_erc20_token_total_supply_by_contract_address_and_block_no": { - "module": "pro", - "kwargs": { - "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", - "block_no": "8000000" - } - }, - "get_hist_erc20_token_account_balance_for_token_contract_address_by_block_no": { - "module": "pro", - "kwargs": { - "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", - "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761", - "block_no": "8000000" - } - }, - "get_token_info_by_contract_address": { - "module": "pro", - "kwargs": { - "contract_address": "0x0e3a2a1f2146d86a604adc220b4967a898d7fe07" - } - }, - "get_daily_average_gas_limit": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_daily_total_gas_used": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_daily_average_gas_price": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_daily_network_tx_fee": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_new_address_count": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_network_utilization": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_average_network_hash_rate": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_tx_count": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_average_network_difficulty": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_hist_daily_market_cap": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_hist_price": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } } -} +} \ No newline at end of file diff --git a/etherscan/configs/ROPSTEN-stable.json b/etherscan/configs/ROPSTEN-stable.json index 84448f2..012856e 100644 --- a/etherscan/configs/ROPSTEN-stable.json +++ b/etherscan/configs/ROPSTEN-stable.json @@ -306,161 +306,5 @@ "page": 1, "offset": 100 } - }, - "get_hist_eth_balance_for_address_by_block_no": { - "module": "pro", - "kwargs": { - "address": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", - "block_no": "8000000" - } - }, - "get_daily_average_block_size": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_block_count_and_rewards": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_block_rewards": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_average_block_time": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_uncle_block_count_and_rewards": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_hist_erc20_token_total_supply_by_contract_address_and_block_no": { - "module": "pro", - "kwargs": { - "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", - "block_no": "8000000" - } - }, - "get_hist_erc20_token_account_balance_for_token_contract_address_by_block_no": { - "module": "pro", - "kwargs": { - "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055", - "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761", - "block_no": "8000000" - } - }, - "get_token_info_by_contract_address": { - "module": "pro", - "kwargs": { - "contract_address": "0x0e3a2a1f2146d86a604adc220b4967a898d7fe07" - } - }, - "get_daily_average_gas_limit": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_daily_total_gas_used": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_daily_average_gas_price": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_daily_network_tx_fee": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_new_address_count": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_network_utilization": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_average_network_hash_rate": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_tx_count": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_daily_average_network_difficulty": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_hist_daily_market_cap": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } - }, - "get_eth_hist_price": { - "module": "pro", - "kwargs": { - "start_date": "2019-02-01", - "end_date": "2019-02-28", - "sort": "asc" - } } -} +} \ No newline at end of file diff --git a/etherscan/etherscan.py b/etherscan/etherscan.py index a8e9b50..5749aa8 100644 --- a/etherscan/etherscan.py +++ b/etherscan/etherscan.py @@ -29,7 +29,7 @@ def wrapper(*args, **kwargs): f"{fields.API_KEY}" f"{api_key}" ) - r = requests.get(url, headers={'User-Agent':''}) + r = requests.get(url, headers={"User-Agent": ""}) return parser.parse(r) return wrapper From d6f1977ce3c8325cf6a63c26d8fbdb3e7dfe85d7 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Wed, 31 Mar 2021 13:17:41 +0200 Subject: [PATCH 37/47] Updated README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 554da74..0bffc64 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ [![DOI](https://zenodo.org/badge/298646404.svg)](https://zenodo.org/badge/latestdoi/298646404) -A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). All standard and pro endpoints are provided. Görli, Kovan, Rinkeby and Ropsten endpoints are supported. +A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). All standard and pro endpoints are provided and Görli, Kovan, Rinkeby and Ropsten testnets are also supported. Available on [PyPI](https://pypi.org/project/etherscan-python/). Powered by [Etherscan.io APIs](https://etherscan.io/apis#misc). From b85f89af9f56303dedd327c28efc26d17ac179ac Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Wed, 31 Mar 2021 13:18:11 +0200 Subject: [PATCH 38/47] Updated README --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0bffc64..de352d1 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,9 @@ [![DOI](https://zenodo.org/badge/298646404.svg)](https://zenodo.org/badge/latestdoi/298646404) -A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). All standard and pro endpoints are provided and Görli, Kovan, Rinkeby and Ropsten testnets are also supported. +A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). + +All standard and pro endpoints are provided and Görli, Kovan, Rinkeby and Ropsten testnets are also supported. Available on [PyPI](https://pypi.org/project/etherscan-python/). Powered by [Etherscan.io APIs](https://etherscan.io/apis#misc). From 94ee6e2d48470a8bd0dfbe6509676d3706245f61 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Wed, 31 Mar 2021 13:19:34 +0200 Subject: [PATCH 39/47] Updated version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e7751de..9a4410a 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="etherscan-python", - version="2.0.2", + version="2.1.0", description="A minimal, yet complete, python API for etherscan.io.", url="https://github.com/pcko1/etherscan-python", author="Panagiotis-Christos Kotsias", From 4cef04277588204245fa27a64298de2c13dad914 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Wed, 31 Mar 2021 13:48:09 +0200 Subject: [PATCH 40/47] Updated README --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index de352d1..731341e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # etherscan-python -[![Build Status](https://travis-ci.com/pcko1/etherscan-python.svg?branch=master)](https://travis-ci.com/pcko1/etherscan-python) [![Build Status](https://github.com/pcko1/etherscan-python/workflows/build/badge.svg)](https://github.com/pcko1/etherscan-python) [![codecov](https://codecov.io/gh/pcko1/etherscan-python/branch/master/graph/badge.svg)](https://codecov.io/gh/pcko1/etherscan-python) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/6db2e36886ee46f58720c6131ef58dd6)](https://app.codacy.com/gh/pcko1/etherscan-python?utm_source=github.com&utm_medium=referral&utm_content=pcko1/etherscan-python&utm_campaign=Badge_Grade) From c3262d8d85690498e7ad3659161bcc208f8ad186 Mon Sep 17 00:00:00 2001 From: pcko1 Date: Wed, 31 Mar 2021 13:49:11 +0200 Subject: [PATCH 41/47] Removed Travis --- .travis.yml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e0cae0b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: python -python: -- '3.8' -install: -- pip install git+https://github.com/pcko1/etherscan-python.git coverage -script: -- coverage run -m unittest discover && coverage report -m -- bash <(curl -s https://codecov.io/bash) -env: - global: - - secure: ozKF63ysgAWWsr5R47T/B+u94L6pq89onaSfmqnmzmup8gS6WVnAE5yviuM3y9Il3BihXbxw5VUBx5lIwLg6MV4fCubxcNH+4qVjxGe1kxsjoT4wW8luJkkWGbvT+afGWaWU8AGWLTgqjYZrfkgTPxmNC/ulwoAHJra297ZvoGZEAcAZ/Y2vQ4u9JP2H3C3AJMhIdH/fuPf7DwKCvU4ufAhszJNbosSsaAxSndrecgHeQCxz+4RhX+a8XqIMTjys+DahSc4b5NRc/xJ/D1KMoNgtzj0yKldkcXhL1ykKW7S541ATKOrZLUqL924tlNdtm/IOvQ1Xy8xoR47rg+xAanj5SjiW0dsI+BIw94D4mIKVpKSB4wa3/ZxRKyw5fG5NUEFT/kdqp9vVz3n+x8nSNxV9x7yS0N/2fyACT2j+75aQhXvXI55WTleX9znsLRXFuTb0g0p7s3G/Bk+GS1gfJGdp/mRzdF80A0aMI5L+CY9e2G8VerQt93Is9w7+Ny3+XA4kSt+s0w/TzUSvv9y/BobSC2ZBiLltEaLups9VW5lCaWSgQLCr42rtHgMrduwzyagDGUlKUp5F8+Q1dMn0IpHEsjzwAl5SNuw8EoT9amBbWcR4d/Q+eqQ0JiHTbR2pwNs8bjYjIq4cXlze2BgYOZGStB1oMlfH9XSA7SrH7ns= From 7bf3e633b62ae791e3c034385fd4a8d9b7cfbf98 Mon Sep 17 00:00:00 2001 From: EggPool <33421807+EggPool@users.noreply.github.com> Date: Fri, 9 Apr 2021 16:14:05 +0200 Subject: [PATCH 42/47] Fallback to backport Auto fallback to use the backport for pre 3.7 pythons. --- etherscan/etherscan.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etherscan/etherscan.py b/etherscan/etherscan.py index 5749aa8..9238a1c 100644 --- a/etherscan/etherscan.py +++ b/etherscan/etherscan.py @@ -1,5 +1,8 @@ import json -from importlib import resources +try: + from importlib import resources +except ImportError: + import importlib_resources as resources import requests From 575a1e7d9e258bdf594e794c2ecbdf0948de6271 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Sun, 11 Apr 2021 13:55:20 +0200 Subject: [PATCH 43/47] Fixed for 100% codecov --- etherscan/etherscan.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/etherscan/etherscan.py b/etherscan/etherscan.py index 9238a1c..5749aa8 100644 --- a/etherscan/etherscan.py +++ b/etherscan/etherscan.py @@ -1,8 +1,5 @@ import json -try: - from importlib import resources -except ImportError: - import importlib_resources as resources +from importlib import resources import requests From 3dd94721804bbcbc8d13f0e38405e2ffa41c781d Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Thu, 15 Apr 2021 09:22:57 +0200 Subject: [PATCH 44/47] Added delay because of rate-limit --- test/test_modules.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_modules.py b/test/test_modules.py index 65e669b..632211d 100644 --- a/test/test_modules.py +++ b/test/test_modules.py @@ -1,5 +1,6 @@ import json from datetime import datetime +import time import os from unittest import TestCase @@ -44,6 +45,7 @@ def methods(self, net): "res": res, } dump(log, fname) + time.sleep(0.1) def test_net_methods(self): for net in self._NETS: From 584cd1b2014a51dcb05ed0c5c965b4d04d3544ac Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Wed, 21 Apr 2021 23:55:21 +0200 Subject: [PATCH 45/47] =?UTF-8?q?Removed=20G=C3=B6rli=20testnet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_modules.py b/test/test_modules.py index 632211d..bf10567 100644 --- a/test/test_modules.py +++ b/test/test_modules.py @@ -23,7 +23,7 @@ def dump(data, fname): class Case(TestCase): _MODULE = "" - _NETS = ["MAIN", "GOERLI", "KOVAN", "RINKEBY", "ROPSTEN"] + _NETS = ["MAIN", "KOVAN", "RINKEBY", "ROPSTEN"] def methods(self, net): print(f"\nNET: {net}") From 06b76428efcaa4d7d147ae612cbe86429e0c719f Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Wed, 21 Apr 2021 23:58:00 +0200 Subject: [PATCH 46/47] Updated README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 731341e..3a415f6 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). -All standard and pro endpoints are provided and Görli, Kovan, Rinkeby and Ropsten testnets are also supported. +All standard and pro endpoints are provided. Kovan, Rinkeby and Ropsten testnets are also supported. Available on [PyPI](https://pypi.org/project/etherscan-python/). Powered by [Etherscan.io APIs](https://etherscan.io/apis#misc). From e059d7c91071d8999b8aaf90edb9bf7c488a110d Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Thu, 22 Apr 2021 00:02:26 +0200 Subject: [PATCH 47/47] Added time.sleep to avoid rate limits in unittests --- test/test_modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_modules.py b/test/test_modules.py index bf10567..8ad9f9b 100644 --- a/test/test_modules.py +++ b/test/test_modules.py @@ -45,7 +45,7 @@ def methods(self, net): "res": res, } dump(log, fname) - time.sleep(0.1) + time.sleep(0.5) def test_net_methods(self): for net in self._NETS: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy