معرفی شرکت ها


ape-tokens-0.6.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

ape-tokens: tokenlists plugin for Ape
ویژگی مقدار
سیستم عامل -
نام فایل ape-tokens-0.6.0
نام ape-tokens
نسخه کتابخانه 0.6.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده ApeWorX Ltd.
ایمیل نویسنده admin@apeworx.io
آدرس صفحه اصلی https://github.com/ApeWorX/ape-tokens
آدرس اینترنتی https://pypi.org/project/ape-tokens/
مجوز Apache-2.0
# Quick Start A series of utilities for working with tokens, based on the [`py-tokenlists`](https://github.com/ApeWorX/py-tokenlists). ## 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-tokens ``` ### 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-tokens.git cd ape-tokens python3 setup.py install ``` ## Quick Usage ### CLI Usage First, install a token list, such as the `1inch` token list, which contains many tokens that you can use: ```bash ape tokens install tokens.1inch.eth ``` To see all the tokens you can use, run command: ```bash ape tokens list-tokens ``` To see other available CLI commands, run: ```bash ape tokens --help ``` ### Python Usage One of the main reasons to use the `ape-tokens` plugin is to have nicer UX for providing token amounts to contract transactions. For example, let's say you have a smart-contract named `MyContract` with a function `provideLinkToken()` that takes a decimal value of `LINK` tokens. The following is an example script that deploys the contract and makes a transaction by expressing the value of LINK as `8.23 LINK`: ```python from ape import accounts, project my_account = accounts[0] contract = my_account.deploy(project.MyContract) contract.provideLinkTokens("8.23 LINK") ``` Alternatively, if you need the converted value returned to you, you can use the `convert` tool from the root `ape` namespace: ```python from ape import convert convert("100.1234 BAT", int) ``` Lastly, to get information about a token, including its contract address, you can do so by importing the `tokens` member from the root `ape_tokens` namespace: ```python from ape_tokens import tokens bat = tokens["BAT"] print(bat.address) ```


نیازمندی

مقدار نام
<0.7,>=0.6.0 eth-ape
>=0.1.1 tokenlists
>=6.0 pytest
- pytest-xdist
- pytest-cov
<7.0,>=6.2.0 hypothesis
>=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
<7.0,>=6.2.0 hypothesis


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

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


نحوه نصب


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

    pip install ape-tokens-0.6.0.whl


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

    pip install ape-tokens-0.6.0.tar.gz