Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit a7313e6

Browse files
LSPS2: JIT Channels
1 parent aaf2fcb commit a7313e6

File tree

9 files changed

+1715
-17
lines changed

9 files changed

+1715
-17
lines changed

src/events.rs

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// This file is Copyright its original authors, visible in version control
2+
// history.
3+
//
4+
// This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5+
// or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7+
// You may not use this file except in accordance with one or both of these
8+
// licenses.
9+
10+
//! Events are surfaced by the library to indicate some action must be taken
11+
//! by the client.
12+
//!
13+
//! Because we don't have a built-in runtime, it's up to the client to poll
14+
//! [`crate::LiquidityManager::get_and_clear_pending_events()`] to receive events.
15+
16+
use crate::jit_channel;
17+
18+
/// An Event which you should probably take some action in response to.
19+
#[derive(Debug, Clone, PartialEq, Eq)]
20+
pub enum Event {
21+
/// A LSPS2 (JIT Channel) protocol event
22+
LSPS2(jit_channel::event::Event),
23+
}

0 commit comments

Comments
 (0)