-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathmsg.rs
75 lines (72 loc) · 1.94 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum QueryMsg {
/// this query goes to neutron and get stored ICA with a specific query
InterchainAccountAddress {
interchain_account_id: String,
connection_id: String,
},
// this query returns ICA from contract store, which saved from acknowledgement
InterchainAccountAddressFromContract {
interchain_account_id: String,
},
// this query returns acknowledgement result after interchain transaction
AcknowledgementResult {
interchain_account_id: String,
sequence_id: u64,
},
Balance {
query_id: u64,
},
GetRecipientTxs {
recipient: String,
},
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
pub struct InstantiateMsg {}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum ExecuteMsg {
Register {
connection_id: String,
interchain_account_id: String,
},
Delegate {
interchain_account_id: String,
validator: String,
amount: u128,
denom: String,
timeout: Option<u64>,
},
Undelegate {
interchain_account_id: String,
validator: String,
amount: u128,
denom: String,
timeout: Option<u64>,
},
CleanAckResults {},
SetFees {
denom: String,
recv_fee: u128,
ack_fee: u128,
timeout_fee: u128,
},
RegisterBalanceQuery {
connection_id: String,
update_period: u64,
addr: String,
denom: String,
},
RegisterTransfersQuery {
connection_id: String,
update_period: u64,
recipient: String,
min_height: Option<u64>,
},
RemoveInterchainQuery {
query_id: u64,
},
}