File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ and this project adheres to
12
12
13
13
- cosmwasm-schema: The schema export now doesn't overwrite existing
14
14
` additionalProperties ` values anymore ([ #2310 ] )
15
+ - cosmwasm-std: Added new ` EurekaMsg ` and ` CosmosMsg::Eureka ` variant ([ #2340 ] )
15
16
16
17
[ #2310 ] : https://github.com/CosmWasm/cosmwasm/pull/2310
17
18
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ use schemars::JsonSchema;
6
6
use serde:: { Deserialize , Serialize } ;
7
7
8
8
use crate :: coin:: Coin ;
9
+ use crate :: eureka:: EurekaMsg ;
9
10
#[ cfg( feature = "stargate" ) ]
10
11
use crate :: ibc:: IbcMsg ;
11
12
use crate :: prelude:: * ;
@@ -84,6 +85,7 @@ pub enum CosmosMsg<T = Empty> {
84
85
Wasm ( WasmMsg ) ,
85
86
#[ cfg( feature = "stargate" ) ]
86
87
Gov ( GovMsg ) ,
88
+ Eureka ( EurekaMsg ) ,
87
89
}
88
90
89
91
impl < T > CosmosMsg < T > {
@@ -108,6 +110,7 @@ impl<T> CosmosMsg<T> {
108
110
CosmosMsg :: Wasm ( msg) => CosmosMsg :: Wasm ( msg) ,
109
111
#[ cfg( feature = "stargate" ) ]
110
112
CosmosMsg :: Gov ( msg) => CosmosMsg :: Gov ( msg) ,
113
+ CosmosMsg :: Eureka ( msg) => CosmosMsg :: Eureka ( msg) ,
111
114
} )
112
115
}
113
116
}
@@ -485,6 +488,12 @@ impl<T> From<GovMsg> for CosmosMsg<T> {
485
488
}
486
489
}
487
490
491
+ impl < T > From < EurekaMsg > for CosmosMsg < T > {
492
+ fn from ( msg : EurekaMsg ) -> Self {
493
+ CosmosMsg :: Eureka ( msg)
494
+ }
495
+ }
496
+
488
497
#[ cfg( test) ]
489
498
mod tests {
490
499
use super :: * ;
You can’t perform that action at this time.
0 commit comments