@@ -2,7 +2,7 @@ import { TxOut } from '../structs/TxOut.mjs';
22import { BigEndianScalar } from '../structs/BigEndianScalar.mjs' ;
33import { AccessError } from '../enums/AccessError.mjs' ;
44import { COption_NoneZ } from '../enums/COption_NoneZ.mjs' ;
5- import { ChannelMonitorUpdateErr } from '../enums/ChannelMonitorUpdateErr .mjs' ;
5+ import { ChannelMonitorUpdateStatus } from '../enums/ChannelMonitorUpdateStatus .mjs' ;
66import { ConfirmationTarget } from '../enums/ConfirmationTarget.mjs' ;
77import { CreationError } from '../enums/CreationError.mjs' ;
88import { Currency } from '../enums/Currency.mjs' ;
@@ -109,7 +109,6 @@ import { GossipTimestampFilter } from '../structs/GossipTimestampFilter.mjs';
109109import { MessageSendEvent } from '../structs/MessageSendEvent.mjs' ;
110110import { Result_TxOutAccessErrorZ } from '../structs/Result_TxOutAccessErrorZ.mjs' ;
111111import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransactionZ.mjs' ;
112- import { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChannelMonitorUpdateErrZ.mjs' ;
113112import { HTLCUpdate } from '../structs/HTLCUpdate.mjs' ;
114113import { MonitorEvent } from '../structs/MonitorEvent.mjs' ;
115114import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs' ;
@@ -165,6 +164,7 @@ import { Result_SignatureNoneZ } from '../structs/Result_SignatureNoneZ.mjs';
165164import { TwoTuple_SignatureSignatureZ } from '../structs/TwoTuple_SignatureSignatureZ.mjs' ;
166165import { Result_C2Tuple_SignatureSignatureZNoneZ } from '../structs/Result_C2Tuple_SignatureSignatureZNoneZ.mjs' ;
167166import { Result_SecretKeyNoneZ } from '../structs/Result_SecretKeyNoneZ.mjs' ;
167+ import { Result_PublicKeyNoneZ } from '../structs/Result_PublicKeyNoneZ.mjs' ;
168168import { Option_ScalarZ } from '../structs/Option_ScalarZ.mjs' ;
169169import { Result_SharedSecretNoneZ } from '../structs/Result_SharedSecretNoneZ.mjs' ;
170170import { ClosingTransaction } from '../structs/ClosingTransaction.mjs' ;
@@ -251,6 +251,9 @@ import { Balance } from '../structs/Balance.mjs';
251251import { TwoTuple_BlockHashChannelMonitorZ } from '../structs/TwoTuple_BlockHashChannelMonitorZ.mjs' ;
252252import { Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ } from '../structs/Result_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ.mjs' ;
253253import { TwoTuple_PublicKeyTypeZ } from '../structs/TwoTuple_PublicKeyTypeZ.mjs' ;
254+ import { CustomOnionMessageContents , CustomOnionMessageContentsInterface } from '../structs/CustomOnionMessageContents.mjs' ;
255+ import { Option_CustomOnionMessageContentsZ } from '../structs/Option_CustomOnionMessageContentsZ.mjs' ;
256+ import { Result_COption_CustomOnionMessageContentsZDecodeErrorZ } from '../structs/Result_COption_CustomOnionMessageContentsZDecodeErrorZ.mjs' ;
254257import { Option_NetAddressZ } from '../structs/Option_NetAddressZ.mjs' ;
255258import { PeerHandleError } from '../structs/PeerHandleError.mjs' ;
256259import { Result_CVec_u8ZPeerHandleErrorZ } from '../structs/Result_CVec_u8ZPeerHandleErrorZ.mjs' ;
@@ -351,6 +354,7 @@ import { OnionMessageHandler, OnionMessageHandlerInterface } from '../structs/On
351354import { CustomMessageReader , CustomMessageReaderInterface } from '../structs/CustomMessageReader.mjs' ;
352355import { CustomMessageHandler , CustomMessageHandlerInterface } from '../structs/CustomMessageHandler.mjs' ;
353356import { IgnoringMessageHandler } from '../structs/IgnoringMessageHandler.mjs' ;
357+ import { CustomOnionMessageHandler , CustomOnionMessageHandlerInterface } from '../structs/CustomOnionMessageHandler.mjs' ;
354358import { ErroringMessageHandler } from '../structs/ErroringMessageHandler.mjs' ;
355359import { MessageHandler } from '../structs/MessageHandler.mjs' ;
356360import { SocketDescriptor , SocketDescriptorInterface } from '../structs/SocketDescriptor.mjs' ;
@@ -385,7 +389,7 @@ import * as bindings from '../bindings.mjs'
385389 * too-high values)
386390 */
387391export class APIError extends CommonBase {
388- protected constructor ( _dummy : object , ptr : bigint ) { super ( ptr , bindings . APIError_free ) ; }
392+ protected constructor ( _dummy : null , ptr : bigint ) { super ( ptr , bindings . APIError_free ) ; }
389393 /* @internal */
390394 public static constr_from_ptr ( ptr : bigint ) : APIError {
391395 const raw_ty : number = bindings . LDKAPIError_ty_from_ptr ( ptr ) ;
@@ -394,7 +398,7 @@ export class APIError extends CommonBase {
394398 case 1 : return new APIError_FeeRateTooHigh ( ptr ) ;
395399 case 2 : return new APIError_RouteError ( ptr ) ;
396400 case 3 : return new APIError_ChannelUnavailable ( ptr ) ;
397- case 4 : return new APIError_MonitorUpdateFailed ( ptr ) ;
401+ case 4 : return new APIError_MonitorUpdateInProgress ( ptr ) ;
398402 case 5 : return new APIError_IncompatibleShutdownScript ( ptr ) ;
399403 default :
400404 throw new Error ( 'oops, this should be unreachable' ) ; // Unreachable without extending the (internal) bindings interface
@@ -457,10 +461,10 @@ export class APIError extends CommonBase {
457461 }
458462
459463 /**
460- * Utility method to constructs a new MonitorUpdateFailed -variant APIError
464+ * Utility method to constructs a new MonitorUpdateInProgress -variant APIError
461465 */
462- public static constructor_monitor_update_failed ( ) : APIError {
463- const ret : bigint = bindings . APIError_monitor_update_failed ( ) ;
466+ public static constructor_monitor_update_in_progress ( ) : APIError {
467+ const ret : bigint = bindings . APIError_monitor_update_in_progress ( ) ;
464468 const ret_hu_conv : APIError = APIError . constr_from_ptr ( ret ) ;
465469 CommonBase . add_ref_from ( ret_hu_conv , ret_hu_conv ) ;
466470 return ret_hu_conv ;
@@ -477,6 +481,15 @@ export class APIError extends CommonBase {
477481 return ret_hu_conv ;
478482 }
479483
484+ /**
485+ * Checks if two APIErrors contain equal inner contents.
486+ * This ignores pointers and is_owned flags and looks at the values in fields.
487+ */
488+ public eq ( b : APIError ) : boolean {
489+ const ret : boolean = bindings . APIError_eq ( this . ptr , b == null ? 0n : CommonBase . get_ptr_of ( b ) ) ;
490+ return ret ;
491+ }
492+
480493}
481494/** A APIError of type APIMisuseError */
482495export class APIError_APIMisuseError extends APIError {
@@ -539,8 +552,8 @@ export class APIError_ChannelUnavailable extends APIError {
539552 this . err = err_conv ;
540553 }
541554}
542- /** A APIError of type MonitorUpdateFailed */
543- export class APIError_MonitorUpdateFailed extends APIError {
555+ /** A APIError of type MonitorUpdateInProgress */
556+ export class APIError_MonitorUpdateInProgress extends APIError {
544557 /* @internal */
545558 public constructor ( ptr : bigint ) {
546559 super ( null , ptr ) ;
0 commit comments