lbry-sdk/lbry/wallet/constants.py

28 lines
369 B
Python
Raw Normal View History

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