lbry-sdk/lbry/wallet/constants.py

28 lines
369 B
Python
Raw Normal View History

2020-01-02 22:18:49 -05:00
NULL_HASH32 = b'\x00'*32
CENT = 1000000
COIN = 100*CENT
TIMEOUT = 30.0
2019-09-13 09:21:02 -04:00
TXO_TYPES = {
2020-03-07 00:34:47 -05:00
"other": 0,
2019-09-13 09:21:02 -04:00
"stream": 1,
"channel": 2,
"support": 3,
2019-11-12 12:17:35 -05:00
"purchase": 4,
"collection": 5,
"repost": 6,
2019-09-13 09:21:02 -04:00
}
2019-11-13 17:50:35 -05:00
2020-03-07 00:34:47 -05:00
CLAIM_TYPE_NAMES = [
'stream',
'channel',
'collection',
'repost',
]
2019-11-13 17:50:35 -05:00
CLAIM_TYPES = [
2020-03-07 00:34:47 -05:00
TXO_TYPES[name] for name in CLAIM_TYPE_NAMES
2019-11-13 17:50:35 -05:00
]