Skip to content

Commit

Permalink
Add classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Sep 11, 2024
1 parent 07a5b01 commit 770b6c8
Show file tree
Hide file tree
Showing 123 changed files with 4,098 additions and 0 deletions.
65 changes: 65 additions & 0 deletions src/main/java/com/lbry/database/Prefix.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
package com.lbry.database;

public enum Prefix{
CLAIM_TO_SUPPORT('K'),
SUPPORT_TO_CLAIM('L'),

CLAIM_TO_TXO('E'),
TXO_TO_CLAIM('G'),

CLAIM_TO_CHANNEL('I'),
CHANNEL_TO_CLAIM('J'),

CLAIM_SHORT_ID_PREFIX('F'),
BID_ORDER('D'),
CLAIM_EXPIRATION('O'),

CLAIM_TAKEOVER('P'),
PENDING_ACTIVATION('Q'),
ACTIVATED_CLAIM_AND_SUPPORT('R'),
ACTIVE_AMOUNT('S'),

REPOST('V'),
REPOSTED_CLAIM('W'),

UNDO('M'),
TOUCHED_OR_DELETED('Y'),

TX('B'),
BLOCK_HASH('C'),
HEADER('H'),
TX_NUM('N'),
TX_COUNT('T'),
TX_HASH('X'),
UTXO('u'),
HASHX_UTXO('h'),
HASHX_HISTORY('x'),
DB_STATE('s'),
CHANNEL_COUNT('Z'),
SUPPORT_AMOUNT('a'),
BLOCK_TX('b'),
TRENDING_NOTIFICATION('c'),
MEMPOOL_TX('d'),
TOUCHED_HASHX('e'),
HASHX_STATUS('f'),
HASHX_MEMPOOL_STATUS('g'),
REPOSTED_COUNT('j'),
EFFECTIVE_AMOUNT('i'),
FUTURE_EFFECTIVE_AMOUNT('k'),
HASHX_HISTORY_HASH('l');

private final byte value;

Prefix(char value){
this((byte) value);
}

Prefix(byte value){
this.value = value;
}

public byte getValue(){
return this.value;
}

}
Loading

0 comments on commit 770b6c8

Please sign in to comment.