chia-blockchain/chia/cmds/units.py
Kyle Altendorf 3b084a165b
configure isort to add the future annotations import (#13327)
* configure isort to add the future annotations import

* apply the new isort setting

* remove type ignores for new mypy (#13539)

https://pypi.org/project/mypy/0.981/

* another
2022-09-30 03:40:22 -05:00

12 lines
325 B
Python

from __future__ import annotations
from typing import Dict
# The rest of the codebase uses mojos everywhere.
# Only use these units for user facing interfaces.
units: Dict[str, int] = {
"chia": 10**12, # 1 chia (XCH) is 1,000,000,000,000 mojo (1 trillion)
"mojo": 1,
"cat": 10**3, # 1 CAT is 1000 CAT mojos
}