Skip to content

Commit 0aeb1d4

Browse files
committed
adjust keys
1 parent 5466c48 commit 0aeb1d4

File tree

4 files changed

+32
-30
lines changed

4 files changed

+32
-30
lines changed

x/dlc/types/keys.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ var (
3434
NonceKeyPrefix = []byte{0x15} // prefix for each key to a nonce
3535
NonceByValueKeyPrefix = []byte{0x16} // key prefix for the nonce value
3636
EventKeyPrefix = []byte{0x17} // prefix for each key to an event
37-
EventByStatusKeyPrefix = []byte{0x18} // prefix for each key to an event by status
38-
EventByPriceKeyPrefix = []byte{0x19} // prefix for each key to an event by triggering price
39-
CurrentEventPriceKeyPrefix = []byte{0x20} // key prefix for the current event price
40-
EventByDateKeyPrefix = []byte{0x21} // prefix for each key to an event by date
41-
CurrentEventDateKey = []byte{0x22} // key for the current event date
42-
PendingLendingEventKeyPrefix = []byte{0x23} // key prefix for the pending lending event
43-
AttestationKeyPrefix = []byte{0x24} // prefix for each key to an attestation
44-
AttestationByEventKeyPrefix = []byte{0x25} // prefix for each key to an attestation by event
45-
TriggeredPriceEventQueueKeyPrefix = []byte{0x26} // key prefix for triggered price event queue
46-
TriggeredPriceEventQueueCountKeyPrefix = []byte{0x27} // key prefix for triggered price event queue count
37+
EventByPriceKeyPrefix = []byte{0x18} // prefix for each key to an event by triggering price
38+
CurrentEventPriceKeyPrefix = []byte{0x19} // key prefix for the current event price
39+
EventByDateKeyPrefix = []byte{0x20} // prefix for each key to an event by date
40+
CurrentEventDateKey = []byte{0x21} // key for the current event date
41+
PendingLendingEventKeyPrefix = []byte{0x22} // key prefix for the pending lending event
42+
AttestationKeyPrefix = []byte{0x23} // prefix for each key to an attestation
43+
AttestationByEventKeyPrefix = []byte{0x24} // prefix for each key to an attestation by event
44+
TriggeredPriceEventQueueKeyPrefix = []byte{0x25} // key prefix for triggered price event queue
45+
TriggeredPriceEventQueueCountKeyPrefix = []byte{0x26} // key prefix for triggered price event queue count
4746

4847
OracleParticipantLivenessKeyPrefix = []byte{0x30} // key prefix for oracle participant liveness
48+
EventByStatusKeyPrefix = []byte{0x31} // prefix for each key to an event by status
4949
)
5050

5151
func OracleKey(id uint64) []byte {

x/lending/types/keys.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ var (
3333

3434
PoolKeyPrefix = []byte{0x10}
3535
LoanKeyPrefix = []byte{0x11}
36-
LoanByStatusKeyPrefix = []byte{0x12}
37-
LoanByAddressKeyPrefix = []byte{0x13}
38-
LoanByOracleKeyPrefix = []byte{0x14}
39-
AuthorizationIdKeyPrefix = []byte{0x15}
40-
DepositLogKeyPrefix = []byte{0x16}
41-
RepaymentKeyPrefix = []byte{0x17}
42-
DLCMetaKeyPrefix = []byte{0x18}
43-
RedemptionKeyPrefix = []byte{0x19}
44-
45-
ReferrerKeyPrefix = []byte{0x20}
36+
LoanByAddressKeyPrefix = []byte{0x12}
37+
AuthorizationIdKeyPrefix = []byte{0x13}
38+
DepositLogKeyPrefix = []byte{0x14}
39+
RepaymentKeyPrefix = []byte{0x15}
40+
DLCMetaKeyPrefix = []byte{0x16}
41+
RedemptionKeyPrefix = []byte{0x17}
42+
43+
ReferrerKeyPrefix = []byte{0x20}
44+
LoanByStatusKeyPrefix = []byte{0x21}
45+
LoanByOracleKeyPrefix = []byte{0x22}
4646
)
4747

4848
func PoolKey(id string) []byte {

x/liquidation/types/keys.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ var (
2424
LiquidationRecordIdKey = []byte{0x03} // key for liquidation record id
2525

2626
LiquidationKeyPrefix = []byte{0x10} // prefix for each key to a liquidation
27-
LiquidationByStatusKeyPrefix = []byte{0x11} // prefix for each key to a liquidation by status
28-
LiquidationRecordKeyPrefix = []byte{0x12} // prefix for each key to a liquidation record
29-
LiquidationRecordByLiquidationKeyPrefix = []byte{0x13} // prefix for each key to a liquidation record by liquidation
27+
LiquidationRecordKeyPrefix = []byte{0x11} // prefix for each key to a liquidation record
28+
LiquidationRecordByLiquidationKeyPrefix = []byte{0x12} // prefix for each key to a liquidation record by liquidation
29+
30+
LiquidationByStatusKeyPrefix = []byte{0x20} // prefix for each key to a liquidation by status
3031
)
3132

3233
func LiquidationKey(id uint64) []byte {

x/tss/types/keys.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ var (
2424
SigningRequestIdKey = []byte{0x03} // key for signing request id
2525
RefreshingRequestIdKey = []byte{0x04} // key for refreshing request id
2626

27-
DKGRequestKeyPrefix = []byte{0x10} // key prefix for the dkg request
28-
DKGRequestByStatusKeyPrefix = []byte{0x11} // key prefix for the dkg request by status
29-
DKGCompletionKeyPrefix = []byte{0x12} // key prefix for the dkg completion
30-
SigningRequestKeyPrefix = []byte{0x13} // key prefix for the signing request
31-
SigningRequestByStatusKeyPrefix = []byte{0x14} // key prefix for the signing request by status
32-
RefreshingRequestKeyPrefix = []byte{0x15} // key prefix for the refreshing request
33-
RefreshingCompletionKeyPrefix = []byte{0x16} // key prefix for the refreshing completion
27+
DKGRequestKeyPrefix = []byte{0x10} // key prefix for the dkg request
28+
DKGCompletionKeyPrefix = []byte{0x11} // key prefix for the dkg completion
29+
SigningRequestKeyPrefix = []byte{0x12} // key prefix for the signing request
30+
RefreshingRequestKeyPrefix = []byte{0x13} // key prefix for the refreshing request
31+
RefreshingCompletionKeyPrefix = []byte{0x14} // key prefix for the refreshing completion
32+
33+
DKGRequestByStatusKeyPrefix = []byte{0x20} // key prefix for the dkg request by status
34+
SigningRequestByStatusKeyPrefix = []byte{0x21} // key prefix for the signing request by status
3435
)
3536

3637
func DKGRequestKey(id uint64) []byte {

0 commit comments

Comments
 (0)