xch-blockchain/chia/cmds/units.py

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
}