X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fbindings.mts;h=6e85d1307c38d4b49d9a3d0f4a48ee8bdc541dbd;hb=HEAD;hp=d2b45b608f51fed7b3adde284e07aecb2e888ff8;hpb=239d70ea23fdf148440dfedf9479944dc0fbf394;p=ldk-java diff --git a/ts/bindings.mts b/ts/bindings.mts index d2b45b60..39a13ee3 100644 --- a/ts/bindings.mts +++ b/ts/bindings.mts @@ -90,7 +90,7 @@ async function finishInitializeWasm(wasmInstance: WebAssembly.Instance) { } const fn_list = ["uuuuuu", "buuuuu", "bbuuuu", "bbbuuu", "bbbbuu", "bbbbbu", - "bbbbbb", "ubuubu", "ubuuuu", "ubbuuu", "uubuuu", "uubbuu", "uububu", "ububuu"]; + "bbbbbb", "ubuubu", "ubuuuu", "ubbuuu", "uubuuu", "uubbuu", "uububu", "ububuu", "uuuubu"]; /* @internal */ export async function initializeWasmFromUint8Array(wasmBinary: Uint8Array) { @@ -462,6 +462,10 @@ export enum Bolt12SemanticError { * Blinded paths were expected but were missing. */ LDKBolt12SemanticError_MissingPaths, + /** + * Blinded paths were provided but were not expected. + */ + LDKBolt12SemanticError_UnexpectedPaths, /** * The blinded payinfo given does not match the number of blinded path hops. */ @@ -698,6 +702,19 @@ export enum ConfirmationTarget { [`ChannelManager::close_channel_with_feerate_and_script`]: crate::ln::channelmanager::ChannelManager::close_channel_with_feerate_and_script */ LDKConfirmationTarget_ChannelCloseMinimum, + /** + * The feerate [`OutputSweeper`] will use on transactions spending + [`SpendableOutputDescriptor`]s after a channel closure. + + Generally spending these outputs is safe as long as they eventually confirm, so a value + (slightly above) the mempool minimum should suffice. However, as this value will influence + how long funds will be unavailable after channel closure, [`FeeEstimator`] implementors + might want to choose a higher feerate to regain control over funds faster. + + [`OutputSweeper`]: crate::util::sweep::OutputSweeper + [`SpendableOutputDescriptor`]: crate::sign::SpendableOutputDescriptor + */ + LDKConfirmationTarget_OutputSpendingFee, } @@ -764,6 +781,25 @@ export enum Currency { } +/** + * The side of a channel that is the [`IntroductionNode`] in a [`BlindedPath`]. [BOLT 7] defines + * which nodes is which in the [`ChannelAnnouncement`] message. + * + * [BOLT 7]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_announcement-message + * [`ChannelAnnouncement`]: crate::ln::msgs::ChannelAnnouncement + */ +export enum Direction { + /** + * The lesser node id when compared lexicographically in ascending order. + */ + LDKDirection_NodeOne, + /** + * The greater node id when compared lexicographically in ascending order. + */ + LDKDirection_NodeTwo, + +} + /** * Describes the type of HTLC claim as determined by analyzing the witness. */ @@ -816,6 +852,55 @@ export enum IOError { } +/** + * Exposes the state of pending inbound HTLCs. + * + * At a high level, an HTLC being forwarded from one Lightning node to another Lightning node goes + * through the following states in the state machine: + * - Announced for addition by the originating node through the update_add_htlc message. + * - Added to the commitment transaction of the receiving node and originating node in turn + * through the exchange of commitment_signed and revoke_and_ack messages. + * - Announced for resolution (fulfillment or failure) by the receiving node through either one of + * the update_fulfill_htlc, update_fail_htlc, and update_fail_malformed_htlc messages. + * - Removed from the commitment transaction of the originating node and receiving node in turn + * through the exchange of commitment_signed and revoke_and_ack messages. + * + * This can be used to inspect what next message an HTLC is waiting for to advance its state. + */ +export enum InboundHTLCStateDetails { + /** + * We have added this HTLC in our commitment transaction by receiving commitment_signed and + returning revoke_and_ack. We are awaiting the appropriate revoke_and_ack's from the remote + before this HTLC is included on the remote commitment transaction. + */ + LDKInboundHTLCStateDetails_AwaitingRemoteRevokeToAdd, + /** + * This HTLC has been included in the commitment_signed and revoke_and_ack messages on both sides + and is included in both commitment transactions. + + This HTLC is now safe to either forward or be claimed as a payment by us. The HTLC will + remain in this state until the forwarded upstream HTLC has been resolved and we resolve this + HTLC correspondingly, or until we claim it as a payment. If it is part of a multipart + payment, it will only be claimed together with other required parts. + */ + LDKInboundHTLCStateDetails_Committed, + /** + * We have received the preimage for this HTLC and it is being removed by fulfilling it with + update_fulfill_htlc. This HTLC is still on both commitment transactions, but we are awaiting + the appropriate revoke_and_ack's from the remote before this HTLC is removed from the remote + commitment transaction after update_fulfill_htlc. + */ + LDKInboundHTLCStateDetails_AwaitingRemoteRevokeToRemoveFulfill, + /** + * The HTLC is being removed by failing it with update_fail_htlc or update_fail_malformed_htlc. + This HTLC is still on both commitment transactions, but we are awaiting the appropriate + revoke_and_ack's from the remote before this HTLC is removed from the remote commitment + transaction. + */ + LDKInboundHTLCStateDetails_AwaitingRemoteRevokeToRemoveFail, + +} + /** * An enum representing the available verbosity levels of the logger. */ @@ -870,6 +955,52 @@ export enum Network { } +/** + * Exposes the state of pending outbound HTLCs. + * + * At a high level, an HTLC being forwarded from one Lightning node to another Lightning node goes + * through the following states in the state machine: + * - Announced for addition by the originating node through the update_add_htlc message. + * - Added to the commitment transaction of the receiving node and originating node in turn + * through the exchange of commitment_signed and revoke_and_ack messages. + * - Announced for resolution (fulfillment or failure) by the receiving node through either one of + * the update_fulfill_htlc, update_fail_htlc, and update_fail_malformed_htlc messages. + * - Removed from the commitment transaction of the originating node and receiving node in turn + * through the exchange of commitment_signed and revoke_and_ack messages. + * + * This can be used to inspect what next message an HTLC is waiting for to advance its state. + */ +export enum OutboundHTLCStateDetails { + /** + * We are awaiting the appropriate revoke_and_ack's from the remote before the HTLC is added + on the remote's commitment transaction after update_add_htlc. + */ + LDKOutboundHTLCStateDetails_AwaitingRemoteRevokeToAdd, + /** + * The HTLC has been added to the remote's commitment transaction by sending commitment_signed + and receiving revoke_and_ack in return. + + The HTLC will remain in this state until the remote node resolves the HTLC, or until we + unilaterally close the channel due to a timeout with an uncooperative remote node. + */ + LDKOutboundHTLCStateDetails_Committed, + /** + * The HTLC has been fulfilled successfully by the remote with a preimage in update_fulfill_htlc, + and we removed the HTLC from our commitment transaction by receiving commitment_signed and + returning revoke_and_ack. We are awaiting the appropriate revoke_and_ack's from the remote + for the removal from its commitment transaction. + */ + LDKOutboundHTLCStateDetails_AwaitingRemoteRevokeToRemoveSuccess, + /** + * The HTLC has been failed by the remote with update_fail_htlc or update_fail_malformed_htlc, + and we removed the HTLC from our commitment transaction by receiving commitment_signed and + returning revoke_and_ack. We are awaiting the appropriate revoke_and_ack's from the remote + for the removal from its commitment transaction. + */ + LDKOutboundHTLCStateDetails_AwaitingRemoteRevokeToRemoveFailure, + +} + /** * The reason the payment failed. Used in [`Event::PaymentFailed`]. */ @@ -902,6 +1033,10 @@ export enum PaymentFailureReason { LDKPaymentFailureReason_PaymentExpired, /** * We failed to find a route while retrying the payment. + + Note that this generally indicates that we've exhausted the available set of possible + routes - we tried the payment over a few routes but were not able to find any further + candidate routes beyond those. */ LDKPaymentFailureReason_RouteNotFound, /** @@ -1016,6 +1151,25 @@ export enum Secp256k1Error { } +/** + * A `short_channel_id` construction error + */ +export enum ShortChannelIdError { + /** + * Block height too high + */ + LDKShortChannelIdError_BlockOverflow, + /** + * Tx index too high + */ + LDKShortChannelIdError_TxIndexOverflow, + /** + * Vout index too high + */ + LDKShortChannelIdError_VoutIndexOverflow, + +} + /** * SI prefixes for the human readable part */ @@ -1121,6 +1275,42 @@ export function LDKBech32Error_InvalidData_get_invalid_data(ptr: bigint): number } const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidData_get_invalid_data(ptr); return nativeResponseValue; +} + // struct LDKRefundMaybeWithDerivedMetadataBuilder CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_ok(LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKBolt12SemanticError CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_err(LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKRefund CResult_RefundBolt12SemanticErrorZ_get_ok(LDKCResult_RefundBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_RefundBolt12SemanticErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundBolt12SemanticErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKBolt12SemanticError CResult_RefundBolt12SemanticErrorZ_get_err(LDKCResult_RefundBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_RefundBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundBolt12SemanticErrorZ_get_err(owner); + return nativeResponseValue; } /* @internal */ export class LDKCOption_u64Z { @@ -1389,6 +1579,60 @@ export function CResult_RecipientOnionFieldsNoneZ_get_err(owner: bigint): void { } const nativeResponseValue = wasm.TS_CResult_RecipientOnionFieldsNoneZ_get_err(owner); // debug statements here +} + // struct LDKUnsignedBolt12Invoice CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_get_ok(LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKBolt12SemanticError CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_get_err(LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKBolt12Invoice CResult_Bolt12InvoiceBolt12SemanticErrorZ_get_ok(LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_Bolt12InvoiceBolt12SemanticErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12InvoiceBolt12SemanticErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKBolt12SemanticError CResult_Bolt12InvoiceBolt12SemanticErrorZ_get_err(LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_Bolt12InvoiceBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12InvoiceBolt12SemanticErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKSchnorrSignature CResult_SchnorrSignatureNoneZ_get_ok(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_SchnorrSignatureNoneZ_get_ok(owner: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_get_ok(owner); + return nativeResponseValue; +} + // void CResult_SchnorrSignatureNoneZ_get_err(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_SchnorrSignatureNoneZ_get_err(owner: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_get_err(owner); + // debug statements here } /* @internal */ export class LDKCOption_CVec_ThirtyTwoBytesZZ { @@ -1409,6 +1653,102 @@ export function LDKCOption_CVec_ThirtyTwoBytesZZ_Some_get_some(ptr: bigint): num } const nativeResponseValue = wasm.TS_LDKCOption_CVec_ThirtyTwoBytesZZ_Some_get_some(ptr); return nativeResponseValue; +} +/* @internal */ +export class LDKAmount { + protected constructor() {} +} +/* @internal */ +export function LDKAmount_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKAmount_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKAmount_Bitcoin_get_amount_msats(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKAmount_Bitcoin_get_amount_msats(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKAmount_Currency_get_iso4217_code(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKAmount_Currency_get_iso4217_code(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKAmount_Currency_get_amount(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKAmount_Currency_get_amount(ptr); + return nativeResponseValue; +} +/* @internal */ +export class LDKCOption_AmountZ { + protected constructor() {} +} +/* @internal */ +export function LDKCOption_AmountZ_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKCOption_AmountZ_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKCOption_AmountZ_Some_get_some(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKCOption_AmountZ_Some_get_some(ptr); + return nativeResponseValue; +} +/* @internal */ +export class LDKQuantity { + protected constructor() {} +} +/* @internal */ +export function LDKQuantity_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKQuantity_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKQuantity_Bounded_get_bounded(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKQuantity_Bounded_get_bounded(ptr); + return nativeResponseValue; +} +/* @internal */ +export class LDKCOption_QuantityZ { + protected constructor() {} +} +/* @internal */ +export function LDKCOption_QuantityZ_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKCOption_QuantityZ_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKCOption_QuantityZ_Some_get_some(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKCOption_QuantityZ_Some_get_some(ptr); + return nativeResponseValue; } // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesNoneZ_get_ok(LDKCResult_ThirtyTwoBytesNoneZ *NONNULL_PTR owner); /* @internal */ @@ -1718,40 +2058,40 @@ export function CResult_RecoverableSignatureNoneZ_get_err(owner: bigint): void { const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_err(owner); // debug statements here } - // struct LDKSchnorrSignature CResult_SchnorrSignatureNoneZ_get_ok(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR owner); + // struct LDKECDSASignature CResult_ECDSASignatureNoneZ_get_ok(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR owner); /* @internal */ -export function CResult_SchnorrSignatureNoneZ_get_ok(owner: bigint): number { +export function CResult_ECDSASignatureNoneZ_get_ok(owner: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_get_ok(owner); + const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_get_ok(owner); return nativeResponseValue; } - // void CResult_SchnorrSignatureNoneZ_get_err(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR owner); + // void CResult_ECDSASignatureNoneZ_get_err(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR owner); /* @internal */ -export function CResult_SchnorrSignatureNoneZ_get_err(owner: bigint): void { +export function CResult_ECDSASignatureNoneZ_get_err(owner: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_get_err(owner); + const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_get_err(owner); // debug statements here } - // struct LDKECDSASignature CResult_ECDSASignatureNoneZ_get_ok(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR owner); + // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner); /* @internal */ -export function CResult_ECDSASignatureNoneZ_get_ok(owner: bigint): number { +export function CResult_TransactionNoneZ_get_ok(owner: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_get_ok(owner); + const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_ok(owner); return nativeResponseValue; } - // void CResult_ECDSASignatureNoneZ_get_err(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR owner); + // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner); /* @internal */ -export function CResult_ECDSASignatureNoneZ_get_err(owner: bigint): void { +export function CResult_TransactionNoneZ_get_err(owner: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_get_err(owner); + const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_err(owner); // debug statements here } // struct LDKECDSASignature C2Tuple_ECDSASignatureCVec_ECDSASignatureZZ_get_a(LDKC2Tuple_ECDSASignatureCVec_ECDSASignatureZZ *NONNULL_PTR owner); @@ -2136,24 +2476,6 @@ export function CResult_InMemorySignerDecodeErrorZ_get_err(owner: bigint): bigin } const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_err(owner); return nativeResponseValue; -} - // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner); -/* @internal */ -export function CResult_TransactionNoneZ_get_ok(owner: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_ok(owner); - return nativeResponseValue; -} - // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner); -/* @internal */ -export function CResult_TransactionNoneZ_get_err(owner: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_err(owner); - // debug statements here } // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner); /* @internal */ @@ -2555,6 +2877,24 @@ export function CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner: bigint): } const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner); return nativeResponseValue; +} + // struct LDKBestBlock CResult_BestBlockDecodeErrorZ_get_ok(LDKCResult_BestBlockDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_BestBlockDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BestBlockDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_BestBlockDecodeErrorZ_get_err(LDKCResult_BestBlockDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_BestBlockDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BestBlockDecodeErrorZ_get_err(owner); + return nativeResponseValue; } // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner); /* @internal */ @@ -2620,6 +2960,34 @@ export function CResult_ChannelMonitorUpdateStatusNoneZ_get_err(owner: bigint): // debug statements here } /* @internal */ +export class LDKClosureReason { + protected constructor() {} +} +/* @internal */ +export function LDKClosureReason_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKClosureReason_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKClosureReason_ProcessingError_get_err(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKClosureReason_ProcessingError_get_err(ptr); + return nativeResponseValue; +} +/* @internal */ export class LDKMonitorEvent { protected constructor() {} } @@ -2640,6 +3008,30 @@ export function LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr: bigint): bigint { return nativeResponseValue; } /* @internal */ +export function LDKMonitorEvent_HolderForceClosedWithInfo_get_reason(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKMonitorEvent_HolderForceClosedWithInfo_get_reason(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKMonitorEvent_HolderForceClosedWithInfo_get_outpoint(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKMonitorEvent_HolderForceClosedWithInfo_get_outpoint(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKMonitorEvent_HolderForceClosedWithInfo_get_channel_id(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKMonitorEvent_HolderForceClosedWithInfo_get_channel_id(ptr); + return nativeResponseValue; +} +/* @internal */ export function LDKMonitorEvent_HolderForceClosed_get_holder_force_closed(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); @@ -2656,6 +3048,14 @@ export function LDKMonitorEvent_Completed_get_funding_txo(ptr: bigint): bigint { return nativeResponseValue; } /* @internal */ +export function LDKMonitorEvent_Completed_get_channel_id(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKMonitorEvent_Completed_get_channel_id(ptr); + return nativeResponseValue; +} +/* @internal */ export function LDKMonitorEvent_Completed_get_monitor_update_id(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); @@ -2663,31 +3063,40 @@ export function LDKMonitorEvent_Completed_get_monitor_update_id(ptr: bigint): bi const nativeResponseValue = wasm.TS_LDKMonitorEvent_Completed_get_monitor_update_id(ptr); return nativeResponseValue; } - // struct LDKOutPoint C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner); + // struct LDKOutPoint C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_a(LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner); /* @internal */ -export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(owner: bigint): bigint { +export function C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_a(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(owner); + const nativeResponseValue = wasm.TS_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_a(owner); return nativeResponseValue; } - // struct LDKCVec_MonitorEventZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner); + // struct LDKChannelId C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_b(LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner); /* @internal */ -export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(owner: bigint): number { +export function C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_b(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(owner); + const nativeResponseValue = wasm.TS_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_b(owner); return nativeResponseValue; } - // struct LDKPublicKey C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner); + // struct LDKCVec_MonitorEventZ C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_c(LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner); /* @internal */ -export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(owner: bigint): number { +export function C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_c(owner: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(owner); + const nativeResponseValue = wasm.TS_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_c(owner); + return nativeResponseValue; +} + // struct LDKPublicKey C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_d(LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner); +/* @internal */ +export function C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_d(owner: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_get_d(owner); return nativeResponseValue; } // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner); @@ -2816,40 +3225,112 @@ export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner: bigint): const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner); return nativeResponseValue; } - // struct LDKOffer CResult_OfferBolt12ParseErrorZ_get_ok(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner); + // struct LDKOfferId CResult_OfferIdDecodeErrorZ_get_ok(LDKCResult_OfferIdDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_OfferBolt12ParseErrorZ_get_ok(owner: bigint): bigint { +export function CResult_OfferIdDecodeErrorZ_get_ok(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OfferBolt12ParseErrorZ_get_ok(owner); + const nativeResponseValue = wasm.TS_CResult_OfferIdDecodeErrorZ_get_ok(owner); return nativeResponseValue; } - // struct LDKBolt12ParseError CResult_OfferBolt12ParseErrorZ_get_err(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner); + // struct LDKDecodeError CResult_OfferIdDecodeErrorZ_get_err(LDKCResult_OfferIdDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_OfferBolt12ParseErrorZ_get_err(owner: bigint): bigint { +export function CResult_OfferIdDecodeErrorZ_get_err(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OfferBolt12ParseErrorZ_get_err(owner); + const nativeResponseValue = wasm.TS_CResult_OfferIdDecodeErrorZ_get_err(owner); return nativeResponseValue; } - // struct LDKPublicKey CResult_PublicKeySecp256k1ErrorZ_get_ok(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR owner); + // void CResult_NoneBolt12SemanticErrorZ_get_ok(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_PublicKeySecp256k1ErrorZ_get_ok(owner: bigint): number { +export function CResult_NoneBolt12SemanticErrorZ_get_ok(owner: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_get_ok(owner); + const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_get_ok(owner); + // debug statements here +} + // enum LDKBolt12SemanticError CResult_NoneBolt12SemanticErrorZ_get_err(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_NoneBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_get_err(owner); return nativeResponseValue; } - // enum LDKSecp256k1Error CResult_PublicKeySecp256k1ErrorZ_get_err(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR owner); + // struct LDKOffer CResult_OfferBolt12SemanticErrorZ_get_ok(LDKCResult_OfferBolt12SemanticErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_PublicKeySecp256k1ErrorZ_get_err(owner: bigint): Secp256k1Error { +export function CResult_OfferBolt12SemanticErrorZ_get_ok(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_get_err(owner); + const nativeResponseValue = wasm.TS_CResult_OfferBolt12SemanticErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKBolt12SemanticError CResult_OfferBolt12SemanticErrorZ_get_err(LDKCResult_OfferBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_OfferBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferBolt12SemanticErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKInvoiceRequestWithDerivedPayerIdBuilder CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_get_ok(LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKBolt12SemanticError CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_get_err(LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKInvoiceRequestWithExplicitPayerIdBuilder CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_get_ok(LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKBolt12SemanticError CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_get_err(LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKOffer CResult_OfferBolt12ParseErrorZ_get_ok(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_OfferBolt12ParseErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferBolt12ParseErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKBolt12ParseError CResult_OfferBolt12ParseErrorZ_get_err(LDKCResult_OfferBolt12ParseErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_OfferBolt12ParseErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferBolt12ParseErrorZ_get_err(owner); return nativeResponseValue; } // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner); @@ -2869,6 +3350,24 @@ export function CResult_NodeIdDecodeErrorZ_get_err(owner: bigint): bigint { } const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_err(owner); return nativeResponseValue; +} + // struct LDKPublicKey CResult_PublicKeySecp256k1ErrorZ_get_ok(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_PublicKeySecp256k1ErrorZ_get_ok(owner: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKSecp256k1Error CResult_PublicKeySecp256k1ErrorZ_get_err(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_PublicKeySecp256k1ErrorZ_get_err(owner: bigint): Secp256k1Error { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_get_err(owner); + return nativeResponseValue; } /* @internal */ export class LDKNetworkUpdate { @@ -4020,6 +4519,24 @@ export function LDKCOption_CVec_SocketAddressZZ_Some_get_some(ptr: bigint): numb } const nativeResponseValue = wasm.TS_LDKCOption_CVec_SocketAddressZZ_Some_get_some(ptr); return nativeResponseValue; +} + // uint64_t CResult_u64ShortChannelIdErrorZ_get_ok(LDKCResult_u64ShortChannelIdErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_u64ShortChannelIdErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_u64ShortChannelIdErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKShortChannelIdError CResult_u64ShortChannelIdErrorZ_get_err(LDKCResult_u64ShortChannelIdErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_u64ShortChannelIdErrorZ_get_err(owner: bigint): ShortChannelIdError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_u64ShortChannelIdErrorZ_get_err(owner); + return nativeResponseValue; } // struct LDKPendingHTLCInfo CResult_PendingHTLCInfoInboundHTLCErrZ_get_ok(LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR owner); /* @internal */ @@ -4095,80 +4612,116 @@ export function CResult_CVec_UtxoZNoneZ_get_err(owner: bigint): void { const nativeResponseValue = wasm.TS_CResult_CVec_UtxoZNoneZ_get_err(owner); // debug statements here } - // uint64_t C2Tuple_u64u16Z_get_a(LDKC2Tuple_u64u16Z *NONNULL_PTR owner); /* @internal */ -export function C2Tuple_u64u16Z_get_a(owner: bigint): bigint { +export class LDKPaymentContext { + protected constructor() {} +} +/* @internal */ +export function LDKPaymentContext_ty_from_ptr(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_u64u16Z_get_a(owner); + const nativeResponseValue = wasm.TS_LDKPaymentContext_ty_from_ptr(ptr); return nativeResponseValue; } - // uint16_t C2Tuple_u64u16Z_get_b(LDKC2Tuple_u64u16Z *NONNULL_PTR owner); /* @internal */ -export function C2Tuple_u64u16Z_get_b(owner: bigint): number { +export function LDKPaymentContext_Unknown_get_unknown(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_u64u16Z_get_b(owner); + const nativeResponseValue = wasm.TS_LDKPaymentContext_Unknown_get_unknown(ptr); return nativeResponseValue; } /* @internal */ -export class LDKCOption_C2Tuple_u64u16ZZ { +export function LDKPaymentContext_Bolt12Offer_get_bolt12_offer(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKPaymentContext_Bolt12Offer_get_bolt12_offer(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKPaymentContext_Bolt12Refund_get_bolt12_refund(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKPaymentContext_Bolt12Refund_get_bolt12_refund(ptr); + return nativeResponseValue; +} +/* @internal */ +export class LDKCOption_PaymentContextZ { protected constructor() {} } /* @internal */ -export function LDKCOption_C2Tuple_u64u16ZZ_ty_from_ptr(ptr: bigint): number { +export function LDKCOption_PaymentContextZ_ty_from_ptr(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_u64u16ZZ_ty_from_ptr(ptr); + const nativeResponseValue = wasm.TS_LDKCOption_PaymentContextZ_ty_from_ptr(ptr); return nativeResponseValue; } /* @internal */ -export function LDKCOption_C2Tuple_u64u16ZZ_Some_get_some(ptr: bigint): bigint { +export function LDKCOption_PaymentContextZ_Some_get_some(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_u64u16ZZ_Some_get_some(ptr); + const nativeResponseValue = wasm.TS_LDKCOption_PaymentContextZ_Some_get_some(ptr); return nativeResponseValue; } + // uint64_t C2Tuple_u64u16Z_get_a(LDKC2Tuple_u64u16Z *NONNULL_PTR owner); /* @internal */ -export class LDKCOption_ChannelShutdownStateZ { +export function C2Tuple_u64u16Z_get_a(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C2Tuple_u64u16Z_get_a(owner); + return nativeResponseValue; +} + // uint16_t C2Tuple_u64u16Z_get_b(LDKC2Tuple_u64u16Z *NONNULL_PTR owner); +/* @internal */ +export function C2Tuple_u64u16Z_get_b(owner: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C2Tuple_u64u16Z_get_b(owner); + return nativeResponseValue; +} +/* @internal */ +export class LDKCOption_C2Tuple_u64u16ZZ { protected constructor() {} } /* @internal */ -export function LDKCOption_ChannelShutdownStateZ_ty_from_ptr(ptr: bigint): number { +export function LDKCOption_C2Tuple_u64u16ZZ_ty_from_ptr(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_LDKCOption_ChannelShutdownStateZ_ty_from_ptr(ptr); + const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_u64u16ZZ_ty_from_ptr(ptr); return nativeResponseValue; } /* @internal */ -export function LDKCOption_ChannelShutdownStateZ_Some_get_some(ptr: bigint): ChannelShutdownState { +export function LDKCOption_C2Tuple_u64u16ZZ_Some_get_some(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_LDKCOption_ChannelShutdownStateZ_Some_get_some(ptr); + const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_u64u16ZZ_Some_get_some(ptr); return nativeResponseValue; } - // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesAPIErrorZ_get_ok(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR owner); + // struct LDKChannelId CResult_ChannelIdAPIErrorZ_get_ok(LDKCResult_ChannelIdAPIErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_ThirtyTwoBytesAPIErrorZ_get_ok(owner: bigint): number { +export function CResult_ChannelIdAPIErrorZ_get_ok(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_get_ok(owner); + const nativeResponseValue = wasm.TS_CResult_ChannelIdAPIErrorZ_get_ok(owner); return nativeResponseValue; } - // struct LDKAPIError CResult_ThirtyTwoBytesAPIErrorZ_get_err(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR owner); + // struct LDKAPIError CResult_ChannelIdAPIErrorZ_get_err(LDKCResult_ChannelIdAPIErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_ThirtyTwoBytesAPIErrorZ_get_err(owner: bigint): bigint { +export function CResult_ChannelIdAPIErrorZ_get_err(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_get_err(owner); + const nativeResponseValue = wasm.TS_CResult_ChannelIdAPIErrorZ_get_err(owner); return nativeResponseValue; } /* @internal */ @@ -4453,60 +5006,60 @@ export function CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFail const nativeResponseValue = wasm.TS_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_get_err(owner); return nativeResponseValue; } - // struct LDKThirtyTwoBytes C2Tuple_ThirtyTwoBytesPublicKeyZ_get_a(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR owner); + // struct LDKChannelId C2Tuple_ChannelIdPublicKeyZ_get_a(LDKC2Tuple_ChannelIdPublicKeyZ *NONNULL_PTR owner); /* @internal */ -export function C2Tuple_ThirtyTwoBytesPublicKeyZ_get_a(owner: bigint): number { +export function C2Tuple_ChannelIdPublicKeyZ_get_a(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_ThirtyTwoBytesPublicKeyZ_get_a(owner); + const nativeResponseValue = wasm.TS_C2Tuple_ChannelIdPublicKeyZ_get_a(owner); return nativeResponseValue; } - // struct LDKPublicKey C2Tuple_ThirtyTwoBytesPublicKeyZ_get_b(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR owner); + // struct LDKPublicKey C2Tuple_ChannelIdPublicKeyZ_get_b(LDKC2Tuple_ChannelIdPublicKeyZ *NONNULL_PTR owner); /* @internal */ -export function C2Tuple_ThirtyTwoBytesPublicKeyZ_get_b(owner: bigint): number { +export function C2Tuple_ChannelIdPublicKeyZ_get_b(owner: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_ThirtyTwoBytesPublicKeyZ_get_b(owner); + const nativeResponseValue = wasm.TS_C2Tuple_ChannelIdPublicKeyZ_get_b(owner); return nativeResponseValue; } + // struct LDKOfferWithDerivedMetadataBuilder CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_ok(LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR owner); /* @internal */ -export class LDKCOption_StrZ { - protected constructor() {} -} -/* @internal */ -export function LDKCOption_StrZ_ty_from_ptr(ptr: bigint): number { +export function CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_ok(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_LDKCOption_StrZ_ty_from_ptr(ptr); + const nativeResponseValue = wasm.TS_CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_ok(owner); return nativeResponseValue; } + // enum LDKBolt12SemanticError CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_err(LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR owner); /* @internal */ -export function LDKCOption_StrZ_Some_get_some(ptr: bigint): number { +export function CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_LDKCOption_StrZ_Some_get_some(ptr); + const nativeResponseValue = wasm.TS_CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_get_err(owner); return nativeResponseValue; } - // void CResult_NoneBolt12SemanticErrorZ_get_ok(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_NoneBolt12SemanticErrorZ_get_ok(owner: bigint): void { +export class LDKCOption_StrZ { + protected constructor() {} +} +/* @internal */ +export function LDKCOption_StrZ_ty_from_ptr(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_get_ok(owner); - // debug statements here + const nativeResponseValue = wasm.TS_LDKCOption_StrZ_ty_from_ptr(ptr); + return nativeResponseValue; } - // enum LDKBolt12SemanticError CResult_NoneBolt12SemanticErrorZ_get_err(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_NoneBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { +export function LDKCOption_StrZ_Some_get_some(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_get_err(owner); + const nativeResponseValue = wasm.TS_LDKCOption_StrZ_Some_get_some(ptr); return nativeResponseValue; } // struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_ok(LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ *NONNULL_PTR owner); @@ -4526,6 +5079,24 @@ export function CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_err(owner } const nativeResponseValue = wasm.TS_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_get_err(owner); // debug statements here +} + // struct LDKThirtyTwoBytes CResult_ThirtyTwoBytesAPIErrorZ_get_ok(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_ThirtyTwoBytesAPIErrorZ_get_ok(owner: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKAPIError CResult_ThirtyTwoBytesAPIErrorZ_get_err(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_ThirtyTwoBytesAPIErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_get_err(owner); + return nativeResponseValue; } /* @internal */ export class LDKOffersMessage { @@ -4637,60 +5208,6 @@ export function C3Tuple_OffersMessageDestinationBlindedPathZ_get_c(owner: bigint } const nativeResponseValue = wasm.TS_C3Tuple_OffersMessageDestinationBlindedPathZ_get_c(owner); return nativeResponseValue; -} - // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner); -/* @internal */ -export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner); - return nativeResponseValue; -} - // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner); -/* @internal */ -export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner); - return nativeResponseValue; -} - // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner); -/* @internal */ -export function CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner); - return nativeResponseValue; -} - // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner); -/* @internal */ -export function CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner); - return nativeResponseValue; -} - // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner); -/* @internal */ -export function CResult_ChannelDetailsDecodeErrorZ_get_ok(owner: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_ok(owner); - return nativeResponseValue; -} - // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner); -/* @internal */ -export function CResult_ChannelDetailsDecodeErrorZ_get_err(owner: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_err(owner); - return nativeResponseValue; } // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner); /* @internal */ @@ -4781,6 +5298,14 @@ export function LDKPendingHTLCRouting_Receive_get_payment_metadata(ptr: bigint): return nativeResponseValue; } /* @internal */ +export function LDKPendingHTLCRouting_Receive_get_payment_context(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKPendingHTLCRouting_Receive_get_payment_context(ptr); + return nativeResponseValue; +} +/* @internal */ export function LDKPendingHTLCRouting_Receive_get_incoming_cltv_expiry(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); @@ -4851,6 +5376,14 @@ export function LDKPendingHTLCRouting_ReceiveKeysend_get_custom_tlvs(ptr: bigint } const nativeResponseValue = wasm.TS_LDKPendingHTLCRouting_ReceiveKeysend_get_custom_tlvs(ptr); return nativeResponseValue; +} +/* @internal */ +export function LDKPendingHTLCRouting_ReceiveKeysend_get_requires_blinded_error(ptr: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKPendingHTLCRouting_ReceiveKeysend_get_requires_blinded_error(ptr); + return nativeResponseValue; } // struct LDKPendingHTLCRouting CResult_PendingHTLCRoutingDecodeErrorZ_get_ok(LDKCResult_PendingHTLCRoutingDecodeErrorZ *NONNULL_PTR owner); /* @internal */ @@ -4905,24 +5438,6 @@ export function CResult_BlindedFailureDecodeErrorZ_get_err(owner: bigint): bigin } const nativeResponseValue = wasm.TS_CResult_BlindedFailureDecodeErrorZ_get_err(owner); return nativeResponseValue; -} - // enum LDKChannelShutdownState CResult_ChannelShutdownStateDecodeErrorZ_get_ok(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner); -/* @internal */ -export function CResult_ChannelShutdownStateDecodeErrorZ_get_ok(owner: bigint): ChannelShutdownState { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_get_ok(owner); - return nativeResponseValue; -} - // struct LDKDecodeError CResult_ChannelShutdownStateDecodeErrorZ_get_err(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner); -/* @internal */ -export function CResult_ChannelShutdownStateDecodeErrorZ_get_err(owner: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_get_err(owner); - return nativeResponseValue; } /* @internal */ export interface LDKWatch { @@ -4961,7 +5476,7 @@ export function Watch_update_channel(this_arg: bigint, funding_txo: bigint, upda const nativeResponseValue = wasm.TS_Watch_update_channel(this_arg, funding_txo, update); return nativeResponseValue; } - // LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg + // LDKCVec_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg /* @internal */ export function Watch_release_pending_monitor_events(this_arg: bigint): number { if(!isWasmInitialized) { @@ -6050,24 +6565,6 @@ export function LDKCOption_SocketAddressZ_Some_get_some(ptr: bigint): bigint { } const nativeResponseValue = wasm.TS_LDKCOption_SocketAddressZ_Some_get_some(ptr); return nativeResponseValue; -} - // struct LDKPublicKey C2Tuple_PublicKeyCOption_SocketAddressZZ_get_a(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR owner); -/* @internal */ -export function C2Tuple_PublicKeyCOption_SocketAddressZZ_get_a(owner: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyCOption_SocketAddressZZ_get_a(owner); - return nativeResponseValue; -} - // struct LDKCOption_SocketAddressZ C2Tuple_PublicKeyCOption_SocketAddressZZ_get_b(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR owner); -/* @internal */ -export function C2Tuple_PublicKeyCOption_SocketAddressZZ_get_b(owner: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyCOption_SocketAddressZZ_get_b(owner); - return nativeResponseValue; } // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner); /* @internal */ @@ -6258,6 +6755,42 @@ export function CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err(ow } const nativeResponseValue = wasm.TS_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_get_err(owner); return nativeResponseValue; +} + // struct LDKUnsignedInvoiceRequest CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_get_ok(LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKBolt12SemanticError CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_get_err(LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKInvoiceRequest CResult_InvoiceRequestBolt12SemanticErrorZ_get_ok(LDKCResult_InvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InvoiceRequestBolt12SemanticErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestBolt12SemanticErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKBolt12SemanticError CResult_InvoiceRequestBolt12SemanticErrorZ_get_err(LDKCResult_InvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InvoiceRequestBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestBolt12SemanticErrorZ_get_err(owner); + return nativeResponseValue; } /* @internal */ export class LDKCOption_SecretKeyZ { @@ -6278,6 +6811,24 @@ export function LDKCOption_SecretKeyZ_Some_get_some(ptr: bigint): number { } const nativeResponseValue = wasm.TS_LDKCOption_SecretKeyZ_Some_get_some(ptr); return nativeResponseValue; +} + // struct LDKInvoiceWithExplicitSigningPubkeyBuilder CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_get_ok(LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKBolt12SemanticError CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_get_err(LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_get_err(owner); + return nativeResponseValue; } // struct LDKVerifiedInvoiceRequest CResult_VerifiedInvoiceRequestNoneZ_get_ok(LDKCResult_VerifiedInvoiceRequestNoneZ *NONNULL_PTR owner); /* @internal */ @@ -6296,6 +6847,62 @@ export function CResult_VerifiedInvoiceRequestNoneZ_get_err(owner: bigint): void } const nativeResponseValue = wasm.TS_CResult_VerifiedInvoiceRequestNoneZ_get_err(owner); // debug statements here +} + // struct LDKInvoiceWithDerivedSigningPubkeyBuilder CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_get_ok(LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_get_ok(owner); + return nativeResponseValue; +} + // enum LDKBolt12SemanticError CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_get_err(LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_get_err(owner: bigint): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKInvoiceRequestFields CResult_InvoiceRequestFieldsDecodeErrorZ_get_ok(LDKCResult_InvoiceRequestFieldsDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InvoiceRequestFieldsDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestFieldsDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_InvoiceRequestFieldsDecodeErrorZ_get_err(LDKCResult_InvoiceRequestFieldsDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InvoiceRequestFieldsDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestFieldsDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} +/* @internal */ +export class LDKCOption_ECDSASignatureZ { + protected constructor() {} +} +/* @internal */ +export function LDKCOption_ECDSASignatureZ_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKCOption_ECDSASignatureZ_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKCOption_ECDSASignatureZ_Some_get_some(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKCOption_ECDSASignatureZ_Some_get_some(ptr); + return nativeResponseValue; } /* @internal */ export class LDKCOption_i64Z { @@ -7308,6 +7915,210 @@ export function CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(owner: bigint) } const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceSignOrCreationErrorZ_get_err(owner); return nativeResponseValue; +} +/* @internal */ +export class LDKCOption_InboundHTLCStateDetailsZ { + protected constructor() {} +} +/* @internal */ +export function LDKCOption_InboundHTLCStateDetailsZ_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKCOption_InboundHTLCStateDetailsZ_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKCOption_InboundHTLCStateDetailsZ_Some_get_some(ptr: bigint): InboundHTLCStateDetails { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKCOption_InboundHTLCStateDetailsZ_Some_get_some(ptr); + return nativeResponseValue; +} + // struct LDKCOption_InboundHTLCStateDetailsZ CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_get_ok(LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_get_err(LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKInboundHTLCDetails CResult_InboundHTLCDetailsDecodeErrorZ_get_ok(LDKCResult_InboundHTLCDetailsDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InboundHTLCDetailsDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InboundHTLCDetailsDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_InboundHTLCDetailsDecodeErrorZ_get_err(LDKCResult_InboundHTLCDetailsDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_InboundHTLCDetailsDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InboundHTLCDetailsDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} +/* @internal */ +export class LDKCOption_OutboundHTLCStateDetailsZ { + protected constructor() {} +} +/* @internal */ +export function LDKCOption_OutboundHTLCStateDetailsZ_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKCOption_OutboundHTLCStateDetailsZ_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKCOption_OutboundHTLCStateDetailsZ_Some_get_some(ptr: bigint): OutboundHTLCStateDetails { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKCOption_OutboundHTLCStateDetailsZ_Some_get_some(ptr); + return nativeResponseValue; +} + // struct LDKCOption_OutboundHTLCStateDetailsZ CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_get_ok(LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_get_err(LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKOutboundHTLCDetails CResult_OutboundHTLCDetailsDecodeErrorZ_get_ok(LDKCResult_OutboundHTLCDetailsDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_OutboundHTLCDetailsDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OutboundHTLCDetailsDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_OutboundHTLCDetailsDecodeErrorZ_get_err(LDKCResult_OutboundHTLCDetailsDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_OutboundHTLCDetailsDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OutboundHTLCDetailsDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} +/* @internal */ +export class LDKCOption_ChannelShutdownStateZ { + protected constructor() {} +} +/* @internal */ +export function LDKCOption_ChannelShutdownStateZ_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKCOption_ChannelShutdownStateZ_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKCOption_ChannelShutdownStateZ_Some_get_some(ptr: bigint): ChannelShutdownState { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKCOption_ChannelShutdownStateZ_Some_get_some(ptr); + return nativeResponseValue; +} + // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_ChannelDetailsDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_ChannelDetailsDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // enum LDKChannelShutdownState CResult_ChannelShutdownStateDecodeErrorZ_get_ok(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_ChannelShutdownStateDecodeErrorZ_get_ok(owner: bigint): ChannelShutdownState { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_ChannelShutdownStateDecodeErrorZ_get_err(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_ChannelShutdownStateDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_get_err(owner); + return nativeResponseValue; } // struct LDKOffersMessage CResult_OffersMessageDecodeErrorZ_get_ok(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR owner); /* @internal */ @@ -7632,19 +8443,67 @@ export function LDKPaymentPurpose_ty_from_ptr(ptr: bigint): number { return nativeResponseValue; } /* @internal */ -export function LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr: bigint): bigint { +export function LDKPaymentPurpose_Bolt11InvoicePayment_get_payment_preimage(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr); + const nativeResponseValue = wasm.TS_LDKPaymentPurpose_Bolt11InvoicePayment_get_payment_preimage(ptr); return nativeResponseValue; } /* @internal */ -export function LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr: bigint): number { +export function LDKPaymentPurpose_Bolt11InvoicePayment_get_payment_secret(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr); + const nativeResponseValue = wasm.TS_LDKPaymentPurpose_Bolt11InvoicePayment_get_payment_secret(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKPaymentPurpose_Bolt12OfferPayment_get_payment_preimage(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKPaymentPurpose_Bolt12OfferPayment_get_payment_preimage(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKPaymentPurpose_Bolt12OfferPayment_get_payment_secret(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKPaymentPurpose_Bolt12OfferPayment_get_payment_secret(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKPaymentPurpose_Bolt12OfferPayment_get_payment_context(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKPaymentPurpose_Bolt12OfferPayment_get_payment_context(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKPaymentPurpose_Bolt12RefundPayment_get_payment_preimage(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKPaymentPurpose_Bolt12RefundPayment_get_payment_preimage(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKPaymentPurpose_Bolt12RefundPayment_get_payment_secret(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKPaymentPurpose_Bolt12RefundPayment_get_payment_secret(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKPaymentPurpose_Bolt12RefundPayment_get_payment_context(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKPaymentPurpose_Bolt12RefundPayment_get_payment_context(ptr); return nativeResponseValue; } /* @internal */ @@ -7758,34 +8617,6 @@ export function CResult_COption_PathFailureZDecodeErrorZ_get_err(owner: bigint): return nativeResponseValue; } /* @internal */ -export class LDKClosureReason { - protected constructor() {} -} -/* @internal */ -export function LDKClosureReason_ty_from_ptr(ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_LDKClosureReason_ty_from_ptr(ptr); - return nativeResponseValue; -} -/* @internal */ -export function LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr); - return nativeResponseValue; -} -/* @internal */ -export function LDKClosureReason_ProcessingError_get_err(ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_LDKClosureReason_ProcessingError_get_err(ptr); - return nativeResponseValue; -} -/* @internal */ export class LDKCOption_ClosureReasonZ { protected constructor() {} } @@ -7844,7 +8675,7 @@ export function LDKHTLCDestination_NextHopChannel_get_node_id(ptr: bigint): numb return nativeResponseValue; } /* @internal */ -export function LDKHTLCDestination_NextHopChannel_get_channel_id(ptr: bigint): number { +export function LDKHTLCDestination_NextHopChannel_get_channel_id(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -7984,6 +8815,22 @@ export function LDKBumpTransactionEvent_ty_from_ptr(ptr: bigint): number { return nativeResponseValue; } /* @internal */ +export function LDKBumpTransactionEvent_ChannelClose_get_channel_id(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKBumpTransactionEvent_ChannelClose_get_channel_id(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKBumpTransactionEvent_ChannelClose_get_counterparty_node_id(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKBumpTransactionEvent_ChannelClose_get_counterparty_node_id(ptr); + return nativeResponseValue; +} +/* @internal */ export function LDKBumpTransactionEvent_ChannelClose_get_claim_id(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); @@ -8032,6 +8879,22 @@ export function LDKBumpTransactionEvent_ChannelClose_get_pending_htlcs(ptr: bigi return nativeResponseValue; } /* @internal */ +export function LDKBumpTransactionEvent_HTLCResolution_get_channel_id(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKBumpTransactionEvent_HTLCResolution_get_channel_id(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKBumpTransactionEvent_HTLCResolution_get_counterparty_node_id(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKBumpTransactionEvent_HTLCResolution_get_counterparty_node_id(ptr); + return nativeResponseValue; +} +/* @internal */ export function LDKBumpTransactionEvent_HTLCResolution_get_claim_id(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); @@ -8076,7 +8939,7 @@ export function LDKEvent_ty_from_ptr(ptr: bigint): number { return nativeResponseValue; } /* @internal */ -export function LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr: bigint): number { +export function LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -8524,11 +9387,35 @@ export function LDKEvent_PaymentForwarded_get_next_channel_id(ptr: bigint): bigi return nativeResponseValue; } /* @internal */ -export function LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr: bigint): bigint { +export function LDKEvent_PaymentForwarded_get_prev_user_channel_id(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr); + const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_prev_user_channel_id(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKEvent_PaymentForwarded_get_next_user_channel_id(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_next_user_channel_id(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKEvent_PaymentForwarded_get_total_fee_earned_msat(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_total_fee_earned_msat(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKEvent_PaymentForwarded_get_skimmed_fee_msat(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_skimmed_fee_msat(ptr); return nativeResponseValue; } /* @internal */ @@ -8548,7 +9435,7 @@ export function LDKEvent_PaymentForwarded_get_outbound_amount_forwarded_msat(ptr return nativeResponseValue; } /* @internal */ -export function LDKEvent_ChannelPending_get_channel_id(ptr: bigint): number { +export function LDKEvent_ChannelPending_get_channel_id(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -8588,7 +9475,15 @@ export function LDKEvent_ChannelPending_get_funding_txo(ptr: bigint): bigint { return nativeResponseValue; } /* @internal */ -export function LDKEvent_ChannelReady_get_channel_id(ptr: bigint): number { +export function LDKEvent_ChannelPending_get_channel_type(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKEvent_ChannelPending_get_channel_type(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKEvent_ChannelReady_get_channel_id(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -8620,7 +9515,7 @@ export function LDKEvent_ChannelReady_get_channel_type(ptr: bigint): bigint { return nativeResponseValue; } /* @internal */ -export function LDKEvent_ChannelClosed_get_channel_id(ptr: bigint): number { +export function LDKEvent_ChannelClosed_get_channel_id(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -8668,7 +9563,7 @@ export function LDKEvent_ChannelClosed_get_channel_funding_txo(ptr: bigint): big return nativeResponseValue; } /* @internal */ -export function LDKEvent_DiscardFunding_get_channel_id(ptr: bigint): number { +export function LDKEvent_DiscardFunding_get_channel_id(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -8684,7 +9579,7 @@ export function LDKEvent_DiscardFunding_get_transaction(ptr: bigint): number { return nativeResponseValue; } /* @internal */ -export function LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr: bigint): number { +export function LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -8724,7 +9619,7 @@ export function LDKEvent_OpenChannelRequest_get_channel_type(ptr: bigint): bigin return nativeResponseValue; } /* @internal */ -export function LDKEvent_HTLCHandlingFailed_get_prev_channel_id(ptr: bigint): number { +export function LDKEvent_HTLCHandlingFailed_get_prev_channel_id(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -9161,6 +10056,24 @@ export function CResult_UntrustedStringDecodeErrorZ_get_err(owner: bigint): bigi } const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_get_err(owner); return nativeResponseValue; +} + // struct LDKChannelId CResult_ChannelIdDecodeErrorZ_get_ok(LDKCResult_ChannelIdDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_ChannelIdDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelIdDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_ChannelIdDecodeErrorZ_get_err(LDKCResult_ChannelIdDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_ChannelIdDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelIdDecodeErrorZ_get_err(owner); + return nativeResponseValue; } // struct LDKThirtyTwoBytes C2Tuple__u832u16Z_get_a(LDKC2Tuple__u832u16Z *NONNULL_PTR owner); /* @internal */ @@ -9216,50 +10129,77 @@ export function CResult_PaymentConstraintsDecodeErrorZ_get_err(owner: bigint): b const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_get_err(owner); return nativeResponseValue; } - // struct LDKThirtyTwoBytes C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner); + // struct LDKPaymentContext CResult_PaymentContextDecodeErrorZ_get_ok(LDKCResult_PaymentContextDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(owner: bigint): number { +export function CResult_PaymentContextDecodeErrorZ_get_ok(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(owner); + const nativeResponseValue = wasm.TS_CResult_PaymentContextDecodeErrorZ_get_ok(owner); return nativeResponseValue; } - // struct LDKRecipientOnionFields C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner); + // struct LDKDecodeError CResult_PaymentContextDecodeErrorZ_get_err(LDKCResult_PaymentContextDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(owner: bigint): bigint { +export function CResult_PaymentContextDecodeErrorZ_get_err(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(owner); + const nativeResponseValue = wasm.TS_CResult_PaymentContextDecodeErrorZ_get_err(owner); return nativeResponseValue; } - // struct LDKRouteParameters C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner); + // struct LDKUnknownPaymentContext CResult_UnknownPaymentContextDecodeErrorZ_get_ok(LDKCResult_UnknownPaymentContextDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(owner: bigint): bigint { +export function CResult_UnknownPaymentContextDecodeErrorZ_get_ok(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(owner); + const nativeResponseValue = wasm.TS_CResult_UnknownPaymentContextDecodeErrorZ_get_ok(owner); return nativeResponseValue; } - // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR owner); + // struct LDKDecodeError CResult_UnknownPaymentContextDecodeErrorZ_get_err(LDKCResult_UnknownPaymentContextDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(owner: bigint): bigint { +export function CResult_UnknownPaymentContextDecodeErrorZ_get_err(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(owner); + const nativeResponseValue = wasm.TS_CResult_UnknownPaymentContextDecodeErrorZ_get_err(owner); return nativeResponseValue; } - // void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR owner); + // struct LDKBolt12OfferContext CResult_Bolt12OfferContextDecodeErrorZ_get_ok(LDKCResult_Bolt12OfferContextDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err(owner: bigint): void { +export function CResult_Bolt12OfferContextDecodeErrorZ_get_ok(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err(owner); - // debug statements here + const nativeResponseValue = wasm.TS_CResult_Bolt12OfferContextDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_Bolt12OfferContextDecodeErrorZ_get_err(LDKCResult_Bolt12OfferContextDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_Bolt12OfferContextDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12OfferContextDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKBolt12RefundContext CResult_Bolt12RefundContextDecodeErrorZ_get_ok(LDKCResult_Bolt12RefundContextDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_Bolt12RefundContextDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12RefundContextDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_Bolt12RefundContextDecodeErrorZ_get_err(LDKCResult_Bolt12RefundContextDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_Bolt12RefundContextDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12RefundContextDecodeErrorZ_get_err(owner); + return nativeResponseValue; } // struct LDKStr CResult_StrSecp256k1ErrorZ_get_ok(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR owner); /* @internal */ @@ -9278,6 +10218,51 @@ export function CResult_StrSecp256k1ErrorZ_get_err(owner: bigint): Secp256k1Erro } const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_get_err(owner); return nativeResponseValue; +} + // struct LDKThirtyTwoBytes C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner); +/* @internal */ +export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(owner: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_a(owner); + return nativeResponseValue; +} + // struct LDKRecipientOnionFields C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner); +/* @internal */ +export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_b(owner); + return nativeResponseValue; +} + // struct LDKRouteParameters C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR owner); +/* @internal */ +export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_get_c(owner); + return nativeResponseValue; +} + // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_ok(owner); + return nativeResponseValue; +} + // void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err(owner: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_get_err(owner); + // debug statements here } // struct LDKPublicKey C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_get_a(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR owner); /* @internal */ @@ -9353,6 +10338,34 @@ export function CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZ return nativeResponseValue; } /* @internal */ +export class LDKNextMessageHop { + protected constructor() {} +} +/* @internal */ +export function LDKNextMessageHop_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKNextMessageHop_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKNextMessageHop_NodeId_get_node_id(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKNextMessageHop_NodeId_get_node_id(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKNextMessageHop_ShortChannelId_get_short_channel_id(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKNextMessageHop_ShortChannelId_get_short_channel_id(ptr); + return nativeResponseValue; +} +/* @internal */ export class LDKParsedOnionMessageContents { protected constructor() {} } @@ -9393,7 +10406,7 @@ export function LDKPeeledOnion_ty_from_ptr(ptr: bigint): number { return nativeResponseValue; } /* @internal */ -export function LDKPeeledOnion_Forward_get__0(ptr: bigint): number { +export function LDKPeeledOnion_Forward_get__0(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -9578,112 +10591,124 @@ export function CResult_InvoiceErrorDecodeErrorZ_get_err(owner: bigint): bigint const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_get_err(owner); return nativeResponseValue; } - // struct LDKDelayedPaymentBasepoint CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR owner); + // struct LDKTrackedSpendableOutput CResult_TrackedSpendableOutputDecodeErrorZ_get_ok(LDKCResult_TrackedSpendableOutputDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(owner: bigint): bigint { +export function CResult_TrackedSpendableOutputDecodeErrorZ_get_ok(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(owner); + const nativeResponseValue = wasm.TS_CResult_TrackedSpendableOutputDecodeErrorZ_get_ok(owner); return nativeResponseValue; } - // struct LDKDecodeError CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR owner); + // struct LDKDecodeError CResult_TrackedSpendableOutputDecodeErrorZ_get_err(LDKCResult_TrackedSpendableOutputDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(owner: bigint): bigint { +export function CResult_TrackedSpendableOutputDecodeErrorZ_get_err(owner: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(owner); + const nativeResponseValue = wasm.TS_CResult_TrackedSpendableOutputDecodeErrorZ_get_err(owner); return nativeResponseValue; } - // struct LDKDelayedPaymentKey CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(owner: bigint): bigint { +export class LDKOutputSpendStatus { + protected constructor() {} +} +/* @internal */ +export function LDKOutputSpendStatus_ty_from_ptr(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(owner); + const nativeResponseValue = wasm.TS_LDKOutputSpendStatus_ty_from_ptr(ptr); return nativeResponseValue; } - // struct LDKDecodeError CResult_DelayedPaymentKeyDecodeErrorZ_get_err(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_DelayedPaymentKeyDecodeErrorZ_get_err(owner: bigint): bigint { +export function LDKOutputSpendStatus_PendingInitialBroadcast_get_delayed_until_height(ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_get_err(owner); + const nativeResponseValue = wasm.TS_LDKOutputSpendStatus_PendingInitialBroadcast_get_delayed_until_height(ptr); return nativeResponseValue; } - // struct LDKHtlcBasepoint CResult_HtlcBasepointDecodeErrorZ_get_ok(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_HtlcBasepointDecodeErrorZ_get_ok(owner: bigint): bigint { +export function LDKOutputSpendStatus_PendingFirstConfirmation_get_first_broadcast_hash(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_get_ok(owner); + const nativeResponseValue = wasm.TS_LDKOutputSpendStatus_PendingFirstConfirmation_get_first_broadcast_hash(ptr); return nativeResponseValue; } - // struct LDKDecodeError CResult_HtlcBasepointDecodeErrorZ_get_err(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_HtlcBasepointDecodeErrorZ_get_err(owner: bigint): bigint { +export function LDKOutputSpendStatus_PendingFirstConfirmation_get_latest_broadcast_height(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_get_err(owner); + const nativeResponseValue = wasm.TS_LDKOutputSpendStatus_PendingFirstConfirmation_get_latest_broadcast_height(ptr); return nativeResponseValue; } - // struct LDKHtlcKey CResult_HtlcKeyDecodeErrorZ_get_ok(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_HtlcKeyDecodeErrorZ_get_ok(owner: bigint): bigint { +export function LDKOutputSpendStatus_PendingFirstConfirmation_get_latest_spending_tx(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_get_ok(owner); + const nativeResponseValue = wasm.TS_LDKOutputSpendStatus_PendingFirstConfirmation_get_latest_spending_tx(ptr); return nativeResponseValue; } - // struct LDKDecodeError CResult_HtlcKeyDecodeErrorZ_get_err(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_HtlcKeyDecodeErrorZ_get_err(owner: bigint): bigint { +export function LDKOutputSpendStatus_PendingThresholdConfirmations_get_first_broadcast_hash(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_get_err(owner); + const nativeResponseValue = wasm.TS_LDKOutputSpendStatus_PendingThresholdConfirmations_get_first_broadcast_hash(ptr); return nativeResponseValue; } - // struct LDKRevocationBasepoint CResult_RevocationBasepointDecodeErrorZ_get_ok(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_RevocationBasepointDecodeErrorZ_get_ok(owner: bigint): bigint { +export function LDKOutputSpendStatus_PendingThresholdConfirmations_get_latest_broadcast_height(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_get_ok(owner); + const nativeResponseValue = wasm.TS_LDKOutputSpendStatus_PendingThresholdConfirmations_get_latest_broadcast_height(ptr); return nativeResponseValue; } - // struct LDKDecodeError CResult_RevocationBasepointDecodeErrorZ_get_err(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_RevocationBasepointDecodeErrorZ_get_err(owner: bigint): bigint { +export function LDKOutputSpendStatus_PendingThresholdConfirmations_get_latest_spending_tx(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_get_err(owner); + const nativeResponseValue = wasm.TS_LDKOutputSpendStatus_PendingThresholdConfirmations_get_latest_spending_tx(ptr); return nativeResponseValue; } - // struct LDKRevocationKey CResult_RevocationKeyDecodeErrorZ_get_ok(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_RevocationKeyDecodeErrorZ_get_ok(owner: bigint): bigint { +export function LDKOutputSpendStatus_PendingThresholdConfirmations_get_confirmation_height(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_get_ok(owner); + const nativeResponseValue = wasm.TS_LDKOutputSpendStatus_PendingThresholdConfirmations_get_confirmation_height(ptr); return nativeResponseValue; } - // struct LDKDecodeError CResult_RevocationKeyDecodeErrorZ_get_err(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR owner); /* @internal */ -export function CResult_RevocationKeyDecodeErrorZ_get_err(owner: bigint): bigint { +export function LDKOutputSpendStatus_PendingThresholdConfirmations_get_confirmation_hash(ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_get_err(owner); + const nativeResponseValue = wasm.TS_LDKOutputSpendStatus_PendingThresholdConfirmations_get_confirmation_hash(ptr); + return nativeResponseValue; +} + // struct LDKOutputSpendStatus CResult_OutputSpendStatusDecodeErrorZ_get_ok(LDKCResult_OutputSpendStatusDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_OutputSpendStatusDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OutputSpendStatusDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_OutputSpendStatusDecodeErrorZ_get_err(LDKCResult_OutputSpendStatusDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_OutputSpendStatusDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OutputSpendStatusDecodeErrorZ_get_err(owner); return nativeResponseValue; } /* @internal */ @@ -9742,40 +10767,30 @@ export function LDKCOption_FilterZ_Some_get_some(ptr: bigint): bigint { const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_Some_get_some(ptr); return nativeResponseValue; } - // struct LDKLockedChannelMonitor CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner); /* @internal */ -export function CResult_LockedChannelMonitorNoneZ_get_ok(owner: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_ok(owner); - return nativeResponseValue; +export interface LDKChangeDestinationSource { + get_change_destination_script (): bigint; } - // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner); + /* @internal */ -export function CResult_LockedChannelMonitorNoneZ_get_err(owner: bigint): void { +export function LDKChangeDestinationSource_new(impl: LDKChangeDestinationSource): [bigint, number] { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_err(owner); - // debug statements here -} - // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner); -/* @internal */ -export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(owner: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); + var new_obj_idx = js_objs.length; + for (var i = 0; i < js_objs.length; i++) { + if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; } } - const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(owner); - return nativeResponseValue; + js_objs[i] = new WeakRef(impl); + return [wasm.TS_LDKChangeDestinationSource_new(i), i]; } - // struct LDKCVec_MonitorUpdateIdZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner); + // LDKCResult_CVec_u8ZNoneZ ChangeDestinationSource_get_change_destination_script LDKChangeDestinationSource *NONNULL_PTR this_arg /* @internal */ -export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(owner: bigint): number { +export function ChangeDestinationSource_get_change_destination_script(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(owner); + const nativeResponseValue = wasm.TS_ChangeDestinationSource_get_change_destination_script(this_arg); return nativeResponseValue; } /* @internal */ @@ -9835,6 +10850,248 @@ export function KVStore_list(this_arg: bigint, primary_namespace: number, second return nativeResponseValue; } /* @internal */ +export interface LDKOutputSpender { + spend_spendable_outputs (descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number, locktime: bigint): bigint; +} + +/* @internal */ +export function LDKOutputSpender_new(impl: LDKOutputSpender): [bigint, number] { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + var new_obj_idx = js_objs.length; + for (var i = 0; i < js_objs.length; i++) { + if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; } + } + js_objs[i] = new WeakRef(impl); + return [wasm.TS_LDKOutputSpender_new(i), i]; +} + // LDKCResult_TransactionNoneZ OutputSpender_spend_spendable_outputs LDKOutputSpender *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime +/* @internal */ +export function OutputSpender_spend_spendable_outputs(this_arg: bigint, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number, locktime: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OutputSpender_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight, locktime); + return nativeResponseValue; +} + // struct LDKOutputSweeper CResult_OutputSweeperDecodeErrorZ_get_ok(LDKCResult_OutputSweeperDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_OutputSweeperDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OutputSweeperDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_OutputSweeperDecodeErrorZ_get_err(LDKCResult_OutputSweeperDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_OutputSweeperDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OutputSweeperDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKBestBlock C2Tuple_BestBlockOutputSweeperZ_get_a(LDKC2Tuple_BestBlockOutputSweeperZ *NONNULL_PTR owner); +/* @internal */ +export function C2Tuple_BestBlockOutputSweeperZ_get_a(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C2Tuple_BestBlockOutputSweeperZ_get_a(owner); + return nativeResponseValue; +} + // struct LDKOutputSweeper C2Tuple_BestBlockOutputSweeperZ_get_b(LDKC2Tuple_BestBlockOutputSweeperZ *NONNULL_PTR owner); +/* @internal */ +export function C2Tuple_BestBlockOutputSweeperZ_get_b(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C2Tuple_BestBlockOutputSweeperZ_get_b(owner); + return nativeResponseValue; +} + // struct LDKC2Tuple_BestBlockOutputSweeperZ *CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKDelayedPaymentBasepoint CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKDelayedPaymentKey CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_DelayedPaymentKeyDecodeErrorZ_get_err(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_DelayedPaymentKeyDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKHtlcBasepoint CResult_HtlcBasepointDecodeErrorZ_get_ok(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_HtlcBasepointDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_HtlcBasepointDecodeErrorZ_get_err(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_HtlcBasepointDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKHtlcKey CResult_HtlcKeyDecodeErrorZ_get_ok(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_HtlcKeyDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_HtlcKeyDecodeErrorZ_get_err(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_HtlcKeyDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKRevocationBasepoint CResult_RevocationBasepointDecodeErrorZ_get_ok(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_RevocationBasepointDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_RevocationBasepointDecodeErrorZ_get_err(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_RevocationBasepointDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKRevocationKey CResult_RevocationKeyDecodeErrorZ_get_ok(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_RevocationKeyDecodeErrorZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_get_ok(owner); + return nativeResponseValue; +} + // struct LDKDecodeError CResult_RevocationKeyDecodeErrorZ_get_err(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_RevocationKeyDecodeErrorZ_get_err(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_get_err(owner); + return nativeResponseValue; +} + // struct LDKLockedChannelMonitor CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_LockedChannelMonitorNoneZ_get_ok(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_ok(owner); + return nativeResponseValue; +} + // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner); +/* @internal */ +export function CResult_LockedChannelMonitorNoneZ_get_err(owner: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_err(owner); + // debug statements here +} + // struct LDKOutPoint C2Tuple_OutPointChannelIdZ_get_a(LDKC2Tuple_OutPointChannelIdZ *NONNULL_PTR owner); +/* @internal */ +export function C2Tuple_OutPointChannelIdZ_get_a(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C2Tuple_OutPointChannelIdZ_get_a(owner); + return nativeResponseValue; +} + // struct LDKChannelId C2Tuple_OutPointChannelIdZ_get_b(LDKC2Tuple_OutPointChannelIdZ *NONNULL_PTR owner); +/* @internal */ +export function C2Tuple_OutPointChannelIdZ_get_b(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C2Tuple_OutPointChannelIdZ_get_b(owner); + return nativeResponseValue; +} + // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner); +/* @internal */ +export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(owner: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(owner); + return nativeResponseValue; +} + // struct LDKCVec_MonitorUpdateIdZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner); +/* @internal */ +export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(owner: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(owner); + return nativeResponseValue; +} +/* @internal */ export class LDKCandidateRouteHop { protected constructor() {} } @@ -10088,8 +11345,9 @@ export function Persister_persist_scorer(this_arg: bigint, scorer: bigint): bigi } /* @internal */ export interface LDKPersist { - persist_new_channel (channel_id: bigint, data: bigint, update_id: bigint): ChannelMonitorUpdateStatus; - update_persisted_channel (channel_id: bigint, update: bigint, data: bigint, update_id: bigint): ChannelMonitorUpdateStatus; + persist_new_channel (channel_funding_outpoint: bigint, data: bigint, update_id: bigint): ChannelMonitorUpdateStatus; + update_persisted_channel (channel_funding_outpoint: bigint, update: bigint, data: bigint, update_id: bigint): ChannelMonitorUpdateStatus; + archive_persisted_channel (channel_funding_outpoint: bigint): void; } /* @internal */ @@ -10104,48 +11362,31 @@ export function LDKPersist_new(impl: LDKPersist): [bigint, number] { js_objs[i] = new WeakRef(impl); return [wasm.TS_LDKPersist_new(i), i]; } - // LDKChannelMonitorUpdateStatus Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id + // LDKChannelMonitorUpdateStatus Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_funding_outpoint, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id /* @internal */ -export function Persist_persist_new_channel(this_arg: bigint, channel_id: bigint, data: bigint, update_id: bigint): ChannelMonitorUpdateStatus { +export function Persist_persist_new_channel(this_arg: bigint, channel_funding_outpoint: bigint, data: bigint, update_id: bigint): ChannelMonitorUpdateStatus { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Persist_persist_new_channel(this_arg, channel_id, data, update_id); + const nativeResponseValue = wasm.TS_Persist_persist_new_channel(this_arg, channel_funding_outpoint, data, update_id); return nativeResponseValue; } - // LDKChannelMonitorUpdateStatus Persist_update_persisted_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, struct LDKChannelMonitorUpdate update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id + // LDKChannelMonitorUpdateStatus Persist_update_persisted_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_funding_outpoint, struct LDKChannelMonitorUpdate update, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id /* @internal */ -export function Persist_update_persisted_channel(this_arg: bigint, channel_id: bigint, update: bigint, data: bigint, update_id: bigint): ChannelMonitorUpdateStatus { +export function Persist_update_persisted_channel(this_arg: bigint, channel_funding_outpoint: bigint, update: bigint, data: bigint, update_id: bigint): ChannelMonitorUpdateStatus { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Persist_update_persisted_channel(this_arg, channel_id, update, data, update_id); + const nativeResponseValue = wasm.TS_Persist_update_persisted_channel(this_arg, channel_funding_outpoint, update, data, update_id); return nativeResponseValue; } + // void Persist_archive_persisted_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_funding_outpoint /* @internal */ -export interface LDKFutureCallback { - call (): void; -} - -/* @internal */ -export function LDKFutureCallback_new(impl: LDKFutureCallback): [bigint, number] { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - var new_obj_idx = js_objs.length; - for (var i = 0; i < js_objs.length; i++) { - if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; } - } - js_objs[i] = new WeakRef(impl); - return [wasm.TS_LDKFutureCallback_new(i), i]; -} - // void FutureCallback_call LDKFutureCallback *NONNULL_PTR this_arg -/* @internal */ -export function FutureCallback_call(this_arg: bigint): void { +export function Persist_archive_persisted_channel(this_arg: bigint, channel_funding_outpoint: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_FutureCallback_call(this_arg); + const nativeResponseValue = wasm.TS_Persist_archive_persisted_channel(this_arg, channel_funding_outpoint); // debug statements here } /* @internal */ @@ -10251,6 +11492,60 @@ export function Confirm_get_relevant_txids(this_arg: bigint): number { return nativeResponseValue; } /* @internal */ +export class LDKSpendingDelay { + protected constructor() {} +} +/* @internal */ +export function LDKSpendingDelay_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKSpendingDelay_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKSpendingDelay_Relative_get_num_blocks(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKSpendingDelay_Relative_get_num_blocks(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKSpendingDelay_Absolute_get_height(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKSpendingDelay_Absolute_get_height(ptr); + return nativeResponseValue; +} +/* @internal */ +export interface LDKFutureCallback { + call (): void; +} + +/* @internal */ +export function LDKFutureCallback_new(impl: LDKFutureCallback): [bigint, number] { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + var new_obj_idx = js_objs.length; + for (var i = 0; i < js_objs.length; i++) { + if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; } + } + js_objs[i] = new WeakRef(impl); + return [wasm.TS_LDKFutureCallback_new(i), i]; +} + // void FutureCallback_call LDKFutureCallback *NONNULL_PTR this_arg +/* @internal */ +export function FutureCallback_call(this_arg: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_FutureCallback_call(this_arg); + // debug statements here +} +/* @internal */ export interface LDKEventHandler { handle_event (event: bigint): void; } @@ -10360,9 +11655,6 @@ export interface LDKChannelMessageHandler { handle_shutdown (their_node_id: number, msg: bigint): void; handle_closing_signed (their_node_id: number, msg: bigint): void; handle_stfu (their_node_id: number, msg: bigint): void; - handle_splice (their_node_id: number, msg: bigint): void; - handle_splice_ack (their_node_id: number, msg: bigint): void; - handle_splice_locked (their_node_id: number, msg: bigint): void; handle_tx_add_input (their_node_id: number, msg: bigint): void; handle_tx_add_output (their_node_id: number, msg: bigint): void; handle_tx_remove_input (their_node_id: number, msg: bigint): void; @@ -10491,33 +11783,6 @@ export function ChannelMessageHandler_handle_stfu(this_arg: bigint, their_node_i } const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_stfu(this_arg, their_node_id, msg); // debug statements here -} - // void ChannelMessageHandler_handle_splice LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKSplice *NONNULL_PTR msg -/* @internal */ -export function ChannelMessageHandler_handle_splice(this_arg: bigint, their_node_id: number, msg: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_splice(this_arg, their_node_id, msg); - // debug statements here -} - // void ChannelMessageHandler_handle_splice_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKSpliceAck *NONNULL_PTR msg -/* @internal */ -export function ChannelMessageHandler_handle_splice_ack(this_arg: bigint, their_node_id: number, msg: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_splice_ack(this_arg, their_node_id, msg); - // debug statements here -} - // void ChannelMessageHandler_handle_splice_locked LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKSpliceLocked *NONNULL_PTR msg -/* @internal */ -export function ChannelMessageHandler_handle_splice_locked(this_arg: bigint, their_node_id: number, msg: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_splice_locked(this_arg, their_node_id, msg); - // debug statements here } // void ChannelMessageHandler_handle_tx_add_input LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKTxAddInput *NONNULL_PTR msg /* @internal */ @@ -10781,6 +12046,32 @@ export function OffersMessageHandler_release_pending_messages(this_arg: bigint): return nativeResponseValue; } /* @internal */ +export interface LDKNodeIdLookUp { + next_node_id (short_channel_id: bigint): number; +} + +/* @internal */ +export function LDKNodeIdLookUp_new(impl: LDKNodeIdLookUp): [bigint, number] { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + var new_obj_idx = js_objs.length; + for (var i = 0; i < js_objs.length; i++) { + if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; } + } + js_objs[i] = new WeakRef(impl); + return [wasm.TS_LDKNodeIdLookUp_new(i), i]; +} + // LDKPublicKey NodeIdLookUp_next_node_id LDKNodeIdLookUp *NONNULL_PTR this_arg, uint64_t short_channel_id +/* @internal */ +export function NodeIdLookUp_next_node_id(this_arg: bigint, short_channel_id: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NodeIdLookUp_next_node_id(this_arg, short_channel_id); + return nativeResponseValue; +} +/* @internal */ export interface LDKRoutingMessageHandler { handle_node_announcement (msg: bigint): bigint; handle_channel_announcement (msg: bigint): bigint; @@ -11198,6 +12489,78 @@ export function SocketDescriptor_hash(this_arg: bigint): bigint { return nativeResponseValue; } /* @internal */ +export interface LDKSignBolt12InvoiceFn { + sign_invoice (message: bigint): bigint; +} + +/* @internal */ +export function LDKSignBolt12InvoiceFn_new(impl: LDKSignBolt12InvoiceFn): [bigint, number] { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + var new_obj_idx = js_objs.length; + for (var i = 0; i < js_objs.length; i++) { + if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; } + } + js_objs[i] = new WeakRef(impl); + return [wasm.TS_LDKSignBolt12InvoiceFn_new(i), i]; +} + // LDKCResult_SchnorrSignatureNoneZ SignBolt12InvoiceFn_sign_invoice LDKSignBolt12InvoiceFn *NONNULL_PTR this_arg, const struct LDKUnsignedBolt12Invoice *NONNULL_PTR message +/* @internal */ +export function SignBolt12InvoiceFn_sign_invoice(this_arg: bigint, message: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SignBolt12InvoiceFn_sign_invoice(this_arg, message); + return nativeResponseValue; +} +/* @internal */ +export interface LDKSignInvoiceRequestFn { + sign_invoice_request (message: bigint): bigint; +} + +/* @internal */ +export function LDKSignInvoiceRequestFn_new(impl: LDKSignInvoiceRequestFn): [bigint, number] { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + var new_obj_idx = js_objs.length; + for (var i = 0; i < js_objs.length; i++) { + if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; } + } + js_objs[i] = new WeakRef(impl); + return [wasm.TS_LDKSignInvoiceRequestFn_new(i), i]; +} + // LDKCResult_SchnorrSignatureNoneZ SignInvoiceRequestFn_sign_invoice_request LDKSignInvoiceRequestFn *NONNULL_PTR this_arg, const struct LDKUnsignedInvoiceRequest *NONNULL_PTR message +/* @internal */ +export function SignInvoiceRequestFn_sign_invoice_request(this_arg: bigint, message: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SignInvoiceRequestFn_sign_invoice_request(this_arg, message); + return nativeResponseValue; +} +/* @internal */ +export class LDKSignError { + protected constructor() {} +} +/* @internal */ +export function LDKSignError_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKSignError_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKSignError_Verification_get_verification(ptr: bigint): Secp256k1Error { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKSignError_Verification_get_verification(ptr); + return nativeResponseValue; +} +/* @internal */ export class LDKEffectiveCapacity { protected constructor() {} } @@ -11336,6 +12699,42 @@ export function Score_write(this_arg: bigint): number { return nativeResponseValue; } /* @internal */ +export class LDKIntroductionNode { + protected constructor() {} +} +/* @internal */ +export function LDKIntroductionNode_ty_from_ptr(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKIntroductionNode_ty_from_ptr(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKIntroductionNode_NodeId_get_node_id(ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKIntroductionNode_NodeId_get_node_id(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKIntroductionNode_DirectedShortChannelId_get__0(ptr: bigint): Direction { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKIntroductionNode_DirectedShortChannelId_get__0(ptr); + return nativeResponseValue; +} +/* @internal */ +export function LDKIntroductionNode_DirectedShortChannelId_get__1(ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_LDKIntroductionNode_DirectedShortChannelId_get__1(ptr); + return nativeResponseValue; +} +/* @internal */ export interface LDKCoinSelectionSource { select_confirmed_utxos (claim_id: number, must_spend: number, must_pay_to: number, target_feerate_sat_per_1000_weight: number): bigint; sign_psbt (psbt: number): bigint; @@ -11587,6 +12986,24 @@ export function BigEndianScalar_new(big_endian_bytes: number): bigint { } const nativeResponseValue = wasm.TS_BigEndianScalar_new(big_endian_bytes); return nativeResponseValue; +} + // uint64_t BigEndianScalar_clone_ptr(LDKBigEndianScalar *NONNULL_PTR arg); +/* @internal */ +export function BigEndianScalar_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_BigEndianScalar_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKBigEndianScalar BigEndianScalar_clone(const struct LDKBigEndianScalar *NONNULL_PTR orig); +/* @internal */ +export function BigEndianScalar_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_BigEndianScalar_clone(orig); + return nativeResponseValue; } // uint64_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg); /* @internal */ @@ -11758,6 +13175,123 @@ export function Str_free(_res: number): void { } const nativeResponseValue = wasm.TS_Str_free(_res); // debug statements here +} + // void CVec_u8Z_free(struct LDKCVec_u8Z _res); +/* @internal */ +export function CVec_u8Z_free(_res: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CVec_u8Z_free(_res); + // debug statements here +} + // struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_ok(struct LDKRefundMaybeWithDerivedMetadataBuilder o); +/* @internal */ +export function CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); +/* @internal */ +export function CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_is_ok(const struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_free(struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ _res); +/* @internal */ +export function CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone_ptr(LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone(const struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_RefundBolt12SemanticErrorZ CResult_RefundBolt12SemanticErrorZ_ok(struct LDKRefund o); +/* @internal */ +export function CResult_RefundBolt12SemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundBolt12SemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_RefundBolt12SemanticErrorZ CResult_RefundBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); +/* @internal */ +export function CResult_RefundBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundBolt12SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_RefundBolt12SemanticErrorZ_is_ok(const struct LDKCResult_RefundBolt12SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_RefundBolt12SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundBolt12SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_RefundBolt12SemanticErrorZ_free(struct LDKCResult_RefundBolt12SemanticErrorZ _res); +/* @internal */ +export function CResult_RefundBolt12SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundBolt12SemanticErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_RefundBolt12SemanticErrorZ_clone_ptr(LDKCResult_RefundBolt12SemanticErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_RefundBolt12SemanticErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundBolt12SemanticErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_RefundBolt12SemanticErrorZ CResult_RefundBolt12SemanticErrorZ_clone(const struct LDKCResult_RefundBolt12SemanticErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_RefundBolt12SemanticErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_RefundBolt12SemanticErrorZ_clone(orig); + return nativeResponseValue; } // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o); /* @internal */ @@ -12037,15 +13571,6 @@ export function COption_ThirtyTwoBytesZ_clone(orig: bigint): bigint { } const nativeResponseValue = wasm.TS_COption_ThirtyTwoBytesZ_clone(orig); return nativeResponseValue; -} - // void CVec_u8Z_free(struct LDKCVec_u8Z _res); -/* @internal */ -export function CVec_u8Z_free(_res: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CVec_u8Z_free(_res); - // debug statements here } // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_some(struct LDKCVec_u8Z o); /* @internal */ @@ -12244,6 +13769,168 @@ export function CResult_RecipientOnionFieldsNoneZ_clone(orig: bigint): bigint { } const nativeResponseValue = wasm.TS_CResult_RecipientOnionFieldsNoneZ_clone(orig); return nativeResponseValue; +} + // struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_ok(struct LDKUnsignedBolt12Invoice o); +/* @internal */ +export function CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); +/* @internal */ +export function CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_is_ok(const struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_free(struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ _res); +/* @internal */ +export function CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_clone_ptr(LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_clone(const struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ CResult_Bolt12InvoiceBolt12SemanticErrorZ_ok(struct LDKBolt12Invoice o); +/* @internal */ +export function CResult_Bolt12InvoiceBolt12SemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12InvoiceBolt12SemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ CResult_Bolt12InvoiceBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); +/* @internal */ +export function CResult_Bolt12InvoiceBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12InvoiceBolt12SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_Bolt12InvoiceBolt12SemanticErrorZ_is_ok(const struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_Bolt12InvoiceBolt12SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12InvoiceBolt12SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_Bolt12InvoiceBolt12SemanticErrorZ_free(struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ _res); +/* @internal */ +export function CResult_Bolt12InvoiceBolt12SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12InvoiceBolt12SemanticErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_Bolt12InvoiceBolt12SemanticErrorZ_clone_ptr(LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_Bolt12InvoiceBolt12SemanticErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12InvoiceBolt12SemanticErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ CResult_Bolt12InvoiceBolt12SemanticErrorZ_clone(const struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_Bolt12InvoiceBolt12SemanticErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12InvoiceBolt12SemanticErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_ok(struct LDKSchnorrSignature o); +/* @internal */ +export function CResult_SchnorrSignatureNoneZ_ok(o: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_err(void); +/* @internal */ +export function CResult_SchnorrSignatureNoneZ_err(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_err(); + return nativeResponseValue; +} + // bool CResult_SchnorrSignatureNoneZ_is_ok(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR o); +/* @internal */ +export function CResult_SchnorrSignatureNoneZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_SchnorrSignatureNoneZ_free(struct LDKCResult_SchnorrSignatureNoneZ _res); +/* @internal */ +export function CResult_SchnorrSignatureNoneZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_free(_res); + // debug statements here +} + // uint64_t CResult_SchnorrSignatureNoneZ_clone_ptr(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_SchnorrSignatureNoneZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_clone(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_SchnorrSignatureNoneZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_clone(orig); + return nativeResponseValue; } // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res); /* @internal */ @@ -12298,6 +13985,96 @@ export function COption_CVec_ThirtyTwoBytesZZ_clone(orig: bigint): bigint { } const nativeResponseValue = wasm.TS_COption_CVec_ThirtyTwoBytesZZ_clone(orig); return nativeResponseValue; +} + // struct LDKCOption_AmountZ COption_AmountZ_some(struct LDKAmount o); +/* @internal */ +export function COption_AmountZ_some(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_AmountZ_some(o); + return nativeResponseValue; +} + // struct LDKCOption_AmountZ COption_AmountZ_none(void); +/* @internal */ +export function COption_AmountZ_none(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_AmountZ_none(); + return nativeResponseValue; +} + // void COption_AmountZ_free(struct LDKCOption_AmountZ _res); +/* @internal */ +export function COption_AmountZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_AmountZ_free(_res); + // debug statements here +} + // uint64_t COption_AmountZ_clone_ptr(LDKCOption_AmountZ *NONNULL_PTR arg); +/* @internal */ +export function COption_AmountZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_AmountZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCOption_AmountZ COption_AmountZ_clone(const struct LDKCOption_AmountZ *NONNULL_PTR orig); +/* @internal */ +export function COption_AmountZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_AmountZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCOption_QuantityZ COption_QuantityZ_some(struct LDKQuantity o); +/* @internal */ +export function COption_QuantityZ_some(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_QuantityZ_some(o); + return nativeResponseValue; +} + // struct LDKCOption_QuantityZ COption_QuantityZ_none(void); +/* @internal */ +export function COption_QuantityZ_none(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_QuantityZ_none(); + return nativeResponseValue; +} + // void COption_QuantityZ_free(struct LDKCOption_QuantityZ _res); +/* @internal */ +export function COption_QuantityZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_QuantityZ_free(_res); + // debug statements here +} + // uint64_t COption_QuantityZ_clone_ptr(LDKCOption_QuantityZ *NONNULL_PTR arg); +/* @internal */ +export function COption_QuantityZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_QuantityZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCOption_QuantityZ COption_QuantityZ_clone(const struct LDKCOption_QuantityZ *NONNULL_PTR orig); +/* @internal */ +export function COption_QuantityZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_QuantityZ_clone(orig); + return nativeResponseValue; } // struct LDKCResult_ThirtyTwoBytesNoneZ CResult_ThirtyTwoBytesNoneZ_ok(struct LDKThirtyTwoBytes o); /* @internal */ @@ -13046,112 +14823,112 @@ export function CResult_RecoverableSignatureNoneZ_clone(orig: bigint): bigint { const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_ok(struct LDKSchnorrSignature o); + // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_ok(struct LDKECDSASignature o); /* @internal */ -export function CResult_SchnorrSignatureNoneZ_ok(o: number): bigint { +export function CResult_ECDSASignatureNoneZ_ok(o: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_err(void); + // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_err(void); /* @internal */ -export function CResult_SchnorrSignatureNoneZ_err(): bigint { +export function CResult_ECDSASignatureNoneZ_err(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_err(); + const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_err(); return nativeResponseValue; } - // bool CResult_SchnorrSignatureNoneZ_is_ok(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR o); + // bool CResult_ECDSASignatureNoneZ_is_ok(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR o); /* @internal */ -export function CResult_SchnorrSignatureNoneZ_is_ok(o: bigint): boolean { +export function CResult_ECDSASignatureNoneZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_is_ok(o); return nativeResponseValue; } - // void CResult_SchnorrSignatureNoneZ_free(struct LDKCResult_SchnorrSignatureNoneZ _res); + // void CResult_ECDSASignatureNoneZ_free(struct LDKCResult_ECDSASignatureNoneZ _res); /* @internal */ -export function CResult_SchnorrSignatureNoneZ_free(_res: bigint): void { +export function CResult_ECDSASignatureNoneZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_free(_res); // debug statements here } - // uint64_t CResult_SchnorrSignatureNoneZ_clone_ptr(LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR arg); + // uint64_t CResult_ECDSASignatureNoneZ_clone_ptr(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR arg); /* @internal */ -export function CResult_SchnorrSignatureNoneZ_clone_ptr(arg: bigint): bigint { +export function CResult_ECDSASignatureNoneZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_SchnorrSignatureNoneZ CResult_SchnorrSignatureNoneZ_clone(const struct LDKCResult_SchnorrSignatureNoneZ *NONNULL_PTR orig); + // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_clone(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR orig); /* @internal */ -export function CResult_SchnorrSignatureNoneZ_clone(orig: bigint): bigint { +export function CResult_ECDSASignatureNoneZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SchnorrSignatureNoneZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_ok(struct LDKECDSASignature o); + // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o); /* @internal */ -export function CResult_ECDSASignatureNoneZ_ok(o: number): bigint { +export function CResult_TransactionNoneZ_ok(o: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_err(void); + // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void); /* @internal */ -export function CResult_ECDSASignatureNoneZ_err(): bigint { +export function CResult_TransactionNoneZ_err(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_err(); + const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_err(); return nativeResponseValue; } - // bool CResult_ECDSASignatureNoneZ_is_ok(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR o); + // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o); /* @internal */ -export function CResult_ECDSASignatureNoneZ_is_ok(o: bigint): boolean { +export function CResult_TransactionNoneZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_is_ok(o); return nativeResponseValue; } - // void CResult_ECDSASignatureNoneZ_free(struct LDKCResult_ECDSASignatureNoneZ _res); + // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res); /* @internal */ -export function CResult_ECDSASignatureNoneZ_free(_res: bigint): void { +export function CResult_TransactionNoneZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_free(_res); // debug statements here } - // uint64_t CResult_ECDSASignatureNoneZ_clone_ptr(LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR arg); + // uint64_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg); /* @internal */ -export function CResult_ECDSASignatureNoneZ_clone_ptr(arg: bigint): bigint { +export function CResult_TransactionNoneZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_ECDSASignatureNoneZ CResult_ECDSASignatureNoneZ_clone(const struct LDKCResult_ECDSASignatureNoneZ *NONNULL_PTR orig); + // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig); /* @internal */ -export function CResult_ECDSASignatureNoneZ_clone(orig: bigint): bigint { +export function CResult_TransactionNoneZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ECDSASignatureNoneZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone(orig); return nativeResponseValue; } // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(struct LDKWriteableEcdsaChannelSigner o); @@ -13612,60 +15389,6 @@ export function CResult_InMemorySignerDecodeErrorZ_clone(orig: bigint): bigint { } const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone(orig); return nativeResponseValue; -} - // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o); -/* @internal */ -export function CResult_TransactionNoneZ_ok(o: number): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_ok(o); - return nativeResponseValue; -} - // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void); -/* @internal */ -export function CResult_TransactionNoneZ_err(): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_err(); - return nativeResponseValue; -} - // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o); -/* @internal */ -export function CResult_TransactionNoneZ_is_ok(o: bigint): boolean { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_is_ok(o); - return nativeResponseValue; -} - // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res); -/* @internal */ -export function CResult_TransactionNoneZ_free(_res: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_free(_res); - // debug statements here -} - // uint64_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg); -/* @internal */ -export function CResult_TransactionNoneZ_clone_ptr(arg: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone_ptr(arg); - return nativeResponseValue; -} - // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig); -/* @internal */ -export function CResult_TransactionNoneZ_clone(orig: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone(orig); - return nativeResponseValue; } // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res); /* @internal */ @@ -14719,6 +16442,60 @@ export function CResult_ProbabilisticScorerDecodeErrorZ_free(_res: bigint): void } const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_free(_res); // debug statements here +} + // struct LDKCResult_BestBlockDecodeErrorZ CResult_BestBlockDecodeErrorZ_ok(struct LDKBestBlock o); +/* @internal */ +export function CResult_BestBlockDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BestBlockDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_BestBlockDecodeErrorZ CResult_BestBlockDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_BestBlockDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BestBlockDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_BestBlockDecodeErrorZ_is_ok(const struct LDKCResult_BestBlockDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_BestBlockDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BestBlockDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_BestBlockDecodeErrorZ_free(struct LDKCResult_BestBlockDecodeErrorZ _res); +/* @internal */ +export function CResult_BestBlockDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BestBlockDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_BestBlockDecodeErrorZ_clone_ptr(LDKCResult_BestBlockDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_BestBlockDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BestBlockDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_BestBlockDecodeErrorZ CResult_BestBlockDecodeErrorZ_clone(const struct LDKCResult_BestBlockDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_BestBlockDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BestBlockDecodeErrorZ_clone(orig); + return nativeResponseValue; } // uint64_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg); /* @internal */ @@ -14873,49 +16650,49 @@ export function CVec_MonitorEventZ_free(_res: number): void { const nativeResponseValue = wasm.TS_CVec_MonitorEventZ_free(_res); // debug statements here } - // uint64_t C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR arg); + // uint64_t C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_clone_ptr(LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ *NONNULL_PTR arg); /* @internal */ -export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(arg: bigint): bigint { +export function C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(const struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR orig); + // struct LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_clone(const struct LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ *NONNULL_PTR orig); /* @internal */ -export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(orig: bigint): bigint { +export function C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(orig); + const nativeResponseValue = wasm.TS_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_clone(orig); return nativeResponseValue; } - // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b, struct LDKPublicKey c); + // struct LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_new(struct LDKOutPoint a, struct LDKChannelId b, struct LDKCVec_MonitorEventZ c, struct LDKPublicKey d); /* @internal */ -export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(a: bigint, b: number, c: number): bigint { +export function C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_new(a: bigint, b: bigint, c: number, d: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(a, b, c); + const nativeResponseValue = wasm.TS_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_new(a, b, c, d); return nativeResponseValue; } - // void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ _res); + // void C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_free(struct LDKC4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ _res); /* @internal */ -export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(_res: bigint): void { +export function C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(_res); + const nativeResponseValue = wasm.TS_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZ_free(_res); // debug statements here } - // void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(struct LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ _res); + // void CVec_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZZ_free(struct LDKCVec_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZZ _res); /* @internal */ -export function CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(_res: number): void { +export function CVec_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZZ_free(_res: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(_res); + const nativeResponseValue = wasm.TS_CVec_C4Tuple_OutPointChannelIdCVec_MonitorEventZPublicKeyZZ_free(_res); // debug statements here } // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o); @@ -15295,6 +17072,240 @@ export function CResult_ChannelTypeFeaturesDecodeErrorZ_clone(orig: bigint): big } const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_clone(orig); return nativeResponseValue; +} + // struct LDKCResult_OfferIdDecodeErrorZ CResult_OfferIdDecodeErrorZ_ok(struct LDKOfferId o); +/* @internal */ +export function CResult_OfferIdDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferIdDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_OfferIdDecodeErrorZ CResult_OfferIdDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_OfferIdDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferIdDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_OfferIdDecodeErrorZ_is_ok(const struct LDKCResult_OfferIdDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_OfferIdDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferIdDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_OfferIdDecodeErrorZ_free(struct LDKCResult_OfferIdDecodeErrorZ _res); +/* @internal */ +export function CResult_OfferIdDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferIdDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_OfferIdDecodeErrorZ_clone_ptr(LDKCResult_OfferIdDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_OfferIdDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferIdDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_OfferIdDecodeErrorZ CResult_OfferIdDecodeErrorZ_clone(const struct LDKCResult_OfferIdDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_OfferIdDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferIdDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_ok(void); +/* @internal */ +export function CResult_NoneBolt12SemanticErrorZ_ok(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_ok(); + return nativeResponseValue; +} + // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); +/* @internal */ +export function CResult_NoneBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_NoneBolt12SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_NoneBolt12SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_NoneBolt12SemanticErrorZ_free(struct LDKCResult_NoneBolt12SemanticErrorZ _res); +/* @internal */ +export function CResult_NoneBolt12SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_NoneBolt12SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_NoneBolt12SemanticErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_clone(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_NoneBolt12SemanticErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_OfferBolt12SemanticErrorZ CResult_OfferBolt12SemanticErrorZ_ok(struct LDKOffer o); +/* @internal */ +export function CResult_OfferBolt12SemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferBolt12SemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_OfferBolt12SemanticErrorZ CResult_OfferBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); +/* @internal */ +export function CResult_OfferBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferBolt12SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_OfferBolt12SemanticErrorZ_is_ok(const struct LDKCResult_OfferBolt12SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_OfferBolt12SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferBolt12SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_OfferBolt12SemanticErrorZ_free(struct LDKCResult_OfferBolt12SemanticErrorZ _res); +/* @internal */ +export function CResult_OfferBolt12SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferBolt12SemanticErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_OfferBolt12SemanticErrorZ_clone_ptr(LDKCResult_OfferBolt12SemanticErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_OfferBolt12SemanticErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferBolt12SemanticErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_OfferBolt12SemanticErrorZ CResult_OfferBolt12SemanticErrorZ_clone(const struct LDKCResult_OfferBolt12SemanticErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_OfferBolt12SemanticErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferBolt12SemanticErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_ok(struct LDKInvoiceRequestWithDerivedPayerIdBuilder o); +/* @internal */ +export function CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); +/* @internal */ +export function CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_is_ok(const struct LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_free(struct LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ _res); +/* @internal */ +export function CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ_free(_res); + // debug statements here +} + // struct LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_ok(struct LDKInvoiceRequestWithExplicitPayerIdBuilder o); +/* @internal */ +export function CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); +/* @internal */ +export function CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_is_ok(const struct LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_free(struct LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ _res); +/* @internal */ +export function CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ_free(_res); + // debug statements here } // struct LDKCResult_OfferBolt12ParseErrorZ CResult_OfferBolt12ParseErrorZ_ok(struct LDKOffer o); /* @internal */ @@ -15350,112 +17361,112 @@ export function CResult_OfferBolt12ParseErrorZ_clone(orig: bigint): bigint { const nativeResponseValue = wasm.TS_CResult_OfferBolt12ParseErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_ok(struct LDKPublicKey o); + // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o); /* @internal */ -export function CResult_PublicKeySecp256k1ErrorZ_ok(o: number): bigint { +export function CResult_NodeIdDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e); + // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_PublicKeySecp256k1ErrorZ_err(e: Secp256k1Error): bigint { +export function CResult_NodeIdDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_PublicKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR o); + // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_PublicKeySecp256k1ErrorZ_is_ok(o: bigint): boolean { +export function CResult_NodeIdDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_PublicKeySecp256k1ErrorZ_free(struct LDKCResult_PublicKeySecp256k1ErrorZ _res); + // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res); /* @internal */ -export function CResult_PublicKeySecp256k1ErrorZ_free(_res: bigint): void { +export function CResult_NodeIdDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_PublicKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR arg); + // uint64_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_PublicKeySecp256k1ErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_NodeIdDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_clone(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR orig); + // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_PublicKeySecp256k1ErrorZ_clone(orig: bigint): bigint { +export function CResult_NodeIdDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o); + // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_ok(struct LDKPublicKey o); /* @internal */ -export function CResult_NodeIdDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_PublicKeySecp256k1ErrorZ_ok(o: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e); /* @internal */ -export function CResult_NodeIdDecodeErrorZ_err(e: bigint): bigint { +export function CResult_PublicKeySecp256k1ErrorZ_err(e: Secp256k1Error): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_err(e); return nativeResponseValue; } - // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o); + // bool CResult_PublicKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_NodeIdDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_PublicKeySecp256k1ErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res); + // void CResult_PublicKeySecp256k1ErrorZ_free(struct LDKCResult_PublicKeySecp256k1ErrorZ _res); /* @internal */ -export function CResult_NodeIdDecodeErrorZ_free(_res: bigint): void { +export function CResult_PublicKeySecp256k1ErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_free(_res); // debug statements here } - // uint64_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_PublicKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_NodeIdDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_PublicKeySecp256k1ErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_PublicKeySecp256k1ErrorZ CResult_PublicKeySecp256k1ErrorZ_clone(const struct LDKCResult_PublicKeySecp256k1ErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_NodeIdDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_PublicKeySecp256k1ErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_PublicKeySecp256k1ErrorZ_clone(orig); return nativeResponseValue; } // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o); @@ -16195,6 +18206,42 @@ export function COption_CVec_SocketAddressZZ_clone(orig: bigint): bigint { } const nativeResponseValue = wasm.TS_COption_CVec_SocketAddressZZ_clone(orig); return nativeResponseValue; +} + // struct LDKCResult_u64ShortChannelIdErrorZ CResult_u64ShortChannelIdErrorZ_ok(uint64_t o); +/* @internal */ +export function CResult_u64ShortChannelIdErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_u64ShortChannelIdErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_u64ShortChannelIdErrorZ CResult_u64ShortChannelIdErrorZ_err(enum LDKShortChannelIdError e); +/* @internal */ +export function CResult_u64ShortChannelIdErrorZ_err(e: ShortChannelIdError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_u64ShortChannelIdErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_u64ShortChannelIdErrorZ_is_ok(const struct LDKCResult_u64ShortChannelIdErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_u64ShortChannelIdErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_u64ShortChannelIdErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_u64ShortChannelIdErrorZ_free(struct LDKCResult_u64ShortChannelIdErrorZ _res); +/* @internal */ +export function CResult_u64ShortChannelIdErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_u64ShortChannelIdErrorZ_free(_res); + // debug statements here } // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ CResult_PendingHTLCInfoInboundHTLCErrZ_ok(struct LDKPendingHTLCInfo o); /* @internal */ @@ -16231,6 +18278,24 @@ export function CResult_PendingHTLCInfoInboundHTLCErrZ_free(_res: bigint): void } const nativeResponseValue = wasm.TS_CResult_PendingHTLCInfoInboundHTLCErrZ_free(_res); // debug statements here +} + // uint64_t CResult_PendingHTLCInfoInboundHTLCErrZ_clone_ptr(LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_PendingHTLCInfoInboundHTLCErrZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PendingHTLCInfoInboundHTLCErrZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ CResult_PendingHTLCInfoInboundHTLCErrZ_clone(const struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_PendingHTLCInfoInboundHTLCErrZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PendingHTLCInfoInboundHTLCErrZ_clone(orig); + return nativeResponseValue; } // void CVec_HTLCOutputInCommitmentZ_free(struct LDKCVec_HTLCOutputInCommitmentZ _res); /* @internal */ @@ -16420,6 +18485,51 @@ export function CResult_CVec_UtxoZNoneZ_clone(orig: bigint): bigint { } const nativeResponseValue = wasm.TS_CResult_CVec_UtxoZNoneZ_clone(orig); return nativeResponseValue; +} + // struct LDKCOption_PaymentContextZ COption_PaymentContextZ_some(struct LDKPaymentContext o); +/* @internal */ +export function COption_PaymentContextZ_some(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PaymentContextZ_some(o); + return nativeResponseValue; +} + // struct LDKCOption_PaymentContextZ COption_PaymentContextZ_none(void); +/* @internal */ +export function COption_PaymentContextZ_none(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PaymentContextZ_none(); + return nativeResponseValue; +} + // void COption_PaymentContextZ_free(struct LDKCOption_PaymentContextZ _res); +/* @internal */ +export function COption_PaymentContextZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PaymentContextZ_free(_res); + // debug statements here +} + // uint64_t COption_PaymentContextZ_clone_ptr(LDKCOption_PaymentContextZ *NONNULL_PTR arg); +/* @internal */ +export function COption_PaymentContextZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PaymentContextZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCOption_PaymentContextZ COption_PaymentContextZ_clone(const struct LDKCOption_PaymentContextZ *NONNULL_PTR orig); +/* @internal */ +export function COption_PaymentContextZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PaymentContextZ_clone(orig); + return nativeResponseValue; } // uint64_t C2Tuple_u64u16Z_clone_ptr(LDKC2Tuple_u64u16Z *NONNULL_PTR arg); /* @internal */ @@ -16502,103 +18612,58 @@ export function COption_C2Tuple_u64u16ZZ_clone(orig: bigint): bigint { const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u16ZZ_clone(orig); return nativeResponseValue; } - // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_some(enum LDKChannelShutdownState o); + // struct LDKCResult_ChannelIdAPIErrorZ CResult_ChannelIdAPIErrorZ_ok(struct LDKChannelId o); /* @internal */ -export function COption_ChannelShutdownStateZ_some(o: ChannelShutdownState): bigint { +export function CResult_ChannelIdAPIErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_ChannelShutdownStateZ_some(o); + const nativeResponseValue = wasm.TS_CResult_ChannelIdAPIErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_none(void); + // struct LDKCResult_ChannelIdAPIErrorZ CResult_ChannelIdAPIErrorZ_err(struct LDKAPIError e); /* @internal */ -export function COption_ChannelShutdownStateZ_none(): bigint { +export function CResult_ChannelIdAPIErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_ChannelShutdownStateZ_none(); + const nativeResponseValue = wasm.TS_CResult_ChannelIdAPIErrorZ_err(e); return nativeResponseValue; } - // void COption_ChannelShutdownStateZ_free(struct LDKCOption_ChannelShutdownStateZ _res); + // bool CResult_ChannelIdAPIErrorZ_is_ok(const struct LDKCResult_ChannelIdAPIErrorZ *NONNULL_PTR o); /* @internal */ -export function COption_ChannelShutdownStateZ_free(_res: bigint): void { +export function CResult_ChannelIdAPIErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_ChannelShutdownStateZ_free(_res); - // debug statements here -} - // uint64_t COption_ChannelShutdownStateZ_clone_ptr(LDKCOption_ChannelShutdownStateZ *NONNULL_PTR arg); -/* @internal */ -export function COption_ChannelShutdownStateZ_clone_ptr(arg: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_COption_ChannelShutdownStateZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_ChannelIdAPIErrorZ_is_ok(o); return nativeResponseValue; } - // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_clone(const struct LDKCOption_ChannelShutdownStateZ *NONNULL_PTR orig); + // void CResult_ChannelIdAPIErrorZ_free(struct LDKCResult_ChannelIdAPIErrorZ _res); /* @internal */ -export function COption_ChannelShutdownStateZ_clone(orig: bigint): bigint { +export function CResult_ChannelIdAPIErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_ChannelShutdownStateZ_clone(orig); - return nativeResponseValue; -} - // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_ok(struct LDKThirtyTwoBytes o); -/* @internal */ -export function CResult_ThirtyTwoBytesAPIErrorZ_ok(o: number): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_ok(o); - return nativeResponseValue; -} - // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_err(struct LDKAPIError e); -/* @internal */ -export function CResult_ThirtyTwoBytesAPIErrorZ_err(e: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_err(e); - return nativeResponseValue; -} - // bool CResult_ThirtyTwoBytesAPIErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR o); -/* @internal */ -export function CResult_ThirtyTwoBytesAPIErrorZ_is_ok(o: bigint): boolean { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_is_ok(o); - return nativeResponseValue; -} - // void CResult_ThirtyTwoBytesAPIErrorZ_free(struct LDKCResult_ThirtyTwoBytesAPIErrorZ _res); -/* @internal */ -export function CResult_ThirtyTwoBytesAPIErrorZ_free(_res: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_ChannelIdAPIErrorZ_free(_res); // debug statements here } - // uint64_t CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR arg); + // uint64_t CResult_ChannelIdAPIErrorZ_clone_ptr(LDKCResult_ChannelIdAPIErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_ChannelIdAPIErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_ChannelIdAPIErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR orig); + // struct LDKCResult_ChannelIdAPIErrorZ CResult_ChannelIdAPIErrorZ_clone(const struct LDKCResult_ChannelIdAPIErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_ThirtyTwoBytesAPIErrorZ_clone(orig: bigint): bigint { +export function CResult_ChannelIdAPIErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_ChannelIdAPIErrorZ_clone(orig); return nativeResponseValue; } // void CVec_RecentPaymentDetailsZ_free(struct LDKCVec_RecentPaymentDetailsZ _res); @@ -16979,148 +19044,157 @@ export function CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFail const nativeResponseValue = wasm.TS_CResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ_clone(orig); return nativeResponseValue; } - // uint64_t C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr(LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR arg); + // uint64_t C2Tuple_ChannelIdPublicKeyZ_clone_ptr(LDKC2Tuple_ChannelIdPublicKeyZ *NONNULL_PTR arg); /* @internal */ -export function C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr(arg: bigint): bigint { +export function C2Tuple_ChannelIdPublicKeyZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_ThirtyTwoBytesPublicKeyZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_C2Tuple_ChannelIdPublicKeyZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(const struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ *NONNULL_PTR orig); + // struct LDKC2Tuple_ChannelIdPublicKeyZ C2Tuple_ChannelIdPublicKeyZ_clone(const struct LDKC2Tuple_ChannelIdPublicKeyZ *NONNULL_PTR orig); /* @internal */ -export function C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(orig: bigint): bigint { +export function C2Tuple_ChannelIdPublicKeyZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_ThirtyTwoBytesPublicKeyZ_clone(orig); + const nativeResponseValue = wasm.TS_C2Tuple_ChannelIdPublicKeyZ_clone(orig); return nativeResponseValue; } - // struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ C2Tuple_ThirtyTwoBytesPublicKeyZ_new(struct LDKThirtyTwoBytes a, struct LDKPublicKey b); + // struct LDKC2Tuple_ChannelIdPublicKeyZ C2Tuple_ChannelIdPublicKeyZ_new(struct LDKChannelId a, struct LDKPublicKey b); /* @internal */ -export function C2Tuple_ThirtyTwoBytesPublicKeyZ_new(a: number, b: number): bigint { +export function C2Tuple_ChannelIdPublicKeyZ_new(a: bigint, b: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_ThirtyTwoBytesPublicKeyZ_new(a, b); + const nativeResponseValue = wasm.TS_C2Tuple_ChannelIdPublicKeyZ_new(a, b); return nativeResponseValue; } - // void C2Tuple_ThirtyTwoBytesPublicKeyZ_free(struct LDKC2Tuple_ThirtyTwoBytesPublicKeyZ _res); + // void C2Tuple_ChannelIdPublicKeyZ_free(struct LDKC2Tuple_ChannelIdPublicKeyZ _res); /* @internal */ -export function C2Tuple_ThirtyTwoBytesPublicKeyZ_free(_res: bigint): void { +export function C2Tuple_ChannelIdPublicKeyZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_ThirtyTwoBytesPublicKeyZ_free(_res); + const nativeResponseValue = wasm.TS_C2Tuple_ChannelIdPublicKeyZ_free(_res); // debug statements here } - // void CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ _res); + // void CVec_C2Tuple_ChannelIdPublicKeyZZ_free(struct LDKCVec_C2Tuple_ChannelIdPublicKeyZZ _res); /* @internal */ -export function CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(_res: number): void { +export function CVec_C2Tuple_ChannelIdPublicKeyZZ_free(_res: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ_free(_res); + const nativeResponseValue = wasm.TS_CVec_C2Tuple_ChannelIdPublicKeyZZ_free(_res); // debug statements here } - // struct LDKCOption_StrZ COption_StrZ_some(struct LDKStr o); + // void CVec_ChannelIdZ_free(struct LDKCVec_ChannelIdZ _res); /* @internal */ -export function COption_StrZ_some(o: number): bigint { +export function CVec_ChannelIdZ_free(_res: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_StrZ_some(o); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CVec_ChannelIdZ_free(_res); + // debug statements here } - // struct LDKCOption_StrZ COption_StrZ_none(void); + // struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_ok(struct LDKOfferWithDerivedMetadataBuilder o); /* @internal */ -export function COption_StrZ_none(): bigint { +export function CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_StrZ_none(); + const nativeResponseValue = wasm.TS_CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_ok(o); return nativeResponseValue; } - // void COption_StrZ_free(struct LDKCOption_StrZ _res); + // struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); /* @internal */ -export function COption_StrZ_free(_res: bigint): void { +export function CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_StrZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_err(e); + return nativeResponseValue; } - // uint64_t COption_StrZ_clone_ptr(LDKCOption_StrZ *NONNULL_PTR arg); + // bool CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_is_ok(const struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR o); /* @internal */ -export function COption_StrZ_clone_ptr(arg: bigint): bigint { +export function CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_StrZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_is_ok(o); return nativeResponseValue; } - // struct LDKCOption_StrZ COption_StrZ_clone(const struct LDKCOption_StrZ *NONNULL_PTR orig); + // void CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_free(struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ _res); /* @internal */ -export function COption_StrZ_clone(orig: bigint): bigint { +export function CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_StrZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone_ptr(LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_ok(void); + // struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone(const struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_NoneBolt12SemanticErrorZ_ok(): bigint { +export function CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_ok(); + const nativeResponseValue = wasm.TS_CResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); + // struct LDKCOption_StrZ COption_StrZ_some(struct LDKStr o); /* @internal */ -export function CResult_NoneBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { +export function COption_StrZ_some(o: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_err(e); + const nativeResponseValue = wasm.TS_COption_StrZ_some(o); return nativeResponseValue; } - // bool CResult_NoneBolt12SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR o); + // struct LDKCOption_StrZ COption_StrZ_none(void); /* @internal */ -export function CResult_NoneBolt12SemanticErrorZ_is_ok(o: bigint): boolean { +export function COption_StrZ_none(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_COption_StrZ_none(); return nativeResponseValue; } - // void CResult_NoneBolt12SemanticErrorZ_free(struct LDKCResult_NoneBolt12SemanticErrorZ _res); + // void COption_StrZ_free(struct LDKCOption_StrZ _res); /* @internal */ -export function CResult_NoneBolt12SemanticErrorZ_free(_res: bigint): void { +export function COption_StrZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_free(_res); + const nativeResponseValue = wasm.TS_COption_StrZ_free(_res); // debug statements here } - // uint64_t CResult_NoneBolt12SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR arg); + // uint64_t COption_StrZ_clone_ptr(LDKCOption_StrZ *NONNULL_PTR arg); /* @internal */ -export function CResult_NoneBolt12SemanticErrorZ_clone_ptr(arg: bigint): bigint { +export function COption_StrZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_COption_StrZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_NoneBolt12SemanticErrorZ CResult_NoneBolt12SemanticErrorZ_clone(const struct LDKCResult_NoneBolt12SemanticErrorZ *NONNULL_PTR orig); + // struct LDKCOption_StrZ COption_StrZ_clone(const struct LDKCOption_StrZ *NONNULL_PTR orig); /* @internal */ -export function CResult_NoneBolt12SemanticErrorZ_clone(orig: bigint): bigint { +export function COption_StrZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt12SemanticErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_COption_StrZ_clone(orig); return nativeResponseValue; } // struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_ok(struct LDKC2Tuple_ThirtyTwoBytesThirtyTwoBytesZ o); @@ -17177,257 +19251,149 @@ export function CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(orig: b const nativeResponseValue = wasm.TS_CResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ_clone(orig); return nativeResponseValue; } - // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_some(struct LDKOffersMessage o); -/* @internal */ -export function COption_OffersMessageZ_some(o: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_COption_OffersMessageZ_some(o); - return nativeResponseValue; -} - // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_none(void); -/* @internal */ -export function COption_OffersMessageZ_none(): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_COption_OffersMessageZ_none(); - return nativeResponseValue; -} - // void COption_OffersMessageZ_free(struct LDKCOption_OffersMessageZ _res); -/* @internal */ -export function COption_OffersMessageZ_free(_res: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_COption_OffersMessageZ_free(_res); - // debug statements here -} - // uint64_t COption_OffersMessageZ_clone_ptr(LDKCOption_OffersMessageZ *NONNULL_PTR arg); -/* @internal */ -export function COption_OffersMessageZ_clone_ptr(arg: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_COption_OffersMessageZ_clone_ptr(arg); - return nativeResponseValue; -} - // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_clone(const struct LDKCOption_OffersMessageZ *NONNULL_PTR orig); -/* @internal */ -export function COption_OffersMessageZ_clone(orig: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_COption_OffersMessageZ_clone(orig); - return nativeResponseValue; -} - // uint64_t C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR arg); -/* @internal */ -export function C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(arg: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(arg); - return nativeResponseValue; -} - // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_clone(const struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR orig); -/* @internal */ -export function C3Tuple_OffersMessageDestinationBlindedPathZ_clone(orig: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_C3Tuple_OffersMessageDestinationBlindedPathZ_clone(orig); - return nativeResponseValue; -} - // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_new(struct LDKOffersMessage a, struct LDKDestination b, struct LDKBlindedPath c); -/* @internal */ -export function C3Tuple_OffersMessageDestinationBlindedPathZ_new(a: bigint, b: bigint, c: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_C3Tuple_OffersMessageDestinationBlindedPathZ_new(a, b, c); - return nativeResponseValue; -} - // void C3Tuple_OffersMessageDestinationBlindedPathZ_free(struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ _res); -/* @internal */ -export function C3Tuple_OffersMessageDestinationBlindedPathZ_free(_res: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_C3Tuple_OffersMessageDestinationBlindedPathZ_free(_res); - // debug statements here -} - // void CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(struct LDKCVec_C3Tuple_OffersMessageDestinationBlindedPathZZ _res); -/* @internal */ -export function CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(_res: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(_res); - // debug statements here -} - // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o); + // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_ok(struct LDKThirtyTwoBytes o); /* @internal */ -export function CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_ThirtyTwoBytesAPIErrorZ_ok(o: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_err(struct LDKAPIError e); /* @internal */ -export function CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e: bigint): bigint { +export function CResult_ThirtyTwoBytesAPIErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_err(e); return nativeResponseValue; } - // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o); + // bool CResult_ThirtyTwoBytesAPIErrorZ_is_ok(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_ThirtyTwoBytesAPIErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res); + // void CResult_ThirtyTwoBytesAPIErrorZ_free(struct LDKCResult_ThirtyTwoBytesAPIErrorZ _res); /* @internal */ -export function CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res: bigint): void { +export function CResult_ThirtyTwoBytesAPIErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_free(_res); // debug statements here } - // uint64_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg); -/* @internal */ -export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg); - return nativeResponseValue; -} - // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig); + // uint64_t CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o); + // struct LDKCResult_ThirtyTwoBytesAPIErrorZ CResult_ThirtyTwoBytesAPIErrorZ_clone(const struct LDKCResult_ThirtyTwoBytesAPIErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_ChannelCounterpartyDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_ThirtyTwoBytesAPIErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_ThirtyTwoBytesAPIErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_some(struct LDKOffersMessage o); /* @internal */ -export function CResult_ChannelCounterpartyDecodeErrorZ_err(e: bigint): bigint { +export function COption_OffersMessageZ_some(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_COption_OffersMessageZ_some(o); return nativeResponseValue; } - // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o); + // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_none(void); /* @internal */ -export function CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o: bigint): boolean { +export function COption_OffersMessageZ_none(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_COption_OffersMessageZ_none(); return nativeResponseValue; } - // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res); + // void COption_OffersMessageZ_free(struct LDKCOption_OffersMessageZ _res); /* @internal */ -export function CResult_ChannelCounterpartyDecodeErrorZ_free(_res: bigint): void { +export function COption_OffersMessageZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_COption_OffersMessageZ_free(_res); // debug statements here } - // uint64_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg); + // uint64_t COption_OffersMessageZ_clone_ptr(LDKCOption_OffersMessageZ *NONNULL_PTR arg); /* @internal */ -export function CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function COption_OffersMessageZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_COption_OffersMessageZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCOption_OffersMessageZ COption_OffersMessageZ_clone(const struct LDKCOption_OffersMessageZ *NONNULL_PTR orig); /* @internal */ -export function CResult_ChannelCounterpartyDecodeErrorZ_clone(orig: bigint): bigint { +export function COption_OffersMessageZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_COption_OffersMessageZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o); + // uint64_t C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR arg); /* @internal */ -export function CResult_ChannelDetailsDecodeErrorZ_ok(o: bigint): bigint { +export function C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_clone(const struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ *NONNULL_PTR orig); /* @internal */ -export function CResult_ChannelDetailsDecodeErrorZ_err(e: bigint): bigint { +export function C3Tuple_OffersMessageDestinationBlindedPathZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_C3Tuple_OffersMessageDestinationBlindedPathZ_clone(orig); return nativeResponseValue; } - // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o); + // struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ C3Tuple_OffersMessageDestinationBlindedPathZ_new(struct LDKOffersMessage a, struct LDKDestination b, struct LDKBlindedPath c); /* @internal */ -export function CResult_ChannelDetailsDecodeErrorZ_is_ok(o: bigint): boolean { +export function C3Tuple_OffersMessageDestinationBlindedPathZ_new(a: bigint, b: bigint, c: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_C3Tuple_OffersMessageDestinationBlindedPathZ_new(a, b, c); return nativeResponseValue; } - // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res); + // void C3Tuple_OffersMessageDestinationBlindedPathZ_free(struct LDKC3Tuple_OffersMessageDestinationBlindedPathZ _res); /* @internal */ -export function CResult_ChannelDetailsDecodeErrorZ_free(_res: bigint): void { +export function C3Tuple_OffersMessageDestinationBlindedPathZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_C3Tuple_OffersMessageDestinationBlindedPathZ_free(_res); // debug statements here } - // uint64_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg); -/* @internal */ -export function CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg); - return nativeResponseValue; -} - // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig); + // void CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(struct LDKCVec_C3Tuple_OffersMessageDestinationBlindedPathZZ _res); /* @internal */ -export function CResult_ChannelDetailsDecodeErrorZ_clone(orig: bigint): bigint { +export function CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(_res: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CVec_C3Tuple_OffersMessageDestinationBlindedPathZZ_free(_res); + // debug statements here } // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o); /* @internal */ @@ -17698,60 +19664,6 @@ export function CResult_BlindedFailureDecodeErrorZ_clone(orig: bigint): bigint { } const nativeResponseValue = wasm.TS_CResult_BlindedFailureDecodeErrorZ_clone(orig); return nativeResponseValue; -} - // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_ok(enum LDKChannelShutdownState o); -/* @internal */ -export function CResult_ChannelShutdownStateDecodeErrorZ_ok(o: ChannelShutdownState): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_ok(o); - return nativeResponseValue; -} - // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_err(struct LDKDecodeError e); -/* @internal */ -export function CResult_ChannelShutdownStateDecodeErrorZ_err(e: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_err(e); - return nativeResponseValue; -} - // bool CResult_ChannelShutdownStateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR o); -/* @internal */ -export function CResult_ChannelShutdownStateDecodeErrorZ_is_ok(o: bigint): boolean { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_is_ok(o); - return nativeResponseValue; -} - // void CResult_ChannelShutdownStateDecodeErrorZ_free(struct LDKCResult_ChannelShutdownStateDecodeErrorZ _res); -/* @internal */ -export function CResult_ChannelShutdownStateDecodeErrorZ_free(_res: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_free(_res); - // debug statements here -} - // uint64_t CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR arg); -/* @internal */ -export function CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(arg: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(arg); - return nativeResponseValue; -} - // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_clone(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR orig); -/* @internal */ -export function CResult_ChannelShutdownStateDecodeErrorZ_clone(orig: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_clone(orig); - return nativeResponseValue; } // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res); /* @internal */ @@ -18409,15 +20321,6 @@ export function CVec_CommitmentTransactionZ_free(_res: number): void { } const nativeResponseValue = wasm.TS_CVec_CommitmentTransactionZ_free(_res); // debug statements here -} - // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res); -/* @internal */ -export function CVec_TransactionZ_free(_res: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CVec_TransactionZ_free(_res); - // debug statements here } // uint64_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg); /* @internal */ @@ -18986,49 +20889,13 @@ export function COption_SocketAddressZ_clone(orig: bigint): bigint { const nativeResponseValue = wasm.TS_COption_SocketAddressZ_clone(orig); return nativeResponseValue; } - // uint64_t C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr(LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR arg); -/* @internal */ -export function C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr(arg: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyCOption_SocketAddressZZ_clone_ptr(arg); - return nativeResponseValue; -} - // struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ *NONNULL_PTR orig); -/* @internal */ -export function C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(orig: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyCOption_SocketAddressZZ_clone(orig); - return nativeResponseValue; -} - // struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ C2Tuple_PublicKeyCOption_SocketAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_SocketAddressZ b); -/* @internal */ -export function C2Tuple_PublicKeyCOption_SocketAddressZZ_new(a: number, b: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyCOption_SocketAddressZZ_new(a, b); - return nativeResponseValue; -} - // void C2Tuple_PublicKeyCOption_SocketAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_SocketAddressZZ _res); -/* @internal */ -export function C2Tuple_PublicKeyCOption_SocketAddressZZ_free(_res: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyCOption_SocketAddressZZ_free(_res); - // debug statements here -} - // void CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ _res); + // void CVec_PeerDetailsZ_free(struct LDKCVec_PeerDetailsZ _res); /* @internal */ -export function CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(_res: number): void { +export function CVec_PeerDetailsZ_free(_res: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ_free(_res); + const nativeResponseValue = wasm.TS_CVec_PeerDetailsZ_free(_res); // debug statements here } // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o); @@ -19516,6 +21383,114 @@ export function CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(orig } const nativeResponseValue = wasm.TS_CResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ_clone(orig); return nativeResponseValue; +} + // struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_ok(struct LDKUnsignedInvoiceRequest o); +/* @internal */ +export function CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); +/* @internal */ +export function CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_is_ok(const struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_free(struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ _res); +/* @internal */ +export function CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_clone_ptr(LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_clone(const struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnsignedInvoiceRequestBolt12SemanticErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ CResult_InvoiceRequestBolt12SemanticErrorZ_ok(struct LDKInvoiceRequest o); +/* @internal */ +export function CResult_InvoiceRequestBolt12SemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestBolt12SemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ CResult_InvoiceRequestBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); +/* @internal */ +export function CResult_InvoiceRequestBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestBolt12SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_InvoiceRequestBolt12SemanticErrorZ_is_ok(const struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_InvoiceRequestBolt12SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestBolt12SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_InvoiceRequestBolt12SemanticErrorZ_free(struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ _res); +/* @internal */ +export function CResult_InvoiceRequestBolt12SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestBolt12SemanticErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_InvoiceRequestBolt12SemanticErrorZ_clone_ptr(LDKCResult_InvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_InvoiceRequestBolt12SemanticErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestBolt12SemanticErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ CResult_InvoiceRequestBolt12SemanticErrorZ_clone(const struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_InvoiceRequestBolt12SemanticErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestBolt12SemanticErrorZ_clone(orig); + return nativeResponseValue; } // struct LDKCOption_SecretKeyZ COption_SecretKeyZ_some(struct LDKSecretKey o); /* @internal */ @@ -19561,6 +21536,42 @@ export function COption_SecretKeyZ_clone(orig: bigint): bigint { } const nativeResponseValue = wasm.TS_COption_SecretKeyZ_clone(orig); return nativeResponseValue; +} + // struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_ok(struct LDKInvoiceWithExplicitSigningPubkeyBuilder o); +/* @internal */ +export function CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); +/* @internal */ +export function CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_is_ok(const struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_free(struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ _res); +/* @internal */ +export function CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ_free(_res); + // debug statements here } // struct LDKCResult_VerifiedInvoiceRequestNoneZ CResult_VerifiedInvoiceRequestNoneZ_ok(struct LDKVerifiedInvoiceRequest o); /* @internal */ @@ -19615,6 +21626,96 @@ export function CResult_VerifiedInvoiceRequestNoneZ_clone(orig: bigint): bigint } const nativeResponseValue = wasm.TS_CResult_VerifiedInvoiceRequestNoneZ_clone(orig); return nativeResponseValue; +} + // struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_ok(struct LDKInvoiceWithDerivedSigningPubkeyBuilder o); +/* @internal */ +export function CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_err(enum LDKBolt12SemanticError e); +/* @internal */ +export function CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_err(e: Bolt12SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_is_ok(const struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_free(struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ _res); +/* @internal */ +export function CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ_free(_res); + // debug statements here +} + // struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ CResult_InvoiceRequestFieldsDecodeErrorZ_ok(struct LDKInvoiceRequestFields o); +/* @internal */ +export function CResult_InvoiceRequestFieldsDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestFieldsDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ CResult_InvoiceRequestFieldsDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_InvoiceRequestFieldsDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestFieldsDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_InvoiceRequestFieldsDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_InvoiceRequestFieldsDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestFieldsDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_InvoiceRequestFieldsDecodeErrorZ_free(struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ _res); +/* @internal */ +export function CResult_InvoiceRequestFieldsDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestFieldsDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_InvoiceRequestFieldsDecodeErrorZ_clone_ptr(LDKCResult_InvoiceRequestFieldsDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_InvoiceRequestFieldsDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestFieldsDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ CResult_InvoiceRequestFieldsDecodeErrorZ_clone(const struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_InvoiceRequestFieldsDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InvoiceRequestFieldsDecodeErrorZ_clone(orig); + return nativeResponseValue; } // enum LDKCOption_NoneZ COption_NoneZ_some(void); /* @internal */ @@ -19651,6 +21752,51 @@ export function CVec_WitnessZ_free(_res: number): void { } const nativeResponseValue = wasm.TS_CVec_WitnessZ_free(_res); // debug statements here +} + // struct LDKCOption_ECDSASignatureZ COption_ECDSASignatureZ_some(struct LDKECDSASignature o); +/* @internal */ +export function COption_ECDSASignatureZ_some(o: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_ECDSASignatureZ_some(o); + return nativeResponseValue; +} + // struct LDKCOption_ECDSASignatureZ COption_ECDSASignatureZ_none(void); +/* @internal */ +export function COption_ECDSASignatureZ_none(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_ECDSASignatureZ_none(); + return nativeResponseValue; +} + // void COption_ECDSASignatureZ_free(struct LDKCOption_ECDSASignatureZ _res); +/* @internal */ +export function COption_ECDSASignatureZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_ECDSASignatureZ_free(_res); + // debug statements here +} + // uint64_t COption_ECDSASignatureZ_clone_ptr(LDKCOption_ECDSASignatureZ *NONNULL_PTR arg); +/* @internal */ +export function COption_ECDSASignatureZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_ECDSASignatureZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCOption_ECDSASignatureZ COption_ECDSASignatureZ_clone(const struct LDKCOption_ECDSASignatureZ *NONNULL_PTR orig); +/* @internal */ +export function COption_ECDSASignatureZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_ECDSASignatureZ_clone(orig); + return nativeResponseValue; } // struct LDKCOption_i64Z COption_i64Z_some(int64_t o); /* @internal */ @@ -22658,9778 +24804,12100 @@ export function CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(orig: bigint): b const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceSignOrCreationErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_ok(struct LDKOffersMessage o); + // struct LDKCOption_InboundHTLCStateDetailsZ COption_InboundHTLCStateDetailsZ_some(enum LDKInboundHTLCStateDetails o); /* @internal */ -export function CResult_OffersMessageDecodeErrorZ_ok(o: bigint): bigint { +export function COption_InboundHTLCStateDetailsZ_some(o: InboundHTLCStateDetails): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OffersMessageDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_COption_InboundHTLCStateDetailsZ_some(o); return nativeResponseValue; } - // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCOption_InboundHTLCStateDetailsZ COption_InboundHTLCStateDetailsZ_none(void); /* @internal */ -export function CResult_OffersMessageDecodeErrorZ_err(e: bigint): bigint { +export function COption_InboundHTLCStateDetailsZ_none(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OffersMessageDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_COption_InboundHTLCStateDetailsZ_none(); return nativeResponseValue; } - // bool CResult_OffersMessageDecodeErrorZ_is_ok(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR o); + // void COption_InboundHTLCStateDetailsZ_free(struct LDKCOption_InboundHTLCStateDetailsZ _res); /* @internal */ -export function CResult_OffersMessageDecodeErrorZ_is_ok(o: bigint): boolean { +export function COption_InboundHTLCStateDetailsZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OffersMessageDecodeErrorZ_is_ok(o); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_COption_InboundHTLCStateDetailsZ_free(_res); + // debug statements here } - // void CResult_OffersMessageDecodeErrorZ_free(struct LDKCResult_OffersMessageDecodeErrorZ _res); + // uint64_t COption_InboundHTLCStateDetailsZ_clone_ptr(LDKCOption_InboundHTLCStateDetailsZ *NONNULL_PTR arg); /* @internal */ -export function CResult_OffersMessageDecodeErrorZ_free(_res: bigint): void { +export function COption_InboundHTLCStateDetailsZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OffersMessageDecodeErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_COption_InboundHTLCStateDetailsZ_clone_ptr(arg); + return nativeResponseValue; } - // uint64_t CResult_OffersMessageDecodeErrorZ_clone_ptr(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR arg); + // struct LDKCOption_InboundHTLCStateDetailsZ COption_InboundHTLCStateDetailsZ_clone(const struct LDKCOption_InboundHTLCStateDetailsZ *NONNULL_PTR orig); /* @internal */ -export function CResult_OffersMessageDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function COption_InboundHTLCStateDetailsZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OffersMessageDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_COption_InboundHTLCStateDetailsZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_clone(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_ok(struct LDKCOption_InboundHTLCStateDetailsZ o); /* @internal */ -export function CResult_OffersMessageDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OffersMessageDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_some(enum LDKHTLCClaim o); + // struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function COption_HTLCClaimZ_some(o: HTLCClaim): bigint { +export function CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_HTLCClaimZ_some(o); + const nativeResponseValue = wasm.TS_CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_err(e); return nativeResponseValue; } - // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_none(void); + // bool CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function COption_HTLCClaimZ_none(): bigint { +export function CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_HTLCClaimZ_none(); + const nativeResponseValue = wasm.TS_CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void COption_HTLCClaimZ_free(struct LDKCOption_HTLCClaimZ _res); + // void CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_free(struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ _res); /* @internal */ -export function COption_HTLCClaimZ_free(_res: bigint): void { +export function CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_HTLCClaimZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_free(_res); // debug statements here } - // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o); + // uint64_t CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_clone_ptr(LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_clone(const struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e: bigint): bigint { +export function CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_COption_InboundHTLCStateDetailsZDecodeErrorZ_clone(orig); return nativeResponseValue; } - // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o); + // struct LDKCResult_InboundHTLCDetailsDecodeErrorZ CResult_InboundHTLCDetailsDecodeErrorZ_ok(struct LDKInboundHTLCDetails o); /* @internal */ -export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_InboundHTLCDetailsDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_InboundHTLCDetailsDecodeErrorZ_ok(o); return nativeResponseValue; } - // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res); + // struct LDKCResult_InboundHTLCDetailsDecodeErrorZ CResult_InboundHTLCDetailsDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res: bigint): void { +export function CResult_InboundHTLCDetailsDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_CResult_InboundHTLCDetailsDecodeErrorZ_err(e); + return nativeResponseValue; } - // uint64_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg); + // bool CResult_InboundHTLCDetailsDecodeErrorZ_is_ok(const struct LDKCResult_InboundHTLCDetailsDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_InboundHTLCDetailsDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_InboundHTLCDetailsDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig); + // void CResult_InboundHTLCDetailsDecodeErrorZ_free(struct LDKCResult_InboundHTLCDetailsDecodeErrorZ _res); /* @internal */ -export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_InboundHTLCDetailsDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_InboundHTLCDetailsDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_InboundHTLCDetailsDecodeErrorZ_clone_ptr(LDKCResult_InboundHTLCDetailsDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_InboundHTLCDetailsDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_InboundHTLCDetailsDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o); + // struct LDKCResult_InboundHTLCDetailsDecodeErrorZ CResult_InboundHTLCDetailsDecodeErrorZ_clone(const struct LDKCResult_InboundHTLCDetailsDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_TxCreationKeysDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_InboundHTLCDetailsDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_InboundHTLCDetailsDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCOption_OutboundHTLCStateDetailsZ COption_OutboundHTLCStateDetailsZ_some(enum LDKOutboundHTLCStateDetails o); /* @internal */ -export function CResult_TxCreationKeysDecodeErrorZ_err(e: bigint): bigint { +export function COption_OutboundHTLCStateDetailsZ_some(o: OutboundHTLCStateDetails): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_COption_OutboundHTLCStateDetailsZ_some(o); return nativeResponseValue; } - // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o); + // struct LDKCOption_OutboundHTLCStateDetailsZ COption_OutboundHTLCStateDetailsZ_none(void); /* @internal */ -export function CResult_TxCreationKeysDecodeErrorZ_is_ok(o: bigint): boolean { +export function COption_OutboundHTLCStateDetailsZ_none(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_COption_OutboundHTLCStateDetailsZ_none(); return nativeResponseValue; } - // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res); + // void COption_OutboundHTLCStateDetailsZ_free(struct LDKCOption_OutboundHTLCStateDetailsZ _res); /* @internal */ -export function CResult_TxCreationKeysDecodeErrorZ_free(_res: bigint): void { +export function COption_OutboundHTLCStateDetailsZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_COption_OutboundHTLCStateDetailsZ_free(_res); // debug statements here } - // uint64_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg); + // uint64_t COption_OutboundHTLCStateDetailsZ_clone_ptr(LDKCOption_OutboundHTLCStateDetailsZ *NONNULL_PTR arg); /* @internal */ -export function CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function COption_OutboundHTLCStateDetailsZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_COption_OutboundHTLCStateDetailsZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCOption_OutboundHTLCStateDetailsZ COption_OutboundHTLCStateDetailsZ_clone(const struct LDKCOption_OutboundHTLCStateDetailsZ *NONNULL_PTR orig); /* @internal */ -export function CResult_TxCreationKeysDecodeErrorZ_clone(orig: bigint): bigint { +export function COption_OutboundHTLCStateDetailsZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_COption_OutboundHTLCStateDetailsZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o); + // struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_ok(struct LDKCOption_OutboundHTLCStateDetailsZ o); /* @internal */ -export function CResult_ChannelPublicKeysDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_ChannelPublicKeysDecodeErrorZ_err(e: bigint): bigint { +export function CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o); + // bool CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res); + // void CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_free(struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ _res); /* @internal */ -export function CResult_ChannelPublicKeysDecodeErrorZ_free(_res: bigint): void { +export function CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_clone_ptr(LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_clone(const struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_ChannelPublicKeysDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o); + // struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ CResult_OutboundHTLCDetailsDecodeErrorZ_ok(struct LDKOutboundHTLCDetails o); /* @internal */ -export function CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_OutboundHTLCDetailsDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_OutboundHTLCDetailsDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ CResult_OutboundHTLCDetailsDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e: bigint): bigint { +export function CResult_OutboundHTLCDetailsDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_OutboundHTLCDetailsDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o); + // bool CResult_OutboundHTLCDetailsDecodeErrorZ_is_ok(const struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_OutboundHTLCDetailsDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_OutboundHTLCDetailsDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res); + // void CResult_OutboundHTLCDetailsDecodeErrorZ_free(struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ _res); /* @internal */ -export function CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res: bigint): void { +export function CResult_OutboundHTLCDetailsDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_OutboundHTLCDetailsDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_OutboundHTLCDetailsDecodeErrorZ_clone_ptr(LDKCResult_OutboundHTLCDetailsDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_OutboundHTLCDetailsDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_OutboundHTLCDetailsDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ CResult_OutboundHTLCDetailsDecodeErrorZ_clone(const struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_OutboundHTLCDetailsDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_OutboundHTLCDetailsDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o); + // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o); /* @internal */ -export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e: bigint): bigint { +export function CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o); + // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res); + // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res); /* @internal */ -export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res: bigint): void { +export function CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o); + // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o); /* @internal */ -export function CResult_ChannelTransactionParametersDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_ChannelCounterpartyDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_ChannelTransactionParametersDecodeErrorZ_err(e: bigint): bigint { +export function CResult_ChannelCounterpartyDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o); + // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res); + // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res); /* @internal */ -export function CResult_ChannelTransactionParametersDecodeErrorZ_free(_res: bigint): void { +export function CResult_ChannelCounterpartyDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_ChannelCounterpartyDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o); + // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_some(enum LDKChannelShutdownState o); /* @internal */ -export function CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o: bigint): bigint { +export function COption_ChannelShutdownStateZ_some(o: ChannelShutdownState): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_COption_ChannelShutdownStateZ_some(o); return nativeResponseValue; } - // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_none(void); /* @internal */ -export function CResult_HolderCommitmentTransactionDecodeErrorZ_err(e: bigint): bigint { +export function COption_ChannelShutdownStateZ_none(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_COption_ChannelShutdownStateZ_none(); return nativeResponseValue; } - // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o); + // void COption_ChannelShutdownStateZ_free(struct LDKCOption_ChannelShutdownStateZ _res); /* @internal */ -export function CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o: bigint): boolean { +export function COption_ChannelShutdownStateZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_COption_ChannelShutdownStateZ_free(_res); + // debug statements here } - // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res); + // uint64_t COption_ChannelShutdownStateZ_clone_ptr(LDKCOption_ChannelShutdownStateZ *NONNULL_PTR arg); /* @internal */ -export function CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res: bigint): void { +export function COption_ChannelShutdownStateZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_COption_ChannelShutdownStateZ_clone_ptr(arg); + return nativeResponseValue; } - // uint64_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg); + // struct LDKCOption_ChannelShutdownStateZ COption_ChannelShutdownStateZ_clone(const struct LDKCOption_ChannelShutdownStateZ *NONNULL_PTR orig); /* @internal */ -export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function COption_ChannelShutdownStateZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_COption_ChannelShutdownStateZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig); + // void CVec_InboundHTLCDetailsZ_free(struct LDKCVec_InboundHTLCDetailsZ _res); /* @internal */ -export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig: bigint): bigint { +export function CVec_InboundHTLCDetailsZ_free(_res: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CVec_InboundHTLCDetailsZ_free(_res); + // debug statements here } - // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o); + // void CVec_OutboundHTLCDetailsZ_free(struct LDKCVec_OutboundHTLCDetailsZ _res); /* @internal */ -export function CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o: bigint): bigint { +export function CVec_OutboundHTLCDetailsZ_free(_res: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CVec_OutboundHTLCDetailsZ_free(_res); + // debug statements here +} + // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o); +/* @internal */ +export function CResult_ChannelDetailsDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e: bigint): bigint { +export function CResult_ChannelDetailsDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o); + // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_ChannelDetailsDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res); + // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res); /* @internal */ -export function CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res: bigint): void { +export function CResult_ChannelDetailsDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_ChannelDetailsDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o); + // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_ok(enum LDKChannelShutdownState o); /* @internal */ -export function CResult_TrustedClosingTransactionNoneZ_ok(o: bigint): bigint { +export function CResult_ChannelShutdownStateDecodeErrorZ_ok(o: ChannelShutdownState): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void); + // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_TrustedClosingTransactionNoneZ_err(): bigint { +export function CResult_ChannelShutdownStateDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_err(); + const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o); + // bool CResult_ChannelShutdownStateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_TrustedClosingTransactionNoneZ_is_ok(o: bigint): boolean { +export function CResult_ChannelShutdownStateDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res); + // void CResult_ChannelShutdownStateDecodeErrorZ_free(struct LDKCResult_ChannelShutdownStateDecodeErrorZ _res); /* @internal */ -export function CResult_TrustedClosingTransactionNoneZ_free(_res: bigint): void { +export function CResult_ChannelShutdownStateDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_free(_res); // debug statements here } - // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o); + // uint64_t CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_CommitmentTransactionDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_ChannelShutdownStateDecodeErrorZ CResult_ChannelShutdownStateDecodeErrorZ_clone(const struct LDKCResult_ChannelShutdownStateDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_CommitmentTransactionDecodeErrorZ_err(e: bigint): bigint { +export function CResult_ChannelShutdownStateDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_ChannelShutdownStateDecodeErrorZ_clone(orig); return nativeResponseValue; } - // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o); + // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_ok(struct LDKOffersMessage o); /* @internal */ -export function CResult_CommitmentTransactionDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_OffersMessageDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_OffersMessageDecodeErrorZ_ok(o); return nativeResponseValue; } - // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res); + // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_CommitmentTransactionDecodeErrorZ_free(_res: bigint): void { +export function CResult_OffersMessageDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_CResult_OffersMessageDecodeErrorZ_err(e); + return nativeResponseValue; } - // uint64_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg); + // bool CResult_OffersMessageDecodeErrorZ_is_ok(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_OffersMessageDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_OffersMessageDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig); + // void CResult_OffersMessageDecodeErrorZ_free(struct LDKCResult_OffersMessageDecodeErrorZ _res); /* @internal */ -export function CResult_CommitmentTransactionDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_OffersMessageDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_OffersMessageDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_OffersMessageDecodeErrorZ_clone_ptr(LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_OffersMessageDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OffersMessageDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o); + // struct LDKCResult_OffersMessageDecodeErrorZ CResult_OffersMessageDecodeErrorZ_clone(const struct LDKCResult_OffersMessageDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_TrustedCommitmentTransactionNoneZ_ok(o: bigint): bigint { +export function CResult_OffersMessageDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_OffersMessageDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void); + // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_some(enum LDKHTLCClaim o); /* @internal */ -export function CResult_TrustedCommitmentTransactionNoneZ_err(): bigint { +export function COption_HTLCClaimZ_some(o: HTLCClaim): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_err(); + const nativeResponseValue = wasm.TS_COption_HTLCClaimZ_some(o); return nativeResponseValue; } - // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o); + // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_none(void); /* @internal */ -export function CResult_TrustedCommitmentTransactionNoneZ_is_ok(o: bigint): boolean { +export function COption_HTLCClaimZ_none(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_is_ok(o); + const nativeResponseValue = wasm.TS_COption_HTLCClaimZ_none(); return nativeResponseValue; } - // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res); + // void COption_HTLCClaimZ_free(struct LDKCOption_HTLCClaimZ _res); /* @internal */ -export function CResult_TrustedCommitmentTransactionNoneZ_free(_res: bigint): void { +export function COption_HTLCClaimZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_free(_res); + const nativeResponseValue = wasm.TS_COption_HTLCClaimZ_free(_res); // debug statements here } - // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_ok(struct LDKCVec_ECDSASignatureZ o); + // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o); /* @internal */ -export function CResult_CVec_ECDSASignatureZNoneZ_ok(o: number): bigint { +export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CVec_ECDSASignatureZNoneZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_err(void); + // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_CVec_ECDSASignatureZNoneZ_err(): bigint { +export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CVec_ECDSASignatureZNoneZ_err(); + const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_CVec_ECDSASignatureZNoneZ_is_ok(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR o); + // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_CVec_ECDSASignatureZNoneZ_is_ok(o: bigint): boolean { +export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CVec_ECDSASignatureZNoneZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_CVec_ECDSASignatureZNoneZ_free(struct LDKCResult_CVec_ECDSASignatureZNoneZ _res); + // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res); /* @internal */ -export function CResult_CVec_ECDSASignatureZNoneZ_free(_res: bigint): void { +export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CVec_ECDSASignatureZNoneZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR arg); + // uint64_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(arg: bigint): bigint { +export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_clone(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR orig); + // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_CVec_ECDSASignatureZNoneZ_clone(orig: bigint): bigint { +export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_CVec_ECDSASignatureZNoneZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCOption_usizeZ COption_usizeZ_some(uintptr_t o); + // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o); /* @internal */ -export function COption_usizeZ_some(o: number): bigint { +export function CResult_TxCreationKeysDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_usizeZ_some(o); + const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCOption_usizeZ COption_usizeZ_none(void); + // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function COption_usizeZ_none(): bigint { +export function CResult_TxCreationKeysDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_usizeZ_none(); + const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_err(e); return nativeResponseValue; } - // void COption_usizeZ_free(struct LDKCOption_usizeZ _res); + // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function COption_usizeZ_free(_res: bigint): void { +export function CResult_TxCreationKeysDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_usizeZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res); +/* @internal */ +export function CResult_TxCreationKeysDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_free(_res); // debug statements here } - // uint64_t COption_usizeZ_clone_ptr(LDKCOption_usizeZ *NONNULL_PTR arg); + // uint64_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function COption_usizeZ_clone_ptr(arg: bigint): bigint { +export function CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_usizeZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCOption_usizeZ COption_usizeZ_clone(const struct LDKCOption_usizeZ *NONNULL_PTR orig); + // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function COption_usizeZ_clone(orig: bigint): bigint { +export function CResult_TxCreationKeysDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_usizeZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o); + // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o); /* @internal */ -export function CResult_ShutdownScriptDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_ChannelPublicKeysDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_ShutdownScriptDecodeErrorZ_err(e: bigint): bigint { +export function CResult_ChannelPublicKeysDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o); + // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_ShutdownScriptDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res); + // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res); /* @internal */ -export function CResult_ShutdownScriptDecodeErrorZ_free(_res: bigint): void { +export function CResult_ChannelPublicKeysDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_ShutdownScriptDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_ChannelPublicKeysDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o); + // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o); /* @internal */ -export function CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o: bigint): bigint { +export function CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e); + // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_ShutdownScriptInvalidShutdownScriptZ_err(e: bigint): bigint { +export function CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_err(e); + const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o); + // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o: bigint): boolean { +export function CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res); + // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res); /* @internal */ -export function CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res: bigint): void { +export function CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg); + // uint64_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg: bigint): bigint { +export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig); + // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig: bigint): bigint { +export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o); + // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o); /* @internal */ -export function CResult_PaymentPurposeDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_PaymentPurposeDecodeErrorZ_err(e: bigint): bigint { +export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o); + // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_PaymentPurposeDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res); + // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res); /* @internal */ -export function CResult_PaymentPurposeDecodeErrorZ_free(_res: bigint): void { +export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_PaymentPurposeDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_ok(struct LDKClaimedHTLC o); + // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o); /* @internal */ -export function CResult_ClaimedHTLCDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_ChannelTransactionParametersDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ClaimedHTLCDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_ClaimedHTLCDecodeErrorZ_err(e: bigint): bigint { +export function CResult_ChannelTransactionParametersDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ClaimedHTLCDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_ClaimedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR o); + // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_ClaimedHTLCDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ClaimedHTLCDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_ClaimedHTLCDecodeErrorZ_free(struct LDKCResult_ClaimedHTLCDecodeErrorZ _res); + // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res); /* @internal */ -export function CResult_ClaimedHTLCDecodeErrorZ_free(_res: bigint): void { +export function CResult_ChannelTransactionParametersDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ClaimedHTLCDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_clone(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_ClaimedHTLCDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_ClaimedHTLCDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCOption_PathFailureZ COption_PathFailureZ_some(struct LDKPathFailure o); + // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o); /* @internal */ -export function COption_PathFailureZ_some(o: bigint): bigint { +export function CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_PathFailureZ_some(o); + const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCOption_PathFailureZ COption_PathFailureZ_none(void); + // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function COption_PathFailureZ_none(): bigint { +export function CResult_HolderCommitmentTransactionDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_PathFailureZ_none(); + const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_err(e); return nativeResponseValue; } - // void COption_PathFailureZ_free(struct LDKCOption_PathFailureZ _res); + // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function COption_PathFailureZ_free(_res: bigint): void { +export function CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_PathFailureZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o); + return nativeResponseValue; } - // uint64_t COption_PathFailureZ_clone_ptr(LDKCOption_PathFailureZ *NONNULL_PTR arg); + // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res); /* @internal */ -export function COption_PathFailureZ_clone_ptr(arg: bigint): bigint { +export function CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_PathFailureZ_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res); + // debug statements here } - // struct LDKCOption_PathFailureZ COption_PathFailureZ_clone(const struct LDKCOption_PathFailureZ *NONNULL_PTR orig); + // uint64_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function COption_PathFailureZ_clone(orig: bigint): bigint { +export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_PathFailureZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_ok(struct LDKCOption_PathFailureZ o); + // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_COption_PathFailureZDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o); /* @internal */ -export function CResult_COption_PathFailureZDecodeErrorZ_err(e: bigint): bigint { +export function CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o); return nativeResponseValue; } - // bool CResult_COption_PathFailureZDecodeErrorZ_is_ok(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR o); + // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_COption_PathFailureZDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e); return nativeResponseValue; } - // void CResult_COption_PathFailureZDecodeErrorZ_free(struct LDKCResult_COption_PathFailureZDecodeErrorZ _res); + // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_COption_PathFailureZDecodeErrorZ_free(_res: bigint): void { +export function CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o); + return nativeResponseValue; } - // uint64_t CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR arg); + // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res); /* @internal */ -export function CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res); + // debug statements here } - // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_clone(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR orig); + // uint64_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_COption_PathFailureZDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o); + // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function COption_ClosureReasonZ_some(o: bigint): bigint { +export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_some(o); + const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void); + // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o); /* @internal */ -export function COption_ClosureReasonZ_none(): bigint { +export function CResult_TrustedClosingTransactionNoneZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_none(); + const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_ok(o); return nativeResponseValue; } - // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res); + // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void); /* @internal */ -export function COption_ClosureReasonZ_free(_res: bigint): void { +export function CResult_TrustedClosingTransactionNoneZ_err(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_err(); + return nativeResponseValue; } - // uint64_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg); + // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o); /* @internal */ -export function COption_ClosureReasonZ_clone_ptr(arg: bigint): bigint { +export function CResult_TrustedClosingTransactionNoneZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_is_ok(o); return nativeResponseValue; } - // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig); + // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res); /* @internal */ -export function COption_ClosureReasonZ_clone(orig: bigint): bigint { +export function CResult_TrustedClosingTransactionNoneZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_free(_res); + // debug statements here } - // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o); + // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o); /* @internal */ -export function CResult_COption_ClosureReasonZDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_CommitmentTransactionDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_COption_ClosureReasonZDecodeErrorZ_err(e: bigint): bigint { +export function CResult_CommitmentTransactionDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o); + // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_CommitmentTransactionDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res); + // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res); /* @internal */ -export function CResult_COption_ClosureReasonZDecodeErrorZ_free(_res: bigint): void { +export function CResult_CommitmentTransactionDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_CommitmentTransactionDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_some(struct LDKHTLCDestination o); + // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o); /* @internal */ -export function COption_HTLCDestinationZ_some(o: bigint): bigint { +export function CResult_TrustedCommitmentTransactionNoneZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_some(o); + const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_ok(o); return nativeResponseValue; } - // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_none(void); + // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void); /* @internal */ -export function COption_HTLCDestinationZ_none(): bigint { +export function CResult_TrustedCommitmentTransactionNoneZ_err(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_none(); + const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_err(); return nativeResponseValue; } - // void COption_HTLCDestinationZ_free(struct LDKCOption_HTLCDestinationZ _res); -/* @internal */ -export function COption_HTLCDestinationZ_free(_res: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_free(_res); - // debug statements here -} - // uint64_t COption_HTLCDestinationZ_clone_ptr(LDKCOption_HTLCDestinationZ *NONNULL_PTR arg); + // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o); /* @internal */ -export function COption_HTLCDestinationZ_clone_ptr(arg: bigint): bigint { +export function CResult_TrustedCommitmentTransactionNoneZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_is_ok(o); return nativeResponseValue; } - // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_clone(const struct LDKCOption_HTLCDestinationZ *NONNULL_PTR orig); + // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res); /* @internal */ -export function COption_HTLCDestinationZ_clone(orig: bigint): bigint { +export function CResult_TrustedCommitmentTransactionNoneZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_free(_res); + // debug statements here } - // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_ok(struct LDKCOption_HTLCDestinationZ o); + // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_ok(struct LDKCVec_ECDSASignatureZ o); /* @internal */ -export function CResult_COption_HTLCDestinationZDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_CVec_ECDSASignatureZNoneZ_ok(o: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_CVec_ECDSASignatureZNoneZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_err(void); /* @internal */ -export function CResult_COption_HTLCDestinationZDecodeErrorZ_err(e: bigint): bigint { +export function CResult_CVec_ECDSASignatureZNoneZ_err(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_CVec_ECDSASignatureZNoneZ_err(); return nativeResponseValue; } - // bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR o); + // bool CResult_CVec_ECDSASignatureZNoneZ_is_ok(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR o); /* @internal */ -export function CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_CVec_ECDSASignatureZNoneZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_CVec_ECDSASignatureZNoneZ_is_ok(o); return nativeResponseValue; } - // void CResult_COption_HTLCDestinationZDecodeErrorZ_free(struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ _res); + // void CResult_CVec_ECDSASignatureZNoneZ_free(struct LDKCResult_CVec_ECDSASignatureZNoneZ _res); /* @internal */ -export function CResult_COption_HTLCDestinationZDecodeErrorZ_free(_res: bigint): void { +export function CResult_CVec_ECDSASignatureZNoneZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_CVec_ECDSASignatureZNoneZ_free(_res); // debug statements here } - // uint64_t CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR arg); /* @internal */ -export function CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_CVec_ECDSASignatureZNoneZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_clone(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_CVec_ECDSASignatureZNoneZ CResult_CVec_ECDSASignatureZNoneZ_clone(const struct LDKCResult_CVec_ECDSASignatureZNoneZ *NONNULL_PTR orig); /* @internal */ -export function CResult_COption_HTLCDestinationZDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_CVec_ECDSASignatureZNoneZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_CVec_ECDSASignatureZNoneZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_ok(enum LDKPaymentFailureReason o); + // struct LDKCOption_usizeZ COption_usizeZ_some(uintptr_t o); /* @internal */ -export function CResult_PaymentFailureReasonDecodeErrorZ_ok(o: PaymentFailureReason): bigint { +export function COption_usizeZ_some(o: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_COption_usizeZ_some(o); return nativeResponseValue; } - // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCOption_usizeZ COption_usizeZ_none(void); /* @internal */ -export function CResult_PaymentFailureReasonDecodeErrorZ_err(e: bigint): bigint { +export function COption_usizeZ_none(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_COption_usizeZ_none(); + return nativeResponseValue; +} + // void COption_usizeZ_free(struct LDKCOption_usizeZ _res); +/* @internal */ +export function COption_usizeZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_usizeZ_free(_res); + // debug statements here +} + // uint64_t COption_usizeZ_clone_ptr(LDKCOption_usizeZ *NONNULL_PTR arg); +/* @internal */ +export function COption_usizeZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_usizeZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCOption_usizeZ COption_usizeZ_clone(const struct LDKCOption_usizeZ *NONNULL_PTR orig); +/* @internal */ +export function COption_usizeZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_usizeZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o); +/* @internal */ +export function CResult_ShutdownScriptDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_ShutdownScriptDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_ShutdownScriptDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res); +/* @internal */ +export function CResult_ShutdownScriptDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_ShutdownScriptDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o); +/* @internal */ +export function CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e); +/* @internal */ +export function CResult_ShutdownScriptInvalidShutdownScriptZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_err(e); + return nativeResponseValue; +} + // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o); +/* @internal */ +export function CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res); +/* @internal */ +export function CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res); + // debug statements here +} + // uint64_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig); + return nativeResponseValue; +} + // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res); +/* @internal */ +export function CVec_TransactionZ_free(_res: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CVec_TransactionZ_free(_res); + // debug statements here +} + // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o); +/* @internal */ +export function CResult_PaymentPurposeDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_PaymentPurposeDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_PaymentPurposeDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res); +/* @internal */ +export function CResult_PaymentPurposeDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_PaymentPurposeDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_ok(struct LDKClaimedHTLC o); +/* @internal */ +export function CResult_ClaimedHTLCDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ClaimedHTLCDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_ClaimedHTLCDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ClaimedHTLCDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_ClaimedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_ClaimedHTLCDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ClaimedHTLCDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_ClaimedHTLCDecodeErrorZ_free(struct LDKCResult_ClaimedHTLCDecodeErrorZ _res); +/* @internal */ +export function CResult_ClaimedHTLCDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ClaimedHTLCDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ClaimedHTLCDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_ClaimedHTLCDecodeErrorZ CResult_ClaimedHTLCDecodeErrorZ_clone(const struct LDKCResult_ClaimedHTLCDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_ClaimedHTLCDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ClaimedHTLCDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCOption_PathFailureZ COption_PathFailureZ_some(struct LDKPathFailure o); +/* @internal */ +export function COption_PathFailureZ_some(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PathFailureZ_some(o); + return nativeResponseValue; +} + // struct LDKCOption_PathFailureZ COption_PathFailureZ_none(void); +/* @internal */ +export function COption_PathFailureZ_none(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PathFailureZ_none(); + return nativeResponseValue; +} + // void COption_PathFailureZ_free(struct LDKCOption_PathFailureZ _res); +/* @internal */ +export function COption_PathFailureZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PathFailureZ_free(_res); + // debug statements here +} + // uint64_t COption_PathFailureZ_clone_ptr(LDKCOption_PathFailureZ *NONNULL_PTR arg); +/* @internal */ +export function COption_PathFailureZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PathFailureZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCOption_PathFailureZ COption_PathFailureZ_clone(const struct LDKCOption_PathFailureZ *NONNULL_PTR orig); +/* @internal */ +export function COption_PathFailureZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PathFailureZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_ok(struct LDKCOption_PathFailureZ o); +/* @internal */ +export function CResult_COption_PathFailureZDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_COption_PathFailureZDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_COption_PathFailureZDecodeErrorZ_is_ok(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_COption_PathFailureZDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_COption_PathFailureZDecodeErrorZ_free(struct LDKCResult_COption_PathFailureZDecodeErrorZ _res); +/* @internal */ +export function CResult_COption_PathFailureZDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_clone(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_COption_PathFailureZDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o); +/* @internal */ +export function COption_ClosureReasonZ_some(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_some(o); + return nativeResponseValue; +} + // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void); +/* @internal */ +export function COption_ClosureReasonZ_none(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_none(); + return nativeResponseValue; +} + // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res); +/* @internal */ +export function COption_ClosureReasonZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_free(_res); + // debug statements here +} + // uint64_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg); +/* @internal */ +export function COption_ClosureReasonZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig); +/* @internal */ +export function COption_ClosureReasonZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o); +/* @internal */ +export function CResult_COption_ClosureReasonZDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_COption_ClosureReasonZDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res); +/* @internal */ +export function CResult_COption_ClosureReasonZDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_some(struct LDKHTLCDestination o); +/* @internal */ +export function COption_HTLCDestinationZ_some(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_some(o); + return nativeResponseValue; +} + // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_none(void); +/* @internal */ +export function COption_HTLCDestinationZ_none(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_none(); + return nativeResponseValue; +} + // void COption_HTLCDestinationZ_free(struct LDKCOption_HTLCDestinationZ _res); +/* @internal */ +export function COption_HTLCDestinationZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_free(_res); + // debug statements here +} + // uint64_t COption_HTLCDestinationZ_clone_ptr(LDKCOption_HTLCDestinationZ *NONNULL_PTR arg); +/* @internal */ +export function COption_HTLCDestinationZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_clone(const struct LDKCOption_HTLCDestinationZ *NONNULL_PTR orig); +/* @internal */ +export function COption_HTLCDestinationZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_ok(struct LDKCOption_HTLCDestinationZ o); +/* @internal */ +export function CResult_COption_HTLCDestinationZDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_COption_HTLCDestinationZDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_COption_HTLCDestinationZDecodeErrorZ_free(struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ _res); +/* @internal */ +export function CResult_COption_HTLCDestinationZDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_clone(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_COption_HTLCDestinationZDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_ok(enum LDKPaymentFailureReason o); +/* @internal */ +export function CResult_PaymentFailureReasonDecodeErrorZ_ok(o: PaymentFailureReason): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_PaymentFailureReasonDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_err(e); return nativeResponseValue; } // bool CResult_PaymentFailureReasonDecodeErrorZ_is_ok(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_PaymentFailureReasonDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_PaymentFailureReasonDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_PaymentFailureReasonDecodeErrorZ_free(struct LDKCResult_PaymentFailureReasonDecodeErrorZ _res); +/* @internal */ +export function CResult_PaymentFailureReasonDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_clone(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_PaymentFailureReasonDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCOption_U128Z COption_U128Z_some(struct LDKU128 o); +/* @internal */ +export function COption_U128Z_some(o: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_U128Z_some(o); + return nativeResponseValue; +} + // struct LDKCOption_U128Z COption_U128Z_none(void); +/* @internal */ +export function COption_U128Z_none(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_U128Z_none(); + return nativeResponseValue; +} + // void COption_U128Z_free(struct LDKCOption_U128Z _res); +/* @internal */ +export function COption_U128Z_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_U128Z_free(_res); + // debug statements here +} + // uint64_t COption_U128Z_clone_ptr(LDKCOption_U128Z *NONNULL_PTR arg); +/* @internal */ +export function COption_U128Z_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_U128Z_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCOption_U128Z COption_U128Z_clone(const struct LDKCOption_U128Z *NONNULL_PTR orig); +/* @internal */ +export function COption_U128Z_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_U128Z_clone(orig); + return nativeResponseValue; +} + // void CVec_ClaimedHTLCZ_free(struct LDKCVec_ClaimedHTLCZ _res); +/* @internal */ +export function CVec_ClaimedHTLCZ_free(_res: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CVec_ClaimedHTLCZ_free(_res); + // debug statements here +} + // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_some(enum LDKPaymentFailureReason o); +/* @internal */ +export function COption_PaymentFailureReasonZ_some(o: PaymentFailureReason): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_some(o); + return nativeResponseValue; +} + // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_none(void); +/* @internal */ +export function COption_PaymentFailureReasonZ_none(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_none(); + return nativeResponseValue; +} + // void COption_PaymentFailureReasonZ_free(struct LDKCOption_PaymentFailureReasonZ _res); +/* @internal */ +export function COption_PaymentFailureReasonZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_free(_res); + // debug statements here +} + // uint64_t COption_PaymentFailureReasonZ_clone_ptr(LDKCOption_PaymentFailureReasonZ *NONNULL_PTR arg); +/* @internal */ +export function COption_PaymentFailureReasonZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_clone(const struct LDKCOption_PaymentFailureReasonZ *NONNULL_PTR orig); +/* @internal */ +export function COption_PaymentFailureReasonZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o); +/* @internal */ +export function COption_EventZ_some(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_EventZ_some(o); + return nativeResponseValue; +} + // struct LDKCOption_EventZ COption_EventZ_none(void); +/* @internal */ +export function COption_EventZ_none(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_EventZ_none(); + return nativeResponseValue; +} + // void COption_EventZ_free(struct LDKCOption_EventZ _res); +/* @internal */ +export function COption_EventZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_EventZ_free(_res); + // debug statements here +} + // uint64_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg); +/* @internal */ +export function COption_EventZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_EventZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig); +/* @internal */ +export function COption_EventZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_COption_EventZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o); +/* @internal */ +export function CResult_COption_EventZDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_COption_EventZDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_COption_EventZDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res); +/* @internal */ +export function CResult_COption_EventZDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_COption_EventZDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_COption_EventZDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_ok(enum LDKSiPrefix o); +/* @internal */ +export function CResult_SiPrefixBolt11ParseErrorZ_ok(o: SiPrefix): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SiPrefixBolt11ParseErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_err(struct LDKBolt11ParseError e); +/* @internal */ +export function CResult_SiPrefixBolt11ParseErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SiPrefixBolt11ParseErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_SiPrefixBolt11ParseErrorZ_is_ok(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_SiPrefixBolt11ParseErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SiPrefixBolt11ParseErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_SiPrefixBolt11ParseErrorZ_free(struct LDKCResult_SiPrefixBolt11ParseErrorZ _res); +/* @internal */ +export function CResult_SiPrefixBolt11ParseErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SiPrefixBolt11ParseErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_clone(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_SiPrefixBolt11ParseErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SiPrefixBolt11ParseErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(struct LDKBolt11Invoice o); +/* @internal */ +export function CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e); +/* @internal */ +export function CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ _res); +/* @internal */ +export function CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(struct LDKSignedRawBolt11Invoice o); +/* @internal */ +export function CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(struct LDKBolt11ParseError e); +/* @internal */ +export function CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ _res); +/* @internal */ +export function CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(orig); + return nativeResponseValue; +} + // uint64_t C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR arg); +/* @internal */ +export function C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR orig); +/* @internal */ +export function C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(orig); + return nativeResponseValue; +} + // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(struct LDKRawBolt11Invoice a, struct LDKThirtyTwoBytes b, struct LDKBolt11InvoiceSignature c); +/* @internal */ +export function C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(a: bigint, b: number, c: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(a, b, c); + return nativeResponseValue; +} + // void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ _res); +/* @internal */ +export function C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(_res); + // debug statements here +} + // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_ok(struct LDKPayeePubKey o); +/* @internal */ +export function CResult_PayeePubKeySecp256k1ErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PayeePubKeySecp256k1ErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e); +/* @internal */ +export function CResult_PayeePubKeySecp256k1ErrorZ_err(e: Secp256k1Error): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PayeePubKeySecp256k1ErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_PayeePubKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_PayeePubKeySecp256k1ErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PayeePubKeySecp256k1ErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_PayeePubKeySecp256k1ErrorZ_free(struct LDKCResult_PayeePubKeySecp256k1ErrorZ _res); +/* @internal */ +export function CResult_PayeePubKeySecp256k1ErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PayeePubKeySecp256k1ErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_clone(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_PayeePubKeySecp256k1ErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PayeePubKeySecp256k1ErrorZ_clone(orig); + return nativeResponseValue; +} + // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res); +/* @internal */ +export function CVec_PrivateRouteZ_free(_res: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CVec_PrivateRouteZ_free(_res); + // debug statements here +} + // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o); +/* @internal */ +export function CResult_PositiveTimestampCreationErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e); +/* @internal */ +export function CResult_PositiveTimestampCreationErrorZ_err(e: CreationError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_PositiveTimestampCreationErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res); +/* @internal */ +export function CResult_PositiveTimestampCreationErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_PositiveTimestampCreationErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_ok(void); +/* @internal */ +export function CResult_NoneBolt11SemanticErrorZ_ok(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt11SemanticErrorZ_ok(); + return nativeResponseValue; +} + // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e); +/* @internal */ +export function CResult_NoneBolt11SemanticErrorZ_err(e: Bolt11SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt11SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_NoneBolt11SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_NoneBolt11SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt11SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_NoneBolt11SemanticErrorZ_free(struct LDKCResult_NoneBolt11SemanticErrorZ _res); +/* @internal */ +export function CResult_NoneBolt11SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt11SemanticErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_NoneBolt11SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_NoneBolt11SemanticErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt11SemanticErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_clone(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_NoneBolt11SemanticErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_NoneBolt11SemanticErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(struct LDKBolt11Invoice o); +/* @internal */ +export function CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e); +/* @internal */ +export function CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(e: Bolt11SemanticError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ _res); +/* @internal */ +export function CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o); +/* @internal */ +export function CResult_DescriptionCreationErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e); +/* @internal */ +export function CResult_DescriptionCreationErrorZ_err(e: CreationError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_DescriptionCreationErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res); +/* @internal */ +export function CResult_DescriptionCreationErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_DescriptionCreationErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_DescriptionCreationErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o); +/* @internal */ +export function CResult_PrivateRouteCreationErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e); +/* @internal */ +export function CResult_PrivateRouteCreationErrorZ_err(e: CreationError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_PrivateRouteCreationErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res); +/* @internal */ +export function CResult_PrivateRouteCreationErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_PrivateRouteCreationErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_PrivateRouteCreationErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o); +/* @internal */ +export function CResult_OutPointDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_OutPointDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_OutPointDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res); +/* @internal */ +export function CResult_OutPointDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_OutPointDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_OutPointDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_ok(struct LDKBigSize o); +/* @internal */ +export function CResult_BigSizeDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BigSizeDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_BigSizeDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BigSizeDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_BigSizeDecodeErrorZ_is_ok(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_BigSizeDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BigSizeDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_BigSizeDecodeErrorZ_free(struct LDKCResult_BigSizeDecodeErrorZ _res); +/* @internal */ +export function CResult_BigSizeDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BigSizeDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_BigSizeDecodeErrorZ_clone_ptr(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_BigSizeDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BigSizeDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_clone(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_BigSizeDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BigSizeDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_ok(struct LDKHostname o); +/* @internal */ +export function CResult_HostnameDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_HostnameDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_HostnameDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_HostnameDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_HostnameDecodeErrorZ_is_ok(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_HostnameDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_HostnameDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_HostnameDecodeErrorZ_free(struct LDKCResult_HostnameDecodeErrorZ _res); +/* @internal */ +export function CResult_HostnameDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_HostnameDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_HostnameDecodeErrorZ_clone_ptr(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_HostnameDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_HostnameDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_clone(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_HostnameDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_HostnameDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_ok(struct LDKTransactionU16LenLimited o); +/* @internal */ +export function CResult_TransactionU16LenLimitedNoneZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedNoneZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_err(void); +/* @internal */ +export function CResult_TransactionU16LenLimitedNoneZ_err(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedNoneZ_err(); + return nativeResponseValue; +} + // bool CResult_TransactionU16LenLimitedNoneZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR o); +/* @internal */ +export function CResult_TransactionU16LenLimitedNoneZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedNoneZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_TransactionU16LenLimitedNoneZ_free(struct LDKCResult_TransactionU16LenLimitedNoneZ _res); +/* @internal */ +export function CResult_TransactionU16LenLimitedNoneZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedNoneZ_free(_res); + // debug statements here +} + // uint64_t CResult_TransactionU16LenLimitedNoneZ_clone_ptr(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_TransactionU16LenLimitedNoneZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedNoneZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_clone(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_TransactionU16LenLimitedNoneZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedNoneZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_ok(struct LDKTransactionU16LenLimited o); +/* @internal */ +export function CResult_TransactionU16LenLimitedDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_TransactionU16LenLimitedDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_TransactionU16LenLimitedDecodeErrorZ_free(struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ _res); +/* @internal */ +export function CResult_TransactionU16LenLimitedDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_clone(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_TransactionU16LenLimitedDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_ok(struct LDKUntrustedString o); +/* @internal */ +export function CResult_UntrustedStringDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_UntrustedStringDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_UntrustedStringDecodeErrorZ_is_ok(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_UntrustedStringDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_UntrustedStringDecodeErrorZ_free(struct LDKCResult_UntrustedStringDecodeErrorZ _res); +/* @internal */ +export function CResult_UntrustedStringDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_UntrustedStringDecodeErrorZ_clone_ptr(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_UntrustedStringDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_clone(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_UntrustedStringDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_ChannelIdDecodeErrorZ CResult_ChannelIdDecodeErrorZ_ok(struct LDKChannelId o); +/* @internal */ +export function CResult_ChannelIdDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelIdDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_ChannelIdDecodeErrorZ CResult_ChannelIdDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_ChannelIdDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelIdDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_ChannelIdDecodeErrorZ_is_ok(const struct LDKCResult_ChannelIdDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_ChannelIdDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelIdDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_ChannelIdDecodeErrorZ_free(struct LDKCResult_ChannelIdDecodeErrorZ _res); +/* @internal */ +export function CResult_ChannelIdDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelIdDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_ChannelIdDecodeErrorZ_clone_ptr(LDKCResult_ChannelIdDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_ChannelIdDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelIdDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_ChannelIdDecodeErrorZ CResult_ChannelIdDecodeErrorZ_clone(const struct LDKCResult_ChannelIdDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_ChannelIdDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_ChannelIdDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // uint64_t C2Tuple__u832u16Z_clone_ptr(LDKC2Tuple__u832u16Z *NONNULL_PTR arg); +/* @internal */ +export function C2Tuple__u832u16Z_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C2Tuple__u832u16Z_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKC2Tuple__u832u16Z C2Tuple__u832u16Z_clone(const struct LDKC2Tuple__u832u16Z *NONNULL_PTR orig); +/* @internal */ +export function C2Tuple__u832u16Z_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C2Tuple__u832u16Z_clone(orig); + return nativeResponseValue; +} + // struct LDKC2Tuple__u832u16Z C2Tuple__u832u16Z_new(struct LDKThirtyTwoBytes a, uint16_t b); +/* @internal */ +export function C2Tuple__u832u16Z_new(a: number, b: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C2Tuple__u832u16Z_new(a, b); + return nativeResponseValue; +} + // void C2Tuple__u832u16Z_free(struct LDKC2Tuple__u832u16Z _res); +/* @internal */ +export function C2Tuple__u832u16Z_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C2Tuple__u832u16Z_free(_res); + // debug statements here +} + // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_ok(struct LDKPaymentRelay o); +/* @internal */ +export function CResult_PaymentRelayDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentRelayDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_PaymentRelayDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentRelayDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_PaymentRelayDecodeErrorZ_is_ok(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_PaymentRelayDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentRelayDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_PaymentRelayDecodeErrorZ_free(struct LDKCResult_PaymentRelayDecodeErrorZ _res); +/* @internal */ +export function CResult_PaymentRelayDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentRelayDecodeErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_PaymentRelayDecodeErrorZ_clone_ptr(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_PaymentRelayDecodeErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentRelayDecodeErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_clone(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_PaymentRelayDecodeErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentRelayDecodeErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_ok(struct LDKPaymentConstraints o); +/* @internal */ +export function CResult_PaymentConstraintsDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_PaymentConstraintsDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_err(e); return nativeResponseValue; } - // void CResult_PaymentFailureReasonDecodeErrorZ_free(struct LDKCResult_PaymentFailureReasonDecodeErrorZ _res); + // bool CResult_PaymentConstraintsDecodeErrorZ_is_ok(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_PaymentFailureReasonDecodeErrorZ_free(_res: bigint): void { +export function CResult_PaymentConstraintsDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_PaymentConstraintsDecodeErrorZ_free(struct LDKCResult_PaymentConstraintsDecodeErrorZ _res); +/* @internal */ +export function CResult_PaymentConstraintsDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_clone(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_clone(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_PaymentFailureReasonDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_PaymentConstraintsDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCOption_U128Z COption_U128Z_some(struct LDKU128 o); + // struct LDKCResult_PaymentContextDecodeErrorZ CResult_PaymentContextDecodeErrorZ_ok(struct LDKPaymentContext o); /* @internal */ -export function COption_U128Z_some(o: number): bigint { +export function CResult_PaymentContextDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_U128Z_some(o); + const nativeResponseValue = wasm.TS_CResult_PaymentContextDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCOption_U128Z COption_U128Z_none(void); + // struct LDKCResult_PaymentContextDecodeErrorZ CResult_PaymentContextDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function COption_U128Z_none(): bigint { +export function CResult_PaymentContextDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_U128Z_none(); + const nativeResponseValue = wasm.TS_CResult_PaymentContextDecodeErrorZ_err(e); return nativeResponseValue; } - // void COption_U128Z_free(struct LDKCOption_U128Z _res); + // bool CResult_PaymentContextDecodeErrorZ_is_ok(const struct LDKCResult_PaymentContextDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function COption_U128Z_free(_res: bigint): void { +export function CResult_PaymentContextDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_U128Z_free(_res); + const nativeResponseValue = wasm.TS_CResult_PaymentContextDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_PaymentContextDecodeErrorZ_free(struct LDKCResult_PaymentContextDecodeErrorZ _res); +/* @internal */ +export function CResult_PaymentContextDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PaymentContextDecodeErrorZ_free(_res); // debug statements here } - // uint64_t COption_U128Z_clone_ptr(LDKCOption_U128Z *NONNULL_PTR arg); + // uint64_t CResult_PaymentContextDecodeErrorZ_clone_ptr(LDKCResult_PaymentContextDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function COption_U128Z_clone_ptr(arg: bigint): bigint { +export function CResult_PaymentContextDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_U128Z_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_PaymentContextDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCOption_U128Z COption_U128Z_clone(const struct LDKCOption_U128Z *NONNULL_PTR orig); + // struct LDKCResult_PaymentContextDecodeErrorZ CResult_PaymentContextDecodeErrorZ_clone(const struct LDKCResult_PaymentContextDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function COption_U128Z_clone(orig: bigint): bigint { +export function CResult_PaymentContextDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_U128Z_clone(orig); + const nativeResponseValue = wasm.TS_CResult_PaymentContextDecodeErrorZ_clone(orig); return nativeResponseValue; } - // void CVec_ClaimedHTLCZ_free(struct LDKCVec_ClaimedHTLCZ _res); + // struct LDKCResult_UnknownPaymentContextDecodeErrorZ CResult_UnknownPaymentContextDecodeErrorZ_ok(struct LDKUnknownPaymentContext o); /* @internal */ -export function CVec_ClaimedHTLCZ_free(_res: number): void { +export function CResult_UnknownPaymentContextDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CVec_ClaimedHTLCZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_UnknownPaymentContextDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_UnknownPaymentContextDecodeErrorZ CResult_UnknownPaymentContextDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_UnknownPaymentContextDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnknownPaymentContextDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_UnknownPaymentContextDecodeErrorZ_is_ok(const struct LDKCResult_UnknownPaymentContextDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_UnknownPaymentContextDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnknownPaymentContextDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_UnknownPaymentContextDecodeErrorZ_free(struct LDKCResult_UnknownPaymentContextDecodeErrorZ _res); +/* @internal */ +export function CResult_UnknownPaymentContextDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_UnknownPaymentContextDecodeErrorZ_free(_res); // debug statements here } - // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_some(enum LDKPaymentFailureReason o); + // uint64_t CResult_UnknownPaymentContextDecodeErrorZ_clone_ptr(LDKCResult_UnknownPaymentContextDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function COption_PaymentFailureReasonZ_some(o: PaymentFailureReason): bigint { +export function CResult_UnknownPaymentContextDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_some(o); + const nativeResponseValue = wasm.TS_CResult_UnknownPaymentContextDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_none(void); + // struct LDKCResult_UnknownPaymentContextDecodeErrorZ CResult_UnknownPaymentContextDecodeErrorZ_clone(const struct LDKCResult_UnknownPaymentContextDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function COption_PaymentFailureReasonZ_none(): bigint { +export function CResult_UnknownPaymentContextDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_none(); + const nativeResponseValue = wasm.TS_CResult_UnknownPaymentContextDecodeErrorZ_clone(orig); return nativeResponseValue; } - // void COption_PaymentFailureReasonZ_free(struct LDKCOption_PaymentFailureReasonZ _res); + // struct LDKCResult_Bolt12OfferContextDecodeErrorZ CResult_Bolt12OfferContextDecodeErrorZ_ok(struct LDKBolt12OfferContext o); /* @internal */ -export function COption_PaymentFailureReasonZ_free(_res: bigint): void { +export function CResult_Bolt12OfferContextDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_Bolt12OfferContextDecodeErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_Bolt12OfferContextDecodeErrorZ CResult_Bolt12OfferContextDecodeErrorZ_err(struct LDKDecodeError e); +/* @internal */ +export function CResult_Bolt12OfferContextDecodeErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12OfferContextDecodeErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_Bolt12OfferContextDecodeErrorZ_is_ok(const struct LDKCResult_Bolt12OfferContextDecodeErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_Bolt12OfferContextDecodeErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12OfferContextDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_Bolt12OfferContextDecodeErrorZ_free(struct LDKCResult_Bolt12OfferContextDecodeErrorZ _res); +/* @internal */ +export function CResult_Bolt12OfferContextDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12OfferContextDecodeErrorZ_free(_res); // debug statements here } - // uint64_t COption_PaymentFailureReasonZ_clone_ptr(LDKCOption_PaymentFailureReasonZ *NONNULL_PTR arg); + // uint64_t CResult_Bolt12OfferContextDecodeErrorZ_clone_ptr(LDKCResult_Bolt12OfferContextDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function COption_PaymentFailureReasonZ_clone_ptr(arg: bigint): bigint { +export function CResult_Bolt12OfferContextDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_Bolt12OfferContextDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_clone(const struct LDKCOption_PaymentFailureReasonZ *NONNULL_PTR orig); + // struct LDKCResult_Bolt12OfferContextDecodeErrorZ CResult_Bolt12OfferContextDecodeErrorZ_clone(const struct LDKCResult_Bolt12OfferContextDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function COption_PaymentFailureReasonZ_clone(orig: bigint): bigint { +export function CResult_Bolt12OfferContextDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_Bolt12OfferContextDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o); + // struct LDKCResult_Bolt12RefundContextDecodeErrorZ CResult_Bolt12RefundContextDecodeErrorZ_ok(struct LDKBolt12RefundContext o); /* @internal */ -export function COption_EventZ_some(o: bigint): bigint { +export function CResult_Bolt12RefundContextDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_EventZ_some(o); + const nativeResponseValue = wasm.TS_CResult_Bolt12RefundContextDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCOption_EventZ COption_EventZ_none(void); + // struct LDKCResult_Bolt12RefundContextDecodeErrorZ CResult_Bolt12RefundContextDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function COption_EventZ_none(): bigint { +export function CResult_Bolt12RefundContextDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_EventZ_none(); + const nativeResponseValue = wasm.TS_CResult_Bolt12RefundContextDecodeErrorZ_err(e); return nativeResponseValue; } - // void COption_EventZ_free(struct LDKCOption_EventZ _res); + // bool CResult_Bolt12RefundContextDecodeErrorZ_is_ok(const struct LDKCResult_Bolt12RefundContextDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function COption_EventZ_free(_res: bigint): void { +export function CResult_Bolt12RefundContextDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_EventZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_Bolt12RefundContextDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_Bolt12RefundContextDecodeErrorZ_free(struct LDKCResult_Bolt12RefundContextDecodeErrorZ _res); +/* @internal */ +export function CResult_Bolt12RefundContextDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_Bolt12RefundContextDecodeErrorZ_free(_res); // debug statements here } - // uint64_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg); + // uint64_t CResult_Bolt12RefundContextDecodeErrorZ_clone_ptr(LDKCResult_Bolt12RefundContextDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function COption_EventZ_clone_ptr(arg: bigint): bigint { +export function CResult_Bolt12RefundContextDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_EventZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_Bolt12RefundContextDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig); + // struct LDKCResult_Bolt12RefundContextDecodeErrorZ CResult_Bolt12RefundContextDecodeErrorZ_clone(const struct LDKCResult_Bolt12RefundContextDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function COption_EventZ_clone(orig: bigint): bigint { +export function CResult_Bolt12RefundContextDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_EventZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_Bolt12RefundContextDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o); + // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_ok(struct LDKStr o); /* @internal */ -export function CResult_COption_EventZDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_StrSecp256k1ErrorZ_ok(o: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_err(enum LDKSecp256k1Error e); /* @internal */ -export function CResult_COption_EventZDecodeErrorZ_err(e: bigint): bigint { +export function CResult_StrSecp256k1ErrorZ_err(e: Secp256k1Error): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_err(e); return nativeResponseValue; } - // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o); + // bool CResult_StrSecp256k1ErrorZ_is_ok(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_COption_EventZDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_StrSecp256k1ErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res); + // void CResult_StrSecp256k1ErrorZ_free(struct LDKCResult_StrSecp256k1ErrorZ _res); /* @internal */ -export function CResult_COption_EventZDecodeErrorZ_free(_res: bigint): void { +export function CResult_StrSecp256k1ErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_free(_res); // debug statements here } - // uint64_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_StrSecp256k1ErrorZ_clone_ptr(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_COption_EventZDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_StrSecp256k1ErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_clone(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_COption_EventZDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_StrSecp256k1ErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_ok(enum LDKSiPrefix o); + // uint64_t C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR arg); /* @internal */ -export function CResult_SiPrefixBolt11ParseErrorZ_ok(o: SiPrefix): bigint { +export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SiPrefixBolt11ParseErrorZ_ok(o); + const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_err(struct LDKBolt11ParseError e); + // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(const struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR orig); /* @internal */ -export function CResult_SiPrefixBolt11ParseErrorZ_err(e: bigint): bigint { +export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SiPrefixBolt11ParseErrorZ_err(e); + const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(orig); return nativeResponseValue; } - // bool CResult_SiPrefixBolt11ParseErrorZ_is_ok(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR o); + // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(struct LDKThirtyTwoBytes a, struct LDKRecipientOnionFields b, struct LDKRouteParameters c); /* @internal */ -export function CResult_SiPrefixBolt11ParseErrorZ_is_ok(o: bigint): boolean { +export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(a: number, b: bigint, c: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SiPrefixBolt11ParseErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(a, b, c); return nativeResponseValue; } - // void CResult_SiPrefixBolt11ParseErrorZ_free(struct LDKCResult_SiPrefixBolt11ParseErrorZ _res); + // void C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ _res); /* @internal */ -export function CResult_SiPrefixBolt11ParseErrorZ_free(_res: bigint): void { +export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SiPrefixBolt11ParseErrorZ_free(_res); + const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(_res); // debug statements here } - // uint64_t CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR arg); + // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ o); /* @internal */ -export function CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SiPrefixBolt11ParseErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_SiPrefixBolt11ParseErrorZ CResult_SiPrefixBolt11ParseErrorZ_clone(const struct LDKCResult_SiPrefixBolt11ParseErrorZ *NONNULL_PTR orig); + // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err(void); /* @internal */ -export function CResult_SiPrefixBolt11ParseErrorZ_clone(orig: bigint): bigint { +export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SiPrefixBolt11ParseErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err(); return nativeResponseValue; } - // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(struct LDKBolt11Invoice o); + // bool CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(const struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR o); /* @internal */ -export function CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(o: bigint): bigint { +export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceParseOrSemanticErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(o); return nativeResponseValue; } - // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e); + // void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ _res); /* @internal */ -export function CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(e: bigint): bigint { +export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceParseOrSemanticErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(_res); + // debug statements here +} + // uint64_t CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(const struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_ok(struct LDKTxOut o); +/* @internal */ +export function CResult_TxOutUtxoLookupErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_err(enum LDKUtxoLookupError e); +/* @internal */ +export function CResult_TxOutUtxoLookupErrorZ_err(e: UtxoLookupError): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_TxOutUtxoLookupErrorZ_is_ok(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_TxOutUtxoLookupErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_TxOutUtxoLookupErrorZ_free(struct LDKCResult_TxOutUtxoLookupErrorZ _res); +/* @internal */ +export function CResult_TxOutUtxoLookupErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_TxOutUtxoLookupErrorZ_clone_ptr(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_TxOutUtxoLookupErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_clone(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_TxOutUtxoLookupErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_clone(orig); + return nativeResponseValue; +} + // uint64_t C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR arg); +/* @internal */ +export function C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(const struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR orig); +/* @internal */ +export function C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(orig); + return nativeResponseValue; +} + // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(struct LDKPublicKey a, struct LDKOnionMessage b, struct LDKCOption_CVec_SocketAddressZZ c); +/* @internal */ +export function C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(a: number, b: bigint, c: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(a, b, c); + return nativeResponseValue; +} + // void C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ _res); +/* @internal */ +export function C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(_res); + // debug statements here +} + // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ o); +/* @internal */ +export function CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(struct LDKSendError e); +/* @internal */ +export function CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(const struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ _res); +/* @internal */ +export function CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_clone_ptr(LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_clone(const struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_ok(struct LDKPeeledOnion o); +/* @internal */ +export function CResult_PeeledOnionNoneZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PeeledOnionNoneZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_err(void); +/* @internal */ +export function CResult_PeeledOnionNoneZ_err(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PeeledOnionNoneZ_err(); + return nativeResponseValue; +} + // bool CResult_PeeledOnionNoneZ_is_ok(const struct LDKCResult_PeeledOnionNoneZ *NONNULL_PTR o); +/* @internal */ +export function CResult_PeeledOnionNoneZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PeeledOnionNoneZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_PeeledOnionNoneZ_free(struct LDKCResult_PeeledOnionNoneZ _res); +/* @internal */ +export function CResult_PeeledOnionNoneZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PeeledOnionNoneZ_free(_res); + // debug statements here +} + // uint64_t CResult_PeeledOnionNoneZ_clone_ptr(LDKCResult_PeeledOnionNoneZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_PeeledOnionNoneZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PeeledOnionNoneZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_clone(const struct LDKCResult_PeeledOnionNoneZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_PeeledOnionNoneZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_PeeledOnionNoneZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_SendSuccessSendErrorZ CResult_SendSuccessSendErrorZ_ok(struct LDKSendSuccess o); +/* @internal */ +export function CResult_SendSuccessSendErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SendSuccessSendErrorZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_SendSuccessSendErrorZ CResult_SendSuccessSendErrorZ_err(struct LDKSendError e); +/* @internal */ +export function CResult_SendSuccessSendErrorZ_err(e: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SendSuccessSendErrorZ_err(e); + return nativeResponseValue; +} + // bool CResult_SendSuccessSendErrorZ_is_ok(const struct LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR o); +/* @internal */ +export function CResult_SendSuccessSendErrorZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SendSuccessSendErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_SendSuccessSendErrorZ_free(struct LDKCResult_SendSuccessSendErrorZ _res); +/* @internal */ +export function CResult_SendSuccessSendErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SendSuccessSendErrorZ_free(_res); + // debug statements here +} + // uint64_t CResult_SendSuccessSendErrorZ_clone_ptr(LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_SendSuccessSendErrorZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SendSuccessSendErrorZ_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKCResult_SendSuccessSendErrorZ CResult_SendSuccessSendErrorZ_clone(const struct LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR orig); +/* @internal */ +export function CResult_SendSuccessSendErrorZ_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_SendSuccessSendErrorZ_clone(orig); + return nativeResponseValue; +} + // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_ok(struct LDKBlindedPath o); +/* @internal */ +export function CResult_BlindedPathNoneZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_ok(o); + return nativeResponseValue; +} + // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_err(void); +/* @internal */ +export function CResult_BlindedPathNoneZ_err(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_err(); + return nativeResponseValue; +} + // bool CResult_BlindedPathNoneZ_is_ok(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR o); +/* @internal */ +export function CResult_BlindedPathNoneZ_is_ok(o: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res); +/* @internal */ +export function CResult_BlindedPathNoneZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_free(_res); + // debug statements here +} + // uint64_t CResult_BlindedPathNoneZ_clone_ptr(LDKCResult_BlindedPathNoneZ *NONNULL_PTR arg); +/* @internal */ +export function CResult_BlindedPathNoneZ_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_clone_ptr(arg); return nativeResponseValue; } - // bool CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR o); + // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig); /* @internal */ -export function CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(o: bigint): boolean { +export function CResult_BlindedPathNoneZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceParseOrSemanticErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_clone(orig); return nativeResponseValue; } - // void CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ _res); + // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ o); /* @internal */ -export function CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(_res: bigint): void { +export function CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceParseOrSemanticErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(o); + return nativeResponseValue; } - // uint64_t CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg); + // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(void); /* @internal */ -export function CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(); return nativeResponseValue; } - // struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig); + // bool CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR o); /* @internal */ -export function CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(orig: bigint): bigint { +export function CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceParseOrSemanticErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(o); return nativeResponseValue; } - // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(struct LDKSignedRawBolt11Invoice o); + // void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ _res); /* @internal */ -export function CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(o: bigint): bigint { +export function CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_ok(o); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(_res); + // debug statements here } - // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(struct LDKBolt11ParseError e); + // uint64_t CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR arg); /* @internal */ -export function CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(e: bigint): bigint { +export function CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(arg); return nativeResponseValue; } - // bool CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR o); + // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR orig); /* @internal */ -export function CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(o: bigint): boolean { +export function CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(orig); return nativeResponseValue; } - // void CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ _res); + // void CVec_ForwardNodeZ_free(struct LDKCVec_ForwardNodeZ _res); /* @internal */ -export function CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(_res: bigint): void { +export function CVec_ForwardNodeZ_free(_res: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CVec_ForwardNodeZ_free(_res); // debug statements here } - // uint64_t CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR arg); + // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_ok(struct LDKBlindedPath o); /* @internal */ -export function CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_BlindedPathDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(const struct LDKCResult_SignedRawBolt11InvoiceBolt11ParseErrorZ *NONNULL_PTR orig); + // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(orig: bigint): bigint { +export function CResult_BlindedPathDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_err(e); return nativeResponseValue; } - // uint64_t C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR arg); + // bool CResult_BlindedPathDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(arg: bigint): bigint { +export function CResult_BlindedPathDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ *NONNULL_PTR orig); + // void CResult_BlindedPathDecodeErrorZ_free(struct LDKCResult_BlindedPathDecodeErrorZ _res); /* @internal */ -export function C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(orig: bigint): bigint { +export function CResult_BlindedPathDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_free(_res); + // debug statements here } - // struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(struct LDKRawBolt11Invoice a, struct LDKThirtyTwoBytes b, struct LDKBolt11InvoiceSignature c); + // uint64_t CResult_BlindedPathDecodeErrorZ_clone_ptr(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(a: bigint, b: number, c: bigint): bigint { +export function CResult_BlindedPathDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_new(a, b, c); + const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // void C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(struct LDKC3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ _res); + // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_clone(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(_res: bigint): void { +export function CResult_BlindedPathDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_RawBolt11Invoice_u832Bolt11InvoiceSignatureZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_clone(orig); + return nativeResponseValue; } - // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_ok(struct LDKPayeePubKey o); + // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_ok(struct LDKBlindedHop o); /* @internal */ -export function CResult_PayeePubKeySecp256k1ErrorZ_ok(o: bigint): bigint { +export function CResult_BlindedHopDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PayeePubKeySecp256k1ErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_err(enum LDKSecp256k1Error e); + // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_PayeePubKeySecp256k1ErrorZ_err(e: Secp256k1Error): bigint { +export function CResult_BlindedHopDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PayeePubKeySecp256k1ErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_PayeePubKeySecp256k1ErrorZ_is_ok(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR o); + // bool CResult_BlindedHopDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_PayeePubKeySecp256k1ErrorZ_is_ok(o: bigint): boolean { +export function CResult_BlindedHopDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PayeePubKeySecp256k1ErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_PayeePubKeySecp256k1ErrorZ_free(struct LDKCResult_PayeePubKeySecp256k1ErrorZ _res); + // void CResult_BlindedHopDecodeErrorZ_free(struct LDKCResult_BlindedHopDecodeErrorZ _res); /* @internal */ -export function CResult_PayeePubKeySecp256k1ErrorZ_free(_res: bigint): void { +export function CResult_BlindedHopDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PayeePubKeySecp256k1ErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR arg); + // uint64_t CResult_BlindedHopDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_BlindedHopDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PayeePubKeySecp256k1ErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_PayeePubKeySecp256k1ErrorZ CResult_PayeePubKeySecp256k1ErrorZ_clone(const struct LDKCResult_PayeePubKeySecp256k1ErrorZ *NONNULL_PTR orig); + // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_clone(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_PayeePubKeySecp256k1ErrorZ_clone(orig: bigint): bigint { +export function CResult_BlindedHopDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PayeePubKeySecp256k1ErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_clone(orig); return nativeResponseValue; } - // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res); -/* @internal */ -export function CVec_PrivateRouteZ_free(_res: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_CVec_PrivateRouteZ_free(_res); - // debug statements here -} - // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o); + // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_ok(struct LDKInvoiceError o); /* @internal */ -export function CResult_PositiveTimestampCreationErrorZ_ok(o: bigint): bigint { +export function CResult_InvoiceErrorDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e); + // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_PositiveTimestampCreationErrorZ_err(e: CreationError): bigint { +export function CResult_InvoiceErrorDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o); + // bool CResult_InvoiceErrorDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_PositiveTimestampCreationErrorZ_is_ok(o: bigint): boolean { +export function CResult_InvoiceErrorDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res); + // void CResult_InvoiceErrorDecodeErrorZ_free(struct LDKCResult_InvoiceErrorDecodeErrorZ _res); /* @internal */ -export function CResult_PositiveTimestampCreationErrorZ_free(_res: bigint): void { +export function CResult_InvoiceErrorDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg); + // uint64_t CResult_InvoiceErrorDecodeErrorZ_clone_ptr(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_InvoiceErrorDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig); + // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_clone(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_PositiveTimestampCreationErrorZ_clone(orig: bigint): bigint { +export function CResult_InvoiceErrorDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_ok(void); + // struct LDKCResult_TrackedSpendableOutputDecodeErrorZ CResult_TrackedSpendableOutputDecodeErrorZ_ok(struct LDKTrackedSpendableOutput o); /* @internal */ -export function CResult_NoneBolt11SemanticErrorZ_ok(): bigint { +export function CResult_TrackedSpendableOutputDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt11SemanticErrorZ_ok(); + const nativeResponseValue = wasm.TS_CResult_TrackedSpendableOutputDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e); + // struct LDKCResult_TrackedSpendableOutputDecodeErrorZ CResult_TrackedSpendableOutputDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_NoneBolt11SemanticErrorZ_err(e: Bolt11SemanticError): bigint { +export function CResult_TrackedSpendableOutputDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt11SemanticErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_TrackedSpendableOutputDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_NoneBolt11SemanticErrorZ_is_ok(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR o); + // bool CResult_TrackedSpendableOutputDecodeErrorZ_is_ok(const struct LDKCResult_TrackedSpendableOutputDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_NoneBolt11SemanticErrorZ_is_ok(o: bigint): boolean { +export function CResult_TrackedSpendableOutputDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt11SemanticErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_TrackedSpendableOutputDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_NoneBolt11SemanticErrorZ_free(struct LDKCResult_NoneBolt11SemanticErrorZ _res); + // void CResult_TrackedSpendableOutputDecodeErrorZ_free(struct LDKCResult_TrackedSpendableOutputDecodeErrorZ _res); /* @internal */ -export function CResult_NoneBolt11SemanticErrorZ_free(_res: bigint): void { +export function CResult_TrackedSpendableOutputDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt11SemanticErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_TrackedSpendableOutputDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_NoneBolt11SemanticErrorZ_clone_ptr(LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR arg); + // uint64_t CResult_TrackedSpendableOutputDecodeErrorZ_clone_ptr(LDKCResult_TrackedSpendableOutputDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_NoneBolt11SemanticErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_TrackedSpendableOutputDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt11SemanticErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_TrackedSpendableOutputDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_NoneBolt11SemanticErrorZ CResult_NoneBolt11SemanticErrorZ_clone(const struct LDKCResult_NoneBolt11SemanticErrorZ *NONNULL_PTR orig); + // struct LDKCResult_TrackedSpendableOutputDecodeErrorZ CResult_TrackedSpendableOutputDecodeErrorZ_clone(const struct LDKCResult_TrackedSpendableOutputDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_NoneBolt11SemanticErrorZ_clone(orig: bigint): bigint { +export function CResult_TrackedSpendableOutputDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_NoneBolt11SemanticErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_TrackedSpendableOutputDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(struct LDKBolt11Invoice o); + // struct LDKCResult_OutputSpendStatusDecodeErrorZ CResult_OutputSpendStatusDecodeErrorZ_ok(struct LDKOutputSpendStatus o); /* @internal */ -export function CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(o: bigint): bigint { +export function CResult_OutputSpendStatusDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceBolt11SemanticErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_OutputSpendStatusDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(enum LDKBolt11SemanticError e); + // struct LDKCResult_OutputSpendStatusDecodeErrorZ CResult_OutputSpendStatusDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(e: Bolt11SemanticError): bigint { +export function CResult_OutputSpendStatusDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceBolt11SemanticErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_OutputSpendStatusDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR o); + // bool CResult_OutputSpendStatusDecodeErrorZ_is_ok(const struct LDKCResult_OutputSpendStatusDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(o: bigint): boolean { +export function CResult_OutputSpendStatusDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceBolt11SemanticErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_OutputSpendStatusDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ _res); + // void CResult_OutputSpendStatusDecodeErrorZ_free(struct LDKCResult_OutputSpendStatusDecodeErrorZ _res); /* @internal */ -export function CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(_res: bigint): void { +export function CResult_OutputSpendStatusDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceBolt11SemanticErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_OutputSpendStatusDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR arg); + // uint64_t CResult_OutputSpendStatusDecodeErrorZ_clone_ptr(LDKCResult_OutputSpendStatusDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_OutputSpendStatusDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_OutputSpendStatusDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(const struct LDKCResult_Bolt11InvoiceBolt11SemanticErrorZ *NONNULL_PTR orig); + // struct LDKCResult_OutputSpendStatusDecodeErrorZ CResult_OutputSpendStatusDecodeErrorZ_clone(const struct LDKCResult_OutputSpendStatusDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(orig: bigint): bigint { +export function CResult_OutputSpendStatusDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_Bolt11InvoiceBolt11SemanticErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_OutputSpendStatusDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o); + // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o); /* @internal */ -export function CResult_DescriptionCreationErrorZ_ok(o: bigint): bigint { +export function COption_FilterZ_some(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_ok(o); + const nativeResponseValue = wasm.TS_COption_FilterZ_some(o); return nativeResponseValue; } - // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e); + // struct LDKCOption_FilterZ COption_FilterZ_none(void); /* @internal */ -export function CResult_DescriptionCreationErrorZ_err(e: CreationError): bigint { +export function COption_FilterZ_none(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_err(e); + const nativeResponseValue = wasm.TS_COption_FilterZ_none(); return nativeResponseValue; } - // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o); + // void COption_FilterZ_free(struct LDKCOption_FilterZ _res); /* @internal */ -export function CResult_DescriptionCreationErrorZ_is_ok(o: bigint): boolean { +export function COption_FilterZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_is_ok(o); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_COption_FilterZ_free(_res); + // debug statements here } - // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res); + // void CVec_TrackedSpendableOutputZ_free(struct LDKCVec_TrackedSpendableOutputZ _res); /* @internal */ -export function CResult_DescriptionCreationErrorZ_free(_res: bigint): void { +export function CVec_TrackedSpendableOutputZ_free(_res: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CVec_TrackedSpendableOutputZ_free(_res); // debug statements here } - // uint64_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg); + // struct LDKCResult_OutputSweeperDecodeErrorZ CResult_OutputSweeperDecodeErrorZ_ok(struct LDKOutputSweeper o); /* @internal */ -export function CResult_DescriptionCreationErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_OutputSweeperDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_OutputSweeperDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig); + // struct LDKCResult_OutputSweeperDecodeErrorZ CResult_OutputSweeperDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_DescriptionCreationErrorZ_clone(orig: bigint): bigint { +export function CResult_OutputSweeperDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_OutputSweeperDecodeErrorZ_err(e); return nativeResponseValue; } - // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o); + // bool CResult_OutputSweeperDecodeErrorZ_is_ok(const struct LDKCResult_OutputSweeperDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_PrivateRouteCreationErrorZ_ok(o: bigint): bigint { +export function CResult_OutputSweeperDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_OutputSweeperDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e); + // void CResult_OutputSweeperDecodeErrorZ_free(struct LDKCResult_OutputSweeperDecodeErrorZ _res); /* @internal */ -export function CResult_PrivateRouteCreationErrorZ_err(e: CreationError): bigint { +export function CResult_OutputSweeperDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_err(e); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CResult_OutputSweeperDecodeErrorZ_free(_res); + // debug statements here } - // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o); + // struct LDKC2Tuple_BestBlockOutputSweeperZ C2Tuple_BestBlockOutputSweeperZ_new(struct LDKBestBlock a, struct LDKOutputSweeper b); /* @internal */ -export function CResult_PrivateRouteCreationErrorZ_is_ok(o: bigint): boolean { +export function C2Tuple_BestBlockOutputSweeperZ_new(a: bigint, b: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_C2Tuple_BestBlockOutputSweeperZ_new(a, b); return nativeResponseValue; } - // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res); + // void C2Tuple_BestBlockOutputSweeperZ_free(struct LDKC2Tuple_BestBlockOutputSweeperZ _res); /* @internal */ -export function CResult_PrivateRouteCreationErrorZ_free(_res: bigint): void { +export function C2Tuple_BestBlockOutputSweeperZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_free(_res); + const nativeResponseValue = wasm.TS_C2Tuple_BestBlockOutputSweeperZ_free(_res); // debug statements here } - // uint64_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg); + // struct LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_ok(struct LDKC2Tuple_BestBlockOutputSweeperZ o); /* @internal */ -export function CResult_PrivateRouteCreationErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig); + // struct LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_PrivateRouteCreationErrorZ_clone(orig: bigint): bigint { +export function CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_err(e); return nativeResponseValue; } - // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o); + // bool CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_OutPointDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e); + // void CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ _res); /* @internal */ -export function CResult_OutPointDecodeErrorZ_err(e: bigint): bigint { +export function CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ_free(_res); + // debug statements here +} + // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_ok(struct LDKDelayedPaymentBasepoint o); +/* @internal */ +export function CResult_DelayedPaymentBasepointDecodeErrorZ_ok(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_ok(o); return nativeResponseValue; } - // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o); + // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_OutPointDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_DelayedPaymentBasepointDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_err(e); return nativeResponseValue; } - // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res); + // bool CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_OutPointDecodeErrorZ_free(_res: bigint): void { +export function CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(o); + return nativeResponseValue; +} + // void CResult_DelayedPaymentBasepointDecodeErrorZ_free(struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ _res); +/* @internal */ +export function CResult_DelayedPaymentBasepointDecodeErrorZ_free(_res: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_OutPointDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_OutPointDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_DelayedPaymentBasepointDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_ok(struct LDKBigSize o); + // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_ok(struct LDKDelayedPaymentKey o); /* @internal */ -export function CResult_BigSizeDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_DelayedPaymentKeyDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BigSizeDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_BigSizeDecodeErrorZ_err(e: bigint): bigint { +export function CResult_DelayedPaymentKeyDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BigSizeDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_BigSizeDecodeErrorZ_is_ok(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR o); + // bool CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_BigSizeDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BigSizeDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_BigSizeDecodeErrorZ_free(struct LDKCResult_BigSizeDecodeErrorZ _res); + // void CResult_DelayedPaymentKeyDecodeErrorZ_free(struct LDKCResult_DelayedPaymentKeyDecodeErrorZ _res); /* @internal */ -export function CResult_BigSizeDecodeErrorZ_free(_res: bigint): void { +export function CResult_DelayedPaymentKeyDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BigSizeDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_BigSizeDecodeErrorZ_clone_ptr(LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_BigSizeDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BigSizeDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_BigSizeDecodeErrorZ CResult_BigSizeDecodeErrorZ_clone(const struct LDKCResult_BigSizeDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_BigSizeDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_DelayedPaymentKeyDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BigSizeDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_ok(struct LDKHostname o); + // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_ok(struct LDKHtlcBasepoint o); /* @internal */ -export function CResult_HostnameDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_HtlcBasepointDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HostnameDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_HostnameDecodeErrorZ_err(e: bigint): bigint { +export function CResult_HtlcBasepointDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HostnameDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_HostnameDecodeErrorZ_is_ok(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR o); + // bool CResult_HtlcBasepointDecodeErrorZ_is_ok(const struct LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_HostnameDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_HtlcBasepointDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HostnameDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_HostnameDecodeErrorZ_free(struct LDKCResult_HostnameDecodeErrorZ _res); + // void CResult_HtlcBasepointDecodeErrorZ_free(struct LDKCResult_HtlcBasepointDecodeErrorZ _res); /* @internal */ -export function CResult_HostnameDecodeErrorZ_free(_res: bigint): void { +export function CResult_HtlcBasepointDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HostnameDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_HostnameDecodeErrorZ_clone_ptr(LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_HtlcBasepointDecodeErrorZ_clone_ptr(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_HostnameDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_HtlcBasepointDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HostnameDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_HostnameDecodeErrorZ CResult_HostnameDecodeErrorZ_clone(const struct LDKCResult_HostnameDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_clone(const struct LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_HostnameDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_HtlcBasepointDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HostnameDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_ok(struct LDKTransactionU16LenLimited o); + // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_ok(struct LDKHtlcKey o); /* @internal */ -export function CResult_TransactionU16LenLimitedNoneZ_ok(o: bigint): bigint { +export function CResult_HtlcKeyDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedNoneZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_err(void); + // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_TransactionU16LenLimitedNoneZ_err(): bigint { +export function CResult_HtlcKeyDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedNoneZ_err(); + const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_TransactionU16LenLimitedNoneZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR o); + // bool CResult_HtlcKeyDecodeErrorZ_is_ok(const struct LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_TransactionU16LenLimitedNoneZ_is_ok(o: bigint): boolean { +export function CResult_HtlcKeyDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedNoneZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_TransactionU16LenLimitedNoneZ_free(struct LDKCResult_TransactionU16LenLimitedNoneZ _res); + // void CResult_HtlcKeyDecodeErrorZ_free(struct LDKCResult_HtlcKeyDecodeErrorZ _res); /* @internal */ -export function CResult_TransactionU16LenLimitedNoneZ_free(_res: bigint): void { +export function CResult_HtlcKeyDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedNoneZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_TransactionU16LenLimitedNoneZ_clone_ptr(LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR arg); + // uint64_t CResult_HtlcKeyDecodeErrorZ_clone_ptr(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_TransactionU16LenLimitedNoneZ_clone_ptr(arg: bigint): bigint { +export function CResult_HtlcKeyDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedNoneZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_TransactionU16LenLimitedNoneZ CResult_TransactionU16LenLimitedNoneZ_clone(const struct LDKCResult_TransactionU16LenLimitedNoneZ *NONNULL_PTR orig); + // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_clone(const struct LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_TransactionU16LenLimitedNoneZ_clone(orig: bigint): bigint { +export function CResult_HtlcKeyDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedNoneZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_ok(struct LDKTransactionU16LenLimited o); + // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_ok(struct LDKRevocationBasepoint o); /* @internal */ -export function CResult_TransactionU16LenLimitedDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_RevocationBasepointDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_TransactionU16LenLimitedDecodeErrorZ_err(e: bigint): bigint { +export function CResult_RevocationBasepointDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR o); + // bool CResult_RevocationBasepointDecodeErrorZ_is_ok(const struct LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_RevocationBasepointDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_TransactionU16LenLimitedDecodeErrorZ_free(struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ _res); + // void CResult_RevocationBasepointDecodeErrorZ_free(struct LDKCResult_RevocationBasepointDecodeErrorZ _res); /* @internal */ -export function CResult_TransactionU16LenLimitedDecodeErrorZ_free(_res: bigint): void { +export function CResult_RevocationBasepointDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_RevocationBasepointDecodeErrorZ_clone_ptr(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_RevocationBasepointDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ CResult_TransactionU16LenLimitedDecodeErrorZ_clone(const struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_clone(const struct LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_TransactionU16LenLimitedDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_RevocationBasepointDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TransactionU16LenLimitedDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_clone(orig); return nativeResponseValue; } - // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_ok(struct LDKUntrustedString o); + // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_ok(struct LDKRevocationKey o); /* @internal */ -export function CResult_UntrustedStringDecodeErrorZ_ok(o: bigint): bigint { +export function CResult_RevocationKeyDecodeErrorZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_ok(o); return nativeResponseValue; } - // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_err(struct LDKDecodeError e); /* @internal */ -export function CResult_UntrustedStringDecodeErrorZ_err(e: bigint): bigint { +export function CResult_RevocationKeyDecodeErrorZ_err(e: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_err(e); return nativeResponseValue; } - // bool CResult_UntrustedStringDecodeErrorZ_is_ok(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR o); + // bool CResult_RevocationKeyDecodeErrorZ_is_ok(const struct LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR o); /* @internal */ -export function CResult_UntrustedStringDecodeErrorZ_is_ok(o: bigint): boolean { +export function CResult_RevocationKeyDecodeErrorZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_is_ok(o); return nativeResponseValue; } - // void CResult_UntrustedStringDecodeErrorZ_free(struct LDKCResult_UntrustedStringDecodeErrorZ _res); + // void CResult_RevocationKeyDecodeErrorZ_free(struct LDKCResult_RevocationKeyDecodeErrorZ _res); /* @internal */ -export function CResult_UntrustedStringDecodeErrorZ_free(_res: bigint): void { +export function CResult_RevocationKeyDecodeErrorZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_free(_res); // debug statements here } - // uint64_t CResult_UntrustedStringDecodeErrorZ_clone_ptr(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR arg); + // uint64_t CResult_RevocationKeyDecodeErrorZ_clone_ptr(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR arg); /* @internal */ -export function CResult_UntrustedStringDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CResult_RevocationKeyDecodeErrorZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_clone(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_clone(const struct LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR orig); /* @internal */ -export function CResult_UntrustedStringDecodeErrorZ_clone(orig: bigint): bigint { +export function CResult_RevocationKeyDecodeErrorZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_clone(orig); return nativeResponseValue; } - // uint64_t C2Tuple__u832u16Z_clone_ptr(LDKC2Tuple__u832u16Z *NONNULL_PTR arg); + // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o); /* @internal */ -export function C2Tuple__u832u16Z_clone_ptr(arg: bigint): bigint { +export function CResult_LockedChannelMonitorNoneZ_ok(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple__u832u16Z_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_ok(o); return nativeResponseValue; } - // struct LDKC2Tuple__u832u16Z C2Tuple__u832u16Z_clone(const struct LDKC2Tuple__u832u16Z *NONNULL_PTR orig); + // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void); /* @internal */ -export function C2Tuple__u832u16Z_clone(orig: bigint): bigint { +export function CResult_LockedChannelMonitorNoneZ_err(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple__u832u16Z_clone(orig); + const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_err(); return nativeResponseValue; } - // struct LDKC2Tuple__u832u16Z C2Tuple__u832u16Z_new(struct LDKThirtyTwoBytes a, uint16_t b); + // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o); /* @internal */ -export function C2Tuple__u832u16Z_new(a: number, b: number): bigint { +export function CResult_LockedChannelMonitorNoneZ_is_ok(o: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple__u832u16Z_new(a, b); + const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_is_ok(o); return nativeResponseValue; } - // void C2Tuple__u832u16Z_free(struct LDKC2Tuple__u832u16Z _res); + // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res); /* @internal */ -export function C2Tuple__u832u16Z_free(_res: bigint): void { +export function CResult_LockedChannelMonitorNoneZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple__u832u16Z_free(_res); + const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_free(_res); // debug statements here } - // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_ok(struct LDKPaymentRelay o); + // uint64_t C2Tuple_OutPointChannelIdZ_clone_ptr(LDKC2Tuple_OutPointChannelIdZ *NONNULL_PTR arg); /* @internal */ -export function CResult_PaymentRelayDecodeErrorZ_ok(o: bigint): bigint { +export function C2Tuple_OutPointChannelIdZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentRelayDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_C2Tuple_OutPointChannelIdZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKC2Tuple_OutPointChannelIdZ C2Tuple_OutPointChannelIdZ_clone(const struct LDKC2Tuple_OutPointChannelIdZ *NONNULL_PTR orig); /* @internal */ -export function CResult_PaymentRelayDecodeErrorZ_err(e: bigint): bigint { +export function C2Tuple_OutPointChannelIdZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentRelayDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_C2Tuple_OutPointChannelIdZ_clone(orig); return nativeResponseValue; } - // bool CResult_PaymentRelayDecodeErrorZ_is_ok(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR o); + // struct LDKC2Tuple_OutPointChannelIdZ C2Tuple_OutPointChannelIdZ_new(struct LDKOutPoint a, struct LDKChannelId b); /* @internal */ -export function CResult_PaymentRelayDecodeErrorZ_is_ok(o: bigint): boolean { +export function C2Tuple_OutPointChannelIdZ_new(a: bigint, b: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentRelayDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_C2Tuple_OutPointChannelIdZ_new(a, b); return nativeResponseValue; } - // void CResult_PaymentRelayDecodeErrorZ_free(struct LDKCResult_PaymentRelayDecodeErrorZ _res); + // void C2Tuple_OutPointChannelIdZ_free(struct LDKC2Tuple_OutPointChannelIdZ _res); /* @internal */ -export function CResult_PaymentRelayDecodeErrorZ_free(_res: bigint): void { +export function C2Tuple_OutPointChannelIdZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentRelayDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_C2Tuple_OutPointChannelIdZ_free(_res); // debug statements here } - // uint64_t CResult_PaymentRelayDecodeErrorZ_clone_ptr(LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR arg); + // void CVec_C2Tuple_OutPointChannelIdZZ_free(struct LDKCVec_C2Tuple_OutPointChannelIdZZ _res); /* @internal */ -export function CResult_PaymentRelayDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CVec_C2Tuple_OutPointChannelIdZZ_free(_res: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentRelayDecodeErrorZ_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CVec_C2Tuple_OutPointChannelIdZZ_free(_res); + // debug statements here } - // struct LDKCResult_PaymentRelayDecodeErrorZ CResult_PaymentRelayDecodeErrorZ_clone(const struct LDKCResult_PaymentRelayDecodeErrorZ *NONNULL_PTR orig); + // void CVec_MonitorUpdateIdZ_free(struct LDKCVec_MonitorUpdateIdZ _res); /* @internal */ -export function CResult_PaymentRelayDecodeErrorZ_clone(orig: bigint): bigint { +export function CVec_MonitorUpdateIdZ_free(_res: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentRelayDecodeErrorZ_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CVec_MonitorUpdateIdZ_free(_res); + // debug statements here } - // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_ok(struct LDKPaymentConstraints o); + // uint64_t C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR arg); /* @internal */ -export function CResult_PaymentConstraintsDecodeErrorZ_ok(o: bigint): bigint { +export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR orig); /* @internal */ -export function CResult_PaymentConstraintsDecodeErrorZ_err(e: bigint): bigint { +export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(orig); return nativeResponseValue; } - // bool CResult_PaymentConstraintsDecodeErrorZ_is_ok(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR o); + // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorUpdateIdZ b); /* @internal */ -export function CResult_PaymentConstraintsDecodeErrorZ_is_ok(o: bigint): boolean { +export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(a: bigint, b: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(a, b); return nativeResponseValue; } - // void CResult_PaymentConstraintsDecodeErrorZ_free(struct LDKCResult_PaymentConstraintsDecodeErrorZ _res); + // void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ _res); /* @internal */ -export function CResult_PaymentConstraintsDecodeErrorZ_free(_res: bigint): void { +export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(_res: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(_res); // debug statements here } - // uint64_t CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR arg); + // void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ _res); /* @internal */ -export function CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(_res: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(_res); + // debug statements here } - // struct LDKCResult_PaymentConstraintsDecodeErrorZ CResult_PaymentConstraintsDecodeErrorZ_clone(const struct LDKCResult_PaymentConstraintsDecodeErrorZ *NONNULL_PTR orig); + // void APIError_free(struct LDKAPIError this_ptr); /* @internal */ -export function CResult_PaymentConstraintsDecodeErrorZ_clone(orig: bigint): bigint { +export function APIError_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PaymentConstraintsDecodeErrorZ_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_APIError_free(this_ptr); + // debug statements here } - // uint64_t C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR arg); + // uint64_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg); /* @internal */ -export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(arg: bigint): bigint { +export function APIError_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_APIError_clone_ptr(arg); return nativeResponseValue; } - // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(const struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ *NONNULL_PTR orig); + // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig); /* @internal */ -export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(orig: bigint): bigint { +export function APIError_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_clone(orig); + const nativeResponseValue = wasm.TS_APIError_clone(orig); return nativeResponseValue; } - // struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(struct LDKThirtyTwoBytes a, struct LDKRecipientOnionFields b, struct LDKRouteParameters c); + // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err); /* @internal */ -export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(a: number, b: bigint, c: bigint): bigint { +export function APIError_apimisuse_error(err: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_new(a, b, c); + const nativeResponseValue = wasm.TS_APIError_apimisuse_error(err); return nativeResponseValue; } - // void C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ _res); + // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate); /* @internal */ -export function C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(_res: bigint): void { +export function APIError_fee_rate_too_high(err: number, feerate: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_APIError_fee_rate_too_high(err, feerate); + return nativeResponseValue; } - // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(struct LDKC3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZ o); + // struct LDKAPIError APIError_invalid_route(struct LDKStr err); /* @internal */ -export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(o: bigint): bigint { +export function APIError_invalid_route(err: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_ok(o); + const nativeResponseValue = wasm.TS_APIError_invalid_route(err); return nativeResponseValue; } - // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err(void); + // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err); /* @internal */ -export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err(): bigint { +export function APIError_channel_unavailable(err: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_err(); + const nativeResponseValue = wasm.TS_APIError_channel_unavailable(err); return nativeResponseValue; } - // bool CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(const struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR o); + // struct LDKAPIError APIError_monitor_update_in_progress(void); /* @internal */ -export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(o: bigint): boolean { +export function APIError_monitor_update_in_progress(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_is_ok(o); + const nativeResponseValue = wasm.TS_APIError_monitor_update_in_progress(); return nativeResponseValue; } - // void CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ _res); + // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script); /* @internal */ -export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(_res: bigint): void { +export function APIError_incompatible_shutdown_script(script: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_APIError_incompatible_shutdown_script(script); + return nativeResponseValue; } - // uint64_t CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR arg); + // bool APIError_eq(const struct LDKAPIError *NONNULL_PTR a, const struct LDKAPIError *NONNULL_PTR b); /* @internal */ -export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(arg: bigint): bigint { +export function APIError_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_APIError_eq(a, b); return nativeResponseValue; } - // struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(const struct LDKCResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ *NONNULL_PTR orig); + // struct LDKCVec_u8Z APIError_write(const struct LDKAPIError *NONNULL_PTR obj); /* @internal */ -export function CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(orig: bigint): bigint { +export function APIError_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C3Tuple_ThirtyTwoBytesRecipientOnionFieldsRouteParametersZNoneZ_clone(orig); + const nativeResponseValue = wasm.TS_APIError_write(obj); return nativeResponseValue; } - // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_ok(struct LDKStr o); + // struct LDKCResult_COption_APIErrorZDecodeErrorZ APIError_read(struct LDKu8slice ser); /* @internal */ -export function CResult_StrSecp256k1ErrorZ_ok(o: number): bigint { +export function APIError_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_ok(o); + const nativeResponseValue = wasm.TS_APIError_read(ser); return nativeResponseValue; } - // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_err(enum LDKSecp256k1Error e); + // void BigSize_free(struct LDKBigSize this_obj); /* @internal */ -export function CResult_StrSecp256k1ErrorZ_err(e: Secp256k1Error): bigint { +export function BigSize_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_err(e); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_BigSize_free(this_obj); + // debug statements here } - // bool CResult_StrSecp256k1ErrorZ_is_ok(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR o); + // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr); /* @internal */ -export function CResult_StrSecp256k1ErrorZ_is_ok(o: bigint): boolean { +export function BigSize_get_a(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_BigSize_get_a(this_ptr); return nativeResponseValue; } - // void CResult_StrSecp256k1ErrorZ_free(struct LDKCResult_StrSecp256k1ErrorZ _res); + // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function CResult_StrSecp256k1ErrorZ_free(_res: bigint): void { +export function BigSize_set_a(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_free(_res); + const nativeResponseValue = wasm.TS_BigSize_set_a(this_ptr, val); // debug statements here } - // uint64_t CResult_StrSecp256k1ErrorZ_clone_ptr(LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR arg); + // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg); /* @internal */ -export function CResult_StrSecp256k1ErrorZ_clone_ptr(arg: bigint): bigint { +export function BigSize_new(a_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_BigSize_new(a_arg); return nativeResponseValue; } - // struct LDKCResult_StrSecp256k1ErrorZ CResult_StrSecp256k1ErrorZ_clone(const struct LDKCResult_StrSecp256k1ErrorZ *NONNULL_PTR orig); + // uint64_t BigSize_clone_ptr(LDKBigSize *NONNULL_PTR arg); /* @internal */ -export function CResult_StrSecp256k1ErrorZ_clone(orig: bigint): bigint { +export function BigSize_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_StrSecp256k1ErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_BigSize_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_ok(struct LDKTxOut o); + // struct LDKBigSize BigSize_clone(const struct LDKBigSize *NONNULL_PTR orig); /* @internal */ -export function CResult_TxOutUtxoLookupErrorZ_ok(o: bigint): bigint { +export function BigSize_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_ok(o); + const nativeResponseValue = wasm.TS_BigSize_clone(orig); return nativeResponseValue; } - // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_err(enum LDKUtxoLookupError e); + // uint64_t BigSize_hash(const struct LDKBigSize *NONNULL_PTR o); /* @internal */ -export function CResult_TxOutUtxoLookupErrorZ_err(e: UtxoLookupError): bigint { +export function BigSize_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_err(e); + const nativeResponseValue = wasm.TS_BigSize_hash(o); return nativeResponseValue; } - // bool CResult_TxOutUtxoLookupErrorZ_is_ok(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR o); + // bool BigSize_eq(const struct LDKBigSize *NONNULL_PTR a, const struct LDKBigSize *NONNULL_PTR b); /* @internal */ -export function CResult_TxOutUtxoLookupErrorZ_is_ok(o: bigint): boolean { +export function BigSize_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_BigSize_eq(a, b); return nativeResponseValue; } - // void CResult_TxOutUtxoLookupErrorZ_free(struct LDKCResult_TxOutUtxoLookupErrorZ _res); + // struct LDKCVec_u8Z BigSize_write(const struct LDKBigSize *NONNULL_PTR obj); /* @internal */ -export function CResult_TxOutUtxoLookupErrorZ_free(_res: bigint): void { +export function BigSize_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_BigSize_write(obj); + return nativeResponseValue; } - // uint64_t CResult_TxOutUtxoLookupErrorZ_clone_ptr(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR arg); + // struct LDKCResult_BigSizeDecodeErrorZ BigSize_read(struct LDKu8slice ser); /* @internal */ -export function CResult_TxOutUtxoLookupErrorZ_clone_ptr(arg: bigint): bigint { +export function BigSize_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_BigSize_read(ser); return nativeResponseValue; } - // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_clone(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR orig); + // void Hostname_free(struct LDKHostname this_obj); /* @internal */ -export function CResult_TxOutUtxoLookupErrorZ_clone(orig: bigint): bigint { +export function Hostname_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_Hostname_free(this_obj); + // debug statements here +} + // uint64_t Hostname_clone_ptr(LDKHostname *NONNULL_PTR arg); +/* @internal */ +export function Hostname_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Hostname_clone_ptr(arg); return nativeResponseValue; } - // uint64_t C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR arg); + // struct LDKHostname Hostname_clone(const struct LDKHostname *NONNULL_PTR orig); /* @internal */ -export function C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(arg: bigint): bigint { +export function Hostname_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_Hostname_clone(orig); return nativeResponseValue; } - // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(const struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ *NONNULL_PTR orig); + // uint64_t Hostname_hash(const struct LDKHostname *NONNULL_PTR o); /* @internal */ -export function C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(orig: bigint): bigint { +export function Hostname_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_clone(orig); + const nativeResponseValue = wasm.TS_Hostname_hash(o); return nativeResponseValue; } - // struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(struct LDKPublicKey a, struct LDKOnionMessage b, struct LDKCOption_CVec_SocketAddressZZ c); + // bool Hostname_eq(const struct LDKHostname *NONNULL_PTR a, const struct LDKHostname *NONNULL_PTR b); /* @internal */ -export function C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(a: number, b: bigint, c: bigint): bigint { +export function Hostname_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_new(a, b, c); + const nativeResponseValue = wasm.TS_Hostname_eq(a, b); return nativeResponseValue; } - // void C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ _res); + // MUST_USE_RES uint8_t Hostname_len(const struct LDKHostname *NONNULL_PTR this_arg); /* @internal */ -export function C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(_res: bigint): void { +export function Hostname_len(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_Hostname_len(this_arg); + return nativeResponseValue; } - // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(struct LDKC3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZ o); + // struct LDKStr Hostname_to_str(const struct LDKHostname *NONNULL_PTR o); /* @internal */ -export function CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(o: bigint): bigint { +export function Hostname_to_str(o: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_ok(o); + const nativeResponseValue = wasm.TS_Hostname_to_str(o); return nativeResponseValue; } - // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(struct LDKSendError e); + // struct LDKCVec_u8Z Hostname_write(const struct LDKHostname *NONNULL_PTR obj); /* @internal */ -export function CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(e: bigint): bigint { +export function Hostname_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_err(e); + const nativeResponseValue = wasm.TS_Hostname_write(obj); return nativeResponseValue; } - // bool CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(const struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ *NONNULL_PTR o); + // struct LDKCResult_HostnameDecodeErrorZ Hostname_read(struct LDKu8slice ser); /* @internal */ -export function CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(o: bigint): boolean { +export function Hostname_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_Hostname_read(ser); return nativeResponseValue; } - // void CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ _res); + // void TransactionU16LenLimited_free(struct LDKTransactionU16LenLimited this_obj); /* @internal */ -export function CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(_res: bigint): void { +export function TransactionU16LenLimited_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ_free(_res); + const nativeResponseValue = wasm.TS_TransactionU16LenLimited_free(this_obj); // debug statements here } - // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_ok(struct LDKPeeledOnion o); + // uint64_t TransactionU16LenLimited_clone_ptr(LDKTransactionU16LenLimited *NONNULL_PTR arg); /* @internal */ -export function CResult_PeeledOnionNoneZ_ok(o: bigint): bigint { +export function TransactionU16LenLimited_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PeeledOnionNoneZ_ok(o); + const nativeResponseValue = wasm.TS_TransactionU16LenLimited_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_PeeledOnionNoneZ CResult_PeeledOnionNoneZ_err(void); + // struct LDKTransactionU16LenLimited TransactionU16LenLimited_clone(const struct LDKTransactionU16LenLimited *NONNULL_PTR orig); /* @internal */ -export function CResult_PeeledOnionNoneZ_err(): bigint { +export function TransactionU16LenLimited_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PeeledOnionNoneZ_err(); + const nativeResponseValue = wasm.TS_TransactionU16LenLimited_clone(orig); return nativeResponseValue; } - // bool CResult_PeeledOnionNoneZ_is_ok(const struct LDKCResult_PeeledOnionNoneZ *NONNULL_PTR o); + // uint64_t TransactionU16LenLimited_hash(const struct LDKTransactionU16LenLimited *NONNULL_PTR o); /* @internal */ -export function CResult_PeeledOnionNoneZ_is_ok(o: bigint): boolean { +export function TransactionU16LenLimited_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PeeledOnionNoneZ_is_ok(o); + const nativeResponseValue = wasm.TS_TransactionU16LenLimited_hash(o); return nativeResponseValue; } - // void CResult_PeeledOnionNoneZ_free(struct LDKCResult_PeeledOnionNoneZ _res); + // bool TransactionU16LenLimited_eq(const struct LDKTransactionU16LenLimited *NONNULL_PTR a, const struct LDKTransactionU16LenLimited *NONNULL_PTR b); /* @internal */ -export function CResult_PeeledOnionNoneZ_free(_res: bigint): void { +export function TransactionU16LenLimited_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_PeeledOnionNoneZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_TransactionU16LenLimited_eq(a, b); + return nativeResponseValue; } - // struct LDKCResult_SendSuccessSendErrorZ CResult_SendSuccessSendErrorZ_ok(struct LDKSendSuccess o); + // MUST_USE_RES struct LDKCResult_TransactionU16LenLimitedNoneZ TransactionU16LenLimited_new(struct LDKTransaction transaction); /* @internal */ -export function CResult_SendSuccessSendErrorZ_ok(o: bigint): bigint { +export function TransactionU16LenLimited_new(transaction: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SendSuccessSendErrorZ_ok(o); + const nativeResponseValue = wasm.TS_TransactionU16LenLimited_new(transaction); return nativeResponseValue; } - // struct LDKCResult_SendSuccessSendErrorZ CResult_SendSuccessSendErrorZ_err(struct LDKSendError e); + // MUST_USE_RES struct LDKTransaction TransactionU16LenLimited_into_transaction(struct LDKTransactionU16LenLimited this_arg); /* @internal */ -export function CResult_SendSuccessSendErrorZ_err(e: bigint): bigint { +export function TransactionU16LenLimited_into_transaction(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SendSuccessSendErrorZ_err(e); + const nativeResponseValue = wasm.TS_TransactionU16LenLimited_into_transaction(this_arg); return nativeResponseValue; } - // bool CResult_SendSuccessSendErrorZ_is_ok(const struct LDKCResult_SendSuccessSendErrorZ *NONNULL_PTR o); + // MUST_USE_RES struct LDKTransaction TransactionU16LenLimited_as_transaction(const struct LDKTransactionU16LenLimited *NONNULL_PTR this_arg); /* @internal */ -export function CResult_SendSuccessSendErrorZ_is_ok(o: bigint): boolean { +export function TransactionU16LenLimited_as_transaction(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SendSuccessSendErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_TransactionU16LenLimited_as_transaction(this_arg); return nativeResponseValue; } - // void CResult_SendSuccessSendErrorZ_free(struct LDKCResult_SendSuccessSendErrorZ _res); + // struct LDKCVec_u8Z TransactionU16LenLimited_write(const struct LDKTransactionU16LenLimited *NONNULL_PTR obj); /* @internal */ -export function CResult_SendSuccessSendErrorZ_free(_res: bigint): void { +export function TransactionU16LenLimited_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_SendSuccessSendErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_TransactionU16LenLimited_write(obj); + return nativeResponseValue; } - // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_ok(struct LDKBlindedPath o); + // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ TransactionU16LenLimited_read(struct LDKu8slice ser); /* @internal */ -export function CResult_BlindedPathNoneZ_ok(o: bigint): bigint { +export function TransactionU16LenLimited_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_ok(o); + const nativeResponseValue = wasm.TS_TransactionU16LenLimited_read(ser); return nativeResponseValue; } - // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_err(void); + // struct LDKCResult_StrSecp256k1ErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]); /* @internal */ -export function CResult_BlindedPathNoneZ_err(): bigint { +export function sign(msg: number, sk: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_err(); + const nativeResponseValue = wasm.TS_sign(msg, sk); return nativeResponseValue; } - // bool CResult_BlindedPathNoneZ_is_ok(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR o); + // struct LDKCResult_PublicKeySecp256k1ErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig); /* @internal */ -export function CResult_BlindedPathNoneZ_is_ok(o: bigint): boolean { +export function recover_pk(msg: number, sig: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_is_ok(o); + const nativeResponseValue = wasm.TS_recover_pk(msg, sig); return nativeResponseValue; } - // void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res); + // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk); /* @internal */ -export function CResult_BlindedPathNoneZ_free(_res: bigint): void { +export function verify(msg: number, sig: number, pk: number): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_verify(msg, sig, pk); + return nativeResponseValue; } - // uint64_t CResult_BlindedPathNoneZ_clone_ptr(LDKCResult_BlindedPathNoneZ *NONNULL_PTR arg); + // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature); /* @internal */ -export function CResult_BlindedPathNoneZ_clone_ptr(arg: bigint): bigint { +export function construct_invoice_preimage(hrp_bytes: number, data_without_signature: number): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_construct_invoice_preimage(hrp_bytes, data_without_signature); return nativeResponseValue; } - // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig); + // void KVStore_free(struct LDKKVStore this_ptr); /* @internal */ -export function CResult_BlindedPathNoneZ_clone(orig: bigint): bigint { +export function KVStore_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_KVStore_free(this_ptr); + // debug statements here } - // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ o); + // void Persister_free(struct LDKPersister this_ptr); /* @internal */ -export function CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(o: bigint): bigint { +export function Persister_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_ok(o); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_Persister_free(this_ptr); + // debug statements here } - // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(void); + // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_channel_monitors(struct LDKKVStore kv_store, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider); /* @internal */ -export function CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(): bigint { +export function read_channel_monitors(kv_store: bigint, entropy_source: bigint, signer_provider: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_err(); + const nativeResponseValue = wasm.TS_read_channel_monitors(kv_store, entropy_source, signer_provider); return nativeResponseValue; } - // bool CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR o); + // void MonitorUpdatingPersister_free(struct LDKMonitorUpdatingPersister this_obj); /* @internal */ -export function CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(o: bigint): boolean { +export function MonitorUpdatingPersister_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_is_ok(o); + const nativeResponseValue = wasm.TS_MonitorUpdatingPersister_free(this_obj); + // debug statements here +} + // MUST_USE_RES struct LDKMonitorUpdatingPersister MonitorUpdatingPersister_new(struct LDKKVStore kv_store, struct LDKLogger logger, uint64_t maximum_pending_updates, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider); +/* @internal */ +export function MonitorUpdatingPersister_new(kv_store: bigint, logger: bigint, maximum_pending_updates: bigint, entropy_source: bigint, signer_provider: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_MonitorUpdatingPersister_new(kv_store, logger, maximum_pending_updates, entropy_source, signer_provider); return nativeResponseValue; } - // void CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ _res); + // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ MonitorUpdatingPersister_read_all_channel_monitors_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator); /* @internal */ -export function CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(_res: bigint): void { +export function MonitorUpdatingPersister_read_all_channel_monitors_with_updates(this_arg: bigint, broadcaster: bigint, fee_estimator: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_MonitorUpdatingPersister_read_all_channel_monitors_with_updates(this_arg, broadcaster, fee_estimator); + return nativeResponseValue; } - // uint64_t CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR arg); + // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ MonitorUpdatingPersister_read_channel_monitor_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, struct LDKStr monitor_key); /* @internal */ -export function CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(arg: bigint): bigint { +export function MonitorUpdatingPersister_read_channel_monitor_with_updates(this_arg: bigint, broadcaster: bigint, fee_estimator: bigint, monitor_key: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_MonitorUpdatingPersister_read_channel_monitor_with_updates(this_arg, broadcaster, fee_estimator, monitor_key); return nativeResponseValue; } - // struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(const struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ *NONNULL_PTR orig); + // MUST_USE_RES struct LDKCResult_NoneIOErrorZ MonitorUpdatingPersister_cleanup_stale_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, bool lazy); /* @internal */ -export function CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(orig: bigint): bigint { +export function MonitorUpdatingPersister_cleanup_stale_updates(this_arg: bigint, lazy: boolean): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ_clone(orig); + const nativeResponseValue = wasm.TS_MonitorUpdatingPersister_cleanup_stale_updates(this_arg, lazy); return nativeResponseValue; } - // void CVec_ForwardNodeZ_free(struct LDKCVec_ForwardNodeZ _res); + // struct LDKPersist MonitorUpdatingPersister_as_Persist(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg); /* @internal */ -export function CVec_ForwardNodeZ_free(_res: number): void { +export function MonitorUpdatingPersister_as_Persist(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CVec_ForwardNodeZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_MonitorUpdatingPersister_as_Persist(this_arg); + return nativeResponseValue; } - // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_ok(struct LDKBlindedPath o); + // enum LDKShortChannelIdError ShortChannelIdError_clone(const enum LDKShortChannelIdError *NONNULL_PTR orig); /* @internal */ -export function CResult_BlindedPathDecodeErrorZ_ok(o: bigint): bigint { +export function ShortChannelIdError_clone(orig: bigint): ShortChannelIdError { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_ShortChannelIdError_clone(orig); return nativeResponseValue; } - // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_err(struct LDKDecodeError e); + // enum LDKShortChannelIdError ShortChannelIdError_block_overflow(void); /* @internal */ -export function CResult_BlindedPathDecodeErrorZ_err(e: bigint): bigint { +export function ShortChannelIdError_block_overflow(): ShortChannelIdError { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_ShortChannelIdError_block_overflow(); return nativeResponseValue; } - // bool CResult_BlindedPathDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR o); + // enum LDKShortChannelIdError ShortChannelIdError_tx_index_overflow(void); /* @internal */ -export function CResult_BlindedPathDecodeErrorZ_is_ok(o: bigint): boolean { +export function ShortChannelIdError_tx_index_overflow(): ShortChannelIdError { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_ShortChannelIdError_tx_index_overflow(); return nativeResponseValue; } - // void CResult_BlindedPathDecodeErrorZ_free(struct LDKCResult_BlindedPathDecodeErrorZ _res); + // enum LDKShortChannelIdError ShortChannelIdError_vout_index_overflow(void); /* @internal */ -export function CResult_BlindedPathDecodeErrorZ_free(_res: bigint): void { +export function ShortChannelIdError_vout_index_overflow(): ShortChannelIdError { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_ShortChannelIdError_vout_index_overflow(); + return nativeResponseValue; } - // uint64_t CResult_BlindedPathDecodeErrorZ_clone_ptr(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR arg); + // bool ShortChannelIdError_eq(const enum LDKShortChannelIdError *NONNULL_PTR a, const enum LDKShortChannelIdError *NONNULL_PTR b); /* @internal */ -export function CResult_BlindedPathDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function ShortChannelIdError_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ShortChannelIdError_eq(a, b); return nativeResponseValue; } - // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_clone(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR orig); + // uint32_t block_from_scid(uint64_t short_channel_id); /* @internal */ -export function CResult_BlindedPathDecodeErrorZ_clone(orig: bigint): bigint { +export function block_from_scid(short_channel_id: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_block_from_scid(short_channel_id); return nativeResponseValue; } - // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_ok(struct LDKBlindedHop o); + // uint32_t tx_index_from_scid(uint64_t short_channel_id); /* @internal */ -export function CResult_BlindedHopDecodeErrorZ_ok(o: bigint): bigint { +export function tx_index_from_scid(short_channel_id: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_tx_index_from_scid(short_channel_id); return nativeResponseValue; } - // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_err(struct LDKDecodeError e); + // uint16_t vout_from_scid(uint64_t short_channel_id); /* @internal */ -export function CResult_BlindedHopDecodeErrorZ_err(e: bigint): bigint { +export function vout_from_scid(short_channel_id: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_vout_from_scid(short_channel_id); return nativeResponseValue; } - // bool CResult_BlindedHopDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR o); + // struct LDKCResult_u64ShortChannelIdErrorZ scid_from_parts(uint64_t block, uint64_t tx_index, uint64_t vout_index); /* @internal */ -export function CResult_BlindedHopDecodeErrorZ_is_ok(o: bigint): boolean { +export function scid_from_parts(block: bigint, tx_index: bigint, vout_index: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_scid_from_parts(block, tx_index, vout_index); return nativeResponseValue; } - // void CResult_BlindedHopDecodeErrorZ_free(struct LDKCResult_BlindedHopDecodeErrorZ _res); + // void UntrustedString_free(struct LDKUntrustedString this_obj); /* @internal */ -export function CResult_BlindedHopDecodeErrorZ_free(_res: bigint): void { +export function UntrustedString_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_UntrustedString_free(this_obj); // debug statements here } - // uint64_t CResult_BlindedHopDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR arg); + // struct LDKStr UntrustedString_get_a(const struct LDKUntrustedString *NONNULL_PTR this_ptr); /* @internal */ -export function CResult_BlindedHopDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function UntrustedString_get_a(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_UntrustedString_get_a(this_ptr); return nativeResponseValue; } - // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_clone(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR orig); + // void UntrustedString_set_a(struct LDKUntrustedString *NONNULL_PTR this_ptr, struct LDKStr val); /* @internal */ -export function CResult_BlindedHopDecodeErrorZ_clone(orig: bigint): bigint { +export function UntrustedString_set_a(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_UntrustedString_set_a(this_ptr, val); + // debug statements here } - // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_ok(struct LDKInvoiceError o); + // MUST_USE_RES struct LDKUntrustedString UntrustedString_new(struct LDKStr a_arg); /* @internal */ -export function CResult_InvoiceErrorDecodeErrorZ_ok(o: bigint): bigint { +export function UntrustedString_new(a_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_UntrustedString_new(a_arg); return nativeResponseValue; } - // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_err(struct LDKDecodeError e); + // uint64_t UntrustedString_clone_ptr(LDKUntrustedString *NONNULL_PTR arg); /* @internal */ -export function CResult_InvoiceErrorDecodeErrorZ_err(e: bigint): bigint { +export function UntrustedString_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_UntrustedString_clone_ptr(arg); return nativeResponseValue; } - // bool CResult_InvoiceErrorDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR o); + // struct LDKUntrustedString UntrustedString_clone(const struct LDKUntrustedString *NONNULL_PTR orig); /* @internal */ -export function CResult_InvoiceErrorDecodeErrorZ_is_ok(o: bigint): boolean { +export function UntrustedString_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_UntrustedString_clone(orig); return nativeResponseValue; } - // void CResult_InvoiceErrorDecodeErrorZ_free(struct LDKCResult_InvoiceErrorDecodeErrorZ _res); + // bool UntrustedString_eq(const struct LDKUntrustedString *NONNULL_PTR a, const struct LDKUntrustedString *NONNULL_PTR b); /* @internal */ -export function CResult_InvoiceErrorDecodeErrorZ_free(_res: bigint): void { +export function UntrustedString_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_UntrustedString_eq(a, b); + return nativeResponseValue; } - // uint64_t CResult_InvoiceErrorDecodeErrorZ_clone_ptr(LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR arg); + // uint64_t UntrustedString_hash(const struct LDKUntrustedString *NONNULL_PTR o); /* @internal */ -export function CResult_InvoiceErrorDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function UntrustedString_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_UntrustedString_hash(o); return nativeResponseValue; } - // struct LDKCResult_InvoiceErrorDecodeErrorZ CResult_InvoiceErrorDecodeErrorZ_clone(const struct LDKCResult_InvoiceErrorDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCVec_u8Z UntrustedString_write(const struct LDKUntrustedString *NONNULL_PTR obj); /* @internal */ -export function CResult_InvoiceErrorDecodeErrorZ_clone(orig: bigint): bigint { +export function UntrustedString_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_InvoiceErrorDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_UntrustedString_write(obj); return nativeResponseValue; } - // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_ok(struct LDKDelayedPaymentBasepoint o); + // struct LDKCResult_UntrustedStringDecodeErrorZ UntrustedString_read(struct LDKu8slice ser); /* @internal */ -export function CResult_DelayedPaymentBasepointDecodeErrorZ_ok(o: bigint): bigint { +export function UntrustedString_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_UntrustedString_read(ser); return nativeResponseValue; } - // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKStr UntrustedString_to_str(const struct LDKUntrustedString *NONNULL_PTR o); /* @internal */ -export function CResult_DelayedPaymentBasepointDecodeErrorZ_err(e: bigint): bigint { +export function UntrustedString_to_str(o: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_UntrustedString_to_str(o); return nativeResponseValue; } - // bool CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR o); + // void PrintableString_free(struct LDKPrintableString this_obj); +/* @internal */ +export function PrintableString_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PrintableString_free(this_obj); + // debug statements here +} + // struct LDKStr PrintableString_get_a(const struct LDKPrintableString *NONNULL_PTR this_ptr); /* @internal */ -export function CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(o: bigint): boolean { +export function PrintableString_get_a(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_PrintableString_get_a(this_ptr); return nativeResponseValue; } - // void CResult_DelayedPaymentBasepointDecodeErrorZ_free(struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ _res); + // void PrintableString_set_a(struct LDKPrintableString *NONNULL_PTR this_ptr, struct LDKStr val); /* @internal */ -export function CResult_DelayedPaymentBasepointDecodeErrorZ_free(_res: bigint): void { +export function PrintableString_set_a(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_PrintableString_set_a(this_ptr, val); // debug statements here } - // uint64_t CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR arg); + // MUST_USE_RES struct LDKPrintableString PrintableString_new(struct LDKStr a_arg); /* @internal */ -export function CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function PrintableString_new(a_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_PrintableString_new(a_arg); return nativeResponseValue; } - // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ CResult_DelayedPaymentBasepointDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ *NONNULL_PTR orig); + // struct LDKStr PrintableString_to_str(const struct LDKPrintableString *NONNULL_PTR o); /* @internal */ -export function CResult_DelayedPaymentBasepointDecodeErrorZ_clone(orig: bigint): bigint { +export function PrintableString_to_str(o: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentBasepointDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_PrintableString_to_str(o); return nativeResponseValue; } - // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_ok(struct LDKDelayedPaymentKey o); + // void TrackedSpendableOutput_free(struct LDKTrackedSpendableOutput this_obj); /* @internal */ -export function CResult_DelayedPaymentKeyDecodeErrorZ_ok(o: bigint): bigint { +export function TrackedSpendableOutput_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_ok(o); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_free(this_obj); + // debug statements here } - // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_err(struct LDKDecodeError e); + // struct LDKSpendableOutputDescriptor TrackedSpendableOutput_get_descriptor(const struct LDKTrackedSpendableOutput *NONNULL_PTR this_ptr); /* @internal */ -export function CResult_DelayedPaymentKeyDecodeErrorZ_err(e: bigint): bigint { +export function TrackedSpendableOutput_get_descriptor(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_get_descriptor(this_ptr); return nativeResponseValue; } - // bool CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR o); + // void TrackedSpendableOutput_set_descriptor(struct LDKTrackedSpendableOutput *NONNULL_PTR this_ptr, struct LDKSpendableOutputDescriptor val); /* @internal */ -export function CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(o: bigint): boolean { +export function TrackedSpendableOutput_set_descriptor(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_set_descriptor(this_ptr, val); + // debug statements here +} + // struct LDKChannelId TrackedSpendableOutput_get_channel_id(const struct LDKTrackedSpendableOutput *NONNULL_PTR this_ptr); +/* @internal */ +export function TrackedSpendableOutput_get_channel_id(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_get_channel_id(this_ptr); return nativeResponseValue; } - // void CResult_DelayedPaymentKeyDecodeErrorZ_free(struct LDKCResult_DelayedPaymentKeyDecodeErrorZ _res); + // void TrackedSpendableOutput_set_channel_id(struct LDKTrackedSpendableOutput *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function CResult_DelayedPaymentKeyDecodeErrorZ_free(_res: bigint): void { +export function TrackedSpendableOutput_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_free(_res); + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_set_channel_id(this_ptr, val); // debug statements here } - // uint64_t CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR arg); + // struct LDKOutputSpendStatus TrackedSpendableOutput_get_status(const struct LDKTrackedSpendableOutput *NONNULL_PTR this_ptr); /* @internal */ -export function CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function TrackedSpendableOutput_get_status(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_get_status(this_ptr); return nativeResponseValue; } - // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ CResult_DelayedPaymentKeyDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentKeyDecodeErrorZ *NONNULL_PTR orig); + // void TrackedSpendableOutput_set_status(struct LDKTrackedSpendableOutput *NONNULL_PTR this_ptr, struct LDKOutputSpendStatus val); /* @internal */ -export function CResult_DelayedPaymentKeyDecodeErrorZ_clone(orig: bigint): bigint { +export function TrackedSpendableOutput_set_status(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_DelayedPaymentKeyDecodeErrorZ_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_set_status(this_ptr, val); + // debug statements here } - // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_ok(struct LDKHtlcBasepoint o); + // MUST_USE_RES struct LDKTrackedSpendableOutput TrackedSpendableOutput_new(struct LDKSpendableOutputDescriptor descriptor_arg, struct LDKChannelId channel_id_arg, struct LDKOutputSpendStatus status_arg); /* @internal */ -export function CResult_HtlcBasepointDecodeErrorZ_ok(o: bigint): bigint { +export function TrackedSpendableOutput_new(descriptor_arg: bigint, channel_id_arg: bigint, status_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_new(descriptor_arg, channel_id_arg, status_arg); return nativeResponseValue; } - // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_err(struct LDKDecodeError e); + // uint64_t TrackedSpendableOutput_clone_ptr(LDKTrackedSpendableOutput *NONNULL_PTR arg); /* @internal */ -export function CResult_HtlcBasepointDecodeErrorZ_err(e: bigint): bigint { +export function TrackedSpendableOutput_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_clone_ptr(arg); return nativeResponseValue; } - // bool CResult_HtlcBasepointDecodeErrorZ_is_ok(const struct LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR o); + // struct LDKTrackedSpendableOutput TrackedSpendableOutput_clone(const struct LDKTrackedSpendableOutput *NONNULL_PTR orig); /* @internal */ -export function CResult_HtlcBasepointDecodeErrorZ_is_ok(o: bigint): boolean { +export function TrackedSpendableOutput_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_clone(orig); return nativeResponseValue; } - // void CResult_HtlcBasepointDecodeErrorZ_free(struct LDKCResult_HtlcBasepointDecodeErrorZ _res); + // bool TrackedSpendableOutput_eq(const struct LDKTrackedSpendableOutput *NONNULL_PTR a, const struct LDKTrackedSpendableOutput *NONNULL_PTR b); /* @internal */ -export function CResult_HtlcBasepointDecodeErrorZ_free(_res: bigint): void { +export function TrackedSpendableOutput_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_eq(a, b); + return nativeResponseValue; } - // uint64_t CResult_HtlcBasepointDecodeErrorZ_clone_ptr(LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR arg); + // MUST_USE_RES bool TrackedSpendableOutput_is_spent_in(const struct LDKTrackedSpendableOutput *NONNULL_PTR this_arg, struct LDKTransaction tx); /* @internal */ -export function CResult_HtlcBasepointDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function TrackedSpendableOutput_is_spent_in(this_arg: bigint, tx: number): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_is_spent_in(this_arg, tx); return nativeResponseValue; } - // struct LDKCResult_HtlcBasepointDecodeErrorZ CResult_HtlcBasepointDecodeErrorZ_clone(const struct LDKCResult_HtlcBasepointDecodeErrorZ *NONNULL_PTR orig); + // struct LDKCVec_u8Z TrackedSpendableOutput_write(const struct LDKTrackedSpendableOutput *NONNULL_PTR obj); /* @internal */ -export function CResult_HtlcBasepointDecodeErrorZ_clone(orig: bigint): bigint { +export function TrackedSpendableOutput_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcBasepointDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_write(obj); return nativeResponseValue; } - // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_ok(struct LDKHtlcKey o); + // struct LDKCResult_TrackedSpendableOutputDecodeErrorZ TrackedSpendableOutput_read(struct LDKu8slice ser); /* @internal */ -export function CResult_HtlcKeyDecodeErrorZ_ok(o: bigint): bigint { +export function TrackedSpendableOutput_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_TrackedSpendableOutput_read(ser); return nativeResponseValue; } - // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_err(struct LDKDecodeError e); + // void OutputSpendStatus_free(struct LDKOutputSpendStatus this_ptr); /* @internal */ -export function CResult_HtlcKeyDecodeErrorZ_err(e: bigint): bigint { +export function OutputSpendStatus_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_err(e); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_OutputSpendStatus_free(this_ptr); + // debug statements here } - // bool CResult_HtlcKeyDecodeErrorZ_is_ok(const struct LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR o); + // uint64_t OutputSpendStatus_clone_ptr(LDKOutputSpendStatus *NONNULL_PTR arg); /* @internal */ -export function CResult_HtlcKeyDecodeErrorZ_is_ok(o: bigint): boolean { +export function OutputSpendStatus_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_OutputSpendStatus_clone_ptr(arg); return nativeResponseValue; } - // void CResult_HtlcKeyDecodeErrorZ_free(struct LDKCResult_HtlcKeyDecodeErrorZ _res); + // struct LDKOutputSpendStatus OutputSpendStatus_clone(const struct LDKOutputSpendStatus *NONNULL_PTR orig); /* @internal */ -export function CResult_HtlcKeyDecodeErrorZ_free(_res: bigint): void { +export function OutputSpendStatus_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_OutputSpendStatus_clone(orig); + return nativeResponseValue; } - // uint64_t CResult_HtlcKeyDecodeErrorZ_clone_ptr(LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR arg); + // struct LDKOutputSpendStatus OutputSpendStatus_pending_initial_broadcast(struct LDKCOption_u32Z delayed_until_height); /* @internal */ -export function CResult_HtlcKeyDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function OutputSpendStatus_pending_initial_broadcast(delayed_until_height: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_OutputSpendStatus_pending_initial_broadcast(delayed_until_height); return nativeResponseValue; } - // struct LDKCResult_HtlcKeyDecodeErrorZ CResult_HtlcKeyDecodeErrorZ_clone(const struct LDKCResult_HtlcKeyDecodeErrorZ *NONNULL_PTR orig); + // struct LDKOutputSpendStatus OutputSpendStatus_pending_first_confirmation(struct LDKThirtyTwoBytes first_broadcast_hash, uint32_t latest_broadcast_height, struct LDKTransaction latest_spending_tx); /* @internal */ -export function CResult_HtlcKeyDecodeErrorZ_clone(orig: bigint): bigint { +export function OutputSpendStatus_pending_first_confirmation(first_broadcast_hash: number, latest_broadcast_height: number, latest_spending_tx: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_HtlcKeyDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_OutputSpendStatus_pending_first_confirmation(first_broadcast_hash, latest_broadcast_height, latest_spending_tx); return nativeResponseValue; } - // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_ok(struct LDKRevocationBasepoint o); + // struct LDKOutputSpendStatus OutputSpendStatus_pending_threshold_confirmations(struct LDKThirtyTwoBytes first_broadcast_hash, uint32_t latest_broadcast_height, struct LDKTransaction latest_spending_tx, uint32_t confirmation_height, struct LDKThirtyTwoBytes confirmation_hash); /* @internal */ -export function CResult_RevocationBasepointDecodeErrorZ_ok(o: bigint): bigint { +export function OutputSpendStatus_pending_threshold_confirmations(first_broadcast_hash: number, latest_broadcast_height: number, latest_spending_tx: number, confirmation_height: number, confirmation_hash: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_OutputSpendStatus_pending_threshold_confirmations(first_broadcast_hash, latest_broadcast_height, latest_spending_tx, confirmation_height, confirmation_hash); return nativeResponseValue; } - // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_err(struct LDKDecodeError e); + // bool OutputSpendStatus_eq(const struct LDKOutputSpendStatus *NONNULL_PTR a, const struct LDKOutputSpendStatus *NONNULL_PTR b); /* @internal */ -export function CResult_RevocationBasepointDecodeErrorZ_err(e: bigint): bigint { +export function OutputSpendStatus_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_OutputSpendStatus_eq(a, b); return nativeResponseValue; } - // bool CResult_RevocationBasepointDecodeErrorZ_is_ok(const struct LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR o); + // struct LDKCVec_u8Z OutputSpendStatus_write(const struct LDKOutputSpendStatus *NONNULL_PTR obj); /* @internal */ -export function CResult_RevocationBasepointDecodeErrorZ_is_ok(o: bigint): boolean { +export function OutputSpendStatus_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_OutputSpendStatus_write(obj); return nativeResponseValue; } - // void CResult_RevocationBasepointDecodeErrorZ_free(struct LDKCResult_RevocationBasepointDecodeErrorZ _res); + // struct LDKCResult_OutputSpendStatusDecodeErrorZ OutputSpendStatus_read(struct LDKu8slice ser); /* @internal */ -export function CResult_RevocationBasepointDecodeErrorZ_free(_res: bigint): void { +export function OutputSpendStatus_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_OutputSpendStatus_read(ser); + return nativeResponseValue; } - // uint64_t CResult_RevocationBasepointDecodeErrorZ_clone_ptr(LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR arg); + // void OutputSweeper_free(struct LDKOutputSweeper this_obj); /* @internal */ -export function CResult_RevocationBasepointDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function OutputSweeper_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_OutputSweeper_free(this_obj); + // debug statements here } - // struct LDKCResult_RevocationBasepointDecodeErrorZ CResult_RevocationBasepointDecodeErrorZ_clone(const struct LDKCResult_RevocationBasepointDecodeErrorZ *NONNULL_PTR orig); + // MUST_USE_RES struct LDKOutputSweeper OutputSweeper_new(struct LDKBestBlock best_block, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKCOption_FilterZ chain_data_source, struct LDKOutputSpender output_spender, struct LDKChangeDestinationSource change_destination_source, struct LDKKVStore kv_store, struct LDKLogger logger); /* @internal */ -export function CResult_RevocationBasepointDecodeErrorZ_clone(orig: bigint): bigint { +export function OutputSweeper_new(best_block: bigint, broadcaster: bigint, fee_estimator: bigint, chain_data_source: bigint, output_spender: bigint, change_destination_source: bigint, kv_store: bigint, logger: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationBasepointDecodeErrorZ_clone(orig); + const nativeResponseValue = wasm.TS_OutputSweeper_new(best_block, broadcaster, fee_estimator, chain_data_source, output_spender, change_destination_source, kv_store, logger); return nativeResponseValue; } - // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_ok(struct LDKRevocationKey o); + // MUST_USE_RES struct LDKCResult_NoneNoneZ OutputSweeper_track_spendable_outputs(const struct LDKOutputSweeper *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ output_descriptors, struct LDKChannelId channel_id, bool exclude_static_outputs, struct LDKCOption_u32Z delay_until_height); /* @internal */ -export function CResult_RevocationKeyDecodeErrorZ_ok(o: bigint): bigint { +export function OutputSweeper_track_spendable_outputs(this_arg: bigint, output_descriptors: number, channel_id: bigint, exclude_static_outputs: boolean, delay_until_height: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_ok(o); + const nativeResponseValue = wasm.TS_OutputSweeper_track_spendable_outputs(this_arg, output_descriptors, channel_id, exclude_static_outputs, delay_until_height); return nativeResponseValue; } - // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_err(struct LDKDecodeError e); + // MUST_USE_RES struct LDKCVec_TrackedSpendableOutputZ OutputSweeper_tracked_spendable_outputs(const struct LDKOutputSweeper *NONNULL_PTR this_arg); /* @internal */ -export function CResult_RevocationKeyDecodeErrorZ_err(e: bigint): bigint { +export function OutputSweeper_tracked_spendable_outputs(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_err(e); + const nativeResponseValue = wasm.TS_OutputSweeper_tracked_spendable_outputs(this_arg); return nativeResponseValue; } - // bool CResult_RevocationKeyDecodeErrorZ_is_ok(const struct LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR o); + // MUST_USE_RES struct LDKBestBlock OutputSweeper_current_best_block(const struct LDKOutputSweeper *NONNULL_PTR this_arg); /* @internal */ -export function CResult_RevocationKeyDecodeErrorZ_is_ok(o: bigint): boolean { +export function OutputSweeper_current_best_block(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_is_ok(o); + const nativeResponseValue = wasm.TS_OutputSweeper_current_best_block(this_arg); return nativeResponseValue; } - // void CResult_RevocationKeyDecodeErrorZ_free(struct LDKCResult_RevocationKeyDecodeErrorZ _res); + // struct LDKListen OutputSweeper_as_Listen(const struct LDKOutputSweeper *NONNULL_PTR this_arg); /* @internal */ -export function CResult_RevocationKeyDecodeErrorZ_free(_res: bigint): void { +export function OutputSweeper_as_Listen(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_OutputSweeper_as_Listen(this_arg); + return nativeResponseValue; } - // uint64_t CResult_RevocationKeyDecodeErrorZ_clone_ptr(LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR arg); + // struct LDKConfirm OutputSweeper_as_Confirm(const struct LDKOutputSweeper *NONNULL_PTR this_arg); /* @internal */ -export function CResult_RevocationKeyDecodeErrorZ_clone_ptr(arg: bigint): bigint { +export function OutputSweeper_as_Confirm(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_OutputSweeper_as_Confirm(this_arg); return nativeResponseValue; } - // struct LDKCResult_RevocationKeyDecodeErrorZ CResult_RevocationKeyDecodeErrorZ_clone(const struct LDKCResult_RevocationKeyDecodeErrorZ *NONNULL_PTR orig); + // void SpendingDelay_free(struct LDKSpendingDelay this_ptr); /* @internal */ -export function CResult_RevocationKeyDecodeErrorZ_clone(orig: bigint): bigint { +export function SpendingDelay_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_RevocationKeyDecodeErrorZ_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_SpendingDelay_free(this_ptr); + // debug statements here } - // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o); + // uint64_t SpendingDelay_clone_ptr(LDKSpendingDelay *NONNULL_PTR arg); /* @internal */ -export function COption_FilterZ_some(o: bigint): bigint { +export function SpendingDelay_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_FilterZ_some(o); + const nativeResponseValue = wasm.TS_SpendingDelay_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCOption_FilterZ COption_FilterZ_none(void); + // struct LDKSpendingDelay SpendingDelay_clone(const struct LDKSpendingDelay *NONNULL_PTR orig); /* @internal */ -export function COption_FilterZ_none(): bigint { +export function SpendingDelay_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_FilterZ_none(); + const nativeResponseValue = wasm.TS_SpendingDelay_clone(orig); return nativeResponseValue; } - // void COption_FilterZ_free(struct LDKCOption_FilterZ _res); + // struct LDKSpendingDelay SpendingDelay_relative(uint32_t num_blocks); /* @internal */ -export function COption_FilterZ_free(_res: bigint): void { +export function SpendingDelay_relative(num_blocks: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_COption_FilterZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_SpendingDelay_relative(num_blocks); + return nativeResponseValue; } - // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o); + // struct LDKSpendingDelay SpendingDelay_absolute(uint32_t height); /* @internal */ -export function CResult_LockedChannelMonitorNoneZ_ok(o: bigint): bigint { +export function SpendingDelay_absolute(height: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_ok(o); + const nativeResponseValue = wasm.TS_SpendingDelay_absolute(height); return nativeResponseValue; } - // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void); + // struct LDKCResult_OutputSweeperDecodeErrorZ OutputSweeper_read(struct LDKu8slice ser, struct LDKBroadcasterInterface arg_a, struct LDKFeeEstimator arg_b, struct LDKCOption_FilterZ arg_c, struct LDKOutputSpender arg_d, struct LDKChangeDestinationSource arg_e, struct LDKKVStore arg_f, struct LDKLogger arg_g); /* @internal */ -export function CResult_LockedChannelMonitorNoneZ_err(): bigint { +export function OutputSweeper_read(ser: number, arg_a: bigint, arg_b: bigint, arg_c: bigint, arg_d: bigint, arg_e: bigint, arg_f: bigint, arg_g: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_err(); + const nativeResponseValue = wasm.TS_OutputSweeper_read(ser, arg_a, arg_b, arg_c, arg_d, arg_e, arg_f, arg_g); return nativeResponseValue; } - // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o); + // struct LDKCResult_C2Tuple_BestBlockOutputSweeperZDecodeErrorZ C2Tuple_BestBlockOutputSweeperZ_read(struct LDKu8slice ser, struct LDKBroadcasterInterface arg_a, struct LDKFeeEstimator arg_b, struct LDKCOption_FilterZ arg_c, struct LDKOutputSpender arg_d, struct LDKChangeDestinationSource arg_e, struct LDKKVStore arg_f, struct LDKLogger arg_g); /* @internal */ -export function CResult_LockedChannelMonitorNoneZ_is_ok(o: bigint): boolean { +export function C2Tuple_BestBlockOutputSweeperZ_read(ser: number, arg_a: bigint, arg_b: bigint, arg_c: bigint, arg_d: bigint, arg_e: bigint, arg_f: bigint, arg_g: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_is_ok(o); + const nativeResponseValue = wasm.TS_C2Tuple_BestBlockOutputSweeperZ_read(ser, arg_a, arg_b, arg_c, arg_d, arg_e, arg_f, arg_g); return nativeResponseValue; } - // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res); + // void FutureCallback_free(struct LDKFutureCallback this_ptr); /* @internal */ -export function CResult_LockedChannelMonitorNoneZ_free(_res: bigint): void { +export function FutureCallback_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_free(_res); + const nativeResponseValue = wasm.TS_FutureCallback_free(this_ptr); // debug statements here } - // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res); + // void Future_free(struct LDKFuture this_obj); /* @internal */ -export function CVec_OutPointZ_free(_res: number): void { +export function Future_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CVec_OutPointZ_free(_res); + const nativeResponseValue = wasm.TS_Future_free(this_obj); // debug statements here } - // void CVec_MonitorUpdateIdZ_free(struct LDKCVec_MonitorUpdateIdZ _res); + // void Future_register_callback_fn(const struct LDKFuture *NONNULL_PTR this_arg, struct LDKFutureCallback callback); /* @internal */ -export function CVec_MonitorUpdateIdZ_free(_res: number): void { +export function Future_register_callback_fn(this_arg: bigint, callback: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CVec_MonitorUpdateIdZ_free(_res); + const nativeResponseValue = wasm.TS_Future_register_callback_fn(this_arg, callback); // debug statements here } - // uint64_t C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR arg); + // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig); /* @internal */ -export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(arg: bigint): bigint { +export function Level_clone(orig: bigint): Level { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(arg); + const nativeResponseValue = wasm.TS_Level_clone(orig); return nativeResponseValue; } - // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR orig); + // enum LDKLevel Level_gossip(void); /* @internal */ -export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(orig: bigint): bigint { +export function Level_gossip(): Level { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(orig); + const nativeResponseValue = wasm.TS_Level_gossip(); return nativeResponseValue; } - // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorUpdateIdZ b); + // enum LDKLevel Level_trace(void); /* @internal */ -export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(a: bigint, b: number): bigint { +export function Level_trace(): Level { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(a, b); + const nativeResponseValue = wasm.TS_Level_trace(); return nativeResponseValue; } - // void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ _res); + // enum LDKLevel Level_debug(void); /* @internal */ -export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(_res: bigint): void { +export function Level_debug(): Level { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_Level_debug(); + return nativeResponseValue; } - // void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ _res); + // enum LDKLevel Level_info(void); /* @internal */ -export function CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(_res: number): void { +export function Level_info(): Level { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(_res); - // debug statements here + const nativeResponseValue = wasm.TS_Level_info(); + return nativeResponseValue; } - // void APIError_free(struct LDKAPIError this_ptr); + // enum LDKLevel Level_warn(void); /* @internal */ -export function APIError_free(this_ptr: bigint): void { +export function Level_warn(): Level { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_APIError_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_Level_warn(); + return nativeResponseValue; } - // uint64_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg); + // enum LDKLevel Level_error(void); /* @internal */ -export function APIError_clone_ptr(arg: bigint): bigint { +export function Level_error(): Level { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_APIError_clone_ptr(arg); + const nativeResponseValue = wasm.TS_Level_error(); return nativeResponseValue; } - // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig); + // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b); /* @internal */ -export function APIError_clone(orig: bigint): bigint { +export function Level_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_APIError_clone(orig); + const nativeResponseValue = wasm.TS_Level_eq(a, b); return nativeResponseValue; } - // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err); + // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o); /* @internal */ -export function APIError_apimisuse_error(err: number): bigint { +export function Level_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_APIError_apimisuse_error(err); + const nativeResponseValue = wasm.TS_Level_hash(o); return nativeResponseValue; } - // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate); + // struct LDKStr Level_to_str(const enum LDKLevel *NONNULL_PTR o); /* @internal */ -export function APIError_fee_rate_too_high(err: number, feerate: number): bigint { +export function Level_to_str(o: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_APIError_fee_rate_too_high(err, feerate); + const nativeResponseValue = wasm.TS_Level_to_str(o); return nativeResponseValue; } - // struct LDKAPIError APIError_invalid_route(struct LDKStr err); + // MUST_USE_RES enum LDKLevel Level_max(void); /* @internal */ -export function APIError_invalid_route(err: number): bigint { +export function Level_max(): Level { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_APIError_invalid_route(err); + const nativeResponseValue = wasm.TS_Level_max(); return nativeResponseValue; } - // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err); + // void Record_free(struct LDKRecord this_obj); /* @internal */ -export function APIError_channel_unavailable(err: number): bigint { +export function Record_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_APIError_channel_unavailable(err); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_Record_free(this_obj); + // debug statements here } - // struct LDKAPIError APIError_monitor_update_in_progress(void); + // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr); /* @internal */ -export function APIError_monitor_update_in_progress(): bigint { +export function Record_get_level(this_ptr: bigint): Level { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_APIError_monitor_update_in_progress(); + const nativeResponseValue = wasm.TS_Record_get_level(this_ptr); return nativeResponseValue; } - // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script); + // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val); /* @internal */ -export function APIError_incompatible_shutdown_script(script: bigint): bigint { +export function Record_set_level(this_ptr: bigint, val: Level): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_APIError_incompatible_shutdown_script(script); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_Record_set_level(this_ptr, val); + // debug statements here } - // bool APIError_eq(const struct LDKAPIError *NONNULL_PTR a, const struct LDKAPIError *NONNULL_PTR b); + // struct LDKPublicKey Record_get_peer_id(const struct LDKRecord *NONNULL_PTR this_ptr); /* @internal */ -export function APIError_eq(a: bigint, b: bigint): boolean { +export function Record_get_peer_id(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_APIError_eq(a, b); + const nativeResponseValue = wasm.TS_Record_get_peer_id(this_ptr); return nativeResponseValue; } - // struct LDKCVec_u8Z APIError_write(const struct LDKAPIError *NONNULL_PTR obj); + // void Record_set_peer_id(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function APIError_write(obj: bigint): number { +export function Record_set_peer_id(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_APIError_write(obj); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_Record_set_peer_id(this_ptr, val); + // debug statements here } - // struct LDKCResult_COption_APIErrorZDecodeErrorZ APIError_read(struct LDKu8slice ser); + // struct LDKChannelId Record_get_channel_id(const struct LDKRecord *NONNULL_PTR this_ptr); /* @internal */ -export function APIError_read(ser: number): bigint { +export function Record_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_APIError_read(ser); + const nativeResponseValue = wasm.TS_Record_get_channel_id(this_ptr); return nativeResponseValue; } - // void BigSize_free(struct LDKBigSize this_obj); + // void Record_set_channel_id(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function BigSize_free(this_obj: bigint): void { +export function Record_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BigSize_free(this_obj); + const nativeResponseValue = wasm.TS_Record_set_channel_id(this_ptr, val); // debug statements here } - // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr); + // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr); /* @internal */ -export function BigSize_get_a(this_ptr: bigint): bigint { +export function Record_get_args(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BigSize_get_a(this_ptr); + const nativeResponseValue = wasm.TS_Record_get_args(this_ptr); return nativeResponseValue; } - // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val); + // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val); /* @internal */ -export function BigSize_set_a(this_ptr: bigint, val: bigint): void { +export function Record_set_args(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BigSize_set_a(this_ptr, val); + const nativeResponseValue = wasm.TS_Record_set_args(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg); + // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr); /* @internal */ -export function BigSize_new(a_arg: bigint): bigint { +export function Record_get_module_path(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BigSize_new(a_arg); + const nativeResponseValue = wasm.TS_Record_get_module_path(this_ptr); return nativeResponseValue; } - // uint64_t BigSize_clone_ptr(LDKBigSize *NONNULL_PTR arg); + // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val); /* @internal */ -export function BigSize_clone_ptr(arg: bigint): bigint { +export function Record_set_module_path(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BigSize_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_Record_set_module_path(this_ptr, val); + // debug statements here } - // struct LDKBigSize BigSize_clone(const struct LDKBigSize *NONNULL_PTR orig); + // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr); /* @internal */ -export function BigSize_clone(orig: bigint): bigint { +export function Record_get_file(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BigSize_clone(orig); + const nativeResponseValue = wasm.TS_Record_get_file(this_ptr); return nativeResponseValue; } - // uint64_t BigSize_hash(const struct LDKBigSize *NONNULL_PTR o); + // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val); /* @internal */ -export function BigSize_hash(o: bigint): bigint { +export function Record_set_file(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BigSize_hash(o); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_Record_set_file(this_ptr, val); + // debug statements here } - // bool BigSize_eq(const struct LDKBigSize *NONNULL_PTR a, const struct LDKBigSize *NONNULL_PTR b); + // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr); /* @internal */ -export function BigSize_eq(a: bigint, b: bigint): boolean { +export function Record_get_line(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BigSize_eq(a, b); + const nativeResponseValue = wasm.TS_Record_get_line(this_ptr); return nativeResponseValue; } - // struct LDKCVec_u8Z BigSize_write(const struct LDKBigSize *NONNULL_PTR obj); + // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function BigSize_write(obj: bigint): number { +export function Record_set_line(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BigSize_write(obj); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_Record_set_line(this_ptr, val); + // debug statements here } - // struct LDKCResult_BigSizeDecodeErrorZ BigSize_read(struct LDKu8slice ser); + // MUST_USE_RES struct LDKRecord Record_new(enum LDKLevel level_arg, struct LDKPublicKey peer_id_arg, struct LDKChannelId channel_id_arg, struct LDKStr args_arg, struct LDKStr module_path_arg, struct LDKStr file_arg, uint32_t line_arg); /* @internal */ -export function BigSize_read(ser: number): bigint { +export function Record_new(level_arg: Level, peer_id_arg: number, channel_id_arg: bigint, args_arg: number, module_path_arg: number, file_arg: number, line_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BigSize_read(ser); + const nativeResponseValue = wasm.TS_Record_new(level_arg, peer_id_arg, channel_id_arg, args_arg, module_path_arg, file_arg, line_arg); return nativeResponseValue; } - // void Hostname_free(struct LDKHostname this_obj); -/* @internal */ -export function Hostname_free(this_obj: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_Hostname_free(this_obj); - // debug statements here -} - // uint64_t Hostname_clone_ptr(LDKHostname *NONNULL_PTR arg); + // uint64_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg); /* @internal */ -export function Hostname_clone_ptr(arg: bigint): bigint { +export function Record_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Hostname_clone_ptr(arg); + const nativeResponseValue = wasm.TS_Record_clone_ptr(arg); return nativeResponseValue; } - // struct LDKHostname Hostname_clone(const struct LDKHostname *NONNULL_PTR orig); + // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig); /* @internal */ -export function Hostname_clone(orig: bigint): bigint { +export function Record_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Hostname_clone(orig); + const nativeResponseValue = wasm.TS_Record_clone(orig); return nativeResponseValue; } - // uint64_t Hostname_hash(const struct LDKHostname *NONNULL_PTR o); + // void Logger_free(struct LDKLogger this_ptr); /* @internal */ -export function Hostname_hash(o: bigint): bigint { +export function Logger_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Hostname_hash(o); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_Logger_free(this_ptr); + // debug statements here } - // bool Hostname_eq(const struct LDKHostname *NONNULL_PTR a, const struct LDKHostname *NONNULL_PTR b); + // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj); /* @internal */ -export function Hostname_eq(a: bigint, b: bigint): boolean { +export function ChannelHandshakeConfig_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Hostname_eq(a, b); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_free(this_obj); + // debug statements here } - // MUST_USE_RES uint8_t Hostname_len(const struct LDKHostname *NONNULL_PTR this_arg); + // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); /* @internal */ -export function Hostname_len(this_arg: bigint): number { +export function ChannelHandshakeConfig_get_minimum_depth(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Hostname_len(this_arg); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_minimum_depth(this_ptr); return nativeResponseValue; } - // struct LDKCVec_u8Z Hostname_write(const struct LDKHostname *NONNULL_PTR obj); + // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function Hostname_write(obj: bigint): number { +export function ChannelHandshakeConfig_set_minimum_depth(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Hostname_write(obj); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_minimum_depth(this_ptr, val); + // debug statements here } - // struct LDKCResult_HostnameDecodeErrorZ Hostname_read(struct LDKu8slice ser); + // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); /* @internal */ -export function Hostname_read(ser: number): bigint { +export function ChannelHandshakeConfig_get_our_to_self_delay(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Hostname_read(ser); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_to_self_delay(this_ptr); return nativeResponseValue; } - // void TransactionU16LenLimited_free(struct LDKTransactionU16LenLimited this_obj); + // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val); /* @internal */ -export function TransactionU16LenLimited_free(this_obj: bigint): void { +export function ChannelHandshakeConfig_set_our_to_self_delay(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_TransactionU16LenLimited_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_to_self_delay(this_ptr, val); // debug statements here } - // uint64_t TransactionU16LenLimited_clone_ptr(LDKTransactionU16LenLimited *NONNULL_PTR arg); + // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); /* @internal */ -export function TransactionU16LenLimited_clone_ptr(arg: bigint): bigint { +export function ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_TransactionU16LenLimited_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr); return nativeResponseValue; } - // struct LDKTransactionU16LenLimited TransactionU16LenLimited_clone(const struct LDKTransactionU16LenLimited *NONNULL_PTR orig); + // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function TransactionU16LenLimited_clone(orig: bigint): bigint { +export function ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_TransactionU16LenLimited_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr, val); + // debug statements here } - // uint64_t TransactionU16LenLimited_hash(const struct LDKTransactionU16LenLimited *NONNULL_PTR o); + // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); /* @internal */ -export function TransactionU16LenLimited_hash(o: bigint): bigint { +export function ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_TransactionU16LenLimited_hash(o); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr); return nativeResponseValue; } - // bool TransactionU16LenLimited_eq(const struct LDKTransactionU16LenLimited *NONNULL_PTR a, const struct LDKTransactionU16LenLimited *NONNULL_PTR b); + // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val); /* @internal */ -export function TransactionU16LenLimited_eq(a: bigint, b: bigint): boolean { +export function ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_TransactionU16LenLimited_eq(a, b); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKCResult_TransactionU16LenLimitedNoneZ TransactionU16LenLimited_new(struct LDKTransaction transaction); + // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); /* @internal */ -export function TransactionU16LenLimited_new(transaction: number): bigint { +export function ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_TransactionU16LenLimited_new(transaction); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKTransaction TransactionU16LenLimited_into_transaction(struct LDKTransactionU16LenLimited this_arg); + // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function TransactionU16LenLimited_into_transaction(this_arg: bigint): number { +export function ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_TransactionU16LenLimited_into_transaction(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr, val); + // debug statements here } - // struct LDKCVec_u8Z TransactionU16LenLimited_write(const struct LDKTransactionU16LenLimited *NONNULL_PTR obj); + // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); /* @internal */ -export function TransactionU16LenLimited_write(obj: bigint): number { +export function ChannelHandshakeConfig_get_announced_channel(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_TransactionU16LenLimited_write(obj); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_announced_channel(this_ptr); return nativeResponseValue; } - // struct LDKCResult_TransactionU16LenLimitedDecodeErrorZ TransactionU16LenLimited_read(struct LDKu8slice ser); + // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function TransactionU16LenLimited_read(ser: number): bigint { +export function ChannelHandshakeConfig_set_announced_channel(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_TransactionU16LenLimited_read(ser); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_announced_channel(this_ptr, val); + // debug statements here } - // struct LDKCResult_StrSecp256k1ErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]); + // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); /* @internal */ -export function sign(msg: number, sk: number): bigint { +export function ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_sign(msg, sk); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this_ptr); return nativeResponseValue; } - // struct LDKCResult_PublicKeySecp256k1ErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig); + // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function recover_pk(msg: number, sig: number): bigint { +export function ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_recover_pk(msg, sig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this_ptr, val); + // debug statements here } - // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk); + // uint32_t ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); /* @internal */ -export function verify(msg: number, sig: number, pk: number): boolean { +export function ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_verify(msg, sig, pk); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(this_ptr); return nativeResponseValue; } - // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature); + // void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function construct_invoice_preimage(hrp_bytes: number, data_without_signature: number): number { +export function ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_construct_invoice_preimage(hrp_bytes, data_without_signature); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(this_ptr, val); + // debug statements here } - // void KVStore_free(struct LDKKVStore this_ptr); + // bool ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); /* @internal */ -export function KVStore_free(this_ptr: bigint): void { +export function ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_KVStore_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(this_ptr); + return nativeResponseValue; } - // void Persister_free(struct LDKPersister this_ptr); + // void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function Persister_free(this_ptr: bigint): void { +export function ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Persister_free(this_ptr); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(this_ptr, val); // debug statements here } - // struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ read_channel_monitors(struct LDKKVStore kv_store, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider); + // uint16_t ChannelHandshakeConfig_get_our_max_accepted_htlcs(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); /* @internal */ -export function read_channel_monitors(kv_store: bigint, entropy_source: bigint, signer_provider: bigint): bigint { +export function ChannelHandshakeConfig_get_our_max_accepted_htlcs(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_read_channel_monitors(kv_store, entropy_source, signer_provider); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_max_accepted_htlcs(this_ptr); return nativeResponseValue; } - // void MonitorUpdatingPersister_free(struct LDKMonitorUpdatingPersister this_obj); + // void ChannelHandshakeConfig_set_our_max_accepted_htlcs(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val); /* @internal */ -export function MonitorUpdatingPersister_free(this_obj: bigint): void { +export function ChannelHandshakeConfig_set_our_max_accepted_htlcs(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorUpdatingPersister_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_max_accepted_htlcs(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKMonitorUpdatingPersister MonitorUpdatingPersister_new(struct LDKKVStore kv_store, struct LDKLogger logger, uint64_t maximum_pending_updates, struct LDKEntropySource entropy_source, struct LDKSignerProvider signer_provider); + // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_new(uint32_t minimum_depth_arg, uint16_t our_to_self_delay_arg, uint64_t our_htlc_minimum_msat_arg, uint8_t max_inbound_htlc_value_in_flight_percent_of_channel_arg, bool negotiate_scid_privacy_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg, uint32_t their_channel_reserve_proportional_millionths_arg, bool negotiate_anchors_zero_fee_htlc_tx_arg, uint16_t our_max_accepted_htlcs_arg); /* @internal */ -export function MonitorUpdatingPersister_new(kv_store: bigint, logger: bigint, maximum_pending_updates: bigint, entropy_source: bigint, signer_provider: bigint): bigint { +export function ChannelHandshakeConfig_new(minimum_depth_arg: number, our_to_self_delay_arg: number, our_htlc_minimum_msat_arg: bigint, max_inbound_htlc_value_in_flight_percent_of_channel_arg: number, negotiate_scid_privacy_arg: boolean, announced_channel_arg: boolean, commit_upfront_shutdown_pubkey_arg: boolean, their_channel_reserve_proportional_millionths_arg: number, negotiate_anchors_zero_fee_htlc_tx_arg: boolean, our_max_accepted_htlcs_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorUpdatingPersister_new(kv_store, logger, maximum_pending_updates, entropy_source, signer_provider); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg, max_inbound_htlc_value_in_flight_percent_of_channel_arg, negotiate_scid_privacy_arg, announced_channel_arg, commit_upfront_shutdown_pubkey_arg, their_channel_reserve_proportional_millionths_arg, negotiate_anchors_zero_fee_htlc_tx_arg, our_max_accepted_htlcs_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesChannelMonitorZZIOErrorZ MonitorUpdatingPersister_read_all_channel_monitors_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator); + // uint64_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg); /* @internal */ -export function MonitorUpdatingPersister_read_all_channel_monitors_with_updates(this_arg: bigint, broadcaster: bigint, fee_estimator: bigint): bigint { +export function ChannelHandshakeConfig_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorUpdatingPersister_read_all_channel_monitors_with_updates(this_arg, broadcaster, fee_estimator); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone_ptr(arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZIOErrorZ MonitorUpdatingPersister_read_channel_monitor_with_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, struct LDKStr monitor_key); + // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig); /* @internal */ -export function MonitorUpdatingPersister_read_channel_monitor_with_updates(this_arg: bigint, broadcaster: bigint, fee_estimator: bigint, monitor_key: number): bigint { +export function ChannelHandshakeConfig_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorUpdatingPersister_read_channel_monitor_with_updates(this_arg, broadcaster, fee_estimator, monitor_key); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone(orig); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneIOErrorZ MonitorUpdatingPersister_cleanup_stale_updates(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg, bool lazy); + // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void); /* @internal */ -export function MonitorUpdatingPersister_cleanup_stale_updates(this_arg: bigint, lazy: boolean): bigint { +export function ChannelHandshakeConfig_default(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorUpdatingPersister_cleanup_stale_updates(this_arg, lazy); + const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_default(); return nativeResponseValue; } - // struct LDKPersist MonitorUpdatingPersister_as_Persist(const struct LDKMonitorUpdatingPersister *NONNULL_PTR this_arg); + // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj); /* @internal */ -export function MonitorUpdatingPersister_as_Persist(this_arg: bigint): bigint { +export function ChannelHandshakeLimits_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorUpdatingPersister_as_Persist(this_arg); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_free(this_obj); + // debug statements here +} + // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); +/* @internal */ +export function ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr); return nativeResponseValue; } - // void UntrustedString_free(struct LDKUntrustedString this_obj); + // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function UntrustedString_free(this_obj: bigint): void { +export function ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UntrustedString_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr, val); // debug statements here } - // struct LDKStr UntrustedString_get_a(const struct LDKUntrustedString *NONNULL_PTR this_ptr); + // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); /* @internal */ -export function UntrustedString_get_a(this_ptr: bigint): number { +export function ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UntrustedString_get_a(this_ptr); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr); return nativeResponseValue; } - // void UntrustedString_set_a(struct LDKUntrustedString *NONNULL_PTR this_ptr, struct LDKStr val); + // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function UntrustedString_set_a(this_ptr: bigint, val: number): void { +export function ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UntrustedString_set_a(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKUntrustedString UntrustedString_new(struct LDKStr a_arg); + // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); /* @internal */ -export function UntrustedString_new(a_arg: number): bigint { +export function ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UntrustedString_new(a_arg); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr); return nativeResponseValue; } - // uint64_t UntrustedString_clone_ptr(LDKUntrustedString *NONNULL_PTR arg); + // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function UntrustedString_clone_ptr(arg: bigint): bigint { +export function ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UntrustedString_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr, val); + // debug statements here } - // struct LDKUntrustedString UntrustedString_clone(const struct LDKUntrustedString *NONNULL_PTR orig); + // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); /* @internal */ -export function UntrustedString_clone(orig: bigint): bigint { +export function ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UntrustedString_clone(orig); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr); return nativeResponseValue; } - // bool UntrustedString_eq(const struct LDKUntrustedString *NONNULL_PTR a, const struct LDKUntrustedString *NONNULL_PTR b); + // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function UntrustedString_eq(a: bigint, b: bigint): boolean { +export function ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UntrustedString_eq(a, b); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr, val); + // debug statements here } - // uint64_t UntrustedString_hash(const struct LDKUntrustedString *NONNULL_PTR o); + // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); /* @internal */ -export function UntrustedString_hash(o: bigint): bigint { +export function ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UntrustedString_hash(o); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr); return nativeResponseValue; } - // struct LDKCVec_u8Z UntrustedString_write(const struct LDKUntrustedString *NONNULL_PTR obj); + // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function UntrustedString_write(obj: bigint): number { +export function ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UntrustedString_write(obj); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr, val); + // debug statements here } - // struct LDKCResult_UntrustedStringDecodeErrorZ UntrustedString_read(struct LDKu8slice ser); + // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); /* @internal */ -export function UntrustedString_read(ser: number): bigint { +export function ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UntrustedString_read(ser); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr); return nativeResponseValue; } - // void PrintableString_free(struct LDKPrintableString this_obj); + // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val); /* @internal */ -export function PrintableString_free(this_obj: bigint): void { +export function ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PrintableString_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr, val); // debug statements here } - // struct LDKStr PrintableString_get_a(const struct LDKPrintableString *NONNULL_PTR this_ptr); + // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); /* @internal */ -export function PrintableString_get_a(this_ptr: bigint): number { +export function ChannelHandshakeLimits_get_max_minimum_depth(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PrintableString_get_a(this_ptr); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_minimum_depth(this_ptr); return nativeResponseValue; } - // void PrintableString_set_a(struct LDKPrintableString *NONNULL_PTR this_ptr, struct LDKStr val); + // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function PrintableString_set_a(this_ptr: bigint, val: number): void { +export function ChannelHandshakeLimits_set_max_minimum_depth(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PrintableString_set_a(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_minimum_depth(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKPrintableString PrintableString_new(struct LDKStr a_arg); + // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); /* @internal */ -export function PrintableString_new(a_arg: number): bigint { +export function ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PrintableString_new(a_arg); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr); return nativeResponseValue; } - // void FutureCallback_free(struct LDKFutureCallback this_ptr); + // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function FutureCallback_free(this_ptr: bigint): void { +export function ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_FutureCallback_free(this_ptr); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr, val); // debug statements here } - // void Future_free(struct LDKFuture this_obj); + // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); /* @internal */ -export function Future_free(this_obj: bigint): void { +export function ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Future_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr); + return nativeResponseValue; } - // uint64_t Future_clone_ptr(LDKFuture *NONNULL_PTR arg); + // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function Future_clone_ptr(arg: bigint): bigint { +export function ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Future_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr, val); + // debug statements here } - // struct LDKFuture Future_clone(const struct LDKFuture *NONNULL_PTR orig); + // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); /* @internal */ -export function Future_clone(orig: bigint): bigint { +export function ChannelHandshakeLimits_get_their_to_self_delay(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Future_clone(orig); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_their_to_self_delay(this_ptr); return nativeResponseValue; } - // void Future_register_callback_fn(const struct LDKFuture *NONNULL_PTR this_arg, struct LDKFutureCallback callback); + // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val); /* @internal */ -export function Future_register_callback_fn(this_arg: bigint, callback: bigint): void { +export function ChannelHandshakeLimits_set_their_to_self_delay(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Future_register_callback_fn(this_arg, callback); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_their_to_self_delay(this_ptr, val); // debug statements here } - // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig); + // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_new(uint64_t min_funding_satoshis_arg, uint64_t max_funding_satoshis_arg, uint64_t max_htlc_minimum_msat_arg, uint64_t min_max_htlc_value_in_flight_msat_arg, uint64_t max_channel_reserve_satoshis_arg, uint16_t min_max_accepted_htlcs_arg, uint32_t max_minimum_depth_arg, bool trust_own_funding_0conf_arg, bool force_announced_channel_preference_arg, uint16_t their_to_self_delay_arg); /* @internal */ -export function Level_clone(orig: bigint): Level { +export function ChannelHandshakeLimits_new(min_funding_satoshis_arg: bigint, max_funding_satoshis_arg: bigint, max_htlc_minimum_msat_arg: bigint, min_max_htlc_value_in_flight_msat_arg: bigint, max_channel_reserve_satoshis_arg: bigint, min_max_accepted_htlcs_arg: number, max_minimum_depth_arg: number, trust_own_funding_0conf_arg: boolean, force_announced_channel_preference_arg: boolean, their_to_self_delay_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Level_clone(orig); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_new(min_funding_satoshis_arg, max_funding_satoshis_arg, max_htlc_minimum_msat_arg, min_max_htlc_value_in_flight_msat_arg, max_channel_reserve_satoshis_arg, min_max_accepted_htlcs_arg, max_minimum_depth_arg, trust_own_funding_0conf_arg, force_announced_channel_preference_arg, their_to_self_delay_arg); return nativeResponseValue; } - // enum LDKLevel Level_gossip(void); + // uint64_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg); /* @internal */ -export function Level_gossip(): Level { +export function ChannelHandshakeLimits_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Level_gossip(); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone_ptr(arg); return nativeResponseValue; } - // enum LDKLevel Level_trace(void); + // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig); /* @internal */ -export function Level_trace(): Level { +export function ChannelHandshakeLimits_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Level_trace(); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone(orig); return nativeResponseValue; } - // enum LDKLevel Level_debug(void); + // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void); /* @internal */ -export function Level_debug(): Level { +export function ChannelHandshakeLimits_default(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Level_debug(); + const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_default(); return nativeResponseValue; } - // enum LDKLevel Level_info(void); + // void MaxDustHTLCExposure_free(struct LDKMaxDustHTLCExposure this_ptr); /* @internal */ -export function Level_info(): Level { +export function MaxDustHTLCExposure_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Level_info(); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_free(this_ptr); + // debug statements here } - // enum LDKLevel Level_warn(void); + // uint64_t MaxDustHTLCExposure_clone_ptr(LDKMaxDustHTLCExposure *NONNULL_PTR arg); /* @internal */ -export function Level_warn(): Level { +export function MaxDustHTLCExposure_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Level_warn(); + const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_clone_ptr(arg); return nativeResponseValue; } - // enum LDKLevel Level_error(void); + // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_clone(const struct LDKMaxDustHTLCExposure *NONNULL_PTR orig); /* @internal */ -export function Level_error(): Level { +export function MaxDustHTLCExposure_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Level_error(); + const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_clone(orig); return nativeResponseValue; } - // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b); + // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fixed_limit_msat(uint64_t a); /* @internal */ -export function Level_eq(a: bigint, b: bigint): boolean { +export function MaxDustHTLCExposure_fixed_limit_msat(a: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Level_eq(a, b); + const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_fixed_limit_msat(a); return nativeResponseValue; } - // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o); + // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fee_rate_multiplier(uint64_t a); /* @internal */ -export function Level_hash(o: bigint): bigint { +export function MaxDustHTLCExposure_fee_rate_multiplier(a: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Level_hash(o); + const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_fee_rate_multiplier(a); return nativeResponseValue; } - // MUST_USE_RES enum LDKLevel Level_max(void); + // bool MaxDustHTLCExposure_eq(const struct LDKMaxDustHTLCExposure *NONNULL_PTR a, const struct LDKMaxDustHTLCExposure *NONNULL_PTR b); /* @internal */ -export function Level_max(): Level { +export function MaxDustHTLCExposure_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Level_max(); + const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_eq(a, b); return nativeResponseValue; } - // void Record_free(struct LDKRecord this_obj); + // struct LDKCVec_u8Z MaxDustHTLCExposure_write(const struct LDKMaxDustHTLCExposure *NONNULL_PTR obj); /* @internal */ -export function Record_free(this_obj: bigint): void { +export function MaxDustHTLCExposure_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_write(obj); + return nativeResponseValue; } - // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr); + // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ MaxDustHTLCExposure_read(struct LDKu8slice ser); /* @internal */ -export function Record_get_level(this_ptr: bigint): Level { +export function MaxDustHTLCExposure_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_get_level(this_ptr); + const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_read(ser); return nativeResponseValue; } - // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val); + // void ChannelConfig_free(struct LDKChannelConfig this_obj); /* @internal */ -export function Record_set_level(this_ptr: bigint, val: Level): void { +export function ChannelConfig_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_set_level(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfig_free(this_obj); // debug statements here } - // struct LDKPublicKey Record_get_peer_id(const struct LDKRecord *NONNULL_PTR this_ptr); + // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr); /* @internal */ -export function Record_get_peer_id(this_ptr: bigint): number { +export function ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_get_peer_id(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr); return nativeResponseValue; } - // void Record_set_peer_id(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function Record_set_peer_id(this_ptr: bigint, val: number): void { +export function ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_set_peer_id(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr, val); // debug statements here } - // struct LDKCOption_ThirtyTwoBytesZ Record_get_channel_id(const struct LDKRecord *NONNULL_PTR this_ptr); + // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr); /* @internal */ -export function Record_get_channel_id(this_ptr: bigint): bigint { +export function ChannelConfig_get_forwarding_fee_base_msat(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_get_channel_id(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_base_msat(this_ptr); return nativeResponseValue; } - // void Record_set_channel_id(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); + // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function Record_set_channel_id(this_ptr: bigint, val: bigint): void { +export function ChannelConfig_set_forwarding_fee_base_msat(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_set_channel_id(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_base_msat(this_ptr, val); // debug statements here } - // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr); + // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr); /* @internal */ -export function Record_get_args(this_ptr: bigint): number { +export function ChannelConfig_get_cltv_expiry_delta(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_get_args(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfig_get_cltv_expiry_delta(this_ptr); return nativeResponseValue; } - // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val); + // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val); /* @internal */ -export function Record_set_args(this_ptr: bigint, val: number): void { +export function ChannelConfig_set_cltv_expiry_delta(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_set_args(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfig_set_cltv_expiry_delta(this_ptr, val); // debug statements here } - // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr); + // struct LDKMaxDustHTLCExposure ChannelConfig_get_max_dust_htlc_exposure(const struct LDKChannelConfig *NONNULL_PTR this_ptr); /* @internal */ -export function Record_get_module_path(this_ptr: bigint): number { +export function ChannelConfig_get_max_dust_htlc_exposure(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_get_module_path(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfig_get_max_dust_htlc_exposure(this_ptr); return nativeResponseValue; } - // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val); + // void ChannelConfig_set_max_dust_htlc_exposure(struct LDKChannelConfig *NONNULL_PTR this_ptr, struct LDKMaxDustHTLCExposure val); /* @internal */ -export function Record_set_module_path(this_ptr: bigint, val: number): void { +export function ChannelConfig_set_max_dust_htlc_exposure(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_set_module_path(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfig_set_max_dust_htlc_exposure(this_ptr, val); // debug statements here } - // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr); + // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr); /* @internal */ -export function Record_get_file(this_ptr: bigint): number { +export function ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_get_file(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr); return nativeResponseValue; } - // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val); + // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function Record_set_file(this_ptr: bigint, val: number): void { +export function ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_set_file(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr, val); // debug statements here } - // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr); + // bool ChannelConfig_get_accept_underpaying_htlcs(const struct LDKChannelConfig *NONNULL_PTR this_ptr); /* @internal */ -export function Record_get_line(this_ptr: bigint): number { +export function ChannelConfig_get_accept_underpaying_htlcs(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_get_line(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfig_get_accept_underpaying_htlcs(this_ptr); return nativeResponseValue; } - // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val); + // void ChannelConfig_set_accept_underpaying_htlcs(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function Record_set_line(this_ptr: bigint, val: number): void { +export function ChannelConfig_set_accept_underpaying_htlcs(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_set_line(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfig_set_accept_underpaying_htlcs(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKRecord Record_new(enum LDKLevel level_arg, struct LDKPublicKey peer_id_arg, struct LDKCOption_ThirtyTwoBytesZ channel_id_arg, struct LDKStr args_arg, struct LDKStr module_path_arg, struct LDKStr file_arg, uint32_t line_arg); + // MUST_USE_RES struct LDKChannelConfig ChannelConfig_new(uint32_t forwarding_fee_proportional_millionths_arg, uint32_t forwarding_fee_base_msat_arg, uint16_t cltv_expiry_delta_arg, struct LDKMaxDustHTLCExposure max_dust_htlc_exposure_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg, bool accept_underpaying_htlcs_arg); /* @internal */ -export function Record_new(level_arg: Level, peer_id_arg: number, channel_id_arg: bigint, args_arg: number, module_path_arg: number, file_arg: number, line_arg: number): bigint { +export function ChannelConfig_new(forwarding_fee_proportional_millionths_arg: number, forwarding_fee_base_msat_arg: number, cltv_expiry_delta_arg: number, max_dust_htlc_exposure_arg: bigint, force_close_avoidance_max_fee_satoshis_arg: bigint, accept_underpaying_htlcs_arg: boolean): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_new(level_arg, peer_id_arg, channel_id_arg, args_arg, module_path_arg, file_arg, line_arg); + const nativeResponseValue = wasm.TS_ChannelConfig_new(forwarding_fee_proportional_millionths_arg, forwarding_fee_base_msat_arg, cltv_expiry_delta_arg, max_dust_htlc_exposure_arg, force_close_avoidance_max_fee_satoshis_arg, accept_underpaying_htlcs_arg); return nativeResponseValue; } - // uint64_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg); + // uint64_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg); /* @internal */ -export function Record_clone_ptr(arg: bigint): bigint { +export function ChannelConfig_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ChannelConfig_clone_ptr(arg); return nativeResponseValue; } - // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig); + // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig); /* @internal */ -export function Record_clone(orig: bigint): bigint { +export function ChannelConfig_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Record_clone(orig); + const nativeResponseValue = wasm.TS_ChannelConfig_clone(orig); return nativeResponseValue; } - // void Logger_free(struct LDKLogger this_ptr); + // bool ChannelConfig_eq(const struct LDKChannelConfig *NONNULL_PTR a, const struct LDKChannelConfig *NONNULL_PTR b); /* @internal */ -export function Logger_free(this_ptr: bigint): void { +export function ChannelConfig_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Logger_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelConfig_eq(a, b); + return nativeResponseValue; } - // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj); + // void ChannelConfig_apply(struct LDKChannelConfig *NONNULL_PTR this_arg, const struct LDKChannelConfigUpdate *NONNULL_PTR update); /* @internal */ -export function ChannelHandshakeConfig_free(this_obj: bigint): void { +export function ChannelConfig_apply(this_arg: bigint, update: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelConfig_apply(this_arg, update); // debug statements here } - // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void); /* @internal */ -export function ChannelHandshakeConfig_get_minimum_depth(this_ptr: bigint): number { +export function ChannelConfig_default(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_minimum_depth(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfig_default(); return nativeResponseValue; } - // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val); + // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj); /* @internal */ -export function ChannelHandshakeConfig_set_minimum_depth(this_ptr: bigint, val: number): void { +export function ChannelConfig_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_minimum_depth(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelConfig_write(obj); + return nativeResponseValue; } - // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); + // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser); /* @internal */ -export function ChannelHandshakeConfig_get_our_to_self_delay(this_ptr: bigint): number { +export function ChannelConfig_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_to_self_delay(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfig_read(ser); return nativeResponseValue; } - // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val); + // void ChannelConfigUpdate_free(struct LDKChannelConfigUpdate this_obj); /* @internal */ -export function ChannelHandshakeConfig_set_our_to_self_delay(this_ptr: bigint, val: number): void { +export function ChannelConfigUpdate_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_to_self_delay(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_free(this_obj); // debug statements here } - // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); + // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr: bigint): bigint { +export function ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val); + // void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); /* @internal */ -export function ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { +export function ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(this_ptr, val); // debug statements here } - // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); + // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_base_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: bigint): number { +export function ChannelConfigUpdate_get_forwarding_fee_base_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_get_forwarding_fee_base_msat(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val); + // void ChannelConfigUpdate_set_forwarding_fee_base_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); /* @internal */ -export function ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: bigint, val: number): void { +export function ChannelConfigUpdate_set_forwarding_fee_base_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_set_forwarding_fee_base_msat(this_ptr, val); // debug statements here } - // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); + // struct LDKCOption_u16Z ChannelConfigUpdate_get_cltv_expiry_delta(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr: bigint): boolean { +export function ChannelConfigUpdate_get_cltv_expiry_delta(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_get_cltv_expiry_delta(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val); + // void ChannelConfigUpdate_set_cltv_expiry_delta(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val); /* @internal */ -export function ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr: bigint, val: boolean): void { +export function ChannelConfigUpdate_set_cltv_expiry_delta(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_set_cltv_expiry_delta(this_ptr, val); // debug statements here } - // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); + // struct LDKCOption_MaxDustHTLCExposureZ ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeConfig_get_announced_channel(this_ptr: bigint): boolean { +export function ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_announced_channel(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val); + // void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_MaxDustHTLCExposureZ val); /* @internal */ -export function ChannelHandshakeConfig_set_announced_channel(this_ptr: bigint, val: boolean): void { +export function ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_announced_channel(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(this_ptr, val); // debug statements here } - // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); + // struct LDKCOption_u64Z ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this_ptr: bigint): boolean { +export function ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val); + // void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this_ptr: bigint, val: boolean): void { +export function ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(this_ptr, val); // debug statements here } - // uint32_t ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_new(struct LDKCOption_u32Z forwarding_fee_proportional_millionths_arg, struct LDKCOption_u32Z forwarding_fee_base_msat_arg, struct LDKCOption_u16Z cltv_expiry_delta_arg, struct LDKCOption_MaxDustHTLCExposureZ max_dust_htlc_exposure_msat_arg, struct LDKCOption_u64Z force_close_avoidance_max_fee_satoshis_arg); /* @internal */ -export function ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(this_ptr: bigint): number { +export function ChannelConfigUpdate_new(forwarding_fee_proportional_millionths_arg: bigint, forwarding_fee_base_msat_arg: bigint, cltv_expiry_delta_arg: bigint, max_dust_htlc_exposure_msat_arg: bigint, force_close_avoidance_max_fee_satoshis_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_new(forwarding_fee_proportional_millionths_arg, forwarding_fee_base_msat_arg, cltv_expiry_delta_arg, max_dust_htlc_exposure_msat_arg, force_close_avoidance_max_fee_satoshis_arg); return nativeResponseValue; } - // void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val); -/* @internal */ -export function ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(this_ptr, val); - // debug statements here -} - // bool ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_default(void); /* @internal */ -export function ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(this_ptr: bigint): boolean { +export function ChannelConfigUpdate_default(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_negotiate_anchors_zero_fee_htlc_tx(this_ptr); + const nativeResponseValue = wasm.TS_ChannelConfigUpdate_default(); return nativeResponseValue; } - // void ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val); + // void UserConfig_free(struct LDKUserConfig this_obj); /* @internal */ -export function ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(this_ptr: bigint, val: boolean): void { +export function UserConfig_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_negotiate_anchors_zero_fee_htlc_tx(this_ptr, val); + const nativeResponseValue = wasm.TS_UserConfig_free(this_obj); // debug statements here } - // uint16_t ChannelHandshakeConfig_get_our_max_accepted_htlcs(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr); + // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeConfig_get_our_max_accepted_htlcs(this_ptr: bigint): number { +export function UserConfig_get_channel_handshake_config(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_max_accepted_htlcs(this_ptr); + const nativeResponseValue = wasm.TS_UserConfig_get_channel_handshake_config(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeConfig_set_our_max_accepted_htlcs(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val); + // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val); /* @internal */ -export function ChannelHandshakeConfig_set_our_max_accepted_htlcs(this_ptr: bigint, val: number): void { +export function UserConfig_set_channel_handshake_config(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_max_accepted_htlcs(this_ptr, val); + const nativeResponseValue = wasm.TS_UserConfig_set_channel_handshake_config(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_new(uint32_t minimum_depth_arg, uint16_t our_to_self_delay_arg, uint64_t our_htlc_minimum_msat_arg, uint8_t max_inbound_htlc_value_in_flight_percent_of_channel_arg, bool negotiate_scid_privacy_arg, bool announced_channel_arg, bool commit_upfront_shutdown_pubkey_arg, uint32_t their_channel_reserve_proportional_millionths_arg, bool negotiate_anchors_zero_fee_htlc_tx_arg, uint16_t our_max_accepted_htlcs_arg); + // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeConfig_new(minimum_depth_arg: number, our_to_self_delay_arg: number, our_htlc_minimum_msat_arg: bigint, max_inbound_htlc_value_in_flight_percent_of_channel_arg: number, negotiate_scid_privacy_arg: boolean, announced_channel_arg: boolean, commit_upfront_shutdown_pubkey_arg: boolean, their_channel_reserve_proportional_millionths_arg: number, negotiate_anchors_zero_fee_htlc_tx_arg: boolean, our_max_accepted_htlcs_arg: number): bigint { +export function UserConfig_get_channel_handshake_limits(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_new(minimum_depth_arg, our_to_self_delay_arg, our_htlc_minimum_msat_arg, max_inbound_htlc_value_in_flight_percent_of_channel_arg, negotiate_scid_privacy_arg, announced_channel_arg, commit_upfront_shutdown_pubkey_arg, their_channel_reserve_proportional_millionths_arg, negotiate_anchors_zero_fee_htlc_tx_arg, our_max_accepted_htlcs_arg); + const nativeResponseValue = wasm.TS_UserConfig_get_channel_handshake_limits(this_ptr); return nativeResponseValue; } - // uint64_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg); + // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val); /* @internal */ -export function ChannelHandshakeConfig_clone_ptr(arg: bigint): bigint { +export function UserConfig_set_channel_handshake_limits(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_UserConfig_set_channel_handshake_limits(this_ptr, val); + // debug statements here } - // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig); + // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeConfig_clone(orig: bigint): bigint { +export function UserConfig_get_channel_config(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone(orig); + const nativeResponseValue = wasm.TS_UserConfig_get_channel_config(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void); + // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val); /* @internal */ -export function ChannelHandshakeConfig_default(): bigint { +export function UserConfig_set_channel_config(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_default(); + const nativeResponseValue = wasm.TS_UserConfig_set_channel_config(this_ptr, val); + // debug statements here +} + // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr); +/* @internal */ +export function UserConfig_get_accept_forwards_to_priv_channels(this_ptr: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UserConfig_get_accept_forwards_to_priv_channels(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj); + // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function ChannelHandshakeLimits_free(this_obj: bigint): void { +export function UserConfig_set_accept_forwards_to_priv_channels(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_free(this_obj); + const nativeResponseValue = wasm.TS_UserConfig_set_accept_forwards_to_priv_channels(this_ptr, val); // debug statements here } - // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); + // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr: bigint): bigint { +export function UserConfig_get_accept_inbound_channels(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr); + const nativeResponseValue = wasm.TS_UserConfig_get_accept_inbound_channels(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); + // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr: bigint, val: bigint): void { +export function UserConfig_set_accept_inbound_channels(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr, val); + const nativeResponseValue = wasm.TS_UserConfig_set_accept_inbound_channels(this_ptr, val); // debug statements here } - // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); + // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr: bigint): bigint { +export function UserConfig_get_manually_accept_inbound_channels(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr); + const nativeResponseValue = wasm.TS_UserConfig_get_manually_accept_inbound_channels(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); + // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr: bigint, val: bigint): void { +export function UserConfig_set_manually_accept_inbound_channels(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr, val); + const nativeResponseValue = wasm.TS_UserConfig_set_manually_accept_inbound_channels(this_ptr, val); // debug statements here } - // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); + // bool UserConfig_get_accept_intercept_htlcs(const struct LDKUserConfig *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr: bigint): bigint { +export function UserConfig_get_accept_intercept_htlcs(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr); + const nativeResponseValue = wasm.TS_UserConfig_get_accept_intercept_htlcs(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); + // void UserConfig_set_accept_intercept_htlcs(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { +export function UserConfig_set_accept_intercept_htlcs(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_UserConfig_set_accept_intercept_htlcs(this_ptr, val); // debug statements here } - // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); + // bool UserConfig_get_accept_mpp_keysend(const struct LDKUserConfig *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint { +export function UserConfig_get_accept_mpp_keysend(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr); + const nativeResponseValue = wasm.TS_UserConfig_get_accept_mpp_keysend(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); + // void UserConfig_set_accept_mpp_keysend(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void { +export function UserConfig_set_accept_mpp_keysend(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_UserConfig_set_accept_mpp_keysend(this_ptr, val); // debug statements here } - // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKUserConfig UserConfig_new(struct LDKChannelHandshakeConfig channel_handshake_config_arg, struct LDKChannelHandshakeLimits channel_handshake_limits_arg, struct LDKChannelConfig channel_config_arg, bool accept_forwards_to_priv_channels_arg, bool accept_inbound_channels_arg, bool manually_accept_inbound_channels_arg, bool accept_intercept_htlcs_arg, bool accept_mpp_keysend_arg); /* @internal */ -export function ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr: bigint): bigint { +export function UserConfig_new(channel_handshake_config_arg: bigint, channel_handshake_limits_arg: bigint, channel_config_arg: bigint, accept_forwards_to_priv_channels_arg: boolean, accept_inbound_channels_arg: boolean, manually_accept_inbound_channels_arg: boolean, accept_intercept_htlcs_arg: boolean, accept_mpp_keysend_arg: boolean): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr); + const nativeResponseValue = wasm.TS_UserConfig_new(channel_handshake_config_arg, channel_handshake_limits_arg, channel_config_arg, accept_forwards_to_priv_channels_arg, accept_inbound_channels_arg, manually_accept_inbound_channels_arg, accept_intercept_htlcs_arg, accept_mpp_keysend_arg); return nativeResponseValue; } - // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val); + // uint64_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg); /* @internal */ -export function ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr: bigint, val: bigint): void { +export function UserConfig_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_UserConfig_clone_ptr(arg); + return nativeResponseValue; } - // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); + // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig); /* @internal */ -export function ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr: bigint): number { +export function UserConfig_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr); + const nativeResponseValue = wasm.TS_UserConfig_clone(orig); return nativeResponseValue; } - // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val); + // MUST_USE_RES struct LDKUserConfig UserConfig_default(void); /* @internal */ -export function ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr: bigint, val: number): void { +export function UserConfig_default(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr, val); + const nativeResponseValue = wasm.TS_UserConfig_default(); + return nativeResponseValue; +} + // void BestBlock_free(struct LDKBestBlock this_obj); +/* @internal */ +export function BestBlock_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_BestBlock_free(this_obj); // debug statements here } - // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); + // const uint8_t (*BestBlock_get_block_hash(const struct LDKBestBlock *NONNULL_PTR this_ptr))[32]; /* @internal */ -export function ChannelHandshakeLimits_get_max_minimum_depth(this_ptr: bigint): number { +export function BestBlock_get_block_hash(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_minimum_depth(this_ptr); + const nativeResponseValue = wasm.TS_BestBlock_get_block_hash(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val); + // void BestBlock_set_block_hash(struct LDKBestBlock *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); /* @internal */ -export function ChannelHandshakeLimits_set_max_minimum_depth(this_ptr: bigint, val: number): void { +export function BestBlock_set_block_hash(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_minimum_depth(this_ptr, val); + const nativeResponseValue = wasm.TS_BestBlock_set_block_hash(this_ptr, val); // debug statements here } - // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); + // uint32_t BestBlock_get_height(const struct LDKBestBlock *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr: bigint): boolean { +export function BestBlock_get_height(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr); + const nativeResponseValue = wasm.TS_BestBlock_get_height(this_ptr); return nativeResponseValue; } - // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val); + // void BestBlock_set_height(struct LDKBestBlock *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr: bigint, val: boolean): void { +export function BestBlock_set_height(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr, val); + const nativeResponseValue = wasm.TS_BestBlock_set_height(this_ptr, val); // debug statements here } - // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash_arg, uint32_t height_arg); /* @internal */ -export function ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr: bigint): boolean { +export function BestBlock_new(block_hash_arg: number, height_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr); + const nativeResponseValue = wasm.TS_BestBlock_new(block_hash_arg, height_arg); return nativeResponseValue; } - // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val); + // uint64_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg); /* @internal */ -export function ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr: bigint, val: boolean): void { +export function BestBlock_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_BestBlock_clone_ptr(arg); + return nativeResponseValue; } - // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr); + // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig); /* @internal */ -export function ChannelHandshakeLimits_get_their_to_self_delay(this_ptr: bigint): number { +export function BestBlock_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_their_to_self_delay(this_ptr); + const nativeResponseValue = wasm.TS_BestBlock_clone(orig); return nativeResponseValue; } - // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val); + // uint64_t BestBlock_hash(const struct LDKBestBlock *NONNULL_PTR o); /* @internal */ -export function ChannelHandshakeLimits_set_their_to_self_delay(this_ptr: bigint, val: number): void { +export function BestBlock_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_their_to_self_delay(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_BestBlock_hash(o); + return nativeResponseValue; } - // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_new(uint64_t min_funding_satoshis_arg, uint64_t max_funding_satoshis_arg, uint64_t max_htlc_minimum_msat_arg, uint64_t min_max_htlc_value_in_flight_msat_arg, uint64_t max_channel_reserve_satoshis_arg, uint16_t min_max_accepted_htlcs_arg, uint32_t max_minimum_depth_arg, bool trust_own_funding_0conf_arg, bool force_announced_channel_preference_arg, uint16_t their_to_self_delay_arg); + // bool BestBlock_eq(const struct LDKBestBlock *NONNULL_PTR a, const struct LDKBestBlock *NONNULL_PTR b); /* @internal */ -export function ChannelHandshakeLimits_new(min_funding_satoshis_arg: bigint, max_funding_satoshis_arg: bigint, max_htlc_minimum_msat_arg: bigint, min_max_htlc_value_in_flight_msat_arg: bigint, max_channel_reserve_satoshis_arg: bigint, min_max_accepted_htlcs_arg: number, max_minimum_depth_arg: number, trust_own_funding_0conf_arg: boolean, force_announced_channel_preference_arg: boolean, their_to_self_delay_arg: number): bigint { +export function BestBlock_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_new(min_funding_satoshis_arg, max_funding_satoshis_arg, max_htlc_minimum_msat_arg, min_max_htlc_value_in_flight_msat_arg, max_channel_reserve_satoshis_arg, min_max_accepted_htlcs_arg, max_minimum_depth_arg, trust_own_funding_0conf_arg, force_announced_channel_preference_arg, their_to_self_delay_arg); + const nativeResponseValue = wasm.TS_BestBlock_eq(a, b); return nativeResponseValue; } - // uint64_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg); + // MUST_USE_RES struct LDKBestBlock BestBlock_from_network(enum LDKNetwork network); /* @internal */ -export function ChannelHandshakeLimits_clone_ptr(arg: bigint): bigint { +export function BestBlock_from_network(network: Network): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone_ptr(arg); + const nativeResponseValue = wasm.TS_BestBlock_from_network(network); return nativeResponseValue; } - // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig); + // struct LDKCVec_u8Z BestBlock_write(const struct LDKBestBlock *NONNULL_PTR obj); /* @internal */ -export function ChannelHandshakeLimits_clone(orig: bigint): bigint { +export function BestBlock_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone(orig); + const nativeResponseValue = wasm.TS_BestBlock_write(obj); return nativeResponseValue; } - // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void); + // struct LDKCResult_BestBlockDecodeErrorZ BestBlock_read(struct LDKu8slice ser); /* @internal */ -export function ChannelHandshakeLimits_default(): bigint { +export function BestBlock_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_default(); + const nativeResponseValue = wasm.TS_BestBlock_read(ser); return nativeResponseValue; } - // void MaxDustHTLCExposure_free(struct LDKMaxDustHTLCExposure this_ptr); + // void Listen_free(struct LDKListen this_ptr); /* @internal */ -export function MaxDustHTLCExposure_free(this_ptr: bigint): void { +export function Listen_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_free(this_ptr); + const nativeResponseValue = wasm.TS_Listen_free(this_ptr); // debug statements here } - // uint64_t MaxDustHTLCExposure_clone_ptr(LDKMaxDustHTLCExposure *NONNULL_PTR arg); + // void Confirm_free(struct LDKConfirm this_ptr); /* @internal */ -export function MaxDustHTLCExposure_clone_ptr(arg: bigint): bigint { +export function Confirm_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_Confirm_free(this_ptr); + // debug statements here } - // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_clone(const struct LDKMaxDustHTLCExposure *NONNULL_PTR orig); + // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR orig); /* @internal */ -export function MaxDustHTLCExposure_clone(orig: bigint): bigint { +export function ChannelMonitorUpdateStatus_clone(orig: bigint): ChannelMonitorUpdateStatus { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_clone(orig); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_clone(orig); return nativeResponseValue; } - // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fixed_limit_msat(uint64_t a); + // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void); /* @internal */ -export function MaxDustHTLCExposure_fixed_limit_msat(a: bigint): bigint { +export function ChannelMonitorUpdateStatus_completed(): ChannelMonitorUpdateStatus { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_fixed_limit_msat(a); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_completed(); return nativeResponseValue; } - // struct LDKMaxDustHTLCExposure MaxDustHTLCExposure_fee_rate_multiplier(uint64_t a); + // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void); /* @internal */ -export function MaxDustHTLCExposure_fee_rate_multiplier(a: bigint): bigint { +export function ChannelMonitorUpdateStatus_in_progress(): ChannelMonitorUpdateStatus { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_fee_rate_multiplier(a); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_in_progress(); return nativeResponseValue; } - // bool MaxDustHTLCExposure_eq(const struct LDKMaxDustHTLCExposure *NONNULL_PTR a, const struct LDKMaxDustHTLCExposure *NONNULL_PTR b); + // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error(void); /* @internal */ -export function MaxDustHTLCExposure_eq(a: bigint, b: bigint): boolean { +export function ChannelMonitorUpdateStatus_unrecoverable_error(): ChannelMonitorUpdateStatus { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_eq(a, b); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_unrecoverable_error(); return nativeResponseValue; } - // struct LDKCVec_u8Z MaxDustHTLCExposure_write(const struct LDKMaxDustHTLCExposure *NONNULL_PTR obj); + // bool ChannelMonitorUpdateStatus_eq(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR a, const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR b); /* @internal */ -export function MaxDustHTLCExposure_write(obj: bigint): number { +export function ChannelMonitorUpdateStatus_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_write(obj); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_eq(a, b); return nativeResponseValue; } - // struct LDKCResult_MaxDustHTLCExposureDecodeErrorZ MaxDustHTLCExposure_read(struct LDKu8slice ser); + // void Watch_free(struct LDKWatch this_ptr); /* @internal */ -export function MaxDustHTLCExposure_read(ser: number): bigint { +export function Watch_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MaxDustHTLCExposure_read(ser); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_Watch_free(this_ptr); + // debug statements here } - // void ChannelConfig_free(struct LDKChannelConfig this_obj); + // void Filter_free(struct LDKFilter this_ptr); /* @internal */ -export function ChannelConfig_free(this_obj: bigint): void { +export function Filter_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_free(this_obj); + const nativeResponseValue = wasm.TS_Filter_free(this_ptr); // debug statements here } - // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr); + // void WatchedOutput_free(struct LDKWatchedOutput this_obj); /* @internal */ -export function ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr: bigint): number { +export function WatchedOutput_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr); + const nativeResponseValue = wasm.TS_WatchedOutput_free(this_obj); + // debug statements here +} + // struct LDKCOption_ThirtyTwoBytesZ WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); +/* @internal */ +export function WatchedOutput_get_block_hash(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_WatchedOutput_get_block_hash(this_ptr); return nativeResponseValue; } - // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val); + // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); /* @internal */ -export function ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr: bigint, val: number): void { +export function WatchedOutput_set_block_hash(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr, val); + const nativeResponseValue = wasm.TS_WatchedOutput_set_block_hash(this_ptr, val); // debug statements here } - // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr); + // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelConfig_get_forwarding_fee_base_msat(this_ptr: bigint): number { +export function WatchedOutput_get_outpoint(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_base_msat(this_ptr); + const nativeResponseValue = wasm.TS_WatchedOutput_get_outpoint(this_ptr); return nativeResponseValue; } - // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val); + // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val); /* @internal */ -export function ChannelConfig_set_forwarding_fee_base_msat(this_ptr: bigint, val: number): void { +export function WatchedOutput_set_outpoint(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_base_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_WatchedOutput_set_outpoint(this_ptr, val); // debug statements here } - // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr); + // struct LDKCVec_u8Z WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelConfig_get_cltv_expiry_delta(this_ptr: bigint): number { +export function WatchedOutput_get_script_pubkey(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_get_cltv_expiry_delta(this_ptr); + const nativeResponseValue = wasm.TS_WatchedOutput_get_script_pubkey(this_ptr); return nativeResponseValue; } - // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val); + // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); /* @internal */ -export function ChannelConfig_set_cltv_expiry_delta(this_ptr: bigint, val: number): void { +export function WatchedOutput_set_script_pubkey(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_set_cltv_expiry_delta(this_ptr, val); + const nativeResponseValue = wasm.TS_WatchedOutput_set_script_pubkey(this_ptr, val); // debug statements here } - // struct LDKMaxDustHTLCExposure ChannelConfig_get_max_dust_htlc_exposure(const struct LDKChannelConfig *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKCOption_ThirtyTwoBytesZ block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg); /* @internal */ -export function ChannelConfig_get_max_dust_htlc_exposure(this_ptr: bigint): bigint { +export function WatchedOutput_new(block_hash_arg: bigint, outpoint_arg: bigint, script_pubkey_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_get_max_dust_htlc_exposure(this_ptr); + const nativeResponseValue = wasm.TS_WatchedOutput_new(block_hash_arg, outpoint_arg, script_pubkey_arg); return nativeResponseValue; } - // void ChannelConfig_set_max_dust_htlc_exposure(struct LDKChannelConfig *NONNULL_PTR this_ptr, struct LDKMaxDustHTLCExposure val); + // uint64_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg); /* @internal */ -export function ChannelConfig_set_max_dust_htlc_exposure(this_ptr: bigint, val: bigint): void { +export function WatchedOutput_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_set_max_dust_htlc_exposure(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_WatchedOutput_clone_ptr(arg); + return nativeResponseValue; } - // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr); + // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig); /* @internal */ -export function ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr: bigint): bigint { +export function WatchedOutput_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr); + const nativeResponseValue = wasm.TS_WatchedOutput_clone(orig); return nativeResponseValue; } - // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val); + // bool WatchedOutput_eq(const struct LDKWatchedOutput *NONNULL_PTR a, const struct LDKWatchedOutput *NONNULL_PTR b); /* @internal */ -export function ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr: bigint, val: bigint): void { +export function WatchedOutput_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_WatchedOutput_eq(a, b); + return nativeResponseValue; } - // bool ChannelConfig_get_accept_underpaying_htlcs(const struct LDKChannelConfig *NONNULL_PTR this_ptr); + // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o); /* @internal */ -export function ChannelConfig_get_accept_underpaying_htlcs(this_ptr: bigint): boolean { +export function WatchedOutput_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_get_accept_underpaying_htlcs(this_ptr); + const nativeResponseValue = wasm.TS_WatchedOutput_hash(o); return nativeResponseValue; } - // void ChannelConfig_set_accept_underpaying_htlcs(struct LDKChannelConfig *NONNULL_PTR this_ptr, bool val); + // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr); /* @internal */ -export function ChannelConfig_set_accept_underpaying_htlcs(this_ptr: bigint, val: boolean): void { +export function BroadcasterInterface_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_set_accept_underpaying_htlcs(this_ptr, val); + const nativeResponseValue = wasm.TS_BroadcasterInterface_free(this_ptr); // debug statements here } - // MUST_USE_RES struct LDKChannelConfig ChannelConfig_new(uint32_t forwarding_fee_proportional_millionths_arg, uint32_t forwarding_fee_base_msat_arg, uint16_t cltv_expiry_delta_arg, struct LDKMaxDustHTLCExposure max_dust_htlc_exposure_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg, bool accept_underpaying_htlcs_arg); + // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig); /* @internal */ -export function ChannelConfig_new(forwarding_fee_proportional_millionths_arg: number, forwarding_fee_base_msat_arg: number, cltv_expiry_delta_arg: number, max_dust_htlc_exposure_arg: bigint, force_close_avoidance_max_fee_satoshis_arg: bigint, accept_underpaying_htlcs_arg: boolean): bigint { +export function ConfirmationTarget_clone(orig: bigint): ConfirmationTarget { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_new(forwarding_fee_proportional_millionths_arg, forwarding_fee_base_msat_arg, cltv_expiry_delta_arg, max_dust_htlc_exposure_arg, force_close_avoidance_max_fee_satoshis_arg, accept_underpaying_htlcs_arg); + const nativeResponseValue = wasm.TS_ConfirmationTarget_clone(orig); return nativeResponseValue; } - // uint64_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg); + // enum LDKConfirmationTarget ConfirmationTarget_on_chain_sweep(void); /* @internal */ -export function ChannelConfig_clone_ptr(arg: bigint): bigint { +export function ConfirmationTarget_on_chain_sweep(): ConfirmationTarget { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ConfirmationTarget_on_chain_sweep(); return nativeResponseValue; } - // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig); + // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_anchor_channel_remote_fee(void); /* @internal */ -export function ChannelConfig_clone(orig: bigint): bigint { +export function ConfirmationTarget_min_allowed_anchor_channel_remote_fee(): ConfirmationTarget { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_clone(orig); + const nativeResponseValue = wasm.TS_ConfirmationTarget_min_allowed_anchor_channel_remote_fee(); return nativeResponseValue; } - // bool ChannelConfig_eq(const struct LDKChannelConfig *NONNULL_PTR a, const struct LDKChannelConfig *NONNULL_PTR b); + // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee(void); /* @internal */ -export function ChannelConfig_eq(a: bigint, b: bigint): boolean { +export function ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee(): ConfirmationTarget { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_eq(a, b); + const nativeResponseValue = wasm.TS_ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee(); return nativeResponseValue; } - // void ChannelConfig_apply(struct LDKChannelConfig *NONNULL_PTR this_arg, const struct LDKChannelConfigUpdate *NONNULL_PTR update); + // enum LDKConfirmationTarget ConfirmationTarget_anchor_channel_fee(void); /* @internal */ -export function ChannelConfig_apply(this_arg: bigint, update: bigint): void { +export function ConfirmationTarget_anchor_channel_fee(): ConfirmationTarget { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_apply(this_arg, update); - // debug statements here + const nativeResponseValue = wasm.TS_ConfirmationTarget_anchor_channel_fee(); + return nativeResponseValue; } - // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void); + // enum LDKConfirmationTarget ConfirmationTarget_non_anchor_channel_fee(void); /* @internal */ -export function ChannelConfig_default(): bigint { +export function ConfirmationTarget_non_anchor_channel_fee(): ConfirmationTarget { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_default(); + const nativeResponseValue = wasm.TS_ConfirmationTarget_non_anchor_channel_fee(); return nativeResponseValue; } - // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj); + // enum LDKConfirmationTarget ConfirmationTarget_channel_close_minimum(void); /* @internal */ -export function ChannelConfig_write(obj: bigint): number { +export function ConfirmationTarget_channel_close_minimum(): ConfirmationTarget { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_write(obj); + const nativeResponseValue = wasm.TS_ConfirmationTarget_channel_close_minimum(); return nativeResponseValue; } - // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser); + // enum LDKConfirmationTarget ConfirmationTarget_output_spending_fee(void); /* @internal */ -export function ChannelConfig_read(ser: number): bigint { +export function ConfirmationTarget_output_spending_fee(): ConfirmationTarget { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfig_read(ser); + const nativeResponseValue = wasm.TS_ConfirmationTarget_output_spending_fee(); return nativeResponseValue; } - // void ChannelConfigUpdate_free(struct LDKChannelConfigUpdate this_obj); + // uint64_t ConfirmationTarget_hash(const enum LDKConfirmationTarget *NONNULL_PTR o); /* @internal */ -export function ChannelConfigUpdate_free(this_obj: bigint): void { +export function ConfirmationTarget_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_ConfirmationTarget_hash(o); + return nativeResponseValue; } - // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); + // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b); /* @internal */ -export function ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(this_ptr: bigint): bigint { +export function ConfirmationTarget_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_get_forwarding_fee_proportional_millionths(this_ptr); + const nativeResponseValue = wasm.TS_ConfirmationTarget_eq(a, b); return nativeResponseValue; } - // void ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); + // void FeeEstimator_free(struct LDKFeeEstimator this_ptr); /* @internal */ -export function ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(this_ptr: bigint, val: bigint): void { +export function FeeEstimator_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_set_forwarding_fee_proportional_millionths(this_ptr, val); + const nativeResponseValue = wasm.TS_FeeEstimator_free(this_ptr); // debug statements here } - // struct LDKCOption_u32Z ChannelConfigUpdate_get_forwarding_fee_base_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); + // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj); /* @internal */ -export function ChannelConfigUpdate_get_forwarding_fee_base_msat(this_ptr: bigint): bigint { +export function MonitorUpdateId_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_get_forwarding_fee_base_msat(this_ptr); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_MonitorUpdateId_free(this_obj); + // debug statements here } - // void ChannelConfigUpdate_set_forwarding_fee_base_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); + // uint64_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg); /* @internal */ -export function ChannelConfigUpdate_set_forwarding_fee_base_msat(this_ptr: bigint, val: bigint): void { +export function MonitorUpdateId_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_set_forwarding_fee_base_msat(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_MonitorUpdateId_clone_ptr(arg); + return nativeResponseValue; } - // struct LDKCOption_u16Z ChannelConfigUpdate_get_cltv_expiry_delta(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); + // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig); /* @internal */ -export function ChannelConfigUpdate_get_cltv_expiry_delta(this_ptr: bigint): bigint { +export function MonitorUpdateId_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_get_cltv_expiry_delta(this_ptr); + const nativeResponseValue = wasm.TS_MonitorUpdateId_clone(orig); return nativeResponseValue; } - // void ChannelConfigUpdate_set_cltv_expiry_delta(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val); + // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o); /* @internal */ -export function ChannelConfigUpdate_set_cltv_expiry_delta(this_ptr: bigint, val: bigint): void { +export function MonitorUpdateId_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_set_cltv_expiry_delta(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_MonitorUpdateId_hash(o); + return nativeResponseValue; } - // struct LDKCOption_MaxDustHTLCExposureZ ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); + // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b); /* @internal */ -export function ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(this_ptr: bigint): bigint { +export function MonitorUpdateId_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_get_max_dust_htlc_exposure_msat(this_ptr); + const nativeResponseValue = wasm.TS_MonitorUpdateId_eq(a, b); return nativeResponseValue; } - // void ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_MaxDustHTLCExposureZ val); + // void Persist_free(struct LDKPersist this_ptr); /* @internal */ -export function ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(this_ptr: bigint, val: bigint): void { +export function Persist_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_set_max_dust_htlc_exposure_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_Persist_free(this_ptr); // debug statements here } - // struct LDKCOption_u64Z ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr); + // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj); /* @internal */ -export function ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(this_ptr: bigint): bigint { +export function LockedChannelMonitor_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_get_force_close_avoidance_max_fee_satoshis(this_ptr); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_LockedChannelMonitor_free(this_obj); + // debug statements here } - // void ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfigUpdate *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + // void ChainMonitor_free(struct LDKChainMonitor this_obj); /* @internal */ -export function ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(this_ptr: bigint, val: bigint): void { +export function ChainMonitor_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_set_force_close_avoidance_max_fee_satoshis(this_ptr, val); + const nativeResponseValue = wasm.TS_ChainMonitor_free(this_obj); // debug statements here } - // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_new(struct LDKCOption_u32Z forwarding_fee_proportional_millionths_arg, struct LDKCOption_u32Z forwarding_fee_base_msat_arg, struct LDKCOption_u16Z cltv_expiry_delta_arg, struct LDKCOption_MaxDustHTLCExposureZ max_dust_htlc_exposure_msat_arg, struct LDKCOption_u64Z force_close_avoidance_max_fee_satoshis_arg); + // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister); /* @internal */ -export function ChannelConfigUpdate_new(forwarding_fee_proportional_millionths_arg: bigint, forwarding_fee_base_msat_arg: bigint, cltv_expiry_delta_arg: bigint, max_dust_htlc_exposure_msat_arg: bigint, force_close_avoidance_max_fee_satoshis_arg: bigint): bigint { +export function ChainMonitor_new(chain_source: bigint, broadcaster: bigint, logger: bigint, feeest: bigint, persister: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_new(forwarding_fee_proportional_millionths_arg, forwarding_fee_base_msat_arg, cltv_expiry_delta_arg, max_dust_htlc_exposure_msat_arg, force_close_avoidance_max_fee_satoshis_arg); + const nativeResponseValue = wasm.TS_ChainMonitor_new(chain_source, broadcaster, logger, feeest, persister); return nativeResponseValue; } - // MUST_USE_RES struct LDKChannelConfigUpdate ChannelConfigUpdate_default(void); + // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels); /* @internal */ -export function ChannelConfigUpdate_default(): bigint { +export function ChainMonitor_get_claimable_balances(this_arg: bigint, ignored_channels: number): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelConfigUpdate_default(); + const nativeResponseValue = wasm.TS_ChainMonitor_get_claimable_balances(this_arg, ignored_channels); return nativeResponseValue; } - // void UserConfig_free(struct LDKUserConfig this_obj); -/* @internal */ -export function UserConfig_free(this_obj: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_UserConfig_free(this_obj); - // debug statements here -} - // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo); /* @internal */ -export function UserConfig_get_channel_handshake_config(this_ptr: bigint): bigint { +export function ChainMonitor_get_monitor(this_arg: bigint, funding_txo: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_get_channel_handshake_config(this_ptr); + const nativeResponseValue = wasm.TS_ChainMonitor_get_monitor(this_arg, funding_txo); return nativeResponseValue; } - // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val); + // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointChannelIdZZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg); /* @internal */ -export function UserConfig_set_channel_handshake_config(this_ptr: bigint, val: bigint): void { +export function ChainMonitor_list_monitors(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_set_channel_handshake_config(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChainMonitor_list_monitors(this_arg); + return nativeResponseValue; } - // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ ChainMonitor_list_pending_monitor_updates(const struct LDKChainMonitor *NONNULL_PTR this_arg); /* @internal */ -export function UserConfig_get_channel_handshake_limits(this_ptr: bigint): bigint { +export function ChainMonitor_list_pending_monitor_updates(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_get_channel_handshake_limits(this_ptr); + const nativeResponseValue = wasm.TS_ChainMonitor_list_pending_monitor_updates(this_arg); return nativeResponseValue; } - // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChainMonitor_channel_monitor_updated(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKMonitorUpdateId completed_update_id); /* @internal */ -export function UserConfig_set_channel_handshake_limits(this_ptr: bigint, val: bigint): void { +export function ChainMonitor_channel_monitor_updated(this_arg: bigint, funding_txo: bigint, completed_update_id: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_set_channel_handshake_limits(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChainMonitor_channel_monitor_updated(this_arg, funding_txo, completed_update_id); + return nativeResponseValue; } - // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKFuture ChainMonitor_get_update_future(const struct LDKChainMonitor *NONNULL_PTR this_arg); /* @internal */ -export function UserConfig_get_channel_config(this_ptr: bigint): bigint { +export function ChainMonitor_get_update_future(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_get_channel_config(this_ptr); + const nativeResponseValue = wasm.TS_ChainMonitor_get_update_future(this_arg); return nativeResponseValue; } - // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val); + // void ChainMonitor_rebroadcast_pending_claims(const struct LDKChainMonitor *NONNULL_PTR this_arg); /* @internal */ -export function UserConfig_set_channel_config(this_ptr: bigint, val: bigint): void { +export function ChainMonitor_rebroadcast_pending_claims(this_arg: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_set_channel_config(this_ptr, val); + const nativeResponseValue = wasm.TS_ChainMonitor_rebroadcast_pending_claims(this_arg); // debug statements here } - // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr); + // void ChainMonitor_signer_unblocked(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint monitor_opt); /* @internal */ -export function UserConfig_get_accept_forwards_to_priv_channels(this_ptr: bigint): boolean { +export function ChainMonitor_signer_unblocked(this_arg: bigint, monitor_opt: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_get_accept_forwards_to_priv_channels(this_ptr); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChainMonitor_signer_unblocked(this_arg, monitor_opt); + // debug statements here } - // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); + // void ChainMonitor_archive_fully_resolved_channel_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg); /* @internal */ -export function UserConfig_set_accept_forwards_to_priv_channels(this_ptr: bigint, val: boolean): void { +export function ChainMonitor_archive_fully_resolved_channel_monitors(this_arg: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_set_accept_forwards_to_priv_channels(this_ptr, val); + const nativeResponseValue = wasm.TS_ChainMonitor_archive_fully_resolved_channel_monitors(this_arg); // debug statements here } - // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr); + // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg); /* @internal */ -export function UserConfig_get_accept_inbound_channels(this_ptr: bigint): boolean { +export function ChainMonitor_as_Listen(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_get_accept_inbound_channels(this_ptr); + const nativeResponseValue = wasm.TS_ChainMonitor_as_Listen(this_arg); return nativeResponseValue; } - // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); -/* @internal */ -export function UserConfig_set_accept_inbound_channels(this_ptr: bigint, val: boolean): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_UserConfig_set_accept_inbound_channels(this_ptr, val); - // debug statements here -} - // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr); + // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg); /* @internal */ -export function UserConfig_get_manually_accept_inbound_channels(this_ptr: bigint): boolean { +export function ChainMonitor_as_Confirm(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_get_manually_accept_inbound_channels(this_ptr); + const nativeResponseValue = wasm.TS_ChainMonitor_as_Confirm(this_arg); return nativeResponseValue; } - // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); + // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg); /* @internal */ -export function UserConfig_set_manually_accept_inbound_channels(this_ptr: bigint, val: boolean): void { +export function ChainMonitor_as_Watch(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_set_manually_accept_inbound_channels(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChainMonitor_as_Watch(this_arg); + return nativeResponseValue; } - // bool UserConfig_get_accept_intercept_htlcs(const struct LDKUserConfig *NONNULL_PTR this_ptr); + // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg); /* @internal */ -export function UserConfig_get_accept_intercept_htlcs(this_ptr: bigint): boolean { +export function ChainMonitor_as_EventsProvider(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_get_accept_intercept_htlcs(this_ptr); + const nativeResponseValue = wasm.TS_ChainMonitor_as_EventsProvider(this_arg); return nativeResponseValue; } - // void UserConfig_set_accept_intercept_htlcs(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); + // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj); /* @internal */ -export function UserConfig_set_accept_intercept_htlcs(this_ptr: bigint, val: boolean): void { +export function ChannelMonitorUpdate_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_set_accept_intercept_htlcs(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_free(this_obj); // debug statements here } - // bool UserConfig_get_accept_mpp_keysend(const struct LDKUserConfig *NONNULL_PTR this_ptr); + // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr); /* @internal */ -export function UserConfig_get_accept_mpp_keysend(this_ptr: bigint): boolean { +export function ChannelMonitorUpdate_get_update_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_get_accept_mpp_keysend(this_ptr); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_get_update_id(this_ptr); return nativeResponseValue; } - // void UserConfig_set_accept_mpp_keysend(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val); + // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function UserConfig_set_accept_mpp_keysend(this_ptr: bigint, val: boolean): void { +export function ChannelMonitorUpdate_set_update_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_set_accept_mpp_keysend(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_set_update_id(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKUserConfig UserConfig_new(struct LDKChannelHandshakeConfig channel_handshake_config_arg, struct LDKChannelHandshakeLimits channel_handshake_limits_arg, struct LDKChannelConfig channel_config_arg, bool accept_forwards_to_priv_channels_arg, bool accept_inbound_channels_arg, bool manually_accept_inbound_channels_arg, bool accept_intercept_htlcs_arg, bool accept_mpp_keysend_arg); + // struct LDKChannelId ChannelMonitorUpdate_get_channel_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr); /* @internal */ -export function UserConfig_new(channel_handshake_config_arg: bigint, channel_handshake_limits_arg: bigint, channel_config_arg: bigint, accept_forwards_to_priv_channels_arg: boolean, accept_inbound_channels_arg: boolean, manually_accept_inbound_channels_arg: boolean, accept_intercept_htlcs_arg: boolean, accept_mpp_keysend_arg: boolean): bigint { +export function ChannelMonitorUpdate_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_new(channel_handshake_config_arg, channel_handshake_limits_arg, channel_config_arg, accept_forwards_to_priv_channels_arg, accept_inbound_channels_arg, manually_accept_inbound_channels_arg, accept_intercept_htlcs_arg, accept_mpp_keysend_arg); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_get_channel_id(this_ptr); return nativeResponseValue; } - // uint64_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg); + // void ChannelMonitorUpdate_set_channel_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function UserConfig_clone_ptr(arg: bigint): bigint { +export function ChannelMonitorUpdate_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_set_channel_id(this_ptr, val); + // debug statements here } - // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig); + // uint64_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg); /* @internal */ -export function UserConfig_clone(orig: bigint): bigint { +export function ChannelMonitorUpdate_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_clone(orig); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone_ptr(arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKUserConfig UserConfig_default(void); + // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig); /* @internal */ -export function UserConfig_default(): bigint { +export function ChannelMonitorUpdate_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_UserConfig_default(); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone(orig); return nativeResponseValue; } - // void BestBlock_free(struct LDKBestBlock this_obj); + // bool ChannelMonitorUpdate_eq(const struct LDKChannelMonitorUpdate *NONNULL_PTR a, const struct LDKChannelMonitorUpdate *NONNULL_PTR b); /* @internal */ -export function BestBlock_free(this_obj: bigint): void { +export function ChannelMonitorUpdate_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BestBlock_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_eq(a, b); + return nativeResponseValue; } - // uint64_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg); + // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj); /* @internal */ -export function BestBlock_clone_ptr(arg: bigint): bigint { +export function ChannelMonitorUpdate_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BestBlock_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_write(obj); return nativeResponseValue; } - // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig); + // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser); /* @internal */ -export function BestBlock_clone(orig: bigint): bigint { +export function ChannelMonitorUpdate_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BestBlock_clone(orig); + const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_read(ser); return nativeResponseValue; } - // bool BestBlock_eq(const struct LDKBestBlock *NONNULL_PTR a, const struct LDKBestBlock *NONNULL_PTR b); + // void MonitorEvent_free(struct LDKMonitorEvent this_ptr); /* @internal */ -export function BestBlock_eq(a: bigint, b: bigint): boolean { +export function MonitorEvent_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BestBlock_eq(a, b); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_MonitorEvent_free(this_ptr); + // debug statements here } - // MUST_USE_RES struct LDKBestBlock BestBlock_from_network(enum LDKNetwork network); + // uint64_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg); /* @internal */ -export function BestBlock_from_network(network: Network): bigint { +export function MonitorEvent_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BestBlock_from_network(network); + const nativeResponseValue = wasm.TS_MonitorEvent_clone_ptr(arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height); + // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig); /* @internal */ -export function BestBlock_new(block_hash: number, height: number): bigint { +export function MonitorEvent_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BestBlock_new(block_hash, height); + const nativeResponseValue = wasm.TS_MonitorEvent_clone(orig); return nativeResponseValue; } - // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg); + // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a); /* @internal */ -export function BestBlock_block_hash(this_arg: bigint): number { +export function MonitorEvent_htlcevent(a: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BestBlock_block_hash(this_arg); + const nativeResponseValue = wasm.TS_MonitorEvent_htlcevent(a); return nativeResponseValue; } - // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg); + // struct LDKMonitorEvent MonitorEvent_holder_force_closed_with_info(struct LDKClosureReason reason, struct LDKOutPoint outpoint, struct LDKChannelId channel_id); /* @internal */ -export function BestBlock_height(this_arg: bigint): number { +export function MonitorEvent_holder_force_closed_with_info(reason: bigint, outpoint: bigint, channel_id: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BestBlock_height(this_arg); + const nativeResponseValue = wasm.TS_MonitorEvent_holder_force_closed_with_info(reason, outpoint, channel_id); return nativeResponseValue; } - // void Listen_free(struct LDKListen this_ptr); + // struct LDKMonitorEvent MonitorEvent_holder_force_closed(struct LDKOutPoint a); /* @internal */ -export function Listen_free(this_ptr: bigint): void { +export function MonitorEvent_holder_force_closed(a: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Listen_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_MonitorEvent_holder_force_closed(a); + return nativeResponseValue; } - // void Confirm_free(struct LDKConfirm this_ptr); + // struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, struct LDKChannelId channel_id, uint64_t monitor_update_id); /* @internal */ -export function Confirm_free(this_ptr: bigint): void { +export function MonitorEvent_completed(funding_txo: bigint, channel_id: bigint, monitor_update_id: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Confirm_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_MonitorEvent_completed(funding_txo, channel_id, monitor_update_id); + return nativeResponseValue; } - // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR orig); + // bool MonitorEvent_eq(const struct LDKMonitorEvent *NONNULL_PTR a, const struct LDKMonitorEvent *NONNULL_PTR b); /* @internal */ -export function ChannelMonitorUpdateStatus_clone(orig: bigint): ChannelMonitorUpdateStatus { +export function MonitorEvent_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_clone(orig); + const nativeResponseValue = wasm.TS_MonitorEvent_eq(a, b); return nativeResponseValue; } - // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void); + // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj); /* @internal */ -export function ChannelMonitorUpdateStatus_completed(): ChannelMonitorUpdateStatus { +export function MonitorEvent_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_completed(); + const nativeResponseValue = wasm.TS_MonitorEvent_write(obj); return nativeResponseValue; } - // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void); + // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser); /* @internal */ -export function ChannelMonitorUpdateStatus_in_progress(): ChannelMonitorUpdateStatus { +export function MonitorEvent_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_in_progress(); + const nativeResponseValue = wasm.TS_MonitorEvent_read(ser); return nativeResponseValue; } - // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_unrecoverable_error(void); + // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj); /* @internal */ -export function ChannelMonitorUpdateStatus_unrecoverable_error(): ChannelMonitorUpdateStatus { +export function HTLCUpdate_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_unrecoverable_error(); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_HTLCUpdate_free(this_obj); + // debug statements here } - // bool ChannelMonitorUpdateStatus_eq(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR a, const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR b); + // uint64_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg); /* @internal */ -export function ChannelMonitorUpdateStatus_eq(a: bigint, b: bigint): boolean { +export function HTLCUpdate_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_eq(a, b); + const nativeResponseValue = wasm.TS_HTLCUpdate_clone_ptr(arg); return nativeResponseValue; } - // void Watch_free(struct LDKWatch this_ptr); + // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig); /* @internal */ -export function Watch_free(this_ptr: bigint): void { +export function HTLCUpdate_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Watch_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_HTLCUpdate_clone(orig); + return nativeResponseValue; } - // void Filter_free(struct LDKFilter this_ptr); + // bool HTLCUpdate_eq(const struct LDKHTLCUpdate *NONNULL_PTR a, const struct LDKHTLCUpdate *NONNULL_PTR b); /* @internal */ -export function Filter_free(this_ptr: bigint): void { +export function HTLCUpdate_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Filter_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_HTLCUpdate_eq(a, b); + return nativeResponseValue; } - // void WatchedOutput_free(struct LDKWatchedOutput this_obj); + // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj); /* @internal */ -export function WatchedOutput_free(this_obj: bigint): void { +export function HTLCUpdate_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_WatchedOutput_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_HTLCUpdate_write(obj); + return nativeResponseValue; } - // struct LDKCOption_ThirtyTwoBytesZ WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); + // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser); /* @internal */ -export function WatchedOutput_get_block_hash(this_ptr: bigint): bigint { +export function HTLCUpdate_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_WatchedOutput_get_block_hash(this_ptr); + const nativeResponseValue = wasm.TS_HTLCUpdate_read(ser); return nativeResponseValue; } - // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCOption_ThirtyTwoBytesZ val); + // void Balance_free(struct LDKBalance this_ptr); /* @internal */ -export function WatchedOutput_set_block_hash(this_ptr: bigint, val: bigint): void { +export function Balance_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_WatchedOutput_set_block_hash(this_ptr, val); + const nativeResponseValue = wasm.TS_Balance_free(this_ptr); // debug statements here } - // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); + // uint64_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg); /* @internal */ -export function WatchedOutput_get_outpoint(this_ptr: bigint): bigint { +export function Balance_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_WatchedOutput_get_outpoint(this_ptr); + const nativeResponseValue = wasm.TS_Balance_clone_ptr(arg); return nativeResponseValue; } - // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val); + // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig); /* @internal */ -export function WatchedOutput_set_outpoint(this_ptr: bigint, val: bigint): void { +export function Balance_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_WatchedOutput_set_outpoint(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_Balance_clone(orig); + return nativeResponseValue; } - // struct LDKCVec_u8Z WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr); + // struct LDKBalance Balance_claimable_on_channel_close(uint64_t amount_satoshis); /* @internal */ -export function WatchedOutput_get_script_pubkey(this_ptr: bigint): number { +export function Balance_claimable_on_channel_close(amount_satoshis: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_WatchedOutput_get_script_pubkey(this_ptr); + const nativeResponseValue = wasm.TS_Balance_claimable_on_channel_close(amount_satoshis); return nativeResponseValue; } - // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); + // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t amount_satoshis, uint32_t confirmation_height); /* @internal */ -export function WatchedOutput_set_script_pubkey(this_ptr: bigint, val: number): void { +export function Balance_claimable_awaiting_confirmations(amount_satoshis: bigint, confirmation_height: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_WatchedOutput_set_script_pubkey(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_Balance_claimable_awaiting_confirmations(amount_satoshis, confirmation_height); + return nativeResponseValue; } - // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKCOption_ThirtyTwoBytesZ block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg); + // struct LDKBalance Balance_contentious_claimable(uint64_t amount_satoshis, uint32_t timeout_height, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_preimage); /* @internal */ -export function WatchedOutput_new(block_hash_arg: bigint, outpoint_arg: bigint, script_pubkey_arg: number): bigint { +export function Balance_contentious_claimable(amount_satoshis: bigint, timeout_height: number, payment_hash: number, payment_preimage: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_WatchedOutput_new(block_hash_arg, outpoint_arg, script_pubkey_arg); + const nativeResponseValue = wasm.TS_Balance_contentious_claimable(amount_satoshis, timeout_height, payment_hash, payment_preimage); return nativeResponseValue; } - // uint64_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg); + // struct LDKBalance Balance_maybe_timeout_claimable_htlc(uint64_t amount_satoshis, uint32_t claimable_height, struct LDKThirtyTwoBytes payment_hash); /* @internal */ -export function WatchedOutput_clone_ptr(arg: bigint): bigint { +export function Balance_maybe_timeout_claimable_htlc(amount_satoshis: bigint, claimable_height: number, payment_hash: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_WatchedOutput_clone_ptr(arg); + const nativeResponseValue = wasm.TS_Balance_maybe_timeout_claimable_htlc(amount_satoshis, claimable_height, payment_hash); return nativeResponseValue; } - // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig); + // struct LDKBalance Balance_maybe_preimage_claimable_htlc(uint64_t amount_satoshis, uint32_t expiry_height, struct LDKThirtyTwoBytes payment_hash); /* @internal */ -export function WatchedOutput_clone(orig: bigint): bigint { +export function Balance_maybe_preimage_claimable_htlc(amount_satoshis: bigint, expiry_height: number, payment_hash: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_WatchedOutput_clone(orig); + const nativeResponseValue = wasm.TS_Balance_maybe_preimage_claimable_htlc(amount_satoshis, expiry_height, payment_hash); return nativeResponseValue; } - // bool WatchedOutput_eq(const struct LDKWatchedOutput *NONNULL_PTR a, const struct LDKWatchedOutput *NONNULL_PTR b); + // struct LDKBalance Balance_counterparty_revoked_output_claimable(uint64_t amount_satoshis); /* @internal */ -export function WatchedOutput_eq(a: bigint, b: bigint): boolean { +export function Balance_counterparty_revoked_output_claimable(amount_satoshis: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_WatchedOutput_eq(a, b); + const nativeResponseValue = wasm.TS_Balance_counterparty_revoked_output_claimable(amount_satoshis); return nativeResponseValue; } - // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o); + // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b); /* @internal */ -export function WatchedOutput_hash(o: bigint): bigint { +export function Balance_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_WatchedOutput_hash(o); + const nativeResponseValue = wasm.TS_Balance_eq(a, b); return nativeResponseValue; } - // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr); + // MUST_USE_RES uint64_t Balance_claimable_amount_satoshis(const struct LDKBalance *NONNULL_PTR this_arg); /* @internal */ -export function BroadcasterInterface_free(this_ptr: bigint): void { +export function Balance_claimable_amount_satoshis(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BroadcasterInterface_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_Balance_claimable_amount_satoshis(this_arg); + return nativeResponseValue; } - // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig); + // void ChannelMonitor_free(struct LDKChannelMonitor this_obj); /* @internal */ -export function ConfirmationTarget_clone(orig: bigint): ConfirmationTarget { +export function ChannelMonitor_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ConfirmationTarget_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelMonitor_free(this_obj); + // debug statements here } - // enum LDKConfirmationTarget ConfirmationTarget_on_chain_sweep(void); + // uint64_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg); /* @internal */ -export function ConfirmationTarget_on_chain_sweep(): ConfirmationTarget { +export function ChannelMonitor_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ConfirmationTarget_on_chain_sweep(); + const nativeResponseValue = wasm.TS_ChannelMonitor_clone_ptr(arg); return nativeResponseValue; } - // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_anchor_channel_remote_fee(void); + // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig); /* @internal */ -export function ConfirmationTarget_min_allowed_anchor_channel_remote_fee(): ConfirmationTarget { +export function ChannelMonitor_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ConfirmationTarget_min_allowed_anchor_channel_remote_fee(); + const nativeResponseValue = wasm.TS_ChannelMonitor_clone(orig); return nativeResponseValue; } - // enum LDKConfirmationTarget ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee(void); + // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj); /* @internal */ -export function ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee(): ConfirmationTarget { +export function ChannelMonitor_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ConfirmationTarget_min_allowed_non_anchor_channel_remote_fee(); + const nativeResponseValue = wasm.TS_ChannelMonitor_write(obj); return nativeResponseValue; } - // enum LDKConfirmationTarget ConfirmationTarget_anchor_channel_fee(void); + // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, const struct LDKLogger *NONNULL_PTR logger); /* @internal */ -export function ConfirmationTarget_anchor_channel_fee(): ConfirmationTarget { +export function ChannelMonitor_update_monitor(this_arg: bigint, updates: bigint, broadcaster: bigint, fee_estimator: bigint, logger: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ConfirmationTarget_anchor_channel_fee(); + const nativeResponseValue = wasm.TS_ChannelMonitor_update_monitor(this_arg, updates, broadcaster, fee_estimator, logger); return nativeResponseValue; } - // enum LDKConfirmationTarget ConfirmationTarget_non_anchor_channel_fee(void); + // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /* @internal */ -export function ConfirmationTarget_non_anchor_channel_fee(): ConfirmationTarget { +export function ChannelMonitor_get_latest_update_id(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ConfirmationTarget_non_anchor_channel_fee(); + const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_update_id(this_arg); return nativeResponseValue; } - // enum LDKConfirmationTarget ConfirmationTarget_channel_close_minimum(void); + // MUST_USE_RES struct LDKC2Tuple_OutPointCVec_u8ZZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /* @internal */ -export function ConfirmationTarget_channel_close_minimum(): ConfirmationTarget { +export function ChannelMonitor_get_funding_txo(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ConfirmationTarget_channel_close_minimum(); + const nativeResponseValue = wasm.TS_ChannelMonitor_get_funding_txo(this_arg); return nativeResponseValue; } - // uint64_t ConfirmationTarget_hash(const enum LDKConfirmationTarget *NONNULL_PTR o); + // MUST_USE_RES struct LDKChannelId ChannelMonitor_channel_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /* @internal */ -export function ConfirmationTarget_hash(o: bigint): bigint { +export function ChannelMonitor_channel_id(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ConfirmationTarget_hash(o); + const nativeResponseValue = wasm.TS_ChannelMonitor_channel_id(this_arg); return nativeResponseValue; } - // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b); + // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /* @internal */ -export function ConfirmationTarget_eq(a: bigint, b: bigint): boolean { +export function ChannelMonitor_get_outputs_to_watch(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ConfirmationTarget_eq(a, b); + const nativeResponseValue = wasm.TS_ChannelMonitor_get_outputs_to_watch(this_arg); return nativeResponseValue; } - // void FeeEstimator_free(struct LDKFeeEstimator this_ptr); + // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter, const struct LDKLogger *NONNULL_PTR logger); /* @internal */ -export function FeeEstimator_free(this_ptr: bigint): void { +export function ChannelMonitor_load_outputs_to_watch(this_arg: bigint, filter: bigint, logger: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_FeeEstimator_free(this_ptr); + const nativeResponseValue = wasm.TS_ChannelMonitor_load_outputs_to_watch(this_arg, filter, logger); // debug statements here } - // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj); + // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /* @internal */ -export function MonitorUpdateId_free(this_obj: bigint): void { +export function ChannelMonitor_get_and_clear_pending_monitor_events(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorUpdateId_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_monitor_events(this_arg); + return nativeResponseValue; } - // uint64_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg); + // void ChannelMonitor_process_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKEventHandler *NONNULL_PTR handler); /* @internal */ -export function MonitorUpdateId_clone_ptr(arg: bigint): bigint { +export function ChannelMonitor_process_pending_events(this_arg: bigint, handler: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorUpdateId_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelMonitor_process_pending_events(this_arg, handler); + // debug statements here } - // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig); + // MUST_USE_RES struct LDKCommitmentTransaction ChannelMonitor_initial_counterparty_commitment_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /* @internal */ -export function MonitorUpdateId_clone(orig: bigint): bigint { +export function ChannelMonitor_initial_counterparty_commitment_tx(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorUpdateId_clone(orig); + const nativeResponseValue = wasm.TS_ChannelMonitor_initial_counterparty_commitment_tx(this_arg); return nativeResponseValue; } - // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o); + // MUST_USE_RES struct LDKCVec_CommitmentTransactionZ ChannelMonitor_counterparty_commitment_txs_from_update(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR update); /* @internal */ -export function MonitorUpdateId_hash(o: bigint): bigint { +export function ChannelMonitor_counterparty_commitment_txs_from_update(this_arg: bigint, update: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorUpdateId_hash(o); + const nativeResponseValue = wasm.TS_ChannelMonitor_counterparty_commitment_txs_from_update(this_arg, update); return nativeResponseValue; } - // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b); + // MUST_USE_RES struct LDKCResult_TransactionNoneZ ChannelMonitor_sign_to_local_justice_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input_idx, uint64_t value, uint64_t commitment_number); /* @internal */ -export function MonitorUpdateId_eq(a: bigint, b: bigint): boolean { +export function ChannelMonitor_sign_to_local_justice_tx(this_arg: bigint, justice_tx: number, input_idx: number, value: bigint, commitment_number: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorUpdateId_eq(a, b); + const nativeResponseValue = wasm.TS_ChannelMonitor_sign_to_local_justice_tx(this_arg, justice_tx, input_idx, value, commitment_number); return nativeResponseValue; } - // void Persist_free(struct LDKPersist this_ptr); + // MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /* @internal */ -export function Persist_free(this_ptr: bigint): void { +export function ChannelMonitor_get_counterparty_node_id(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Persist_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelMonitor_get_counterparty_node_id(this_arg); + return nativeResponseValue; } - // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj); + // void ChannelMonitor_broadcast_latest_holder_commitment_txn(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, const struct LDKLogger *NONNULL_PTR logger); /* @internal */ -export function LockedChannelMonitor_free(this_obj: bigint): void { +export function ChannelMonitor_broadcast_latest_holder_commitment_txn(this_arg: bigint, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_LockedChannelMonitor_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelMonitor_broadcast_latest_holder_commitment_txn(this_arg, broadcaster, fee_estimator, logger); // debug statements here } - // void ChainMonitor_free(struct LDKChainMonitor this_obj); + // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_block_connected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); /* @internal */ -export function ChainMonitor_free(this_obj: bigint): void { +export function ChannelMonitor_block_connected(this_arg: bigint, header: number, txdata: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelMonitor_block_connected(this_arg, header, txdata, height, broadcaster, fee_estimator, logger); + return nativeResponseValue; } - // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister); + // void ChannelMonitor_block_disconnected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); /* @internal */ -export function ChainMonitor_new(chain_source: bigint, broadcaster: bigint, logger: bigint, feeest: bigint, persister: bigint): bigint { +export function ChannelMonitor_block_disconnected(this_arg: bigint, header: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_new(chain_source, broadcaster, logger, feeest, persister); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelMonitor_block_disconnected(this_arg, header, height, broadcaster, fee_estimator, logger); + // debug statements here } - // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels); + // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_transactions_confirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); /* @internal */ -export function ChainMonitor_get_claimable_balances(this_arg: bigint, ignored_channels: number): number { +export function ChannelMonitor_transactions_confirmed(this_arg: bigint, header: number, txdata: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_get_claimable_balances(this_arg, ignored_channels); + const nativeResponseValue = wasm.TS_ChannelMonitor_transactions_confirmed(this_arg, header, txdata, height, broadcaster, fee_estimator, logger); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo); + // void ChannelMonitor_transaction_unconfirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); /* @internal */ -export function ChainMonitor_get_monitor(this_arg: bigint, funding_txo: bigint): bigint { +export function ChannelMonitor_transaction_unconfirmed(this_arg: bigint, txid: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_get_monitor(this_arg, funding_txo); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelMonitor_transaction_unconfirmed(this_arg, txid, broadcaster, fee_estimator, logger); + // debug statements here } - // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_best_block_updated(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); /* @internal */ -export function ChainMonitor_list_monitors(this_arg: bigint): number { +export function ChannelMonitor_best_block_updated(this_arg: bigint, header: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_list_monitors(this_arg); + const nativeResponseValue = wasm.TS_ChannelMonitor_best_block_updated(this_arg, header, height, broadcaster, fee_estimator, logger); return nativeResponseValue; } - // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ ChainMonitor_list_pending_monitor_updates(const struct LDKChainMonitor *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /* @internal */ -export function ChainMonitor_list_pending_monitor_updates(this_arg: bigint): number { +export function ChannelMonitor_get_relevant_txids(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_list_pending_monitor_updates(this_arg); + const nativeResponseValue = wasm.TS_ChannelMonitor_get_relevant_txids(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChainMonitor_channel_monitor_updated(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKMonitorUpdateId completed_update_id); + // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /* @internal */ -export function ChainMonitor_channel_monitor_updated(this_arg: bigint, funding_txo: bigint, completed_update_id: bigint): bigint { +export function ChannelMonitor_current_best_block(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_channel_monitor_updated(this_arg, funding_txo, completed_update_id); + const nativeResponseValue = wasm.TS_ChannelMonitor_current_best_block(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKFuture ChainMonitor_get_update_future(const struct LDKChainMonitor *NONNULL_PTR this_arg); + // void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); /* @internal */ -export function ChainMonitor_get_update_future(this_arg: bigint): bigint { +export function ChannelMonitor_rebroadcast_pending_claims(this_arg: bigint, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_get_update_future(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelMonitor_rebroadcast_pending_claims(this_arg, broadcaster, fee_estimator, logger); + // debug statements here } - // void ChainMonitor_rebroadcast_pending_claims(const struct LDKChainMonitor *NONNULL_PTR this_arg); + // void ChannelMonitor_signer_unblocked(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); /* @internal */ -export function ChainMonitor_rebroadcast_pending_claims(this_arg: bigint): void { +export function ChannelMonitor_signer_unblocked(this_arg: bigint, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_rebroadcast_pending_claims(this_arg); + const nativeResponseValue = wasm.TS_ChannelMonitor_signer_unblocked(this_arg, broadcaster, fee_estimator, logger); // debug statements here } - // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCVec_SpendableOutputDescriptorZ ChannelMonitor_get_spendable_outputs(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction tx, uint32_t confirmation_height); /* @internal */ -export function ChainMonitor_as_Listen(this_arg: bigint): bigint { +export function ChannelMonitor_get_spendable_outputs(this_arg: bigint, tx: number, confirmation_height: number): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_as_Listen(this_arg); + const nativeResponseValue = wasm.TS_ChannelMonitor_get_spendable_outputs(this_arg, tx, confirmation_height); return nativeResponseValue; } - // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg); + // MUST_USE_RES bool ChannelMonitor_is_fully_resolved(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger); /* @internal */ -export function ChainMonitor_as_Confirm(this_arg: bigint): bigint { +export function ChannelMonitor_is_fully_resolved(this_arg: bigint, logger: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_as_Confirm(this_arg); + const nativeResponseValue = wasm.TS_ChannelMonitor_is_fully_resolved(this_arg, logger); return nativeResponseValue; } - // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg); /* @internal */ -export function ChainMonitor_as_Watch(this_arg: bigint): bigint { +export function ChannelMonitor_get_claimable_balances(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_as_Watch(this_arg); + const nativeResponseValue = wasm.TS_ChannelMonitor_get_claimable_balances(this_arg); return nativeResponseValue; } - // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg); + // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b); /* @internal */ -export function ChainMonitor_as_EventsProvider(this_arg: bigint): bigint { +export function C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(ser: number, arg_a: bigint, arg_b: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainMonitor_as_EventsProvider(this_arg); + const nativeResponseValue = wasm.TS_C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(ser, arg_a, arg_b); return nativeResponseValue; } - // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj); + // void OutPoint_free(struct LDKOutPoint this_obj); /* @internal */ -export function ChannelMonitorUpdate_free(this_obj: bigint): void { +export function OutPoint_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_free(this_obj); + const nativeResponseValue = wasm.TS_OutPoint_free(this_obj); // debug statements here } - // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr); + // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32]; /* @internal */ -export function ChannelMonitorUpdate_get_update_id(this_ptr: bigint): bigint { +export function OutPoint_get_txid(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_get_update_id(this_ptr); + const nativeResponseValue = wasm.TS_OutPoint_get_txid(this_ptr); return nativeResponseValue; } - // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val); + // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); /* @internal */ -export function ChannelMonitorUpdate_set_update_id(this_ptr: bigint, val: bigint): void { +export function OutPoint_set_txid(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_set_update_id(this_ptr, val); + const nativeResponseValue = wasm.TS_OutPoint_set_txid(this_ptr, val); // debug statements here } - // uint64_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg); + // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelMonitorUpdate_clone_ptr(arg: bigint): bigint { +export function OutPoint_get_index(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone_ptr(arg); + const nativeResponseValue = wasm.TS_OutPoint_get_index(this_ptr); return nativeResponseValue; } - // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig); + // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val); /* @internal */ -export function ChannelMonitorUpdate_clone(orig: bigint): bigint { +export function OutPoint_set_index(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_OutPoint_set_index(this_ptr, val); + // debug statements here } - // bool ChannelMonitorUpdate_eq(const struct LDKChannelMonitorUpdate *NONNULL_PTR a, const struct LDKChannelMonitorUpdate *NONNULL_PTR b); + // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg); /* @internal */ -export function ChannelMonitorUpdate_eq(a: bigint, b: bigint): boolean { +export function OutPoint_new(txid_arg: number, index_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_eq(a, b); + const nativeResponseValue = wasm.TS_OutPoint_new(txid_arg, index_arg); return nativeResponseValue; } - // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj); + // uint64_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg); /* @internal */ -export function ChannelMonitorUpdate_write(obj: bigint): number { +export function OutPoint_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_write(obj); + const nativeResponseValue = wasm.TS_OutPoint_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser); + // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig); /* @internal */ -export function ChannelMonitorUpdate_read(ser: number): bigint { +export function OutPoint_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_read(ser); + const nativeResponseValue = wasm.TS_OutPoint_clone(orig); return nativeResponseValue; } - // void MonitorEvent_free(struct LDKMonitorEvent this_ptr); + // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b); /* @internal */ -export function MonitorEvent_free(this_ptr: bigint): void { +export function OutPoint_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorEvent_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_OutPoint_eq(a, b); + return nativeResponseValue; } - // uint64_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg); + // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o); /* @internal */ -export function MonitorEvent_clone_ptr(arg: bigint): bigint { +export function OutPoint_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorEvent_clone_ptr(arg); + const nativeResponseValue = wasm.TS_OutPoint_hash(o); return nativeResponseValue; } - // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig); + // struct LDKStr OutPoint_to_str(const struct LDKOutPoint *NONNULL_PTR o); /* @internal */ -export function MonitorEvent_clone(orig: bigint): bigint { +export function OutPoint_to_str(o: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorEvent_clone(orig); + const nativeResponseValue = wasm.TS_OutPoint_to_str(o); return nativeResponseValue; } - // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a); + // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj); /* @internal */ -export function MonitorEvent_htlcevent(a: bigint): bigint { +export function OutPoint_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorEvent_htlcevent(a); + const nativeResponseValue = wasm.TS_OutPoint_write(obj); return nativeResponseValue; } - // struct LDKMonitorEvent MonitorEvent_holder_force_closed(struct LDKOutPoint a); + // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser); /* @internal */ -export function MonitorEvent_holder_force_closed(a: bigint): bigint { +export function OutPoint_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorEvent_holder_force_closed(a); + const nativeResponseValue = wasm.TS_OutPoint_read(ser); return nativeResponseValue; } - // struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id); + // void InboundHTLCErr_free(struct LDKInboundHTLCErr this_obj); /* @internal */ -export function MonitorEvent_completed(funding_txo: bigint, monitor_update_id: bigint): bigint { +export function InboundHTLCErr_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorEvent_completed(funding_txo, monitor_update_id); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_InboundHTLCErr_free(this_obj); + // debug statements here } - // bool MonitorEvent_eq(const struct LDKMonitorEvent *NONNULL_PTR a, const struct LDKMonitorEvent *NONNULL_PTR b); + // uint16_t InboundHTLCErr_get_err_code(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr); /* @internal */ -export function MonitorEvent_eq(a: bigint, b: bigint): boolean { +export function InboundHTLCErr_get_err_code(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorEvent_eq(a, b); + const nativeResponseValue = wasm.TS_InboundHTLCErr_get_err_code(this_ptr); return nativeResponseValue; } - // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj); + // void InboundHTLCErr_set_err_code(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, uint16_t val); /* @internal */ -export function MonitorEvent_write(obj: bigint): number { +export function InboundHTLCErr_set_err_code(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorEvent_write(obj); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_InboundHTLCErr_set_err_code(this_ptr, val); + // debug statements here } - // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser); + // struct LDKCVec_u8Z InboundHTLCErr_get_err_data(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr); /* @internal */ -export function MonitorEvent_read(ser: number): bigint { +export function InboundHTLCErr_get_err_data(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_MonitorEvent_read(ser); + const nativeResponseValue = wasm.TS_InboundHTLCErr_get_err_data(this_ptr); return nativeResponseValue; } - // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj); + // void InboundHTLCErr_set_err_data(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); /* @internal */ -export function HTLCUpdate_free(this_obj: bigint): void { +export function InboundHTLCErr_set_err_data(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HTLCUpdate_free(this_obj); + const nativeResponseValue = wasm.TS_InboundHTLCErr_set_err_data(this_ptr, val); // debug statements here } - // uint64_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg); + // struct LDKStr InboundHTLCErr_get_msg(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr); /* @internal */ -export function HTLCUpdate_clone_ptr(arg: bigint): bigint { +export function InboundHTLCErr_get_msg(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HTLCUpdate_clone_ptr(arg); + const nativeResponseValue = wasm.TS_InboundHTLCErr_get_msg(this_ptr); return nativeResponseValue; } - // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig); + // void InboundHTLCErr_set_msg(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, struct LDKStr val); /* @internal */ -export function HTLCUpdate_clone(orig: bigint): bigint { +export function InboundHTLCErr_set_msg(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HTLCUpdate_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_InboundHTLCErr_set_msg(this_ptr, val); + // debug statements here } - // bool HTLCUpdate_eq(const struct LDKHTLCUpdate *NONNULL_PTR a, const struct LDKHTLCUpdate *NONNULL_PTR b); + // MUST_USE_RES struct LDKInboundHTLCErr InboundHTLCErr_new(uint16_t err_code_arg, struct LDKCVec_u8Z err_data_arg, struct LDKStr msg_arg); /* @internal */ -export function HTLCUpdate_eq(a: bigint, b: bigint): boolean { +export function InboundHTLCErr_new(err_code_arg: number, err_data_arg: number, msg_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HTLCUpdate_eq(a, b); + const nativeResponseValue = wasm.TS_InboundHTLCErr_new(err_code_arg, err_data_arg, msg_arg); return nativeResponseValue; } - // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj); + // uint64_t InboundHTLCErr_clone_ptr(LDKInboundHTLCErr *NONNULL_PTR arg); /* @internal */ -export function HTLCUpdate_write(obj: bigint): number { +export function InboundHTLCErr_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HTLCUpdate_write(obj); + const nativeResponseValue = wasm.TS_InboundHTLCErr_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser); + // struct LDKInboundHTLCErr InboundHTLCErr_clone(const struct LDKInboundHTLCErr *NONNULL_PTR orig); /* @internal */ -export function HTLCUpdate_read(ser: number): bigint { +export function InboundHTLCErr_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HTLCUpdate_read(ser); + const nativeResponseValue = wasm.TS_InboundHTLCErr_clone(orig); return nativeResponseValue; } - // void Balance_free(struct LDKBalance this_ptr); + // uint64_t InboundHTLCErr_hash(const struct LDKInboundHTLCErr *NONNULL_PTR o); /* @internal */ -export function Balance_free(this_ptr: bigint): void { +export function InboundHTLCErr_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Balance_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_InboundHTLCErr_hash(o); + return nativeResponseValue; } - // uint64_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg); + // bool InboundHTLCErr_eq(const struct LDKInboundHTLCErr *NONNULL_PTR a, const struct LDKInboundHTLCErr *NONNULL_PTR b); /* @internal */ -export function Balance_clone_ptr(arg: bigint): bigint { +export function InboundHTLCErr_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Balance_clone_ptr(arg); + const nativeResponseValue = wasm.TS_InboundHTLCErr_eq(a, b); return nativeResponseValue; } - // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig); + // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ peel_payment_onion(const struct LDKUpdateAddHTLC *NONNULL_PTR msg, const struct LDKNodeSigner *NONNULL_PTR node_signer, const struct LDKLogger *NONNULL_PTR logger, uint32_t cur_height, bool accept_mpp_keysend, bool allow_skimmed_fees); /* @internal */ -export function Balance_clone(orig: bigint): bigint { +export function peel_payment_onion(msg: bigint, node_signer: bigint, logger: bigint, cur_height: number, accept_mpp_keysend: boolean, allow_skimmed_fees: boolean): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Balance_clone(orig); + const nativeResponseValue = wasm.TS_peel_payment_onion(msg, node_signer, logger, cur_height, accept_mpp_keysend, allow_skimmed_fees); return nativeResponseValue; } - // struct LDKBalance Balance_claimable_on_channel_close(uint64_t amount_satoshis); + // void PendingHTLCRouting_free(struct LDKPendingHTLCRouting this_ptr); /* @internal */ -export function Balance_claimable_on_channel_close(amount_satoshis: bigint): bigint { +export function PendingHTLCRouting_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Balance_claimable_on_channel_close(amount_satoshis); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_PendingHTLCRouting_free(this_ptr); + // debug statements here } - // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t amount_satoshis, uint32_t confirmation_height); + // uint64_t PendingHTLCRouting_clone_ptr(LDKPendingHTLCRouting *NONNULL_PTR arg); /* @internal */ -export function Balance_claimable_awaiting_confirmations(amount_satoshis: bigint, confirmation_height: number): bigint { +export function PendingHTLCRouting_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Balance_claimable_awaiting_confirmations(amount_satoshis, confirmation_height); + const nativeResponseValue = wasm.TS_PendingHTLCRouting_clone_ptr(arg); return nativeResponseValue; } - // struct LDKBalance Balance_contentious_claimable(uint64_t amount_satoshis, uint32_t timeout_height, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_preimage); + // struct LDKPendingHTLCRouting PendingHTLCRouting_clone(const struct LDKPendingHTLCRouting *NONNULL_PTR orig); /* @internal */ -export function Balance_contentious_claimable(amount_satoshis: bigint, timeout_height: number, payment_hash: number, payment_preimage: number): bigint { +export function PendingHTLCRouting_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Balance_contentious_claimable(amount_satoshis, timeout_height, payment_hash, payment_preimage); + const nativeResponseValue = wasm.TS_PendingHTLCRouting_clone(orig); return nativeResponseValue; } - // struct LDKBalance Balance_maybe_timeout_claimable_htlc(uint64_t amount_satoshis, uint32_t claimable_height, struct LDKThirtyTwoBytes payment_hash); + // struct LDKPendingHTLCRouting PendingHTLCRouting_forward(struct LDKOnionPacket onion_packet, uint64_t short_channel_id, struct LDKBlindedForward blinded); /* @internal */ -export function Balance_maybe_timeout_claimable_htlc(amount_satoshis: bigint, claimable_height: number, payment_hash: number): bigint { +export function PendingHTLCRouting_forward(onion_packet: bigint, short_channel_id: bigint, blinded: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Balance_maybe_timeout_claimable_htlc(amount_satoshis, claimable_height, payment_hash); + const nativeResponseValue = wasm.TS_PendingHTLCRouting_forward(onion_packet, short_channel_id, blinded); return nativeResponseValue; } - // struct LDKBalance Balance_maybe_preimage_claimable_htlc(uint64_t amount_satoshis, uint32_t expiry_height, struct LDKThirtyTwoBytes payment_hash); + // struct LDKPendingHTLCRouting PendingHTLCRouting_receive(struct LDKFinalOnionHopData payment_data, struct LDKCOption_CVec_u8ZZ payment_metadata, struct LDKCOption_PaymentContextZ payment_context, uint32_t incoming_cltv_expiry, struct LDKThirtyTwoBytes phantom_shared_secret, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs, bool requires_blinded_error); /* @internal */ -export function Balance_maybe_preimage_claimable_htlc(amount_satoshis: bigint, expiry_height: number, payment_hash: number): bigint { +export function PendingHTLCRouting_receive(payment_data: bigint, payment_metadata: bigint, payment_context: bigint, incoming_cltv_expiry: number, phantom_shared_secret: number, custom_tlvs: number, requires_blinded_error: boolean): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Balance_maybe_preimage_claimable_htlc(amount_satoshis, expiry_height, payment_hash); + const nativeResponseValue = wasm.TS_PendingHTLCRouting_receive(payment_data, payment_metadata, payment_context, incoming_cltv_expiry, phantom_shared_secret, custom_tlvs, requires_blinded_error); return nativeResponseValue; } - // struct LDKBalance Balance_counterparty_revoked_output_claimable(uint64_t amount_satoshis); + // struct LDKPendingHTLCRouting PendingHTLCRouting_receive_keysend(struct LDKFinalOnionHopData payment_data, struct LDKThirtyTwoBytes payment_preimage, struct LDKCOption_CVec_u8ZZ payment_metadata, uint32_t incoming_cltv_expiry, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs, bool requires_blinded_error); /* @internal */ -export function Balance_counterparty_revoked_output_claimable(amount_satoshis: bigint): bigint { +export function PendingHTLCRouting_receive_keysend(payment_data: bigint, payment_preimage: number, payment_metadata: bigint, incoming_cltv_expiry: number, custom_tlvs: number, requires_blinded_error: boolean): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Balance_counterparty_revoked_output_claimable(amount_satoshis); + const nativeResponseValue = wasm.TS_PendingHTLCRouting_receive_keysend(payment_data, payment_preimage, payment_metadata, incoming_cltv_expiry, custom_tlvs, requires_blinded_error); return nativeResponseValue; } - // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b); + // void BlindedForward_free(struct LDKBlindedForward this_obj); /* @internal */ -export function Balance_eq(a: bigint, b: bigint): boolean { +export function BlindedForward_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Balance_eq(a, b); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_BlindedForward_free(this_obj); + // debug statements here } - // MUST_USE_RES uint64_t Balance_claimable_amount_satoshis(const struct LDKBalance *NONNULL_PTR this_arg); + // struct LDKPublicKey BlindedForward_get_inbound_blinding_point(const struct LDKBlindedForward *NONNULL_PTR this_ptr); /* @internal */ -export function Balance_claimable_amount_satoshis(this_arg: bigint): bigint { +export function BlindedForward_get_inbound_blinding_point(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Balance_claimable_amount_satoshis(this_arg); + const nativeResponseValue = wasm.TS_BlindedForward_get_inbound_blinding_point(this_ptr); return nativeResponseValue; } - // void ChannelMonitor_free(struct LDKChannelMonitor this_obj); + // void BlindedForward_set_inbound_blinding_point(struct LDKBlindedForward *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function ChannelMonitor_free(this_obj: bigint): void { +export function BlindedForward_set_inbound_blinding_point(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_free(this_obj); + const nativeResponseValue = wasm.TS_BlindedForward_set_inbound_blinding_point(this_ptr, val); // debug statements here } - // uint64_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg); + // enum LDKBlindedFailure BlindedForward_get_failure(const struct LDKBlindedForward *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelMonitor_clone_ptr(arg: bigint): bigint { +export function BlindedForward_get_failure(this_ptr: bigint): BlindedFailure { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_clone_ptr(arg); + const nativeResponseValue = wasm.TS_BlindedForward_get_failure(this_ptr); return nativeResponseValue; } - // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig); + // void BlindedForward_set_failure(struct LDKBlindedForward *NONNULL_PTR this_ptr, enum LDKBlindedFailure val); /* @internal */ -export function ChannelMonitor_clone(orig: bigint): bigint { +export function BlindedForward_set_failure(this_ptr: bigint, val: BlindedFailure): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_BlindedForward_set_failure(this_ptr, val); + // debug statements here } - // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj); + // MUST_USE_RES struct LDKBlindedForward BlindedForward_new(struct LDKPublicKey inbound_blinding_point_arg, enum LDKBlindedFailure failure_arg); /* @internal */ -export function ChannelMonitor_write(obj: bigint): number { +export function BlindedForward_new(inbound_blinding_point_arg: number, failure_arg: BlindedFailure): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_write(obj); + const nativeResponseValue = wasm.TS_BlindedForward_new(inbound_blinding_point_arg, failure_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneNoneZ ChannelMonitor_update_monitor(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR updates, const struct LDKBroadcasterInterface *NONNULL_PTR broadcaster, const struct LDKFeeEstimator *NONNULL_PTR fee_estimator, const struct LDKLogger *NONNULL_PTR logger); + // uint64_t BlindedForward_clone_ptr(LDKBlindedForward *NONNULL_PTR arg); /* @internal */ -export function ChannelMonitor_update_monitor(this_arg: bigint, updates: bigint, broadcaster: bigint, fee_estimator: bigint, logger: bigint): bigint { +export function BlindedForward_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_update_monitor(this_arg, updates, broadcaster, fee_estimator, logger); + const nativeResponseValue = wasm.TS_BlindedForward_clone_ptr(arg); return nativeResponseValue; } - // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg); + // struct LDKBlindedForward BlindedForward_clone(const struct LDKBlindedForward *NONNULL_PTR orig); /* @internal */ -export function ChannelMonitor_get_latest_update_id(this_arg: bigint): bigint { +export function BlindedForward_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_update_id(this_arg); + const nativeResponseValue = wasm.TS_BlindedForward_clone(orig); return nativeResponseValue; } - // MUST_USE_RES struct LDKC2Tuple_OutPointCVec_u8ZZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg); + // uint64_t BlindedForward_hash(const struct LDKBlindedForward *NONNULL_PTR o); /* @internal */ -export function ChannelMonitor_get_funding_txo(this_arg: bigint): bigint { +export function BlindedForward_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_get_funding_txo(this_arg); + const nativeResponseValue = wasm.TS_BlindedForward_hash(o); return nativeResponseValue; } - // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32CVec_u8ZZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg); + // bool BlindedForward_eq(const struct LDKBlindedForward *NONNULL_PTR a, const struct LDKBlindedForward *NONNULL_PTR b); /* @internal */ -export function ChannelMonitor_get_outputs_to_watch(this_arg: bigint): number { +export function BlindedForward_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_get_outputs_to_watch(this_arg); + const nativeResponseValue = wasm.TS_BlindedForward_eq(a, b); return nativeResponseValue; } - // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter, const struct LDKLogger *NONNULL_PTR logger); + // void PendingHTLCInfo_free(struct LDKPendingHTLCInfo this_obj); /* @internal */ -export function ChannelMonitor_load_outputs_to_watch(this_arg: bigint, filter: bigint, logger: bigint): void { +export function PendingHTLCInfo_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_load_outputs_to_watch(this_arg, filter, logger); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_free(this_obj); // debug statements here } - // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg); + // struct LDKPendingHTLCRouting PendingHTLCInfo_get_routing(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelMonitor_get_and_clear_pending_monitor_events(this_arg: bigint): number { +export function PendingHTLCInfo_get_routing(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_monitor_events(this_arg); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_routing(this_ptr); return nativeResponseValue; } - // void ChannelMonitor_process_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKEventHandler *NONNULL_PTR handler); + // void PendingHTLCInfo_set_routing(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKPendingHTLCRouting val); /* @internal */ -export function ChannelMonitor_process_pending_events(this_arg: bigint, handler: bigint): void { +export function PendingHTLCInfo_set_routing(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_process_pending_events(this_arg, handler); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_routing(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKCommitmentTransaction ChannelMonitor_initial_counterparty_commitment_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg); -/* @internal */ -export function ChannelMonitor_initial_counterparty_commitment_tx(this_arg: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_ChannelMonitor_initial_counterparty_commitment_tx(this_arg); - return nativeResponseValue; -} - // MUST_USE_RES struct LDKCVec_CommitmentTransactionZ ChannelMonitor_counterparty_commitment_txs_from_update(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKChannelMonitorUpdate *NONNULL_PTR update); + // const uint8_t (*PendingHTLCInfo_get_incoming_shared_secret(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr))[32]; /* @internal */ -export function ChannelMonitor_counterparty_commitment_txs_from_update(this_arg: bigint, update: bigint): number { +export function PendingHTLCInfo_get_incoming_shared_secret(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_counterparty_commitment_txs_from_update(this_arg, update); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_incoming_shared_secret(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_TransactionNoneZ ChannelMonitor_sign_to_local_justice_tx(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input_idx, uint64_t value, uint64_t commitment_number); + // void PendingHTLCInfo_set_incoming_shared_secret(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); /* @internal */ -export function ChannelMonitor_sign_to_local_justice_tx(this_arg: bigint, justice_tx: number, input_idx: number, value: bigint, commitment_number: bigint): bigint { +export function PendingHTLCInfo_set_incoming_shared_secret(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_sign_to_local_justice_tx(this_arg, justice_tx, input_idx, value, commitment_number); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_incoming_shared_secret(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg); + // const uint8_t (*PendingHTLCInfo_get_payment_hash(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr))[32]; /* @internal */ -export function ChannelMonitor_get_counterparty_node_id(this_arg: bigint): number { +export function PendingHTLCInfo_get_payment_hash(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_get_counterparty_node_id(this_arg); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_payment_hash(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKCVec_TransactionZ ChannelMonitor_get_latest_holder_commitment_txn(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKLogger *NONNULL_PTR logger); + // void PendingHTLCInfo_set_payment_hash(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); /* @internal */ -export function ChannelMonitor_get_latest_holder_commitment_txn(this_arg: bigint, logger: bigint): number { +export function PendingHTLCInfo_set_payment_hash(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_holder_commitment_txn(this_arg, logger); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_payment_hash(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_block_connected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); + // struct LDKCOption_u64Z PendingHTLCInfo_get_incoming_amt_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelMonitor_block_connected(this_arg: bigint, header: number, txdata: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): number { +export function PendingHTLCInfo_get_incoming_amt_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_block_connected(this_arg, header, txdata, height, broadcaster, fee_estimator, logger); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_incoming_amt_msat(this_ptr); return nativeResponseValue; } - // void ChannelMonitor_block_disconnected(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); + // void PendingHTLCInfo_set_incoming_amt_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function ChannelMonitor_block_disconnected(this_arg: bigint, header: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void { +export function PendingHTLCInfo_set_incoming_amt_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_block_disconnected(this_arg, header, height, broadcaster, fee_estimator, logger); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_incoming_amt_msat(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_transactions_confirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); + // uint64_t PendingHTLCInfo_get_outgoing_amt_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelMonitor_transactions_confirmed(this_arg: bigint, header: number, txdata: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): number { +export function PendingHTLCInfo_get_outgoing_amt_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_transactions_confirmed(this_arg, header, txdata, height, broadcaster, fee_estimator, logger); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_outgoing_amt_msat(this_ptr); return nativeResponseValue; } - // void ChannelMonitor_transaction_unconfirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); + // void PendingHTLCInfo_set_outgoing_amt_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function ChannelMonitor_transaction_unconfirmed(this_arg: bigint, txid: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void { +export function PendingHTLCInfo_set_outgoing_amt_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_transaction_unconfirmed(this_arg, txid, broadcaster, fee_estimator, logger); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_outgoing_amt_msat(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKCVec_C2Tuple_ThirtyTwoBytesCVec_C2Tuple_u32TxOutZZZZ ChannelMonitor_best_block_updated(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); + // uint32_t PendingHTLCInfo_get_outgoing_cltv_value(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelMonitor_best_block_updated(this_arg: bigint, header: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): number { +export function PendingHTLCInfo_get_outgoing_cltv_value(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_best_block_updated(this_arg, header, height, broadcaster, fee_estimator, logger); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_outgoing_cltv_value(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKCVec_C3Tuple_ThirtyTwoBytesu32COption_ThirtyTwoBytesZZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg); + // void PendingHTLCInfo_set_outgoing_cltv_value(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function ChannelMonitor_get_relevant_txids(this_arg: bigint): number { +export function PendingHTLCInfo_set_outgoing_cltv_value(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_get_relevant_txids(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_outgoing_cltv_value(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg); + // struct LDKCOption_u64Z PendingHTLCInfo_get_skimmed_fee_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelMonitor_current_best_block(this_arg: bigint): bigint { +export function PendingHTLCInfo_get_skimmed_fee_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_current_best_block(this_arg); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_skimmed_fee_msat(this_ptr); return nativeResponseValue; } - // void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger); + // void PendingHTLCInfo_set_skimmed_fee_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function ChannelMonitor_rebroadcast_pending_claims(this_arg: bigint, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void { +export function PendingHTLCInfo_set_skimmed_fee_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_rebroadcast_pending_claims(this_arg, broadcaster, fee_estimator, logger); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_skimmed_fee_msat(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKCVec_SpendableOutputDescriptorZ ChannelMonitor_get_spendable_outputs(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKTransaction tx, uint32_t confirmation_height); + // MUST_USE_RES struct LDKPendingHTLCInfo PendingHTLCInfo_new(struct LDKPendingHTLCRouting routing_arg, struct LDKThirtyTwoBytes incoming_shared_secret_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_u64Z incoming_amt_msat_arg, uint64_t outgoing_amt_msat_arg, uint32_t outgoing_cltv_value_arg, struct LDKCOption_u64Z skimmed_fee_msat_arg); /* @internal */ -export function ChannelMonitor_get_spendable_outputs(this_arg: bigint, tx: number, confirmation_height: number): number { +export function PendingHTLCInfo_new(routing_arg: bigint, incoming_shared_secret_arg: number, payment_hash_arg: number, incoming_amt_msat_arg: bigint, outgoing_amt_msat_arg: bigint, outgoing_cltv_value_arg: number, skimmed_fee_msat_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_get_spendable_outputs(this_arg, tx, confirmation_height); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_new(routing_arg, incoming_shared_secret_arg, payment_hash_arg, incoming_amt_msat_arg, outgoing_amt_msat_arg, outgoing_cltv_value_arg, skimmed_fee_msat_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg); + // uint64_t PendingHTLCInfo_clone_ptr(LDKPendingHTLCInfo *NONNULL_PTR arg); /* @internal */ -export function ChannelMonitor_get_claimable_balances(this_arg: bigint): number { +export function PendingHTLCInfo_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelMonitor_get_claimable_balances(this_arg); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelMonitorZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b); + // struct LDKPendingHTLCInfo PendingHTLCInfo_clone(const struct LDKPendingHTLCInfo *NONNULL_PTR orig); /* @internal */ -export function C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(ser: number, arg_a: bigint, arg_b: bigint): bigint { +export function PendingHTLCInfo_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_ThirtyTwoBytesChannelMonitorZ_read(ser, arg_a, arg_b); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_clone(orig); return nativeResponseValue; } - // void OutPoint_free(struct LDKOutPoint this_obj); + // enum LDKBlindedFailure BlindedFailure_clone(const enum LDKBlindedFailure *NONNULL_PTR orig); /* @internal */ -export function OutPoint_free(this_obj: bigint): void { +export function BlindedFailure_clone(orig: bigint): BlindedFailure { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_BlindedFailure_clone(orig); + return nativeResponseValue; } - // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32]; + // enum LDKBlindedFailure BlindedFailure_from_introduction_node(void); /* @internal */ -export function OutPoint_get_txid(this_ptr: bigint): number { +export function BlindedFailure_from_introduction_node(): BlindedFailure { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_get_txid(this_ptr); + const nativeResponseValue = wasm.TS_BlindedFailure_from_introduction_node(); return nativeResponseValue; } - // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // enum LDKBlindedFailure BlindedFailure_from_blinded_node(void); /* @internal */ -export function OutPoint_set_txid(this_ptr: bigint, val: number): void { +export function BlindedFailure_from_blinded_node(): BlindedFailure { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_set_txid(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_BlindedFailure_from_blinded_node(); + return nativeResponseValue; } - // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr); + // uint64_t BlindedFailure_hash(const enum LDKBlindedFailure *NONNULL_PTR o); /* @internal */ -export function OutPoint_get_index(this_ptr: bigint): number { +export function BlindedFailure_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_get_index(this_ptr); + const nativeResponseValue = wasm.TS_BlindedFailure_hash(o); return nativeResponseValue; } - // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val); + // bool BlindedFailure_eq(const enum LDKBlindedFailure *NONNULL_PTR a, const enum LDKBlindedFailure *NONNULL_PTR b); /* @internal */ -export function OutPoint_set_index(this_ptr: bigint, val: number): void { +export function BlindedFailure_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_set_index(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_BlindedFailure_eq(a, b); + return nativeResponseValue; } - // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg); + // void FailureCode_free(struct LDKFailureCode this_ptr); /* @internal */ -export function OutPoint_new(txid_arg: number, index_arg: number): bigint { +export function FailureCode_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_new(txid_arg, index_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_FailureCode_free(this_ptr); + // debug statements here } - // uint64_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg); + // uint64_t FailureCode_clone_ptr(LDKFailureCode *NONNULL_PTR arg); /* @internal */ -export function OutPoint_clone_ptr(arg: bigint): bigint { +export function FailureCode_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_clone_ptr(arg); + const nativeResponseValue = wasm.TS_FailureCode_clone_ptr(arg); return nativeResponseValue; } - // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig); + // struct LDKFailureCode FailureCode_clone(const struct LDKFailureCode *NONNULL_PTR orig); /* @internal */ -export function OutPoint_clone(orig: bigint): bigint { +export function FailureCode_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_clone(orig); + const nativeResponseValue = wasm.TS_FailureCode_clone(orig); return nativeResponseValue; } - // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b); + // struct LDKFailureCode FailureCode_temporary_node_failure(void); /* @internal */ -export function OutPoint_eq(a: bigint, b: bigint): boolean { +export function FailureCode_temporary_node_failure(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_eq(a, b); + const nativeResponseValue = wasm.TS_FailureCode_temporary_node_failure(); return nativeResponseValue; } - // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o); + // struct LDKFailureCode FailureCode_required_node_feature_missing(void); /* @internal */ -export function OutPoint_hash(o: bigint): bigint { +export function FailureCode_required_node_feature_missing(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_hash(o); + const nativeResponseValue = wasm.TS_FailureCode_required_node_feature_missing(); return nativeResponseValue; } - // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg); + // struct LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void); /* @internal */ -export function OutPoint_to_channel_id(this_arg: bigint): number { +export function FailureCode_incorrect_or_unknown_payment_details(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_to_channel_id(this_arg); + const nativeResponseValue = wasm.TS_FailureCode_incorrect_or_unknown_payment_details(); return nativeResponseValue; } - // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj); + // struct LDKFailureCode FailureCode_invalid_onion_payload(struct LDKCOption_C2Tuple_u64u16ZZ a); /* @internal */ -export function OutPoint_write(obj: bigint): number { +export function FailureCode_invalid_onion_payload(a: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_write(obj); + const nativeResponseValue = wasm.TS_FailureCode_invalid_onion_payload(a); return nativeResponseValue; } - // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser); + // void ChannelManager_free(struct LDKChannelManager this_obj); /* @internal */ -export function OutPoint_read(ser: number): bigint { +export function ChannelManager_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OutPoint_read(ser); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelManager_free(this_obj); + // debug statements here } - // void InboundHTLCErr_free(struct LDKInboundHTLCErr this_obj); + // void ChainParameters_free(struct LDKChainParameters this_obj); /* @internal */ -export function InboundHTLCErr_free(this_obj: bigint): void { +export function ChainParameters_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_InboundHTLCErr_free(this_obj); + const nativeResponseValue = wasm.TS_ChainParameters_free(this_obj); // debug statements here } - // uint16_t InboundHTLCErr_get_err_code(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr); + // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr); /* @internal */ -export function InboundHTLCErr_get_err_code(this_ptr: bigint): number { +export function ChainParameters_get_network(this_ptr: bigint): Network { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_InboundHTLCErr_get_err_code(this_ptr); + const nativeResponseValue = wasm.TS_ChainParameters_get_network(this_ptr); return nativeResponseValue; } - // void InboundHTLCErr_set_err_code(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, uint16_t val); + // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val); /* @internal */ -export function InboundHTLCErr_set_err_code(this_ptr: bigint, val: number): void { +export function ChainParameters_set_network(this_ptr: bigint, val: Network): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_InboundHTLCErr_set_err_code(this_ptr, val); + const nativeResponseValue = wasm.TS_ChainParameters_set_network(this_ptr, val); // debug statements here } - // struct LDKCVec_u8Z InboundHTLCErr_get_err_data(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr); + // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr); /* @internal */ -export function InboundHTLCErr_get_err_data(this_ptr: bigint): number { +export function ChainParameters_get_best_block(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_InboundHTLCErr_get_err_data(this_ptr); + const nativeResponseValue = wasm.TS_ChainParameters_get_best_block(this_ptr); return nativeResponseValue; } - // void InboundHTLCErr_set_err_data(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); + // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val); /* @internal */ -export function InboundHTLCErr_set_err_data(this_ptr: bigint, val: number): void { +export function ChainParameters_set_best_block(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_InboundHTLCErr_set_err_data(this_ptr, val); + const nativeResponseValue = wasm.TS_ChainParameters_set_best_block(this_ptr, val); // debug statements here } - // struct LDKStr InboundHTLCErr_get_msg(const struct LDKInboundHTLCErr *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg); /* @internal */ -export function InboundHTLCErr_get_msg(this_ptr: bigint): number { +export function ChainParameters_new(network_arg: Network, best_block_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_InboundHTLCErr_get_msg(this_ptr); + const nativeResponseValue = wasm.TS_ChainParameters_new(network_arg, best_block_arg); return nativeResponseValue; } - // void InboundHTLCErr_set_msg(struct LDKInboundHTLCErr *NONNULL_PTR this_ptr, struct LDKStr val); + // uint64_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg); /* @internal */ -export function InboundHTLCErr_set_msg(this_ptr: bigint, val: number): void { +export function ChainParameters_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_InboundHTLCErr_set_msg(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChainParameters_clone_ptr(arg); + return nativeResponseValue; } - // MUST_USE_RES struct LDKInboundHTLCErr InboundHTLCErr_new(uint16_t err_code_arg, struct LDKCVec_u8Z err_data_arg, struct LDKStr msg_arg); + // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig); /* @internal */ -export function InboundHTLCErr_new(err_code_arg: number, err_data_arg: number, msg_arg: number): bigint { +export function ChainParameters_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_InboundHTLCErr_new(err_code_arg, err_data_arg, msg_arg); + const nativeResponseValue = wasm.TS_ChainParameters_clone(orig); return nativeResponseValue; } - // struct LDKCResult_PendingHTLCInfoInboundHTLCErrZ peel_payment_onion(const struct LDKUpdateAddHTLC *NONNULL_PTR msg, const struct LDKNodeSigner *NONNULL_PTR node_signer, const struct LDKLogger *NONNULL_PTR logger, uint32_t cur_height, bool accept_mpp_keysend, bool allow_skimmed_fees); + // void RecentPaymentDetails_free(struct LDKRecentPaymentDetails this_ptr); /* @internal */ -export function peel_payment_onion(msg: bigint, node_signer: bigint, logger: bigint, cur_height: number, accept_mpp_keysend: boolean, allow_skimmed_fees: boolean): bigint { +export function RecentPaymentDetails_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_peel_payment_onion(msg, node_signer, logger, cur_height, accept_mpp_keysend, allow_skimmed_fees); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_RecentPaymentDetails_free(this_ptr); + // debug statements here } - // void PendingHTLCRouting_free(struct LDKPendingHTLCRouting this_ptr); + // uint64_t RecentPaymentDetails_clone_ptr(LDKRecentPaymentDetails *NONNULL_PTR arg); /* @internal */ -export function PendingHTLCRouting_free(this_ptr: bigint): void { +export function RecentPaymentDetails_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCRouting_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_RecentPaymentDetails_clone_ptr(arg); + return nativeResponseValue; } - // uint64_t PendingHTLCRouting_clone_ptr(LDKPendingHTLCRouting *NONNULL_PTR arg); + // struct LDKRecentPaymentDetails RecentPaymentDetails_clone(const struct LDKRecentPaymentDetails *NONNULL_PTR orig); /* @internal */ -export function PendingHTLCRouting_clone_ptr(arg: bigint): bigint { +export function RecentPaymentDetails_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCRouting_clone_ptr(arg); + const nativeResponseValue = wasm.TS_RecentPaymentDetails_clone(orig); return nativeResponseValue; } - // struct LDKPendingHTLCRouting PendingHTLCRouting_clone(const struct LDKPendingHTLCRouting *NONNULL_PTR orig); + // struct LDKRecentPaymentDetails RecentPaymentDetails_awaiting_invoice(struct LDKThirtyTwoBytes payment_id); /* @internal */ -export function PendingHTLCRouting_clone(orig: bigint): bigint { +export function RecentPaymentDetails_awaiting_invoice(payment_id: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCRouting_clone(orig); + const nativeResponseValue = wasm.TS_RecentPaymentDetails_awaiting_invoice(payment_id); return nativeResponseValue; } - // struct LDKPendingHTLCRouting PendingHTLCRouting_forward(struct LDKOnionPacket onion_packet, uint64_t short_channel_id, struct LDKBlindedForward blinded); + // struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat); /* @internal */ -export function PendingHTLCRouting_forward(onion_packet: bigint, short_channel_id: bigint, blinded: bigint): bigint { +export function RecentPaymentDetails_pending(payment_id: number, payment_hash: number, total_msat: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCRouting_forward(onion_packet, short_channel_id, blinded); + const nativeResponseValue = wasm.TS_RecentPaymentDetails_pending(payment_id, payment_hash, total_msat); return nativeResponseValue; } - // struct LDKPendingHTLCRouting PendingHTLCRouting_receive(struct LDKFinalOnionHopData payment_data, struct LDKCOption_CVec_u8ZZ payment_metadata, uint32_t incoming_cltv_expiry, struct LDKThirtyTwoBytes phantom_shared_secret, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs, bool requires_blinded_error); + // struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash); /* @internal */ -export function PendingHTLCRouting_receive(payment_data: bigint, payment_metadata: bigint, incoming_cltv_expiry: number, phantom_shared_secret: number, custom_tlvs: number, requires_blinded_error: boolean): bigint { +export function RecentPaymentDetails_fulfilled(payment_id: number, payment_hash: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCRouting_receive(payment_data, payment_metadata, incoming_cltv_expiry, phantom_shared_secret, custom_tlvs, requires_blinded_error); + const nativeResponseValue = wasm.TS_RecentPaymentDetails_fulfilled(payment_id, payment_hash); return nativeResponseValue; } - // struct LDKPendingHTLCRouting PendingHTLCRouting_receive_keysend(struct LDKFinalOnionHopData payment_data, struct LDKThirtyTwoBytes payment_preimage, struct LDKCOption_CVec_u8ZZ payment_metadata, uint32_t incoming_cltv_expiry, struct LDKCVec_C2Tuple_u64CVec_u8ZZZ custom_tlvs); + // struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash); /* @internal */ -export function PendingHTLCRouting_receive_keysend(payment_data: bigint, payment_preimage: number, payment_metadata: bigint, incoming_cltv_expiry: number, custom_tlvs: number): bigint { +export function RecentPaymentDetails_abandoned(payment_id: number, payment_hash: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCRouting_receive_keysend(payment_data, payment_preimage, payment_metadata, incoming_cltv_expiry, custom_tlvs); + const nativeResponseValue = wasm.TS_RecentPaymentDetails_abandoned(payment_id, payment_hash); return nativeResponseValue; } - // void BlindedForward_free(struct LDKBlindedForward this_obj); + // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj); /* @internal */ -export function BlindedForward_free(this_obj: bigint): void { +export function PhantomRouteHints_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedForward_free(this_obj); + const nativeResponseValue = wasm.TS_PhantomRouteHints_free(this_obj); // debug statements here } - // struct LDKPublicKey BlindedForward_get_inbound_blinding_point(const struct LDKBlindedForward *NONNULL_PTR this_ptr); + // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr); /* @internal */ -export function BlindedForward_get_inbound_blinding_point(this_ptr: bigint): number { +export function PhantomRouteHints_get_channels(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedForward_get_inbound_blinding_point(this_ptr); + const nativeResponseValue = wasm.TS_PhantomRouteHints_get_channels(this_ptr); return nativeResponseValue; } - // void BlindedForward_set_inbound_blinding_point(struct LDKBlindedForward *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val); /* @internal */ -export function BlindedForward_set_inbound_blinding_point(this_ptr: bigint, val: number): void { +export function PhantomRouteHints_set_channels(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedForward_set_inbound_blinding_point(this_ptr, val); + const nativeResponseValue = wasm.TS_PhantomRouteHints_set_channels(this_ptr, val); // debug statements here } - // enum LDKBlindedFailure BlindedForward_get_failure(const struct LDKBlindedForward *NONNULL_PTR this_ptr); + // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr); /* @internal */ -export function BlindedForward_get_failure(this_ptr: bigint): BlindedFailure { +export function PhantomRouteHints_get_phantom_scid(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedForward_get_failure(this_ptr); + const nativeResponseValue = wasm.TS_PhantomRouteHints_get_phantom_scid(this_ptr); return nativeResponseValue; } - // void BlindedForward_set_failure(struct LDKBlindedForward *NONNULL_PTR this_ptr, enum LDKBlindedFailure val); + // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function BlindedForward_set_failure(this_ptr: bigint, val: BlindedFailure): void { +export function PhantomRouteHints_set_phantom_scid(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedForward_set_failure(this_ptr, val); + const nativeResponseValue = wasm.TS_PhantomRouteHints_set_phantom_scid(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKBlindedForward BlindedForward_new(struct LDKPublicKey inbound_blinding_point_arg, enum LDKBlindedFailure failure_arg); + // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr); /* @internal */ -export function BlindedForward_new(inbound_blinding_point_arg: number, failure_arg: BlindedFailure): bigint { +export function PhantomRouteHints_get_real_node_pubkey(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedForward_new(inbound_blinding_point_arg, failure_arg); + const nativeResponseValue = wasm.TS_PhantomRouteHints_get_real_node_pubkey(this_ptr); return nativeResponseValue; } - // uint64_t BlindedForward_clone_ptr(LDKBlindedForward *NONNULL_PTR arg); + // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function BlindedForward_clone_ptr(arg: bigint): bigint { +export function PhantomRouteHints_set_real_node_pubkey(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedForward_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_PhantomRouteHints_set_real_node_pubkey(this_ptr, val); + // debug statements here } - // struct LDKBlindedForward BlindedForward_clone(const struct LDKBlindedForward *NONNULL_PTR orig); + // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg); /* @internal */ -export function BlindedForward_clone(orig: bigint): bigint { +export function PhantomRouteHints_new(channels_arg: number, phantom_scid_arg: bigint, real_node_pubkey_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedForward_clone(orig); + const nativeResponseValue = wasm.TS_PhantomRouteHints_new(channels_arg, phantom_scid_arg, real_node_pubkey_arg); return nativeResponseValue; } - // uint64_t BlindedForward_hash(const struct LDKBlindedForward *NONNULL_PTR o); + // uint64_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg); /* @internal */ -export function BlindedForward_hash(o: bigint): bigint { +export function PhantomRouteHints_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedForward_hash(o); + const nativeResponseValue = wasm.TS_PhantomRouteHints_clone_ptr(arg); return nativeResponseValue; } - // bool BlindedForward_eq(const struct LDKBlindedForward *NONNULL_PTR a, const struct LDKBlindedForward *NONNULL_PTR b); + // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig); /* @internal */ -export function BlindedForward_eq(a: bigint, b: bigint): boolean { +export function PhantomRouteHints_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedForward_eq(a, b); + const nativeResponseValue = wasm.TS_PhantomRouteHints_clone(orig); return nativeResponseValue; } - // void PendingHTLCInfo_free(struct LDKPendingHTLCInfo this_obj); -/* @internal */ -export function PendingHTLCInfo_free(this_obj: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_free(this_obj); - // debug statements here -} - // struct LDKPendingHTLCRouting PendingHTLCInfo_get_routing(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKChannelManager ChannelManager_new(struct LDKFeeEstimator fee_est, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKRouter router, struct LDKLogger logger, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKSignerProvider signer_provider, struct LDKUserConfig config, struct LDKChainParameters params, uint32_t current_timestamp); /* @internal */ -export function PendingHTLCInfo_get_routing(this_ptr: bigint): bigint { +export function ChannelManager_new(fee_est: bigint, chain_monitor: bigint, tx_broadcaster: bigint, router: bigint, logger: bigint, entropy_source: bigint, node_signer: bigint, signer_provider: bigint, config: bigint, params: bigint, current_timestamp: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_routing(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_new(fee_est, chain_monitor, tx_broadcaster, router, logger, entropy_source, node_signer, signer_provider, config, params, current_timestamp); return nativeResponseValue; } - // void PendingHTLCInfo_set_routing(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKPendingHTLCRouting val); + // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function PendingHTLCInfo_set_routing(this_ptr: bigint, val: bigint): void { +export function ChannelManager_get_current_default_configuration(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_routing(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_get_current_default_configuration(this_arg); + return nativeResponseValue; } - // const uint8_t (*PendingHTLCInfo_get_incoming_shared_secret(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr))[32]; + // MUST_USE_RES struct LDKCResult_ChannelIdAPIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, struct LDKU128 user_channel_id, struct LDKChannelId temporary_channel_id, struct LDKUserConfig override_config); /* @internal */ -export function PendingHTLCInfo_get_incoming_shared_secret(this_ptr: bigint): number { +export function ChannelManager_create_channel(this_arg: bigint, their_network_key: number, channel_value_satoshis: bigint, push_msat: bigint, user_channel_id: number, temporary_channel_id: bigint, override_config: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_incoming_shared_secret(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_create_channel(this_arg, their_network_key, channel_value_satoshis, push_msat, user_channel_id, temporary_channel_id, override_config); return nativeResponseValue; } - // void PendingHTLCInfo_set_incoming_shared_secret(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function PendingHTLCInfo_set_incoming_shared_secret(this_ptr: bigint, val: number): void { +export function ChannelManager_list_channels(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_incoming_shared_secret(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_list_channels(this_arg); + return nativeResponseValue; } - // const uint8_t (*PendingHTLCInfo_get_payment_hash(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr))[32]; + // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function PendingHTLCInfo_get_payment_hash(this_ptr: bigint): number { +export function ChannelManager_list_usable_channels(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_payment_hash(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_list_usable_channels(this_arg); return nativeResponseValue; } - // void PendingHTLCInfo_set_payment_hash(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels_with_counterparty(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id); /* @internal */ -export function PendingHTLCInfo_set_payment_hash(this_ptr: bigint, val: number): void { +export function ChannelManager_list_channels_with_counterparty(this_arg: bigint, counterparty_node_id: number): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_payment_hash(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_list_channels_with_counterparty(this_arg, counterparty_node_id); + return nativeResponseValue; } - // struct LDKCOption_u64Z PendingHTLCInfo_get_incoming_amt_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKCVec_RecentPaymentDetailsZ ChannelManager_list_recent_payments(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function PendingHTLCInfo_get_incoming_amt_msat(this_ptr: bigint): bigint { +export function ChannelManager_list_recent_payments(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_incoming_amt_msat(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_list_recent_payments(this_arg); return nativeResponseValue; } - // void PendingHTLCInfo_set_incoming_amt_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR channel_id, struct LDKPublicKey counterparty_node_id); /* @internal */ -export function PendingHTLCInfo_set_incoming_amt_msat(this_ptr: bigint, val: bigint): void { +export function ChannelManager_close_channel(this_arg: bigint, channel_id: bigint, counterparty_node_id: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_incoming_amt_msat(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_close_channel(this_arg, channel_id, counterparty_node_id); + return nativeResponseValue; } - // uint64_t PendingHTLCInfo_get_outgoing_amt_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel_with_feerate_and_script(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR channel_id, struct LDKPublicKey counterparty_node_id, struct LDKCOption_u32Z target_feerate_sats_per_1000_weight, struct LDKShutdownScript shutdown_script); /* @internal */ -export function PendingHTLCInfo_get_outgoing_amt_msat(this_ptr: bigint): bigint { +export function ChannelManager_close_channel_with_feerate_and_script(this_arg: bigint, channel_id: bigint, counterparty_node_id: number, target_feerate_sats_per_1000_weight: bigint, shutdown_script: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_outgoing_amt_msat(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_close_channel_with_feerate_and_script(this_arg, channel_id, counterparty_node_id, target_feerate_sats_per_1000_weight, shutdown_script); return nativeResponseValue; } - // void PendingHTLCInfo_set_outgoing_amt_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, uint64_t val); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR channel_id, struct LDKPublicKey counterparty_node_id); /* @internal */ -export function PendingHTLCInfo_set_outgoing_amt_msat(this_ptr: bigint, val: bigint): void { +export function ChannelManager_force_close_broadcasting_latest_txn(this_arg: bigint, channel_id: bigint, counterparty_node_id: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_outgoing_amt_msat(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_force_close_broadcasting_latest_txn(this_arg, channel_id, counterparty_node_id); + return nativeResponseValue; } - // uint32_t PendingHTLCInfo_get_outgoing_cltv_value(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR channel_id, struct LDKPublicKey counterparty_node_id); /* @internal */ -export function PendingHTLCInfo_get_outgoing_cltv_value(this_ptr: bigint): number { +export function ChannelManager_force_close_without_broadcasting_txn(this_arg: bigint, channel_id: bigint, counterparty_node_id: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_outgoing_cltv_value(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_force_close_without_broadcasting_txn(this_arg, channel_id, counterparty_node_id); return nativeResponseValue; } - // void PendingHTLCInfo_set_outgoing_cltv_value(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, uint32_t val); + // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function PendingHTLCInfo_set_outgoing_cltv_value(this_ptr: bigint, val: number): void { +export function ChannelManager_force_close_all_channels_broadcasting_latest_txn(this_arg: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_outgoing_cltv_value(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels_broadcasting_latest_txn(this_arg); // debug statements here } - // struct LDKCOption_u64Z PendingHTLCInfo_get_skimmed_fee_msat(const struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr); + // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function PendingHTLCInfo_get_skimmed_fee_msat(this_ptr: bigint): bigint { +export function ChannelManager_force_close_all_channels_without_broadcasting_txn(this_arg: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_get_skimmed_fee_msat(this_ptr); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels_without_broadcasting_txn(this_arg); + // debug statements here } - // void PendingHTLCInfo_set_skimmed_fee_msat(struct LDKPendingHTLCInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + // MUST_USE_RES struct LDKCResult_NonePaymentSendFailureZ ChannelManager_send_payment_with_route(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id); /* @internal */ -export function PendingHTLCInfo_set_skimmed_fee_msat(this_ptr: bigint, val: bigint): void { +export function ChannelManager_send_payment_with_route(this_arg: bigint, route: bigint, payment_hash: number, recipient_onion: bigint, payment_id: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_set_skimmed_fee_msat(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_send_payment_with_route(this_arg, route, payment_hash, recipient_onion, payment_id); + return nativeResponseValue; } - // MUST_USE_RES struct LDKPendingHTLCInfo PendingHTLCInfo_new(struct LDKPendingHTLCRouting routing_arg, struct LDKThirtyTwoBytes incoming_shared_secret_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_u64Z incoming_amt_msat_arg, uint64_t outgoing_amt_msat_arg, uint32_t outgoing_cltv_value_arg, struct LDKCOption_u64Z skimmed_fee_msat_arg); + // MUST_USE_RES struct LDKCResult_NoneRetryableSendFailureZ ChannelManager_send_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy); /* @internal */ -export function PendingHTLCInfo_new(routing_arg: bigint, incoming_shared_secret_arg: number, payment_hash_arg: number, incoming_amt_msat_arg: bigint, outgoing_amt_msat_arg: bigint, outgoing_cltv_value_arg: number, skimmed_fee_msat_arg: bigint): bigint { +export function ChannelManager_send_payment(this_arg: bigint, payment_hash: number, recipient_onion: bigint, payment_id: number, route_params: bigint, retry_strategy: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_new(routing_arg, incoming_shared_secret_arg, payment_hash_arg, incoming_amt_msat_arg, outgoing_amt_msat_arg, outgoing_cltv_value_arg, skimmed_fee_msat_arg); + const nativeResponseValue = wasm.TS_ChannelManager_send_payment(this_arg, payment_hash, recipient_onion, payment_id, route_params, retry_strategy); return nativeResponseValue; } - // uint64_t PendingHTLCInfo_clone_ptr(LDKPendingHTLCInfo *NONNULL_PTR arg); + // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id); /* @internal */ -export function PendingHTLCInfo_clone_ptr(arg: bigint): bigint { +export function ChannelManager_abandon_payment(this_arg: bigint, payment_id: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_clone_ptr(arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelManager_abandon_payment(this_arg, payment_id); + // debug statements here } - // struct LDKPendingHTLCInfo PendingHTLCInfo_clone(const struct LDKPendingHTLCInfo *NONNULL_PTR orig); + // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id); /* @internal */ -export function PendingHTLCInfo_clone(orig: bigint): bigint { +export function ChannelManager_send_spontaneous_payment(this_arg: bigint, route: bigint, payment_preimage: bigint, recipient_onion: bigint, payment_id: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_clone(orig); + const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_payment(this_arg, route, payment_preimage, recipient_onion, payment_id); return nativeResponseValue; } - // enum LDKBlindedFailure BlindedFailure_clone(const enum LDKBlindedFailure *NONNULL_PTR orig); + // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ ChannelManager_send_spontaneous_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy); /* @internal */ -export function BlindedFailure_clone(orig: bigint): BlindedFailure { +export function ChannelManager_send_spontaneous_payment_with_retry(this_arg: bigint, payment_preimage: bigint, recipient_onion: bigint, payment_id: number, route_params: bigint, retry_strategy: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedFailure_clone(orig); + const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_payment_with_retry(this_arg, payment_preimage, recipient_onion, payment_id, route_params, retry_strategy); return nativeResponseValue; } - // enum LDKBlindedFailure BlindedFailure_from_introduction_node(void); + // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPath path); /* @internal */ -export function BlindedFailure_from_introduction_node(): BlindedFailure { +export function ChannelManager_send_probe(this_arg: bigint, path: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedFailure_from_introduction_node(); + const nativeResponseValue = wasm.TS_ChannelManager_send_probe(this_arg, path); return nativeResponseValue; } - // enum LDKBlindedFailure BlindedFailure_from_blinded_node(void); + // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_spontaneous_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, uint64_t amount_msat, uint32_t final_cltv_expiry_delta, struct LDKCOption_u64Z liquidity_limit_multiplier); /* @internal */ -export function BlindedFailure_from_blinded_node(): BlindedFailure { +export function ChannelManager_send_spontaneous_preflight_probes(this_arg: bigint, node_id: number, amount_msat: bigint, final_cltv_expiry_delta: number, liquidity_limit_multiplier: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedFailure_from_blinded_node(); + const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_preflight_probes(this_arg, node_id, amount_msat, final_cltv_expiry_delta, liquidity_limit_multiplier); return nativeResponseValue; } - // uint64_t BlindedFailure_hash(const enum LDKBlindedFailure *NONNULL_PTR o); + // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKRouteParameters route_params, struct LDKCOption_u64Z liquidity_limit_multiplier); /* @internal */ -export function BlindedFailure_hash(o: bigint): bigint { +export function ChannelManager_send_preflight_probes(this_arg: bigint, route_params: bigint, liquidity_limit_multiplier: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedFailure_hash(o); + const nativeResponseValue = wasm.TS_ChannelManager_send_preflight_probes(this_arg, route_params, liquidity_limit_multiplier); return nativeResponseValue; } - // bool BlindedFailure_eq(const enum LDKBlindedFailure *NONNULL_PTR a, const enum LDKBlindedFailure *NONNULL_PTR b); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKTransaction funding_transaction); /* @internal */ -export function BlindedFailure_eq(a: bigint, b: bigint): boolean { +export function ChannelManager_funding_transaction_generated(this_arg: bigint, temporary_channel_id: bigint, counterparty_node_id: number, funding_transaction: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedFailure_eq(a, b); + const nativeResponseValue = wasm.TS_ChannelManager_funding_transaction_generated(this_arg, temporary_channel_id, counterparty_node_id, funding_transaction); return nativeResponseValue; } - // void FailureCode_free(struct LDKFailureCode this_ptr); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_batch_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_ChannelIdPublicKeyZZ temporary_channels, struct LDKTransaction funding_transaction); /* @internal */ -export function FailureCode_free(this_ptr: bigint): void { +export function ChannelManager_batch_funding_transaction_generated(this_arg: bigint, temporary_channels: number, funding_transaction: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_FailureCode_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_batch_funding_transaction_generated(this_arg, temporary_channels, funding_transaction); + return nativeResponseValue; } - // uint64_t FailureCode_clone_ptr(LDKFailureCode *NONNULL_PTR arg); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_partial_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ChannelIdZ channel_ids, const struct LDKChannelConfigUpdate *NONNULL_PTR config_update); /* @internal */ -export function FailureCode_clone_ptr(arg: bigint): bigint { +export function ChannelManager_update_partial_channel_config(this_arg: bigint, counterparty_node_id: number, channel_ids: number, config_update: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_FailureCode_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ChannelManager_update_partial_channel_config(this_arg, counterparty_node_id, channel_ids, config_update); return nativeResponseValue; } - // struct LDKFailureCode FailureCode_clone(const struct LDKFailureCode *NONNULL_PTR orig); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ChannelIdZ channel_ids, const struct LDKChannelConfig *NONNULL_PTR config); /* @internal */ -export function FailureCode_clone(orig: bigint): bigint { +export function ChannelManager_update_channel_config(this_arg: bigint, counterparty_node_id: number, channel_ids: number, config: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_FailureCode_clone(orig); + const nativeResponseValue = wasm.TS_ChannelManager_update_channel_config(this_arg, counterparty_node_id, channel_ids, config); return nativeResponseValue; } - // struct LDKFailureCode FailureCode_temporary_node_failure(void); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_forward_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id, const struct LDKChannelId *NONNULL_PTR next_hop_channel_id, struct LDKPublicKey next_node_id, uint64_t amt_to_forward_msat); /* @internal */ -export function FailureCode_temporary_node_failure(): bigint { +export function ChannelManager_forward_intercepted_htlc(this_arg: bigint, intercept_id: number, next_hop_channel_id: bigint, next_node_id: number, amt_to_forward_msat: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_FailureCode_temporary_node_failure(); + const nativeResponseValue = wasm.TS_ChannelManager_forward_intercepted_htlc(this_arg, intercept_id, next_hop_channel_id, next_node_id, amt_to_forward_msat); return nativeResponseValue; } - // struct LDKFailureCode FailureCode_required_node_feature_missing(void); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_fail_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id); /* @internal */ -export function FailureCode_required_node_feature_missing(): bigint { +export function ChannelManager_fail_intercepted_htlc(this_arg: bigint, intercept_id: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_FailureCode_required_node_feature_missing(); + const nativeResponseValue = wasm.TS_ChannelManager_fail_intercepted_htlc(this_arg, intercept_id); return nativeResponseValue; } - // struct LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void); + // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function FailureCode_incorrect_or_unknown_payment_details(): bigint { +export function ChannelManager_process_pending_htlc_forwards(this_arg: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_FailureCode_incorrect_or_unknown_payment_details(); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelManager_process_pending_htlc_forwards(this_arg); + // debug statements here } - // struct LDKFailureCode FailureCode_invalid_onion_payload(struct LDKCOption_C2Tuple_u64u16ZZ a); + // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function FailureCode_invalid_onion_payload(a: bigint): bigint { +export function ChannelManager_timer_tick_occurred(this_arg: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_FailureCode_invalid_onion_payload(a); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelManager_timer_tick_occurred(this_arg); + // debug statements here } - // void ChannelManager_free(struct LDKChannelManager this_obj); + // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]); /* @internal */ -export function ChannelManager_free(this_obj: bigint): void { +export function ChannelManager_fail_htlc_backwards(this_arg: bigint, payment_hash: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelManager_fail_htlc_backwards(this_arg, payment_hash); // debug statements here } - // void ChainParameters_free(struct LDKChainParameters this_obj); + // void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], struct LDKFailureCode failure_code); /* @internal */ -export function ChainParameters_free(this_obj: bigint): void { +export function ChannelManager_fail_htlc_backwards_with_reason(this_arg: bigint, payment_hash: number, failure_code: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainParameters_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelManager_fail_htlc_backwards_with_reason(this_arg, payment_hash, failure_code); // debug statements here } - // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr); + // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage); /* @internal */ -export function ChainParameters_get_network(this_ptr: bigint): Network { +export function ChannelManager_claim_funds(this_arg: bigint, payment_preimage: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainParameters_get_network(this_ptr); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelManager_claim_funds(this_arg, payment_preimage); + // debug statements here } - // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val); + // void ChannelManager_claim_funds_with_known_custom_tlvs(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage); /* @internal */ -export function ChainParameters_set_network(this_ptr: bigint, val: Network): void { +export function ChannelManager_claim_funds_with_known_custom_tlvs(this_arg: bigint, payment_preimage: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainParameters_set_network(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelManager_claim_funds_with_known_custom_tlvs(this_arg, payment_preimage); // debug statements here } - // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChainParameters_get_best_block(this_ptr: bigint): bigint { +export function ChannelManager_get_our_node_id(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainParameters_get_best_block(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_get_our_node_id(this_arg); return nativeResponseValue; } - // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKU128 user_channel_id); /* @internal */ -export function ChainParameters_set_best_block(this_ptr: bigint, val: bigint): void { +export function ChannelManager_accept_inbound_channel(this_arg: bigint, temporary_channel_id: bigint, counterparty_node_id: number, user_channel_id: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainParameters_set_best_block(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id); + return nativeResponseValue; } - // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg); + // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKChannelId *NONNULL_PTR temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKU128 user_channel_id); /* @internal */ -export function ChainParameters_new(network_arg: Network, best_block_arg: bigint): bigint { +export function ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(this_arg: bigint, temporary_channel_id: bigint, counterparty_node_id: number, user_channel_id: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainParameters_new(network_arg, best_block_arg); + const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id); return nativeResponseValue; } - // uint64_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg); + // MUST_USE_RES struct LDKCResult_OfferWithDerivedMetadataBuilderBolt12SemanticErrorZ ChannelManager_create_offer_builder(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChainParameters_clone_ptr(arg: bigint): bigint { +export function ChannelManager_create_offer_builder(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainParameters_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ChannelManager_create_offer_builder(this_arg); return nativeResponseValue; } - // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig); + // MUST_USE_RES struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ ChannelManager_create_refund_builder(const struct LDKChannelManager *NONNULL_PTR this_arg, uint64_t amount_msats, uint64_t absolute_expiry, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, struct LDKCOption_u64Z max_total_routing_fee_msat); /* @internal */ -export function ChainParameters_clone(orig: bigint): bigint { +export function ChannelManager_create_refund_builder(this_arg: bigint, amount_msats: bigint, absolute_expiry: bigint, payment_id: number, retry_strategy: bigint, max_total_routing_fee_msat: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChainParameters_clone(orig); + const nativeResponseValue = wasm.TS_ChannelManager_create_refund_builder(this_arg, amount_msats, absolute_expiry, payment_id, retry_strategy, max_total_routing_fee_msat); return nativeResponseValue; } - // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj); + // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ ChannelManager_pay_for_offer(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKOffer *NONNULL_PTR offer, struct LDKCOption_u64Z quantity, struct LDKCOption_u64Z amount_msats, struct LDKCOption_StrZ payer_note, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, struct LDKCOption_u64Z max_total_routing_fee_msat); /* @internal */ -export function CounterpartyForwardingInfo_free(this_obj: bigint): void { +export function ChannelManager_pay_for_offer(this_arg: bigint, offer: bigint, quantity: bigint, amount_msats: bigint, payer_note: bigint, payment_id: number, retry_strategy: bigint, max_total_routing_fee_msat: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_pay_for_offer(this_arg, offer, quantity, amount_msats, payer_note, payment_id, retry_strategy, max_total_routing_fee_msat); + return nativeResponseValue; } - // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ ChannelManager_request_refund_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRefund *NONNULL_PTR refund); /* @internal */ -export function CounterpartyForwardingInfo_get_fee_base_msat(this_ptr: bigint): number { +export function ChannelManager_request_refund_payment(this_arg: bigint, refund: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_base_msat(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_request_refund_payment(this_arg, refund); return nativeResponseValue; } - // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val); + // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta); /* @internal */ -export function CounterpartyForwardingInfo_set_fee_base_msat(this_ptr: bigint, val: number): void { +export function ChannelManager_create_inbound_payment(this_arg: bigint, min_value_msat: bigint, invoice_expiry_delta_secs: number, min_final_cltv_expiry_delta: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_base_msat(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment(this_arg, min_value_msat, invoice_expiry_delta_secs, min_final_cltv_expiry_delta); + return nativeResponseValue; } - // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry); /* @internal */ -export function CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr: bigint): number { +export function ChannelManager_create_inbound_payment_for_hash(this_arg: bigint, payment_hash: number, min_value_msat: bigint, invoice_expiry_delta_secs: number, min_final_cltv_expiry: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs, min_final_cltv_expiry); return nativeResponseValue; } - // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val); + // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret); /* @internal */ -export function CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr: bigint, val: number): void { +export function ChannelManager_get_payment_preimage(this_arg: bigint, payment_hash: number, payment_secret: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_get_payment_preimage(this_arg, payment_hash, payment_secret); + return nativeResponseValue; } - // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr); + // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr: bigint): number { +export function ChannelManager_get_phantom_scid(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_scid(this_arg); return nativeResponseValue; } - // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val); + // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr: bigint, val: number): void { +export function ChannelManager_get_phantom_route_hints(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_route_hints(this_arg); + return nativeResponseValue; } - // MUST_USE_RES struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_new(uint32_t fee_base_msat_arg, uint32_t fee_proportional_millionths_arg, uint16_t cltv_expiry_delta_arg); + // MUST_USE_RES uint64_t ChannelManager_get_intercept_scid(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function CounterpartyForwardingInfo_new(fee_base_msat_arg: number, fee_proportional_millionths_arg: number, cltv_expiry_delta_arg: number): bigint { +export function ChannelManager_get_intercept_scid(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg); + const nativeResponseValue = wasm.TS_ChannelManager_get_intercept_scid(this_arg); return nativeResponseValue; } - // uint64_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg); + // MUST_USE_RES struct LDKInFlightHtlcs ChannelManager_compute_inflight_htlcs(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function CounterpartyForwardingInfo_clone_ptr(arg: bigint): bigint { +export function ChannelManager_compute_inflight_htlcs(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ChannelManager_compute_inflight_htlcs(this_arg); return nativeResponseValue; } - // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig); + // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function CounterpartyForwardingInfo_clone(orig: bigint): bigint { +export function ChannelManager_as_MessageSendEventsProvider(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone(orig); + const nativeResponseValue = wasm.TS_ChannelManager_as_MessageSendEventsProvider(this_arg); return nativeResponseValue; } - // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj); + // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_free(this_obj: bigint): void { +export function ChannelManager_as_EventsProvider(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_as_EventsProvider(this_arg); + return nativeResponseValue; } - // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); + // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_get_node_id(this_ptr: bigint): number { +export function ChannelManager_as_Listen(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_get_node_id(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_as_Listen(this_arg); return nativeResponseValue; } - // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_set_node_id(this_ptr: bigint, val: number): void { +export function ChannelManager_as_Confirm(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_set_node_id(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_as_Confirm(this_arg); + return nativeResponseValue; } - // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKFuture ChannelManager_get_event_or_persistence_needed_future(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_get_features(this_ptr: bigint): bigint { +export function ChannelManager_get_event_or_persistence_needed_future(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_get_features(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_get_event_or_persistence_needed_future(this_arg); return nativeResponseValue; } - // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val); + // MUST_USE_RES bool ChannelManager_get_and_clear_needs_persistence(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_set_features(this_ptr: bigint, val: bigint): void { +export function ChannelManager_get_and_clear_needs_persistence(this_arg: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_set_features(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_get_and_clear_needs_persistence(this_arg); + return nativeResponseValue; } - // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr: bigint): bigint { +export function ChannelManager_current_best_block(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_current_best_block(this_arg); return nativeResponseValue; } - // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val); + // MUST_USE_RES struct LDKNodeFeatures ChannelManager_node_features(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr: bigint, val: bigint): void { +export function ChannelManager_node_features(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_node_features(this_arg); + return nativeResponseValue; } - // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKChannelFeatures ChannelManager_channel_features(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_get_forwarding_info(this_ptr: bigint): bigint { +export function ChannelManager_channel_features(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_get_forwarding_info(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_channel_features(this_arg); return nativeResponseValue; } - // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val); + // MUST_USE_RES struct LDKChannelTypeFeatures ChannelManager_channel_type_features(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_set_forwarding_info(this_ptr: bigint, val: bigint): void { +export function ChannelManager_channel_type_features(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_set_forwarding_info(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_channel_type_features(this_arg); + return nativeResponseValue; } - // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKInitFeatures ChannelManager_init_features(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr: bigint): bigint { +export function ChannelManager_init_features(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_init_features(this_arg); return nativeResponseValue; } - // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { +export function ChannelManager_as_ChannelMessageHandler(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_as_ChannelMessageHandler(this_arg); + return nativeResponseValue; } - // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); + // struct LDKOffersMessageHandler ChannelManager_as_OffersMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr: bigint): bigint { +export function ChannelManager_as_OffersMessageHandler(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManager_as_OffersMessageHandler(this_arg); return nativeResponseValue; } - // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + // struct LDKNodeIdLookUp ChannelManager_as_NodeIdLookUp(const struct LDKChannelManager *NONNULL_PTR this_arg); /* @internal */ -export function ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr: bigint, val: bigint): void { +export function ChannelManager_as_NodeIdLookUp(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelManager_as_NodeIdLookUp(this_arg); + return nativeResponseValue; } - // MUST_USE_RES struct LDKChannelCounterparty ChannelCounterparty_new(struct LDKPublicKey node_id_arg, struct LDKInitFeatures features_arg, uint64_t unspendable_punishment_reserve_arg, struct LDKCounterpartyForwardingInfo forwarding_info_arg, struct LDKCOption_u64Z outbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z outbound_htlc_maximum_msat_arg); + // struct LDKInitFeatures provided_init_features(const struct LDKUserConfig *NONNULL_PTR config); /* @internal */ -export function ChannelCounterparty_new(node_id_arg: number, features_arg: bigint, unspendable_punishment_reserve_arg: bigint, forwarding_info_arg: bigint, outbound_htlc_minimum_msat_arg: bigint, outbound_htlc_maximum_msat_arg: bigint): bigint { +export function provided_init_features(config: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_new(node_id_arg, features_arg, unspendable_punishment_reserve_arg, forwarding_info_arg, outbound_htlc_minimum_msat_arg, outbound_htlc_maximum_msat_arg); + const nativeResponseValue = wasm.TS_provided_init_features(config); return nativeResponseValue; } - // uint64_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg); + // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj); /* @internal */ -export function ChannelCounterparty_clone_ptr(arg: bigint): bigint { +export function PhantomRouteHints_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_clone_ptr(arg); + const nativeResponseValue = wasm.TS_PhantomRouteHints_write(obj); return nativeResponseValue; } - // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig); + // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser); /* @internal */ -export function ChannelCounterparty_clone(orig: bigint): bigint { +export function PhantomRouteHints_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_clone(orig); + const nativeResponseValue = wasm.TS_PhantomRouteHints_read(ser); return nativeResponseValue; } - // void ChannelDetails_free(struct LDKChannelDetails this_obj); + // struct LDKCVec_u8Z BlindedForward_write(const struct LDKBlindedForward *NONNULL_PTR obj); /* @internal */ -export function ChannelDetails_free(this_obj: bigint): void { +export function BlindedForward_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_BlindedForward_write(obj); + return nativeResponseValue; } - // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32]; + // struct LDKCResult_BlindedForwardDecodeErrorZ BlindedForward_read(struct LDKu8slice ser); /* @internal */ -export function ChannelDetails_get_channel_id(this_ptr: bigint): number { +export function BlindedForward_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_id(this_ptr); + const nativeResponseValue = wasm.TS_BlindedForward_read(ser); return nativeResponseValue; } - // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // struct LDKCVec_u8Z PendingHTLCRouting_write(const struct LDKPendingHTLCRouting *NONNULL_PTR obj); /* @internal */ -export function ChannelDetails_set_channel_id(this_ptr: bigint, val: number): void { +export function PendingHTLCRouting_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_id(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_PendingHTLCRouting_write(obj); + return nativeResponseValue; } - // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ PendingHTLCRouting_read(struct LDKu8slice ser); /* @internal */ -export function ChannelDetails_get_counterparty(this_ptr: bigint): bigint { +export function PendingHTLCRouting_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_counterparty(this_ptr); + const nativeResponseValue = wasm.TS_PendingHTLCRouting_read(ser); return nativeResponseValue; } - // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val); + // struct LDKCVec_u8Z PendingHTLCInfo_write(const struct LDKPendingHTLCInfo *NONNULL_PTR obj); /* @internal */ -export function ChannelDetails_set_counterparty(this_ptr: bigint, val: bigint): void { +export function PendingHTLCInfo_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_counterparty(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_PendingHTLCInfo_write(obj); + return nativeResponseValue; } - // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // struct LDKCResult_PendingHTLCInfoDecodeErrorZ PendingHTLCInfo_read(struct LDKu8slice ser); /* @internal */ -export function ChannelDetails_get_funding_txo(this_ptr: bigint): bigint { +export function PendingHTLCInfo_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_funding_txo(this_ptr); + const nativeResponseValue = wasm.TS_PendingHTLCInfo_read(ser); return nativeResponseValue; } - // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val); + // struct LDKCVec_u8Z BlindedFailure_write(const enum LDKBlindedFailure *NONNULL_PTR obj); /* @internal */ -export function ChannelDetails_set_funding_txo(this_ptr: bigint, val: bigint): void { +export function BlindedFailure_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_funding_txo(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_BlindedFailure_write(obj); + return nativeResponseValue; } - // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // struct LDKCResult_BlindedFailureDecodeErrorZ BlindedFailure_read(struct LDKu8slice ser); /* @internal */ -export function ChannelDetails_get_channel_type(this_ptr: bigint): bigint { +export function BlindedFailure_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_type(this_ptr); + const nativeResponseValue = wasm.TS_BlindedFailure_read(ser); return nativeResponseValue; } - // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); + // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj); /* @internal */ -export function ChannelDetails_set_channel_type(this_ptr: bigint, val: bigint): void { +export function ChannelManager_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_type(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelManager_write(obj); + return nativeResponseValue; +} + // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj); +/* @internal */ +export function ChannelManagerReadArgs_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_free(this_obj); // debug statements here } - // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // const struct LDKEntropySource *ChannelManagerReadArgs_get_entropy_source(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelDetails_get_short_channel_id(this_ptr: bigint): bigint { +export function ChannelManagerReadArgs_get_entropy_source(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_short_channel_id(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_entropy_source(this_ptr); return nativeResponseValue; } - // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + // void ChannelManagerReadArgs_set_entropy_source(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKEntropySource val); /* @internal */ -export function ChannelDetails_set_short_channel_id(this_ptr: bigint, val: bigint): void { +export function ChannelManagerReadArgs_set_entropy_source(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_short_channel_id(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_entropy_source(this_ptr, val); // debug statements here } - // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // const struct LDKNodeSigner *ChannelManagerReadArgs_get_node_signer(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelDetails_get_outbound_scid_alias(this_ptr: bigint): bigint { +export function ChannelManagerReadArgs_get_node_signer(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_scid_alias(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_node_signer(this_ptr); return nativeResponseValue; } - // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + // void ChannelManagerReadArgs_set_node_signer(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKNodeSigner val); /* @internal */ -export function ChannelDetails_set_outbound_scid_alias(this_ptr: bigint, val: bigint): void { +export function ChannelManagerReadArgs_set_node_signer(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_scid_alias(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_node_signer(this_ptr, val); // debug statements here } - // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // const struct LDKSignerProvider *ChannelManagerReadArgs_get_signer_provider(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelDetails_get_inbound_scid_alias(this_ptr: bigint): bigint { +export function ChannelManagerReadArgs_get_signer_provider(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_scid_alias(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_signer_provider(this_ptr); return nativeResponseValue; } - // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + // void ChannelManagerReadArgs_set_signer_provider(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKSignerProvider val); /* @internal */ -export function ChannelDetails_set_inbound_scid_alias(this_ptr: bigint, val: bigint): void { +export function ChannelManagerReadArgs_set_signer_provider(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_scid_alias(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_signer_provider(this_ptr, val); // debug statements here } - // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelDetails_get_channel_value_satoshis(this_ptr: bigint): bigint { +export function ChannelManagerReadArgs_get_fee_estimator(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_value_satoshis(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_fee_estimator(this_ptr); return nativeResponseValue; } - // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); + // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val); /* @internal */ -export function ChannelDetails_set_channel_value_satoshis(this_ptr: bigint, val: bigint): void { +export function ChannelManagerReadArgs_set_fee_estimator(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_value_satoshis(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_fee_estimator(this_ptr, val); // debug statements here } - // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelDetails_get_unspendable_punishment_reserve(this_ptr: bigint): bigint { +export function ChannelManagerReadArgs_get_chain_monitor(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_unspendable_punishment_reserve(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_chain_monitor(this_ptr); return nativeResponseValue; } - // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val); /* @internal */ -export function ChannelDetails_set_unspendable_punishment_reserve(this_ptr: bigint, val: bigint): void { +export function ChannelManagerReadArgs_set_chain_monitor(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_unspendable_punishment_reserve(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_chain_monitor(this_ptr, val); // debug statements here } - // struct LDKU128 ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelDetails_get_user_channel_id(this_ptr: bigint): number { +export function ChannelManagerReadArgs_get_tx_broadcaster(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_user_channel_id(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_tx_broadcaster(this_ptr); return nativeResponseValue; } - // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKU128 val); + // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val); /* @internal */ -export function ChannelDetails_set_user_channel_id(this_ptr: bigint, val: number): void { +export function ChannelManagerReadArgs_set_tx_broadcaster(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_user_channel_id(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_tx_broadcaster(this_ptr, val); // debug statements here } - // struct LDKCOption_u32Z ChannelDetails_get_feerate_sat_per_1000_weight(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // const struct LDKRouter *ChannelManagerReadArgs_get_router(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelDetails_get_feerate_sat_per_1000_weight(this_ptr: bigint): bigint { +export function ChannelManagerReadArgs_get_router(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_feerate_sat_per_1000_weight(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_router(this_ptr); return nativeResponseValue; } - // void ChannelDetails_set_feerate_sat_per_1000_weight(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); + // void ChannelManagerReadArgs_set_router(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKRouter val); /* @internal */ -export function ChannelDetails_set_feerate_sat_per_1000_weight(this_ptr: bigint, val: bigint): void { +export function ChannelManagerReadArgs_set_router(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_feerate_sat_per_1000_weight(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_router(this_ptr, val); // debug statements here } - // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelDetails_get_balance_msat(this_ptr: bigint): bigint { +export function ChannelManagerReadArgs_get_logger(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_balance_msat(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_logger(this_ptr); return nativeResponseValue; } - // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); + // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val); /* @internal */ -export function ChannelDetails_set_balance_msat(this_ptr: bigint, val: bigint): void { +export function ChannelManagerReadArgs_set_logger(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_balance_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_logger(this_ptr, val); // debug statements here } - // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelDetails_get_outbound_capacity_msat(this_ptr: bigint): bigint { +export function ChannelManagerReadArgs_get_default_config(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_capacity_msat(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_default_config(this_ptr); return nativeResponseValue; } - // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); + // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val); /* @internal */ -export function ChannelDetails_set_outbound_capacity_msat(this_ptr: bigint, val: bigint): void { +export function ChannelManagerReadArgs_set_default_config(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_capacity_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_default_config(this_ptr, val); // debug statements here } - // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKChannelManagerReadArgs ChannelManagerReadArgs_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKSignerProvider signer_provider, struct LDKFeeEstimator fee_estimator, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKRouter router, struct LDKLogger logger, struct LDKUserConfig default_config, struct LDKCVec_ChannelMonitorZ channel_monitors); /* @internal */ -export function ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr: bigint): bigint { +export function ChannelManagerReadArgs_new(entropy_source: bigint, node_signer: bigint, signer_provider: bigint, fee_estimator: bigint, chain_monitor: bigint, tx_broadcaster: bigint, router: bigint, logger: bigint, default_config: bigint, channel_monitors: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr); + const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_new(entropy_source, node_signer, signer_provider, fee_estimator, chain_monitor, tx_broadcaster, router, logger, default_config, channel_monitors); return nativeResponseValue; } - // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); + // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg); /* @internal */ -export function ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr: bigint, val: bigint): void { +export function C2Tuple_ThirtyTwoBytesChannelManagerZ_read(ser: number, arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_C2Tuple_ThirtyTwoBytesChannelManagerZ_read(ser, arg); + return nativeResponseValue; +} + // void DelayedPaymentBasepoint_free(struct LDKDelayedPaymentBasepoint this_obj); +/* @internal */ +export function DelayedPaymentBasepoint_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_free(this_obj); // debug statements here } - // uint64_t ChannelDetails_get_next_outbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // struct LDKPublicKey DelayedPaymentBasepoint_get_a(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelDetails_get_next_outbound_htlc_minimum_msat(this_ptr: bigint): bigint { +export function DelayedPaymentBasepoint_get_a(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_next_outbound_htlc_minimum_msat(this_ptr); + const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_get_a(this_ptr); return nativeResponseValue; } - // void ChannelDetails_set_next_outbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); + // void DelayedPaymentBasepoint_set_a(struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function ChannelDetails_set_next_outbound_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { +export function DelayedPaymentBasepoint_set_a(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_next_outbound_htlc_minimum_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_set_a(this_ptr, val); // debug statements here } - // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKDelayedPaymentBasepoint DelayedPaymentBasepoint_new(struct LDKPublicKey a_arg); /* @internal */ -export function ChannelDetails_get_inbound_capacity_msat(this_ptr: bigint): bigint { +export function DelayedPaymentBasepoint_new(a_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_capacity_msat(this_ptr); + const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_new(a_arg); return nativeResponseValue; } - // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); + // bool DelayedPaymentBasepoint_eq(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR a, const struct LDKDelayedPaymentBasepoint *NONNULL_PTR b); /* @internal */ -export function ChannelDetails_set_inbound_capacity_msat(this_ptr: bigint, val: bigint): void { +export function DelayedPaymentBasepoint_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_capacity_msat(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_eq(a, b); + return nativeResponseValue; } - // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // uint64_t DelayedPaymentBasepoint_clone_ptr(LDKDelayedPaymentBasepoint *NONNULL_PTR arg); /* @internal */ -export function ChannelDetails_get_confirmations_required(this_ptr: bigint): bigint { +export function DelayedPaymentBasepoint_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_confirmations_required(this_ptr); + const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_clone_ptr(arg); return nativeResponseValue; } - // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); + // struct LDKDelayedPaymentBasepoint DelayedPaymentBasepoint_clone(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR orig); /* @internal */ -export function ChannelDetails_set_confirmations_required(this_ptr: bigint, val: bigint): void { +export function DelayedPaymentBasepoint_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_confirmations_required(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_clone(orig); + return nativeResponseValue; } - // struct LDKCOption_u32Z ChannelDetails_get_confirmations(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // uint64_t DelayedPaymentBasepoint_hash(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR o); /* @internal */ -export function ChannelDetails_get_confirmations(this_ptr: bigint): bigint { +export function DelayedPaymentBasepoint_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_confirmations(this_ptr); + const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_hash(o); return nativeResponseValue; } - // void ChannelDetails_set_confirmations(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); + // MUST_USE_RES struct LDKPublicKey DelayedPaymentBasepoint_to_public_key(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_arg); /* @internal */ -export function ChannelDetails_set_confirmations(this_ptr: bigint, val: bigint): void { +export function DelayedPaymentBasepoint_to_public_key(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_confirmations(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_to_public_key(this_arg); + return nativeResponseValue; } - // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKThirtyTwoBytes DelayedPaymentBasepoint_derive_add_tweak(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_arg, struct LDKPublicKey per_commitment_point); /* @internal */ -export function ChannelDetails_get_force_close_spend_delay(this_ptr: bigint): bigint { +export function DelayedPaymentBasepoint_derive_add_tweak(this_arg: bigint, per_commitment_point: number): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_force_close_spend_delay(this_ptr); + const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_derive_add_tweak(this_arg, per_commitment_point); return nativeResponseValue; } - // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val); + // struct LDKCVec_u8Z DelayedPaymentBasepoint_write(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR obj); /* @internal */ -export function ChannelDetails_set_force_close_spend_delay(this_ptr: bigint, val: bigint): void { +export function DelayedPaymentBasepoint_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_force_close_spend_delay(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_write(obj); + return nativeResponseValue; } - // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ DelayedPaymentBasepoint_read(struct LDKu8slice ser); /* @internal */ -export function ChannelDetails_get_is_outbound(this_ptr: bigint): boolean { +export function DelayedPaymentBasepoint_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_is_outbound(this_ptr); + const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_read(ser); return nativeResponseValue; } - // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val); + // void DelayedPaymentKey_free(struct LDKDelayedPaymentKey this_obj); /* @internal */ -export function ChannelDetails_set_is_outbound(this_ptr: bigint, val: boolean): void { +export function DelayedPaymentKey_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_is_outbound(this_ptr, val); + const nativeResponseValue = wasm.TS_DelayedPaymentKey_free(this_obj); // debug statements here } - // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // struct LDKPublicKey DelayedPaymentKey_get_a(const struct LDKDelayedPaymentKey *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelDetails_get_is_channel_ready(this_ptr: bigint): boolean { +export function DelayedPaymentKey_get_a(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_is_channel_ready(this_ptr); + const nativeResponseValue = wasm.TS_DelayedPaymentKey_get_a(this_ptr); return nativeResponseValue; } - // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val); + // void DelayedPaymentKey_set_a(struct LDKDelayedPaymentKey *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function ChannelDetails_set_is_channel_ready(this_ptr: bigint, val: boolean): void { +export function DelayedPaymentKey_set_a(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_is_channel_ready(this_ptr, val); + const nativeResponseValue = wasm.TS_DelayedPaymentKey_set_a(this_ptr, val); // debug statements here } - // struct LDKCOption_ChannelShutdownStateZ ChannelDetails_get_channel_shutdown_state(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_new(struct LDKPublicKey a_arg); /* @internal */ -export function ChannelDetails_get_channel_shutdown_state(this_ptr: bigint): bigint { +export function DelayedPaymentKey_new(a_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_shutdown_state(this_ptr); + const nativeResponseValue = wasm.TS_DelayedPaymentKey_new(a_arg); return nativeResponseValue; } - // void ChannelDetails_set_channel_shutdown_state(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_ChannelShutdownStateZ val); + // bool DelayedPaymentKey_eq(const struct LDKDelayedPaymentKey *NONNULL_PTR a, const struct LDKDelayedPaymentKey *NONNULL_PTR b); /* @internal */ -export function ChannelDetails_set_channel_shutdown_state(this_ptr: bigint, val: bigint): void { +export function DelayedPaymentKey_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_shutdown_state(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_DelayedPaymentKey_eq(a, b); + return nativeResponseValue; } - // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // uint64_t DelayedPaymentKey_clone_ptr(LDKDelayedPaymentKey *NONNULL_PTR arg); /* @internal */ -export function ChannelDetails_get_is_usable(this_ptr: bigint): boolean { +export function DelayedPaymentKey_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_is_usable(this_ptr); + const nativeResponseValue = wasm.TS_DelayedPaymentKey_clone_ptr(arg); return nativeResponseValue; } - // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val); + // struct LDKDelayedPaymentKey DelayedPaymentKey_clone(const struct LDKDelayedPaymentKey *NONNULL_PTR orig); /* @internal */ -export function ChannelDetails_set_is_usable(this_ptr: bigint, val: boolean): void { +export function DelayedPaymentKey_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_is_usable(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_DelayedPaymentKey_clone(orig); + return nativeResponseValue; } - // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_from_basepoint(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point); /* @internal */ -export function ChannelDetails_get_is_public(this_ptr: bigint): boolean { +export function DelayedPaymentKey_from_basepoint(countersignatory_basepoint: bigint, per_commitment_point: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_is_public(this_ptr); + const nativeResponseValue = wasm.TS_DelayedPaymentKey_from_basepoint(countersignatory_basepoint, per_commitment_point); return nativeResponseValue; } - // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val); + // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_from_secret_key(const uint8_t (*sk)[32]); /* @internal */ -export function ChannelDetails_set_is_public(this_ptr: bigint, val: boolean): void { +export function DelayedPaymentKey_from_secret_key(sk: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_is_public(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_DelayedPaymentKey_from_secret_key(sk); + return nativeResponseValue; } - // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKPublicKey DelayedPaymentKey_to_public_key(const struct LDKDelayedPaymentKey *NONNULL_PTR this_arg); /* @internal */ -export function ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr: bigint): bigint { +export function DelayedPaymentKey_to_public_key(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr); + const nativeResponseValue = wasm.TS_DelayedPaymentKey_to_public_key(this_arg); return nativeResponseValue; } - // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + // struct LDKCVec_u8Z DelayedPaymentKey_write(const struct LDKDelayedPaymentKey *NONNULL_PTR obj); /* @internal */ -export function ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { +export function DelayedPaymentKey_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_DelayedPaymentKey_write(obj); + return nativeResponseValue; } - // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ DelayedPaymentKey_read(struct LDKu8slice ser); /* @internal */ -export function ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr: bigint): bigint { +export function DelayedPaymentKey_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr); + const nativeResponseValue = wasm.TS_DelayedPaymentKey_read(ser); return nativeResponseValue; } - // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); + // void HtlcBasepoint_free(struct LDKHtlcBasepoint this_obj); /* @internal */ -export function ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr: bigint, val: bigint): void { +export function HtlcBasepoint_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_HtlcBasepoint_free(this_obj); // debug statements here } - // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr); + // struct LDKPublicKey HtlcBasepoint_get_a(const struct LDKHtlcBasepoint *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelDetails_get_config(this_ptr: bigint): bigint { +export function HtlcBasepoint_get_a(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_config(this_ptr); + const nativeResponseValue = wasm.TS_HtlcBasepoint_get_a(this_ptr); return nativeResponseValue; } - // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val); + // void HtlcBasepoint_set_a(struct LDKHtlcBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function ChannelDetails_set_config(this_ptr: bigint, val: bigint): void { +export function HtlcBasepoint_set_a(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_set_config(this_ptr, val); + const nativeResponseValue = wasm.TS_HtlcBasepoint_set_a(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKChannelDetails ChannelDetails_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKChannelCounterparty counterparty_arg, struct LDKOutPoint funding_txo_arg, struct LDKChannelTypeFeatures channel_type_arg, struct LDKCOption_u64Z short_channel_id_arg, struct LDKCOption_u64Z outbound_scid_alias_arg, struct LDKCOption_u64Z inbound_scid_alias_arg, uint64_t channel_value_satoshis_arg, struct LDKCOption_u64Z unspendable_punishment_reserve_arg, struct LDKU128 user_channel_id_arg, struct LDKCOption_u32Z feerate_sat_per_1000_weight_arg, uint64_t balance_msat_arg, uint64_t outbound_capacity_msat_arg, uint64_t next_outbound_htlc_limit_msat_arg, uint64_t next_outbound_htlc_minimum_msat_arg, uint64_t inbound_capacity_msat_arg, struct LDKCOption_u32Z confirmations_required_arg, struct LDKCOption_u32Z confirmations_arg, struct LDKCOption_u16Z force_close_spend_delay_arg, bool is_outbound_arg, bool is_channel_ready_arg, struct LDKCOption_ChannelShutdownStateZ channel_shutdown_state_arg, bool is_usable_arg, bool is_public_arg, struct LDKCOption_u64Z inbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z inbound_htlc_maximum_msat_arg, struct LDKChannelConfig config_arg); + // MUST_USE_RES struct LDKHtlcBasepoint HtlcBasepoint_new(struct LDKPublicKey a_arg); /* @internal */ -export function ChannelDetails_new(channel_id_arg: number, counterparty_arg: bigint, funding_txo_arg: bigint, channel_type_arg: bigint, short_channel_id_arg: bigint, outbound_scid_alias_arg: bigint, inbound_scid_alias_arg: bigint, channel_value_satoshis_arg: bigint, unspendable_punishment_reserve_arg: bigint, user_channel_id_arg: number, feerate_sat_per_1000_weight_arg: bigint, balance_msat_arg: bigint, outbound_capacity_msat_arg: bigint, next_outbound_htlc_limit_msat_arg: bigint, next_outbound_htlc_minimum_msat_arg: bigint, inbound_capacity_msat_arg: bigint, confirmations_required_arg: bigint, confirmations_arg: bigint, force_close_spend_delay_arg: bigint, is_outbound_arg: boolean, is_channel_ready_arg: boolean, channel_shutdown_state_arg: bigint, is_usable_arg: boolean, is_public_arg: boolean, inbound_htlc_minimum_msat_arg: bigint, inbound_htlc_maximum_msat_arg: bigint, config_arg: bigint): bigint { +export function HtlcBasepoint_new(a_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_new(channel_id_arg, counterparty_arg, funding_txo_arg, channel_type_arg, short_channel_id_arg, outbound_scid_alias_arg, inbound_scid_alias_arg, channel_value_satoshis_arg, unspendable_punishment_reserve_arg, user_channel_id_arg, feerate_sat_per_1000_weight_arg, balance_msat_arg, outbound_capacity_msat_arg, next_outbound_htlc_limit_msat_arg, next_outbound_htlc_minimum_msat_arg, inbound_capacity_msat_arg, confirmations_required_arg, confirmations_arg, force_close_spend_delay_arg, is_outbound_arg, is_channel_ready_arg, channel_shutdown_state_arg, is_usable_arg, is_public_arg, inbound_htlc_minimum_msat_arg, inbound_htlc_maximum_msat_arg, config_arg); + const nativeResponseValue = wasm.TS_HtlcBasepoint_new(a_arg); return nativeResponseValue; } - // uint64_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg); + // bool HtlcBasepoint_eq(const struct LDKHtlcBasepoint *NONNULL_PTR a, const struct LDKHtlcBasepoint *NONNULL_PTR b); /* @internal */ -export function ChannelDetails_clone_ptr(arg: bigint): bigint { +export function HtlcBasepoint_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_clone_ptr(arg); + const nativeResponseValue = wasm.TS_HtlcBasepoint_eq(a, b); return nativeResponseValue; } - // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig); + // uint64_t HtlcBasepoint_clone_ptr(LDKHtlcBasepoint *NONNULL_PTR arg); /* @internal */ -export function ChannelDetails_clone(orig: bigint): bigint { +export function HtlcBasepoint_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_clone(orig); + const nativeResponseValue = wasm.TS_HtlcBasepoint_clone_ptr(arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg); + // struct LDKHtlcBasepoint HtlcBasepoint_clone(const struct LDKHtlcBasepoint *NONNULL_PTR orig); /* @internal */ -export function ChannelDetails_get_inbound_payment_scid(this_arg: bigint): bigint { +export function HtlcBasepoint_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_payment_scid(this_arg); + const nativeResponseValue = wasm.TS_HtlcBasepoint_clone(orig); return nativeResponseValue; } - // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg); + // uint64_t HtlcBasepoint_hash(const struct LDKHtlcBasepoint *NONNULL_PTR o); /* @internal */ -export function ChannelDetails_get_outbound_payment_scid(this_arg: bigint): bigint { +export function HtlcBasepoint_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_payment_scid(this_arg); + const nativeResponseValue = wasm.TS_HtlcBasepoint_hash(o); return nativeResponseValue; } - // enum LDKChannelShutdownState ChannelShutdownState_clone(const enum LDKChannelShutdownState *NONNULL_PTR orig); + // MUST_USE_RES struct LDKPublicKey HtlcBasepoint_to_public_key(const struct LDKHtlcBasepoint *NONNULL_PTR this_arg); /* @internal */ -export function ChannelShutdownState_clone(orig: bigint): ChannelShutdownState { +export function HtlcBasepoint_to_public_key(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelShutdownState_clone(orig); + const nativeResponseValue = wasm.TS_HtlcBasepoint_to_public_key(this_arg); return nativeResponseValue; } - // enum LDKChannelShutdownState ChannelShutdownState_not_shutting_down(void); + // MUST_USE_RES struct LDKThirtyTwoBytes HtlcBasepoint_derive_add_tweak(const struct LDKHtlcBasepoint *NONNULL_PTR this_arg, struct LDKPublicKey per_commitment_point); /* @internal */ -export function ChannelShutdownState_not_shutting_down(): ChannelShutdownState { +export function HtlcBasepoint_derive_add_tweak(this_arg: bigint, per_commitment_point: number): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelShutdownState_not_shutting_down(); + const nativeResponseValue = wasm.TS_HtlcBasepoint_derive_add_tweak(this_arg, per_commitment_point); return nativeResponseValue; } - // enum LDKChannelShutdownState ChannelShutdownState_shutdown_initiated(void); + // struct LDKCVec_u8Z HtlcBasepoint_write(const struct LDKHtlcBasepoint *NONNULL_PTR obj); /* @internal */ -export function ChannelShutdownState_shutdown_initiated(): ChannelShutdownState { +export function HtlcBasepoint_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelShutdownState_shutdown_initiated(); + const nativeResponseValue = wasm.TS_HtlcBasepoint_write(obj); return nativeResponseValue; } - // enum LDKChannelShutdownState ChannelShutdownState_resolving_htlcs(void); + // struct LDKCResult_HtlcBasepointDecodeErrorZ HtlcBasepoint_read(struct LDKu8slice ser); /* @internal */ -export function ChannelShutdownState_resolving_htlcs(): ChannelShutdownState { +export function HtlcBasepoint_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelShutdownState_resolving_htlcs(); + const nativeResponseValue = wasm.TS_HtlcBasepoint_read(ser); return nativeResponseValue; } - // enum LDKChannelShutdownState ChannelShutdownState_negotiating_closing_fee(void); + // void HtlcKey_free(struct LDKHtlcKey this_obj); /* @internal */ -export function ChannelShutdownState_negotiating_closing_fee(): ChannelShutdownState { +export function HtlcKey_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelShutdownState_negotiating_closing_fee(); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_HtlcKey_free(this_obj); + // debug statements here } - // enum LDKChannelShutdownState ChannelShutdownState_shutdown_complete(void); + // struct LDKPublicKey HtlcKey_get_a(const struct LDKHtlcKey *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelShutdownState_shutdown_complete(): ChannelShutdownState { +export function HtlcKey_get_a(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelShutdownState_shutdown_complete(); + const nativeResponseValue = wasm.TS_HtlcKey_get_a(this_ptr); return nativeResponseValue; } - // bool ChannelShutdownState_eq(const enum LDKChannelShutdownState *NONNULL_PTR a, const enum LDKChannelShutdownState *NONNULL_PTR b); + // void HtlcKey_set_a(struct LDKHtlcKey *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function ChannelShutdownState_eq(a: bigint, b: bigint): boolean { +export function HtlcKey_set_a(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelShutdownState_eq(a, b); + const nativeResponseValue = wasm.TS_HtlcKey_set_a(this_ptr, val); + // debug statements here +} + // MUST_USE_RES struct LDKHtlcKey HtlcKey_new(struct LDKPublicKey a_arg); +/* @internal */ +export function HtlcKey_new(a_arg: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_HtlcKey_new(a_arg); return nativeResponseValue; } - // void RecentPaymentDetails_free(struct LDKRecentPaymentDetails this_ptr); + // bool HtlcKey_eq(const struct LDKHtlcKey *NONNULL_PTR a, const struct LDKHtlcKey *NONNULL_PTR b); /* @internal */ -export function RecentPaymentDetails_free(this_ptr: bigint): void { +export function HtlcKey_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RecentPaymentDetails_free(this_ptr); - // debug statements here + const nativeResponseValue = wasm.TS_HtlcKey_eq(a, b); + return nativeResponseValue; } - // uint64_t RecentPaymentDetails_clone_ptr(LDKRecentPaymentDetails *NONNULL_PTR arg); + // uint64_t HtlcKey_clone_ptr(LDKHtlcKey *NONNULL_PTR arg); /* @internal */ -export function RecentPaymentDetails_clone_ptr(arg: bigint): bigint { +export function HtlcKey_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RecentPaymentDetails_clone_ptr(arg); + const nativeResponseValue = wasm.TS_HtlcKey_clone_ptr(arg); return nativeResponseValue; } - // struct LDKRecentPaymentDetails RecentPaymentDetails_clone(const struct LDKRecentPaymentDetails *NONNULL_PTR orig); + // struct LDKHtlcKey HtlcKey_clone(const struct LDKHtlcKey *NONNULL_PTR orig); /* @internal */ -export function RecentPaymentDetails_clone(orig: bigint): bigint { +export function HtlcKey_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RecentPaymentDetails_clone(orig); + const nativeResponseValue = wasm.TS_HtlcKey_clone(orig); return nativeResponseValue; } - // struct LDKRecentPaymentDetails RecentPaymentDetails_awaiting_invoice(struct LDKThirtyTwoBytes payment_id); + // MUST_USE_RES struct LDKHtlcKey HtlcKey_from_basepoint(const struct LDKHtlcBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point); /* @internal */ -export function RecentPaymentDetails_awaiting_invoice(payment_id: number): bigint { +export function HtlcKey_from_basepoint(countersignatory_basepoint: bigint, per_commitment_point: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RecentPaymentDetails_awaiting_invoice(payment_id); + const nativeResponseValue = wasm.TS_HtlcKey_from_basepoint(countersignatory_basepoint, per_commitment_point); return nativeResponseValue; } - // struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat); + // MUST_USE_RES struct LDKHtlcKey HtlcKey_from_secret_key(const uint8_t (*sk)[32]); /* @internal */ -export function RecentPaymentDetails_pending(payment_id: number, payment_hash: number, total_msat: bigint): bigint { +export function HtlcKey_from_secret_key(sk: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RecentPaymentDetails_pending(payment_id, payment_hash, total_msat); + const nativeResponseValue = wasm.TS_HtlcKey_from_secret_key(sk); return nativeResponseValue; } - // struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKThirtyTwoBytes payment_id, struct LDKCOption_ThirtyTwoBytesZ payment_hash); + // MUST_USE_RES struct LDKPublicKey HtlcKey_to_public_key(const struct LDKHtlcKey *NONNULL_PTR this_arg); /* @internal */ -export function RecentPaymentDetails_fulfilled(payment_id: number, payment_hash: bigint): bigint { +export function HtlcKey_to_public_key(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RecentPaymentDetails_fulfilled(payment_id, payment_hash); + const nativeResponseValue = wasm.TS_HtlcKey_to_public_key(this_arg); return nativeResponseValue; } - // struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash); + // struct LDKCVec_u8Z HtlcKey_write(const struct LDKHtlcKey *NONNULL_PTR obj); /* @internal */ -export function RecentPaymentDetails_abandoned(payment_id: number, payment_hash: number): bigint { +export function HtlcKey_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RecentPaymentDetails_abandoned(payment_id, payment_hash); + const nativeResponseValue = wasm.TS_HtlcKey_write(obj); return nativeResponseValue; } - // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj); + // struct LDKCResult_HtlcKeyDecodeErrorZ HtlcKey_read(struct LDKu8slice ser); /* @internal */ -export function PhantomRouteHints_free(this_obj: bigint): void { +export function HtlcKey_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomRouteHints_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_HtlcKey_read(ser); + return nativeResponseValue; } - // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr); + // struct LDKPublicKey add_public_key_tweak(struct LDKPublicKey base_point, const uint8_t (*tweak)[32]); /* @internal */ -export function PhantomRouteHints_get_channels(this_ptr: bigint): number { +export function add_public_key_tweak(base_point: number, tweak: number): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomRouteHints_get_channels(this_ptr); + const nativeResponseValue = wasm.TS_add_public_key_tweak(base_point, tweak); return nativeResponseValue; } - // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val); + // void RevocationBasepoint_free(struct LDKRevocationBasepoint this_obj); /* @internal */ -export function PhantomRouteHints_set_channels(this_ptr: bigint, val: number): void { +export function RevocationBasepoint_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomRouteHints_set_channels(this_ptr, val); + const nativeResponseValue = wasm.TS_RevocationBasepoint_free(this_obj); // debug statements here } - // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr); + // struct LDKPublicKey RevocationBasepoint_get_a(const struct LDKRevocationBasepoint *NONNULL_PTR this_ptr); /* @internal */ -export function PhantomRouteHints_get_phantom_scid(this_ptr: bigint): bigint { +export function RevocationBasepoint_get_a(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomRouteHints_get_phantom_scid(this_ptr); + const nativeResponseValue = wasm.TS_RevocationBasepoint_get_a(this_ptr); return nativeResponseValue; } - // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val); + // void RevocationBasepoint_set_a(struct LDKRevocationBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function PhantomRouteHints_set_phantom_scid(this_ptr: bigint, val: bigint): void { +export function RevocationBasepoint_set_a(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomRouteHints_set_phantom_scid(this_ptr, val); + const nativeResponseValue = wasm.TS_RevocationBasepoint_set_a(this_ptr, val); // debug statements here } - // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKRevocationBasepoint RevocationBasepoint_new(struct LDKPublicKey a_arg); /* @internal */ -export function PhantomRouteHints_get_real_node_pubkey(this_ptr: bigint): number { +export function RevocationBasepoint_new(a_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomRouteHints_get_real_node_pubkey(this_ptr); + const nativeResponseValue = wasm.TS_RevocationBasepoint_new(a_arg); return nativeResponseValue; } - // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // bool RevocationBasepoint_eq(const struct LDKRevocationBasepoint *NONNULL_PTR a, const struct LDKRevocationBasepoint *NONNULL_PTR b); /* @internal */ -export function PhantomRouteHints_set_real_node_pubkey(this_ptr: bigint, val: number): void { +export function RevocationBasepoint_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomRouteHints_set_real_node_pubkey(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_RevocationBasepoint_eq(a, b); + return nativeResponseValue; } - // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg); + // uint64_t RevocationBasepoint_clone_ptr(LDKRevocationBasepoint *NONNULL_PTR arg); /* @internal */ -export function PhantomRouteHints_new(channels_arg: number, phantom_scid_arg: bigint, real_node_pubkey_arg: number): bigint { +export function RevocationBasepoint_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomRouteHints_new(channels_arg, phantom_scid_arg, real_node_pubkey_arg); + const nativeResponseValue = wasm.TS_RevocationBasepoint_clone_ptr(arg); return nativeResponseValue; } - // uint64_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg); + // struct LDKRevocationBasepoint RevocationBasepoint_clone(const struct LDKRevocationBasepoint *NONNULL_PTR orig); /* @internal */ -export function PhantomRouteHints_clone_ptr(arg: bigint): bigint { +export function RevocationBasepoint_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomRouteHints_clone_ptr(arg); + const nativeResponseValue = wasm.TS_RevocationBasepoint_clone(orig); return nativeResponseValue; } - // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig); + // uint64_t RevocationBasepoint_hash(const struct LDKRevocationBasepoint *NONNULL_PTR o); /* @internal */ -export function PhantomRouteHints_clone(orig: bigint): bigint { +export function RevocationBasepoint_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomRouteHints_clone(orig); + const nativeResponseValue = wasm.TS_RevocationBasepoint_hash(o); return nativeResponseValue; } - // MUST_USE_RES struct LDKChannelManager ChannelManager_new(struct LDKFeeEstimator fee_est, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKRouter router, struct LDKLogger logger, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKSignerProvider signer_provider, struct LDKUserConfig config, struct LDKChainParameters params, uint32_t current_timestamp); + // MUST_USE_RES struct LDKPublicKey RevocationBasepoint_to_public_key(const struct LDKRevocationBasepoint *NONNULL_PTR this_arg); /* @internal */ -export function ChannelManager_new(fee_est: bigint, chain_monitor: bigint, tx_broadcaster: bigint, router: bigint, logger: bigint, entropy_source: bigint, node_signer: bigint, signer_provider: bigint, config: bigint, params: bigint, current_timestamp: number): bigint { +export function RevocationBasepoint_to_public_key(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_new(fee_est, chain_monitor, tx_broadcaster, router, logger, entropy_source, node_signer, signer_provider, config, params, current_timestamp); + const nativeResponseValue = wasm.TS_RevocationBasepoint_to_public_key(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg); + // struct LDKCVec_u8Z RevocationBasepoint_write(const struct LDKRevocationBasepoint *NONNULL_PTR obj); /* @internal */ -export function ChannelManager_get_current_default_configuration(this_arg: bigint): bigint { +export function RevocationBasepoint_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_get_current_default_configuration(this_arg); + const nativeResponseValue = wasm.TS_RevocationBasepoint_write(obj); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_create_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey their_network_key, uint64_t channel_value_satoshis, uint64_t push_msat, struct LDKU128 user_channel_id, struct LDKCOption_ThirtyTwoBytesZ temporary_channel_id, struct LDKUserConfig override_config); + // struct LDKCResult_RevocationBasepointDecodeErrorZ RevocationBasepoint_read(struct LDKu8slice ser); /* @internal */ -export function ChannelManager_create_channel(this_arg: bigint, their_network_key: number, channel_value_satoshis: bigint, push_msat: bigint, user_channel_id: number, temporary_channel_id: bigint, override_config: bigint): bigint { +export function RevocationBasepoint_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_create_channel(this_arg, their_network_key, channel_value_satoshis, push_msat, user_channel_id, temporary_channel_id, override_config); + const nativeResponseValue = wasm.TS_RevocationBasepoint_read(ser); return nativeResponseValue; } - // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg); + // void RevocationKey_free(struct LDKRevocationKey this_obj); /* @internal */ -export function ChannelManager_list_channels(this_arg: bigint): number { +export function RevocationKey_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_list_channels(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_RevocationKey_free(this_obj); + // debug statements here } - // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg); + // struct LDKPublicKey RevocationKey_get_a(const struct LDKRevocationKey *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManager_list_usable_channels(this_arg: bigint): number { +export function RevocationKey_get_a(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_list_usable_channels(this_arg); + const nativeResponseValue = wasm.TS_RevocationKey_get_a(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels_with_counterparty(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id); + // void RevocationKey_set_a(struct LDKRevocationKey *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function ChannelManager_list_channels_with_counterparty(this_arg: bigint, counterparty_node_id: number): number { +export function RevocationKey_set_a(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_list_channels_with_counterparty(this_arg, counterparty_node_id); + const nativeResponseValue = wasm.TS_RevocationKey_set_a(this_ptr, val); + // debug statements here +} + // MUST_USE_RES struct LDKRevocationKey RevocationKey_new(struct LDKPublicKey a_arg); +/* @internal */ +export function RevocationKey_new(a_arg: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RevocationKey_new(a_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKCVec_RecentPaymentDetailsZ ChannelManager_list_recent_payments(const struct LDKChannelManager *NONNULL_PTR this_arg); + // bool RevocationKey_eq(const struct LDKRevocationKey *NONNULL_PTR a, const struct LDKRevocationKey *NONNULL_PTR b); /* @internal */ -export function ChannelManager_list_recent_payments(this_arg: bigint): number { +export function RevocationKey_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_list_recent_payments(this_arg); + const nativeResponseValue = wasm.TS_RevocationKey_eq(a, b); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id); + // uint64_t RevocationKey_clone_ptr(LDKRevocationKey *NONNULL_PTR arg); /* @internal */ -export function ChannelManager_close_channel(this_arg: bigint, channel_id: number, counterparty_node_id: number): bigint { +export function RevocationKey_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_close_channel(this_arg, channel_id, counterparty_node_id); + const nativeResponseValue = wasm.TS_RevocationKey_clone_ptr(arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel_with_feerate_and_script(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKCOption_u32Z target_feerate_sats_per_1000_weight, struct LDKShutdownScript shutdown_script); + // struct LDKRevocationKey RevocationKey_clone(const struct LDKRevocationKey *NONNULL_PTR orig); /* @internal */ -export function ChannelManager_close_channel_with_feerate_and_script(this_arg: bigint, channel_id: number, counterparty_node_id: number, target_feerate_sats_per_1000_weight: bigint, shutdown_script: bigint): bigint { +export function RevocationKey_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_close_channel_with_feerate_and_script(this_arg, channel_id, counterparty_node_id, target_feerate_sats_per_1000_weight, shutdown_script); + const nativeResponseValue = wasm.TS_RevocationKey_clone(orig); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id); + // uint64_t RevocationKey_hash(const struct LDKRevocationKey *NONNULL_PTR o); /* @internal */ -export function ChannelManager_force_close_broadcasting_latest_txn(this_arg: bigint, channel_id: number, counterparty_node_id: number): bigint { +export function RevocationKey_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_force_close_broadcasting_latest_txn(this_arg, channel_id, counterparty_node_id); + const nativeResponseValue = wasm.TS_RevocationKey_hash(o); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_force_close_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id); + // MUST_USE_RES struct LDKRevocationKey RevocationKey_from_basepoint(const struct LDKRevocationBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point); /* @internal */ -export function ChannelManager_force_close_without_broadcasting_txn(this_arg: bigint, channel_id: number, counterparty_node_id: number): bigint { +export function RevocationKey_from_basepoint(countersignatory_basepoint: bigint, per_commitment_point: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_force_close_without_broadcasting_txn(this_arg, channel_id, counterparty_node_id); + const nativeResponseValue = wasm.TS_RevocationKey_from_basepoint(countersignatory_basepoint, per_commitment_point); return nativeResponseValue; } - // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKPublicKey RevocationKey_to_public_key(const struct LDKRevocationKey *NONNULL_PTR this_arg); /* @internal */ -export function ChannelManager_force_close_all_channels_broadcasting_latest_txn(this_arg: bigint): void { +export function RevocationKey_to_public_key(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels_broadcasting_latest_txn(this_arg); - // debug statements here + const nativeResponseValue = wasm.TS_RevocationKey_to_public_key(this_arg); + return nativeResponseValue; } - // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg); + // struct LDKCVec_u8Z RevocationKey_write(const struct LDKRevocationKey *NONNULL_PTR obj); /* @internal */ -export function ChannelManager_force_close_all_channels_without_broadcasting_txn(this_arg: bigint): void { +export function RevocationKey_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels_without_broadcasting_txn(this_arg); - // debug statements here + const nativeResponseValue = wasm.TS_RevocationKey_write(obj); + return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NonePaymentSendFailureZ ChannelManager_send_payment_with_route(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id); + // struct LDKCResult_RevocationKeyDecodeErrorZ RevocationKey_read(struct LDKu8slice ser); /* @internal */ -export function ChannelManager_send_payment_with_route(this_arg: bigint, route: bigint, payment_hash: number, recipient_onion: bigint, payment_id: number): bigint { +export function RevocationKey_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_send_payment_with_route(this_arg, route, payment_hash, recipient_onion, payment_id); + const nativeResponseValue = wasm.TS_RevocationKey_read(ser); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneRetryableSendFailureZ ChannelManager_send_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy); + // enum LDKInboundHTLCStateDetails InboundHTLCStateDetails_clone(const enum LDKInboundHTLCStateDetails *NONNULL_PTR orig); /* @internal */ -export function ChannelManager_send_payment(this_arg: bigint, payment_hash: number, recipient_onion: bigint, payment_id: number, route_params: bigint, retry_strategy: bigint): bigint { +export function InboundHTLCStateDetails_clone(orig: bigint): InboundHTLCStateDetails { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_send_payment(this_arg, payment_hash, recipient_onion, payment_id, route_params, retry_strategy); + const nativeResponseValue = wasm.TS_InboundHTLCStateDetails_clone(orig); return nativeResponseValue; } - // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id); + // enum LDKInboundHTLCStateDetails InboundHTLCStateDetails_awaiting_remote_revoke_to_add(void); /* @internal */ -export function ChannelManager_abandon_payment(this_arg: bigint, payment_id: number): void { +export function InboundHTLCStateDetails_awaiting_remote_revoke_to_add(): InboundHTLCStateDetails { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_abandon_payment(this_arg, payment_id); - // debug statements here + const nativeResponseValue = wasm.TS_InboundHTLCStateDetails_awaiting_remote_revoke_to_add(); + return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id); + // enum LDKInboundHTLCStateDetails InboundHTLCStateDetails_committed(void); /* @internal */ -export function ChannelManager_send_spontaneous_payment(this_arg: bigint, route: bigint, payment_preimage: bigint, recipient_onion: bigint, payment_id: number): bigint { +export function InboundHTLCStateDetails_committed(): InboundHTLCStateDetails { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_payment(this_arg, route, payment_preimage, recipient_onion, payment_id); + const nativeResponseValue = wasm.TS_InboundHTLCStateDetails_committed(); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesRetryableSendFailureZ ChannelManager_send_spontaneous_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy); + // enum LDKInboundHTLCStateDetails InboundHTLCStateDetails_awaiting_remote_revoke_to_remove_fulfill(void); /* @internal */ -export function ChannelManager_send_spontaneous_payment_with_retry(this_arg: bigint, payment_preimage: bigint, recipient_onion: bigint, payment_id: number, route_params: bigint, retry_strategy: bigint): bigint { +export function InboundHTLCStateDetails_awaiting_remote_revoke_to_remove_fulfill(): InboundHTLCStateDetails { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_payment_with_retry(this_arg, payment_preimage, recipient_onion, payment_id, route_params, retry_strategy); + const nativeResponseValue = wasm.TS_InboundHTLCStateDetails_awaiting_remote_revoke_to_remove_fulfill(); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPath path); + // enum LDKInboundHTLCStateDetails InboundHTLCStateDetails_awaiting_remote_revoke_to_remove_fail(void); /* @internal */ -export function ChannelManager_send_probe(this_arg: bigint, path: bigint): bigint { +export function InboundHTLCStateDetails_awaiting_remote_revoke_to_remove_fail(): InboundHTLCStateDetails { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_send_probe(this_arg, path); + const nativeResponseValue = wasm.TS_InboundHTLCStateDetails_awaiting_remote_revoke_to_remove_fail(); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_spontaneous_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id, uint64_t amount_msat, uint32_t final_cltv_expiry_delta, struct LDKCOption_u64Z liquidity_limit_multiplier); + // struct LDKCVec_u8Z InboundHTLCStateDetails_write(const enum LDKInboundHTLCStateDetails *NONNULL_PTR obj); /* @internal */ -export function ChannelManager_send_spontaneous_preflight_probes(this_arg: bigint, node_id: number, amount_msat: bigint, final_cltv_expiry_delta: number, liquidity_limit_multiplier: bigint): bigint { +export function InboundHTLCStateDetails_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_preflight_probes(this_arg, node_id, amount_msat, final_cltv_expiry_delta, liquidity_limit_multiplier); + const nativeResponseValue = wasm.TS_InboundHTLCStateDetails_write(obj); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_CVec_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZZProbeSendFailureZ ChannelManager_send_preflight_probes(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKRouteParameters route_params, struct LDKCOption_u64Z liquidity_limit_multiplier); + // struct LDKCResult_COption_InboundHTLCStateDetailsZDecodeErrorZ InboundHTLCStateDetails_read(struct LDKu8slice ser); /* @internal */ -export function ChannelManager_send_preflight_probes(this_arg: bigint, route_params: bigint, liquidity_limit_multiplier: bigint): bigint { +export function InboundHTLCStateDetails_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_send_preflight_probes(this_arg, route_params, liquidity_limit_multiplier); + const nativeResponseValue = wasm.TS_InboundHTLCStateDetails_read(ser); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKTransaction funding_transaction); + // void InboundHTLCDetails_free(struct LDKInboundHTLCDetails this_obj); /* @internal */ -export function ChannelManager_funding_transaction_generated(this_arg: bigint, temporary_channel_id: number, counterparty_node_id: number, funding_transaction: number): bigint { +export function InboundHTLCDetails_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_funding_transaction_generated(this_arg, temporary_channel_id, counterparty_node_id, funding_transaction); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_InboundHTLCDetails_free(this_obj); + // debug statements here } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_batch_funding_transaction_generated(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_ThirtyTwoBytesPublicKeyZZ temporary_channels, struct LDKTransaction funding_transaction); + // uint64_t InboundHTLCDetails_get_htlc_id(const struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManager_batch_funding_transaction_generated(this_arg: bigint, temporary_channels: number, funding_transaction: number): bigint { +export function InboundHTLCDetails_get_htlc_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_batch_funding_transaction_generated(this_arg, temporary_channels, funding_transaction); + const nativeResponseValue = wasm.TS_InboundHTLCDetails_get_htlc_id(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_partial_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ThirtyTwoBytesZ channel_ids, const struct LDKChannelConfigUpdate *NONNULL_PTR config_update); + // void InboundHTLCDetails_set_htlc_id(struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function ChannelManager_update_partial_channel_config(this_arg: bigint, counterparty_node_id: number, channel_ids: number, config_update: bigint): bigint { +export function InboundHTLCDetails_set_htlc_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_update_partial_channel_config(this_arg, counterparty_node_id, channel_ids, config_update); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_InboundHTLCDetails_set_htlc_id(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_update_channel_config(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id, struct LDKCVec_ThirtyTwoBytesZ channel_ids, const struct LDKChannelConfig *NONNULL_PTR config); + // uint64_t InboundHTLCDetails_get_amount_msat(const struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManager_update_channel_config(this_arg: bigint, counterparty_node_id: number, channel_ids: number, config: bigint): bigint { +export function InboundHTLCDetails_get_amount_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_update_channel_config(this_arg, counterparty_node_id, channel_ids, config); + const nativeResponseValue = wasm.TS_InboundHTLCDetails_get_amount_msat(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_forward_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id, const uint8_t (*next_hop_channel_id)[32], struct LDKPublicKey next_node_id, uint64_t amt_to_forward_msat); + // void InboundHTLCDetails_set_amount_msat(struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function ChannelManager_forward_intercepted_htlc(this_arg: bigint, intercept_id: number, next_hop_channel_id: number, next_node_id: number, amt_to_forward_msat: bigint): bigint { +export function InboundHTLCDetails_set_amount_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_forward_intercepted_htlc(this_arg, intercept_id, next_hop_channel_id, next_node_id, amt_to_forward_msat); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_InboundHTLCDetails_set_amount_msat(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_fail_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id); + // uint32_t InboundHTLCDetails_get_cltv_expiry(const struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManager_fail_intercepted_htlc(this_arg: bigint, intercept_id: number): bigint { +export function InboundHTLCDetails_get_cltv_expiry(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_fail_intercepted_htlc(this_arg, intercept_id); + const nativeResponseValue = wasm.TS_InboundHTLCDetails_get_cltv_expiry(this_ptr); return nativeResponseValue; } - // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg); + // void InboundHTLCDetails_set_cltv_expiry(struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function ChannelManager_process_pending_htlc_forwards(this_arg: bigint): void { +export function InboundHTLCDetails_set_cltv_expiry(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_process_pending_htlc_forwards(this_arg); + const nativeResponseValue = wasm.TS_InboundHTLCDetails_set_cltv_expiry(this_ptr, val); // debug statements here } - // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg); + // const uint8_t (*InboundHTLCDetails_get_payment_hash(const struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr))[32]; /* @internal */ -export function ChannelManager_timer_tick_occurred(this_arg: bigint): void { +export function InboundHTLCDetails_get_payment_hash(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_timer_tick_occurred(this_arg); - // debug statements here + const nativeResponseValue = wasm.TS_InboundHTLCDetails_get_payment_hash(this_ptr); + return nativeResponseValue; } - // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]); + // void InboundHTLCDetails_set_payment_hash(struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); /* @internal */ -export function ChannelManager_fail_htlc_backwards(this_arg: bigint, payment_hash: number): void { +export function InboundHTLCDetails_set_payment_hash(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_fail_htlc_backwards(this_arg, payment_hash); + const nativeResponseValue = wasm.TS_InboundHTLCDetails_set_payment_hash(this_ptr, val); // debug statements here } - // void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], struct LDKFailureCode failure_code); + // struct LDKCOption_InboundHTLCStateDetailsZ InboundHTLCDetails_get_state(const struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManager_fail_htlc_backwards_with_reason(this_arg: bigint, payment_hash: number, failure_code: bigint): void { +export function InboundHTLCDetails_get_state(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_fail_htlc_backwards_with_reason(this_arg, payment_hash, failure_code); - // debug statements here + const nativeResponseValue = wasm.TS_InboundHTLCDetails_get_state(this_ptr); + return nativeResponseValue; } - // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage); + // void InboundHTLCDetails_set_state(struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr, struct LDKCOption_InboundHTLCStateDetailsZ val); /* @internal */ -export function ChannelManager_claim_funds(this_arg: bigint, payment_preimage: number): void { +export function InboundHTLCDetails_set_state(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_claim_funds(this_arg, payment_preimage); + const nativeResponseValue = wasm.TS_InboundHTLCDetails_set_state(this_ptr, val); // debug statements here } - // void ChannelManager_claim_funds_with_known_custom_tlvs(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage); + // bool InboundHTLCDetails_get_is_dust(const struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManager_claim_funds_with_known_custom_tlvs(this_arg: bigint, payment_preimage: number): void { +export function InboundHTLCDetails_get_is_dust(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_claim_funds_with_known_custom_tlvs(this_arg, payment_preimage); - // debug statements here + const nativeResponseValue = wasm.TS_InboundHTLCDetails_get_is_dust(this_ptr); + return nativeResponseValue; } - // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg); + // void InboundHTLCDetails_set_is_dust(struct LDKInboundHTLCDetails *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function ChannelManager_get_our_node_id(this_arg: bigint): number { +export function InboundHTLCDetails_set_is_dust(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_get_our_node_id(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_InboundHTLCDetails_set_is_dust(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKU128 user_channel_id); + // MUST_USE_RES struct LDKInboundHTLCDetails InboundHTLCDetails_new(uint64_t htlc_id_arg, uint64_t amount_msat_arg, uint32_t cltv_expiry_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_InboundHTLCStateDetailsZ state_arg, bool is_dust_arg); /* @internal */ -export function ChannelManager_accept_inbound_channel(this_arg: bigint, temporary_channel_id: number, counterparty_node_id: number, user_channel_id: number): bigint { +export function InboundHTLCDetails_new(htlc_id_arg: bigint, amount_msat_arg: bigint, cltv_expiry_arg: number, payment_hash_arg: number, state_arg: bigint, is_dust_arg: boolean): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id); + const nativeResponseValue = wasm.TS_InboundHTLCDetails_new(htlc_id_arg, amount_msat_arg, cltv_expiry_arg, payment_hash_arg, state_arg, is_dust_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*temporary_channel_id)[32], struct LDKPublicKey counterparty_node_id, struct LDKU128 user_channel_id); + // uint64_t InboundHTLCDetails_clone_ptr(LDKInboundHTLCDetails *NONNULL_PTR arg); /* @internal */ -export function ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(this_arg: bigint, temporary_channel_id: number, counterparty_node_id: number, user_channel_id: number): bigint { +export function InboundHTLCDetails_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id); + const nativeResponseValue = wasm.TS_InboundHTLCDetails_clone_ptr(arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ ChannelManager_pay_for_offer(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKOffer *NONNULL_PTR offer, struct LDKCOption_u64Z quantity, struct LDKCOption_u64Z amount_msats, struct LDKCOption_StrZ payer_note, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, struct LDKCOption_u64Z max_total_routing_fee_msat); + // struct LDKInboundHTLCDetails InboundHTLCDetails_clone(const struct LDKInboundHTLCDetails *NONNULL_PTR orig); /* @internal */ -export function ChannelManager_pay_for_offer(this_arg: bigint, offer: bigint, quantity: bigint, amount_msats: bigint, payer_note: bigint, payment_id: number, retry_strategy: bigint, max_total_routing_fee_msat: bigint): bigint { +export function InboundHTLCDetails_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_pay_for_offer(this_arg, offer, quantity, amount_msats, payer_note, payment_id, retry_strategy, max_total_routing_fee_msat); + const nativeResponseValue = wasm.TS_InboundHTLCDetails_clone(orig); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ ChannelManager_request_refund_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRefund *NONNULL_PTR refund); + // struct LDKCVec_u8Z InboundHTLCDetails_write(const struct LDKInboundHTLCDetails *NONNULL_PTR obj); /* @internal */ -export function ChannelManager_request_refund_payment(this_arg: bigint, refund: bigint): bigint { +export function InboundHTLCDetails_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_request_refund_payment(this_arg, refund); + const nativeResponseValue = wasm.TS_InboundHTLCDetails_write(obj); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_C2Tuple_ThirtyTwoBytesThirtyTwoBytesZNoneZ ChannelManager_create_inbound_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta); + // struct LDKCResult_InboundHTLCDetailsDecodeErrorZ InboundHTLCDetails_read(struct LDKu8slice ser); /* @internal */ -export function ChannelManager_create_inbound_payment(this_arg: bigint, min_value_msat: bigint, invoice_expiry_delta_secs: number, min_final_cltv_expiry_delta: bigint): bigint { +export function InboundHTLCDetails_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment(this_arg, min_value_msat, invoice_expiry_delta_secs, min_final_cltv_expiry_delta); + const nativeResponseValue = wasm.TS_InboundHTLCDetails_read(ser); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesNoneZ ChannelManager_create_inbound_payment_for_hash(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry); + // enum LDKOutboundHTLCStateDetails OutboundHTLCStateDetails_clone(const enum LDKOutboundHTLCStateDetails *NONNULL_PTR orig); /* @internal */ -export function ChannelManager_create_inbound_payment_for_hash(this_arg: bigint, payment_hash: number, min_value_msat: bigint, invoice_expiry_delta_secs: number, min_final_cltv_expiry: bigint): bigint { +export function OutboundHTLCStateDetails_clone(orig: bigint): OutboundHTLCStateDetails { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs, min_final_cltv_expiry); + const nativeResponseValue = wasm.TS_OutboundHTLCStateDetails_clone(orig); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_ThirtyTwoBytesAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret); + // enum LDKOutboundHTLCStateDetails OutboundHTLCStateDetails_awaiting_remote_revoke_to_add(void); /* @internal */ -export function ChannelManager_get_payment_preimage(this_arg: bigint, payment_hash: number, payment_secret: number): bigint { +export function OutboundHTLCStateDetails_awaiting_remote_revoke_to_add(): OutboundHTLCStateDetails { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_get_payment_preimage(this_arg, payment_hash, payment_secret); + const nativeResponseValue = wasm.TS_OutboundHTLCStateDetails_awaiting_remote_revoke_to_add(); return nativeResponseValue; } - // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg); + // enum LDKOutboundHTLCStateDetails OutboundHTLCStateDetails_committed(void); /* @internal */ -export function ChannelManager_get_phantom_scid(this_arg: bigint): bigint { +export function OutboundHTLCStateDetails_committed(): OutboundHTLCStateDetails { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_scid(this_arg); + const nativeResponseValue = wasm.TS_OutboundHTLCStateDetails_committed(); return nativeResponseValue; } - // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg); + // enum LDKOutboundHTLCStateDetails OutboundHTLCStateDetails_awaiting_remote_revoke_to_remove_success(void); /* @internal */ -export function ChannelManager_get_phantom_route_hints(this_arg: bigint): bigint { +export function OutboundHTLCStateDetails_awaiting_remote_revoke_to_remove_success(): OutboundHTLCStateDetails { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_route_hints(this_arg); + const nativeResponseValue = wasm.TS_OutboundHTLCStateDetails_awaiting_remote_revoke_to_remove_success(); return nativeResponseValue; } - // MUST_USE_RES uint64_t ChannelManager_get_intercept_scid(const struct LDKChannelManager *NONNULL_PTR this_arg); + // enum LDKOutboundHTLCStateDetails OutboundHTLCStateDetails_awaiting_remote_revoke_to_remove_failure(void); /* @internal */ -export function ChannelManager_get_intercept_scid(this_arg: bigint): bigint { +export function OutboundHTLCStateDetails_awaiting_remote_revoke_to_remove_failure(): OutboundHTLCStateDetails { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_get_intercept_scid(this_arg); + const nativeResponseValue = wasm.TS_OutboundHTLCStateDetails_awaiting_remote_revoke_to_remove_failure(); return nativeResponseValue; } - // MUST_USE_RES struct LDKInFlightHtlcs ChannelManager_compute_inflight_htlcs(const struct LDKChannelManager *NONNULL_PTR this_arg); + // struct LDKCVec_u8Z OutboundHTLCStateDetails_write(const enum LDKOutboundHTLCStateDetails *NONNULL_PTR obj); /* @internal */ -export function ChannelManager_compute_inflight_htlcs(this_arg: bigint): bigint { +export function OutboundHTLCStateDetails_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_compute_inflight_htlcs(this_arg); + const nativeResponseValue = wasm.TS_OutboundHTLCStateDetails_write(obj); return nativeResponseValue; } - // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg); + // struct LDKCResult_COption_OutboundHTLCStateDetailsZDecodeErrorZ OutboundHTLCStateDetails_read(struct LDKu8slice ser); /* @internal */ -export function ChannelManager_as_MessageSendEventsProvider(this_arg: bigint): bigint { +export function OutboundHTLCStateDetails_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_as_MessageSendEventsProvider(this_arg); + const nativeResponseValue = wasm.TS_OutboundHTLCStateDetails_read(ser); return nativeResponseValue; } - // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg); + // void OutboundHTLCDetails_free(struct LDKOutboundHTLCDetails this_obj); /* @internal */ -export function ChannelManager_as_EventsProvider(this_arg: bigint): bigint { +export function OutboundHTLCDetails_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_as_EventsProvider(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_free(this_obj); + // debug statements here } - // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg); + // struct LDKCOption_u64Z OutboundHTLCDetails_get_htlc_id(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManager_as_Listen(this_arg: bigint): bigint { +export function OutboundHTLCDetails_get_htlc_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_as_Listen(this_arg); + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_get_htlc_id(this_ptr); return nativeResponseValue; } - // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg); + // void OutboundHTLCDetails_set_htlc_id(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function ChannelManager_as_Confirm(this_arg: bigint): bigint { +export function OutboundHTLCDetails_set_htlc_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_as_Confirm(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_set_htlc_id(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKFuture ChannelManager_get_event_or_persistence_needed_future(const struct LDKChannelManager *NONNULL_PTR this_arg); + // uint64_t OutboundHTLCDetails_get_amount_msat(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManager_get_event_or_persistence_needed_future(this_arg: bigint): bigint { +export function OutboundHTLCDetails_get_amount_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_get_event_or_persistence_needed_future(this_arg); + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_get_amount_msat(this_ptr); return nativeResponseValue; } - // MUST_USE_RES bool ChannelManager_get_and_clear_needs_persistence(const struct LDKChannelManager *NONNULL_PTR this_arg); + // void OutboundHTLCDetails_set_amount_msat(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function ChannelManager_get_and_clear_needs_persistence(this_arg: bigint): boolean { +export function OutboundHTLCDetails_set_amount_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_get_and_clear_needs_persistence(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_set_amount_msat(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg); + // uint32_t OutboundHTLCDetails_get_cltv_expiry(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManager_current_best_block(this_arg: bigint): bigint { +export function OutboundHTLCDetails_get_cltv_expiry(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_current_best_block(this_arg); + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_get_cltv_expiry(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKNodeFeatures ChannelManager_node_features(const struct LDKChannelManager *NONNULL_PTR this_arg); + // void OutboundHTLCDetails_set_cltv_expiry(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function ChannelManager_node_features(this_arg: bigint): bigint { +export function OutboundHTLCDetails_set_cltv_expiry(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_node_features(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_set_cltv_expiry(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKChannelFeatures ChannelManager_channel_features(const struct LDKChannelManager *NONNULL_PTR this_arg); + // const uint8_t (*OutboundHTLCDetails_get_payment_hash(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr))[32]; /* @internal */ -export function ChannelManager_channel_features(this_arg: bigint): bigint { +export function OutboundHTLCDetails_get_payment_hash(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_channel_features(this_arg); + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_get_payment_hash(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKChannelTypeFeatures ChannelManager_channel_type_features(const struct LDKChannelManager *NONNULL_PTR this_arg); + // void OutboundHTLCDetails_set_payment_hash(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); /* @internal */ -export function ChannelManager_channel_type_features(this_arg: bigint): bigint { +export function OutboundHTLCDetails_set_payment_hash(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_channel_type_features(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_set_payment_hash(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKInitFeatures ChannelManager_init_features(const struct LDKChannelManager *NONNULL_PTR this_arg); + // struct LDKCOption_OutboundHTLCStateDetailsZ OutboundHTLCDetails_get_state(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManager_init_features(this_arg: bigint): bigint { +export function OutboundHTLCDetails_get_state(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_init_features(this_arg); + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_get_state(this_ptr); return nativeResponseValue; } - // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg); + // void OutboundHTLCDetails_set_state(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, struct LDKCOption_OutboundHTLCStateDetailsZ val); /* @internal */ -export function ChannelManager_as_ChannelMessageHandler(this_arg: bigint): bigint { +export function OutboundHTLCDetails_set_state(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_as_ChannelMessageHandler(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_set_state(this_ptr, val); + // debug statements here } - // struct LDKOffersMessageHandler ChannelManager_as_OffersMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg); + // struct LDKCOption_u64Z OutboundHTLCDetails_get_skimmed_fee_msat(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManager_as_OffersMessageHandler(this_arg: bigint): bigint { +export function OutboundHTLCDetails_get_skimmed_fee_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_as_OffersMessageHandler(this_arg); + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_get_skimmed_fee_msat(this_ptr); return nativeResponseValue; } - // struct LDKInitFeatures provided_init_features(const struct LDKUserConfig *NONNULL_PTR config); + // void OutboundHTLCDetails_set_skimmed_fee_msat(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function provided_init_features(config: bigint): bigint { +export function OutboundHTLCDetails_set_skimmed_fee_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_provided_init_features(config); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_set_skimmed_fee_msat(this_ptr, val); + // debug statements here } - // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj); + // bool OutboundHTLCDetails_get_is_dust(const struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr); /* @internal */ -export function CounterpartyForwardingInfo_write(obj: bigint): number { +export function OutboundHTLCDetails_get_is_dust(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_write(obj); + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_get_is_dust(this_ptr); return nativeResponseValue; } - // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser); + // void OutboundHTLCDetails_set_is_dust(struct LDKOutboundHTLCDetails *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function CounterpartyForwardingInfo_read(ser: number): bigint { +export function OutboundHTLCDetails_set_is_dust(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_read(ser); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_set_is_dust(this_ptr, val); + // debug statements here } - // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj); + // MUST_USE_RES struct LDKOutboundHTLCDetails OutboundHTLCDetails_new(struct LDKCOption_u64Z htlc_id_arg, uint64_t amount_msat_arg, uint32_t cltv_expiry_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_OutboundHTLCStateDetailsZ state_arg, struct LDKCOption_u64Z skimmed_fee_msat_arg, bool is_dust_arg); /* @internal */ -export function ChannelCounterparty_write(obj: bigint): number { +export function OutboundHTLCDetails_new(htlc_id_arg: bigint, amount_msat_arg: bigint, cltv_expiry_arg: number, payment_hash_arg: number, state_arg: bigint, skimmed_fee_msat_arg: bigint, is_dust_arg: boolean): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_write(obj); + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_new(htlc_id_arg, amount_msat_arg, cltv_expiry_arg, payment_hash_arg, state_arg, skimmed_fee_msat_arg, is_dust_arg); return nativeResponseValue; } - // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser); + // uint64_t OutboundHTLCDetails_clone_ptr(LDKOutboundHTLCDetails *NONNULL_PTR arg); /* @internal */ -export function ChannelCounterparty_read(ser: number): bigint { +export function OutboundHTLCDetails_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelCounterparty_read(ser); + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj); + // struct LDKOutboundHTLCDetails OutboundHTLCDetails_clone(const struct LDKOutboundHTLCDetails *NONNULL_PTR orig); /* @internal */ -export function ChannelDetails_write(obj: bigint): number { +export function OutboundHTLCDetails_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_write(obj); + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_clone(orig); return nativeResponseValue; } - // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser); + // struct LDKCVec_u8Z OutboundHTLCDetails_write(const struct LDKOutboundHTLCDetails *NONNULL_PTR obj); /* @internal */ -export function ChannelDetails_read(ser: number): bigint { +export function OutboundHTLCDetails_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelDetails_read(ser); + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_write(obj); return nativeResponseValue; } - // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj); + // struct LDKCResult_OutboundHTLCDetailsDecodeErrorZ OutboundHTLCDetails_read(struct LDKu8slice ser); /* @internal */ -export function PhantomRouteHints_write(obj: bigint): number { +export function OutboundHTLCDetails_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomRouteHints_write(obj); + const nativeResponseValue = wasm.TS_OutboundHTLCDetails_read(ser); return nativeResponseValue; } - // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser); + // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj); /* @internal */ -export function PhantomRouteHints_read(ser: number): bigint { +export function CounterpartyForwardingInfo_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomRouteHints_read(ser); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_free(this_obj); + // debug statements here } - // struct LDKCVec_u8Z BlindedForward_write(const struct LDKBlindedForward *NONNULL_PTR obj); + // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr); /* @internal */ -export function BlindedForward_write(obj: bigint): number { +export function CounterpartyForwardingInfo_get_fee_base_msat(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedForward_write(obj); + const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_base_msat(this_ptr); return nativeResponseValue; } - // struct LDKCResult_BlindedForwardDecodeErrorZ BlindedForward_read(struct LDKu8slice ser); + // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function BlindedForward_read(ser: number): bigint { +export function CounterpartyForwardingInfo_set_fee_base_msat(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedForward_read(ser); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_base_msat(this_ptr, val); + // debug statements here } - // struct LDKCVec_u8Z PendingHTLCRouting_write(const struct LDKPendingHTLCRouting *NONNULL_PTR obj); + // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr); /* @internal */ -export function PendingHTLCRouting_write(obj: bigint): number { +export function CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCRouting_write(obj); + const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr); return nativeResponseValue; } - // struct LDKCResult_PendingHTLCRoutingDecodeErrorZ PendingHTLCRouting_read(struct LDKu8slice ser); + // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function PendingHTLCRouting_read(ser: number): bigint { +export function CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCRouting_read(ser); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr, val); + // debug statements here } - // struct LDKCVec_u8Z PendingHTLCInfo_write(const struct LDKPendingHTLCInfo *NONNULL_PTR obj); + // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr); /* @internal */ -export function PendingHTLCInfo_write(obj: bigint): number { +export function CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_write(obj); + const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr); return nativeResponseValue; } - // struct LDKCResult_PendingHTLCInfoDecodeErrorZ PendingHTLCInfo_read(struct LDKu8slice ser); + // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val); /* @internal */ -export function PendingHTLCInfo_read(ser: number): bigint { +export function CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PendingHTLCInfo_read(ser); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr, val); + // debug statements here } - // struct LDKCVec_u8Z BlindedFailure_write(const enum LDKBlindedFailure *NONNULL_PTR obj); + // MUST_USE_RES struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_new(uint32_t fee_base_msat_arg, uint32_t fee_proportional_millionths_arg, uint16_t cltv_expiry_delta_arg); /* @internal */ -export function BlindedFailure_write(obj: bigint): number { +export function CounterpartyForwardingInfo_new(fee_base_msat_arg: number, fee_proportional_millionths_arg: number, cltv_expiry_delta_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedFailure_write(obj); + const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg); return nativeResponseValue; } - // struct LDKCResult_BlindedFailureDecodeErrorZ BlindedFailure_read(struct LDKu8slice ser); + // uint64_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg); /* @internal */ -export function BlindedFailure_read(ser: number): bigint { +export function CounterpartyForwardingInfo_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedFailure_read(ser); + const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj); + // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig); /* @internal */ -export function ChannelManager_write(obj: bigint): number { +export function CounterpartyForwardingInfo_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManager_write(obj); + const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone(orig); return nativeResponseValue; } - // struct LDKCVec_u8Z ChannelShutdownState_write(const enum LDKChannelShutdownState *NONNULL_PTR obj); + // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj); /* @internal */ -export function ChannelShutdownState_write(obj: bigint): number { +export function CounterpartyForwardingInfo_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelShutdownState_write(obj); + const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_write(obj); return nativeResponseValue; } - // struct LDKCResult_ChannelShutdownStateDecodeErrorZ ChannelShutdownState_read(struct LDKu8slice ser); + // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser); /* @internal */ -export function ChannelShutdownState_read(ser: number): bigint { +export function CounterpartyForwardingInfo_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelShutdownState_read(ser); + const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_read(ser); return nativeResponseValue; } - // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj); + // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj); /* @internal */ -export function ChannelManagerReadArgs_free(this_obj: bigint): void { +export function ChannelCounterparty_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelCounterparty_free(this_obj); // debug statements here } - // const struct LDKEntropySource *ChannelManagerReadArgs_get_entropy_source(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); + // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManagerReadArgs_get_entropy_source(this_ptr: bigint): bigint { +export function ChannelCounterparty_get_node_id(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_entropy_source(this_ptr); + const nativeResponseValue = wasm.TS_ChannelCounterparty_get_node_id(this_ptr); return nativeResponseValue; } - // void ChannelManagerReadArgs_set_entropy_source(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKEntropySource val); + // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function ChannelManagerReadArgs_set_entropy_source(this_ptr: bigint, val: bigint): void { +export function ChannelCounterparty_set_node_id(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_entropy_source(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelCounterparty_set_node_id(this_ptr, val); // debug statements here } - // const struct LDKNodeSigner *ChannelManagerReadArgs_get_node_signer(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); + // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManagerReadArgs_get_node_signer(this_ptr: bigint): bigint { +export function ChannelCounterparty_get_features(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_node_signer(this_ptr); + const nativeResponseValue = wasm.TS_ChannelCounterparty_get_features(this_ptr); return nativeResponseValue; } - // void ChannelManagerReadArgs_set_node_signer(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKNodeSigner val); + // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val); /* @internal */ -export function ChannelManagerReadArgs_set_node_signer(this_ptr: bigint, val: bigint): void { +export function ChannelCounterparty_set_features(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_node_signer(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelCounterparty_set_features(this_ptr, val); // debug statements here } - // const struct LDKSignerProvider *ChannelManagerReadArgs_get_signer_provider(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); + // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManagerReadArgs_get_signer_provider(this_ptr: bigint): bigint { +export function ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_signer_provider(this_ptr); + const nativeResponseValue = wasm.TS_ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr); return nativeResponseValue; } - // void ChannelManagerReadArgs_set_signer_provider(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKSignerProvider val); + // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function ChannelManagerReadArgs_set_signer_provider(this_ptr: bigint, val: bigint): void { +export function ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_signer_provider(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr, val); // debug statements here } - // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); + // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManagerReadArgs_get_fee_estimator(this_ptr: bigint): bigint { +export function ChannelCounterparty_get_forwarding_info(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_fee_estimator(this_ptr); + const nativeResponseValue = wasm.TS_ChannelCounterparty_get_forwarding_info(this_ptr); return nativeResponseValue; } - // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val); + // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val); /* @internal */ -export function ChannelManagerReadArgs_set_fee_estimator(this_ptr: bigint, val: bigint): void { +export function ChannelCounterparty_set_forwarding_info(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_fee_estimator(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelCounterparty_set_forwarding_info(this_ptr, val); // debug statements here } - // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); + // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManagerReadArgs_get_chain_monitor(this_ptr: bigint): bigint { +export function ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_chain_monitor(this_ptr); + const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr); return nativeResponseValue; } - // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val); + // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function ChannelManagerReadArgs_set_chain_monitor(this_ptr: bigint, val: bigint): void { +export function ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_chain_monitor(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr, val); // debug statements here } - // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); + // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManagerReadArgs_get_tx_broadcaster(this_ptr: bigint): bigint { +export function ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_tx_broadcaster(this_ptr); + const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr); return nativeResponseValue; } - // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val); + // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function ChannelManagerReadArgs_set_tx_broadcaster(this_ptr: bigint, val: bigint): void { +export function ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_tx_broadcaster(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr, val); // debug statements here } - // const struct LDKRouter *ChannelManagerReadArgs_get_router(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKChannelCounterparty ChannelCounterparty_new(struct LDKPublicKey node_id_arg, struct LDKInitFeatures features_arg, uint64_t unspendable_punishment_reserve_arg, struct LDKCounterpartyForwardingInfo forwarding_info_arg, struct LDKCOption_u64Z outbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z outbound_htlc_maximum_msat_arg); /* @internal */ -export function ChannelManagerReadArgs_get_router(this_ptr: bigint): bigint { +export function ChannelCounterparty_new(node_id_arg: number, features_arg: bigint, unspendable_punishment_reserve_arg: bigint, forwarding_info_arg: bigint, outbound_htlc_minimum_msat_arg: bigint, outbound_htlc_maximum_msat_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_router(this_ptr); + const nativeResponseValue = wasm.TS_ChannelCounterparty_new(node_id_arg, features_arg, unspendable_punishment_reserve_arg, forwarding_info_arg, outbound_htlc_minimum_msat_arg, outbound_htlc_maximum_msat_arg); return nativeResponseValue; } - // void ChannelManagerReadArgs_set_router(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKRouter val); + // uint64_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg); /* @internal */ -export function ChannelManagerReadArgs_set_router(this_ptr: bigint, val: bigint): void { +export function ChannelCounterparty_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_router(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelCounterparty_clone_ptr(arg); + return nativeResponseValue; } - // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); + // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig); /* @internal */ -export function ChannelManagerReadArgs_get_logger(this_ptr: bigint): bigint { +export function ChannelCounterparty_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_logger(this_ptr); + const nativeResponseValue = wasm.TS_ChannelCounterparty_clone(orig); return nativeResponseValue; } - // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val); + // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj); /* @internal */ -export function ChannelManagerReadArgs_set_logger(this_ptr: bigint, val: bigint): void { +export function ChannelCounterparty_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_logger(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelCounterparty_write(obj); + return nativeResponseValue; } - // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr); + // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser); /* @internal */ -export function ChannelManagerReadArgs_get_default_config(this_ptr: bigint): bigint { +export function ChannelCounterparty_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_default_config(this_ptr); + const nativeResponseValue = wasm.TS_ChannelCounterparty_read(ser); return nativeResponseValue; } - // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val); + // void ChannelDetails_free(struct LDKChannelDetails this_obj); /* @internal */ -export function ChannelManagerReadArgs_set_default_config(this_ptr: bigint, val: bigint): void { +export function ChannelDetails_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_default_config(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelDetails_free(this_obj); // debug statements here } - // MUST_USE_RES struct LDKChannelManagerReadArgs ChannelManagerReadArgs_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKSignerProvider signer_provider, struct LDKFeeEstimator fee_estimator, struct LDKWatch chain_monitor, struct LDKBroadcasterInterface tx_broadcaster, struct LDKRouter router, struct LDKLogger logger, struct LDKUserConfig default_config, struct LDKCVec_ChannelMonitorZ channel_monitors); + // struct LDKChannelId ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelManagerReadArgs_new(entropy_source: bigint, node_signer: bigint, signer_provider: bigint, fee_estimator: bigint, chain_monitor: bigint, tx_broadcaster: bigint, router: bigint, logger: bigint, default_config: bigint, channel_monitors: number): bigint { +export function ChannelDetails_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_new(entropy_source, node_signer, signer_provider, fee_estimator, chain_monitor, tx_broadcaster, router, logger, default_config, channel_monitors); + const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_id(this_ptr); return nativeResponseValue; } - // struct LDKCResult_C2Tuple_ThirtyTwoBytesChannelManagerZDecodeErrorZ C2Tuple_ThirtyTwoBytesChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg); + // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function C2Tuple_ThirtyTwoBytesChannelManagerZ_read(ser: number, arg: bigint): bigint { +export function ChannelDetails_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_C2Tuple_ThirtyTwoBytesChannelManagerZ_read(ser, arg); + const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_id(this_ptr, val); + // debug statements here +} + // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr); +/* @internal */ +export function ChannelDetails_get_counterparty(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelDetails_get_counterparty(this_ptr); return nativeResponseValue; } - // void DelayedPaymentBasepoint_free(struct LDKDelayedPaymentBasepoint this_obj); + // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val); /* @internal */ -export function DelayedPaymentBasepoint_free(this_obj: bigint): void { +export function ChannelDetails_set_counterparty(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelDetails_set_counterparty(this_ptr, val); // debug statements here } - // struct LDKPublicKey DelayedPaymentBasepoint_get_a(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_ptr); + // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function DelayedPaymentBasepoint_get_a(this_ptr: bigint): number { +export function ChannelDetails_get_funding_txo(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_get_a(this_ptr); + const nativeResponseValue = wasm.TS_ChannelDetails_get_funding_txo(this_ptr); return nativeResponseValue; } - // void DelayedPaymentBasepoint_set_a(struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val); /* @internal */ -export function DelayedPaymentBasepoint_set_a(this_ptr: bigint, val: number): void { +export function ChannelDetails_set_funding_txo(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_set_a(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelDetails_set_funding_txo(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKDelayedPaymentBasepoint DelayedPaymentBasepoint_new(struct LDKPublicKey a_arg); + // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function DelayedPaymentBasepoint_new(a_arg: number): bigint { +export function ChannelDetails_get_channel_type(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_new(a_arg); + const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_type(this_ptr); return nativeResponseValue; } - // bool DelayedPaymentBasepoint_eq(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR a, const struct LDKDelayedPaymentBasepoint *NONNULL_PTR b); + // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); /* @internal */ -export function DelayedPaymentBasepoint_eq(a: bigint, b: bigint): boolean { +export function ChannelDetails_set_channel_type(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_eq(a, b); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_type(this_ptr, val); + // debug statements here } - // uint64_t DelayedPaymentBasepoint_clone_ptr(LDKDelayedPaymentBasepoint *NONNULL_PTR arg); + // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function DelayedPaymentBasepoint_clone_ptr(arg: bigint): bigint { +export function ChannelDetails_get_short_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ChannelDetails_get_short_channel_id(this_ptr); return nativeResponseValue; } - // struct LDKDelayedPaymentBasepoint DelayedPaymentBasepoint_clone(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR orig); + // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function DelayedPaymentBasepoint_clone(orig: bigint): bigint { +export function ChannelDetails_set_short_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_short_channel_id(this_ptr, val); + // debug statements here } - // uint64_t DelayedPaymentBasepoint_hash(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR o); + // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function DelayedPaymentBasepoint_hash(o: bigint): bigint { +export function ChannelDetails_get_outbound_scid_alias(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_hash(o); + const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_scid_alias(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKPublicKey DelayedPaymentBasepoint_to_public_key(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR this_arg); + // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function DelayedPaymentBasepoint_to_public_key(this_arg: bigint): number { +export function ChannelDetails_set_outbound_scid_alias(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_to_public_key(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_scid_alias(this_ptr, val); + // debug statements here } - // struct LDKCVec_u8Z DelayedPaymentBasepoint_write(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR obj); + // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function DelayedPaymentBasepoint_write(obj: bigint): number { +export function ChannelDetails_get_inbound_scid_alias(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_write(obj); + const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_scid_alias(this_ptr); return nativeResponseValue; } - // struct LDKCResult_DelayedPaymentBasepointDecodeErrorZ DelayedPaymentBasepoint_read(struct LDKu8slice ser); + // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function DelayedPaymentBasepoint_read(ser: number): bigint { +export function ChannelDetails_set_inbound_scid_alias(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentBasepoint_read(ser); + const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_scid_alias(this_ptr, val); + // debug statements here +} + // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr); +/* @internal */ +export function ChannelDetails_get_channel_value_satoshis(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_value_satoshis(this_ptr); return nativeResponseValue; } - // void DelayedPaymentKey_free(struct LDKDelayedPaymentKey this_obj); + // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function DelayedPaymentKey_free(this_obj: bigint): void { +export function ChannelDetails_set_channel_value_satoshis(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentKey_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_value_satoshis(this_ptr, val); // debug statements here } - // struct LDKPublicKey DelayedPaymentKey_get_a(const struct LDKDelayedPaymentKey *NONNULL_PTR this_ptr); + // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function DelayedPaymentKey_get_a(this_ptr: bigint): number { +export function ChannelDetails_get_unspendable_punishment_reserve(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentKey_get_a(this_ptr); + const nativeResponseValue = wasm.TS_ChannelDetails_get_unspendable_punishment_reserve(this_ptr); return nativeResponseValue; } - // void DelayedPaymentKey_set_a(struct LDKDelayedPaymentKey *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function DelayedPaymentKey_set_a(this_ptr: bigint, val: number): void { +export function ChannelDetails_set_unspendable_punishment_reserve(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentKey_set_a(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelDetails_set_unspendable_punishment_reserve(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_new(struct LDKPublicKey a_arg); + // struct LDKU128 ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function DelayedPaymentKey_new(a_arg: number): bigint { +export function ChannelDetails_get_user_channel_id(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentKey_new(a_arg); + const nativeResponseValue = wasm.TS_ChannelDetails_get_user_channel_id(this_ptr); return nativeResponseValue; } - // bool DelayedPaymentKey_eq(const struct LDKDelayedPaymentKey *NONNULL_PTR a, const struct LDKDelayedPaymentKey *NONNULL_PTR b); + // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKU128 val); /* @internal */ -export function DelayedPaymentKey_eq(a: bigint, b: bigint): boolean { +export function ChannelDetails_set_user_channel_id(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentKey_eq(a, b); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_user_channel_id(this_ptr, val); + // debug statements here } - // uint64_t DelayedPaymentKey_clone_ptr(LDKDelayedPaymentKey *NONNULL_PTR arg); + // struct LDKCOption_u32Z ChannelDetails_get_feerate_sat_per_1000_weight(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function DelayedPaymentKey_clone_ptr(arg: bigint): bigint { +export function ChannelDetails_get_feerate_sat_per_1000_weight(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentKey_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ChannelDetails_get_feerate_sat_per_1000_weight(this_ptr); return nativeResponseValue; } - // struct LDKDelayedPaymentKey DelayedPaymentKey_clone(const struct LDKDelayedPaymentKey *NONNULL_PTR orig); + // void ChannelDetails_set_feerate_sat_per_1000_weight(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); /* @internal */ -export function DelayedPaymentKey_clone(orig: bigint): bigint { +export function ChannelDetails_set_feerate_sat_per_1000_weight(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentKey_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_feerate_sat_per_1000_weight(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_from_basepoint(const struct LDKDelayedPaymentBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point); + // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function DelayedPaymentKey_from_basepoint(countersignatory_basepoint: bigint, per_commitment_point: number): bigint { +export function ChannelDetails_get_balance_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentKey_from_basepoint(countersignatory_basepoint, per_commitment_point); + const nativeResponseValue = wasm.TS_ChannelDetails_get_balance_msat(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKDelayedPaymentKey DelayedPaymentKey_from_secret_key(const uint8_t (*sk)[32]); + // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function DelayedPaymentKey_from_secret_key(sk: number): bigint { +export function ChannelDetails_set_balance_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentKey_from_secret_key(sk); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_balance_msat(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKPublicKey DelayedPaymentKey_to_public_key(const struct LDKDelayedPaymentKey *NONNULL_PTR this_arg); + // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function DelayedPaymentKey_to_public_key(this_arg: bigint): number { +export function ChannelDetails_get_outbound_capacity_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentKey_to_public_key(this_arg); + const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_capacity_msat(this_ptr); return nativeResponseValue; } - // struct LDKCVec_u8Z DelayedPaymentKey_write(const struct LDKDelayedPaymentKey *NONNULL_PTR obj); + // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function DelayedPaymentKey_write(obj: bigint): number { +export function ChannelDetails_set_outbound_capacity_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentKey_write(obj); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_capacity_msat(this_ptr, val); + // debug statements here } - // struct LDKCResult_DelayedPaymentKeyDecodeErrorZ DelayedPaymentKey_read(struct LDKu8slice ser); + // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function DelayedPaymentKey_read(ser: number): bigint { +export function ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentKey_read(ser); + const nativeResponseValue = wasm.TS_ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr); return nativeResponseValue; } - // void HtlcBasepoint_free(struct LDKHtlcBasepoint this_obj); + // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function HtlcBasepoint_free(this_obj: bigint): void { +export function ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcBasepoint_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr, val); // debug statements here } - // struct LDKPublicKey HtlcBasepoint_get_a(const struct LDKHtlcBasepoint *NONNULL_PTR this_ptr); + // uint64_t ChannelDetails_get_next_outbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function HtlcBasepoint_get_a(this_ptr: bigint): number { +export function ChannelDetails_get_next_outbound_htlc_minimum_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcBasepoint_get_a(this_ptr); + const nativeResponseValue = wasm.TS_ChannelDetails_get_next_outbound_htlc_minimum_msat(this_ptr); return nativeResponseValue; } - // void HtlcBasepoint_set_a(struct LDKHtlcBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void ChannelDetails_set_next_outbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function HtlcBasepoint_set_a(this_ptr: bigint, val: number): void { +export function ChannelDetails_set_next_outbound_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcBasepoint_set_a(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelDetails_set_next_outbound_htlc_minimum_msat(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKHtlcBasepoint HtlcBasepoint_new(struct LDKPublicKey a_arg); + // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function HtlcBasepoint_new(a_arg: number): bigint { +export function ChannelDetails_get_inbound_capacity_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcBasepoint_new(a_arg); + const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_capacity_msat(this_ptr); return nativeResponseValue; } - // bool HtlcBasepoint_eq(const struct LDKHtlcBasepoint *NONNULL_PTR a, const struct LDKHtlcBasepoint *NONNULL_PTR b); + // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function HtlcBasepoint_eq(a: bigint, b: bigint): boolean { +export function ChannelDetails_set_inbound_capacity_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcBasepoint_eq(a, b); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_capacity_msat(this_ptr, val); + // debug statements here } - // uint64_t HtlcBasepoint_clone_ptr(LDKHtlcBasepoint *NONNULL_PTR arg); + // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function HtlcBasepoint_clone_ptr(arg: bigint): bigint { +export function ChannelDetails_get_confirmations_required(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcBasepoint_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ChannelDetails_get_confirmations_required(this_ptr); return nativeResponseValue; } - // struct LDKHtlcBasepoint HtlcBasepoint_clone(const struct LDKHtlcBasepoint *NONNULL_PTR orig); + // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); /* @internal */ -export function HtlcBasepoint_clone(orig: bigint): bigint { +export function ChannelDetails_set_confirmations_required(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcBasepoint_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_confirmations_required(this_ptr, val); + // debug statements here } - // uint64_t HtlcBasepoint_hash(const struct LDKHtlcBasepoint *NONNULL_PTR o); + // struct LDKCOption_u32Z ChannelDetails_get_confirmations(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function HtlcBasepoint_hash(o: bigint): bigint { +export function ChannelDetails_get_confirmations(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcBasepoint_hash(o); + const nativeResponseValue = wasm.TS_ChannelDetails_get_confirmations(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKPublicKey HtlcBasepoint_to_public_key(const struct LDKHtlcBasepoint *NONNULL_PTR this_arg); + // void ChannelDetails_set_confirmations(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val); /* @internal */ -export function HtlcBasepoint_to_public_key(this_arg: bigint): number { +export function ChannelDetails_set_confirmations(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcBasepoint_to_public_key(this_arg); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_confirmations(this_ptr, val); + // debug statements here } - // struct LDKCVec_u8Z HtlcBasepoint_write(const struct LDKHtlcBasepoint *NONNULL_PTR obj); + // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function HtlcBasepoint_write(obj: bigint): number { +export function ChannelDetails_get_force_close_spend_delay(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcBasepoint_write(obj); + const nativeResponseValue = wasm.TS_ChannelDetails_get_force_close_spend_delay(this_ptr); return nativeResponseValue; } - // struct LDKCResult_HtlcBasepointDecodeErrorZ HtlcBasepoint_read(struct LDKu8slice ser); + // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val); /* @internal */ -export function HtlcBasepoint_read(ser: number): bigint { +export function ChannelDetails_set_force_close_spend_delay(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcBasepoint_read(ser); + const nativeResponseValue = wasm.TS_ChannelDetails_set_force_close_spend_delay(this_ptr, val); + // debug statements here +} + // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr); +/* @internal */ +export function ChannelDetails_get_is_outbound(this_ptr: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelDetails_get_is_outbound(this_ptr); return nativeResponseValue; } - // void HtlcKey_free(struct LDKHtlcKey this_obj); + // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function HtlcKey_free(this_obj: bigint): void { +export function ChannelDetails_set_is_outbound(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcKey_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelDetails_set_is_outbound(this_ptr, val); // debug statements here } - // struct LDKPublicKey HtlcKey_get_a(const struct LDKHtlcKey *NONNULL_PTR this_ptr); + // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function HtlcKey_get_a(this_ptr: bigint): number { +export function ChannelDetails_get_is_channel_ready(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcKey_get_a(this_ptr); + const nativeResponseValue = wasm.TS_ChannelDetails_get_is_channel_ready(this_ptr); return nativeResponseValue; } - // void HtlcKey_set_a(struct LDKHtlcKey *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function HtlcKey_set_a(this_ptr: bigint, val: number): void { +export function ChannelDetails_set_is_channel_ready(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcKey_set_a(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelDetails_set_is_channel_ready(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKHtlcKey HtlcKey_new(struct LDKPublicKey a_arg); + // struct LDKCOption_ChannelShutdownStateZ ChannelDetails_get_channel_shutdown_state(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function HtlcKey_new(a_arg: number): bigint { +export function ChannelDetails_get_channel_shutdown_state(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcKey_new(a_arg); + const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_shutdown_state(this_ptr); return nativeResponseValue; } - // bool HtlcKey_eq(const struct LDKHtlcKey *NONNULL_PTR a, const struct LDKHtlcKey *NONNULL_PTR b); + // void ChannelDetails_set_channel_shutdown_state(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_ChannelShutdownStateZ val); /* @internal */ -export function HtlcKey_eq(a: bigint, b: bigint): boolean { +export function ChannelDetails_set_channel_shutdown_state(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcKey_eq(a, b); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_shutdown_state(this_ptr, val); + // debug statements here } - // uint64_t HtlcKey_clone_ptr(LDKHtlcKey *NONNULL_PTR arg); + // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function HtlcKey_clone_ptr(arg: bigint): bigint { +export function ChannelDetails_get_is_usable(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcKey_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ChannelDetails_get_is_usable(this_ptr); return nativeResponseValue; } - // struct LDKHtlcKey HtlcKey_clone(const struct LDKHtlcKey *NONNULL_PTR orig); + // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function HtlcKey_clone(orig: bigint): bigint { +export function ChannelDetails_set_is_usable(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcKey_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_is_usable(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKHtlcKey HtlcKey_from_basepoint(const struct LDKHtlcBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point); + // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function HtlcKey_from_basepoint(countersignatory_basepoint: bigint, per_commitment_point: number): bigint { +export function ChannelDetails_get_is_public(this_ptr: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcKey_from_basepoint(countersignatory_basepoint, per_commitment_point); + const nativeResponseValue = wasm.TS_ChannelDetails_get_is_public(this_ptr); return nativeResponseValue; } - // MUST_USE_RES struct LDKHtlcKey HtlcKey_from_secret_key(const uint8_t (*sk)[32]); + // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val); /* @internal */ -export function HtlcKey_from_secret_key(sk: number): bigint { +export function ChannelDetails_set_is_public(this_ptr: bigint, val: boolean): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcKey_from_secret_key(sk); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_is_public(this_ptr, val); + // debug statements here } - // MUST_USE_RES struct LDKPublicKey HtlcKey_to_public_key(const struct LDKHtlcKey *NONNULL_PTR this_arg); + // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function HtlcKey_to_public_key(this_arg: bigint): number { +export function ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcKey_to_public_key(this_arg); + const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr); return nativeResponseValue; } - // struct LDKCVec_u8Z HtlcKey_write(const struct LDKHtlcKey *NONNULL_PTR obj); + // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function HtlcKey_write(obj: bigint): number { +export function ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcKey_write(obj); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr, val); + // debug statements here } - // struct LDKCResult_HtlcKeyDecodeErrorZ HtlcKey_read(struct LDKu8slice ser); + // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function HtlcKey_read(ser: number): bigint { +export function ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_HtlcKey_read(ser); + const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr); return nativeResponseValue; } - // void RevocationBasepoint_free(struct LDKRevocationBasepoint this_obj); + // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); /* @internal */ -export function RevocationBasepoint_free(this_obj: bigint): void { +export function ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationBasepoint_free(this_obj); + const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr, val); // debug statements here } - // struct LDKPublicKey RevocationBasepoint_get_a(const struct LDKRevocationBasepoint *NONNULL_PTR this_ptr); + // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function RevocationBasepoint_get_a(this_ptr: bigint): number { +export function ChannelDetails_get_config(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationBasepoint_get_a(this_ptr); + const nativeResponseValue = wasm.TS_ChannelDetails_get_config(this_ptr); return nativeResponseValue; } - // void RevocationBasepoint_set_a(struct LDKRevocationBasepoint *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val); /* @internal */ -export function RevocationBasepoint_set_a(this_ptr: bigint, val: number): void { +export function ChannelDetails_set_config(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationBasepoint_set_a(this_ptr, val); + const nativeResponseValue = wasm.TS_ChannelDetails_set_config(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKRevocationBasepoint RevocationBasepoint_new(struct LDKPublicKey a_arg); + // struct LDKCVec_InboundHTLCDetailsZ ChannelDetails_get_pending_inbound_htlcs(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function RevocationBasepoint_new(a_arg: number): bigint { +export function ChannelDetails_get_pending_inbound_htlcs(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationBasepoint_new(a_arg); + const nativeResponseValue = wasm.TS_ChannelDetails_get_pending_inbound_htlcs(this_ptr); return nativeResponseValue; } - // bool RevocationBasepoint_eq(const struct LDKRevocationBasepoint *NONNULL_PTR a, const struct LDKRevocationBasepoint *NONNULL_PTR b); + // void ChannelDetails_set_pending_inbound_htlcs(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCVec_InboundHTLCDetailsZ val); /* @internal */ -export function RevocationBasepoint_eq(a: bigint, b: bigint): boolean { +export function ChannelDetails_set_pending_inbound_htlcs(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationBasepoint_eq(a, b); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_pending_inbound_htlcs(this_ptr, val); + // debug statements here } - // uint64_t RevocationBasepoint_clone_ptr(LDKRevocationBasepoint *NONNULL_PTR arg); + // struct LDKCVec_OutboundHTLCDetailsZ ChannelDetails_get_pending_outbound_htlcs(const struct LDKChannelDetails *NONNULL_PTR this_ptr); /* @internal */ -export function RevocationBasepoint_clone_ptr(arg: bigint): bigint { +export function ChannelDetails_get_pending_outbound_htlcs(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationBasepoint_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ChannelDetails_get_pending_outbound_htlcs(this_ptr); return nativeResponseValue; } - // struct LDKRevocationBasepoint RevocationBasepoint_clone(const struct LDKRevocationBasepoint *NONNULL_PTR orig); + // void ChannelDetails_set_pending_outbound_htlcs(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCVec_OutboundHTLCDetailsZ val); /* @internal */ -export function RevocationBasepoint_clone(orig: bigint): bigint { +export function ChannelDetails_set_pending_outbound_htlcs(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationBasepoint_clone(orig); - return nativeResponseValue; + const nativeResponseValue = wasm.TS_ChannelDetails_set_pending_outbound_htlcs(this_ptr, val); + // debug statements here } - // uint64_t RevocationBasepoint_hash(const struct LDKRevocationBasepoint *NONNULL_PTR o); + // MUST_USE_RES struct LDKChannelDetails ChannelDetails_new(struct LDKChannelId channel_id_arg, struct LDKChannelCounterparty counterparty_arg, struct LDKOutPoint funding_txo_arg, struct LDKChannelTypeFeatures channel_type_arg, struct LDKCOption_u64Z short_channel_id_arg, struct LDKCOption_u64Z outbound_scid_alias_arg, struct LDKCOption_u64Z inbound_scid_alias_arg, uint64_t channel_value_satoshis_arg, struct LDKCOption_u64Z unspendable_punishment_reserve_arg, struct LDKU128 user_channel_id_arg, struct LDKCOption_u32Z feerate_sat_per_1000_weight_arg, uint64_t balance_msat_arg, uint64_t outbound_capacity_msat_arg, uint64_t next_outbound_htlc_limit_msat_arg, uint64_t next_outbound_htlc_minimum_msat_arg, uint64_t inbound_capacity_msat_arg, struct LDKCOption_u32Z confirmations_required_arg, struct LDKCOption_u32Z confirmations_arg, struct LDKCOption_u16Z force_close_spend_delay_arg, bool is_outbound_arg, bool is_channel_ready_arg, struct LDKCOption_ChannelShutdownStateZ channel_shutdown_state_arg, bool is_usable_arg, bool is_public_arg, struct LDKCOption_u64Z inbound_htlc_minimum_msat_arg, struct LDKCOption_u64Z inbound_htlc_maximum_msat_arg, struct LDKChannelConfig config_arg, struct LDKCVec_InboundHTLCDetailsZ pending_inbound_htlcs_arg, struct LDKCVec_OutboundHTLCDetailsZ pending_outbound_htlcs_arg); /* @internal */ -export function RevocationBasepoint_hash(o: bigint): bigint { +export function ChannelDetails_new(channel_id_arg: bigint, counterparty_arg: bigint, funding_txo_arg: bigint, channel_type_arg: bigint, short_channel_id_arg: bigint, outbound_scid_alias_arg: bigint, inbound_scid_alias_arg: bigint, channel_value_satoshis_arg: bigint, unspendable_punishment_reserve_arg: bigint, user_channel_id_arg: number, feerate_sat_per_1000_weight_arg: bigint, balance_msat_arg: bigint, outbound_capacity_msat_arg: bigint, next_outbound_htlc_limit_msat_arg: bigint, next_outbound_htlc_minimum_msat_arg: bigint, inbound_capacity_msat_arg: bigint, confirmations_required_arg: bigint, confirmations_arg: bigint, force_close_spend_delay_arg: bigint, is_outbound_arg: boolean, is_channel_ready_arg: boolean, channel_shutdown_state_arg: bigint, is_usable_arg: boolean, is_public_arg: boolean, inbound_htlc_minimum_msat_arg: bigint, inbound_htlc_maximum_msat_arg: bigint, config_arg: bigint, pending_inbound_htlcs_arg: number, pending_outbound_htlcs_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationBasepoint_hash(o); + const nativeResponseValue = wasm.TS_ChannelDetails_new(channel_id_arg, counterparty_arg, funding_txo_arg, channel_type_arg, short_channel_id_arg, outbound_scid_alias_arg, inbound_scid_alias_arg, channel_value_satoshis_arg, unspendable_punishment_reserve_arg, user_channel_id_arg, feerate_sat_per_1000_weight_arg, balance_msat_arg, outbound_capacity_msat_arg, next_outbound_htlc_limit_msat_arg, next_outbound_htlc_minimum_msat_arg, inbound_capacity_msat_arg, confirmations_required_arg, confirmations_arg, force_close_spend_delay_arg, is_outbound_arg, is_channel_ready_arg, channel_shutdown_state_arg, is_usable_arg, is_public_arg, inbound_htlc_minimum_msat_arg, inbound_htlc_maximum_msat_arg, config_arg, pending_inbound_htlcs_arg, pending_outbound_htlcs_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKPublicKey RevocationBasepoint_to_public_key(const struct LDKRevocationBasepoint *NONNULL_PTR this_arg); + // uint64_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg); /* @internal */ -export function RevocationBasepoint_to_public_key(this_arg: bigint): number { +export function ChannelDetails_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationBasepoint_to_public_key(this_arg); + const nativeResponseValue = wasm.TS_ChannelDetails_clone_ptr(arg); return nativeResponseValue; } - // struct LDKCVec_u8Z RevocationBasepoint_write(const struct LDKRevocationBasepoint *NONNULL_PTR obj); + // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig); /* @internal */ -export function RevocationBasepoint_write(obj: bigint): number { +export function ChannelDetails_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationBasepoint_write(obj); + const nativeResponseValue = wasm.TS_ChannelDetails_clone(orig); return nativeResponseValue; } - // struct LDKCResult_RevocationBasepointDecodeErrorZ RevocationBasepoint_read(struct LDKu8slice ser); + // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg); /* @internal */ -export function RevocationBasepoint_read(ser: number): bigint { +export function ChannelDetails_get_inbound_payment_scid(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationBasepoint_read(ser); + const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_payment_scid(this_arg); return nativeResponseValue; } - // void RevocationKey_free(struct LDKRevocationKey this_obj); + // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg); /* @internal */ -export function RevocationKey_free(this_obj: bigint): void { +export function ChannelDetails_get_outbound_payment_scid(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationKey_free(this_obj); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_payment_scid(this_arg); + return nativeResponseValue; } - // struct LDKPublicKey RevocationKey_get_a(const struct LDKRevocationKey *NONNULL_PTR this_ptr); + // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj); /* @internal */ -export function RevocationKey_get_a(this_ptr: bigint): number { +export function ChannelDetails_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationKey_get_a(this_ptr); + const nativeResponseValue = wasm.TS_ChannelDetails_write(obj); return nativeResponseValue; } - // void RevocationKey_set_a(struct LDKRevocationKey *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser); /* @internal */ -export function RevocationKey_set_a(this_ptr: bigint, val: number): void { +export function ChannelDetails_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationKey_set_a(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_ChannelDetails_read(ser); + return nativeResponseValue; } - // MUST_USE_RES struct LDKRevocationKey RevocationKey_new(struct LDKPublicKey a_arg); + // enum LDKChannelShutdownState ChannelShutdownState_clone(const enum LDKChannelShutdownState *NONNULL_PTR orig); /* @internal */ -export function RevocationKey_new(a_arg: number): bigint { +export function ChannelShutdownState_clone(orig: bigint): ChannelShutdownState { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationKey_new(a_arg); + const nativeResponseValue = wasm.TS_ChannelShutdownState_clone(orig); return nativeResponseValue; } - // bool RevocationKey_eq(const struct LDKRevocationKey *NONNULL_PTR a, const struct LDKRevocationKey *NONNULL_PTR b); + // enum LDKChannelShutdownState ChannelShutdownState_not_shutting_down(void); /* @internal */ -export function RevocationKey_eq(a: bigint, b: bigint): boolean { +export function ChannelShutdownState_not_shutting_down(): ChannelShutdownState { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationKey_eq(a, b); + const nativeResponseValue = wasm.TS_ChannelShutdownState_not_shutting_down(); return nativeResponseValue; } - // uint64_t RevocationKey_clone_ptr(LDKRevocationKey *NONNULL_PTR arg); + // enum LDKChannelShutdownState ChannelShutdownState_shutdown_initiated(void); /* @internal */ -export function RevocationKey_clone_ptr(arg: bigint): bigint { +export function ChannelShutdownState_shutdown_initiated(): ChannelShutdownState { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationKey_clone_ptr(arg); + const nativeResponseValue = wasm.TS_ChannelShutdownState_shutdown_initiated(); return nativeResponseValue; } - // struct LDKRevocationKey RevocationKey_clone(const struct LDKRevocationKey *NONNULL_PTR orig); + // enum LDKChannelShutdownState ChannelShutdownState_resolving_htlcs(void); /* @internal */ -export function RevocationKey_clone(orig: bigint): bigint { +export function ChannelShutdownState_resolving_htlcs(): ChannelShutdownState { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationKey_clone(orig); + const nativeResponseValue = wasm.TS_ChannelShutdownState_resolving_htlcs(); return nativeResponseValue; } - // uint64_t RevocationKey_hash(const struct LDKRevocationKey *NONNULL_PTR o); + // enum LDKChannelShutdownState ChannelShutdownState_negotiating_closing_fee(void); /* @internal */ -export function RevocationKey_hash(o: bigint): bigint { +export function ChannelShutdownState_negotiating_closing_fee(): ChannelShutdownState { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationKey_hash(o); + const nativeResponseValue = wasm.TS_ChannelShutdownState_negotiating_closing_fee(); return nativeResponseValue; } - // MUST_USE_RES struct LDKRevocationKey RevocationKey_from_basepoint(const struct LDKRevocationBasepoint *NONNULL_PTR countersignatory_basepoint, struct LDKPublicKey per_commitment_point); + // enum LDKChannelShutdownState ChannelShutdownState_shutdown_complete(void); /* @internal */ -export function RevocationKey_from_basepoint(countersignatory_basepoint: bigint, per_commitment_point: number): bigint { +export function ChannelShutdownState_shutdown_complete(): ChannelShutdownState { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationKey_from_basepoint(countersignatory_basepoint, per_commitment_point); + const nativeResponseValue = wasm.TS_ChannelShutdownState_shutdown_complete(); return nativeResponseValue; } - // MUST_USE_RES struct LDKPublicKey RevocationKey_to_public_key(const struct LDKRevocationKey *NONNULL_PTR this_arg); + // bool ChannelShutdownState_eq(const enum LDKChannelShutdownState *NONNULL_PTR a, const enum LDKChannelShutdownState *NONNULL_PTR b); /* @internal */ -export function RevocationKey_to_public_key(this_arg: bigint): number { +export function ChannelShutdownState_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationKey_to_public_key(this_arg); + const nativeResponseValue = wasm.TS_ChannelShutdownState_eq(a, b); return nativeResponseValue; } - // struct LDKCVec_u8Z RevocationKey_write(const struct LDKRevocationKey *NONNULL_PTR obj); + // struct LDKCVec_u8Z ChannelShutdownState_write(const enum LDKChannelShutdownState *NONNULL_PTR obj); /* @internal */ -export function RevocationKey_write(obj: bigint): number { +export function ChannelShutdownState_write(obj: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationKey_write(obj); + const nativeResponseValue = wasm.TS_ChannelShutdownState_write(obj); return nativeResponseValue; } - // struct LDKCResult_RevocationKeyDecodeErrorZ RevocationKey_read(struct LDKu8slice ser); + // struct LDKCResult_ChannelShutdownStateDecodeErrorZ ChannelShutdownState_read(struct LDKu8slice ser); /* @internal */ -export function RevocationKey_read(ser: number): bigint { +export function ChannelShutdownState_read(ser: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_RevocationKey_read(ser); + const nativeResponseValue = wasm.TS_ChannelShutdownState_read(ser); return nativeResponseValue; } // void ExpandedKey_free(struct LDKExpandedKey this_obj); @@ -32557,6 +37025,15 @@ export function DecodeError_unsupported_compression(): bigint { } const nativeResponseValue = wasm.TS_DecodeError_unsupported_compression(); return nativeResponseValue; +} + // struct LDKDecodeError DecodeError_dangerous_value(void); +/* @internal */ +export function DecodeError_dangerous_value(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_DecodeError_dangerous_value(); + return nativeResponseValue; } // uint64_t DecodeError_hash(const struct LDKDecodeError *NONNULL_PTR o); /* @internal */ @@ -32693,18 +37170,18 @@ export function ErrorMessage_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_ErrorMessage_free(this_obj); // debug statements here } - // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr); /* @internal */ -export function ErrorMessage_get_channel_id(this_ptr: bigint): number { +export function ErrorMessage_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_ErrorMessage_get_channel_id(this_ptr); return nativeResponseValue; } - // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function ErrorMessage_set_channel_id(this_ptr: bigint, val: number): void { +export function ErrorMessage_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -32729,9 +37206,9 @@ export function ErrorMessage_set_data(this_ptr: bigint, val: number): void { const nativeResponseValue = wasm.TS_ErrorMessage_set_data(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg); + // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKChannelId channel_id_arg, struct LDKStr data_arg); /* @internal */ -export function ErrorMessage_new(channel_id_arg: number, data_arg: number): bigint { +export function ErrorMessage_new(channel_id_arg: bigint, data_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -32783,18 +37260,18 @@ export function WarningMessage_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_WarningMessage_free(this_obj); // debug statements here } - // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr); /* @internal */ -export function WarningMessage_get_channel_id(this_ptr: bigint): number { +export function WarningMessage_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_WarningMessage_get_channel_id(this_ptr); return nativeResponseValue; } - // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function WarningMessage_set_channel_id(this_ptr: bigint, val: number): void { +export function WarningMessage_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -32819,9 +37296,9 @@ export function WarningMessage_set_data(this_ptr: bigint, val: number): void { const nativeResponseValue = wasm.TS_WarningMessage_set_data(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg); + // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKChannelId channel_id_arg, struct LDKStr data_arg); /* @internal */ -export function WarningMessage_new(channel_id_arg: number, data_arg: number): bigint { +export function WarningMessage_new(channel_id_arg: bigint, data_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -33026,607 +37503,535 @@ export function Pong_eq(a: bigint, b: bigint): boolean { const nativeResponseValue = wasm.TS_Pong_eq(a, b); return nativeResponseValue; } - // void OpenChannel_free(struct LDKOpenChannel this_obj); -/* @internal */ -export function OpenChannel_free(this_obj: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannel_free(this_obj); - // debug statements here -} - // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32]; -/* @internal */ -export function OpenChannel_get_chain_hash(this_ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannel_get_chain_hash(this_ptr); - return nativeResponseValue; -} - // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); -/* @internal */ -export function OpenChannel_set_chain_hash(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannel_set_chain_hash(this_ptr, val); - // debug statements here -} - // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32]; -/* @internal */ -export function OpenChannel_get_temporary_channel_id(this_ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannel_get_temporary_channel_id(this_ptr); - return nativeResponseValue; -} - // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void CommonOpenChannelFields_free(struct LDKCommonOpenChannelFields this_obj); /* @internal */ -export function OpenChannel_set_temporary_channel_id(this_ptr: bigint, val: number): void { +export function CommonOpenChannelFields_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_temporary_channel_id(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_free(this_obj); // debug statements here } - // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // const uint8_t (*CommonOpenChannelFields_get_chain_hash(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr))[32]; /* @internal */ -export function OpenChannel_get_funding_satoshis(this_ptr: bigint): bigint { +export function CommonOpenChannelFields_get_chain_hash(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_funding_satoshis(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_chain_hash(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); + // void CommonOpenChannelFields_set_chain_hash(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); /* @internal */ -export function OpenChannel_set_funding_satoshis(this_ptr: bigint, val: bigint): void { +export function CommonOpenChannelFields_set_chain_hash(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_funding_satoshis(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_chain_hash(this_ptr, val); // debug statements here } - // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // struct LDKChannelId CommonOpenChannelFields_get_temporary_channel_id(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_push_msat(this_ptr: bigint): bigint { +export function CommonOpenChannelFields_get_temporary_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_push_msat(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_temporary_channel_id(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); + // void CommonOpenChannelFields_set_temporary_channel_id(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function OpenChannel_set_push_msat(this_ptr: bigint, val: bigint): void { +export function CommonOpenChannelFields_set_temporary_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_push_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_temporary_channel_id(this_ptr, val); // debug statements here } - // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // uint64_t CommonOpenChannelFields_get_funding_satoshis(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_dust_limit_satoshis(this_ptr: bigint): bigint { +export function CommonOpenChannelFields_get_funding_satoshis(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_dust_limit_satoshis(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_funding_satoshis(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); + // void CommonOpenChannelFields_set_funding_satoshis(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function OpenChannel_set_dust_limit_satoshis(this_ptr: bigint, val: bigint): void { +export function CommonOpenChannelFields_set_funding_satoshis(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_dust_limit_satoshis(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_funding_satoshis(this_ptr, val); // debug statements here } - // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // uint64_t CommonOpenChannelFields_get_dust_limit_satoshis(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint { +export function CommonOpenChannelFields_get_dust_limit_satoshis(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_dust_limit_satoshis(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); + // void CommonOpenChannelFields_set_dust_limit_satoshis(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void { +export function CommonOpenChannelFields_set_dust_limit_satoshis(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_dust_limit_satoshis(this_ptr, val); // debug statements here } - // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // uint64_t CommonOpenChannelFields_get_max_htlc_value_in_flight_msat(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_channel_reserve_satoshis(this_ptr: bigint): bigint { +export function CommonOpenChannelFields_get_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_channel_reserve_satoshis(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_max_htlc_value_in_flight_msat(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); + // void CommonOpenChannelFields_set_max_htlc_value_in_flight_msat(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function OpenChannel_set_channel_reserve_satoshis(this_ptr: bigint, val: bigint): void { +export function CommonOpenChannelFields_set_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_channel_reserve_satoshis(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_max_htlc_value_in_flight_msat(this_ptr, val); // debug statements here } - // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // uint64_t CommonOpenChannelFields_get_htlc_minimum_msat(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_htlc_minimum_msat(this_ptr: bigint): bigint { +export function CommonOpenChannelFields_get_htlc_minimum_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_minimum_msat(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_htlc_minimum_msat(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); + // void CommonOpenChannelFields_set_htlc_minimum_msat(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function OpenChannel_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { +export function CommonOpenChannelFields_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_minimum_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_htlc_minimum_msat(this_ptr, val); // debug statements here } - // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // uint32_t CommonOpenChannelFields_get_commitment_feerate_sat_per_1000_weight(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_feerate_per_kw(this_ptr: bigint): number { +export function CommonOpenChannelFields_get_commitment_feerate_sat_per_1000_weight(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_feerate_per_kw(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_commitment_feerate_sat_per_1000_weight(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val); + // void CommonOpenChannelFields_set_commitment_feerate_sat_per_1000_weight(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function OpenChannel_set_feerate_per_kw(this_ptr: bigint, val: number): void { +export function CommonOpenChannelFields_set_commitment_feerate_sat_per_1000_weight(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_feerate_per_kw(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_commitment_feerate_sat_per_1000_weight(this_ptr, val); // debug statements here } - // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // uint16_t CommonOpenChannelFields_get_to_self_delay(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_to_self_delay(this_ptr: bigint): number { +export function CommonOpenChannelFields_get_to_self_delay(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_to_self_delay(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_to_self_delay(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val); + // void CommonOpenChannelFields_set_to_self_delay(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint16_t val); /* @internal */ -export function OpenChannel_set_to_self_delay(this_ptr: bigint, val: number): void { +export function CommonOpenChannelFields_set_to_self_delay(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_to_self_delay(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_to_self_delay(this_ptr, val); // debug statements here } - // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // uint16_t CommonOpenChannelFields_get_max_accepted_htlcs(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_max_accepted_htlcs(this_ptr: bigint): number { +export function CommonOpenChannelFields_get_max_accepted_htlcs(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_max_accepted_htlcs(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_max_accepted_htlcs(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val); + // void CommonOpenChannelFields_set_max_accepted_htlcs(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint16_t val); /* @internal */ -export function OpenChannel_set_max_accepted_htlcs(this_ptr: bigint, val: number): void { +export function CommonOpenChannelFields_set_max_accepted_htlcs(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_max_accepted_htlcs(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_max_accepted_htlcs(this_ptr, val); // debug statements here } - // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // struct LDKPublicKey CommonOpenChannelFields_get_funding_pubkey(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_funding_pubkey(this_ptr: bigint): number { +export function CommonOpenChannelFields_get_funding_pubkey(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_funding_pubkey(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_funding_pubkey(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void CommonOpenChannelFields_set_funding_pubkey(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function OpenChannel_set_funding_pubkey(this_ptr: bigint, val: number): void { +export function CommonOpenChannelFields_set_funding_pubkey(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_funding_pubkey(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_funding_pubkey(this_ptr, val); // debug statements here } - // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // struct LDKPublicKey CommonOpenChannelFields_get_revocation_basepoint(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_revocation_basepoint(this_ptr: bigint): number { +export function CommonOpenChannelFields_get_revocation_basepoint(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_revocation_basepoint(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_revocation_basepoint(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void CommonOpenChannelFields_set_revocation_basepoint(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function OpenChannel_set_revocation_basepoint(this_ptr: bigint, val: number): void { +export function CommonOpenChannelFields_set_revocation_basepoint(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_revocation_basepoint(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_revocation_basepoint(this_ptr, val); // debug statements here } - // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // struct LDKPublicKey CommonOpenChannelFields_get_payment_basepoint(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_payment_point(this_ptr: bigint): number { +export function CommonOpenChannelFields_get_payment_basepoint(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_payment_point(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_payment_basepoint(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void CommonOpenChannelFields_set_payment_basepoint(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function OpenChannel_set_payment_point(this_ptr: bigint, val: number): void { +export function CommonOpenChannelFields_set_payment_basepoint(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_payment_point(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_payment_basepoint(this_ptr, val); // debug statements here } - // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // struct LDKPublicKey CommonOpenChannelFields_get_delayed_payment_basepoint(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_delayed_payment_basepoint(this_ptr: bigint): number { +export function CommonOpenChannelFields_get_delayed_payment_basepoint(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_delayed_payment_basepoint(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_delayed_payment_basepoint(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void CommonOpenChannelFields_set_delayed_payment_basepoint(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function OpenChannel_set_delayed_payment_basepoint(this_ptr: bigint, val: number): void { +export function CommonOpenChannelFields_set_delayed_payment_basepoint(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_delayed_payment_basepoint(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_delayed_payment_basepoint(this_ptr, val); // debug statements here } - // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // struct LDKPublicKey CommonOpenChannelFields_get_htlc_basepoint(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_htlc_basepoint(this_ptr: bigint): number { +export function CommonOpenChannelFields_get_htlc_basepoint(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_basepoint(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_htlc_basepoint(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void CommonOpenChannelFields_set_htlc_basepoint(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function OpenChannel_set_htlc_basepoint(this_ptr: bigint, val: number): void { +export function CommonOpenChannelFields_set_htlc_basepoint(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_basepoint(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_htlc_basepoint(this_ptr, val); // debug statements here } - // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // struct LDKPublicKey CommonOpenChannelFields_get_first_per_commitment_point(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_first_per_commitment_point(this_ptr: bigint): number { +export function CommonOpenChannelFields_get_first_per_commitment_point(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_first_per_commitment_point(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_first_per_commitment_point(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void CommonOpenChannelFields_set_first_per_commitment_point(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function OpenChannel_set_first_per_commitment_point(this_ptr: bigint, val: number): void { +export function CommonOpenChannelFields_set_first_per_commitment_point(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_first_per_commitment_point(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_first_per_commitment_point(this_ptr, val); // debug statements here } - // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // uint8_t CommonOpenChannelFields_get_channel_flags(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_channel_flags(this_ptr: bigint): number { +export function CommonOpenChannelFields_get_channel_flags(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_channel_flags(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_channel_flags(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val); + // void CommonOpenChannelFields_set_channel_flags(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, uint8_t val); /* @internal */ -export function OpenChannel_set_channel_flags(this_ptr: bigint, val: number): void { +export function CommonOpenChannelFields_set_channel_flags(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_channel_flags(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_channel_flags(this_ptr, val); // debug statements here } - // struct LDKCOption_CVec_u8ZZ OpenChannel_get_shutdown_scriptpubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // struct LDKCOption_CVec_u8ZZ CommonOpenChannelFields_get_shutdown_scriptpubkey(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_shutdown_scriptpubkey(this_ptr: bigint): bigint { +export function CommonOpenChannelFields_get_shutdown_scriptpubkey(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_shutdown_scriptpubkey(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_shutdown_scriptpubkey(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_shutdown_scriptpubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); + // void CommonOpenChannelFields_set_shutdown_scriptpubkey(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); /* @internal */ -export function OpenChannel_set_shutdown_scriptpubkey(this_ptr: bigint, val: bigint): void { +export function CommonOpenChannelFields_set_shutdown_scriptpubkey(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_shutdown_scriptpubkey(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_shutdown_scriptpubkey(this_ptr, val); // debug statements here } - // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr); + // struct LDKChannelTypeFeatures CommonOpenChannelFields_get_channel_type(const struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannel_get_channel_type(this_ptr: bigint): bigint { +export function CommonOpenChannelFields_get_channel_type(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_get_channel_type(this_ptr); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_get_channel_type(this_ptr); return nativeResponseValue; } - // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); + // void CommonOpenChannelFields_set_channel_type(struct LDKCommonOpenChannelFields *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); /* @internal */ -export function OpenChannel_set_channel_type(this_ptr: bigint, val: bigint): void { +export function CommonOpenChannelFields_set_channel_type(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_set_channel_type(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_set_channel_type(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKOpenChannel OpenChannel_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t push_msat_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t feerate_per_kw_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); + // MUST_USE_RES struct LDKCommonOpenChannelFields CommonOpenChannelFields_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKChannelId temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint32_t commitment_feerate_sat_per_1000_weight_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); /* @internal */ -export function OpenChannel_new(chain_hash_arg: number, temporary_channel_id_arg: number, funding_satoshis_arg: bigint, push_msat_arg: bigint, dust_limit_satoshis_arg: bigint, max_htlc_value_in_flight_msat_arg: bigint, channel_reserve_satoshis_arg: bigint, htlc_minimum_msat_arg: bigint, feerate_per_kw_arg: number, to_self_delay_arg: number, max_accepted_htlcs_arg: number, funding_pubkey_arg: number, revocation_basepoint_arg: number, payment_point_arg: number, delayed_payment_basepoint_arg: number, htlc_basepoint_arg: number, first_per_commitment_point_arg: number, channel_flags_arg: number, shutdown_scriptpubkey_arg: bigint, channel_type_arg: bigint): bigint { +export function CommonOpenChannelFields_new(chain_hash_arg: number, temporary_channel_id_arg: bigint, funding_satoshis_arg: bigint, dust_limit_satoshis_arg: bigint, max_htlc_value_in_flight_msat_arg: bigint, htlc_minimum_msat_arg: bigint, commitment_feerate_sat_per_1000_weight_arg: number, to_self_delay_arg: number, max_accepted_htlcs_arg: number, funding_pubkey_arg: number, revocation_basepoint_arg: number, payment_basepoint_arg: number, delayed_payment_basepoint_arg: number, htlc_basepoint_arg: number, first_per_commitment_point_arg: number, channel_flags_arg: number, shutdown_scriptpubkey_arg: bigint, channel_type_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_new(chain_hash_arg, temporary_channel_id_arg, funding_satoshis_arg, push_msat_arg, dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, channel_reserve_satoshis_arg, htlc_minimum_msat_arg, feerate_per_kw_arg, to_self_delay_arg, max_accepted_htlcs_arg, funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg, first_per_commitment_point_arg, channel_flags_arg, shutdown_scriptpubkey_arg, channel_type_arg); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_new(chain_hash_arg, temporary_channel_id_arg, funding_satoshis_arg, dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, htlc_minimum_msat_arg, commitment_feerate_sat_per_1000_weight_arg, to_self_delay_arg, max_accepted_htlcs_arg, funding_pubkey_arg, revocation_basepoint_arg, payment_basepoint_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg, first_per_commitment_point_arg, channel_flags_arg, shutdown_scriptpubkey_arg, channel_type_arg); return nativeResponseValue; } - // uint64_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg); + // uint64_t CommonOpenChannelFields_clone_ptr(LDKCommonOpenChannelFields *NONNULL_PTR arg); /* @internal */ -export function OpenChannel_clone_ptr(arg: bigint): bigint { +export function CommonOpenChannelFields_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_clone_ptr(arg); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_clone_ptr(arg); return nativeResponseValue; } - // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig); + // struct LDKCommonOpenChannelFields CommonOpenChannelFields_clone(const struct LDKCommonOpenChannelFields *NONNULL_PTR orig); /* @internal */ -export function OpenChannel_clone(orig: bigint): bigint { +export function CommonOpenChannelFields_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_clone(orig); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_clone(orig); return nativeResponseValue; } - // uint64_t OpenChannel_hash(const struct LDKOpenChannel *NONNULL_PTR o); + // uint64_t CommonOpenChannelFields_hash(const struct LDKCommonOpenChannelFields *NONNULL_PTR o); /* @internal */ -export function OpenChannel_hash(o: bigint): bigint { +export function CommonOpenChannelFields_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_hash(o); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_hash(o); return nativeResponseValue; } - // bool OpenChannel_eq(const struct LDKOpenChannel *NONNULL_PTR a, const struct LDKOpenChannel *NONNULL_PTR b); + // bool CommonOpenChannelFields_eq(const struct LDKCommonOpenChannelFields *NONNULL_PTR a, const struct LDKCommonOpenChannelFields *NONNULL_PTR b); /* @internal */ -export function OpenChannel_eq(a: bigint, b: bigint): boolean { +export function CommonOpenChannelFields_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannel_eq(a, b); + const nativeResponseValue = wasm.TS_CommonOpenChannelFields_eq(a, b); return nativeResponseValue; } - // void OpenChannelV2_free(struct LDKOpenChannelV2 this_obj); + // void OpenChannel_free(struct LDKOpenChannel this_obj); /* @internal */ -export function OpenChannelV2_free(this_obj: bigint): void { +export function OpenChannel_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_free(this_obj); + const nativeResponseValue = wasm.TS_OpenChannel_free(this_obj); // debug statements here } - // const uint8_t (*OpenChannelV2_get_chain_hash(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr))[32]; + // struct LDKCommonOpenChannelFields OpenChannel_get_common_fields(const struct LDKOpenChannel *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannelV2_get_chain_hash(this_ptr: bigint): number { +export function OpenChannel_get_common_fields(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_chain_hash(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannel_get_common_fields(this_ptr); return nativeResponseValue; } - // void OpenChannelV2_set_chain_hash(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void OpenChannel_set_common_fields(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKCommonOpenChannelFields val); /* @internal */ -export function OpenChannelV2_set_chain_hash(this_ptr: bigint, val: number): void { +export function OpenChannel_set_common_fields(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_chain_hash(this_ptr, val); + const nativeResponseValue = wasm.TS_OpenChannel_set_common_fields(this_ptr, val); // debug statements here } - // const uint8_t (*OpenChannelV2_get_temporary_channel_id(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr))[32]; + // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannelV2_get_temporary_channel_id(this_ptr: bigint): number { +export function OpenChannel_get_push_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_temporary_channel_id(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannel_get_push_msat(this_ptr); return nativeResponseValue; } - // void OpenChannelV2_set_temporary_channel_id(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function OpenChannelV2_set_temporary_channel_id(this_ptr: bigint, val: number): void { +export function OpenChannel_set_push_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_temporary_channel_id(this_ptr, val); + const nativeResponseValue = wasm.TS_OpenChannel_set_push_msat(this_ptr, val); // debug statements here } - // uint32_t OpenChannelV2_get_funding_feerate_sat_per_1000_weight(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannelV2_get_funding_feerate_sat_per_1000_weight(this_ptr: bigint): number { +export function OpenChannel_get_channel_reserve_satoshis(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_funding_feerate_sat_per_1000_weight(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannel_get_channel_reserve_satoshis(this_ptr); return nativeResponseValue; } - // void OpenChannelV2_set_funding_feerate_sat_per_1000_weight(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val); + // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function OpenChannelV2_set_funding_feerate_sat_per_1000_weight(this_ptr: bigint, val: number): void { +export function OpenChannel_set_channel_reserve_satoshis(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_funding_feerate_sat_per_1000_weight(this_ptr, val); + const nativeResponseValue = wasm.TS_OpenChannel_set_channel_reserve_satoshis(this_ptr, val); // debug statements here } - // uint32_t OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKOpenChannel OpenChannel_new(struct LDKCommonOpenChannelFields common_fields_arg, uint64_t push_msat_arg, uint64_t channel_reserve_satoshis_arg); /* @internal */ -export function OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(this_ptr: bigint): number { +export function OpenChannel_new(common_fields_arg: bigint, push_msat_arg: bigint, channel_reserve_satoshis_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_commitment_feerate_sat_per_1000_weight(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannel_new(common_fields_arg, push_msat_arg, channel_reserve_satoshis_arg); return nativeResponseValue; } - // void OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val); -/* @internal */ -export function OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_commitment_feerate_sat_per_1000_weight(this_ptr, val); - // debug statements here -} - // uint64_t OpenChannelV2_get_funding_satoshis(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // uint64_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg); /* @internal */ -export function OpenChannelV2_get_funding_satoshis(this_ptr: bigint): bigint { +export function OpenChannel_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_funding_satoshis(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannel_clone_ptr(arg); return nativeResponseValue; } - // void OpenChannelV2_set_funding_satoshis(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val); -/* @internal */ -export function OpenChannelV2_set_funding_satoshis(this_ptr: bigint, val: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_funding_satoshis(this_ptr, val); - // debug statements here -} - // uint64_t OpenChannelV2_get_dust_limit_satoshis(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig); /* @internal */ -export function OpenChannelV2_get_dust_limit_satoshis(this_ptr: bigint): bigint { +export function OpenChannel_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_dust_limit_satoshis(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannel_clone(orig); return nativeResponseValue; } - // void OpenChannelV2_set_dust_limit_satoshis(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val); -/* @internal */ -export function OpenChannelV2_set_dust_limit_satoshis(this_ptr: bigint, val: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_dust_limit_satoshis(this_ptr, val); - // debug statements here -} - // uint64_t OpenChannelV2_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // uint64_t OpenChannel_hash(const struct LDKOpenChannel *NONNULL_PTR o); /* @internal */ -export function OpenChannelV2_get_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint { +export function OpenChannel_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_max_htlc_value_in_flight_msat(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannel_hash(o); return nativeResponseValue; } - // void OpenChannelV2_set_max_htlc_value_in_flight_msat(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val); -/* @internal */ -export function OpenChannelV2_set_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_max_htlc_value_in_flight_msat(this_ptr, val); - // debug statements here -} - // uint64_t OpenChannelV2_get_htlc_minimum_msat(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // bool OpenChannel_eq(const struct LDKOpenChannel *NONNULL_PTR a, const struct LDKOpenChannel *NONNULL_PTR b); /* @internal */ -export function OpenChannelV2_get_htlc_minimum_msat(this_ptr: bigint): bigint { +export function OpenChannel_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_htlc_minimum_msat(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannel_eq(a, b); return nativeResponseValue; } - // void OpenChannelV2_set_htlc_minimum_msat(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint64_t val); + // void OpenChannelV2_free(struct LDKOpenChannelV2 this_obj); /* @internal */ -export function OpenChannelV2_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { +export function OpenChannelV2_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_htlc_minimum_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_OpenChannelV2_free(this_obj); // debug statements here } - // uint16_t OpenChannelV2_get_to_self_delay(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // struct LDKCommonOpenChannelFields OpenChannelV2_get_common_fields(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannelV2_get_to_self_delay(this_ptr: bigint): number { +export function OpenChannelV2_get_common_fields(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_to_self_delay(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannelV2_get_common_fields(this_ptr); return nativeResponseValue; } - // void OpenChannelV2_set_to_self_delay(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint16_t val); + // void OpenChannelV2_set_common_fields(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKCommonOpenChannelFields val); /* @internal */ -export function OpenChannelV2_set_to_self_delay(this_ptr: bigint, val: number): void { +export function OpenChannelV2_set_common_fields(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_to_self_delay(this_ptr, val); + const nativeResponseValue = wasm.TS_OpenChannelV2_set_common_fields(this_ptr, val); // debug statements here } - // uint16_t OpenChannelV2_get_max_accepted_htlcs(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // uint32_t OpenChannelV2_get_funding_feerate_sat_per_1000_weight(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannelV2_get_max_accepted_htlcs(this_ptr: bigint): number { +export function OpenChannelV2_get_funding_feerate_sat_per_1000_weight(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_max_accepted_htlcs(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannelV2_get_funding_feerate_sat_per_1000_weight(this_ptr); return nativeResponseValue; } - // void OpenChannelV2_set_max_accepted_htlcs(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint16_t val); + // void OpenChannelV2_set_funding_feerate_sat_per_1000_weight(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function OpenChannelV2_set_max_accepted_htlcs(this_ptr: bigint, val: number): void { +export function OpenChannelV2_set_funding_feerate_sat_per_1000_weight(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_max_accepted_htlcs(this_ptr, val); + const nativeResponseValue = wasm.TS_OpenChannelV2_set_funding_feerate_sat_per_1000_weight(this_ptr, val); // debug statements here } // uint32_t OpenChannelV2_get_locktime(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); @@ -33647,553 +38052,463 @@ export function OpenChannelV2_set_locktime(this_ptr: bigint, val: number): void const nativeResponseValue = wasm.TS_OpenChannelV2_set_locktime(this_ptr, val); // debug statements here } - // struct LDKPublicKey OpenChannelV2_get_funding_pubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // struct LDKPublicKey OpenChannelV2_get_second_per_commitment_point(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannelV2_get_funding_pubkey(this_ptr: bigint): number { +export function OpenChannelV2_get_second_per_commitment_point(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_funding_pubkey(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannelV2_get_second_per_commitment_point(this_ptr); return nativeResponseValue; } - // void OpenChannelV2_set_funding_pubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void OpenChannelV2_set_second_per_commitment_point(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function OpenChannelV2_set_funding_pubkey(this_ptr: bigint, val: number): void { +export function OpenChannelV2_set_second_per_commitment_point(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_funding_pubkey(this_ptr, val); + const nativeResponseValue = wasm.TS_OpenChannelV2_set_second_per_commitment_point(this_ptr, val); // debug statements here } - // struct LDKPublicKey OpenChannelV2_get_revocation_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // enum LDKCOption_NoneZ OpenChannelV2_get_require_confirmed_inputs(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannelV2_get_revocation_basepoint(this_ptr: bigint): number { +export function OpenChannelV2_get_require_confirmed_inputs(this_ptr: bigint): COption_NoneZ { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_revocation_basepoint(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannelV2_get_require_confirmed_inputs(this_ptr); return nativeResponseValue; } - // void OpenChannelV2_set_revocation_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void OpenChannelV2_set_require_confirmed_inputs(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val); /* @internal */ -export function OpenChannelV2_set_revocation_basepoint(this_ptr: bigint, val: number): void { +export function OpenChannelV2_set_require_confirmed_inputs(this_ptr: bigint, val: COption_NoneZ): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_revocation_basepoint(this_ptr, val); + const nativeResponseValue = wasm.TS_OpenChannelV2_set_require_confirmed_inputs(this_ptr, val); // debug statements here } - // struct LDKPublicKey OpenChannelV2_get_payment_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKOpenChannelV2 OpenChannelV2_new(struct LDKCommonOpenChannelFields common_fields_arg, uint32_t funding_feerate_sat_per_1000_weight_arg, uint32_t locktime_arg, struct LDKPublicKey second_per_commitment_point_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); /* @internal */ -export function OpenChannelV2_get_payment_basepoint(this_ptr: bigint): number { +export function OpenChannelV2_new(common_fields_arg: bigint, funding_feerate_sat_per_1000_weight_arg: number, locktime_arg: number, second_per_commitment_point_arg: number, require_confirmed_inputs_arg: COption_NoneZ): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_payment_basepoint(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannelV2_new(common_fields_arg, funding_feerate_sat_per_1000_weight_arg, locktime_arg, second_per_commitment_point_arg, require_confirmed_inputs_arg); return nativeResponseValue; } - // void OpenChannelV2_set_payment_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); -/* @internal */ -export function OpenChannelV2_set_payment_basepoint(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_payment_basepoint(this_ptr, val); - // debug statements here -} - // struct LDKPublicKey OpenChannelV2_get_delayed_payment_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // uint64_t OpenChannelV2_clone_ptr(LDKOpenChannelV2 *NONNULL_PTR arg); /* @internal */ -export function OpenChannelV2_get_delayed_payment_basepoint(this_ptr: bigint): number { +export function OpenChannelV2_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_delayed_payment_basepoint(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannelV2_clone_ptr(arg); return nativeResponseValue; } - // void OpenChannelV2_set_delayed_payment_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); -/* @internal */ -export function OpenChannelV2_set_delayed_payment_basepoint(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_delayed_payment_basepoint(this_ptr, val); - // debug statements here -} - // struct LDKPublicKey OpenChannelV2_get_htlc_basepoint(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // struct LDKOpenChannelV2 OpenChannelV2_clone(const struct LDKOpenChannelV2 *NONNULL_PTR orig); /* @internal */ -export function OpenChannelV2_get_htlc_basepoint(this_ptr: bigint): number { +export function OpenChannelV2_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_htlc_basepoint(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannelV2_clone(orig); return nativeResponseValue; } - // void OpenChannelV2_set_htlc_basepoint(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); -/* @internal */ -export function OpenChannelV2_set_htlc_basepoint(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_htlc_basepoint(this_ptr, val); - // debug statements here -} - // struct LDKPublicKey OpenChannelV2_get_first_per_commitment_point(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // uint64_t OpenChannelV2_hash(const struct LDKOpenChannelV2 *NONNULL_PTR o); /* @internal */ -export function OpenChannelV2_get_first_per_commitment_point(this_ptr: bigint): number { +export function OpenChannelV2_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_first_per_commitment_point(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannelV2_hash(o); return nativeResponseValue; } - // void OpenChannelV2_set_first_per_commitment_point(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); -/* @internal */ -export function OpenChannelV2_set_first_per_commitment_point(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_first_per_commitment_point(this_ptr, val); - // debug statements here -} - // struct LDKPublicKey OpenChannelV2_get_second_per_commitment_point(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // bool OpenChannelV2_eq(const struct LDKOpenChannelV2 *NONNULL_PTR a, const struct LDKOpenChannelV2 *NONNULL_PTR b); /* @internal */ -export function OpenChannelV2_get_second_per_commitment_point(this_ptr: bigint): number { +export function OpenChannelV2_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_second_per_commitment_point(this_ptr); + const nativeResponseValue = wasm.TS_OpenChannelV2_eq(a, b); return nativeResponseValue; } - // void OpenChannelV2_set_second_per_commitment_point(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void CommonAcceptChannelFields_free(struct LDKCommonAcceptChannelFields this_obj); /* @internal */ -export function OpenChannelV2_set_second_per_commitment_point(this_ptr: bigint, val: number): void { +export function CommonAcceptChannelFields_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_second_per_commitment_point(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_free(this_obj); // debug statements here } - // uint8_t OpenChannelV2_get_channel_flags(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // struct LDKChannelId CommonAcceptChannelFields_get_temporary_channel_id(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannelV2_get_channel_flags(this_ptr: bigint): number { +export function CommonAcceptChannelFields_get_temporary_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_channel_flags(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_temporary_channel_id(this_ptr); return nativeResponseValue; } - // void OpenChannelV2_set_channel_flags(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, uint8_t val); + // void CommonAcceptChannelFields_set_temporary_channel_id(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function OpenChannelV2_set_channel_flags(this_ptr: bigint, val: number): void { +export function CommonAcceptChannelFields_set_temporary_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_channel_flags(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_temporary_channel_id(this_ptr, val); // debug statements here } - // struct LDKCOption_CVec_u8ZZ OpenChannelV2_get_shutdown_scriptpubkey(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // uint64_t CommonAcceptChannelFields_get_dust_limit_satoshis(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannelV2_get_shutdown_scriptpubkey(this_ptr: bigint): bigint { +export function CommonAcceptChannelFields_get_dust_limit_satoshis(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_shutdown_scriptpubkey(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_dust_limit_satoshis(this_ptr); return nativeResponseValue; } - // void OpenChannelV2_set_shutdown_scriptpubkey(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); + // void CommonAcceptChannelFields_set_dust_limit_satoshis(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function OpenChannelV2_set_shutdown_scriptpubkey(this_ptr: bigint, val: bigint): void { +export function CommonAcceptChannelFields_set_dust_limit_satoshis(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_shutdown_scriptpubkey(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_dust_limit_satoshis(this_ptr, val); // debug statements here } - // struct LDKChannelTypeFeatures OpenChannelV2_get_channel_type(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // uint64_t CommonAcceptChannelFields_get_max_htlc_value_in_flight_msat(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannelV2_get_channel_type(this_ptr: bigint): bigint { +export function CommonAcceptChannelFields_get_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_channel_type(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_max_htlc_value_in_flight_msat(this_ptr); return nativeResponseValue; } - // void OpenChannelV2_set_channel_type(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); + // void CommonAcceptChannelFields_set_max_htlc_value_in_flight_msat(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function OpenChannelV2_set_channel_type(this_ptr: bigint, val: bigint): void { +export function CommonAcceptChannelFields_set_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_channel_type(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_max_htlc_value_in_flight_msat(this_ptr, val); // debug statements here } - // enum LDKCOption_NoneZ OpenChannelV2_get_require_confirmed_inputs(const struct LDKOpenChannelV2 *NONNULL_PTR this_ptr); + // uint64_t CommonAcceptChannelFields_get_htlc_minimum_msat(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannelV2_get_require_confirmed_inputs(this_ptr: bigint): COption_NoneZ { +export function CommonAcceptChannelFields_get_htlc_minimum_msat(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_get_require_confirmed_inputs(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_htlc_minimum_msat(this_ptr); return nativeResponseValue; } - // void OpenChannelV2_set_require_confirmed_inputs(struct LDKOpenChannelV2 *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val); + // void CommonAcceptChannelFields_set_htlc_minimum_msat(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function OpenChannelV2_set_require_confirmed_inputs(this_ptr: bigint, val: COption_NoneZ): void { +export function CommonAcceptChannelFields_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_set_require_confirmed_inputs(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_htlc_minimum_msat(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKOpenChannelV2 OpenChannelV2_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKThirtyTwoBytes temporary_channel_id_arg, uint32_t funding_feerate_sat_per_1000_weight_arg, uint32_t commitment_feerate_sat_per_1000_weight_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, uint32_t locktime_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, uint8_t channel_flags_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); + // uint32_t CommonAcceptChannelFields_get_minimum_depth(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function OpenChannelV2_new(chain_hash_arg: number, temporary_channel_id_arg: number, funding_feerate_sat_per_1000_weight_arg: number, commitment_feerate_sat_per_1000_weight_arg: number, funding_satoshis_arg: bigint, dust_limit_satoshis_arg: bigint, max_htlc_value_in_flight_msat_arg: bigint, htlc_minimum_msat_arg: bigint, to_self_delay_arg: number, max_accepted_htlcs_arg: number, locktime_arg: number, funding_pubkey_arg: number, revocation_basepoint_arg: number, payment_basepoint_arg: number, delayed_payment_basepoint_arg: number, htlc_basepoint_arg: number, first_per_commitment_point_arg: number, second_per_commitment_point_arg: number, channel_flags_arg: number, shutdown_scriptpubkey_arg: bigint, channel_type_arg: bigint, require_confirmed_inputs_arg: COption_NoneZ): bigint { +export function CommonAcceptChannelFields_get_minimum_depth(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_new(chain_hash_arg, temporary_channel_id_arg, funding_feerate_sat_per_1000_weight_arg, commitment_feerate_sat_per_1000_weight_arg, funding_satoshis_arg, dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, htlc_minimum_msat_arg, to_self_delay_arg, max_accepted_htlcs_arg, locktime_arg, funding_pubkey_arg, revocation_basepoint_arg, payment_basepoint_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg, first_per_commitment_point_arg, second_per_commitment_point_arg, channel_flags_arg, shutdown_scriptpubkey_arg, channel_type_arg, require_confirmed_inputs_arg); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_minimum_depth(this_ptr); return nativeResponseValue; } - // uint64_t OpenChannelV2_clone_ptr(LDKOpenChannelV2 *NONNULL_PTR arg); + // void CommonAcceptChannelFields_set_minimum_depth(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, uint32_t val); /* @internal */ -export function OpenChannelV2_clone_ptr(arg: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannelV2_clone_ptr(arg); - return nativeResponseValue; -} - // struct LDKOpenChannelV2 OpenChannelV2_clone(const struct LDKOpenChannelV2 *NONNULL_PTR orig); -/* @internal */ -export function OpenChannelV2_clone(orig: bigint): bigint { +export function CommonAcceptChannelFields_set_minimum_depth(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OpenChannelV2_clone(orig); - return nativeResponseValue; -} - // uint64_t OpenChannelV2_hash(const struct LDKOpenChannelV2 *NONNULL_PTR o); -/* @internal */ -export function OpenChannelV2_hash(o: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannelV2_hash(o); - return nativeResponseValue; -} - // bool OpenChannelV2_eq(const struct LDKOpenChannelV2 *NONNULL_PTR a, const struct LDKOpenChannelV2 *NONNULL_PTR b); -/* @internal */ -export function OpenChannelV2_eq(a: bigint, b: bigint): boolean { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_OpenChannelV2_eq(a, b); - return nativeResponseValue; -} - // void AcceptChannel_free(struct LDKAcceptChannel this_obj); -/* @internal */ -export function AcceptChannel_free(this_obj: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannel_free(this_obj); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_minimum_depth(this_ptr, val); // debug statements here } - // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32]; + // uint16_t CommonAcceptChannelFields_get_to_self_delay(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannel_get_temporary_channel_id(this_ptr: bigint): number { +export function CommonAcceptChannelFields_get_to_self_delay(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_temporary_channel_id(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_to_self_delay(this_ptr); return nativeResponseValue; } - // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void CommonAcceptChannelFields_set_to_self_delay(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, uint16_t val); /* @internal */ -export function AcceptChannel_set_temporary_channel_id(this_ptr: bigint, val: number): void { +export function CommonAcceptChannelFields_set_to_self_delay(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_temporary_channel_id(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_to_self_delay(this_ptr, val); // debug statements here } - // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // uint16_t CommonAcceptChannelFields_get_max_accepted_htlcs(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannel_get_dust_limit_satoshis(this_ptr: bigint): bigint { +export function CommonAcceptChannelFields_get_max_accepted_htlcs(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_dust_limit_satoshis(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_max_accepted_htlcs(this_ptr); return nativeResponseValue; } - // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val); + // void CommonAcceptChannelFields_set_max_accepted_htlcs(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, uint16_t val); /* @internal */ -export function AcceptChannel_set_dust_limit_satoshis(this_ptr: bigint, val: bigint): void { +export function CommonAcceptChannelFields_set_max_accepted_htlcs(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_dust_limit_satoshis(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_max_accepted_htlcs(this_ptr, val); // debug statements here } - // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // struct LDKPublicKey CommonAcceptChannelFields_get_funding_pubkey(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint { +export function CommonAcceptChannelFields_get_funding_pubkey(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_funding_pubkey(this_ptr); return nativeResponseValue; } - // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val); + // void CommonAcceptChannelFields_set_funding_pubkey(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void { +export function CommonAcceptChannelFields_set_funding_pubkey(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_funding_pubkey(this_ptr, val); // debug statements here } - // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // struct LDKPublicKey CommonAcceptChannelFields_get_revocation_basepoint(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannel_get_channel_reserve_satoshis(this_ptr: bigint): bigint { +export function CommonAcceptChannelFields_get_revocation_basepoint(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_reserve_satoshis(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_revocation_basepoint(this_ptr); return nativeResponseValue; } - // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val); + // void CommonAcceptChannelFields_set_revocation_basepoint(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function AcceptChannel_set_channel_reserve_satoshis(this_ptr: bigint, val: bigint): void { +export function CommonAcceptChannelFields_set_revocation_basepoint(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_reserve_satoshis(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_revocation_basepoint(this_ptr, val); // debug statements here } - // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // struct LDKPublicKey CommonAcceptChannelFields_get_payment_basepoint(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannel_get_htlc_minimum_msat(this_ptr: bigint): bigint { +export function CommonAcceptChannelFields_get_payment_basepoint(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_minimum_msat(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_payment_basepoint(this_ptr); return nativeResponseValue; } - // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val); + // void CommonAcceptChannelFields_set_payment_basepoint(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function AcceptChannel_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { +export function CommonAcceptChannelFields_set_payment_basepoint(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_minimum_msat(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_payment_basepoint(this_ptr, val); // debug statements here } - // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // struct LDKPublicKey CommonAcceptChannelFields_get_delayed_payment_basepoint(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannel_get_minimum_depth(this_ptr: bigint): number { +export function CommonAcceptChannelFields_get_delayed_payment_basepoint(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_minimum_depth(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_delayed_payment_basepoint(this_ptr); return nativeResponseValue; } - // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val); + // void CommonAcceptChannelFields_set_delayed_payment_basepoint(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function AcceptChannel_set_minimum_depth(this_ptr: bigint, val: number): void { +export function CommonAcceptChannelFields_set_delayed_payment_basepoint(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_minimum_depth(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_delayed_payment_basepoint(this_ptr, val); // debug statements here } - // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // struct LDKPublicKey CommonAcceptChannelFields_get_htlc_basepoint(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannel_get_to_self_delay(this_ptr: bigint): number { +export function CommonAcceptChannelFields_get_htlc_basepoint(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_to_self_delay(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_htlc_basepoint(this_ptr); return nativeResponseValue; } - // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val); + // void CommonAcceptChannelFields_set_htlc_basepoint(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function AcceptChannel_set_to_self_delay(this_ptr: bigint, val: number): void { +export function CommonAcceptChannelFields_set_htlc_basepoint(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_to_self_delay(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_htlc_basepoint(this_ptr, val); // debug statements here } - // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // struct LDKPublicKey CommonAcceptChannelFields_get_first_per_commitment_point(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannel_get_max_accepted_htlcs(this_ptr: bigint): number { +export function CommonAcceptChannelFields_get_first_per_commitment_point(this_ptr: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_max_accepted_htlcs(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_first_per_commitment_point(this_ptr); return nativeResponseValue; } - // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val); + // void CommonAcceptChannelFields_set_first_per_commitment_point(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); /* @internal */ -export function AcceptChannel_set_max_accepted_htlcs(this_ptr: bigint, val: number): void { +export function CommonAcceptChannelFields_set_first_per_commitment_point(this_ptr: bigint, val: number): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_max_accepted_htlcs(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_first_per_commitment_point(this_ptr, val); // debug statements here } - // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // struct LDKCOption_CVec_u8ZZ CommonAcceptChannelFields_get_shutdown_scriptpubkey(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannel_get_funding_pubkey(this_ptr: bigint): number { +export function CommonAcceptChannelFields_get_shutdown_scriptpubkey(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_funding_pubkey(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_shutdown_scriptpubkey(this_ptr); return nativeResponseValue; } - // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void CommonAcceptChannelFields_set_shutdown_scriptpubkey(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); /* @internal */ -export function AcceptChannel_set_funding_pubkey(this_ptr: bigint, val: number): void { +export function CommonAcceptChannelFields_set_shutdown_scriptpubkey(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_funding_pubkey(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_shutdown_scriptpubkey(this_ptr, val); // debug statements here } - // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // struct LDKChannelTypeFeatures CommonAcceptChannelFields_get_channel_type(const struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannel_get_revocation_basepoint(this_ptr: bigint): number { +export function CommonAcceptChannelFields_get_channel_type(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_revocation_basepoint(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_get_channel_type(this_ptr); return nativeResponseValue; } - // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void CommonAcceptChannelFields_set_channel_type(struct LDKCommonAcceptChannelFields *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); /* @internal */ -export function AcceptChannel_set_revocation_basepoint(this_ptr: bigint, val: number): void { +export function CommonAcceptChannelFields_set_channel_type(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_revocation_basepoint(this_ptr, val); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_set_channel_type(this_ptr, val); // debug statements here } - // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // MUST_USE_RES struct LDKCommonAcceptChannelFields CommonAcceptChannelFields_new(struct LDKChannelId temporary_channel_id_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); /* @internal */ -export function AcceptChannel_get_payment_point(this_ptr: bigint): number { +export function CommonAcceptChannelFields_new(temporary_channel_id_arg: bigint, dust_limit_satoshis_arg: bigint, max_htlc_value_in_flight_msat_arg: bigint, htlc_minimum_msat_arg: bigint, minimum_depth_arg: number, to_self_delay_arg: number, max_accepted_htlcs_arg: number, funding_pubkey_arg: number, revocation_basepoint_arg: number, payment_basepoint_arg: number, delayed_payment_basepoint_arg: number, htlc_basepoint_arg: number, first_per_commitment_point_arg: number, shutdown_scriptpubkey_arg: bigint, channel_type_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_payment_point(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_new(temporary_channel_id_arg, dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, htlc_minimum_msat_arg, minimum_depth_arg, to_self_delay_arg, max_accepted_htlcs_arg, funding_pubkey_arg, revocation_basepoint_arg, payment_basepoint_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg, first_per_commitment_point_arg, shutdown_scriptpubkey_arg, channel_type_arg); return nativeResponseValue; } - // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); -/* @internal */ -export function AcceptChannel_set_payment_point(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannel_set_payment_point(this_ptr, val); - // debug statements here -} - // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // uint64_t CommonAcceptChannelFields_clone_ptr(LDKCommonAcceptChannelFields *NONNULL_PTR arg); /* @internal */ -export function AcceptChannel_get_delayed_payment_basepoint(this_ptr: bigint): number { +export function CommonAcceptChannelFields_clone_ptr(arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_delayed_payment_basepoint(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_clone_ptr(arg); return nativeResponseValue; } - // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // struct LDKCommonAcceptChannelFields CommonAcceptChannelFields_clone(const struct LDKCommonAcceptChannelFields *NONNULL_PTR orig); /* @internal */ -export function AcceptChannel_set_delayed_payment_basepoint(this_ptr: bigint, val: number): void { +export function CommonAcceptChannelFields_clone(orig: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_delayed_payment_basepoint(this_ptr, val); - // debug statements here -} - // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannel_get_htlc_basepoint(this_ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_basepoint(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_clone(orig); return nativeResponseValue; } - // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // uint64_t CommonAcceptChannelFields_hash(const struct LDKCommonAcceptChannelFields *NONNULL_PTR o); /* @internal */ -export function AcceptChannel_set_htlc_basepoint(this_ptr: bigint, val: number): void { +export function CommonAcceptChannelFields_hash(o: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_basepoint(this_ptr, val); - // debug statements here + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_hash(o); + return nativeResponseValue; } - // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // bool CommonAcceptChannelFields_eq(const struct LDKCommonAcceptChannelFields *NONNULL_PTR a, const struct LDKCommonAcceptChannelFields *NONNULL_PTR b); /* @internal */ -export function AcceptChannel_get_first_per_commitment_point(this_ptr: bigint): number { +export function CommonAcceptChannelFields_eq(a: bigint, b: bigint): boolean { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_first_per_commitment_point(this_ptr); + const nativeResponseValue = wasm.TS_CommonAcceptChannelFields_eq(a, b); return nativeResponseValue; } - // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void AcceptChannel_free(struct LDKAcceptChannel this_obj); /* @internal */ -export function AcceptChannel_set_first_per_commitment_point(this_ptr: bigint, val: number): void { +export function AcceptChannel_free(this_obj: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_first_per_commitment_point(this_ptr, val); + const nativeResponseValue = wasm.TS_AcceptChannel_free(this_obj); // debug statements here } - // struct LDKCOption_CVec_u8ZZ AcceptChannel_get_shutdown_scriptpubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // struct LDKCommonAcceptChannelFields AcceptChannel_get_common_fields(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannel_get_shutdown_scriptpubkey(this_ptr: bigint): bigint { +export function AcceptChannel_get_common_fields(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_shutdown_scriptpubkey(this_ptr); + const nativeResponseValue = wasm.TS_AcceptChannel_get_common_fields(this_ptr); return nativeResponseValue; } - // void AcceptChannel_set_shutdown_scriptpubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); + // void AcceptChannel_set_common_fields(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKCommonAcceptChannelFields val); /* @internal */ -export function AcceptChannel_set_shutdown_scriptpubkey(this_ptr: bigint, val: bigint): void { +export function AcceptChannel_set_common_fields(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_shutdown_scriptpubkey(this_ptr, val); + const nativeResponseValue = wasm.TS_AcceptChannel_set_common_fields(this_ptr, val); // debug statements here } - // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); + // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannel_get_channel_type(this_ptr: bigint): bigint { +export function AcceptChannel_get_channel_reserve_satoshis(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_type(this_ptr); + const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_reserve_satoshis(this_ptr); return nativeResponseValue; } - // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); + // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val); /* @internal */ -export function AcceptChannel_set_channel_type(this_ptr: bigint, val: bigint): void { +export function AcceptChannel_set_channel_reserve_satoshis(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_type(this_ptr, val); + const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_reserve_satoshis(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKAcceptChannel AcceptChannel_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t channel_reserve_satoshis_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_point_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg); + // MUST_USE_RES struct LDKAcceptChannel AcceptChannel_new(struct LDKCommonAcceptChannelFields common_fields_arg, uint64_t channel_reserve_satoshis_arg); /* @internal */ -export function AcceptChannel_new(temporary_channel_id_arg: number, dust_limit_satoshis_arg: bigint, max_htlc_value_in_flight_msat_arg: bigint, channel_reserve_satoshis_arg: bigint, htlc_minimum_msat_arg: bigint, minimum_depth_arg: number, to_self_delay_arg: number, max_accepted_htlcs_arg: number, funding_pubkey_arg: number, revocation_basepoint_arg: number, payment_point_arg: number, delayed_payment_basepoint_arg: number, htlc_basepoint_arg: number, first_per_commitment_point_arg: number, shutdown_scriptpubkey_arg: bigint, channel_type_arg: bigint): bigint { +export function AcceptChannel_new(common_fields_arg: bigint, channel_reserve_satoshis_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannel_new(temporary_channel_id_arg, dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, channel_reserve_satoshis_arg, htlc_minimum_msat_arg, minimum_depth_arg, to_self_delay_arg, max_accepted_htlcs_arg, funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg, first_per_commitment_point_arg, shutdown_scriptpubkey_arg, channel_type_arg); + const nativeResponseValue = wasm.TS_AcceptChannel_new(common_fields_arg, channel_reserve_satoshis_arg); return nativeResponseValue; } // uint64_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg); @@ -34241,22 +38556,22 @@ export function AcceptChannelV2_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_AcceptChannelV2_free(this_obj); // debug statements here } - // const uint8_t (*AcceptChannelV2_get_temporary_channel_id(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr))[32]; + // struct LDKCommonAcceptChannelFields AcceptChannelV2_get_common_fields(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); /* @internal */ -export function AcceptChannelV2_get_temporary_channel_id(this_ptr: bigint): number { +export function AcceptChannelV2_get_common_fields(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_temporary_channel_id(this_ptr); + const nativeResponseValue = wasm.TS_AcceptChannelV2_get_common_fields(this_ptr); return nativeResponseValue; } - // void AcceptChannelV2_set_temporary_channel_id(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void AcceptChannelV2_set_common_fields(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKCommonAcceptChannelFields val); /* @internal */ -export function AcceptChannelV2_set_temporary_channel_id(this_ptr: bigint, val: number): void { +export function AcceptChannelV2_set_common_fields(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_temporary_channel_id(this_ptr, val); + const nativeResponseValue = wasm.TS_AcceptChannelV2_set_common_fields(this_ptr, val); // debug statements here } // uint64_t AcceptChannelV2_get_funding_satoshis(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); @@ -34276,222 +38591,6 @@ export function AcceptChannelV2_set_funding_satoshis(this_ptr: bigint, val: bigi } const nativeResponseValue = wasm.TS_AcceptChannelV2_set_funding_satoshis(this_ptr, val); // debug statements here -} - // uint64_t AcceptChannelV2_get_dust_limit_satoshis(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_dust_limit_satoshis(this_ptr: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_dust_limit_satoshis(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_dust_limit_satoshis(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val); -/* @internal */ -export function AcceptChannelV2_set_dust_limit_satoshis(this_ptr: bigint, val: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_dust_limit_satoshis(this_ptr, val); - // debug statements here -} - // uint64_t AcceptChannelV2_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_max_htlc_value_in_flight_msat(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val); -/* @internal */ -export function AcceptChannelV2_set_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_max_htlc_value_in_flight_msat(this_ptr, val); - // debug statements here -} - // uint64_t AcceptChannelV2_get_htlc_minimum_msat(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_htlc_minimum_msat(this_ptr: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_htlc_minimum_msat(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_htlc_minimum_msat(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint64_t val); -/* @internal */ -export function AcceptChannelV2_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_htlc_minimum_msat(this_ptr, val); - // debug statements here -} - // uint32_t AcceptChannelV2_get_minimum_depth(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_minimum_depth(this_ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_minimum_depth(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_minimum_depth(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint32_t val); -/* @internal */ -export function AcceptChannelV2_set_minimum_depth(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_minimum_depth(this_ptr, val); - // debug statements here -} - // uint16_t AcceptChannelV2_get_to_self_delay(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_to_self_delay(this_ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_to_self_delay(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_to_self_delay(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint16_t val); -/* @internal */ -export function AcceptChannelV2_set_to_self_delay(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_to_self_delay(this_ptr, val); - // debug statements here -} - // uint16_t AcceptChannelV2_get_max_accepted_htlcs(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_max_accepted_htlcs(this_ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_max_accepted_htlcs(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_max_accepted_htlcs(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, uint16_t val); -/* @internal */ -export function AcceptChannelV2_set_max_accepted_htlcs(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_max_accepted_htlcs(this_ptr, val); - // debug statements here -} - // struct LDKPublicKey AcceptChannelV2_get_funding_pubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_funding_pubkey(this_ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_funding_pubkey(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_funding_pubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); -/* @internal */ -export function AcceptChannelV2_set_funding_pubkey(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_funding_pubkey(this_ptr, val); - // debug statements here -} - // struct LDKPublicKey AcceptChannelV2_get_revocation_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_revocation_basepoint(this_ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_revocation_basepoint(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_revocation_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); -/* @internal */ -export function AcceptChannelV2_set_revocation_basepoint(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_revocation_basepoint(this_ptr, val); - // debug statements here -} - // struct LDKPublicKey AcceptChannelV2_get_payment_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_payment_basepoint(this_ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_payment_basepoint(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_payment_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); -/* @internal */ -export function AcceptChannelV2_set_payment_basepoint(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_payment_basepoint(this_ptr, val); - // debug statements here -} - // struct LDKPublicKey AcceptChannelV2_get_delayed_payment_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_delayed_payment_basepoint(this_ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_delayed_payment_basepoint(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_delayed_payment_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); -/* @internal */ -export function AcceptChannelV2_set_delayed_payment_basepoint(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_delayed_payment_basepoint(this_ptr, val); - // debug statements here -} - // struct LDKPublicKey AcceptChannelV2_get_htlc_basepoint(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_htlc_basepoint(this_ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_htlc_basepoint(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_htlc_basepoint(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); -/* @internal */ -export function AcceptChannelV2_set_htlc_basepoint(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_htlc_basepoint(this_ptr, val); - // debug statements here -} - // struct LDKPublicKey AcceptChannelV2_get_first_per_commitment_point(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_first_per_commitment_point(this_ptr: bigint): number { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_first_per_commitment_point(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_first_per_commitment_point(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKPublicKey val); -/* @internal */ -export function AcceptChannelV2_set_first_per_commitment_point(this_ptr: bigint, val: number): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_first_per_commitment_point(this_ptr, val); - // debug statements here } // struct LDKPublicKey AcceptChannelV2_get_second_per_commitment_point(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); /* @internal */ @@ -34510,42 +38609,6 @@ export function AcceptChannelV2_set_second_per_commitment_point(this_ptr: bigint } const nativeResponseValue = wasm.TS_AcceptChannelV2_set_second_per_commitment_point(this_ptr, val); // debug statements here -} - // struct LDKCOption_CVec_u8ZZ AcceptChannelV2_get_shutdown_scriptpubkey(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_shutdown_scriptpubkey(this_ptr: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_shutdown_scriptpubkey(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_shutdown_scriptpubkey(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val); -/* @internal */ -export function AcceptChannelV2_set_shutdown_scriptpubkey(this_ptr: bigint, val: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_shutdown_scriptpubkey(this_ptr, val); - // debug statements here -} - // struct LDKChannelTypeFeatures AcceptChannelV2_get_channel_type(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); -/* @internal */ -export function AcceptChannelV2_get_channel_type(this_ptr: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_get_channel_type(this_ptr); - return nativeResponseValue; -} - // void AcceptChannelV2_set_channel_type(struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val); -/* @internal */ -export function AcceptChannelV2_set_channel_type(this_ptr: bigint, val: bigint): void { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_AcceptChannelV2_set_channel_type(this_ptr, val); - // debug statements here } // enum LDKCOption_NoneZ AcceptChannelV2_get_require_confirmed_inputs(const struct LDKAcceptChannelV2 *NONNULL_PTR this_ptr); /* @internal */ @@ -34565,13 +38628,13 @@ export function AcceptChannelV2_set_require_confirmed_inputs(this_ptr: bigint, v const nativeResponseValue = wasm.TS_AcceptChannelV2_set_require_confirmed_inputs(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKAcceptChannelV2 AcceptChannelV2_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, uint64_t funding_satoshis_arg, uint64_t dust_limit_satoshis_arg, uint64_t max_htlc_value_in_flight_msat_arg, uint64_t htlc_minimum_msat_arg, uint32_t minimum_depth_arg, uint16_t to_self_delay_arg, uint16_t max_accepted_htlcs_arg, struct LDKPublicKey funding_pubkey_arg, struct LDKPublicKey revocation_basepoint_arg, struct LDKPublicKey payment_basepoint_arg, struct LDKPublicKey delayed_payment_basepoint_arg, struct LDKPublicKey htlc_basepoint_arg, struct LDKPublicKey first_per_commitment_point_arg, struct LDKPublicKey second_per_commitment_point_arg, struct LDKCOption_CVec_u8ZZ shutdown_scriptpubkey_arg, struct LDKChannelTypeFeatures channel_type_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); + // MUST_USE_RES struct LDKAcceptChannelV2 AcceptChannelV2_new(struct LDKCommonAcceptChannelFields common_fields_arg, uint64_t funding_satoshis_arg, struct LDKPublicKey second_per_commitment_point_arg, enum LDKCOption_NoneZ require_confirmed_inputs_arg); /* @internal */ -export function AcceptChannelV2_new(temporary_channel_id_arg: number, funding_satoshis_arg: bigint, dust_limit_satoshis_arg: bigint, max_htlc_value_in_flight_msat_arg: bigint, htlc_minimum_msat_arg: bigint, minimum_depth_arg: number, to_self_delay_arg: number, max_accepted_htlcs_arg: number, funding_pubkey_arg: number, revocation_basepoint_arg: number, payment_basepoint_arg: number, delayed_payment_basepoint_arg: number, htlc_basepoint_arg: number, first_per_commitment_point_arg: number, second_per_commitment_point_arg: number, shutdown_scriptpubkey_arg: bigint, channel_type_arg: bigint, require_confirmed_inputs_arg: COption_NoneZ): bigint { +export function AcceptChannelV2_new(common_fields_arg: bigint, funding_satoshis_arg: bigint, second_per_commitment_point_arg: number, require_confirmed_inputs_arg: COption_NoneZ): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_AcceptChannelV2_new(temporary_channel_id_arg, funding_satoshis_arg, dust_limit_satoshis_arg, max_htlc_value_in_flight_msat_arg, htlc_minimum_msat_arg, minimum_depth_arg, to_self_delay_arg, max_accepted_htlcs_arg, funding_pubkey_arg, revocation_basepoint_arg, payment_basepoint_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg, first_per_commitment_point_arg, second_per_commitment_point_arg, shutdown_scriptpubkey_arg, channel_type_arg, require_confirmed_inputs_arg); + const nativeResponseValue = wasm.TS_AcceptChannelV2_new(common_fields_arg, funding_satoshis_arg, second_per_commitment_point_arg, require_confirmed_inputs_arg); return nativeResponseValue; } // uint64_t AcceptChannelV2_clone_ptr(LDKAcceptChannelV2 *NONNULL_PTR arg); @@ -34619,18 +38682,18 @@ export function FundingCreated_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_FundingCreated_free(this_obj); // debug statements here } - // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr); /* @internal */ -export function FundingCreated_get_temporary_channel_id(this_ptr: bigint): number { +export function FundingCreated_get_temporary_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_FundingCreated_get_temporary_channel_id(this_ptr); return nativeResponseValue; } - // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function FundingCreated_set_temporary_channel_id(this_ptr: bigint, val: number): void { +export function FundingCreated_set_temporary_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -34691,9 +38754,9 @@ export function FundingCreated_set_signature(this_ptr: bigint, val: number): voi const nativeResponseValue = wasm.TS_FundingCreated_set_signature(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKThirtyTwoBytes temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKECDSASignature signature_arg); + // MUST_USE_RES struct LDKFundingCreated FundingCreated_new(struct LDKChannelId temporary_channel_id_arg, struct LDKThirtyTwoBytes funding_txid_arg, uint16_t funding_output_index_arg, struct LDKECDSASignature signature_arg); /* @internal */ -export function FundingCreated_new(temporary_channel_id_arg: number, funding_txid_arg: number, funding_output_index_arg: number, signature_arg: number): bigint { +export function FundingCreated_new(temporary_channel_id_arg: bigint, funding_txid_arg: number, funding_output_index_arg: number, signature_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -34745,18 +38808,18 @@ export function FundingSigned_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_FundingSigned_free(this_obj); // debug statements here } - // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr); /* @internal */ -export function FundingSigned_get_channel_id(this_ptr: bigint): number { +export function FundingSigned_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_FundingSigned_get_channel_id(this_ptr); return nativeResponseValue; } - // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function FundingSigned_set_channel_id(this_ptr: bigint, val: number): void { +export function FundingSigned_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -34781,9 +38844,9 @@ export function FundingSigned_set_signature(this_ptr: bigint, val: number): void const nativeResponseValue = wasm.TS_FundingSigned_set_signature(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKECDSASignature signature_arg); + // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKChannelId channel_id_arg, struct LDKECDSASignature signature_arg); /* @internal */ -export function FundingSigned_new(channel_id_arg: number, signature_arg: number): bigint { +export function FundingSigned_new(channel_id_arg: bigint, signature_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -34835,18 +38898,18 @@ export function ChannelReady_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_ChannelReady_free(this_obj); // debug statements here } - // const uint8_t (*ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelReady_get_channel_id(this_ptr: bigint): number { +export function ChannelReady_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_ChannelReady_get_channel_id(this_ptr); return nativeResponseValue; } - // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function ChannelReady_set_channel_id(this_ptr: bigint, val: number): void { +export function ChannelReady_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -34889,9 +38952,9 @@ export function ChannelReady_set_short_channel_id_alias(this_ptr: bigint, val: b const nativeResponseValue = wasm.TS_ChannelReady_set_short_channel_id_alias(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKChannelReady ChannelReady_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKPublicKey next_per_commitment_point_arg, struct LDKCOption_u64Z short_channel_id_alias_arg); + // MUST_USE_RES struct LDKChannelReady ChannelReady_new(struct LDKChannelId channel_id_arg, struct LDKPublicKey next_per_commitment_point_arg, struct LDKCOption_u64Z short_channel_id_alias_arg); /* @internal */ -export function ChannelReady_new(channel_id_arg: number, next_per_commitment_point_arg: number, short_channel_id_alias_arg: bigint): bigint { +export function ChannelReady_new(channel_id_arg: bigint, next_per_commitment_point_arg: number, short_channel_id_alias_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -34943,18 +39006,18 @@ export function Stfu_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_Stfu_free(this_obj); // debug statements here } - // const uint8_t (*Stfu_get_channel_id(const struct LDKStfu *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId Stfu_get_channel_id(const struct LDKStfu *NONNULL_PTR this_ptr); /* @internal */ -export function Stfu_get_channel_id(this_ptr: bigint): number { +export function Stfu_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_Stfu_get_channel_id(this_ptr); return nativeResponseValue; } - // void Stfu_set_channel_id(struct LDKStfu *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void Stfu_set_channel_id(struct LDKStfu *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function Stfu_set_channel_id(this_ptr: bigint, val: number): void { +export function Stfu_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -34979,9 +39042,9 @@ export function Stfu_set_initiator(this_ptr: bigint, val: number): void { const nativeResponseValue = wasm.TS_Stfu_set_initiator(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKStfu Stfu_new(struct LDKThirtyTwoBytes channel_id_arg, uint8_t initiator_arg); + // MUST_USE_RES struct LDKStfu Stfu_new(struct LDKChannelId channel_id_arg, uint8_t initiator_arg); /* @internal */ -export function Stfu_new(channel_id_arg: number, initiator_arg: number): bigint { +export function Stfu_new(channel_id_arg: bigint, initiator_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35024,18 +39087,18 @@ export function Splice_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_Splice_free(this_obj); // debug statements here } - // const uint8_t (*Splice_get_channel_id(const struct LDKSplice *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId Splice_get_channel_id(const struct LDKSplice *NONNULL_PTR this_ptr); /* @internal */ -export function Splice_get_channel_id(this_ptr: bigint): number { +export function Splice_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_Splice_get_channel_id(this_ptr); return nativeResponseValue; } - // void Splice_set_channel_id(struct LDKSplice *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void Splice_set_channel_id(struct LDKSplice *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function Splice_set_channel_id(this_ptr: bigint, val: number): void { +export function Splice_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35132,9 +39195,9 @@ export function Splice_set_funding_pubkey(this_ptr: bigint, val: number): void { const nativeResponseValue = wasm.TS_Splice_set_funding_pubkey(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKSplice Splice_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes chain_hash_arg, int64_t relative_satoshis_arg, uint32_t funding_feerate_perkw_arg, uint32_t locktime_arg, struct LDKPublicKey funding_pubkey_arg); + // MUST_USE_RES struct LDKSplice Splice_new(struct LDKChannelId channel_id_arg, struct LDKThirtyTwoBytes chain_hash_arg, int64_t relative_satoshis_arg, uint32_t funding_feerate_perkw_arg, uint32_t locktime_arg, struct LDKPublicKey funding_pubkey_arg); /* @internal */ -export function Splice_new(channel_id_arg: number, chain_hash_arg: number, relative_satoshis_arg: bigint, funding_feerate_perkw_arg: number, locktime_arg: number, funding_pubkey_arg: number): bigint { +export function Splice_new(channel_id_arg: bigint, chain_hash_arg: number, relative_satoshis_arg: bigint, funding_feerate_perkw_arg: number, locktime_arg: number, funding_pubkey_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35177,18 +39240,18 @@ export function SpliceAck_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_SpliceAck_free(this_obj); // debug statements here } - // const uint8_t (*SpliceAck_get_channel_id(const struct LDKSpliceAck *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId SpliceAck_get_channel_id(const struct LDKSpliceAck *NONNULL_PTR this_ptr); /* @internal */ -export function SpliceAck_get_channel_id(this_ptr: bigint): number { +export function SpliceAck_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_SpliceAck_get_channel_id(this_ptr); return nativeResponseValue; } - // void SpliceAck_set_channel_id(struct LDKSpliceAck *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void SpliceAck_set_channel_id(struct LDKSpliceAck *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function SpliceAck_set_channel_id(this_ptr: bigint, val: number): void { +export function SpliceAck_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35249,9 +39312,9 @@ export function SpliceAck_set_funding_pubkey(this_ptr: bigint, val: number): voi const nativeResponseValue = wasm.TS_SpliceAck_set_funding_pubkey(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKSpliceAck SpliceAck_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes chain_hash_arg, int64_t relative_satoshis_arg, struct LDKPublicKey funding_pubkey_arg); + // MUST_USE_RES struct LDKSpliceAck SpliceAck_new(struct LDKChannelId channel_id_arg, struct LDKThirtyTwoBytes chain_hash_arg, int64_t relative_satoshis_arg, struct LDKPublicKey funding_pubkey_arg); /* @internal */ -export function SpliceAck_new(channel_id_arg: number, chain_hash_arg: number, relative_satoshis_arg: bigint, funding_pubkey_arg: number): bigint { +export function SpliceAck_new(channel_id_arg: bigint, chain_hash_arg: number, relative_satoshis_arg: bigint, funding_pubkey_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35294,27 +39357,27 @@ export function SpliceLocked_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_SpliceLocked_free(this_obj); // debug statements here } - // const uint8_t (*SpliceLocked_get_channel_id(const struct LDKSpliceLocked *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId SpliceLocked_get_channel_id(const struct LDKSpliceLocked *NONNULL_PTR this_ptr); /* @internal */ -export function SpliceLocked_get_channel_id(this_ptr: bigint): number { +export function SpliceLocked_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_SpliceLocked_get_channel_id(this_ptr); return nativeResponseValue; } - // void SpliceLocked_set_channel_id(struct LDKSpliceLocked *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void SpliceLocked_set_channel_id(struct LDKSpliceLocked *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function SpliceLocked_set_channel_id(this_ptr: bigint, val: number): void { +export function SpliceLocked_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_SpliceLocked_set_channel_id(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKSpliceLocked SpliceLocked_new(struct LDKThirtyTwoBytes channel_id_arg); + // MUST_USE_RES struct LDKSpliceLocked SpliceLocked_new(struct LDKChannelId channel_id_arg); /* @internal */ -export function SpliceLocked_new(channel_id_arg: number): bigint { +export function SpliceLocked_new(channel_id_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35357,18 +39420,18 @@ export function TxAddInput_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_TxAddInput_free(this_obj); // debug statements here } - // const uint8_t (*TxAddInput_get_channel_id(const struct LDKTxAddInput *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId TxAddInput_get_channel_id(const struct LDKTxAddInput *NONNULL_PTR this_ptr); /* @internal */ -export function TxAddInput_get_channel_id(this_ptr: bigint): number { +export function TxAddInput_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_TxAddInput_get_channel_id(this_ptr); return nativeResponseValue; } - // void TxAddInput_set_channel_id(struct LDKTxAddInput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void TxAddInput_set_channel_id(struct LDKTxAddInput *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function TxAddInput_set_channel_id(this_ptr: bigint, val: number): void { +export function TxAddInput_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35447,9 +39510,9 @@ export function TxAddInput_set_sequence(this_ptr: bigint, val: number): void { const nativeResponseValue = wasm.TS_TxAddInput_set_sequence(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKTxAddInput TxAddInput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg, struct LDKTransactionU16LenLimited prevtx_arg, uint32_t prevtx_out_arg, uint32_t sequence_arg); + // MUST_USE_RES struct LDKTxAddInput TxAddInput_new(struct LDKChannelId channel_id_arg, uint64_t serial_id_arg, struct LDKTransactionU16LenLimited prevtx_arg, uint32_t prevtx_out_arg, uint32_t sequence_arg); /* @internal */ -export function TxAddInput_new(channel_id_arg: number, serial_id_arg: bigint, prevtx_arg: bigint, prevtx_out_arg: number, sequence_arg: number): bigint { +export function TxAddInput_new(channel_id_arg: bigint, serial_id_arg: bigint, prevtx_arg: bigint, prevtx_out_arg: number, sequence_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35501,18 +39564,18 @@ export function TxAddOutput_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_TxAddOutput_free(this_obj); // debug statements here } - // const uint8_t (*TxAddOutput_get_channel_id(const struct LDKTxAddOutput *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId TxAddOutput_get_channel_id(const struct LDKTxAddOutput *NONNULL_PTR this_ptr); /* @internal */ -export function TxAddOutput_get_channel_id(this_ptr: bigint): number { +export function TxAddOutput_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_TxAddOutput_get_channel_id(this_ptr); return nativeResponseValue; } - // void TxAddOutput_set_channel_id(struct LDKTxAddOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void TxAddOutput_set_channel_id(struct LDKTxAddOutput *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function TxAddOutput_set_channel_id(this_ptr: bigint, val: number): void { +export function TxAddOutput_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35573,9 +39636,9 @@ export function TxAddOutput_set_script(this_ptr: bigint, val: number): void { const nativeResponseValue = wasm.TS_TxAddOutput_set_script(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKTxAddOutput TxAddOutput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg, uint64_t sats_arg, struct LDKCVec_u8Z script_arg); + // MUST_USE_RES struct LDKTxAddOutput TxAddOutput_new(struct LDKChannelId channel_id_arg, uint64_t serial_id_arg, uint64_t sats_arg, struct LDKCVec_u8Z script_arg); /* @internal */ -export function TxAddOutput_new(channel_id_arg: number, serial_id_arg: bigint, sats_arg: bigint, script_arg: number): bigint { +export function TxAddOutput_new(channel_id_arg: bigint, serial_id_arg: bigint, sats_arg: bigint, script_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35627,18 +39690,18 @@ export function TxRemoveInput_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_TxRemoveInput_free(this_obj); // debug statements here } - // const uint8_t (*TxRemoveInput_get_channel_id(const struct LDKTxRemoveInput *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId TxRemoveInput_get_channel_id(const struct LDKTxRemoveInput *NONNULL_PTR this_ptr); /* @internal */ -export function TxRemoveInput_get_channel_id(this_ptr: bigint): number { +export function TxRemoveInput_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_TxRemoveInput_get_channel_id(this_ptr); return nativeResponseValue; } - // void TxRemoveInput_set_channel_id(struct LDKTxRemoveInput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void TxRemoveInput_set_channel_id(struct LDKTxRemoveInput *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function TxRemoveInput_set_channel_id(this_ptr: bigint, val: number): void { +export function TxRemoveInput_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35663,9 +39726,9 @@ export function TxRemoveInput_set_serial_id(this_ptr: bigint, val: bigint): void const nativeResponseValue = wasm.TS_TxRemoveInput_set_serial_id(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKTxRemoveInput TxRemoveInput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg); + // MUST_USE_RES struct LDKTxRemoveInput TxRemoveInput_new(struct LDKChannelId channel_id_arg, uint64_t serial_id_arg); /* @internal */ -export function TxRemoveInput_new(channel_id_arg: number, serial_id_arg: bigint): bigint { +export function TxRemoveInput_new(channel_id_arg: bigint, serial_id_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35717,18 +39780,18 @@ export function TxRemoveOutput_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_TxRemoveOutput_free(this_obj); // debug statements here } - // const uint8_t (*TxRemoveOutput_get_channel_id(const struct LDKTxRemoveOutput *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId TxRemoveOutput_get_channel_id(const struct LDKTxRemoveOutput *NONNULL_PTR this_ptr); /* @internal */ -export function TxRemoveOutput_get_channel_id(this_ptr: bigint): number { +export function TxRemoveOutput_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_TxRemoveOutput_get_channel_id(this_ptr); return nativeResponseValue; } - // void TxRemoveOutput_set_channel_id(struct LDKTxRemoveOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void TxRemoveOutput_set_channel_id(struct LDKTxRemoveOutput *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function TxRemoveOutput_set_channel_id(this_ptr: bigint, val: number): void { +export function TxRemoveOutput_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35753,9 +39816,9 @@ export function TxRemoveOutput_set_serial_id(this_ptr: bigint, val: bigint): voi const nativeResponseValue = wasm.TS_TxRemoveOutput_set_serial_id(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKTxRemoveOutput TxRemoveOutput_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t serial_id_arg); + // MUST_USE_RES struct LDKTxRemoveOutput TxRemoveOutput_new(struct LDKChannelId channel_id_arg, uint64_t serial_id_arg); /* @internal */ -export function TxRemoveOutput_new(channel_id_arg: number, serial_id_arg: bigint): bigint { +export function TxRemoveOutput_new(channel_id_arg: bigint, serial_id_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35807,27 +39870,27 @@ export function TxComplete_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_TxComplete_free(this_obj); // debug statements here } - // const uint8_t (*TxComplete_get_channel_id(const struct LDKTxComplete *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId TxComplete_get_channel_id(const struct LDKTxComplete *NONNULL_PTR this_ptr); /* @internal */ -export function TxComplete_get_channel_id(this_ptr: bigint): number { +export function TxComplete_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_TxComplete_get_channel_id(this_ptr); return nativeResponseValue; } - // void TxComplete_set_channel_id(struct LDKTxComplete *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void TxComplete_set_channel_id(struct LDKTxComplete *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function TxComplete_set_channel_id(this_ptr: bigint, val: number): void { +export function TxComplete_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_TxComplete_set_channel_id(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKTxComplete TxComplete_new(struct LDKThirtyTwoBytes channel_id_arg); + // MUST_USE_RES struct LDKTxComplete TxComplete_new(struct LDKChannelId channel_id_arg); /* @internal */ -export function TxComplete_new(channel_id_arg: number): bigint { +export function TxComplete_new(channel_id_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35879,18 +39942,18 @@ export function TxSignatures_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_TxSignatures_free(this_obj); // debug statements here } - // const uint8_t (*TxSignatures_get_channel_id(const struct LDKTxSignatures *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId TxSignatures_get_channel_id(const struct LDKTxSignatures *NONNULL_PTR this_ptr); /* @internal */ -export function TxSignatures_get_channel_id(this_ptr: bigint): number { +export function TxSignatures_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_TxSignatures_get_channel_id(this_ptr); return nativeResponseValue; } - // void TxSignatures_set_channel_id(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void TxSignatures_set_channel_id(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function TxSignatures_set_channel_id(this_ptr: bigint, val: number): void { +export function TxSignatures_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -35933,13 +39996,31 @@ export function TxSignatures_set_witnesses(this_ptr: bigint, val: number): void const nativeResponseValue = wasm.TS_TxSignatures_set_witnesses(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKTxSignatures TxSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes tx_hash_arg, struct LDKCVec_WitnessZ witnesses_arg); + // struct LDKCOption_ECDSASignatureZ TxSignatures_get_funding_outpoint_sig(const struct LDKTxSignatures *NONNULL_PTR this_ptr); +/* @internal */ +export function TxSignatures_get_funding_outpoint_sig(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TxSignatures_get_funding_outpoint_sig(this_ptr); + return nativeResponseValue; +} + // void TxSignatures_set_funding_outpoint_sig(struct LDKTxSignatures *NONNULL_PTR this_ptr, struct LDKCOption_ECDSASignatureZ val); +/* @internal */ +export function TxSignatures_set_funding_outpoint_sig(this_ptr: bigint, val: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TxSignatures_set_funding_outpoint_sig(this_ptr, val); + // debug statements here +} + // MUST_USE_RES struct LDKTxSignatures TxSignatures_new(struct LDKChannelId channel_id_arg, struct LDKThirtyTwoBytes tx_hash_arg, struct LDKCVec_WitnessZ witnesses_arg, struct LDKCOption_ECDSASignatureZ funding_outpoint_sig_arg); /* @internal */ -export function TxSignatures_new(channel_id_arg: number, tx_hash_arg: number, witnesses_arg: number): bigint { +export function TxSignatures_new(channel_id_arg: bigint, tx_hash_arg: number, witnesses_arg: number, funding_outpoint_sig_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_TxSignatures_new(channel_id_arg, tx_hash_arg, witnesses_arg); + const nativeResponseValue = wasm.TS_TxSignatures_new(channel_id_arg, tx_hash_arg, witnesses_arg, funding_outpoint_sig_arg); return nativeResponseValue; } // uint64_t TxSignatures_clone_ptr(LDKTxSignatures *NONNULL_PTR arg); @@ -35987,18 +40068,18 @@ export function TxInitRbf_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_TxInitRbf_free(this_obj); // debug statements here } - // const uint8_t (*TxInitRbf_get_channel_id(const struct LDKTxInitRbf *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId TxInitRbf_get_channel_id(const struct LDKTxInitRbf *NONNULL_PTR this_ptr); /* @internal */ -export function TxInitRbf_get_channel_id(this_ptr: bigint): number { +export function TxInitRbf_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_TxInitRbf_get_channel_id(this_ptr); return nativeResponseValue; } - // void TxInitRbf_set_channel_id(struct LDKTxInitRbf *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void TxInitRbf_set_channel_id(struct LDKTxInitRbf *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function TxInitRbf_set_channel_id(this_ptr: bigint, val: number): void { +export function TxInitRbf_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36059,9 +40140,9 @@ export function TxInitRbf_set_funding_output_contribution(this_ptr: bigint, val: const nativeResponseValue = wasm.TS_TxInitRbf_set_funding_output_contribution(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKTxInitRbf TxInitRbf_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t locktime_arg, uint32_t feerate_sat_per_1000_weight_arg, struct LDKCOption_i64Z funding_output_contribution_arg); + // MUST_USE_RES struct LDKTxInitRbf TxInitRbf_new(struct LDKChannelId channel_id_arg, uint32_t locktime_arg, uint32_t feerate_sat_per_1000_weight_arg, struct LDKCOption_i64Z funding_output_contribution_arg); /* @internal */ -export function TxInitRbf_new(channel_id_arg: number, locktime_arg: number, feerate_sat_per_1000_weight_arg: number, funding_output_contribution_arg: bigint): bigint { +export function TxInitRbf_new(channel_id_arg: bigint, locktime_arg: number, feerate_sat_per_1000_weight_arg: number, funding_output_contribution_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36113,18 +40194,18 @@ export function TxAckRbf_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_TxAckRbf_free(this_obj); // debug statements here } - // const uint8_t (*TxAckRbf_get_channel_id(const struct LDKTxAckRbf *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId TxAckRbf_get_channel_id(const struct LDKTxAckRbf *NONNULL_PTR this_ptr); /* @internal */ -export function TxAckRbf_get_channel_id(this_ptr: bigint): number { +export function TxAckRbf_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_TxAckRbf_get_channel_id(this_ptr); return nativeResponseValue; } - // void TxAckRbf_set_channel_id(struct LDKTxAckRbf *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void TxAckRbf_set_channel_id(struct LDKTxAckRbf *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function TxAckRbf_set_channel_id(this_ptr: bigint, val: number): void { +export function TxAckRbf_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36149,9 +40230,9 @@ export function TxAckRbf_set_funding_output_contribution(this_ptr: bigint, val: const nativeResponseValue = wasm.TS_TxAckRbf_set_funding_output_contribution(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKTxAckRbf TxAckRbf_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCOption_i64Z funding_output_contribution_arg); + // MUST_USE_RES struct LDKTxAckRbf TxAckRbf_new(struct LDKChannelId channel_id_arg, struct LDKCOption_i64Z funding_output_contribution_arg); /* @internal */ -export function TxAckRbf_new(channel_id_arg: number, funding_output_contribution_arg: bigint): bigint { +export function TxAckRbf_new(channel_id_arg: bigint, funding_output_contribution_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36203,18 +40284,18 @@ export function TxAbort_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_TxAbort_free(this_obj); // debug statements here } - // const uint8_t (*TxAbort_get_channel_id(const struct LDKTxAbort *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId TxAbort_get_channel_id(const struct LDKTxAbort *NONNULL_PTR this_ptr); /* @internal */ -export function TxAbort_get_channel_id(this_ptr: bigint): number { +export function TxAbort_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_TxAbort_get_channel_id(this_ptr); return nativeResponseValue; } - // void TxAbort_set_channel_id(struct LDKTxAbort *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void TxAbort_set_channel_id(struct LDKTxAbort *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function TxAbort_set_channel_id(this_ptr: bigint, val: number): void { +export function TxAbort_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36239,9 +40320,9 @@ export function TxAbort_set_data(this_ptr: bigint, val: number): void { const nativeResponseValue = wasm.TS_TxAbort_set_data(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKTxAbort TxAbort_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z data_arg); + // MUST_USE_RES struct LDKTxAbort TxAbort_new(struct LDKChannelId channel_id_arg, struct LDKCVec_u8Z data_arg); /* @internal */ -export function TxAbort_new(channel_id_arg: number, data_arg: number): bigint { +export function TxAbort_new(channel_id_arg: bigint, data_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36293,18 +40374,18 @@ export function Shutdown_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_Shutdown_free(this_obj); // debug statements here } - // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr); /* @internal */ -export function Shutdown_get_channel_id(this_ptr: bigint): number { +export function Shutdown_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_Shutdown_get_channel_id(this_ptr); return nativeResponseValue; } - // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function Shutdown_set_channel_id(this_ptr: bigint, val: number): void { +export function Shutdown_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36329,9 +40410,9 @@ export function Shutdown_set_scriptpubkey(this_ptr: bigint, val: number): void { const nativeResponseValue = wasm.TS_Shutdown_set_scriptpubkey(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg); + // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKChannelId channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg); /* @internal */ -export function Shutdown_new(channel_id_arg: number, scriptpubkey_arg: number): bigint { +export function Shutdown_new(channel_id_arg: bigint, scriptpubkey_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36473,18 +40554,18 @@ export function ClosingSigned_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_ClosingSigned_free(this_obj); // debug statements here } - // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr); /* @internal */ -export function ClosingSigned_get_channel_id(this_ptr: bigint): number { +export function ClosingSigned_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_ClosingSigned_get_channel_id(this_ptr); return nativeResponseValue; } - // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function ClosingSigned_set_channel_id(this_ptr: bigint, val: number): void { +export function ClosingSigned_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36545,9 +40626,9 @@ export function ClosingSigned_set_fee_range(this_ptr: bigint, val: bigint): void const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_range(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKECDSASignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg); + // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKChannelId channel_id_arg, uint64_t fee_satoshis_arg, struct LDKECDSASignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg); /* @internal */ -export function ClosingSigned_new(channel_id_arg: number, fee_satoshis_arg: bigint, signature_arg: number, fee_range_arg: bigint): bigint { +export function ClosingSigned_new(channel_id_arg: bigint, fee_satoshis_arg: bigint, signature_arg: number, fee_range_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36599,18 +40680,18 @@ export function UpdateAddHTLC_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_UpdateAddHTLC_free(this_obj); // debug statements here } - // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr); /* @internal */ -export function UpdateAddHTLC_get_channel_id(this_ptr: bigint): number { +export function UpdateAddHTLC_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_channel_id(this_ptr); return nativeResponseValue; } - // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function UpdateAddHTLC_set_channel_id(this_ptr: bigint, val: number): void { +export function UpdateAddHTLC_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36743,9 +40824,9 @@ export function UpdateAddHTLC_set_blinding_point(this_ptr: bigint, val: number): const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_blinding_point(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKUpdateAddHTLC UpdateAddHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, uint64_t amount_msat_arg, struct LDKThirtyTwoBytes payment_hash_arg, uint32_t cltv_expiry_arg, struct LDKCOption_u64Z skimmed_fee_msat_arg, struct LDKOnionPacket onion_routing_packet_arg, struct LDKPublicKey blinding_point_arg); + // MUST_USE_RES struct LDKUpdateAddHTLC UpdateAddHTLC_new(struct LDKChannelId channel_id_arg, uint64_t htlc_id_arg, uint64_t amount_msat_arg, struct LDKThirtyTwoBytes payment_hash_arg, uint32_t cltv_expiry_arg, struct LDKCOption_u64Z skimmed_fee_msat_arg, struct LDKOnionPacket onion_routing_packet_arg, struct LDKPublicKey blinding_point_arg); /* @internal */ -export function UpdateAddHTLC_new(channel_id_arg: number, htlc_id_arg: bigint, amount_msat_arg: bigint, payment_hash_arg: number, cltv_expiry_arg: number, skimmed_fee_msat_arg: bigint, onion_routing_packet_arg: bigint, blinding_point_arg: number): bigint { +export function UpdateAddHTLC_new(channel_id_arg: bigint, htlc_id_arg: bigint, amount_msat_arg: bigint, payment_hash_arg: number, cltv_expiry_arg: number, skimmed_fee_msat_arg: bigint, onion_routing_packet_arg: bigint, blinding_point_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36887,18 +40968,18 @@ export function UpdateFulfillHTLC_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_free(this_obj); // debug statements here } - // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr); /* @internal */ -export function UpdateFulfillHTLC_get_channel_id(this_ptr: bigint): number { +export function UpdateFulfillHTLC_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_channel_id(this_ptr); return nativeResponseValue; } - // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function UpdateFulfillHTLC_set_channel_id(this_ptr: bigint, val: number): void { +export function UpdateFulfillHTLC_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36941,9 +41022,9 @@ export function UpdateFulfillHTLC_set_payment_preimage(this_ptr: bigint, val: nu const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_payment_preimage(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg); + // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKChannelId channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg); /* @internal */ -export function UpdateFulfillHTLC_new(channel_id_arg: number, htlc_id_arg: bigint, payment_preimage_arg: number): bigint { +export function UpdateFulfillHTLC_new(channel_id_arg: bigint, htlc_id_arg: bigint, payment_preimage_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -36995,18 +41076,18 @@ export function UpdateFailHTLC_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_UpdateFailHTLC_free(this_obj); // debug statements here } - // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr); /* @internal */ -export function UpdateFailHTLC_get_channel_id(this_ptr: bigint): number { +export function UpdateFailHTLC_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_channel_id(this_ptr); return nativeResponseValue; } - // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function UpdateFailHTLC_set_channel_id(this_ptr: bigint, val: number): void { +export function UpdateFailHTLC_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -37076,18 +41157,18 @@ export function UpdateFailMalformedHTLC_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_free(this_obj); // debug statements here } - // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr); /* @internal */ -export function UpdateFailMalformedHTLC_get_channel_id(this_ptr: bigint): number { +export function UpdateFailMalformedHTLC_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_channel_id(this_ptr); return nativeResponseValue; } - // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function UpdateFailMalformedHTLC_set_channel_id(this_ptr: bigint, val: number): void { +export function UpdateFailMalformedHTLC_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -37175,18 +41256,18 @@ export function CommitmentSigned_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_CommitmentSigned_free(this_obj); // debug statements here } - // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr); /* @internal */ -export function CommitmentSigned_get_channel_id(this_ptr: bigint): number { +export function CommitmentSigned_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_CommitmentSigned_get_channel_id(this_ptr); return nativeResponseValue; } - // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function CommitmentSigned_set_channel_id(this_ptr: bigint, val: number): void { +export function CommitmentSigned_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -37229,9 +41310,9 @@ export function CommitmentSigned_set_htlc_signatures(this_ptr: bigint, val: numb const nativeResponseValue = wasm.TS_CommitmentSigned_set_htlc_signatures(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKECDSASignature signature_arg, struct LDKCVec_ECDSASignatureZ htlc_signatures_arg); + // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKChannelId channel_id_arg, struct LDKECDSASignature signature_arg, struct LDKCVec_ECDSASignatureZ htlc_signatures_arg); /* @internal */ -export function CommitmentSigned_new(channel_id_arg: number, signature_arg: number, htlc_signatures_arg: number): bigint { +export function CommitmentSigned_new(channel_id_arg: bigint, signature_arg: number, htlc_signatures_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -37283,18 +41364,18 @@ export function RevokeAndACK_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_RevokeAndACK_free(this_obj); // debug statements here } - // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr); /* @internal */ -export function RevokeAndACK_get_channel_id(this_ptr: bigint): number { +export function RevokeAndACK_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_RevokeAndACK_get_channel_id(this_ptr); return nativeResponseValue; } - // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function RevokeAndACK_set_channel_id(this_ptr: bigint, val: number): void { +export function RevokeAndACK_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -37337,9 +41418,9 @@ export function RevokeAndACK_set_next_per_commitment_point(this_ptr: bigint, val const nativeResponseValue = wasm.TS_RevokeAndACK_set_next_per_commitment_point(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKRevokeAndACK RevokeAndACK_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKThirtyTwoBytes per_commitment_secret_arg, struct LDKPublicKey next_per_commitment_point_arg); + // MUST_USE_RES struct LDKRevokeAndACK RevokeAndACK_new(struct LDKChannelId channel_id_arg, struct LDKThirtyTwoBytes per_commitment_secret_arg, struct LDKPublicKey next_per_commitment_point_arg); /* @internal */ -export function RevokeAndACK_new(channel_id_arg: number, per_commitment_secret_arg: number, next_per_commitment_point_arg: number): bigint { +export function RevokeAndACK_new(channel_id_arg: bigint, per_commitment_secret_arg: number, next_per_commitment_point_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -37391,18 +41472,18 @@ export function UpdateFee_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_UpdateFee_free(this_obj); // debug statements here } - // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr); /* @internal */ -export function UpdateFee_get_channel_id(this_ptr: bigint): number { +export function UpdateFee_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_UpdateFee_get_channel_id(this_ptr); return nativeResponseValue; } - // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function UpdateFee_set_channel_id(this_ptr: bigint, val: number): void { +export function UpdateFee_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -37427,9 +41508,9 @@ export function UpdateFee_set_feerate_per_kw(this_ptr: bigint, val: number): voi const nativeResponseValue = wasm.TS_UpdateFee_set_feerate_per_kw(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg); + // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKChannelId channel_id_arg, uint32_t feerate_per_kw_arg); /* @internal */ -export function UpdateFee_new(channel_id_arg: number, feerate_per_kw_arg: number): bigint { +export function UpdateFee_new(channel_id_arg: bigint, feerate_per_kw_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -37481,18 +41562,18 @@ export function ChannelReestablish_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_ChannelReestablish_free(this_obj); // debug statements here } - // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr); /* @internal */ -export function ChannelReestablish_get_channel_id(this_ptr: bigint): number { +export function ChannelReestablish_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_ChannelReestablish_get_channel_id(this_ptr); return nativeResponseValue; } - // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function ChannelReestablish_set_channel_id(this_ptr: bigint, val: number): void { +export function ChannelReestablish_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -37589,9 +41670,9 @@ export function ChannelReestablish_set_next_funding_txid(this_ptr: bigint, val: const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_funding_txid(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKChannelReestablish ChannelReestablish_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t next_local_commitment_number_arg, uint64_t next_remote_commitment_number_arg, struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg, struct LDKCOption_ThirtyTwoBytesZ next_funding_txid_arg); + // MUST_USE_RES struct LDKChannelReestablish ChannelReestablish_new(struct LDKChannelId channel_id_arg, uint64_t next_local_commitment_number_arg, uint64_t next_remote_commitment_number_arg, struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg, struct LDKCOption_ThirtyTwoBytesZ next_funding_txid_arg); /* @internal */ -export function ChannelReestablish_new(channel_id_arg: number, next_local_commitment_number_arg: bigint, next_remote_commitment_number_arg: bigint, your_last_per_commitment_secret_arg: number, my_current_per_commitment_point_arg: number, next_funding_txid_arg: bigint): bigint { +export function ChannelReestablish_new(channel_id_arg: bigint, next_local_commitment_number_arg: bigint, next_remote_commitment_number_arg: bigint, your_last_per_commitment_secret_arg: number, my_current_per_commitment_point_arg: number, next_funding_txid_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -37643,18 +41724,18 @@ export function AnnouncementSignatures_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_AnnouncementSignatures_free(this_obj); // debug statements here } - // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr); /* @internal */ -export function AnnouncementSignatures_get_channel_id(this_ptr: bigint): number { +export function AnnouncementSignatures_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_channel_id(this_ptr); return nativeResponseValue; } - // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function AnnouncementSignatures_set_channel_id(this_ptr: bigint, val: number): void { +export function AnnouncementSignatures_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -37715,9 +41796,9 @@ export function AnnouncementSignatures_set_bitcoin_signature(this_ptr: bigint, v const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_bitcoin_signature(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKECDSASignature node_signature_arg, struct LDKECDSASignature bitcoin_signature_arg); + // MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKChannelId channel_id_arg, uint64_t short_channel_id_arg, struct LDKECDSASignature node_signature_arg, struct LDKECDSASignature bitcoin_signature_arg); /* @internal */ -export function AnnouncementSignatures_new(channel_id_arg: number, short_channel_id_arg: bigint, node_signature_arg: number, bitcoin_signature_arg: number): bigint { +export function AnnouncementSignatures_new(channel_id_arg: bigint, short_channel_id_arg: bigint, node_signature_arg: number, bitcoin_signature_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -37930,6 +42011,15 @@ export function SocketAddressParseError_eq(a: bigint, b: bigint): boolean { } const nativeResponseValue = wasm.TS_SocketAddressParseError_eq(a, b); return nativeResponseValue; +} + // struct LDKStr SocketAddressParseError_to_str(const enum LDKSocketAddressParseError *NONNULL_PTR o); +/* @internal */ +export function SocketAddressParseError_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SocketAddressParseError_to_str(o); + return nativeResponseValue; } // struct LDKCResult_SocketAddressSocketAddressParseErrorZ parse_onion_address(struct LDKStr host, uint16_t port); /* @internal */ @@ -38128,6 +42218,51 @@ export function UnsignedNodeAnnouncement_set_addresses(this_ptr: bigint, val: nu } const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_addresses(this_ptr, val); // debug statements here +} + // struct LDKCVec_u8Z UnsignedNodeAnnouncement_get_excess_address_data(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr); +/* @internal */ +export function UnsignedNodeAnnouncement_get_excess_address_data(this_ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_excess_address_data(this_ptr); + return nativeResponseValue; +} + // void UnsignedNodeAnnouncement_set_excess_address_data(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); +/* @internal */ +export function UnsignedNodeAnnouncement_set_excess_address_data(this_ptr: bigint, val: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_excess_address_data(this_ptr, val); + // debug statements here +} + // struct LDKCVec_u8Z UnsignedNodeAnnouncement_get_excess_data(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr); +/* @internal */ +export function UnsignedNodeAnnouncement_get_excess_data(this_ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_excess_data(this_ptr); + return nativeResponseValue; +} + // void UnsignedNodeAnnouncement_set_excess_data(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); +/* @internal */ +export function UnsignedNodeAnnouncement_set_excess_data(this_ptr: bigint, val: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_excess_data(this_ptr, val); + // debug statements here +} + // MUST_USE_RES struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_new(struct LDKNodeFeatures features_arg, uint32_t timestamp_arg, struct LDKNodeId node_id_arg, struct LDKThreeBytes rgb_arg, struct LDKNodeAlias alias_arg, struct LDKCVec_SocketAddressZ addresses_arg, struct LDKCVec_u8Z excess_address_data_arg, struct LDKCVec_u8Z excess_data_arg); +/* @internal */ +export function UnsignedNodeAnnouncement_new(features_arg: bigint, timestamp_arg: number, node_id_arg: bigint, rgb_arg: number, alias_arg: bigint, addresses_arg: number, excess_address_data_arg: number, excess_data_arg: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_new(features_arg, timestamp_arg, node_id_arg, rgb_arg, alias_arg, addresses_arg, excess_address_data_arg, excess_data_arg); + return nativeResponseValue; } // uint64_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg); /* @internal */ @@ -39991,6 +44126,150 @@ export function OnionPacket_eq(a: bigint, b: bigint): boolean { } const nativeResponseValue = wasm.TS_OnionPacket_eq(a, b); return nativeResponseValue; +} + // void TrampolineOnionPacket_free(struct LDKTrampolineOnionPacket this_obj); +/* @internal */ +export function TrampolineOnionPacket_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_free(this_obj); + // debug statements here +} + // uint8_t TrampolineOnionPacket_get_version(const struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr); +/* @internal */ +export function TrampolineOnionPacket_get_version(this_ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_get_version(this_ptr); + return nativeResponseValue; +} + // void TrampolineOnionPacket_set_version(struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr, uint8_t val); +/* @internal */ +export function TrampolineOnionPacket_set_version(this_ptr: bigint, val: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_set_version(this_ptr, val); + // debug statements here +} + // struct LDKPublicKey TrampolineOnionPacket_get_public_key(const struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr); +/* @internal */ +export function TrampolineOnionPacket_get_public_key(this_ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_get_public_key(this_ptr); + return nativeResponseValue; +} + // void TrampolineOnionPacket_set_public_key(struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr, struct LDKPublicKey val); +/* @internal */ +export function TrampolineOnionPacket_set_public_key(this_ptr: bigint, val: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_set_public_key(this_ptr, val); + // debug statements here +} + // struct LDKCVec_u8Z TrampolineOnionPacket_get_hop_data(const struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr); +/* @internal */ +export function TrampolineOnionPacket_get_hop_data(this_ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_get_hop_data(this_ptr); + return nativeResponseValue; +} + // void TrampolineOnionPacket_set_hop_data(struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val); +/* @internal */ +export function TrampolineOnionPacket_set_hop_data(this_ptr: bigint, val: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_set_hop_data(this_ptr, val); + // debug statements here +} + // const uint8_t (*TrampolineOnionPacket_get_hmac(const struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr))[32]; +/* @internal */ +export function TrampolineOnionPacket_get_hmac(this_ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_get_hmac(this_ptr); + return nativeResponseValue; +} + // void TrampolineOnionPacket_set_hmac(struct LDKTrampolineOnionPacket *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); +/* @internal */ +export function TrampolineOnionPacket_set_hmac(this_ptr: bigint, val: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_set_hmac(this_ptr, val); + // debug statements here +} + // MUST_USE_RES struct LDKTrampolineOnionPacket TrampolineOnionPacket_new(uint8_t version_arg, struct LDKPublicKey public_key_arg, struct LDKCVec_u8Z hop_data_arg, struct LDKThirtyTwoBytes hmac_arg); +/* @internal */ +export function TrampolineOnionPacket_new(version_arg: number, public_key_arg: number, hop_data_arg: number, hmac_arg: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_new(version_arg, public_key_arg, hop_data_arg, hmac_arg); + return nativeResponseValue; +} + // uint64_t TrampolineOnionPacket_clone_ptr(LDKTrampolineOnionPacket *NONNULL_PTR arg); +/* @internal */ +export function TrampolineOnionPacket_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKTrampolineOnionPacket TrampolineOnionPacket_clone(const struct LDKTrampolineOnionPacket *NONNULL_PTR orig); +/* @internal */ +export function TrampolineOnionPacket_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_clone(orig); + return nativeResponseValue; +} + // uint64_t TrampolineOnionPacket_hash(const struct LDKTrampolineOnionPacket *NONNULL_PTR o); +/* @internal */ +export function TrampolineOnionPacket_hash(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_hash(o); + return nativeResponseValue; +} + // bool TrampolineOnionPacket_eq(const struct LDKTrampolineOnionPacket *NONNULL_PTR a, const struct LDKTrampolineOnionPacket *NONNULL_PTR b); +/* @internal */ +export function TrampolineOnionPacket_eq(a: bigint, b: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_eq(a, b); + return nativeResponseValue; +} + // struct LDKCVec_u8Z TrampolineOnionPacket_write(const struct LDKTrampolineOnionPacket *NONNULL_PTR obj); +/* @internal */ +export function TrampolineOnionPacket_write(obj: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_TrampolineOnionPacket_write(obj); + return nativeResponseValue; +} + // struct LDKStr DecodeError_to_str(const struct LDKDecodeError *NONNULL_PTR o); +/* @internal */ +export function DecodeError_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_DecodeError_to_str(o); + return nativeResponseValue; } // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj); /* @internal */ @@ -41170,6 +45449,96 @@ export function SocketDescriptor_free(this_ptr: bigint): void { } const nativeResponseValue = wasm.TS_SocketDescriptor_free(this_ptr); // debug statements here +} + // void PeerDetails_free(struct LDKPeerDetails this_obj); +/* @internal */ +export function PeerDetails_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PeerDetails_free(this_obj); + // debug statements here +} + // struct LDKPublicKey PeerDetails_get_counterparty_node_id(const struct LDKPeerDetails *NONNULL_PTR this_ptr); +/* @internal */ +export function PeerDetails_get_counterparty_node_id(this_ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PeerDetails_get_counterparty_node_id(this_ptr); + return nativeResponseValue; +} + // void PeerDetails_set_counterparty_node_id(struct LDKPeerDetails *NONNULL_PTR this_ptr, struct LDKPublicKey val); +/* @internal */ +export function PeerDetails_set_counterparty_node_id(this_ptr: bigint, val: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PeerDetails_set_counterparty_node_id(this_ptr, val); + // debug statements here +} + // struct LDKCOption_SocketAddressZ PeerDetails_get_socket_address(const struct LDKPeerDetails *NONNULL_PTR this_ptr); +/* @internal */ +export function PeerDetails_get_socket_address(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PeerDetails_get_socket_address(this_ptr); + return nativeResponseValue; +} + // void PeerDetails_set_socket_address(struct LDKPeerDetails *NONNULL_PTR this_ptr, struct LDKCOption_SocketAddressZ val); +/* @internal */ +export function PeerDetails_set_socket_address(this_ptr: bigint, val: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PeerDetails_set_socket_address(this_ptr, val); + // debug statements here +} + // struct LDKInitFeatures PeerDetails_get_init_features(const struct LDKPeerDetails *NONNULL_PTR this_ptr); +/* @internal */ +export function PeerDetails_get_init_features(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PeerDetails_get_init_features(this_ptr); + return nativeResponseValue; +} + // void PeerDetails_set_init_features(struct LDKPeerDetails *NONNULL_PTR this_ptr, struct LDKInitFeatures val); +/* @internal */ +export function PeerDetails_set_init_features(this_ptr: bigint, val: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PeerDetails_set_init_features(this_ptr, val); + // debug statements here +} + // bool PeerDetails_get_is_inbound_connection(const struct LDKPeerDetails *NONNULL_PTR this_ptr); +/* @internal */ +export function PeerDetails_get_is_inbound_connection(this_ptr: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PeerDetails_get_is_inbound_connection(this_ptr); + return nativeResponseValue; +} + // void PeerDetails_set_is_inbound_connection(struct LDKPeerDetails *NONNULL_PTR this_ptr, bool val); +/* @internal */ +export function PeerDetails_set_is_inbound_connection(this_ptr: bigint, val: boolean): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PeerDetails_set_is_inbound_connection(this_ptr, val); + // debug statements here +} + // MUST_USE_RES struct LDKPeerDetails PeerDetails_new(struct LDKPublicKey counterparty_node_id_arg, struct LDKCOption_SocketAddressZ socket_address_arg, struct LDKInitFeatures init_features_arg, bool is_inbound_connection_arg); +/* @internal */ +export function PeerDetails_new(counterparty_node_id_arg: number, socket_address_arg: bigint, init_features_arg: bigint, is_inbound_connection_arg: boolean): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PeerDetails_new(counterparty_node_id_arg, socket_address_arg, init_features_arg, is_inbound_connection_arg); + return nativeResponseValue; } // void PeerHandleError_free(struct LDKPeerHandleError this_obj); /* @internal */ @@ -41206,6 +45575,15 @@ export function PeerHandleError_clone(orig: bigint): bigint { } const nativeResponseValue = wasm.TS_PeerHandleError_clone(orig); return nativeResponseValue; +} + // struct LDKStr PeerHandleError_to_str(const struct LDKPeerHandleError *NONNULL_PTR o); +/* @internal */ +export function PeerHandleError_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PeerHandleError_to_str(o); + return nativeResponseValue; } // void PeerManager_free(struct LDKPeerManager this_obj); /* @internal */ @@ -41225,13 +45603,22 @@ export function PeerManager_new(message_handler: bigint, current_time: number, e const nativeResponseValue = wasm.TS_PeerManager_new(message_handler, current_time, ephemeral_random_data, logger, node_signer); return nativeResponseValue; } - // MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_SocketAddressZZZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCVec_PeerDetailsZ PeerManager_list_peers(const struct LDKPeerManager *NONNULL_PTR this_arg); /* @internal */ -export function PeerManager_get_peer_node_ids(this_arg: bigint): number { +export function PeerManager_list_peers(this_arg: bigint): number { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PeerManager_get_peer_node_ids(this_arg); + const nativeResponseValue = wasm.TS_PeerManager_list_peers(this_arg); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKPeerDetails PeerManager_peer_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id); +/* @internal */ +export function PeerManager_peer_by_node_id(this_arg: bigint, their_node_id: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PeerManager_peer_by_node_id(this_arg, their_node_id); return nativeResponseValue; } // MUST_USE_RES struct LDKCResult_CVec_u8ZPeerHandleErrorZ PeerManager_new_outbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKSocketDescriptor descriptor, struct LDKCOption_SocketAddressZ remote_network_address); @@ -45796,6 +50183,114 @@ export function NodeFeatures_requires_keysend(this_arg: bigint): boolean { } const nativeResponseValue = wasm.TS_NodeFeatures_requires_keysend(this_arg); return nativeResponseValue; +} + // void InitFeatures_set_trampoline_routing_optional(struct LDKInitFeatures *NONNULL_PTR this_arg); +/* @internal */ +export function InitFeatures_set_trampoline_routing_optional(this_arg: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InitFeatures_set_trampoline_routing_optional(this_arg); + // debug statements here +} + // void InitFeatures_set_trampoline_routing_required(struct LDKInitFeatures *NONNULL_PTR this_arg); +/* @internal */ +export function InitFeatures_set_trampoline_routing_required(this_arg: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InitFeatures_set_trampoline_routing_required(this_arg); + // debug statements here +} + // MUST_USE_RES bool InitFeatures_supports_trampoline_routing(const struct LDKInitFeatures *NONNULL_PTR this_arg); +/* @internal */ +export function InitFeatures_supports_trampoline_routing(this_arg: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InitFeatures_supports_trampoline_routing(this_arg); + return nativeResponseValue; +} + // void NodeFeatures_set_trampoline_routing_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg); +/* @internal */ +export function NodeFeatures_set_trampoline_routing_optional(this_arg: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NodeFeatures_set_trampoline_routing_optional(this_arg); + // debug statements here +} + // void NodeFeatures_set_trampoline_routing_required(struct LDKNodeFeatures *NONNULL_PTR this_arg); +/* @internal */ +export function NodeFeatures_set_trampoline_routing_required(this_arg: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NodeFeatures_set_trampoline_routing_required(this_arg); + // debug statements here +} + // MUST_USE_RES bool NodeFeatures_supports_trampoline_routing(const struct LDKNodeFeatures *NONNULL_PTR this_arg); +/* @internal */ +export function NodeFeatures_supports_trampoline_routing(this_arg: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NodeFeatures_supports_trampoline_routing(this_arg); + return nativeResponseValue; +} + // void Bolt11InvoiceFeatures_set_trampoline_routing_optional(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); +/* @internal */ +export function Bolt11InvoiceFeatures_set_trampoline_routing_optional(this_arg: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt11InvoiceFeatures_set_trampoline_routing_optional(this_arg); + // debug statements here +} + // void Bolt11InvoiceFeatures_set_trampoline_routing_required(struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); +/* @internal */ +export function Bolt11InvoiceFeatures_set_trampoline_routing_required(this_arg: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt11InvoiceFeatures_set_trampoline_routing_required(this_arg); + // debug statements here +} + // MUST_USE_RES bool Bolt11InvoiceFeatures_supports_trampoline_routing(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); +/* @internal */ +export function Bolt11InvoiceFeatures_supports_trampoline_routing(this_arg: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt11InvoiceFeatures_supports_trampoline_routing(this_arg); + return nativeResponseValue; +} + // MUST_USE_RES bool InitFeatures_requires_trampoline_routing(const struct LDKInitFeatures *NONNULL_PTR this_arg); +/* @internal */ +export function InitFeatures_requires_trampoline_routing(this_arg: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InitFeatures_requires_trampoline_routing(this_arg); + return nativeResponseValue; +} + // MUST_USE_RES bool NodeFeatures_requires_trampoline_routing(const struct LDKNodeFeatures *NONNULL_PTR this_arg); +/* @internal */ +export function NodeFeatures_requires_trampoline_routing(this_arg: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NodeFeatures_requires_trampoline_routing(this_arg); + return nativeResponseValue; +} + // MUST_USE_RES bool Bolt11InvoiceFeatures_requires_trampoline_routing(const struct LDKBolt11InvoiceFeatures *NONNULL_PTR this_arg); +/* @internal */ +export function Bolt11InvoiceFeatures_requires_trampoline_routing(this_arg: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt11InvoiceFeatures_requires_trampoline_routing(this_arg); + return nativeResponseValue; } // void ShutdownScript_free(struct LDKShutdownScript this_obj); /* @internal */ @@ -45958,6 +50453,186 @@ export function ShutdownScript_is_compatible(this_arg: bigint, features: bigint) } const nativeResponseValue = wasm.TS_ShutdownScript_is_compatible(this_arg, features); return nativeResponseValue; +} + // struct LDKStr ShutdownScript_to_str(const struct LDKShutdownScript *NONNULL_PTR o); +/* @internal */ +export function ShutdownScript_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ShutdownScript_to_str(o); + return nativeResponseValue; +} + // void ChannelId_free(struct LDKChannelId this_obj); +/* @internal */ +export function ChannelId_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_free(this_obj); + // debug statements here +} + // const uint8_t (*ChannelId_get_a(const struct LDKChannelId *NONNULL_PTR this_ptr))[32]; +/* @internal */ +export function ChannelId_get_a(this_ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_get_a(this_ptr); + return nativeResponseValue; +} + // void ChannelId_set_a(struct LDKChannelId *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); +/* @internal */ +export function ChannelId_set_a(this_ptr: bigint, val: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_set_a(this_ptr, val); + // debug statements here +} + // MUST_USE_RES struct LDKChannelId ChannelId_new(struct LDKThirtyTwoBytes a_arg); +/* @internal */ +export function ChannelId_new(a_arg: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_new(a_arg); + return nativeResponseValue; +} + // uint64_t ChannelId_clone_ptr(LDKChannelId *NONNULL_PTR arg); +/* @internal */ +export function ChannelId_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKChannelId ChannelId_clone(const struct LDKChannelId *NONNULL_PTR orig); +/* @internal */ +export function ChannelId_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_clone(orig); + return nativeResponseValue; +} + // bool ChannelId_eq(const struct LDKChannelId *NONNULL_PTR a, const struct LDKChannelId *NONNULL_PTR b); +/* @internal */ +export function ChannelId_eq(a: bigint, b: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_eq(a, b); + return nativeResponseValue; +} + // uint64_t ChannelId_hash(const struct LDKChannelId *NONNULL_PTR o); +/* @internal */ +export function ChannelId_hash(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_hash(o); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKChannelId ChannelId_v1_from_funding_txid(const uint8_t (*txid)[32], uint16_t output_index); +/* @internal */ +export function ChannelId_v1_from_funding_txid(txid: number, output_index: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_v1_from_funding_txid(txid, output_index); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKChannelId ChannelId_v1_from_funding_outpoint(struct LDKOutPoint outpoint); +/* @internal */ +export function ChannelId_v1_from_funding_outpoint(outpoint: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_v1_from_funding_outpoint(outpoint); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKChannelId ChannelId_temporary_from_entropy_source(const struct LDKEntropySource *NONNULL_PTR entropy_source); +/* @internal */ +export function ChannelId_temporary_from_entropy_source(entropy_source: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_temporary_from_entropy_source(entropy_source); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKChannelId ChannelId_from_bytes(struct LDKThirtyTwoBytes data); +/* @internal */ +export function ChannelId_from_bytes(data: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_from_bytes(data); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKChannelId ChannelId_new_zero(void); +/* @internal */ +export function ChannelId_new_zero(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_new_zero(); + return nativeResponseValue; +} + // MUST_USE_RES bool ChannelId_is_zero(const struct LDKChannelId *NONNULL_PTR this_arg); +/* @internal */ +export function ChannelId_is_zero(this_arg: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_is_zero(this_arg); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKChannelId ChannelId_v2_from_revocation_basepoints(const struct LDKRevocationBasepoint *NONNULL_PTR ours, const struct LDKRevocationBasepoint *NONNULL_PTR theirs); +/* @internal */ +export function ChannelId_v2_from_revocation_basepoints(ours: bigint, theirs: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_v2_from_revocation_basepoints(ours, theirs); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKChannelId ChannelId_temporary_v2_from_revocation_basepoint(const struct LDKRevocationBasepoint *NONNULL_PTR our_revocation_basepoint); +/* @internal */ +export function ChannelId_temporary_v2_from_revocation_basepoint(our_revocation_basepoint: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_temporary_v2_from_revocation_basepoint(our_revocation_basepoint); + return nativeResponseValue; +} + // struct LDKCVec_u8Z ChannelId_write(const struct LDKChannelId *NONNULL_PTR obj); +/* @internal */ +export function ChannelId_write(obj: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_write(obj); + return nativeResponseValue; +} + // struct LDKCResult_ChannelIdDecodeErrorZ ChannelId_read(struct LDKu8slice ser); +/* @internal */ +export function ChannelId_read(ser: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_read(ser); + return nativeResponseValue; +} + // struct LDKStr ChannelId_to_str(const struct LDKChannelId *NONNULL_PTR o); +/* @internal */ +export function ChannelId_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelId_to_str(o); + return nativeResponseValue; } // void Retry_free(struct LDKRetry this_ptr); /* @internal */ @@ -46372,6 +51047,312 @@ export function Type_free(this_ptr: bigint): void { } const nativeResponseValue = wasm.TS_Type_free(this_ptr); // debug statements here +} + // void OfferId_free(struct LDKOfferId this_obj); +/* @internal */ +export function OfferId_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferId_free(this_obj); + // debug statements here +} + // const uint8_t (*OfferId_get_a(const struct LDKOfferId *NONNULL_PTR this_ptr))[32]; +/* @internal */ +export function OfferId_get_a(this_ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferId_get_a(this_ptr); + return nativeResponseValue; +} + // void OfferId_set_a(struct LDKOfferId *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); +/* @internal */ +export function OfferId_set_a(this_ptr: bigint, val: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferId_set_a(this_ptr, val); + // debug statements here +} + // MUST_USE_RES struct LDKOfferId OfferId_new(struct LDKThirtyTwoBytes a_arg); +/* @internal */ +export function OfferId_new(a_arg: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferId_new(a_arg); + return nativeResponseValue; +} + // uint64_t OfferId_clone_ptr(LDKOfferId *NONNULL_PTR arg); +/* @internal */ +export function OfferId_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferId_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKOfferId OfferId_clone(const struct LDKOfferId *NONNULL_PTR orig); +/* @internal */ +export function OfferId_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferId_clone(orig); + return nativeResponseValue; +} + // bool OfferId_eq(const struct LDKOfferId *NONNULL_PTR a, const struct LDKOfferId *NONNULL_PTR b); +/* @internal */ +export function OfferId_eq(a: bigint, b: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferId_eq(a, b); + return nativeResponseValue; +} + // struct LDKCVec_u8Z OfferId_write(const struct LDKOfferId *NONNULL_PTR obj); +/* @internal */ +export function OfferId_write(obj: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferId_write(obj); + return nativeResponseValue; +} + // struct LDKCResult_OfferIdDecodeErrorZ OfferId_read(struct LDKu8slice ser); +/* @internal */ +export function OfferId_read(ser: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferId_read(ser); + return nativeResponseValue; +} + // void OfferWithExplicitMetadataBuilder_free(struct LDKOfferWithExplicitMetadataBuilder this_obj); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_free(this_obj); + // debug statements here +} + // uint64_t OfferWithExplicitMetadataBuilder_clone_ptr(LDKOfferWithExplicitMetadataBuilder *NONNULL_PTR arg); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKOfferWithExplicitMetadataBuilder OfferWithExplicitMetadataBuilder_clone(const struct LDKOfferWithExplicitMetadataBuilder *NONNULL_PTR orig); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_clone(orig); + return nativeResponseValue; +} + // void OfferWithDerivedMetadataBuilder_free(struct LDKOfferWithDerivedMetadataBuilder this_obj); +/* @internal */ +export function OfferWithDerivedMetadataBuilder_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithDerivedMetadataBuilder_free(this_obj); + // debug statements here +} + // uint64_t OfferWithDerivedMetadataBuilder_clone_ptr(LDKOfferWithDerivedMetadataBuilder *NONNULL_PTR arg); +/* @internal */ +export function OfferWithDerivedMetadataBuilder_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithDerivedMetadataBuilder_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKOfferWithDerivedMetadataBuilder OfferWithDerivedMetadataBuilder_clone(const struct LDKOfferWithDerivedMetadataBuilder *NONNULL_PTR orig); +/* @internal */ +export function OfferWithDerivedMetadataBuilder_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithDerivedMetadataBuilder_clone(orig); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKOfferWithExplicitMetadataBuilder OfferWithExplicitMetadataBuilder_new(struct LDKPublicKey signing_pubkey); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_new(signing_pubkey: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_new(signing_pubkey); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ OfferWithExplicitMetadataBuilder_metadata(struct LDKOfferWithExplicitMetadataBuilder this_arg, struct LDKCVec_u8Z metadata); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_metadata(this_arg: bigint, metadata: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_metadata(this_arg, metadata); + return nativeResponseValue; +} + // MUST_USE_RES void OfferWithExplicitMetadataBuilder_chain(struct LDKOfferWithExplicitMetadataBuilder this_arg, enum LDKNetwork network); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_chain(this_arg: bigint, network: Network): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_chain(this_arg, network); + // debug statements here +} + // MUST_USE_RES void OfferWithExplicitMetadataBuilder_amount_msats(struct LDKOfferWithExplicitMetadataBuilder this_arg, uint64_t amount_msats); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_amount_msats(this_arg: bigint, amount_msats: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_amount_msats(this_arg, amount_msats); + // debug statements here +} + // MUST_USE_RES void OfferWithExplicitMetadataBuilder_absolute_expiry(struct LDKOfferWithExplicitMetadataBuilder this_arg, uint64_t absolute_expiry); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_absolute_expiry(this_arg: bigint, absolute_expiry: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_absolute_expiry(this_arg, absolute_expiry); + // debug statements here +} + // MUST_USE_RES void OfferWithExplicitMetadataBuilder_description(struct LDKOfferWithExplicitMetadataBuilder this_arg, struct LDKStr description); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_description(this_arg: bigint, description: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_description(this_arg, description); + // debug statements here +} + // MUST_USE_RES void OfferWithExplicitMetadataBuilder_issuer(struct LDKOfferWithExplicitMetadataBuilder this_arg, struct LDKStr issuer); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_issuer(this_arg: bigint, issuer: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_issuer(this_arg, issuer); + // debug statements here +} + // MUST_USE_RES void OfferWithExplicitMetadataBuilder_path(struct LDKOfferWithExplicitMetadataBuilder this_arg, struct LDKBlindedPath path); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_path(this_arg: bigint, path: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_path(this_arg, path); + // debug statements here +} + // MUST_USE_RES void OfferWithExplicitMetadataBuilder_supported_quantity(struct LDKOfferWithExplicitMetadataBuilder this_arg, struct LDKQuantity quantity); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_supported_quantity(this_arg: bigint, quantity: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_supported_quantity(this_arg, quantity); + // debug statements here +} + // MUST_USE_RES struct LDKCResult_OfferBolt12SemanticErrorZ OfferWithExplicitMetadataBuilder_build(struct LDKOfferWithExplicitMetadataBuilder this_arg); +/* @internal */ +export function OfferWithExplicitMetadataBuilder_build(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithExplicitMetadataBuilder_build(this_arg); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKOfferWithDerivedMetadataBuilder OfferWithDerivedMetadataBuilder_deriving_signing_pubkey(struct LDKPublicKey node_id, const struct LDKExpandedKey *NONNULL_PTR expanded_key, struct LDKEntropySource entropy_source); +/* @internal */ +export function OfferWithDerivedMetadataBuilder_deriving_signing_pubkey(node_id: number, expanded_key: bigint, entropy_source: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithDerivedMetadataBuilder_deriving_signing_pubkey(node_id, expanded_key, entropy_source); + return nativeResponseValue; +} + // MUST_USE_RES void OfferWithDerivedMetadataBuilder_chain(struct LDKOfferWithDerivedMetadataBuilder this_arg, enum LDKNetwork network); +/* @internal */ +export function OfferWithDerivedMetadataBuilder_chain(this_arg: bigint, network: Network): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithDerivedMetadataBuilder_chain(this_arg, network); + // debug statements here +} + // MUST_USE_RES void OfferWithDerivedMetadataBuilder_amount_msats(struct LDKOfferWithDerivedMetadataBuilder this_arg, uint64_t amount_msats); +/* @internal */ +export function OfferWithDerivedMetadataBuilder_amount_msats(this_arg: bigint, amount_msats: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithDerivedMetadataBuilder_amount_msats(this_arg, amount_msats); + // debug statements here +} + // MUST_USE_RES void OfferWithDerivedMetadataBuilder_absolute_expiry(struct LDKOfferWithDerivedMetadataBuilder this_arg, uint64_t absolute_expiry); +/* @internal */ +export function OfferWithDerivedMetadataBuilder_absolute_expiry(this_arg: bigint, absolute_expiry: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithDerivedMetadataBuilder_absolute_expiry(this_arg, absolute_expiry); + // debug statements here +} + // MUST_USE_RES void OfferWithDerivedMetadataBuilder_description(struct LDKOfferWithDerivedMetadataBuilder this_arg, struct LDKStr description); +/* @internal */ +export function OfferWithDerivedMetadataBuilder_description(this_arg: bigint, description: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithDerivedMetadataBuilder_description(this_arg, description); + // debug statements here +} + // MUST_USE_RES void OfferWithDerivedMetadataBuilder_issuer(struct LDKOfferWithDerivedMetadataBuilder this_arg, struct LDKStr issuer); +/* @internal */ +export function OfferWithDerivedMetadataBuilder_issuer(this_arg: bigint, issuer: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithDerivedMetadataBuilder_issuer(this_arg, issuer); + // debug statements here +} + // MUST_USE_RES void OfferWithDerivedMetadataBuilder_path(struct LDKOfferWithDerivedMetadataBuilder this_arg, struct LDKBlindedPath path); +/* @internal */ +export function OfferWithDerivedMetadataBuilder_path(this_arg: bigint, path: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithDerivedMetadataBuilder_path(this_arg, path); + // debug statements here +} + // MUST_USE_RES void OfferWithDerivedMetadataBuilder_supported_quantity(struct LDKOfferWithDerivedMetadataBuilder this_arg, struct LDKQuantity quantity); +/* @internal */ +export function OfferWithDerivedMetadataBuilder_supported_quantity(this_arg: bigint, quantity: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithDerivedMetadataBuilder_supported_quantity(this_arg, quantity); + // debug statements here +} + // MUST_USE_RES struct LDKCResult_OfferBolt12SemanticErrorZ OfferWithDerivedMetadataBuilder_build(struct LDKOfferWithDerivedMetadataBuilder this_arg); +/* @internal */ +export function OfferWithDerivedMetadataBuilder_build(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OfferWithDerivedMetadataBuilder_build(this_arg); + return nativeResponseValue; } // void Offer_free(struct LDKOffer this_obj); /* @internal */ @@ -46418,7 +51399,7 @@ export function Offer_metadata(this_arg: bigint): bigint { const nativeResponseValue = wasm.TS_Offer_metadata(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKAmount Offer_amount(const struct LDKOffer *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCOption_AmountZ Offer_amount(const struct LDKOffer *NONNULL_PTR this_arg); /* @internal */ export function Offer_amount(this_arg: bigint): bigint { if(!isWasmInitialized) { @@ -46489,6 +51470,15 @@ export function Offer_signing_pubkey(this_arg: bigint): number { } const nativeResponseValue = wasm.TS_Offer_signing_pubkey(this_arg); return nativeResponseValue; +} + // MUST_USE_RES struct LDKOfferId Offer_id(const struct LDKOffer *NONNULL_PTR this_arg); +/* @internal */ +export function Offer_id(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Offer_id(this_arg); + return nativeResponseValue; } // MUST_USE_RES bool Offer_supports_chain(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes chain); /* @internal */ @@ -46525,6 +51515,42 @@ export function Offer_expects_quantity(this_arg: bigint): boolean { } const nativeResponseValue = wasm.TS_Offer_expects_quantity(this_arg); return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_InvoiceRequestWithDerivedPayerIdBuilderBolt12SemanticErrorZ Offer_request_invoice_deriving_payer_id(const struct LDKOffer *NONNULL_PTR this_arg, const struct LDKExpandedKey *NONNULL_PTR expanded_key, struct LDKEntropySource entropy_source, struct LDKThirtyTwoBytes payment_id); +/* @internal */ +export function Offer_request_invoice_deriving_payer_id(this_arg: bigint, expanded_key: bigint, entropy_source: bigint, payment_id: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Offer_request_invoice_deriving_payer_id(this_arg, expanded_key, entropy_source, payment_id); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ Offer_request_invoice_deriving_metadata(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKPublicKey payer_id, const struct LDKExpandedKey *NONNULL_PTR expanded_key, struct LDKEntropySource entropy_source, struct LDKThirtyTwoBytes payment_id); +/* @internal */ +export function Offer_request_invoice_deriving_metadata(this_arg: bigint, payer_id: number, expanded_key: bigint, entropy_source: bigint, payment_id: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Offer_request_invoice_deriving_metadata(this_arg, payer_id, expanded_key, entropy_source, payment_id); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_InvoiceRequestWithExplicitPayerIdBuilderBolt12SemanticErrorZ Offer_request_invoice(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKCVec_u8Z metadata, struct LDKPublicKey payer_id); +/* @internal */ +export function Offer_request_invoice(this_arg: bigint, metadata: number, payer_id: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Offer_request_invoice(this_arg, metadata, payer_id); + return nativeResponseValue; +} + // uint64_t Offer_hash(const struct LDKOffer *NONNULL_PTR o); +/* @internal */ +export function Offer_hash(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Offer_hash(o); + return nativeResponseValue; } // struct LDKCVec_u8Z Offer_write(const struct LDKOffer *NONNULL_PTR obj); /* @internal */ @@ -46535,13 +51561,13 @@ export function Offer_write(obj: bigint): number { const nativeResponseValue = wasm.TS_Offer_write(obj); return nativeResponseValue; } - // void Amount_free(struct LDKAmount this_obj); + // void Amount_free(struct LDKAmount this_ptr); /* @internal */ -export function Amount_free(this_obj: bigint): void { +export function Amount_free(this_ptr: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Amount_free(this_obj); + const nativeResponseValue = wasm.TS_Amount_free(this_ptr); // debug statements here } // uint64_t Amount_clone_ptr(LDKAmount *NONNULL_PTR arg); @@ -46562,13 +51588,31 @@ export function Amount_clone(orig: bigint): bigint { const nativeResponseValue = wasm.TS_Amount_clone(orig); return nativeResponseValue; } - // void Quantity_free(struct LDKQuantity this_obj); + // struct LDKAmount Amount_bitcoin(uint64_t amount_msats); /* @internal */ -export function Quantity_free(this_obj: bigint): void { +export function Amount_bitcoin(amount_msats: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Quantity_free(this_obj); + const nativeResponseValue = wasm.TS_Amount_bitcoin(amount_msats); + return nativeResponseValue; +} + // struct LDKAmount Amount_currency(struct LDKThreeBytes iso4217_code, uint64_t amount); +/* @internal */ +export function Amount_currency(iso4217_code: number, amount: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Amount_currency(iso4217_code, amount); + return nativeResponseValue; +} + // void Quantity_free(struct LDKQuantity this_ptr); +/* @internal */ +export function Quantity_free(this_ptr: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Quantity_free(this_ptr); // debug statements here } // uint64_t Quantity_clone_ptr(LDKQuantity *NONNULL_PTR arg); @@ -46588,6 +51632,33 @@ export function Quantity_clone(orig: bigint): bigint { } const nativeResponseValue = wasm.TS_Quantity_clone(orig); return nativeResponseValue; +} + // struct LDKQuantity Quantity_bounded(uint64_t a); +/* @internal */ +export function Quantity_bounded(a: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Quantity_bounded(a); + return nativeResponseValue; +} + // struct LDKQuantity Quantity_unbounded(void); +/* @internal */ +export function Quantity_unbounded(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Quantity_unbounded(); + return nativeResponseValue; +} + // struct LDKQuantity Quantity_one(void); +/* @internal */ +export function Quantity_one(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Quantity_one(); + return nativeResponseValue; } // struct LDKCResult_OfferBolt12ParseErrorZ Offer_from_str(struct LDKStr s); /* @internal */ @@ -46597,6 +51668,141 @@ export function Offer_from_str(s: number): bigint { } const nativeResponseValue = wasm.TS_Offer_from_str(s); return nativeResponseValue; +} + // struct LDKStr Offer_to_str(const struct LDKOffer *NONNULL_PTR o); +/* @internal */ +export function Offer_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Offer_to_str(o); + return nativeResponseValue; +} + // void InvoiceWithExplicitSigningPubkeyBuilder_free(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_obj); +/* @internal */ +export function InvoiceWithExplicitSigningPubkeyBuilder_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithExplicitSigningPubkeyBuilder_free(this_obj); + // debug statements here +} + // void InvoiceWithDerivedSigningPubkeyBuilder_free(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_obj); +/* @internal */ +export function InvoiceWithDerivedSigningPubkeyBuilder_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithDerivedSigningPubkeyBuilder_free(this_obj); + // debug statements here +} + // MUST_USE_RES struct LDKCResult_UnsignedBolt12InvoiceBolt12SemanticErrorZ InvoiceWithExplicitSigningPubkeyBuilder_build(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_arg); +/* @internal */ +export function InvoiceWithExplicitSigningPubkeyBuilder_build(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithExplicitSigningPubkeyBuilder_build(this_arg); + return nativeResponseValue; +} + // MUST_USE_RES void InvoiceWithExplicitSigningPubkeyBuilder_relative_expiry(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_arg, uint32_t relative_expiry_secs); +/* @internal */ +export function InvoiceWithExplicitSigningPubkeyBuilder_relative_expiry(this_arg: bigint, relative_expiry_secs: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithExplicitSigningPubkeyBuilder_relative_expiry(this_arg, relative_expiry_secs); + // debug statements here +} + // MUST_USE_RES void InvoiceWithExplicitSigningPubkeyBuilder_fallback_v0_p2wsh(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_arg, const uint8_t (*script_hash)[32]); +/* @internal */ +export function InvoiceWithExplicitSigningPubkeyBuilder_fallback_v0_p2wsh(this_arg: bigint, script_hash: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithExplicitSigningPubkeyBuilder_fallback_v0_p2wsh(this_arg, script_hash); + // debug statements here +} + // MUST_USE_RES void InvoiceWithExplicitSigningPubkeyBuilder_fallback_v0_p2wpkh(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_arg, const uint8_t (*pubkey_hash)[20]); +/* @internal */ +export function InvoiceWithExplicitSigningPubkeyBuilder_fallback_v0_p2wpkh(this_arg: bigint, pubkey_hash: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithExplicitSigningPubkeyBuilder_fallback_v0_p2wpkh(this_arg, pubkey_hash); + // debug statements here +} + // MUST_USE_RES void InvoiceWithExplicitSigningPubkeyBuilder_fallback_v1_p2tr_tweaked(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_arg, struct LDKTweakedPublicKey output_key); +/* @internal */ +export function InvoiceWithExplicitSigningPubkeyBuilder_fallback_v1_p2tr_tweaked(this_arg: bigint, utput_key: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithExplicitSigningPubkeyBuilder_fallback_v1_p2tr_tweaked(this_arg, utput_key); + // debug statements here +} + // MUST_USE_RES void InvoiceWithExplicitSigningPubkeyBuilder_allow_mpp(struct LDKInvoiceWithExplicitSigningPubkeyBuilder this_arg); +/* @internal */ +export function InvoiceWithExplicitSigningPubkeyBuilder_allow_mpp(this_arg: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithExplicitSigningPubkeyBuilder_allow_mpp(this_arg); + // debug statements here +} + // MUST_USE_RES struct LDKCResult_Bolt12InvoiceBolt12SemanticErrorZ InvoiceWithDerivedSigningPubkeyBuilder_build_and_sign(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_arg); +/* @internal */ +export function InvoiceWithDerivedSigningPubkeyBuilder_build_and_sign(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithDerivedSigningPubkeyBuilder_build_and_sign(this_arg); + return nativeResponseValue; +} + // MUST_USE_RES void InvoiceWithDerivedSigningPubkeyBuilder_relative_expiry(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_arg, uint32_t relative_expiry_secs); +/* @internal */ +export function InvoiceWithDerivedSigningPubkeyBuilder_relative_expiry(this_arg: bigint, relative_expiry_secs: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithDerivedSigningPubkeyBuilder_relative_expiry(this_arg, relative_expiry_secs); + // debug statements here +} + // MUST_USE_RES void InvoiceWithDerivedSigningPubkeyBuilder_fallback_v0_p2wsh(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_arg, const uint8_t (*script_hash)[32]); +/* @internal */ +export function InvoiceWithDerivedSigningPubkeyBuilder_fallback_v0_p2wsh(this_arg: bigint, script_hash: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithDerivedSigningPubkeyBuilder_fallback_v0_p2wsh(this_arg, script_hash); + // debug statements here +} + // MUST_USE_RES void InvoiceWithDerivedSigningPubkeyBuilder_fallback_v0_p2wpkh(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_arg, const uint8_t (*pubkey_hash)[20]); +/* @internal */ +export function InvoiceWithDerivedSigningPubkeyBuilder_fallback_v0_p2wpkh(this_arg: bigint, pubkey_hash: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithDerivedSigningPubkeyBuilder_fallback_v0_p2wpkh(this_arg, pubkey_hash); + // debug statements here +} + // MUST_USE_RES void InvoiceWithDerivedSigningPubkeyBuilder_fallback_v1_p2tr_tweaked(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_arg, struct LDKTweakedPublicKey output_key); +/* @internal */ +export function InvoiceWithDerivedSigningPubkeyBuilder_fallback_v1_p2tr_tweaked(this_arg: bigint, utput_key: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithDerivedSigningPubkeyBuilder_fallback_v1_p2tr_tweaked(this_arg, utput_key); + // debug statements here +} + // MUST_USE_RES void InvoiceWithDerivedSigningPubkeyBuilder_allow_mpp(struct LDKInvoiceWithDerivedSigningPubkeyBuilder this_arg); +/* @internal */ +export function InvoiceWithDerivedSigningPubkeyBuilder_allow_mpp(this_arg: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceWithDerivedSigningPubkeyBuilder_allow_mpp(this_arg); + // debug statements here } // void UnsignedBolt12Invoice_free(struct LDKUnsignedBolt12Invoice this_obj); /* @internal */ @@ -46606,6 +51812,33 @@ export function UnsignedBolt12Invoice_free(this_obj: bigint): void { } const nativeResponseValue = wasm.TS_UnsignedBolt12Invoice_free(this_obj); // debug statements here +} + // uint64_t UnsignedBolt12Invoice_clone_ptr(LDKUnsignedBolt12Invoice *NONNULL_PTR arg); +/* @internal */ +export function UnsignedBolt12Invoice_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnsignedBolt12Invoice_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKUnsignedBolt12Invoice UnsignedBolt12Invoice_clone(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR orig); +/* @internal */ +export function UnsignedBolt12Invoice_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnsignedBolt12Invoice_clone(orig); + return nativeResponseValue; +} + // void SignBolt12InvoiceFn_free(struct LDKSignBolt12InvoiceFn this_ptr); +/* @internal */ +export function SignBolt12InvoiceFn_free(this_ptr: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SignBolt12InvoiceFn_free(this_ptr); + // debug statements here } // MUST_USE_RES struct LDKTaggedHash UnsignedBolt12Invoice_tagged_hash(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); /* @internal */ @@ -46670,7 +51903,7 @@ export function UnsignedBolt12Invoice_metadata(this_arg: bigint): bigint { const nativeResponseValue = wasm.TS_UnsignedBolt12Invoice_metadata(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKAmount UnsignedBolt12Invoice_amount(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCOption_AmountZ UnsignedBolt12Invoice_amount(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); /* @internal */ export function UnsignedBolt12Invoice_amount(this_arg: bigint): bigint { if(!isWasmInitialized) { @@ -46724,7 +51957,7 @@ export function UnsignedBolt12Invoice_message_paths(this_arg: bigint): number { const nativeResponseValue = wasm.TS_UnsignedBolt12Invoice_message_paths(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKQuantity UnsignedBolt12Invoice_supported_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCOption_QuantityZ UnsignedBolt12Invoice_supported_quantity(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR this_arg); /* @internal */ export function UnsignedBolt12Invoice_supported_quantity(this_arg: bigint): bigint { if(!isWasmInitialized) { @@ -46859,7 +52092,7 @@ export function Bolt12Invoice_metadata(this_arg: bigint): bigint { const nativeResponseValue = wasm.TS_Bolt12Invoice_metadata(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKAmount Bolt12Invoice_amount(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCOption_AmountZ Bolt12Invoice_amount(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); /* @internal */ export function Bolt12Invoice_amount(this_arg: bigint): bigint { if(!isWasmInitialized) { @@ -46913,7 +52146,7 @@ export function Bolt12Invoice_message_paths(this_arg: bigint): number { const nativeResponseValue = wasm.TS_Bolt12Invoice_message_paths(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKQuantity Bolt12Invoice_supported_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCOption_QuantityZ Bolt12Invoice_supported_quantity(const struct LDKBolt12Invoice *NONNULL_PTR this_arg); /* @internal */ export function Bolt12Invoice_supported_quantity(this_arg: bigint): bigint { if(!isWasmInitialized) { @@ -47047,6 +52280,15 @@ export function Bolt12Invoice_verify(this_arg: bigint, key: bigint): bigint { } const nativeResponseValue = wasm.TS_Bolt12Invoice_verify(this_arg, key); return nativeResponseValue; +} + // uint64_t Bolt12Invoice_hash(const struct LDKBolt12Invoice *NONNULL_PTR o); +/* @internal */ +export function Bolt12Invoice_hash(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12Invoice_hash(o); + return nativeResponseValue; } // struct LDKCVec_u8Z UnsignedBolt12Invoice_write(const struct LDKUnsignedBolt12Invoice *NONNULL_PTR obj); /* @internal */ @@ -47398,6 +52640,15 @@ export function InvoiceError_from_string(s: number): bigint { } const nativeResponseValue = wasm.TS_InvoiceError_from_string(s); return nativeResponseValue; +} + // struct LDKStr InvoiceError_to_str(const struct LDKInvoiceError *NONNULL_PTR o); +/* @internal */ +export function InvoiceError_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceError_to_str(o); + return nativeResponseValue; } // struct LDKCVec_u8Z InvoiceError_write(const struct LDKInvoiceError *NONNULL_PTR obj); /* @internal */ @@ -47416,6 +52667,114 @@ export function InvoiceError_read(ser: number): bigint { } const nativeResponseValue = wasm.TS_InvoiceError_read(ser); return nativeResponseValue; +} + // void InvoiceRequestWithExplicitPayerIdBuilder_free(struct LDKInvoiceRequestWithExplicitPayerIdBuilder this_obj); +/* @internal */ +export function InvoiceRequestWithExplicitPayerIdBuilder_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestWithExplicitPayerIdBuilder_free(this_obj); + // debug statements here +} + // void InvoiceRequestWithDerivedPayerIdBuilder_free(struct LDKInvoiceRequestWithDerivedPayerIdBuilder this_obj); +/* @internal */ +export function InvoiceRequestWithDerivedPayerIdBuilder_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestWithDerivedPayerIdBuilder_free(this_obj); + // debug statements here +} + // MUST_USE_RES struct LDKCResult_UnsignedInvoiceRequestBolt12SemanticErrorZ InvoiceRequestWithExplicitPayerIdBuilder_build(struct LDKInvoiceRequestWithExplicitPayerIdBuilder this_arg); +/* @internal */ +export function InvoiceRequestWithExplicitPayerIdBuilder_build(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestWithExplicitPayerIdBuilder_build(this_arg); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ InvoiceRequestWithExplicitPayerIdBuilder_chain(struct LDKInvoiceRequestWithExplicitPayerIdBuilder this_arg, enum LDKNetwork network); +/* @internal */ +export function InvoiceRequestWithExplicitPayerIdBuilder_chain(this_arg: bigint, network: Network): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestWithExplicitPayerIdBuilder_chain(this_arg, network); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ InvoiceRequestWithExplicitPayerIdBuilder_amount_msats(struct LDKInvoiceRequestWithExplicitPayerIdBuilder this_arg, uint64_t amount_msats); +/* @internal */ +export function InvoiceRequestWithExplicitPayerIdBuilder_amount_msats(this_arg: bigint, amount_msats: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestWithExplicitPayerIdBuilder_amount_msats(this_arg, amount_msats); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ InvoiceRequestWithExplicitPayerIdBuilder_quantity(struct LDKInvoiceRequestWithExplicitPayerIdBuilder this_arg, uint64_t quantity); +/* @internal */ +export function InvoiceRequestWithExplicitPayerIdBuilder_quantity(this_arg: bigint, quantity: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestWithExplicitPayerIdBuilder_quantity(this_arg, quantity); + return nativeResponseValue; +} + // MUST_USE_RES void InvoiceRequestWithExplicitPayerIdBuilder_payer_note(struct LDKInvoiceRequestWithExplicitPayerIdBuilder this_arg, struct LDKStr payer_note); +/* @internal */ +export function InvoiceRequestWithExplicitPayerIdBuilder_payer_note(this_arg: bigint, payer_note: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestWithExplicitPayerIdBuilder_payer_note(this_arg, payer_note); + // debug statements here +} + // MUST_USE_RES struct LDKCResult_InvoiceRequestBolt12SemanticErrorZ InvoiceRequestWithDerivedPayerIdBuilder_build_and_sign(struct LDKInvoiceRequestWithDerivedPayerIdBuilder this_arg); +/* @internal */ +export function InvoiceRequestWithDerivedPayerIdBuilder_build_and_sign(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestWithDerivedPayerIdBuilder_build_and_sign(this_arg); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ InvoiceRequestWithDerivedPayerIdBuilder_chain(struct LDKInvoiceRequestWithDerivedPayerIdBuilder this_arg, enum LDKNetwork network); +/* @internal */ +export function InvoiceRequestWithDerivedPayerIdBuilder_chain(this_arg: bigint, network: Network): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestWithDerivedPayerIdBuilder_chain(this_arg, network); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ InvoiceRequestWithDerivedPayerIdBuilder_amount_msats(struct LDKInvoiceRequestWithDerivedPayerIdBuilder this_arg, uint64_t amount_msats); +/* @internal */ +export function InvoiceRequestWithDerivedPayerIdBuilder_amount_msats(this_arg: bigint, amount_msats: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestWithDerivedPayerIdBuilder_amount_msats(this_arg, amount_msats); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_NoneBolt12SemanticErrorZ InvoiceRequestWithDerivedPayerIdBuilder_quantity(struct LDKInvoiceRequestWithDerivedPayerIdBuilder this_arg, uint64_t quantity); +/* @internal */ +export function InvoiceRequestWithDerivedPayerIdBuilder_quantity(this_arg: bigint, quantity: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestWithDerivedPayerIdBuilder_quantity(this_arg, quantity); + return nativeResponseValue; +} + // MUST_USE_RES void InvoiceRequestWithDerivedPayerIdBuilder_payer_note(struct LDKInvoiceRequestWithDerivedPayerIdBuilder this_arg, struct LDKStr payer_note); +/* @internal */ +export function InvoiceRequestWithDerivedPayerIdBuilder_payer_note(this_arg: bigint, payer_note: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestWithDerivedPayerIdBuilder_payer_note(this_arg, payer_note); + // debug statements here } // void UnsignedInvoiceRequest_free(struct LDKUnsignedInvoiceRequest this_obj); /* @internal */ @@ -47425,6 +52784,33 @@ export function UnsignedInvoiceRequest_free(this_obj: bigint): void { } const nativeResponseValue = wasm.TS_UnsignedInvoiceRequest_free(this_obj); // debug statements here +} + // uint64_t UnsignedInvoiceRequest_clone_ptr(LDKUnsignedInvoiceRequest *NONNULL_PTR arg); +/* @internal */ +export function UnsignedInvoiceRequest_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnsignedInvoiceRequest_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKUnsignedInvoiceRequest UnsignedInvoiceRequest_clone(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR orig); +/* @internal */ +export function UnsignedInvoiceRequest_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnsignedInvoiceRequest_clone(orig); + return nativeResponseValue; +} + // void SignInvoiceRequestFn_free(struct LDKSignInvoiceRequestFn this_ptr); +/* @internal */ +export function SignInvoiceRequestFn_free(this_ptr: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SignInvoiceRequestFn_free(this_ptr); + // debug statements here } // MUST_USE_RES struct LDKTaggedHash UnsignedInvoiceRequest_tagged_hash(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); /* @internal */ @@ -47470,6 +52856,24 @@ export function VerifiedInvoiceRequest_free(this_obj: bigint): void { } const nativeResponseValue = wasm.TS_VerifiedInvoiceRequest_free(this_obj); // debug statements here +} + // struct LDKOfferId VerifiedInvoiceRequest_get_offer_id(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr); +/* @internal */ +export function VerifiedInvoiceRequest_get_offer_id(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_VerifiedInvoiceRequest_get_offer_id(this_ptr); + return nativeResponseValue; +} + // void VerifiedInvoiceRequest_set_offer_id(struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr, struct LDKOfferId val); +/* @internal */ +export function VerifiedInvoiceRequest_set_offer_id(this_ptr: bigint, val: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_VerifiedInvoiceRequest_set_offer_id(this_ptr, val); + // debug statements here } // struct LDKCOption_SecretKeyZ VerifiedInvoiceRequest_get_keys(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_ptr); /* @internal */ @@ -47525,7 +52929,7 @@ export function UnsignedInvoiceRequest_metadata(this_arg: bigint): bigint { const nativeResponseValue = wasm.TS_UnsignedInvoiceRequest_metadata(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKAmount UnsignedInvoiceRequest_amount(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCOption_AmountZ UnsignedInvoiceRequest_amount(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR this_arg); /* @internal */ export function UnsignedInvoiceRequest_amount(this_arg: bigint): bigint { if(!isWasmInitialized) { @@ -47678,7 +53082,7 @@ export function InvoiceRequest_metadata(this_arg: bigint): bigint { const nativeResponseValue = wasm.TS_InvoiceRequest_metadata(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKAmount InvoiceRequest_amount(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCOption_AmountZ InvoiceRequest_amount(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); /* @internal */ export function InvoiceRequest_amount(this_arg: bigint): bigint { if(!isWasmInitialized) { @@ -47813,13 +53217,13 @@ export function InvoiceRequest_payer_note(this_arg: bigint): bigint { const nativeResponseValue = wasm.TS_InvoiceRequest_payer_note(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKSchnorrSignature InvoiceRequest_signature(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ InvoiceRequest_respond_with_no_std(const struct LDKInvoiceRequest *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ payment_paths, struct LDKThirtyTwoBytes payment_hash, uint64_t created_at); /* @internal */ -export function InvoiceRequest_signature(this_arg: bigint): number { +export function InvoiceRequest_respond_with_no_std(this_arg: bigint, payment_paths: number, payment_hash: number, created_at: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_InvoiceRequest_signature(this_arg); + const nativeResponseValue = wasm.TS_InvoiceRequest_respond_with_no_std(this_arg, payment_paths, payment_hash, created_at); return nativeResponseValue; } // MUST_USE_RES struct LDKCResult_VerifiedInvoiceRequestNoneZ InvoiceRequest_verify(struct LDKInvoiceRequest this_arg, const struct LDKExpandedKey *NONNULL_PTR key); @@ -47830,6 +53234,15 @@ export function InvoiceRequest_verify(this_arg: bigint, key: bigint): bigint { } const nativeResponseValue = wasm.TS_InvoiceRequest_verify(this_arg, key); return nativeResponseValue; +} + // MUST_USE_RES struct LDKSchnorrSignature InvoiceRequest_signature(const struct LDKInvoiceRequest *NONNULL_PTR this_arg); +/* @internal */ +export function InvoiceRequest_signature(this_arg: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequest_signature(this_arg); + return nativeResponseValue; } // MUST_USE_RES struct LDKCVec_ThirtyTwoBytesZ VerifiedInvoiceRequest_chains(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /* @internal */ @@ -47849,7 +53262,7 @@ export function VerifiedInvoiceRequest_metadata(this_arg: bigint): bigint { const nativeResponseValue = wasm.TS_VerifiedInvoiceRequest_metadata(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKAmount VerifiedInvoiceRequest_amount(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); + // MUST_USE_RES struct LDKCOption_AmountZ VerifiedInvoiceRequest_amount(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg); /* @internal */ export function VerifiedInvoiceRequest_amount(this_arg: bigint): bigint { if(!isWasmInitialized) { @@ -47983,6 +53396,24 @@ export function VerifiedInvoiceRequest_payer_note(this_arg: bigint): bigint { } const nativeResponseValue = wasm.TS_VerifiedInvoiceRequest_payer_note(this_arg); return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_InvoiceWithExplicitSigningPubkeyBuilderBolt12SemanticErrorZ VerifiedInvoiceRequest_respond_with_no_std(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ payment_paths, struct LDKThirtyTwoBytes payment_hash, uint64_t created_at); +/* @internal */ +export function VerifiedInvoiceRequest_respond_with_no_std(this_arg: bigint, payment_paths: number, payment_hash: number, created_at: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_VerifiedInvoiceRequest_respond_with_no_std(this_arg, payment_paths, payment_hash, created_at); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_InvoiceWithDerivedSigningPubkeyBuilderBolt12SemanticErrorZ VerifiedInvoiceRequest_respond_using_derived_keys_no_std(const struct LDKVerifiedInvoiceRequest *NONNULL_PTR this_arg, struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ payment_paths, struct LDKThirtyTwoBytes payment_hash, uint64_t created_at); +/* @internal */ +export function VerifiedInvoiceRequest_respond_using_derived_keys_no_std(this_arg: bigint, payment_paths: number, payment_hash: number, created_at: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_VerifiedInvoiceRequest_respond_using_derived_keys_no_std(this_arg, payment_paths, payment_hash, created_at); + return nativeResponseValue; } // struct LDKCVec_u8Z UnsignedInvoiceRequest_write(const struct LDKUnsignedInvoiceRequest *NONNULL_PTR obj); /* @internal */ @@ -48001,6 +53432,123 @@ export function InvoiceRequest_write(obj: bigint): number { } const nativeResponseValue = wasm.TS_InvoiceRequest_write(obj); return nativeResponseValue; +} + // void InvoiceRequestFields_free(struct LDKInvoiceRequestFields this_obj); +/* @internal */ +export function InvoiceRequestFields_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_free(this_obj); + // debug statements here +} + // struct LDKPublicKey InvoiceRequestFields_get_payer_id(const struct LDKInvoiceRequestFields *NONNULL_PTR this_ptr); +/* @internal */ +export function InvoiceRequestFields_get_payer_id(this_ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_get_payer_id(this_ptr); + return nativeResponseValue; +} + // void InvoiceRequestFields_set_payer_id(struct LDKInvoiceRequestFields *NONNULL_PTR this_ptr, struct LDKPublicKey val); +/* @internal */ +export function InvoiceRequestFields_set_payer_id(this_ptr: bigint, val: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_set_payer_id(this_ptr, val); + // debug statements here +} + // struct LDKCOption_u64Z InvoiceRequestFields_get_quantity(const struct LDKInvoiceRequestFields *NONNULL_PTR this_ptr); +/* @internal */ +export function InvoiceRequestFields_get_quantity(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_get_quantity(this_ptr); + return nativeResponseValue; +} + // void InvoiceRequestFields_set_quantity(struct LDKInvoiceRequestFields *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val); +/* @internal */ +export function InvoiceRequestFields_set_quantity(this_ptr: bigint, val: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_set_quantity(this_ptr, val); + // debug statements here +} + // struct LDKUntrustedString InvoiceRequestFields_get_payer_note_truncated(const struct LDKInvoiceRequestFields *NONNULL_PTR this_ptr); +/* @internal */ +export function InvoiceRequestFields_get_payer_note_truncated(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_get_payer_note_truncated(this_ptr); + return nativeResponseValue; +} + // void InvoiceRequestFields_set_payer_note_truncated(struct LDKInvoiceRequestFields *NONNULL_PTR this_ptr, struct LDKUntrustedString val); +/* @internal */ +export function InvoiceRequestFields_set_payer_note_truncated(this_ptr: bigint, val: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_set_payer_note_truncated(this_ptr, val); + // debug statements here +} + // MUST_USE_RES struct LDKInvoiceRequestFields InvoiceRequestFields_new(struct LDKPublicKey payer_id_arg, struct LDKCOption_u64Z quantity_arg, struct LDKUntrustedString payer_note_truncated_arg); +/* @internal */ +export function InvoiceRequestFields_new(payer_id_arg: number, quantity_arg: bigint, payer_note_truncated_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_new(payer_id_arg, quantity_arg, payer_note_truncated_arg); + return nativeResponseValue; +} + // uint64_t InvoiceRequestFields_clone_ptr(LDKInvoiceRequestFields *NONNULL_PTR arg); +/* @internal */ +export function InvoiceRequestFields_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKInvoiceRequestFields InvoiceRequestFields_clone(const struct LDKInvoiceRequestFields *NONNULL_PTR orig); +/* @internal */ +export function InvoiceRequestFields_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_clone(orig); + return nativeResponseValue; +} + // bool InvoiceRequestFields_eq(const struct LDKInvoiceRequestFields *NONNULL_PTR a, const struct LDKInvoiceRequestFields *NONNULL_PTR b); +/* @internal */ +export function InvoiceRequestFields_eq(a: bigint, b: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_eq(a, b); + return nativeResponseValue; +} + // struct LDKCVec_u8Z InvoiceRequestFields_write(const struct LDKInvoiceRequestFields *NONNULL_PTR obj); +/* @internal */ +export function InvoiceRequestFields_write(obj: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_write(obj); + return nativeResponseValue; +} + // struct LDKCResult_InvoiceRequestFieldsDecodeErrorZ InvoiceRequestFields_read(struct LDKu8slice ser); +/* @internal */ +export function InvoiceRequestFields_read(ser: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_InvoiceRequestFields_read(ser); + return nativeResponseValue; } // void TaggedHash_free(struct LDKTaggedHash this_obj); /* @internal */ @@ -48055,6 +53603,51 @@ export function TaggedHash_merkle_root(this_arg: bigint): number { } const nativeResponseValue = wasm.TS_TaggedHash_merkle_root(this_arg); return nativeResponseValue; +} + // void SignError_free(struct LDKSignError this_ptr); +/* @internal */ +export function SignError_free(this_ptr: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SignError_free(this_ptr); + // debug statements here +} + // uint64_t SignError_clone_ptr(LDKSignError *NONNULL_PTR arg); +/* @internal */ +export function SignError_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SignError_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKSignError SignError_clone(const struct LDKSignError *NONNULL_PTR orig); +/* @internal */ +export function SignError_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SignError_clone(orig); + return nativeResponseValue; +} + // struct LDKSignError SignError_signing(void); +/* @internal */ +export function SignError_signing(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SignError_signing(); + return nativeResponseValue; +} + // struct LDKSignError SignError_verification(enum LDKSecp256k1Error a); +/* @internal */ +export function SignError_verification(a: Secp256k1Error): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SignError_verification(a); + return nativeResponseValue; } // void Bolt12ParseError_free(struct LDKBolt12ParseError this_obj); /* @internal */ @@ -48298,6 +53891,15 @@ export function Bolt12SemanticError_missing_paths(): Bolt12SemanticError { } const nativeResponseValue = wasm.TS_Bolt12SemanticError_missing_paths(); return nativeResponseValue; +} + // enum LDKBolt12SemanticError Bolt12SemanticError_unexpected_paths(void); +/* @internal */ +export function Bolt12SemanticError_unexpected_paths(): Bolt12SemanticError { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12SemanticError_unexpected_paths(); + return nativeResponseValue; } // enum LDKBolt12SemanticError Bolt12SemanticError_invalid_pay_info(void); /* @internal */ @@ -48334,6 +53936,123 @@ export function Bolt12SemanticError_missing_signature(): Bolt12SemanticError { } const nativeResponseValue = wasm.TS_Bolt12SemanticError_missing_signature(); return nativeResponseValue; +} + // void RefundMaybeWithDerivedMetadataBuilder_free(struct LDKRefundMaybeWithDerivedMetadataBuilder this_obj); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_free(this_obj); + // debug statements here +} + // uint64_t RefundMaybeWithDerivedMetadataBuilder_clone_ptr(LDKRefundMaybeWithDerivedMetadataBuilder *NONNULL_PTR arg); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKRefundMaybeWithDerivedMetadataBuilder RefundMaybeWithDerivedMetadataBuilder_clone(const struct LDKRefundMaybeWithDerivedMetadataBuilder *NONNULL_PTR orig); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_clone(orig); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ RefundMaybeWithDerivedMetadataBuilder_new(struct LDKCVec_u8Z metadata, struct LDKPublicKey payer_id, uint64_t amount_msats); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_new(metadata: number, payer_id: number, amount_msats: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_new(metadata, payer_id, amount_msats); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_RefundMaybeWithDerivedMetadataBuilderBolt12SemanticErrorZ RefundMaybeWithDerivedMetadataBuilder_deriving_payer_id(struct LDKPublicKey node_id, const struct LDKExpandedKey *NONNULL_PTR expanded_key, struct LDKEntropySource entropy_source, uint64_t amount_msats, struct LDKThirtyTwoBytes payment_id); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_deriving_payer_id(node_id: number, expanded_key: bigint, entropy_source: bigint, amount_msats: bigint, payment_id: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_deriving_payer_id(node_id, expanded_key, entropy_source, amount_msats, payment_id); + return nativeResponseValue; +} + // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_description(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, struct LDKStr description); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_description(this_arg: bigint, description: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_description(this_arg, description); + // debug statements here +} + // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_absolute_expiry(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, uint64_t absolute_expiry); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_absolute_expiry(this_arg: bigint, absolute_expiry: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_absolute_expiry(this_arg, absolute_expiry); + // debug statements here +} + // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_issuer(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, struct LDKStr issuer); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_issuer(this_arg: bigint, issuer: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_issuer(this_arg, issuer); + // debug statements here +} + // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_path(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, struct LDKBlindedPath path); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_path(this_arg: bigint, path: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_path(this_arg, path); + // debug statements here +} + // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_chain(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, enum LDKNetwork network); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_chain(this_arg: bigint, network: Network): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_chain(this_arg, network); + // debug statements here +} + // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_quantity(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, uint64_t quantity); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_quantity(this_arg: bigint, quantity: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_quantity(this_arg, quantity); + // debug statements here +} + // MUST_USE_RES void RefundMaybeWithDerivedMetadataBuilder_payer_note(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg, struct LDKStr payer_note); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_payer_note(this_arg: bigint, payer_note: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_payer_note(this_arg, payer_note); + // debug statements here +} + // MUST_USE_RES struct LDKCResult_RefundBolt12SemanticErrorZ RefundMaybeWithDerivedMetadataBuilder_build(struct LDKRefundMaybeWithDerivedMetadataBuilder this_arg); +/* @internal */ +export function RefundMaybeWithDerivedMetadataBuilder_build(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RefundMaybeWithDerivedMetadataBuilder_build(this_arg); + return nativeResponseValue; } // void Refund_free(struct LDKRefund this_obj); /* @internal */ @@ -48469,6 +54188,15 @@ export function Refund_payer_note(this_arg: bigint): bigint { } const nativeResponseValue = wasm.TS_Refund_payer_note(this_arg); return nativeResponseValue; +} + // uint64_t Refund_hash(const struct LDKRefund *NONNULL_PTR o); +/* @internal */ +export function Refund_hash(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Refund_hash(o); + return nativeResponseValue; } // struct LDKCVec_u8Z Refund_write(const struct LDKRefund *NONNULL_PTR obj); /* @internal */ @@ -48487,6 +54215,15 @@ export function Refund_from_str(s: number): bigint { } const nativeResponseValue = wasm.TS_Refund_from_str(s); return nativeResponseValue; +} + // struct LDKStr Refund_to_str(const struct LDKRefund *NONNULL_PTR o); +/* @internal */ +export function Refund_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Refund_to_str(o); + return nativeResponseValue; } // enum LDKUtxoLookupError UtxoLookupError_clone(const enum LDKUtxoLookupError *NONNULL_PTR orig); /* @internal */ @@ -48658,6 +54395,15 @@ export function NodeId_from_pubkey(pubkey: number): bigint { } const nativeResponseValue = wasm.TS_NodeId_from_pubkey(pubkey); return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_NodeIdDecodeErrorZ NodeId_from_slice(struct LDKu8slice bytes); +/* @internal */ +export function NodeId_from_slice(bytes: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NodeId_from_slice(bytes); + return nativeResponseValue; } // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg); /* @internal */ @@ -48685,6 +54431,15 @@ export function NodeId_as_pubkey(this_arg: bigint): bigint { } const nativeResponseValue = wasm.TS_NodeId_as_pubkey(this_arg); return nativeResponseValue; +} + // struct LDKStr NodeId_to_str(const struct LDKNodeId *NONNULL_PTR o); +/* @internal */ +export function NodeId_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NodeId_to_str(o); + return nativeResponseValue; } // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o); /* @internal */ @@ -49063,6 +54818,15 @@ export function ChannelUpdateInfo_eq(a: bigint, b: bigint): boolean { } const nativeResponseValue = wasm.TS_ChannelUpdateInfo_eq(a, b); return nativeResponseValue; +} + // struct LDKStr ChannelUpdateInfo_to_str(const struct LDKChannelUpdateInfo *NONNULL_PTR o); +/* @internal */ +export function ChannelUpdateInfo_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelUpdateInfo_to_str(o); + return nativeResponseValue; } // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj); /* @internal */ @@ -49252,6 +55016,15 @@ export function ChannelInfo_get_directional_info(this_arg: bigint, channel_flags } const nativeResponseValue = wasm.TS_ChannelInfo_get_directional_info(this_arg, channel_flags); return nativeResponseValue; +} + // struct LDKStr ChannelInfo_to_str(const struct LDKChannelInfo *NONNULL_PTR o); +/* @internal */ +export function ChannelInfo_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChannelInfo_to_str(o); + return nativeResponseValue; } // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj); /* @internal */ @@ -49315,6 +55088,24 @@ export function DirectedChannelInfo_effective_capacity(this_arg: bigint): bigint } const nativeResponseValue = wasm.TS_DirectedChannelInfo_effective_capacity(this_arg); return nativeResponseValue; +} + // MUST_USE_RES struct LDKNodeId DirectedChannelInfo_source(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg); +/* @internal */ +export function DirectedChannelInfo_source(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_DirectedChannelInfo_source(this_arg); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKNodeId DirectedChannelInfo_target(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg); +/* @internal */ +export function DirectedChannelInfo_target(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_DirectedChannelInfo_target(this_arg); + return nativeResponseValue; } // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr); /* @internal */ @@ -49747,6 +55538,15 @@ export function NodeAlias_eq(a: bigint, b: bigint): boolean { } const nativeResponseValue = wasm.TS_NodeAlias_eq(a, b); return nativeResponseValue; +} + // struct LDKStr NodeAlias_to_str(const struct LDKNodeAlias *NONNULL_PTR o); +/* @internal */ +export function NodeAlias_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NodeAlias_to_str(o); + return nativeResponseValue; } // struct LDKCVec_u8Z NodeAlias_write(const struct LDKNodeAlias *NONNULL_PTR obj); /* @internal */ @@ -49846,6 +55646,24 @@ export function NodeInfo_eq(a: bigint, b: bigint): boolean { } const nativeResponseValue = wasm.TS_NodeInfo_eq(a, b); return nativeResponseValue; +} + // MUST_USE_RES bool NodeInfo_is_tor_only(const struct LDKNodeInfo *NONNULL_PTR this_arg); +/* @internal */ +export function NodeInfo_is_tor_only(this_arg: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NodeInfo_is_tor_only(this_arg); + return nativeResponseValue; +} + // struct LDKStr NodeInfo_to_str(const struct LDKNodeInfo *NONNULL_PTR o); +/* @internal */ +export function NodeInfo_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NodeInfo_to_str(o); + return nativeResponseValue; } // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj); /* @internal */ @@ -49882,6 +55700,15 @@ export function NetworkGraph_read(ser: number, arg: bigint): bigint { } const nativeResponseValue = wasm.TS_NetworkGraph_read(ser, arg); return nativeResponseValue; +} + // struct LDKStr NetworkGraph_to_str(const struct LDKNetworkGraph *NONNULL_PTR o); +/* @internal */ +export function NetworkGraph_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NetworkGraph_to_str(o); + return nativeResponseValue; } // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(enum LDKNetwork network, struct LDKLogger logger); /* @internal */ @@ -50791,6 +56618,15 @@ export function Route_get_total_amount(this_arg: bigint): bigint { } const nativeResponseValue = wasm.TS_Route_get_total_amount(this_arg); return nativeResponseValue; +} + // struct LDKStr Route_to_str(const struct LDKRoute *NONNULL_PTR o); +/* @internal */ +export function Route_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Route_to_str(o); + return nativeResponseValue; } // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj); /* @internal */ @@ -52673,13 +58509,31 @@ export function DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_p const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKPublicKey per_commitment_point_arg, uint16_t to_self_delay_arg, struct LDKTxOut output_arg, struct LDKRevocationKey revocation_pubkey_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg); + // struct LDKChannelTransactionParameters DelayedPaymentOutputDescriptor_get_channel_transaction_parameters(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr); +/* @internal */ +export function DelayedPaymentOutputDescriptor_get_channel_transaction_parameters(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_transaction_parameters(this_ptr); + return nativeResponseValue; +} + // void DelayedPaymentOutputDescriptor_set_channel_transaction_parameters(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKChannelTransactionParameters val); +/* @internal */ +export function DelayedPaymentOutputDescriptor_set_channel_transaction_parameters(this_ptr: bigint, val: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_transaction_parameters(this_ptr, val); + // debug statements here +} + // MUST_USE_RES struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKPublicKey per_commitment_point_arg, uint16_t to_self_delay_arg, struct LDKTxOut output_arg, struct LDKRevocationKey revocation_pubkey_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg, struct LDKChannelTransactionParameters channel_transaction_parameters_arg); /* @internal */ -export function DelayedPaymentOutputDescriptor_new(outpoint_arg: bigint, per_commitment_point_arg: number, to_self_delay_arg: number, output_arg: bigint, revocation_pubkey_arg: bigint, channel_keys_id_arg: number, channel_value_satoshis_arg: bigint): bigint { +export function DelayedPaymentOutputDescriptor_new(outpoint_arg: bigint, per_commitment_point_arg: number, to_self_delay_arg: number, output_arg: bigint, revocation_pubkey_arg: bigint, channel_keys_id_arg: number, channel_value_satoshis_arg: bigint, channel_transaction_parameters_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_new(outpoint_arg, per_commitment_point_arg, to_self_delay_arg, output_arg, revocation_pubkey_arg, channel_keys_id_arg, channel_value_satoshis_arg); + const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_new(outpoint_arg, per_commitment_point_arg, to_self_delay_arg, output_arg, revocation_pubkey_arg, channel_keys_id_arg, channel_value_satoshis_arg, channel_transaction_parameters_arg); return nativeResponseValue; } // uint64_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg); @@ -53158,6 +59012,24 @@ export function HTLCDescriptor_set_channel_derivation_parameters(this_ptr: bigin } const nativeResponseValue = wasm.TS_HTLCDescriptor_set_channel_derivation_parameters(this_ptr, val); // debug statements here +} + // const uint8_t (*HTLCDescriptor_get_commitment_txid(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr))[32]; +/* @internal */ +export function HTLCDescriptor_get_commitment_txid(this_ptr: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_HTLCDescriptor_get_commitment_txid(this_ptr); + return nativeResponseValue; +} + // void HTLCDescriptor_set_commitment_txid(struct LDKHTLCDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); +/* @internal */ +export function HTLCDescriptor_set_commitment_txid(this_ptr: bigint, val: number): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_HTLCDescriptor_set_commitment_txid(this_ptr, val); + // debug statements here } // uint64_t HTLCDescriptor_get_per_commitment_number(const struct LDKHTLCDescriptor *NONNULL_PTR this_ptr); /* @internal */ @@ -53266,6 +59138,15 @@ export function HTLCDescriptor_set_counterparty_sig(this_ptr: bigint, val: numbe } const nativeResponseValue = wasm.TS_HTLCDescriptor_set_counterparty_sig(this_ptr, val); // debug statements here +} + // MUST_USE_RES struct LDKHTLCDescriptor HTLCDescriptor_new(struct LDKChannelDerivationParameters channel_derivation_parameters_arg, struct LDKThirtyTwoBytes commitment_txid_arg, uint64_t per_commitment_number_arg, struct LDKPublicKey per_commitment_point_arg, uint32_t feerate_per_kw_arg, struct LDKHTLCOutputInCommitment htlc_arg, struct LDKCOption_ThirtyTwoBytesZ preimage_arg, struct LDKECDSASignature counterparty_sig_arg); +/* @internal */ +export function HTLCDescriptor_new(channel_derivation_parameters_arg: bigint, commitment_txid_arg: number, per_commitment_number_arg: bigint, per_commitment_point_arg: number, feerate_per_kw_arg: number, htlc_arg: bigint, preimage_arg: bigint, counterparty_sig_arg: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_HTLCDescriptor_new(channel_derivation_parameters_arg, commitment_txid_arg, per_commitment_number_arg, per_commitment_point_arg, feerate_per_kw_arg, htlc_arg, preimage_arg, counterparty_sig_arg); + return nativeResponseValue; } // uint64_t HTLCDescriptor_clone_ptr(LDKHTLCDescriptor *NONNULL_PTR arg); /* @internal */ @@ -53428,6 +59309,15 @@ export function NodeSigner_free(this_ptr: bigint): void { } const nativeResponseValue = wasm.TS_NodeSigner_free(this_ptr); // debug statements here +} + // void OutputSpender_free(struct LDKOutputSpender this_ptr); +/* @internal */ +export function OutputSpender_free(this_ptr: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_OutputSpender_free(this_ptr); + // debug statements here } // void SignerProvider_free(struct LDKSignerProvider this_ptr); /* @internal */ @@ -53437,6 +59327,15 @@ export function SignerProvider_free(this_ptr: bigint): void { } const nativeResponseValue = wasm.TS_SignerProvider_free(this_ptr); // debug statements here +} + // void ChangeDestinationSource_free(struct LDKChangeDestinationSource this_ptr); +/* @internal */ +export function ChangeDestinationSource_free(this_ptr: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ChangeDestinationSource_free(this_ptr); + // debug statements here } // void InMemorySigner_free(struct LDKInMemorySigner this_obj); /* @internal */ @@ -53761,15 +59660,6 @@ export function KeysManager_sign_spendable_outputs_psbt(this_arg: bigint, descri } const nativeResponseValue = wasm.TS_KeysManager_sign_spendable_outputs_psbt(this_arg, descriptors, psbt); return nativeResponseValue; -} - // MUST_USE_RES struct LDKCResult_TransactionNoneZ KeysManager_spend_spendable_outputs(const struct LDKKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime); -/* @internal */ -export function KeysManager_spend_spendable_outputs(this_arg: bigint, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number, locktime: bigint): bigint { - if(!isWasmInitialized) { - throw new Error("initializeWasm() must be awaited first!"); - } - const nativeResponseValue = wasm.TS_KeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight, locktime); - return nativeResponseValue; } // struct LDKEntropySource KeysManager_as_EntropySource(const struct LDKKeysManager *NONNULL_PTR this_arg); /* @internal */ @@ -53788,6 +59678,15 @@ export function KeysManager_as_NodeSigner(this_arg: bigint): bigint { } const nativeResponseValue = wasm.TS_KeysManager_as_NodeSigner(this_arg); return nativeResponseValue; +} + // struct LDKOutputSpender KeysManager_as_OutputSpender(const struct LDKKeysManager *NONNULL_PTR this_arg); +/* @internal */ +export function KeysManager_as_OutputSpender(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_KeysManager_as_OutputSpender(this_arg); + return nativeResponseValue; } // struct LDKSignerProvider KeysManager_as_SignerProvider(const struct LDKKeysManager *NONNULL_PTR this_arg); /* @internal */ @@ -53825,31 +59724,31 @@ export function PhantomKeysManager_as_NodeSigner(this_arg: bigint): bigint { const nativeResponseValue = wasm.TS_PhantomKeysManager_as_NodeSigner(this_arg); return nativeResponseValue; } - // struct LDKSignerProvider PhantomKeysManager_as_SignerProvider(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg); + // struct LDKOutputSpender PhantomKeysManager_as_OutputSpender(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg); /* @internal */ -export function PhantomKeysManager_as_SignerProvider(this_arg: bigint): bigint { +export function PhantomKeysManager_as_OutputSpender(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomKeysManager_as_SignerProvider(this_arg); + const nativeResponseValue = wasm.TS_PhantomKeysManager_as_OutputSpender(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKPhantomKeysManager PhantomKeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos, const uint8_t (*cross_node_seed)[32]); + // struct LDKSignerProvider PhantomKeysManager_as_SignerProvider(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg); /* @internal */ -export function PhantomKeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number, cross_node_seed: number): bigint { +export function PhantomKeysManager_as_SignerProvider(this_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomKeysManager_new(seed, starting_time_secs, starting_time_nanos, cross_node_seed); + const nativeResponseValue = wasm.TS_PhantomKeysManager_as_SignerProvider(this_arg); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_TransactionNoneZ PhantomKeysManager_spend_spendable_outputs(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, struct LDKCVec_SpendableOutputDescriptorZ descriptors, struct LDKCVec_TxOutZ outputs, struct LDKCVec_u8Z change_destination_script, uint32_t feerate_sat_per_1000_weight, struct LDKCOption_u32Z locktime); + // MUST_USE_RES struct LDKPhantomKeysManager PhantomKeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos, const uint8_t (*cross_node_seed)[32]); /* @internal */ -export function PhantomKeysManager_spend_spendable_outputs(this_arg: bigint, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number, locktime: bigint): bigint { +export function PhantomKeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number, cross_node_seed: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PhantomKeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight, locktime); + const nativeResponseValue = wasm.TS_PhantomKeysManager_new(seed, starting_time_secs, starting_time_nanos, cross_node_seed); return nativeResponseValue; } // MUST_USE_RES struct LDKInMemorySigner PhantomKeysManager_derive_channel_keys(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, const uint8_t (*params)[32]); @@ -53878,6 +59777,33 @@ export function PhantomKeysManager_get_phantom_node_secret_key(this_arg: bigint) } const nativeResponseValue = wasm.TS_PhantomKeysManager_get_phantom_node_secret_key(this_arg); return nativeResponseValue; +} + // void RandomBytes_free(struct LDKRandomBytes this_obj); +/* @internal */ +export function RandomBytes_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RandomBytes_free(this_obj); + // debug statements here +} + // MUST_USE_RES struct LDKRandomBytes RandomBytes_new(struct LDKThirtyTwoBytes seed); +/* @internal */ +export function RandomBytes_new(seed: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RandomBytes_new(seed); + return nativeResponseValue; +} + // struct LDKEntropySource RandomBytes_as_EntropySource(const struct LDKRandomBytes *NONNULL_PTR this_arg); +/* @internal */ +export function RandomBytes_as_EntropySource(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_RandomBytes_as_EntropySource(this_arg); + return nativeResponseValue; } // void EcdsaChannelSigner_free(struct LDKEcdsaChannelSigner this_ptr); /* @internal */ @@ -54103,6 +60029,33 @@ export function Destination_blinded_path(a: bigint): bigint { } const nativeResponseValue = wasm.TS_Destination_blinded_path(a); return nativeResponseValue; +} + // uint64_t Destination_hash(const struct LDKDestination *NONNULL_PTR o); +/* @internal */ +export function Destination_hash(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Destination_hash(o); + return nativeResponseValue; +} + // bool Destination_eq(const struct LDKDestination *NONNULL_PTR a, const struct LDKDestination *NONNULL_PTR b); +/* @internal */ +export function Destination_eq(a: bigint, b: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Destination_eq(a, b); + return nativeResponseValue; +} + // void Destination_resolve(struct LDKDestination *NONNULL_PTR this_arg, const struct LDKReadOnlyNetworkGraph *NONNULL_PTR network_graph); +/* @internal */ +export function Destination_resolve(this_arg: bigint, network_graph: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Destination_resolve(this_arg, network_graph); + // debug statements here } // void SendSuccess_free(struct LDKSendSuccess this_ptr); /* @internal */ @@ -54148,6 +60101,15 @@ export function SendSuccess_buffered_awaiting_connection(a: number): bigint { } const nativeResponseValue = wasm.TS_SendSuccess_buffered_awaiting_connection(a); return nativeResponseValue; +} + // uint64_t SendSuccess_hash(const struct LDKSendSuccess *NONNULL_PTR o); +/* @internal */ +export function SendSuccess_hash(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SendSuccess_hash(o); + return nativeResponseValue; } // bool SendSuccess_eq(const struct LDKSendSuccess *NONNULL_PTR a, const struct LDKSendSuccess *NONNULL_PTR b); /* @internal */ @@ -54256,6 +60218,15 @@ export function SendError_get_node_id_failed(): bigint { } const nativeResponseValue = wasm.TS_SendError_get_node_id_failed(); return nativeResponseValue; +} + // struct LDKSendError SendError_unresolved_introduction_node(void); +/* @internal */ +export function SendError_unresolved_introduction_node(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SendError_unresolved_introduction_node(); + return nativeResponseValue; } // struct LDKSendError SendError_blinded_path_advance_failed(void); /* @internal */ @@ -54265,6 +60236,15 @@ export function SendError_blinded_path_advance_failed(): bigint { } const nativeResponseValue = wasm.TS_SendError_blinded_path_advance_failed(); return nativeResponseValue; +} + // uint64_t SendError_hash(const struct LDKSendError *NONNULL_PTR o); +/* @internal */ +export function SendError_hash(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_SendError_hash(o); + return nativeResponseValue; } // bool SendError_eq(const struct LDKSendError *NONNULL_PTR a, const struct LDKSendError *NONNULL_PTR b); /* @internal */ @@ -54311,9 +60291,9 @@ export function PeeledOnion_clone(orig: bigint): bigint { const nativeResponseValue = wasm.TS_PeeledOnion_clone(orig); return nativeResponseValue; } - // struct LDKPeeledOnion PeeledOnion_forward(struct LDKPublicKey a, struct LDKOnionMessage b); + // struct LDKPeeledOnion PeeledOnion_forward(struct LDKNextMessageHop a, struct LDKOnionMessage b); /* @internal */ -export function PeeledOnion_forward(a: number, b: bigint): bigint { +export function PeeledOnion_forward(a: bigint, b: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -54329,13 +60309,22 @@ export function PeeledOnion_receive(a: bigint, b: number, c: bigint): bigint { const nativeResponseValue = wasm.TS_PeeledOnion_receive(a, b, c); return nativeResponseValue; } - // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ create_onion_message(const struct LDKEntropySource *NONNULL_PTR entropy_source, const struct LDKNodeSigner *NONNULL_PTR node_signer, struct LDKOnionMessagePath path, struct LDKOnionMessageContents contents, struct LDKBlindedPath reply_path); + // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ create_onion_message_resolving_destination(const struct LDKEntropySource *NONNULL_PTR entropy_source, const struct LDKNodeSigner *NONNULL_PTR node_signer, const struct LDKNodeIdLookUp *NONNULL_PTR node_id_lookup, const struct LDKReadOnlyNetworkGraph *NONNULL_PTR network_graph, struct LDKOnionMessagePath path, struct LDKOnionMessageContents contents, struct LDKBlindedPath reply_path); +/* @internal */ +export function create_onion_message_resolving_destination(entropy_source: bigint, node_signer: bigint, node_id_lookup: bigint, network_graph: bigint, path: bigint, contents: bigint, reply_path: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_create_onion_message_resolving_destination(entropy_source, node_signer, node_id_lookup, network_graph, path, contents, reply_path); + return nativeResponseValue; +} + // struct LDKCResult_C3Tuple_PublicKeyOnionMessageCOption_CVec_SocketAddressZZZSendErrorZ create_onion_message(const struct LDKEntropySource *NONNULL_PTR entropy_source, const struct LDKNodeSigner *NONNULL_PTR node_signer, const struct LDKNodeIdLookUp *NONNULL_PTR node_id_lookup, struct LDKOnionMessagePath path, struct LDKOnionMessageContents contents, struct LDKBlindedPath reply_path); /* @internal */ -export function create_onion_message(entropy_source: bigint, node_signer: bigint, path: bigint, contents: bigint, reply_path: bigint): bigint { +export function create_onion_message(entropy_source: bigint, node_signer: bigint, node_id_lookup: bigint, path: bigint, contents: bigint, reply_path: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_create_onion_message(entropy_source, node_signer, path, contents, reply_path); + const nativeResponseValue = wasm.TS_create_onion_message(entropy_source, node_signer, node_id_lookup, path, contents, reply_path); return nativeResponseValue; } // struct LDKCResult_PeeledOnionNoneZ peel_onion_message(const struct LDKOnionMessage *NONNULL_PTR msg, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKCustomOnionMessageHandler custom_handler); @@ -54347,13 +60336,13 @@ export function peel_onion_message(msg: bigint, node_signer: bigint, logger: big const nativeResponseValue = wasm.TS_peel_onion_message(msg, node_signer, logger, custom_handler); return nativeResponseValue; } - // MUST_USE_RES struct LDKOnionMessenger OnionMessenger_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKMessageRouter message_router, struct LDKOffersMessageHandler offers_handler, struct LDKCustomOnionMessageHandler custom_handler); + // MUST_USE_RES struct LDKOnionMessenger OnionMessenger_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKNodeIdLookUp node_id_lookup, struct LDKMessageRouter message_router, struct LDKOffersMessageHandler offers_handler, struct LDKCustomOnionMessageHandler custom_handler); /* @internal */ -export function OnionMessenger_new(entropy_source: bigint, node_signer: bigint, logger: bigint, message_router: bigint, offers_handler: bigint, custom_handler: bigint): bigint { +export function OnionMessenger_new(entropy_source: bigint, node_signer: bigint, logger: bigint, node_id_lookup: bigint, message_router: bigint, offers_handler: bigint, custom_handler: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_OnionMessenger_new(entropy_source, node_signer, logger, message_router, offers_handler, custom_handler); + const nativeResponseValue = wasm.TS_OnionMessenger_new(entropy_source, node_signer, logger, node_id_lookup, message_router, offers_handler, custom_handler); return nativeResponseValue; } // MUST_USE_RES struct LDKCResult_SendSuccessSendErrorZ OnionMessenger_send_onion_message(const struct LDKOnionMessenger *NONNULL_PTR this_arg, struct LDKOnionMessageContents contents, struct LDKDestination destination, struct LDKBlindedPath reply_path); @@ -54697,6 +60686,69 @@ export function OnionMessageContents_free(this_ptr: bigint): void { } const nativeResponseValue = wasm.TS_OnionMessageContents_free(this_ptr); // debug statements here +} + // void NextMessageHop_free(struct LDKNextMessageHop this_ptr); +/* @internal */ +export function NextMessageHop_free(this_ptr: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NextMessageHop_free(this_ptr); + // debug statements here +} + // uint64_t NextMessageHop_clone_ptr(LDKNextMessageHop *NONNULL_PTR arg); +/* @internal */ +export function NextMessageHop_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NextMessageHop_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKNextMessageHop NextMessageHop_clone(const struct LDKNextMessageHop *NONNULL_PTR orig); +/* @internal */ +export function NextMessageHop_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NextMessageHop_clone(orig); + return nativeResponseValue; +} + // struct LDKNextMessageHop NextMessageHop_node_id(struct LDKPublicKey a); +/* @internal */ +export function NextMessageHop_node_id(a: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NextMessageHop_node_id(a); + return nativeResponseValue; +} + // struct LDKNextMessageHop NextMessageHop_short_channel_id(uint64_t a); +/* @internal */ +export function NextMessageHop_short_channel_id(a: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NextMessageHop_short_channel_id(a); + return nativeResponseValue; +} + // uint64_t NextMessageHop_hash(const struct LDKNextMessageHop *NONNULL_PTR o); +/* @internal */ +export function NextMessageHop_hash(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NextMessageHop_hash(o); + return nativeResponseValue; +} + // bool NextMessageHop_eq(const struct LDKNextMessageHop *NONNULL_PTR a, const struct LDKNextMessageHop *NONNULL_PTR b); +/* @internal */ +export function NextMessageHop_eq(a: bigint, b: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NextMessageHop_eq(a, b); + return nativeResponseValue; } // void BlindedPath_free(struct LDKBlindedPath this_obj); /* @internal */ @@ -54707,22 +60759,22 @@ export function BlindedPath_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_BlindedPath_free(this_obj); // debug statements here } - // struct LDKPublicKey BlindedPath_get_introduction_node_id(const struct LDKBlindedPath *NONNULL_PTR this_ptr); + // struct LDKIntroductionNode BlindedPath_get_introduction_node(const struct LDKBlindedPath *NONNULL_PTR this_ptr); /* @internal */ -export function BlindedPath_get_introduction_node_id(this_ptr: bigint): number { +export function BlindedPath_get_introduction_node(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedPath_get_introduction_node_id(this_ptr); + const nativeResponseValue = wasm.TS_BlindedPath_get_introduction_node(this_ptr); return nativeResponseValue; } - // void BlindedPath_set_introduction_node_id(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKPublicKey val); + // void BlindedPath_set_introduction_node(struct LDKBlindedPath *NONNULL_PTR this_ptr, struct LDKIntroductionNode val); /* @internal */ -export function BlindedPath_set_introduction_node_id(this_ptr: bigint, val: number): void { +export function BlindedPath_set_introduction_node(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedPath_set_introduction_node_id(this_ptr, val); + const nativeResponseValue = wasm.TS_BlindedPath_set_introduction_node(this_ptr, val); // debug statements here } // struct LDKPublicKey BlindedPath_get_blinding_point(const struct LDKBlindedPath *NONNULL_PTR this_ptr); @@ -54761,13 +60813,13 @@ export function BlindedPath_set_blinded_hops(this_ptr: bigint, val: number): voi const nativeResponseValue = wasm.TS_BlindedPath_set_blinded_hops(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKBlindedPath BlindedPath_new(struct LDKPublicKey introduction_node_id_arg, struct LDKPublicKey blinding_point_arg, struct LDKCVec_BlindedHopZ blinded_hops_arg); + // MUST_USE_RES struct LDKBlindedPath BlindedPath_new(struct LDKIntroductionNode introduction_node_arg, struct LDKPublicKey blinding_point_arg, struct LDKCVec_BlindedHopZ blinded_hops_arg); /* @internal */ -export function BlindedPath_new(introduction_node_id_arg: number, blinding_point_arg: number, blinded_hops_arg: number): bigint { +export function BlindedPath_new(introduction_node_arg: bigint, blinding_point_arg: number, blinded_hops_arg: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedPath_new(introduction_node_id_arg, blinding_point_arg, blinded_hops_arg); + const nativeResponseValue = wasm.TS_BlindedPath_new(introduction_node_arg, blinding_point_arg, blinded_hops_arg); return nativeResponseValue; } // uint64_t BlindedPath_clone_ptr(LDKBlindedPath *NONNULL_PTR arg); @@ -54805,6 +60857,150 @@ export function BlindedPath_eq(a: bigint, b: bigint): boolean { } const nativeResponseValue = wasm.TS_BlindedPath_eq(a, b); return nativeResponseValue; +} + // void IntroductionNode_free(struct LDKIntroductionNode this_ptr); +/* @internal */ +export function IntroductionNode_free(this_ptr: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_IntroductionNode_free(this_ptr); + // debug statements here +} + // uint64_t IntroductionNode_clone_ptr(LDKIntroductionNode *NONNULL_PTR arg); +/* @internal */ +export function IntroductionNode_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_IntroductionNode_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKIntroductionNode IntroductionNode_clone(const struct LDKIntroductionNode *NONNULL_PTR orig); +/* @internal */ +export function IntroductionNode_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_IntroductionNode_clone(orig); + return nativeResponseValue; +} + // struct LDKIntroductionNode IntroductionNode_node_id(struct LDKPublicKey a); +/* @internal */ +export function IntroductionNode_node_id(a: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_IntroductionNode_node_id(a); + return nativeResponseValue; +} + // struct LDKIntroductionNode IntroductionNode_directed_short_channel_id(enum LDKDirection a, uint64_t b); +/* @internal */ +export function IntroductionNode_directed_short_channel_id(a: Direction, b: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_IntroductionNode_directed_short_channel_id(a, b); + return nativeResponseValue; +} + // uint64_t IntroductionNode_hash(const struct LDKIntroductionNode *NONNULL_PTR o); +/* @internal */ +export function IntroductionNode_hash(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_IntroductionNode_hash(o); + return nativeResponseValue; +} + // bool IntroductionNode_eq(const struct LDKIntroductionNode *NONNULL_PTR a, const struct LDKIntroductionNode *NONNULL_PTR b); +/* @internal */ +export function IntroductionNode_eq(a: bigint, b: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_IntroductionNode_eq(a, b); + return nativeResponseValue; +} + // enum LDKDirection Direction_clone(const enum LDKDirection *NONNULL_PTR orig); +/* @internal */ +export function Direction_clone(orig: bigint): Direction { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Direction_clone(orig); + return nativeResponseValue; +} + // enum LDKDirection Direction_node_one(void); +/* @internal */ +export function Direction_node_one(): Direction { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Direction_node_one(); + return nativeResponseValue; +} + // enum LDKDirection Direction_node_two(void); +/* @internal */ +export function Direction_node_two(): Direction { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Direction_node_two(); + return nativeResponseValue; +} + // uint64_t Direction_hash(const enum LDKDirection *NONNULL_PTR o); +/* @internal */ +export function Direction_hash(o: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Direction_hash(o); + return nativeResponseValue; +} + // bool Direction_eq(const enum LDKDirection *NONNULL_PTR a, const enum LDKDirection *NONNULL_PTR b); +/* @internal */ +export function Direction_eq(a: bigint, b: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Direction_eq(a, b); + return nativeResponseValue; +} + // void NodeIdLookUp_free(struct LDKNodeIdLookUp this_ptr); +/* @internal */ +export function NodeIdLookUp_free(this_ptr: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_NodeIdLookUp_free(this_ptr); + // debug statements here +} + // void EmptyNodeIdLookUp_free(struct LDKEmptyNodeIdLookUp this_obj); +/* @internal */ +export function EmptyNodeIdLookUp_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_EmptyNodeIdLookUp_free(this_obj); + // debug statements here +} + // MUST_USE_RES struct LDKEmptyNodeIdLookUp EmptyNodeIdLookUp_new(void); +/* @internal */ +export function EmptyNodeIdLookUp_new(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_EmptyNodeIdLookUp_new(); + return nativeResponseValue; +} + // struct LDKNodeIdLookUp EmptyNodeIdLookUp_as_NodeIdLookUp(const struct LDKEmptyNodeIdLookUp *NONNULL_PTR this_arg); +/* @internal */ +export function EmptyNodeIdLookUp_as_NodeIdLookUp(this_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_EmptyNodeIdLookUp_as_NodeIdLookUp(this_arg); + return nativeResponseValue; } // void BlindedHop_free(struct LDKBlindedHop this_obj); /* @internal */ @@ -54896,7 +61092,7 @@ export function BlindedHop_eq(a: bigint, b: bigint): boolean { const nativeResponseValue = wasm.TS_BlindedHop_eq(a, b); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_one_hop_for_message(struct LDKPublicKey recipient_node_id, const struct LDKEntropySource *NONNULL_PTR entropy_source); + // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_one_hop_for_message(struct LDKPublicKey recipient_node_id, struct LDKEntropySource entropy_source); /* @internal */ export function BlindedPath_one_hop_for_message(recipient_node_id: number, entropy_source: bigint): bigint { if(!isWasmInitialized) { @@ -54905,7 +61101,7 @@ export function BlindedPath_one_hop_for_message(recipient_node_id: number, entro const nativeResponseValue = wasm.TS_BlindedPath_one_hop_for_message(recipient_node_id, entropy_source); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_new_for_message(struct LDKCVec_PublicKeyZ node_pks, const struct LDKEntropySource *NONNULL_PTR entropy_source); + // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_new_for_message(struct LDKCVec_PublicKeyZ node_pks, struct LDKEntropySource entropy_source); /* @internal */ export function BlindedPath_new_for_message(node_pks: number, entropy_source: bigint): bigint { if(!isWasmInitialized) { @@ -54914,22 +61110,31 @@ export function BlindedPath_new_for_message(node_pks: number, entropy_source: bi const nativeResponseValue = wasm.TS_BlindedPath_new_for_message(node_pks, entropy_source); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_one_hop_for_payment(struct LDKPublicKey payee_node_id, struct LDKReceiveTlvs payee_tlvs, const struct LDKEntropySource *NONNULL_PTR entropy_source); + // MUST_USE_RES struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_one_hop_for_payment(struct LDKPublicKey payee_node_id, struct LDKReceiveTlvs payee_tlvs, uint16_t min_final_cltv_expiry_delta, struct LDKEntropySource entropy_source); +/* @internal */ +export function BlindedPath_one_hop_for_payment(payee_node_id: number, payee_tlvs: bigint, min_final_cltv_expiry_delta: number, entropy_source: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_BlindedPath_one_hop_for_payment(payee_node_id, payee_tlvs, min_final_cltv_expiry_delta, entropy_source); + return nativeResponseValue; +} + // MUST_USE_RES struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_new_for_payment(struct LDKCVec_ForwardNodeZ intermediate_nodes, struct LDKPublicKey payee_node_id, struct LDKReceiveTlvs payee_tlvs, uint64_t htlc_maximum_msat, uint16_t min_final_cltv_expiry_delta, struct LDKEntropySource entropy_source); /* @internal */ -export function BlindedPath_one_hop_for_payment(payee_node_id: number, payee_tlvs: bigint, entropy_source: bigint): bigint { +export function BlindedPath_new_for_payment(intermediate_nodes: number, payee_node_id: number, payee_tlvs: bigint, htlc_maximum_msat: bigint, min_final_cltv_expiry_delta: number, entropy_source: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedPath_one_hop_for_payment(payee_node_id, payee_tlvs, entropy_source); + const nativeResponseValue = wasm.TS_BlindedPath_new_for_payment(intermediate_nodes, payee_node_id, payee_tlvs, htlc_maximum_msat, min_final_cltv_expiry_delta, entropy_source); return nativeResponseValue; } - // MUST_USE_RES struct LDKCResult_C2Tuple_BlindedPayInfoBlindedPathZNoneZ BlindedPath_new_for_payment(struct LDKCVec_ForwardNodeZ intermediate_nodes, struct LDKPublicKey payee_node_id, struct LDKReceiveTlvs payee_tlvs, uint64_t htlc_maximum_msat, const struct LDKEntropySource *NONNULL_PTR entropy_source); + // MUST_USE_RES struct LDKNodeId BlindedPath_public_introduction_node_id(const struct LDKBlindedPath *NONNULL_PTR this_arg, const struct LDKReadOnlyNetworkGraph *NONNULL_PTR network_graph); /* @internal */ -export function BlindedPath_new_for_payment(intermediate_nodes: number, payee_node_id: number, payee_tlvs: bigint, htlc_maximum_msat: bigint, entropy_source: bigint): bigint { +export function BlindedPath_public_introduction_node_id(this_arg: bigint, network_graph: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BlindedPath_new_for_payment(intermediate_nodes, payee_node_id, payee_tlvs, htlc_maximum_msat, entropy_source); + const nativeResponseValue = wasm.TS_BlindedPath_public_introduction_node_id(this_arg, network_graph); return nativeResponseValue; } // struct LDKCVec_u8Z BlindedPath_write(const struct LDKBlindedPath *NONNULL_PTR obj); @@ -55211,13 +61416,31 @@ export function ReceiveTlvs_set_payment_constraints(this_ptr: bigint, val: bigin const nativeResponseValue = wasm.TS_ReceiveTlvs_set_payment_constraints(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKReceiveTlvs ReceiveTlvs_new(struct LDKThirtyTwoBytes payment_secret_arg, struct LDKPaymentConstraints payment_constraints_arg); + // struct LDKPaymentContext ReceiveTlvs_get_payment_context(const struct LDKReceiveTlvs *NONNULL_PTR this_ptr); /* @internal */ -export function ReceiveTlvs_new(payment_secret_arg: number, payment_constraints_arg: bigint): bigint { +export function ReceiveTlvs_get_payment_context(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ReceiveTlvs_new(payment_secret_arg, payment_constraints_arg); + const nativeResponseValue = wasm.TS_ReceiveTlvs_get_payment_context(this_ptr); + return nativeResponseValue; +} + // void ReceiveTlvs_set_payment_context(struct LDKReceiveTlvs *NONNULL_PTR this_ptr, struct LDKPaymentContext val); +/* @internal */ +export function ReceiveTlvs_set_payment_context(this_ptr: bigint, val: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ReceiveTlvs_set_payment_context(this_ptr, val); + // debug statements here +} + // MUST_USE_RES struct LDKReceiveTlvs ReceiveTlvs_new(struct LDKThirtyTwoBytes payment_secret_arg, struct LDKPaymentConstraints payment_constraints_arg, struct LDKPaymentContext payment_context_arg); +/* @internal */ +export function ReceiveTlvs_new(payment_secret_arg: number, payment_constraints_arg: bigint, payment_context_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ReceiveTlvs_new(payment_secret_arg, payment_constraints_arg, payment_context_arg); return nativeResponseValue; } // uint64_t ReceiveTlvs_clone_ptr(LDKReceiveTlvs *NONNULL_PTR arg); @@ -55399,6 +61622,231 @@ export function PaymentConstraints_clone(orig: bigint): bigint { } const nativeResponseValue = wasm.TS_PaymentConstraints_clone(orig); return nativeResponseValue; +} + // void PaymentContext_free(struct LDKPaymentContext this_ptr); +/* @internal */ +export function PaymentContext_free(this_ptr: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PaymentContext_free(this_ptr); + // debug statements here +} + // uint64_t PaymentContext_clone_ptr(LDKPaymentContext *NONNULL_PTR arg); +/* @internal */ +export function PaymentContext_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PaymentContext_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKPaymentContext PaymentContext_clone(const struct LDKPaymentContext *NONNULL_PTR orig); +/* @internal */ +export function PaymentContext_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PaymentContext_clone(orig); + return nativeResponseValue; +} + // struct LDKPaymentContext PaymentContext_unknown(struct LDKUnknownPaymentContext a); +/* @internal */ +export function PaymentContext_unknown(a: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PaymentContext_unknown(a); + return nativeResponseValue; +} + // struct LDKPaymentContext PaymentContext_bolt12_offer(struct LDKBolt12OfferContext a); +/* @internal */ +export function PaymentContext_bolt12_offer(a: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PaymentContext_bolt12_offer(a); + return nativeResponseValue; +} + // struct LDKPaymentContext PaymentContext_bolt12_refund(struct LDKBolt12RefundContext a); +/* @internal */ +export function PaymentContext_bolt12_refund(a: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PaymentContext_bolt12_refund(a); + return nativeResponseValue; +} + // bool PaymentContext_eq(const struct LDKPaymentContext *NONNULL_PTR a, const struct LDKPaymentContext *NONNULL_PTR b); +/* @internal */ +export function PaymentContext_eq(a: bigint, b: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PaymentContext_eq(a, b); + return nativeResponseValue; +} + // void UnknownPaymentContext_free(struct LDKUnknownPaymentContext this_obj); +/* @internal */ +export function UnknownPaymentContext_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnknownPaymentContext_free(this_obj); + // debug statements here +} + // uint64_t UnknownPaymentContext_clone_ptr(LDKUnknownPaymentContext *NONNULL_PTR arg); +/* @internal */ +export function UnknownPaymentContext_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnknownPaymentContext_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKUnknownPaymentContext UnknownPaymentContext_clone(const struct LDKUnknownPaymentContext *NONNULL_PTR orig); +/* @internal */ +export function UnknownPaymentContext_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnknownPaymentContext_clone(orig); + return nativeResponseValue; +} + // bool UnknownPaymentContext_eq(const struct LDKUnknownPaymentContext *NONNULL_PTR a, const struct LDKUnknownPaymentContext *NONNULL_PTR b); +/* @internal */ +export function UnknownPaymentContext_eq(a: bigint, b: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnknownPaymentContext_eq(a, b); + return nativeResponseValue; +} + // void Bolt12OfferContext_free(struct LDKBolt12OfferContext this_obj); +/* @internal */ +export function Bolt12OfferContext_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12OfferContext_free(this_obj); + // debug statements here +} + // struct LDKOfferId Bolt12OfferContext_get_offer_id(const struct LDKBolt12OfferContext *NONNULL_PTR this_ptr); +/* @internal */ +export function Bolt12OfferContext_get_offer_id(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12OfferContext_get_offer_id(this_ptr); + return nativeResponseValue; +} + // void Bolt12OfferContext_set_offer_id(struct LDKBolt12OfferContext *NONNULL_PTR this_ptr, struct LDKOfferId val); +/* @internal */ +export function Bolt12OfferContext_set_offer_id(this_ptr: bigint, val: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12OfferContext_set_offer_id(this_ptr, val); + // debug statements here +} + // struct LDKInvoiceRequestFields Bolt12OfferContext_get_invoice_request(const struct LDKBolt12OfferContext *NONNULL_PTR this_ptr); +/* @internal */ +export function Bolt12OfferContext_get_invoice_request(this_ptr: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12OfferContext_get_invoice_request(this_ptr); + return nativeResponseValue; +} + // void Bolt12OfferContext_set_invoice_request(struct LDKBolt12OfferContext *NONNULL_PTR this_ptr, struct LDKInvoiceRequestFields val); +/* @internal */ +export function Bolt12OfferContext_set_invoice_request(this_ptr: bigint, val: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12OfferContext_set_invoice_request(this_ptr, val); + // debug statements here +} + // MUST_USE_RES struct LDKBolt12OfferContext Bolt12OfferContext_new(struct LDKOfferId offer_id_arg, struct LDKInvoiceRequestFields invoice_request_arg); +/* @internal */ +export function Bolt12OfferContext_new(offer_id_arg: bigint, invoice_request_arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12OfferContext_new(offer_id_arg, invoice_request_arg); + return nativeResponseValue; +} + // uint64_t Bolt12OfferContext_clone_ptr(LDKBolt12OfferContext *NONNULL_PTR arg); +/* @internal */ +export function Bolt12OfferContext_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12OfferContext_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKBolt12OfferContext Bolt12OfferContext_clone(const struct LDKBolt12OfferContext *NONNULL_PTR orig); +/* @internal */ +export function Bolt12OfferContext_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12OfferContext_clone(orig); + return nativeResponseValue; +} + // bool Bolt12OfferContext_eq(const struct LDKBolt12OfferContext *NONNULL_PTR a, const struct LDKBolt12OfferContext *NONNULL_PTR b); +/* @internal */ +export function Bolt12OfferContext_eq(a: bigint, b: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12OfferContext_eq(a, b); + return nativeResponseValue; +} + // void Bolt12RefundContext_free(struct LDKBolt12RefundContext this_obj); +/* @internal */ +export function Bolt12RefundContext_free(this_obj: bigint): void { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12RefundContext_free(this_obj); + // debug statements here +} + // MUST_USE_RES struct LDKBolt12RefundContext Bolt12RefundContext_new(void); +/* @internal */ +export function Bolt12RefundContext_new(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12RefundContext_new(); + return nativeResponseValue; +} + // uint64_t Bolt12RefundContext_clone_ptr(LDKBolt12RefundContext *NONNULL_PTR arg); +/* @internal */ +export function Bolt12RefundContext_clone_ptr(arg: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12RefundContext_clone_ptr(arg); + return nativeResponseValue; +} + // struct LDKBolt12RefundContext Bolt12RefundContext_clone(const struct LDKBolt12RefundContext *NONNULL_PTR orig); +/* @internal */ +export function Bolt12RefundContext_clone(orig: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12RefundContext_clone(orig); + return nativeResponseValue; +} + // bool Bolt12RefundContext_eq(const struct LDKBolt12RefundContext *NONNULL_PTR a, const struct LDKBolt12RefundContext *NONNULL_PTR b); +/* @internal */ +export function Bolt12RefundContext_eq(a: bigint, b: bigint): boolean { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12RefundContext_eq(a, b); + return nativeResponseValue; } // struct LDKCVec_u8Z ForwardTlvs_write(const struct LDKForwardTlvs *NONNULL_PTR obj); /* @internal */ @@ -55453,6 +61901,78 @@ export function PaymentConstraints_read(ser: number): bigint { } const nativeResponseValue = wasm.TS_PaymentConstraints_read(ser); return nativeResponseValue; +} + // struct LDKCVec_u8Z PaymentContext_write(const struct LDKPaymentContext *NONNULL_PTR obj); +/* @internal */ +export function PaymentContext_write(obj: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PaymentContext_write(obj); + return nativeResponseValue; +} + // struct LDKCResult_PaymentContextDecodeErrorZ PaymentContext_read(struct LDKu8slice ser); +/* @internal */ +export function PaymentContext_read(ser: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PaymentContext_read(ser); + return nativeResponseValue; +} + // struct LDKCVec_u8Z UnknownPaymentContext_write(const struct LDKUnknownPaymentContext *NONNULL_PTR obj); +/* @internal */ +export function UnknownPaymentContext_write(obj: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnknownPaymentContext_write(obj); + return nativeResponseValue; +} + // struct LDKCResult_UnknownPaymentContextDecodeErrorZ UnknownPaymentContext_read(struct LDKu8slice ser); +/* @internal */ +export function UnknownPaymentContext_read(ser: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_UnknownPaymentContext_read(ser); + return nativeResponseValue; +} + // struct LDKCVec_u8Z Bolt12OfferContext_write(const struct LDKBolt12OfferContext *NONNULL_PTR obj); +/* @internal */ +export function Bolt12OfferContext_write(obj: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12OfferContext_write(obj); + return nativeResponseValue; +} + // struct LDKCResult_Bolt12OfferContextDecodeErrorZ Bolt12OfferContext_read(struct LDKu8slice ser); +/* @internal */ +export function Bolt12OfferContext_read(ser: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12OfferContext_read(ser); + return nativeResponseValue; +} + // struct LDKCVec_u8Z Bolt12RefundContext_write(const struct LDKBolt12RefundContext *NONNULL_PTR obj); +/* @internal */ +export function Bolt12RefundContext_write(obj: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12RefundContext_write(obj); + return nativeResponseValue; +} + // struct LDKCResult_Bolt12RefundContextDecodeErrorZ Bolt12RefundContext_read(struct LDKu8slice ser); +/* @internal */ +export function Bolt12RefundContext_read(ser: number): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt12RefundContext_read(ser); + return nativeResponseValue; } // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr); /* @internal */ @@ -55481,13 +62001,31 @@ export function PaymentPurpose_clone(orig: bigint): bigint { const nativeResponseValue = wasm.TS_PaymentPurpose_clone(orig); return nativeResponseValue; } - // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKThirtyTwoBytes payment_secret); + // struct LDKPaymentPurpose PaymentPurpose_bolt11_invoice_payment(struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKThirtyTwoBytes payment_secret); /* @internal */ -export function PaymentPurpose_invoice_payment(payment_preimage: bigint, payment_secret: number): bigint { +export function PaymentPurpose_bolt11_invoice_payment(payment_preimage: bigint, payment_secret: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_PaymentPurpose_invoice_payment(payment_preimage, payment_secret); + const nativeResponseValue = wasm.TS_PaymentPurpose_bolt11_invoice_payment(payment_preimage, payment_secret); + return nativeResponseValue; +} + // struct LDKPaymentPurpose PaymentPurpose_bolt12_offer_payment(struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKThirtyTwoBytes payment_secret, struct LDKBolt12OfferContext payment_context); +/* @internal */ +export function PaymentPurpose_bolt12_offer_payment(payment_preimage: bigint, payment_secret: number, payment_context: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PaymentPurpose_bolt12_offer_payment(payment_preimage, payment_secret, payment_context); + return nativeResponseValue; +} + // struct LDKPaymentPurpose PaymentPurpose_bolt12_refund_payment(struct LDKCOption_ThirtyTwoBytesZ payment_preimage, struct LDKThirtyTwoBytes payment_secret, struct LDKBolt12RefundContext payment_context); +/* @internal */ +export function PaymentPurpose_bolt12_refund_payment(payment_preimage: bigint, payment_secret: number, payment_context: bigint): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_PaymentPurpose_bolt12_refund_payment(payment_preimage, payment_secret, payment_context); return nativeResponseValue; } // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a); @@ -55544,18 +62082,18 @@ export function ClaimedHTLC_free(this_obj: bigint): void { const nativeResponseValue = wasm.TS_ClaimedHTLC_free(this_obj); // debug statements here } - // const uint8_t (*ClaimedHTLC_get_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr))[32]; + // struct LDKChannelId ClaimedHTLC_get_channel_id(const struct LDKClaimedHTLC *NONNULL_PTR this_ptr); /* @internal */ -export function ClaimedHTLC_get_channel_id(this_ptr: bigint): number { +export function ClaimedHTLC_get_channel_id(this_ptr: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_ClaimedHTLC_get_channel_id(this_ptr); return nativeResponseValue; } - // void ClaimedHTLC_set_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val); + // void ClaimedHTLC_set_channel_id(struct LDKClaimedHTLC *NONNULL_PTR this_ptr, struct LDKChannelId val); /* @internal */ -export function ClaimedHTLC_set_channel_id(this_ptr: bigint, val: number): void { +export function ClaimedHTLC_set_channel_id(this_ptr: bigint, val: bigint): void { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -55634,9 +62172,9 @@ export function ClaimedHTLC_set_counterparty_skimmed_fee_msat(this_ptr: bigint, const nativeResponseValue = wasm.TS_ClaimedHTLC_set_counterparty_skimmed_fee_msat(this_ptr, val); // debug statements here } - // MUST_USE_RES struct LDKClaimedHTLC ClaimedHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKU128 user_channel_id_arg, uint32_t cltv_expiry_arg, uint64_t value_msat_arg, uint64_t counterparty_skimmed_fee_msat_arg); + // MUST_USE_RES struct LDKClaimedHTLC ClaimedHTLC_new(struct LDKChannelId channel_id_arg, struct LDKU128 user_channel_id_arg, uint32_t cltv_expiry_arg, uint64_t value_msat_arg, uint64_t counterparty_skimmed_fee_msat_arg); /* @internal */ -export function ClaimedHTLC_new(channel_id_arg: number, user_channel_id_arg: number, cltv_expiry_arg: number, value_msat_arg: bigint, counterparty_skimmed_fee_msat_arg: bigint): bigint { +export function ClaimedHTLC_new(channel_id_arg: bigint, user_channel_id_arg: number, cltv_expiry_arg: number, value_msat_arg: bigint, counterparty_skimmed_fee_msat_arg: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -55805,13 +62343,31 @@ export function ClosureReason_holder_force_closed(): bigint { const nativeResponseValue = wasm.TS_ClosureReason_holder_force_closed(); return nativeResponseValue; } - // struct LDKClosureReason ClosureReason_cooperative_closure(void); + // struct LDKClosureReason ClosureReason_legacy_cooperative_closure(void); +/* @internal */ +export function ClosureReason_legacy_cooperative_closure(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ClosureReason_legacy_cooperative_closure(); + return nativeResponseValue; +} + // struct LDKClosureReason ClosureReason_counterparty_initiated_cooperative_closure(void); +/* @internal */ +export function ClosureReason_counterparty_initiated_cooperative_closure(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ClosureReason_counterparty_initiated_cooperative_closure(); + return nativeResponseValue; +} + // struct LDKClosureReason ClosureReason_locally_initiated_cooperative_closure(void); /* @internal */ -export function ClosureReason_cooperative_closure(): bigint { +export function ClosureReason_locally_initiated_cooperative_closure(): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_ClosureReason_cooperative_closure(); + const nativeResponseValue = wasm.TS_ClosureReason_locally_initiated_cooperative_closure(); return nativeResponseValue; } // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void); @@ -55876,6 +62432,15 @@ export function ClosureReason_funding_batch_closure(): bigint { } const nativeResponseValue = wasm.TS_ClosureReason_funding_batch_closure(); return nativeResponseValue; +} + // struct LDKClosureReason ClosureReason_htlcs_timed_out(void); +/* @internal */ +export function ClosureReason_htlcs_timed_out(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ClosureReason_htlcs_timed_out(); + return nativeResponseValue; } // bool ClosureReason_eq(const struct LDKClosureReason *NONNULL_PTR a, const struct LDKClosureReason *NONNULL_PTR b); /* @internal */ @@ -55885,6 +62450,15 @@ export function ClosureReason_eq(a: bigint, b: bigint): boolean { } const nativeResponseValue = wasm.TS_ClosureReason_eq(a, b); return nativeResponseValue; +} + // struct LDKStr ClosureReason_to_str(const struct LDKClosureReason *NONNULL_PTR o); +/* @internal */ +export function ClosureReason_to_str(o: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_ClosureReason_to_str(o); + return nativeResponseValue; } // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj); /* @internal */ @@ -55931,9 +62505,9 @@ export function HTLCDestination_clone(orig: bigint): bigint { const nativeResponseValue = wasm.TS_HTLCDestination_clone(orig); return nativeResponseValue; } - // struct LDKHTLCDestination HTLCDestination_next_hop_channel(struct LDKPublicKey node_id, struct LDKThirtyTwoBytes channel_id); + // struct LDKHTLCDestination HTLCDestination_next_hop_channel(struct LDKPublicKey node_id, struct LDKChannelId channel_id); /* @internal */ -export function HTLCDestination_next_hop_channel(node_id: number, channel_id: number): bigint { +export function HTLCDestination_next_hop_channel(node_id: number, channel_id: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -55957,6 +62531,15 @@ export function HTLCDestination_invalid_forward(requested_forward_scid: bigint): } const nativeResponseValue = wasm.TS_HTLCDestination_invalid_forward(requested_forward_scid); return nativeResponseValue; +} + // struct LDKHTLCDestination HTLCDestination_invalid_onion(void); +/* @internal */ +export function HTLCDestination_invalid_onion(): bigint { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_HTLCDestination_invalid_onion(); + return nativeResponseValue; } // struct LDKHTLCDestination HTLCDestination_failed_payment(struct LDKThirtyTwoBytes payment_hash); /* @internal */ @@ -56111,16 +62694,16 @@ export function Event_clone(orig: bigint): bigint { const nativeResponseValue = wasm.TS_Event_clone(orig); return nativeResponseValue; } - // struct LDKEvent Event_funding_generation_ready(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t channel_value_satoshis, struct LDKCVec_u8Z output_script, struct LDKU128 user_channel_id); + // struct LDKEvent Event_funding_generation_ready(struct LDKChannelId temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t channel_value_satoshis, struct LDKCVec_u8Z output_script, struct LDKU128 user_channel_id); /* @internal */ -export function Event_funding_generation_ready(temporary_channel_id: number, counterparty_node_id: number, channel_value_satoshis: bigint, output_script: number, user_channel_id: number): bigint { +export function Event_funding_generation_ready(temporary_channel_id: bigint, counterparty_node_id: number, channel_value_satoshis: bigint, output_script: number, user_channel_id: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_Event_funding_generation_ready(temporary_channel_id, counterparty_node_id, channel_value_satoshis, output_script, user_channel_id); return nativeResponseValue; } - // struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields onion_fields, uint64_t amount_msat, uint64_t counterparty_skimmed_fee_msat, struct LDKPaymentPurpose purpose, struct LDKCOption_ThirtyTwoBytesZ via_channel_id, struct LDKCOption_U128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline); + // struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields onion_fields, uint64_t amount_msat, uint64_t counterparty_skimmed_fee_msat, struct LDKPaymentPurpose purpose, struct LDKChannelId via_channel_id, struct LDKCOption_U128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline); /* @internal */ export function Event_payment_claimable(receiver_node_id: number, payment_hash: number, onion_fields: bigint, amount_msat: bigint, counterparty_skimmed_fee_msat: bigint, purpose: bigint, via_channel_id: bigint, via_user_channel_id: bigint, claim_deadline: bigint): bigint { if(!isWasmInitialized) { @@ -56228,7 +62811,7 @@ export function Event_htlcintercepted(intercept_id: number, requested_next_hop_s const nativeResponseValue = wasm.TS_Event_htlcintercepted(intercept_id, requested_next_hop_scid, payment_hash, inbound_amount_msat, expected_outbound_amount_msat); return nativeResponseValue; } - // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs, struct LDKCOption_ThirtyTwoBytesZ channel_id); + // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs, struct LDKChannelId channel_id); /* @internal */ export function Event_spendable_outputs(outputs: number, channel_id: bigint): bigint { if(!isWasmInitialized) { @@ -56237,63 +62820,63 @@ export function Event_spendable_outputs(outputs: number, channel_id: bigint): bi const nativeResponseValue = wasm.TS_Event_spendable_outputs(outputs, channel_id); return nativeResponseValue; } - // struct LDKEvent Event_payment_forwarded(struct LDKCOption_ThirtyTwoBytesZ prev_channel_id, struct LDKCOption_ThirtyTwoBytesZ next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat); + // struct LDKEvent Event_payment_forwarded(struct LDKChannelId prev_channel_id, struct LDKChannelId next_channel_id, struct LDKCOption_U128Z prev_user_channel_id, struct LDKCOption_U128Z next_user_channel_id, struct LDKCOption_u64Z total_fee_earned_msat, struct LDKCOption_u64Z skimmed_fee_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat); /* @internal */ -export function Event_payment_forwarded(prev_channel_id: bigint, next_channel_id: bigint, fee_earned_msat: bigint, claim_from_onchain_tx: boolean, outbound_amount_forwarded_msat: bigint): bigint { +export function Event_payment_forwarded(prev_channel_id: bigint, next_channel_id: bigint, prev_user_channel_id: bigint, next_user_channel_id: bigint, total_fee_earned_msat: bigint, skimmed_fee_msat: bigint, claim_from_onchain_tx: boolean, outbound_amount_forwarded_msat: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Event_payment_forwarded(prev_channel_id, next_channel_id, fee_earned_msat, claim_from_onchain_tx, outbound_amount_forwarded_msat); + const nativeResponseValue = wasm.TS_Event_payment_forwarded(prev_channel_id, next_channel_id, prev_user_channel_id, next_user_channel_id, total_fee_earned_msat, skimmed_fee_msat, claim_from_onchain_tx, outbound_amount_forwarded_msat); return nativeResponseValue; } - // struct LDKEvent Event_channel_pending(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKCOption_ThirtyTwoBytesZ former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo); + // struct LDKEvent Event_channel_pending(struct LDKChannelId channel_id, struct LDKU128 user_channel_id, struct LDKChannelId former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo, struct LDKChannelTypeFeatures channel_type); /* @internal */ -export function Event_channel_pending(channel_id: number, user_channel_id: number, former_temporary_channel_id: bigint, counterparty_node_id: number, funding_txo: bigint): bigint { +export function Event_channel_pending(channel_id: bigint, user_channel_id: number, former_temporary_channel_id: bigint, counterparty_node_id: number, funding_txo: bigint, channel_type: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_Event_channel_pending(channel_id, user_channel_id, former_temporary_channel_id, counterparty_node_id, funding_txo); + const nativeResponseValue = wasm.TS_Event_channel_pending(channel_id, user_channel_id, former_temporary_channel_id, counterparty_node_id, funding_txo, channel_type); return nativeResponseValue; } - // struct LDKEvent Event_channel_ready(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKChannelTypeFeatures channel_type); + // struct LDKEvent Event_channel_ready(struct LDKChannelId channel_id, struct LDKU128 user_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKChannelTypeFeatures channel_type); /* @internal */ -export function Event_channel_ready(channel_id: number, user_channel_id: number, counterparty_node_id: number, channel_type: bigint): bigint { +export function Event_channel_ready(channel_id: bigint, user_channel_id: number, counterparty_node_id: number, channel_type: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_Event_channel_ready(channel_id, user_channel_id, counterparty_node_id, channel_type); return nativeResponseValue; } - // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason, struct LDKPublicKey counterparty_node_id, struct LDKCOption_u64Z channel_capacity_sats, struct LDKOutPoint channel_funding_txo); + // struct LDKEvent Event_channel_closed(struct LDKChannelId channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason, struct LDKPublicKey counterparty_node_id, struct LDKCOption_u64Z channel_capacity_sats, struct LDKOutPoint channel_funding_txo); /* @internal */ -export function Event_channel_closed(channel_id: number, user_channel_id: number, reason: bigint, counterparty_node_id: number, channel_capacity_sats: bigint, channel_funding_txo: bigint): bigint { +export function Event_channel_closed(channel_id: bigint, user_channel_id: number, reason: bigint, counterparty_node_id: number, channel_capacity_sats: bigint, channel_funding_txo: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_Event_channel_closed(channel_id, user_channel_id, reason, counterparty_node_id, channel_capacity_sats, channel_funding_txo); return nativeResponseValue; } - // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction); + // struct LDKEvent Event_discard_funding(struct LDKChannelId channel_id, struct LDKTransaction transaction); /* @internal */ -export function Event_discard_funding(channel_id: number, transaction: number): bigint { +export function Event_discard_funding(channel_id: bigint, transaction: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_Event_discard_funding(channel_id, transaction); return nativeResponseValue; } - // struct LDKEvent Event_open_channel_request(struct LDKThirtyTwoBytes temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t funding_satoshis, uint64_t push_msat, struct LDKChannelTypeFeatures channel_type); + // struct LDKEvent Event_open_channel_request(struct LDKChannelId temporary_channel_id, struct LDKPublicKey counterparty_node_id, uint64_t funding_satoshis, uint64_t push_msat, struct LDKChannelTypeFeatures channel_type); /* @internal */ -export function Event_open_channel_request(temporary_channel_id: number, counterparty_node_id: number, funding_satoshis: bigint, push_msat: bigint, channel_type: bigint): bigint { +export function Event_open_channel_request(temporary_channel_id: bigint, counterparty_node_id: number, funding_satoshis: bigint, push_msat: bigint, channel_type: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } const nativeResponseValue = wasm.TS_Event_open_channel_request(temporary_channel_id, counterparty_node_id, funding_satoshis, push_msat, channel_type); return nativeResponseValue; } - // struct LDKEvent Event_htlchandling_failed(struct LDKThirtyTwoBytes prev_channel_id, struct LDKHTLCDestination failed_next_destination); + // struct LDKEvent Event_htlchandling_failed(struct LDKChannelId prev_channel_id, struct LDKHTLCDestination failed_next_destination); /* @internal */ -export function Event_htlchandling_failed(prev_channel_id: number, failed_next_destination: bigint): bigint { +export function Event_htlchandling_failed(prev_channel_id: bigint, failed_next_destination: bigint): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } @@ -56867,22 +63450,22 @@ export function BumpTransactionEvent_clone(orig: bigint): bigint { const nativeResponseValue = wasm.TS_BumpTransactionEvent_clone(orig); return nativeResponseValue; } - // struct LDKBumpTransactionEvent BumpTransactionEvent_channel_close(struct LDKThirtyTwoBytes claim_id, uint32_t package_target_feerate_sat_per_1000_weight, struct LDKTransaction commitment_tx, uint64_t commitment_tx_fee_satoshis, struct LDKAnchorDescriptor anchor_descriptor, struct LDKCVec_HTLCOutputInCommitmentZ pending_htlcs); + // struct LDKBumpTransactionEvent BumpTransactionEvent_channel_close(struct LDKChannelId channel_id, struct LDKPublicKey counterparty_node_id, struct LDKThirtyTwoBytes claim_id, uint32_t package_target_feerate_sat_per_1000_weight, struct LDKTransaction commitment_tx, uint64_t commitment_tx_fee_satoshis, struct LDKAnchorDescriptor anchor_descriptor, struct LDKCVec_HTLCOutputInCommitmentZ pending_htlcs); /* @internal */ -export function BumpTransactionEvent_channel_close(claim_id: number, package_target_feerate_sat_per_1000_weight: number, commitment_tx: number, commitment_tx_fee_satoshis: bigint, anchor_descriptor: bigint, pending_htlcs: number): bigint { +export function BumpTransactionEvent_channel_close(channel_id: bigint, counterparty_node_id: number, claim_id: number, package_target_feerate_sat_per_1000_weight: number, commitment_tx: number, commitment_tx_fee_satoshis: bigint, anchor_descriptor: bigint, pending_htlcs: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BumpTransactionEvent_channel_close(claim_id, package_target_feerate_sat_per_1000_weight, commitment_tx, commitment_tx_fee_satoshis, anchor_descriptor, pending_htlcs); + const nativeResponseValue = wasm.TS_BumpTransactionEvent_channel_close(channel_id, counterparty_node_id, claim_id, package_target_feerate_sat_per_1000_weight, commitment_tx, commitment_tx_fee_satoshis, anchor_descriptor, pending_htlcs); return nativeResponseValue; } - // struct LDKBumpTransactionEvent BumpTransactionEvent_htlcresolution(struct LDKThirtyTwoBytes claim_id, uint32_t target_feerate_sat_per_1000_weight, struct LDKCVec_HTLCDescriptorZ htlc_descriptors, uint32_t tx_lock_time); + // struct LDKBumpTransactionEvent BumpTransactionEvent_htlcresolution(struct LDKChannelId channel_id, struct LDKPublicKey counterparty_node_id, struct LDKThirtyTwoBytes claim_id, uint32_t target_feerate_sat_per_1000_weight, struct LDKCVec_HTLCDescriptorZ htlc_descriptors, uint32_t tx_lock_time); /* @internal */ -export function BumpTransactionEvent_htlcresolution(claim_id: number, target_feerate_sat_per_1000_weight: number, htlc_descriptors: number, tx_lock_time: number): bigint { +export function BumpTransactionEvent_htlcresolution(channel_id: bigint, counterparty_node_id: number, claim_id: number, target_feerate_sat_per_1000_weight: number, htlc_descriptors: number, tx_lock_time: number): bigint { if(!isWasmInitialized) { throw new Error("initializeWasm() must be awaited first!"); } - const nativeResponseValue = wasm.TS_BumpTransactionEvent_htlcresolution(claim_id, target_feerate_sat_per_1000_weight, htlc_descriptors, tx_lock_time); + const nativeResponseValue = wasm.TS_BumpTransactionEvent_htlcresolution(channel_id, counterparty_node_id, claim_id, target_feerate_sat_per_1000_weight, htlc_descriptors, tx_lock_time); return nativeResponseValue; } // bool BumpTransactionEvent_eq(const struct LDKBumpTransactionEvent *NONNULL_PTR a, const struct LDKBumpTransactionEvent *NONNULL_PTR b); @@ -58792,6 +65375,15 @@ export function Bolt11Invoice_recover_payee_pub_key(this_arg: bigint): number { } const nativeResponseValue = wasm.TS_Bolt11Invoice_recover_payee_pub_key(this_arg); return nativeResponseValue; +} + // MUST_USE_RES struct LDKPublicKey Bolt11Invoice_get_payee_pub_key(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); +/* @internal */ +export function Bolt11Invoice_get_payee_pub_key(this_arg: bigint): number { + if(!isWasmInitialized) { + throw new Error("initializeWasm() must be awaited first!"); + } + const nativeResponseValue = wasm.TS_Bolt11Invoice_get_payee_pub_key(this_arg); + return nativeResponseValue; } // MUST_USE_RES struct LDKCOption_u64Z Bolt11Invoice_expires_at(const struct LDKBolt11Invoice *NONNULL_PTR this_arg); /* @internal */ @@ -59433,48 +66025,48 @@ js_invoke = function(obj_ptr: number, fn_id: number, arg1: bigint|number, arg2: case 46: fn = Object.getOwnPropertyDescriptor(obj, "debug_str"); break; case 47: fn = Object.getOwnPropertyDescriptor(obj, "register_tx"); break; case 48: fn = Object.getOwnPropertyDescriptor(obj, "register_output"); break; - case 49: fn = Object.getOwnPropertyDescriptor(obj, "read"); break; - case 50: fn = Object.getOwnPropertyDescriptor(obj, "write"); break; - case 51: fn = Object.getOwnPropertyDescriptor(obj, "remove"); break; - case 52: fn = Object.getOwnPropertyDescriptor(obj, "list"); break; - case 53: fn = Object.getOwnPropertyDescriptor(obj, "channel_penalty_msat"); break; - case 54: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_failed"); break; - case 55: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_successful"); break; - case 56: fn = Object.getOwnPropertyDescriptor(obj, "probe_failed"); break; - case 57: fn = Object.getOwnPropertyDescriptor(obj, "probe_successful"); break; - case 58: fn = Object.getOwnPropertyDescriptor(obj, "time_passed"); break; - case 59: fn = Object.getOwnPropertyDescriptor(obj, "read_lock"); break; - case 60: fn = Object.getOwnPropertyDescriptor(obj, "write_lock"); break; - case 61: fn = Object.getOwnPropertyDescriptor(obj, "write"); break; - case 62: fn = Object.getOwnPropertyDescriptor(obj, "persist_manager"); break; - case 63: fn = Object.getOwnPropertyDescriptor(obj, "persist_graph"); break; - case 64: fn = Object.getOwnPropertyDescriptor(obj, "persist_scorer"); break; - case 65: fn = Object.getOwnPropertyDescriptor(obj, "persist_new_channel"); break; - case 66: fn = Object.getOwnPropertyDescriptor(obj, "update_persisted_channel"); break; - case 67: fn = Object.getOwnPropertyDescriptor(obj, "call"); break; - case 68: fn = Object.getOwnPropertyDescriptor(obj, "filtered_block_connected"); break; - case 69: fn = Object.getOwnPropertyDescriptor(obj, "block_connected"); break; - case 70: fn = Object.getOwnPropertyDescriptor(obj, "block_disconnected"); break; - case 71: fn = Object.getOwnPropertyDescriptor(obj, "transactions_confirmed"); break; - case 72: fn = Object.getOwnPropertyDescriptor(obj, "transaction_unconfirmed"); break; - case 73: fn = Object.getOwnPropertyDescriptor(obj, "best_block_updated"); break; - case 74: fn = Object.getOwnPropertyDescriptor(obj, "get_relevant_txids"); break; - case 75: fn = Object.getOwnPropertyDescriptor(obj, "handle_event"); break; - case 76: fn = Object.getOwnPropertyDescriptor(obj, "process_pending_events"); break; - case 77: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg_events"); break; - case 78: fn = Object.getOwnPropertyDescriptor(obj, "handle_open_channel"); break; - case 79: fn = Object.getOwnPropertyDescriptor(obj, "handle_open_channel_v2"); break; - case 80: fn = Object.getOwnPropertyDescriptor(obj, "handle_accept_channel"); break; - case 81: fn = Object.getOwnPropertyDescriptor(obj, "handle_accept_channel_v2"); break; - case 82: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_created"); break; - case 83: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_signed"); break; - case 84: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_ready"); break; - case 85: fn = Object.getOwnPropertyDescriptor(obj, "handle_shutdown"); break; - case 86: fn = Object.getOwnPropertyDescriptor(obj, "handle_closing_signed"); break; - case 87: fn = Object.getOwnPropertyDescriptor(obj, "handle_stfu"); break; - case 88: fn = Object.getOwnPropertyDescriptor(obj, "handle_splice"); break; - case 89: fn = Object.getOwnPropertyDescriptor(obj, "handle_splice_ack"); break; - case 90: fn = Object.getOwnPropertyDescriptor(obj, "handle_splice_locked"); break; + case 49: fn = Object.getOwnPropertyDescriptor(obj, "get_change_destination_script"); break; + case 50: fn = Object.getOwnPropertyDescriptor(obj, "read"); break; + case 51: fn = Object.getOwnPropertyDescriptor(obj, "write"); break; + case 52: fn = Object.getOwnPropertyDescriptor(obj, "remove"); break; + case 53: fn = Object.getOwnPropertyDescriptor(obj, "list"); break; + case 54: fn = Object.getOwnPropertyDescriptor(obj, "spend_spendable_outputs"); break; + case 55: fn = Object.getOwnPropertyDescriptor(obj, "channel_penalty_msat"); break; + case 56: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_failed"); break; + case 57: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_successful"); break; + case 58: fn = Object.getOwnPropertyDescriptor(obj, "probe_failed"); break; + case 59: fn = Object.getOwnPropertyDescriptor(obj, "probe_successful"); break; + case 60: fn = Object.getOwnPropertyDescriptor(obj, "time_passed"); break; + case 61: fn = Object.getOwnPropertyDescriptor(obj, "read_lock"); break; + case 62: fn = Object.getOwnPropertyDescriptor(obj, "write_lock"); break; + case 63: fn = Object.getOwnPropertyDescriptor(obj, "write"); break; + case 64: fn = Object.getOwnPropertyDescriptor(obj, "persist_manager"); break; + case 65: fn = Object.getOwnPropertyDescriptor(obj, "persist_graph"); break; + case 66: fn = Object.getOwnPropertyDescriptor(obj, "persist_scorer"); break; + case 67: fn = Object.getOwnPropertyDescriptor(obj, "persist_new_channel"); break; + case 68: fn = Object.getOwnPropertyDescriptor(obj, "update_persisted_channel"); break; + case 69: fn = Object.getOwnPropertyDescriptor(obj, "archive_persisted_channel"); break; + case 70: fn = Object.getOwnPropertyDescriptor(obj, "filtered_block_connected"); break; + case 71: fn = Object.getOwnPropertyDescriptor(obj, "block_connected"); break; + case 72: fn = Object.getOwnPropertyDescriptor(obj, "block_disconnected"); break; + case 73: fn = Object.getOwnPropertyDescriptor(obj, "transactions_confirmed"); break; + case 74: fn = Object.getOwnPropertyDescriptor(obj, "transaction_unconfirmed"); break; + case 75: fn = Object.getOwnPropertyDescriptor(obj, "best_block_updated"); break; + case 76: fn = Object.getOwnPropertyDescriptor(obj, "get_relevant_txids"); break; + case 77: fn = Object.getOwnPropertyDescriptor(obj, "call"); break; + case 78: fn = Object.getOwnPropertyDescriptor(obj, "handle_event"); break; + case 79: fn = Object.getOwnPropertyDescriptor(obj, "process_pending_events"); break; + case 80: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg_events"); break; + case 81: fn = Object.getOwnPropertyDescriptor(obj, "handle_open_channel"); break; + case 82: fn = Object.getOwnPropertyDescriptor(obj, "handle_open_channel_v2"); break; + case 83: fn = Object.getOwnPropertyDescriptor(obj, "handle_accept_channel"); break; + case 84: fn = Object.getOwnPropertyDescriptor(obj, "handle_accept_channel_v2"); break; + case 85: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_created"); break; + case 86: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_signed"); break; + case 87: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_ready"); break; + case 88: fn = Object.getOwnPropertyDescriptor(obj, "handle_shutdown"); break; + case 89: fn = Object.getOwnPropertyDescriptor(obj, "handle_closing_signed"); break; + case 90: fn = Object.getOwnPropertyDescriptor(obj, "handle_stfu"); break; case 91: fn = Object.getOwnPropertyDescriptor(obj, "handle_tx_add_input"); break; case 92: fn = Object.getOwnPropertyDescriptor(obj, "handle_tx_add_output"); break; case 93: fn = Object.getOwnPropertyDescriptor(obj, "handle_tx_remove_input"); break; @@ -59502,45 +66094,48 @@ js_invoke = function(obj_ptr: number, fn_id: number, arg1: bigint|number, arg2: case 115: fn = Object.getOwnPropertyDescriptor(obj, "get_chain_hashes"); break; case 116: fn = Object.getOwnPropertyDescriptor(obj, "handle_message"); break; case 117: fn = Object.getOwnPropertyDescriptor(obj, "release_pending_messages"); break; - case 118: fn = Object.getOwnPropertyDescriptor(obj, "handle_node_announcement"); break; - case 119: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_announcement"); break; - case 120: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break; - case 121: fn = Object.getOwnPropertyDescriptor(obj, "get_next_channel_announcement"); break; - case 122: fn = Object.getOwnPropertyDescriptor(obj, "get_next_node_announcement"); break; - case 123: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break; - case 124: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_channel_range"); break; - case 125: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_short_channel_ids_end"); break; - case 126: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_channel_range"); break; - case 127: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_short_channel_ids"); break; - case 128: fn = Object.getOwnPropertyDescriptor(obj, "processing_queue_high"); break; - case 129: fn = Object.getOwnPropertyDescriptor(obj, "provided_node_features"); break; - case 130: fn = Object.getOwnPropertyDescriptor(obj, "provided_init_features"); break; - case 131: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_connections_needed"); break; - case 132: fn = Object.getOwnPropertyDescriptor(obj, "handle_onion_message"); break; - case 133: fn = Object.getOwnPropertyDescriptor(obj, "next_onion_message_for_peer"); break; - case 134: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break; - case 135: fn = Object.getOwnPropertyDescriptor(obj, "peer_disconnected"); break; - case 136: fn = Object.getOwnPropertyDescriptor(obj, "timer_tick_occurred"); break; - case 137: fn = Object.getOwnPropertyDescriptor(obj, "provided_node_features"); break; - case 138: fn = Object.getOwnPropertyDescriptor(obj, "provided_init_features"); break; - case 139: fn = Object.getOwnPropertyDescriptor(obj, "read"); break; - case 140: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break; - case 141: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg"); break; - case 142: fn = Object.getOwnPropertyDescriptor(obj, "provided_node_features"); break; - case 143: fn = Object.getOwnPropertyDescriptor(obj, "provided_init_features"); break; - case 144: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break; - case 145: fn = Object.getOwnPropertyDescriptor(obj, "read_custom_message"); break; - case 146: fn = Object.getOwnPropertyDescriptor(obj, "release_pending_custom_messages"); break; - case 147: fn = Object.getOwnPropertyDescriptor(obj, "send_data"); break; - case 148: fn = Object.getOwnPropertyDescriptor(obj, "disconnect_socket"); break; - case 149: fn = Object.getOwnPropertyDescriptor(obj, "eq"); break; - case 150: fn = Object.getOwnPropertyDescriptor(obj, "hash"); break; - case 151: fn = Object.getOwnPropertyDescriptor(obj, "write"); break; - case 152: fn = Object.getOwnPropertyDescriptor(obj, "select_confirmed_utxos"); break; - case 153: fn = Object.getOwnPropertyDescriptor(obj, "sign_psbt"); break; - case 154: fn = Object.getOwnPropertyDescriptor(obj, "list_confirmed_utxos"); break; - case 155: fn = Object.getOwnPropertyDescriptor(obj, "get_change_script"); break; + case 118: fn = Object.getOwnPropertyDescriptor(obj, "next_node_id"); break; + case 119: fn = Object.getOwnPropertyDescriptor(obj, "handle_node_announcement"); break; + case 120: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_announcement"); break; + case 121: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break; + case 122: fn = Object.getOwnPropertyDescriptor(obj, "get_next_channel_announcement"); break; + case 123: fn = Object.getOwnPropertyDescriptor(obj, "get_next_node_announcement"); break; + case 124: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break; + case 125: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_channel_range"); break; + case 126: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_short_channel_ids_end"); break; + case 127: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_channel_range"); break; + case 128: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_short_channel_ids"); break; + case 129: fn = Object.getOwnPropertyDescriptor(obj, "processing_queue_high"); break; + case 130: fn = Object.getOwnPropertyDescriptor(obj, "provided_node_features"); break; + case 131: fn = Object.getOwnPropertyDescriptor(obj, "provided_init_features"); break; + case 132: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_connections_needed"); break; + case 133: fn = Object.getOwnPropertyDescriptor(obj, "handle_onion_message"); break; + case 134: fn = Object.getOwnPropertyDescriptor(obj, "next_onion_message_for_peer"); break; + case 135: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break; + case 136: fn = Object.getOwnPropertyDescriptor(obj, "peer_disconnected"); break; + case 137: fn = Object.getOwnPropertyDescriptor(obj, "timer_tick_occurred"); break; + case 138: fn = Object.getOwnPropertyDescriptor(obj, "provided_node_features"); break; + case 139: fn = Object.getOwnPropertyDescriptor(obj, "provided_init_features"); break; + case 140: fn = Object.getOwnPropertyDescriptor(obj, "read"); break; + case 141: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break; + case 142: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg"); break; + case 143: fn = Object.getOwnPropertyDescriptor(obj, "provided_node_features"); break; + case 144: fn = Object.getOwnPropertyDescriptor(obj, "provided_init_features"); break; + case 145: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break; + case 146: fn = Object.getOwnPropertyDescriptor(obj, "read_custom_message"); break; + case 147: fn = Object.getOwnPropertyDescriptor(obj, "release_pending_custom_messages"); break; + case 148: fn = Object.getOwnPropertyDescriptor(obj, "send_data"); break; + case 149: fn = Object.getOwnPropertyDescriptor(obj, "disconnect_socket"); break; + case 150: fn = Object.getOwnPropertyDescriptor(obj, "eq"); break; + case 151: fn = Object.getOwnPropertyDescriptor(obj, "hash"); break; + case 152: fn = Object.getOwnPropertyDescriptor(obj, "sign_invoice"); break; + case 153: fn = Object.getOwnPropertyDescriptor(obj, "sign_invoice_request"); break; + case 154: fn = Object.getOwnPropertyDescriptor(obj, "write"); break; + case 155: fn = Object.getOwnPropertyDescriptor(obj, "select_confirmed_utxos"); break; case 156: fn = Object.getOwnPropertyDescriptor(obj, "sign_psbt"); break; + case 157: fn = Object.getOwnPropertyDescriptor(obj, "list_confirmed_utxos"); break; + case 158: fn = Object.getOwnPropertyDescriptor(obj, "get_change_script"); break; + case 159: fn = Object.getOwnPropertyDescriptor(obj, "sign_psbt"); break; default: console.error("Got unknown function call with id " + fn_id + " from C!"); throw new Error("Got unknown function call with id " + fn_id + " from C!");