File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ might define others.
11
11
"Stargate". It primarily includes protobuf messages and IBC support.
12
12
- ` staking ` is for chains with the Cosmos SDK staking module. There are Cosmos
13
13
chains that don't use this (e.g. Tgrade).
14
+ - ` eureka ` is for messages and queries that came with the Cosmos SDK upgrade
15
+ "Eureka".
14
16
- ` cosmwasm_1_1 ` enables the ` BankQuery::Supply ` query. Only chains running
15
17
CosmWasm ` 1.1.0 ` or higher support this.
16
18
- ` cosmwasm_1_2 ` enables the ` GovMsg::VoteWeighted ` and ` WasmMsg::Instantiate2 `
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ staking = []
29
29
# stargate enables stargate-dependent messages and queries, like raw protobuf messages
30
30
# as well as ibc-related functionality
31
31
stargate = []
32
+ # eureka enables eureka-dependent messages and queries
33
+ eureka = []
32
34
# This feature makes `BankQuery::Supply` available for the contract to call, but requires
33
35
# the host blockchain to run CosmWasm `1.1.0` or higher.
34
36
cosmwasm_1_1 = []
Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ extern "C" fn requires_staking() {}
44
44
#[ no_mangle]
45
45
extern "C" fn requires_stargate ( ) { }
46
46
47
+ #[ cfg( feature = "eureka" ) ]
48
+ #[ no_mangle]
49
+ extern "C" fn requires_eureka ( ) { }
50
+
47
51
#[ cfg( feature = "cosmwasm_1_1" ) ]
48
52
#[ no_mangle]
49
53
extern "C" fn requires_cosmwasm_1_1 ( ) { }
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
+ #[ cfg( feature = "eureka" ) ]
9
10
use crate :: eureka:: EurekaMsg ;
10
11
#[ cfg( feature = "stargate" ) ]
11
12
use crate :: ibc:: IbcMsg ;
@@ -85,6 +86,7 @@ pub enum CosmosMsg<T = Empty> {
85
86
Wasm ( WasmMsg ) ,
86
87
#[ cfg( feature = "stargate" ) ]
87
88
Gov ( GovMsg ) ,
89
+ #[ cfg( feature = "eureka" ) ]
88
90
Eureka ( EurekaMsg ) ,
89
91
}
90
92
@@ -110,6 +112,7 @@ impl<T> CosmosMsg<T> {
110
112
CosmosMsg :: Wasm ( msg) => CosmosMsg :: Wasm ( msg) ,
111
113
#[ cfg( feature = "stargate" ) ]
112
114
CosmosMsg :: Gov ( msg) => CosmosMsg :: Gov ( msg) ,
115
+ #[ cfg( feature = "eureka" ) ]
113
116
CosmosMsg :: Eureka ( msg) => CosmosMsg :: Eureka ( msg) ,
114
117
} )
115
118
}
@@ -488,6 +491,7 @@ impl<T> From<GovMsg> for CosmosMsg<T> {
488
491
}
489
492
}
490
493
494
+ #[ cfg( feature = "eureka" ) ]
491
495
impl < T > From < EurekaMsg > for CosmosMsg < T > {
492
496
fn from ( msg : EurekaMsg ) -> Self {
493
497
CosmosMsg :: Eureka ( msg)
You can’t perform that action at this time.
0 commit comments