- public static native uint32_t Persist_update_persisted_channel(uint32_t this_arg, uint32_t id, uint32_t update, uint32_t data);
- 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);
+ public static native number Persist_update_persisted_channel(number this_arg, number id, number update, number data);
+
+
+
+// OUT_TYPESCRIPT_BINDINGS :: MAP_TRAIT :: START
+
+ export interface LDKChannelMessageHandler {
+ handle_open_channel (their_node_id: Uint8Array, their_features: number, msg: number): void;
+ handle_accept_channel (their_node_id: Uint8Array, their_features: number, msg: number): void;
+ handle_funding_created (their_node_id: Uint8Array, msg: number): void;
+ handle_funding_signed (their_node_id: Uint8Array, msg: number): void;
+ handle_funding_locked (their_node_id: Uint8Array, msg: number): void;
+ handle_shutdown (their_node_id: Uint8Array, msg: number): void;
+ handle_closing_signed (their_node_id: Uint8Array, msg: number): void;
+ handle_update_add_htlc (their_node_id: Uint8Array, msg: number): void;
+ handle_update_fulfill_htlc (their_node_id: Uint8Array, msg: number): void;
+ handle_update_fail_htlc (their_node_id: Uint8Array, msg: number): void;
+ handle_update_fail_malformed_htlc (their_node_id: Uint8Array, msg: number): void;
+ handle_commitment_signed (their_node_id: Uint8Array, msg: number): void;
+ handle_revoke_and_ack (their_node_id: Uint8Array, msg: number): void;
+ handle_update_fee (their_node_id: Uint8Array, msg: number): void;
+ handle_announcement_signatures (their_node_id: Uint8Array, msg: number): void;
+ peer_disconnected (their_node_id: Uint8Array, no_connection_possible: boolean): void;
+ peer_connected (their_node_id: Uint8Array, msg: number): void;
+ handle_channel_reestablish (their_node_id: Uint8Array, msg: number): void;
+ handle_error (their_node_id: Uint8Array, msg: number): void;
+ }
+
+ export function LDKChannelMessageHandler_new(impl: LDKChannelMessageHandler, MessageSendEventsProvider: LDKMessageSendEventsProvider): number {
+ throw new Error('unimplemented'); // TODO: bind to WASM
+ }
+
+// OUT_TYPESCRIPT_BINDINGS :: MAP_TRAIT :: END
+
+