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
use crate::api::{self};
use cosmwasm_schema::QueryResponses;
use cosmwasm_std::Uint128;
pub type ExecuteMsg = api::ExecuteMsg<TendermintStakingExecuteMsg>;
pub type QueryMsg = api::QueryMsg<TendermintStakingQueryMsg>;
impl api::ApiExecuteMsg for TendermintStakingExecuteMsg {}
impl api::ApiQueryMsg for TendermintStakingQueryMsg {}
#[cosmwasm_schema::cw_serde]
#[cfg_attr(feature = "boot", derive(boot_core::ExecuteFns))]
#[cfg_attr(feature = "boot", impl_into(ExecuteMsg))]
pub enum TendermintStakingExecuteMsg {
Delegate {
validator: String,
amount: Uint128,
},
UndelegateFrom {
validator: String,
amount: Option<Uint128>,
},
UndelegateAll {},
Redelegate {
source_validator: String,
destination_validator: String,
amount: Option<Uint128>,
},
SetWithdrawAddress {
new_withdraw_address: String,
},
WithdrawDelegatorReward {
validator: String,
},
WithdrawAllRewards {},
}
#[cosmwasm_schema::cw_serde]
#[derive(QueryResponses)]
#[cfg_attr(feature = "boot", derive(boot_core::QueryFns))]
#[cfg_attr(feature = "boot", impl_into(QueryMsg))]
pub enum TendermintStakingQueryMsg {}