chia-blockchain/chia/cmds/units.py
Matt Hauff ba826da8fd
Fix sending CATs with the CLI (#9934)
* Re-add CAT sending to send CLI

* Fix missing memo param

* Address comments by @altendky

* mypy
2022-01-25 12:54:51 -08:00

10 lines
293 B
Python

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
}