2021-02-19 13:19:58 -05:00
|
|
|
import enum
|
|
|
|
|
|
|
|
|
2021-06-02 11:00:27 -04:00
|
|
|
@enum.unique
|
2021-02-19 13:19:58 -05:00
|
|
|
class DB_PREFIXES(enum.Enum):
|
|
|
|
claim_to_support = b'K'
|
|
|
|
support_to_claim = b'L'
|
|
|
|
|
|
|
|
claim_to_txo = b'E'
|
|
|
|
txo_to_claim = b'G'
|
|
|
|
|
|
|
|
claim_to_channel = b'I'
|
|
|
|
channel_to_claim = b'J'
|
|
|
|
|
|
|
|
claim_short_id_prefix = b'F'
|
2021-07-03 11:48:22 -04:00
|
|
|
effective_amount = b'D'
|
2021-02-21 17:26:13 -05:00
|
|
|
claim_expiration = b'O'
|
2021-02-19 13:19:58 -05:00
|
|
|
|
2021-05-05 16:17:32 -04:00
|
|
|
claim_takeover = b'P'
|
|
|
|
pending_activation = b'Q'
|
2021-05-20 13:31:40 -04:00
|
|
|
activated_claim_and_support = b'R'
|
|
|
|
active_amount = b'S'
|
2021-05-05 16:17:32 -04:00
|
|
|
|
2021-06-02 11:00:27 -04:00
|
|
|
repost = b'V'
|
|
|
|
reposted_claim = b'W'
|
|
|
|
|
2021-07-14 13:39:06 -04:00
|
|
|
undo = b'M'
|
2021-07-16 14:46:46 -04:00
|
|
|
claim_diff = b'Y'
|
2021-07-14 13:39:06 -04:00
|
|
|
|
|
|
|
tx = b'B'
|
|
|
|
block_hash = b'C'
|
|
|
|
header = b'H'
|
|
|
|
tx_num = b'N'
|
|
|
|
tx_count = b'T'
|
|
|
|
tx_hash = b'X'
|
|
|
|
utxo = b'u'
|
|
|
|
hashx_utxo = b'h'
|
|
|
|
hashx_history = b'x'
|
2021-02-24 15:20:44 -05:00
|
|
|
db_state = b's'
|
2021-10-04 16:38:28 -04:00
|
|
|
channel_count = b'Z'
|
|
|
|
support_amount = b'a'
|
2021-10-12 00:03:11 -04:00
|
|
|
block_txs = b'b'
|