@@ -44,6 +44,8 @@ pub struct ContractInfoResponse {
44
44
pub pinned : bool ,
45
45
/// set if this contract has bound an IBC port
46
46
pub ibc_port : Option < String > ,
47
+ /// set if this contract has bound an Eureka port
48
+ pub eureka_port : Option < String > ,
47
49
}
48
50
49
51
impl QueryResponseType for ContractInfoResponse { }
@@ -54,7 +56,8 @@ impl_response_constructor!(
54
56
creator: Addr ,
55
57
admin: Option <Addr >,
56
58
pinned: bool ,
57
- ibc_port: Option <String >
59
+ ibc_port: Option <String >,
60
+ eureka_port: Option <String >
58
61
) ;
59
62
60
63
/// The essential data from wasmd's [CodeInfo]/[CodeInfoResponse].
@@ -119,11 +122,12 @@ mod tests {
119
122
admin : Some ( Addr :: unchecked ( "king" ) ) ,
120
123
pinned : true ,
121
124
ibc_port : Some ( "wasm.123" . to_string ( ) ) ,
125
+ eureka_port : Some ( "wasm.123" . to_string ( ) ) ,
122
126
} ;
123
127
let json = to_json_binary ( & response) . unwrap ( ) ;
124
128
assert_eq ! (
125
129
String :: from_utf8_lossy( & json) ,
126
- r#"{"code_id":67,"creator":"jane","admin":"king","pinned":true,"ibc_port":"wasm.123"}"# ,
130
+ r#"{"code_id":67,"creator":"jane","admin":"king","pinned":true,"ibc_port":"wasm.123","eureka_port":"wasm.123" }"# ,
127
131
) ;
128
132
}
129
133
0 commit comments