mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-28 18:14:19 -05:00
* manual python 3.8 removals * poetry * pyupgrade * black * isort * manually tidy imports * work around shadowed type * catch up build network protocol files for pyupgrade changes * placate pylint * re-enable 20.04 * placate flake8
10 lines
300 B
Python
10 lines
300 B
Python
from __future__ import annotations
|
|
|
|
# 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
|
|
}
|