Skip to content

Commit f8a2e3a

Browse files
all good (#760)
Co-authored-by: Stephen Joseph <81881979+Smartdevs17@users.noreply.github.com>
1 parent 7173cad commit f8a2e3a

14 files changed

Lines changed: 1224 additions & 829 deletions

File tree

stellar-lend/Cargo.lock

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stellar-lend/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ members = [
4949
"contracts/vault-share",
5050
"contracts/auto-compound-vault",
5151
"contracts/pool-interfaces",
52+
"contracts/yield-router", "contracts/shared-events",
5253
"contracts/yield-router",
5354
"contracts/dutch-auction",
5455
"contracts/debt-token",

stellar-lend/contracts/common/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7+
shared-events = { path = "../shared-events" }
78
soroban-sdk = { workspace = true }
89

910
[dev-dependencies]
Lines changed: 18 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,25 @@
11
#![allow(unused)]
2+
pub use shared_events::*;
23

34
use soroban_sdk::{contractevent, Address, Env};
45

56
// Minimal event set required by `upgrade.rs`.
67
// These are emitted by publishing the struct instance (Soroban SDK pattern).
78

8-
#[contractevent]
9-
#[derive(Clone, Debug)]
10-
pub struct UpgradeInitEvent {
11-
pub admin: Address,
12-
pub required_approvals: u32,
13-
}
14-
15-
#[contractevent]
16-
#[derive(Clone, Debug)]
17-
pub struct UpgradeApproverAddedEvent {
18-
pub caller: Address,
19-
pub approver: Address,
20-
}
21-
22-
#[contractevent]
23-
#[derive(Clone, Debug)]
24-
pub struct UpgradeApproverRemovedEvent {
25-
pub caller: Address,
26-
pub approver: Address,
27-
}
28-
29-
#[contractevent]
30-
#[derive(Clone, Debug)]
31-
pub struct UpgradeProposedEvent {
32-
pub caller: Address,
33-
pub id: u64,
34-
pub new_version: u32,
35-
}
36-
37-
#[contractevent]
38-
#[derive(Clone, Debug)]
39-
pub struct UpgradeApprovalRecordedEvent {
40-
pub caller: Address,
41-
pub proposal_id: u64,
42-
pub approval_count: u32,
43-
}
44-
45-
#[contractevent]
46-
#[derive(Clone, Debug)]
47-
pub struct UpgradeExecutedEvent {
48-
pub caller: Address,
49-
pub proposal_id: u64,
50-
pub new_version: u32,
51-
}
52-
53-
#[contractevent]
54-
#[derive(Clone, Debug)]
55-
pub struct UpgradeRollbackEvent {
56-
pub caller: Address,
57-
pub proposal_id: u64,
58-
pub prev_version: u32,
59-
}
60-
61-
#[contractevent]
62-
#[derive(Clone, Debug)]
63-
pub struct UpgradeTimelockQueuedEvent {
64-
pub caller: Address,
65-
pub proposal_id: u64,
66-
pub execute_after: u64,
67-
pub is_emergency: bool,
68-
}
69-
70-
#[contractevent]
71-
#[derive(Clone, Debug)]
72-
pub struct UpgradeEmergencyProposedEvent {
73-
pub caller: Address,
74-
pub id: u64,
75-
pub new_version: u32,
76-
pub execute_after: u64,
77-
}
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+

stellar-lend/contracts/core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7+
shared-events = { path = "../shared-events" }
78
soroban-sdk = { workspace = true }

stellar-lend/contracts/core/src/events.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
pub use shared_events::*;
12
use soroban_sdk::{Address, Env, Symbol};
23

34
pub const EVENT_VERSION: u32 = 1;

stellar-lend/contracts/hello-world/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ crate-type = ["cdylib", "lib"]
99
doctest = false
1010

1111
[dependencies]
12+
shared-events = { path = "../shared-events" }
1213
soroban-sdk = { workspace = true }
1314
soroban-token-sdk = { workspace = true }
1415
stellarlend-amm = { path = "../amm" }

0 commit comments

Comments
 (0)