Skip to content

Commit e4b3e80

Browse files
authored
Merge branch 'main' into feature/oracle-reminder-treasury-memo
2 parents 03ff017 + d3df3b1 commit e4b3e80

4 files changed

Lines changed: 503 additions & 34 deletions

File tree

contracts/split/src/events.rs

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,12 @@ pub fn delegate_revoked(env: &Env, invoice_id: u64) {
100100
);
101101
}
102102

103-
/// Emitted when a payment reminder is triggered.
104-
/// Topics: (split, payment_reminder, invoice_id)
105-
/// Data: (address)
106-
pub fn payment_reminder(env: &Env, invoice_id: u64, address: &Address) {
107-
env.events().publish(
108-
(symbol_short!("split"), symbol_short!("payment_reminder"), invoice_id),
109-
(address.clone(),),
110-
);
111-
}
112-
113-
/// Emitted when a memo-based payment is matched to an invoice.
114-
/// Topics: (split, payment_matched, invoice_id)
115-
/// Data: (memo, payer)
116-
pub fn payment_matched(env: &Env, invoice_id: u64, memo: u64, payer: &Address) {
103+
/// Emitted when an invoice is partially released.
104+
/// Topics: (split, part_rel, invoice_id)
105+
/// Data: recipients
106+
pub fn invoice_partially_released(env: &Env, invoice_id: u64, recipients: &Vec<Address>) {
117107
env.events().publish(
118-
(symbol_short!("split"), symbol_short!("payment_matched"), invoice_id),
119-
(memo, payer.clone()),
108+
(symbol_short!("split"), symbol_short!("part_rel"), invoice_id),
109+
recipients.clone(),
120110
);
121111
}

0 commit comments

Comments
 (0)