ape-ens-0.6.0


توضیحات

ape-ens: Ape plugin for ENS argument conversion and contracts
ویژگی مقدار
سیستم عامل POSIX
نام فایل ape-ens-0.6.0
نام ape-ens
نسخه کتابخانه 0.6.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده ApeWorX Ltd.
ایمیل نویسنده admin@apeworx.io
آدرس صفحه اصلی https://github.com/ApeWorX/ape-ens
آدرس اینترنتی https://pypi.org/project/ape-ens/
مجوز Apache-2.0
# Quick Start Ape plugin for ENS argument conversion and contracts ## Dependencies - [python3](https://www.python.org/downloads) version 3.8 or greater, python3-dev ## Installation ### via `pip` You can install the latest release via [`pip`](https://pypi.org/project/pip/): ```bash pip install ape-ens ``` ### via `setuptools` You can clone the repository and use [`setuptools`](https://github.com/pypa/setuptools) for the most up-to-date version: ```bash git clone https://github.com/ApeWorX/ape-ens.git cd ape-ens python3 setup.py install ``` ## Quick Usage The ENS plugin requires a mainnet connection to resolve ENS names because ENS contracts are only deployed to mainnet. Thus, the first thing you should do is ensure you have configured a mainnet provider. For example, if you use `infura` or `alchemy`, install the associated plugin: ```bash ape plugins install infura ``` Afterwards, you should see it in the output of the `list` command: ```bash $ ape plugins list Installed Plugins: infura 0.4.0 ... ``` After your provider plugin of choice is installed, configure it to be your default mainnet provider in your `ape-config.yaml` file: ```yaml ethereum: mainnet: default_provider: infura ``` Finally, you can start the ape console using any network of your choice: ```bash ape console --network :rinkeby:infura ``` Then, convert an `ens` domain to an `AddressType`: ```python In [1]: from ape.types import AddressType In [2]: convert("vitalik.eth", AddressType) Out[2]: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045' ``` The ENS plugin temporarily connects to mainnet, caches the address resolution, and then your original network uses the result.


نیازمندی

مقدار نام
<0.7,>=0.6.0 eth-ape
- web3
>=6.0 pytest
- pytest-xdist
- pytest-cov
- pytest-mock
- ape-polygon
>=22.12.0 black
>=0.991 mypy
- types-setuptools
>=5.0.4 flake8
>=5.10.1 isort
>=0.7.16 mdformat
>=0.3.5 mdformat-gfm
>=0.4.1 mdformat-frontmatter
<4,>=3.4.3 Sphinx
<1,>=0.1.9 sphinx-rtd-theme
<20,>=19.2.0 towncrier
- setuptools
- setuptools-scm
- wheel
- twine
- commitizen
- pre-commit
- pytest-watch
- IPython
- ipdb
<4,>=3.4.3 Sphinx
<1,>=0.1.9 sphinx-rtd-theme
<20,>=19.2.0 towncrier
>=22.12.0 black
>=0.991 mypy
- types-setuptools
>=5.0.4 flake8
>=5.10.1 isort
>=0.7.16 mdformat
>=0.3.5 mdformat-gfm
>=0.4.1 mdformat-frontmatter
- setuptools
- setuptools-scm
- wheel
- twine
>=6.0 pytest
- pytest-xdist
- pytest-cov
- pytest-mock
- ape-polygon


زبان مورد نیاز

مقدار نام
>=3.8,<4 Python


نحوه نصب


نصب پکیج whl ape-ens-0.6.0:

    pip install ape-ens-0.6.0.whl


نصب پکیج tar.gz ape-ens-0.6.0:

    pip install ape-ens-0.6.0.tar.gz