Skip to content

Commit efb349c

Browse files
committed
clean up
1 parent 6d02f18 commit efb349c

4 files changed

Lines changed: 13 additions & 29 deletions

File tree

x/dlc/types/events.go

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,13 @@ package types
44
const (
55
EventTypeCreateOracle = "create_oracle"
66
EventTypeCreateDCM = "create_dcm"
7-
EventTypeGenerateNonce = "generate_nonces"
87
EventTypeTriggerDLCEvent = "trigger_dlc_event"
98

109
AttributeKeyPubKey = "pub_key"
1110

12-
AttributeKeyId = "id"
13-
AttributeKeyDLCEventType = "dlc_event_type"
14-
AttributeKeyParticipants = "participants"
15-
AttributeKeyThreshold = "threshold"
16-
AttributeKeyExpirationTime = "expiration_time"
17-
18-
AttributeKeyOutcome = "outcome"
19-
20-
AttributeKeyOraclePubKey = "oracle_pub_key"
11+
AttributeKeyId = "id"
12+
AttributeKeyDLCEventType = "dlc_event_type"
13+
AttributeKeyOutcome = "outcome"
2114
)
2215

2316
const (

x/lending/types/events.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const (
99
EventTypeRepay = "repay"
1010
EventTypeDefault = "default"
1111
EventTypeLiquidate = "liquidate"
12-
EventTypeSignRepaymentCet = "sign_repayment_cet"
1312
EventTypeGenerateSignedCet = "generate_signed_cet"
1413
EventTypeGenerateSignedCancellationTransaction = "generate_signed_cancellation_transaction"
1514

@@ -24,13 +23,10 @@ const (
2423

2524
AttributeKeyLoanId = "loan_id"
2625

27-
AttributeKeySender = "sender"
28-
AttributeKeyAmount = "amount"
29-
AttributeKeyDepositTxHash = "deposit_tx_hash"
30-
31-
AttributeKeyAdaptorPoint = "adaptor_point"
26+
AttributeKeySender = "sender"
27+
AttributeKeyAmount = "amount"
3228

33-
AttributeKeySigHashes = "sig_hashes"
29+
AttributeKeyDepositTxHash = "deposit_tx_hash"
3430

3531
AttributeKeyTxHash = "tx_hash"
3632

x/lending/types/keys.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@ var (
2424
ParamsKey = []byte{0x01}
2525
PriceKey = []byte{0x02}
2626

27-
PoolKeyPrefix = []byte{0x10}
28-
LoanKeyPrefix = []byte{0x11}
29-
DepositLogKeyPrefix = []byte{0x12}
30-
RepaymentKeyPrefix = []byte{0x13}
31-
DLCMetaKeyPrefix = []byte{0x14}
32-
CancellationKeyPrefix = []byte{0x15}
33-
34-
LoanByAddressKeyPrefix = []byte{0x16}
27+
PoolKeyPrefix = []byte{0x10}
28+
LoanKeyPrefix = []byte{0x11}
29+
LoanByAddressKeyPrefix = []byte{0x12}
30+
DepositLogKeyPrefix = []byte{0x13}
31+
RepaymentKeyPrefix = []byte{0x14}
32+
DLCMetaKeyPrefix = []byte{0x15}
33+
CancellationKeyPrefix = []byte{0x16}
3534
)
3635

3736
func PoolKey(id string) []byte {

x/liquidation/types/events.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package types
33
// Liquidation module event types
44
const (
55
EventTypeLiquidate = "liquidate"
6-
EventTypeSignSettlementTransaction = "sign_settlement_transaction"
76
EventTypeGenerateSignedSettlementTransaction = "generate_signed_settlement_transaction"
87

98
AttributeKeyLiquidator = "liquidator"
@@ -13,9 +12,6 @@ const (
1312
AttributeKeyCollateralAmount = "collateral_amount"
1413
AttributeKeyBonusAmount = "bonus_amount"
1514

16-
AttributeKeyDCMPubKey = "dcm_pub_key"
17-
AttributeKeySigHashes = "sig_hashes"
18-
1915
AttributeKeyTxHash = "tx_hash"
2016
)
2117

0 commit comments

Comments
 (0)