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
use cw_serde;
/// Expiration represents a point in time when some event happens.
/// It can compare with a BlockInfo and will return is_expired() == true
/// once the condition is hit (and for every block in the future)
// #[cw_serde]
// #[derive(Copy)]
// pub enum Expiration {
// /// AtHeight will expire when `env.block.height` >= height
// AtHeight(u64),
// /// AtTime will expire when `env.block.time` >= time
// AtTime(cosmwasm_std::Timestamp),
// /// Never will never expire. Used to express the empty variant
// Never {},
// }
// #[cw_serde]
// pub struct Approval {
// /// Account that can transfer/send the token
// pub spender: String,
// /// When the Approval expires (maybe Expiration::never)
// pub expires: Expiration,
// }