-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathevents.rs
More file actions
70 lines (61 loc) · 1.49 KB
/
Copy pathevents.rs
File metadata and controls
70 lines (61 loc) · 1.49 KB
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
use soroban_sdk::{contractevent, Address, BytesN};
#[contractevent(data_format = "single-value")]
#[derive(Clone)]
pub struct AutoshareCreated {
#[topic]
pub creator: Address,
pub id: BytesN<32>,
}
#[contractevent]
#[derive(Clone)]
pub struct ContractPaused {}
#[contractevent]
#[derive(Clone)]
pub struct ContractUnpaused {}
#[contractevent(data_format = "single-value")]
#[derive(Clone)]
pub struct AutoshareUpdated {
#[topic]
pub updater: Address,
pub id: BytesN<32>,
}
#[contractevent(data_format = "single-value")]
#[derive(Clone)]
pub struct GroupDeactivated {
#[topic]
pub creator: Address,
pub id: BytesN<32>,
}
#[contractevent(data_format = "single-value")]
#[derive(Clone)]
pub struct GroupActivated {
#[topic]
pub creator: Address,
pub id: BytesN<32>,
}
#[contractevent(data_format = "single-value")]
#[derive(Clone)]
pub struct AdminTransferred {
#[topic]
pub old_admin: Address,
pub new_admin: Address,
}
#[contractevent(data_format = "single-value")]
#[derive(Clone)]
pub struct Withdrawal {
#[topic]
pub token: Address,
#[topic]
pub recipient: Address,
pub amount: i128,
}
/// Emitted when a contributor's reputation score changes.
/// The new score reflects the updated reputation after a submission is accepted.
#[contractevent(data_format = "single-value")]
#[derive(Clone)]
pub struct ContributorReputationUpdated {
#[topic]
pub contributor: Address,
pub new_score: u32,
pub completed_tasks: u32,
}