@@ -90,10 +90,10 @@ function get_chanman(): Node {
9090 } as ldk . LoggerInterface ) ;
9191
9292 const persister = ldk . Persist . new_impl ( {
93- persist_new_channel ( _channel_id : ldk . OutPoint , _data : ldk . ChannelMonitor , _update_id : ldk . MonitorUpdateId ) : ldk . ChannelMonitorUpdateStatus {
93+ persist_new_channel ( _channel_id : ldk . OutPoint , _data : ldk . ChannelMonitor ) : ldk . ChannelMonitorUpdateStatus {
9494 return ldk . ChannelMonitorUpdateStatus . LDKChannelMonitorUpdateStatus_Completed ;
9595 } ,
96- update_persisted_channel ( _channel_id : ldk . OutPoint , _update : ldk . ChannelMonitorUpdate , _data : ldk . ChannelMonitor , _update_id : ldk . MonitorUpdateId ) : ldk . ChannelMonitorUpdateStatus {
96+ update_persisted_channel ( _channel_id : ldk . OutPoint , _update : ldk . ChannelMonitorUpdate , _data : ldk . ChannelMonitor ) : ldk . ChannelMonitorUpdateStatus {
9797 return ldk . ChannelMonitorUpdateStatus . LDKChannelMonitorUpdateStatus_Completed ;
9898 }
9999 } as ldk . PersistInterface ) ;
@@ -165,8 +165,9 @@ function assign_u64(arr: Uint8Array, offset: number, value: bigint) {
165165function get_event ( chan_man : ldk . ChannelManager ) : ldk . Event {
166166 const events : Array < ldk . Event > = [ ] ;
167167 const event_handler = ldk . EventHandler . new_impl ( {
168- handle_event ( event : ldk . Event ) : void {
168+ handle_event ( event : ldk . Event ) : ldk . Result_NoneReplayEventZ {
169169 events . push ( event ) ;
170+ return ldk . Result_NoneReplayEventZ . constructor_ok ( ) ;
170171 }
171172 } as ldk . EventHandlerInterface ) ;
172173
@@ -330,7 +331,7 @@ tests.push(async () => {
330331 a_handled_msg = true ;
331332 return ldk . Option_OnionMessageContentsZ . constructor_none ( ) ;
332333 } ,
333- release_pending_custom_messages ( ) : ldk . ThreeTuple_OnionMessageContentsDestinationBlindedPathZ [ ] {
334+ release_pending_custom_messages ( ) : ldk . TwoTuple_OnionMessageContentsMessageSendInstructionsZ [ ] {
334335 return [ ] ;
335336 } ,
336337 } as ldk . CustomOnionMessageHandlerInterface ) ;
@@ -339,7 +340,8 @@ tests.push(async () => {
339340 . constructor_new ( a . net_graph , a . keys_manager . as_EntropySource ( ) ) . as_MessageRouter ( ) ;
340341 const underlying_om_a = ldk . OnionMessenger . constructor_new (
341342 a . keys_manager . as_EntropySource ( ) , a . keys_manager . as_NodeSigner ( ) , a . logger ,
342- a . chan_man . as_NodeIdLookUp ( ) , a_msg_router , ignorer . as_OffersMessageHandler ( ) , om_handler_a ) ;
343+ a . chan_man . as_NodeIdLookUp ( ) , a_msg_router , ignorer . as_OffersMessageHandler ( ) ,
344+ ignorer . as_AsyncPaymentsMessageHandler ( ) , om_handler_a ) ;
343345 const om_a = ldk . OnionMessageHandler . new_impl ( {
344346 handle_onion_message ( peer_node_id : Uint8Array , msg : ldk . OnionMessage ) {
345347 underlying_om_a . as_OnionMessageHandler ( ) . handle_onion_message ( peer_node_id , msg ) ;
@@ -378,14 +380,15 @@ tests.push(async () => {
378380 b_handled_msg = true ;
379381 return ldk . Option_OnionMessageContentsZ . constructor_none ( ) ;
380382 } ,
381- release_pending_custom_messages ( ) : ldk . ThreeTuple_OnionMessageContentsDestinationBlindedPathZ [ ] {
383+ release_pending_custom_messages ( ) : ldk . TwoTuple_OnionMessageContentsMessageSendInstructionsZ [ ] {
382384 return [ ] ;
383385 }
384386 } as ldk . CustomOnionMessageHandlerInterface ) ;
385387 const msg_router_b = ldk . DefaultMessageRouter
386388 . constructor_new ( b . net_graph , b . keys_manager . as_EntropySource ( ) ) . as_MessageRouter ( ) ;
387- const om_b = ldk . OnionMessenger . constructor_new ( b . keys_manager . as_EntropySource ( ) , b . keys_manager . as_NodeSigner ( ) ,
388- b . logger , b . chan_man . as_NodeIdLookUp ( ) , msg_router_b , ignorer . as_OffersMessageHandler ( ) , om_handler_b ) ;
389+ const om_b = ldk . OnionMessenger . constructor_new ( b . keys_manager . as_EntropySource ( ) ,
390+ b . keys_manager . as_NodeSigner ( ) , b . logger , b . chan_man . as_NodeIdLookUp ( ) , msg_router_b ,
391+ ignorer . as_OffersMessageHandler ( ) , ignorer . as_AsyncPaymentsMessageHandler ( ) , om_handler_b ) ;
389392
390393 const pm_a = ldk . PeerManager . constructor_new ( a . chan_man . as_ChannelMessageHandler ( ) , ignorer . as_RoutingMessageHandler ( ) ,
391394 om_a , ignorer . as_CustomMessageHandler ( ) , 0xdeadbeef ,
@@ -453,7 +456,8 @@ tests.push(async () => {
453456 return ret ;
454457 } ,
455458 debug_str ( ) : string { return "Onion Message A Contents" ; }
456- } as ldk . OnionMessageContentsInterface ) , ldk . Destination . constructor_node ( b . node_id ) , null ) ;
459+ } as ldk . OnionMessageContentsInterface ) ,
460+ ldk . MessageSendInstructions . constructor_without_reply_path ( ldk . Destination . constructor_node ( b . node_id ) ) ) ;
457461 pm_a . process_events ( ) ;
458462 assert ( b_handled_msg ) ;
459463
@@ -466,7 +470,8 @@ tests.push(async () => {
466470 return ret ;
467471 } ,
468472 debug_str ( ) : string { return "Onion Message A Contents" ; }
469- } as ldk . OnionMessageContentsInterface ) , ldk . Destination . constructor_node ( a . node_id ) , null ) ;
473+ } as ldk . OnionMessageContentsInterface ) ,
474+ ldk . MessageSendInstructions . constructor_without_reply_path ( ldk . Destination . constructor_node ( a . node_id ) ) ) ;
470475 pm_b . process_events ( ) ;
471476 assert ( a_handled_msg ) ;
472477
0 commit comments