mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-11 01:28:17 +03:00
3b084a165b
* 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
12 lines
325 B
Python
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
|
|
}
|