- public interface LDKChannelMessageHandler {
- void handle_open_channel(byte[] their_node_id, uint32_t their_features, uint32_t msg);
- void handle_accept_channel(byte[] their_node_id, uint32_t their_features, uint32_t msg);
- void handle_funding_created(byte[] their_node_id, uint32_t msg);
- void handle_funding_signed(byte[] their_node_id, uint32_t msg);
- void handle_funding_locked(byte[] their_node_id, uint32_t msg);
- void handle_shutdown(byte[] their_node_id, uint32_t msg);
- void handle_closing_signed(byte[] their_node_id, uint32_t msg);
- void handle_update_add_htlc(byte[] their_node_id, uint32_t msg);
- void handle_update_fulfill_htlc(byte[] their_node_id, uint32_t msg);
- void handle_update_fail_htlc(byte[] their_node_id, uint32_t msg);
- void handle_update_fail_malformed_htlc(byte[] their_node_id, uint32_t msg);
- void handle_commitment_signed(byte[] their_node_id, uint32_t msg);
- void handle_revoke_and_ack(byte[] their_node_id, uint32_t msg);
- void handle_update_fee(byte[] their_node_id, uint32_t msg);
- void handle_announcement_signatures(byte[] their_node_id, uint32_t msg);
- void peer_disconnected(byte[] their_node_id, boolean no_connection_possible);
- void peer_connected(byte[] their_node_id, uint32_t msg);
- void handle_channel_reestablish(byte[] their_node_id, uint32_t msg);
- void handle_error(byte[] their_node_id, uint32_t msg);
- }
- public static native long LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
- public static native LDKChannelMessageHandler LDKChannelMessageHandler_get_obj_from_jcalls(long val);