@@ -24,7 +24,7 @@ const (
2424const (
2525 ActiveEventVersion int = 0
2626 UnbondingEventVersion int = 0
27- WithdrawEventVersion int = 0
27+ WithdrawEventVersion int = 1
2828 ExpiredEventVersion int = 0
2929 StatsEventVersion int = 1
3030 BtcInfoEventVersion int = 0
@@ -132,9 +132,12 @@ func NewUnbondingStakingEvent(
132132}
133133
134134type WithdrawStakingEvent struct {
135- SchemaVersion int `json:"schema_version"`
136- EventType EventType `json:"event_type"` // always 3. WithdrawStakingEventType
137- StakingTxHashHex string `json:"staking_tx_hash_hex"`
135+ SchemaVersion int `json:"schema_version"`
136+ EventType EventType `json:"event_type"` // always 3. WithdrawStakingEventType
137+ StakingTxHashHex string `json:"staking_tx_hash_hex"`
138+ WithdrawTxHashHex string `json:"withdraw_tx_hash_hex"`
139+ WithdrawTxBtcHeight uint64 `json:"withdraw_tx_btc_height"`
140+ WithdrawTxHex string `json:"withdraw_tx_hex"`
138141}
139142
140143func (e WithdrawStakingEvent ) GetEventType () EventType {
@@ -145,11 +148,19 @@ func (e WithdrawStakingEvent) GetStakingTxHashHex() string {
145148 return e .StakingTxHashHex
146149}
147150
148- func NewWithdrawStakingEvent (stakingTxHashHex string ) WithdrawStakingEvent {
151+ func NewWithdrawStakingEvent (
152+ stakingTxHashHex string ,
153+ withdrawTxHashHex string ,
154+ withdrawTxBtcHeight uint64 ,
155+ withdrawTxHex string ,
156+ ) WithdrawStakingEvent {
149157 return WithdrawStakingEvent {
150- SchemaVersion : WithdrawEventVersion ,
151- EventType : WithdrawStakingEventType ,
152- StakingTxHashHex : stakingTxHashHex ,
158+ SchemaVersion : WithdrawEventVersion ,
159+ EventType : WithdrawStakingEventType ,
160+ StakingTxHashHex : stakingTxHashHex ,
161+ WithdrawTxHashHex : withdrawTxHashHex ,
162+ WithdrawTxBtcHeight : withdrawTxBtcHeight ,
163+ WithdrawTxHex : withdrawTxHex ,
153164 }
154165}
155166
0 commit comments