forked from icon-project/xcall-multi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsg.rs
36 lines (34 loc) · 1016 Bytes
/
msg.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use cw_xcall_lib::network_address::NetId;
use super::*;
#[cw_serde]
pub struct InstantiateMsg {
pub network_id: String,
pub denom: String,
}
/// The `#[cw_serde]` attribute is used to automatically generate serialization and deserialization code
/// for the struct or enum it is applied to.
#[cw_serde]
#[derive(QueryResponses)]
/// This is a Rust enum representing different types of queries that can be made to the contract. Each
/// variant of the enum corresponds to a specific query and has a return type specified using the
/// `#[returns]` attribute.
pub enum QueryMsg {
#[returns(String)]
GetAdmin {},
#[returns(u128)]
GetProtocolFee {},
#[returns(String)]
GetProtocolFeeHandler {},
#[returns(String)]
GetNetworkAddress {},
#[returns(bool)]
VerifySuccess { sn: u128 },
#[returns(String)]
GetDefaultConnection { nid: NetId },
#[returns(u128)]
GetFee {
nid: NetId,
rollback: bool,
sources: Option<Vec<String>>,
},
}