@@ -117,41 +117,47 @@ pub enum Covenant {
117
117
#[ cfg_attr( feature = "bincode" , derive( Encode , Decode ) ) ]
118
118
#[ cfg_attr(
119
119
feature = "serde" ,
120
- serde( rename_all = "snake_case" , tag = "revoke_reason " )
120
+ serde( rename_all = "snake_case" , tag = "reason " )
121
121
) ]
122
122
pub enum RevokeReason {
123
- BidPsbt ( BidPsbtReason ) ,
124
123
/// Space was prematurely spent during the auctions phase
125
124
PrematureClaim ,
126
125
/// Space output was spent either by spending it directly
127
126
/// Space was transferred without following Input N => Output N+1 rule
128
127
BadSpend ,
129
128
Expired ,
129
+ #[ cfg_attr( feature = "serde" , serde( untagged) ) ]
130
+ BidPsbt ( BidPsbtReason )
130
131
}
131
132
132
133
#[ derive( Copy , Clone , PartialEq , Debug , Eq ) ]
133
134
#[ cfg_attr(
134
135
feature = "serde" ,
135
136
derive( Serialize , Deserialize ) ,
136
- serde( rename_all = "snake_case" )
137
+ serde( rename_all = "snake_case" , tag= "reason" )
137
138
) ]
138
139
#[ cfg_attr( feature = "bincode" , derive( Encode , Decode ) ) ]
139
140
pub enum RejectReason {
140
141
AlreadyExists ,
141
- BidPSBT ( BidPsbtReason ) ,
142
+ #[ cfg_attr( feature = "serde" , serde( untagged) ) ]
143
+ BidPsbt ( BidPsbtReason ) ,
142
144
}
143
145
144
146
#[ derive( Copy , Clone , Debug , PartialEq , Eq ) ]
145
147
#[ cfg_attr(
146
148
feature = "serde" ,
147
149
derive( Serialize , Deserialize ) ,
148
- serde( rename_all = "snake_case" , tag = "bid_psbt_reason " )
150
+ serde( tag = "reason " )
149
151
) ]
150
152
#[ cfg_attr( feature = "bincode" , derive( Encode , Decode ) ) ]
151
153
pub enum BidPsbtReason {
154
+ #[ cfg_attr( feature = "serde" , serde( rename = "bid_psbt_required" ) ) ]
152
155
Required ,
156
+ #[ cfg_attr( feature = "serde" , serde( rename = "bid_psbt_low_bid_amount" ) ) ]
153
157
LowBidAmount ,
158
+ #[ cfg_attr( feature = "serde" , serde( rename = "bid_psbt_bad_signature" ) ) ]
154
159
BadSignature ,
160
+ #[ cfg_attr( feature = "serde" , serde( rename = "bid_psbt_output_spent" ) ) ]
155
161
OutputSpent ,
156
162
}
157
163
0 commit comments