2 import * as version from './version.mjs';
3 import { UInt5, WitnessVersion } from './structs/CommonBase.mjs';
5 const imports: any = {};
8 var js_objs: Array<WeakRef<object>> = [];
9 var js_invoke: Function;
10 var getRandomValues: Function;
12 imports.wasi_snapshot_preview1 = {
13 "fd_write": (fd: number, iovec_array_ptr: number, iovec_array_len: number, bytes_written_ptr: number) => {
14 // This should generally only be used to print panic messages
15 const ptr_len_view = new Uint32Array(wasm.memory.buffer, iovec_array_ptr, iovec_array_len * 2);
16 var bytes_written = 0;
17 for (var i = 0; i < iovec_array_len; i++) {
18 const bytes_view = new Uint8Array(wasm.memory.buffer, ptr_len_view[i*2], ptr_len_view[i*2+1]);
19 console.log("[fd " + fd + "]: " + String.fromCharCode(...bytes_view));
20 bytes_written += ptr_len_view[i*2+1]!;
22 const written_view = new Uint32Array(wasm.memory.buffer, bytes_written_ptr, 1);
23 written_view[0] = bytes_written;
26 "fd_close": (_fd: number) => {
27 // This is not generally called, but may be referenced in debug builds
28 console.log("wasi_snapshot_preview1:fd_close");
29 return 58; // Not Supported
31 "fd_seek": (_fd: number, _offset: bigint, _whence: number, _new_offset: number) => {
32 // This is not generally called, but may be referenced in debug builds
33 console.log("wasi_snapshot_preview1:fd_seek");
34 return 58; // Not Supported
36 "random_get": (buf_ptr: number, buf_len: number) => {
37 const buf = new Uint8Array(wasm.memory.buffer, buf_ptr, buf_len);
41 "environ_sizes_get": (environ_var_count_ptr: number, environ_len_ptr: number) => {
42 // This is called before fd_write to format + print panic messages
43 const out_count_view = new Uint32Array(wasm.memory.buffer, environ_var_count_ptr, 1);
44 out_count_view[0] = 0;
45 const out_len_view = new Uint32Array(wasm.memory.buffer, environ_len_ptr, 1);
49 "environ_get": (_environ_ptr: number, _environ_buf_ptr: number) => {
50 // This is called before fd_write to format + print panic messages,
51 // but only if we have variables in environ_sizes_get, so shouldn't ever actually happen!
52 console.log("wasi_snapshot_preview1:environ_get");
53 return 58; // Note supported - we said there were 0 environment entries!
56 console.log("wasi_snapshot_preview1:proc_exit");
61 let isWasmInitialized: boolean = false;
63 async function finishInitializeWasm(wasmInstance: WebAssembly.Instance) {
64 if (typeof crypto === "undefined") {
65 var crypto_import = (await import('crypto')).webcrypto;
66 getRandomValues = crypto_import.getRandomValues.bind(crypto_import);
68 getRandomValues = crypto.getRandomValues.bind(crypto);
71 wasm = wasmInstance.exports;
72 if (!wasm.test_bigint_pass_deadbeef0badf00d(BigInt("0xdeadbeef0badf00d"))) {
73 throw new Error("Currently need BigInt-as-u64 support, try ----experimental-wasm-bigint");
76 if (decodeString(wasm.TS_get_lib_version_string()) !== version.get_ldk_java_bindings_version())
77 throw new Error("Compiled LDK library and LDK class files do not match");
78 // Fetching the LDK versions from C also checks that the header and binaries match
79 const c_bindings_ver: number = wasm.TS_get_ldk_c_bindings_version();
80 const ldk_ver: number = wasm.TS_get_ldk_version();
81 if (c_bindings_ver == 0)
82 throw new Error("LDK version did not match the header we built against");
84 throw new Error("LDK C bindings version did not match the header we built against");
85 const c_bindings_version: string = decodeString(c_bindings_ver)
86 const ldk_version: string = decodeString(ldk_ver);
87 console.log("Loaded LDK-Java Bindings with LDK " + ldk_version + " and LDK-C-Bindings " + c_bindings_version);
89 isWasmInitialized = true;
92 const fn_list = ["uuuuuu", "buuuuu", "bbuuuu", "bbbuuu", "bbbbuu",
93 "bbbbbb", "ubuubu", "ubuuuu", "ubbuuu", "uubuuu", "uububu", "ububuu"];
96 export async function initializeWasmFromUint8Array(wasmBinary: Uint8Array) {
97 for (const fn of fn_list) { imports.env["js_invoke_function_" + fn] = js_invoke; }
98 const { instance: wasmInstance } = await WebAssembly.instantiate(wasmBinary, imports);
99 await finishInitializeWasm(wasmInstance);
103 export async function initializeWasmFetch(uri: string) {
104 for (const fn of fn_list) { imports.env["js_invoke_function_" + fn] = js_invoke; }
105 const stream = fetch(uri);
106 const { instance: wasmInstance } = await WebAssembly.instantiateStreaming(stream, imports);
107 await finishInitializeWasm(wasmInstance);
112 export function uint5ArrToBytes(inputArray: Array<UInt5>): Uint8Array {
113 const arr = new Uint8Array(inputArray.length);
114 for (var i = 0; i < inputArray.length; i++) {
115 arr[i] = inputArray[i]!.getVal();
121 export function WitnessVersionArrToBytes(inputArray: Array<WitnessVersion>): Uint8Array {
122 const arr = new Uint8Array(inputArray.length);
123 for (var i = 0; i < inputArray.length; i++) {
124 arr[i] = inputArray[i]!.getVal();
132 export function encodeUint128 (inputVal: bigint): number {
133 if (inputVal >= 0x10000000000000000000000000000000n) throw "U128s cannot exceed 128 bits";
134 const cArrayPointer = wasm.TS_malloc(16 + 8);
135 const arrayLengthView = new BigUint64Array(wasm.memory.buffer, cArrayPointer, 1);
136 arrayLengthView[0] = BigInt(16);
137 const arrayMemoryView = new Uint8Array(wasm.memory.buffer, cArrayPointer + 8, 16);
138 for (var i = 0; i < 16; i++) arrayMemoryView[i] = Number((inputVal >> BigInt(i)*8n) & 0xffn);
139 return cArrayPointer;
142 export function encodeUint8Array (inputArray: Uint8Array|null): number {
143 if (inputArray == null) return 0;
144 const cArrayPointer = wasm.TS_malloc(inputArray.length + 8);
145 const arrayLengthView = new BigUint64Array(wasm.memory.buffer, cArrayPointer, 1);
146 arrayLengthView[0] = BigInt(inputArray.length);
147 const arrayMemoryView = new Uint8Array(wasm.memory.buffer, cArrayPointer + 8, inputArray.length);
148 arrayMemoryView.set(inputArray);
149 return cArrayPointer;
152 export function encodeUint16Array (inputArray: Uint16Array|Array<number>|null): number {
153 if (inputArray == null) return 0;
154 const cArrayPointer = wasm.TS_malloc((inputArray.length + 4) * 2);
155 const arrayLengthView = new BigUint64Array(wasm.memory.buffer, cArrayPointer, 1);
156 arrayLengthView[0] = BigInt(inputArray.length);
157 const arrayMemoryView = new Uint16Array(wasm.memory.buffer, cArrayPointer + 8, inputArray.length);
158 arrayMemoryView.set(inputArray);
159 return cArrayPointer;
162 export function encodeUint32Array (inputArray: Uint32Array|Array<number>|null): number {
163 if (inputArray == null) return 0;
164 const cArrayPointer = wasm.TS_malloc((inputArray.length + 2) * 4);
165 const arrayLengthView = new BigUint64Array(wasm.memory.buffer, cArrayPointer, 1);
166 arrayLengthView[0] = BigInt(inputArray.length);
167 const arrayMemoryView = new Uint32Array(wasm.memory.buffer, cArrayPointer + 8, inputArray.length);
168 arrayMemoryView.set(inputArray);
169 return cArrayPointer;
172 export function encodeUint64Array (inputArray: BigUint64Array|Array<bigint>|null): number {
173 if (inputArray == null) return 0;
174 const cArrayPointer = wasm.TS_malloc((inputArray.length + 1) * 8);
175 const arrayMemoryView = new BigUint64Array(wasm.memory.buffer, cArrayPointer, inputArray.length + 1);
176 arrayMemoryView[0] = BigInt(inputArray.length);
177 arrayMemoryView.set(inputArray, 1);
178 return cArrayPointer;
182 export function check_arr_len(arr: Uint8Array|null, len: number): Uint8Array|null {
183 if (arr !== null && arr.length != len) { throw new Error("Expected array of length " + len + " got " + arr.length); }
188 export function check_16_arr_len(arr: Uint16Array|null, len: number): Uint16Array|null {
189 if (arr !== null && arr.length != len) { throw new Error("Expected array of length " + len + " got " + arr.length); }
194 export function getArrayLength(arrayPointer: number): number {
195 const arraySizeViewer = new BigUint64Array(wasm.memory.buffer, arrayPointer, 1);
196 const len = arraySizeViewer[0]!;
197 if (len >= (2n ** 32n)) throw new Error("Bogus Array Size");
198 return Number(len % (2n ** 32n));
201 export function decodeUint128 (arrayPointer: number, free = true): bigint {
202 const arraySize = getArrayLength(arrayPointer);
203 if (arraySize != 16) throw "Need 16 bytes for a uint128";
204 const actualArrayViewer = new Uint8Array(wasm.memory.buffer, arrayPointer + 8, arraySize);
206 for (var i = 0; i < 16; i++) {
208 val |= BigInt(actualArrayViewer[i]!);
211 wasm.TS_free(arrayPointer);
216 export function decodeUint8Array (arrayPointer: number, free = true): Uint8Array {
217 const arraySize = getArrayLength(arrayPointer);
218 const actualArrayViewer = new Uint8Array(wasm.memory.buffer, arrayPointer + 8, arraySize);
219 // Clone the contents, TODO: In the future we should wrap the Viewer in a class that
220 // will free the underlying memory when it becomes unreachable instead of copying here.
221 // Note that doing so may have edge-case interactions with memory resizing (invalidating the buffer).
222 const actualArray = actualArrayViewer.slice(0, arraySize);
224 wasm.TS_free(arrayPointer);
229 export function decodeUint16Array (arrayPointer: number, free = true): Uint16Array {
230 const arraySize = getArrayLength(arrayPointer);
231 const actualArrayViewer = new Uint16Array(wasm.memory.buffer, arrayPointer + 8, arraySize);
232 // Clone the contents, TODO: In the future we should wrap the Viewer in a class that
233 // will free the underlying memory when it becomes unreachable instead of copying here.
234 // Note that doing so may have edge-case interactions with memory resizing (invalidating the buffer).
235 const actualArray = actualArrayViewer.slice(0, arraySize);
237 wasm.TS_free(arrayPointer);
242 export function decodeUint64Array (arrayPointer: number, free = true): bigint[] {
243 const arraySize = getArrayLength(arrayPointer);
244 const actualArrayViewer = new BigUint64Array(
245 wasm.memory.buffer, // value
246 arrayPointer + 8, // offset (ignoring length bytes)
247 arraySize // uint32 count
249 // Clone the contents, TODO: In the future we should wrap the Viewer in a class that
250 // will free the underlying memory when it becomes unreachable instead of copying here.
251 const actualArray = new Array(arraySize);
252 for (var i = 0; i < arraySize; i++) actualArray[i] = actualArrayViewer[i];
254 wasm.TS_free(arrayPointer);
259 export function freeWasmMemory(pointer: number) { wasm.TS_free(pointer); }
262 export function getU64ArrayElem(arrayPointer: number, idx: number): bigint {
263 const actualArrayViewer = new BigUint64Array(wasm.memory.buffer, arrayPointer + 8, idx + 1);
264 return actualArrayViewer[idx]!;
268 export function getU32ArrayElem(arrayPointer: number, idx: number): number {
269 const actualArrayViewer = new Uint32Array(wasm.memory.buffer, arrayPointer + 8, idx + 1);
270 return actualArrayViewer[idx]!;
274 export function getU8ArrayElem(arrayPointer: number, idx: number): number {
275 const actualArrayViewer = new Uint8Array(wasm.memory.buffer, arrayPointer + 8, idx + 1);
276 return actualArrayViewer[idx]!;
281 export function encodeString(str: string): number {
282 const charArray = new TextEncoder().encode(str);
283 return encodeUint8Array(charArray);
287 export function decodeString(stringPointer: number, free = true): string {
288 const arraySize = getArrayLength(stringPointer);
289 const memoryView = new Uint8Array(wasm.memory.buffer, stringPointer + 8, arraySize);
290 const result = new TextDecoder("utf-8").decode(memoryView);
293 wasm.TS_free(stringPointer);
299 /* @internal */ export function getRemainingAllocationCount(): number { return 0; }
300 /* @internal */ export function debugPrintRemainingAllocs() { }
303 * An enum which can either contain a or not
305 export enum COption_NoneZ {
307 * When we're in this state, this COption_NoneZ contains a
309 LDKCOption_NoneZ_Some,
311 * When we're in this state, this COption_NoneZ contains nothing
313 LDKCOption_NoneZ_None,
318 * An enum representing the status of a channel monitor update persistence.
320 export enum ChannelMonitorUpdateStatus {
322 * The update has been durably persisted and all copies of the relevant [`ChannelMonitor`]
325 This includes performing any `fsync()` calls required to ensure the update is guaranteed to
326 be available on restart even if the application crashes.
328 LDKChannelMonitorUpdateStatus_Completed,
330 * Used to indicate a temporary failure (eg connection to a watchtower or remote backup of
331 our state failed, but is expected to succeed at some point in the future).
333 Such a failure will \"freeze\" a channel, preventing us from revoking old states or
334 submitting new commitment transactions to the counterparty. Once the update(s) which failed
335 have been successfully applied, a [`MonitorEvent::Completed`] can be used to restore the
336 channel to an operational state.
338 Note that a given [`ChannelManager`] will *never* re-generate a [`ChannelMonitorUpdate`].
339 If you return this error you must ensure that it is written to disk safely before writing
340 the latest [`ChannelManager`] state, or you should return [`PermanentFailure`] instead.
342 Even when a channel has been \"frozen\", updates to the [`ChannelMonitor`] can continue to
343 occur (e.g. if an inbound HTLC which we forwarded was claimed upstream, resulting in us
344 attempting to claim it on this channel) and those updates must still be persisted.
346 No updates to the channel will be made which could invalidate other [`ChannelMonitor`]s
347 until a [`MonitorEvent::Completed`] is provided, even if you return no error on a later
348 monitor update for the same channel.
350 For deployments where a copy of ChannelMonitors and other local state are backed up in a
351 remote location (with local copies persisted immediately), it is anticipated that all
352 updates will return [`InProgress`] until the remote copies could be updated.
354 [`PermanentFailure`]: ChannelMonitorUpdateStatus::PermanentFailure
355 [`InProgress`]: ChannelMonitorUpdateStatus::InProgress
356 [`ChannelManager`]: crate::ln::channelmanager::ChannelManager
358 LDKChannelMonitorUpdateStatus_InProgress,
360 * Used to indicate no further channel monitor updates will be allowed (likely a disk failure
361 or a remote copy of this [`ChannelMonitor`] is no longer reachable and thus not updatable).
363 When this is returned, [`ChannelManager`] will force-close the channel but *not* broadcast
364 our current commitment transaction. This avoids a dangerous case where a local disk failure
365 (e.g. the Linux-default remounting of the disk as read-only) causes [`PermanentFailure`]s
366 for all monitor updates. If we were to broadcast our latest commitment transaction and then
367 restart, we could end up reading a previous [`ChannelMonitor`] and [`ChannelManager`],
368 revoking our now-broadcasted state before seeing it confirm and losing all our funds.
370 Note that this is somewhat of a tradeoff - if the disk is really gone and we may have lost
371 the data permanently, we really should broadcast immediately. If the data can be recovered
372 with manual intervention, we'd rather close the channel, rejecting future updates to it,
373 and broadcast the latest state only if we have HTLCs to claim which are timing out (which
374 we do as long as blocks are connected).
376 In order to broadcast the latest local commitment transaction, you'll need to call
377 [`ChannelMonitor::get_latest_holder_commitment_txn`] and broadcast the resulting
378 transactions once you've safely ensured no further channel updates can be generated by your
381 Note that at least one final [`ChannelMonitorUpdate`] may still be provided, which must
382 still be processed by a running [`ChannelMonitor`]. This final update will mark the
383 [`ChannelMonitor`] as finalized, ensuring no further updates (e.g. revocation of the latest
384 commitment transaction) are allowed.
386 Note that even if you return a [`PermanentFailure`] due to unavailability of secondary
387 [`ChannelMonitor`] copies, you should still make an attempt to store the update where
388 possible to ensure you can claim HTLC outputs on the latest commitment transaction
391 In case of distributed watchtowers deployment, the new version must be written to disk, as
392 state may have been stored but rejected due to a block forcing a commitment broadcast. This
393 storage is used to claim outputs of rejected state confirmed onchain by another watchtower,
394 lagging behind on block processing.
396 [`PermanentFailure`]: ChannelMonitorUpdateStatus::PermanentFailure
397 [`ChannelManager`]: crate::ln::channelmanager::ChannelManager
399 LDKChannelMonitorUpdateStatus_PermanentFailure,
404 * An enum that represents the speed at which we want a transaction to confirm used for feerate
407 export enum ConfirmationTarget {
409 * We are happy with this transaction confirming slowly when feerate drops some.
411 LDKConfirmationTarget_Background,
413 * We'd like this transaction to confirm without major delay, but 12-18 blocks is fine.
415 LDKConfirmationTarget_Normal,
417 * We'd like this transaction to confirm in the next few blocks.
419 LDKConfirmationTarget_HighPriority,
424 * Errors that may occur when constructing a new [`RawInvoice`] or [`Invoice`]
426 export enum CreationError {
428 * The supplied description string was longer than 639 __bytes__ (see [`Description::new`])
430 LDKCreationError_DescriptionTooLong,
432 * The specified route has too many hops and can't be encoded
434 LDKCreationError_RouteTooLong,
436 * The Unix timestamp of the supplied date is less than zero or greater than 35-bits
438 LDKCreationError_TimestampOutOfBounds,
440 * The supplied millisatoshi amount was greater than the total bitcoin supply.
442 LDKCreationError_InvalidAmount,
444 * Route hints were required for this invoice and were missing. Applies to
447 [phantom invoices]: crate::utils::create_phantom_invoice
449 LDKCreationError_MissingRouteHints,
451 * The provided `min_final_cltv_expiry_delta` was less than [`MIN_FINAL_CLTV_EXPIRY_DELTA`].
453 [`MIN_FINAL_CLTV_EXPIRY_DELTA`]: lightning::ln::channelmanager::MIN_FINAL_CLTV_EXPIRY_DELTA
455 LDKCreationError_MinFinalCltvExpiryDeltaTooShort,
460 * Enum representing the crypto currencies (or networks) supported by this library
462 export enum Currency {
470 LDKCurrency_BitcoinTestnet,
487 * This enum is used to specify which error data to send to peers when failing back an HTLC
488 * using [`ChannelManager::fail_htlc_backwards_with_reason`].
490 * For more info on failure codes, see <https://github.com/lightning/bolts/blob/master/04-onion-routing.md#failure-messages>.
492 export enum FailureCode {
494 * We had a temporary error processing the payment. Useful if no other error codes fit
495 and you want to indicate that the payer may want to retry.
497 LDKFailureCode_TemporaryNodeFailure,
499 * We have a required feature which was not in this onion. For example, you may require
500 some additional metadata that was not provided with this payment.
502 LDKFailureCode_RequiredNodeFeatureMissing,
504 * You may wish to use this when a `payment_preimage` is unknown, or the CLTV expiry of
505 the HTLC is too close to the current block height for safe handling.
506 Using this failure code in [`ChannelManager::fail_htlc_backwards_with_reason`] is
507 equivalent to calling [`ChannelManager::fail_htlc_backwards`].
509 LDKFailureCode_IncorrectOrUnknownPaymentDetails,
514 * Describes the type of HTLC claim as determined by analyzing the witness.
516 export enum HTLCClaim {
518 * Claims an offered output on a commitment transaction through the timeout path.
520 LDKHTLCClaim_OfferedTimeout,
522 * Claims an offered output on a commitment transaction through the success path.
524 LDKHTLCClaim_OfferedPreimage,
526 * Claims an accepted output on a commitment transaction through the timeout path.
528 LDKHTLCClaim_AcceptedTimeout,
530 * Claims an accepted output on a commitment transaction through the success path.
532 LDKHTLCClaim_AcceptedPreimage,
534 * Claims an offered/accepted output on a commitment transaction through the revocation path.
536 LDKHTLCClaim_Revocation,
541 * Represents an IO Error. Note that some information is lost in the conversion from Rust.
543 export enum IOError {
545 LDKIOError_PermissionDenied,
546 LDKIOError_ConnectionRefused,
547 LDKIOError_ConnectionReset,
548 LDKIOError_ConnectionAborted,
549 LDKIOError_NotConnected,
550 LDKIOError_AddrInUse,
551 LDKIOError_AddrNotAvailable,
552 LDKIOError_BrokenPipe,
553 LDKIOError_AlreadyExists,
554 LDKIOError_WouldBlock,
555 LDKIOError_InvalidInput,
556 LDKIOError_InvalidData,
558 LDKIOError_WriteZero,
559 LDKIOError_Interrupted,
561 LDKIOError_UnexpectedEof,
566 * An enum representing the available verbosity levels of the logger.
570 * Designates extremely verbose information, including gossip-induced messages
574 * Designates very low priority, often extremely verbose, information
578 * Designates lower priority information
582 * Designates useful information
586 * Designates hazardous situations
590 * Designates very serious errors
597 * An enum representing the possible Bitcoin or test networks which we can run on
599 export enum Network {
601 * The main Bitcoin blockchain.
605 * The testnet3 blockchain.
609 * A local test blockchain.
613 * A blockchain on which blocks are signed instead of mined.
620 * The reason the payment failed. Used in [`Event::PaymentFailed`].
622 export enum PaymentFailureReason {
624 * The intended recipient rejected our payment.
626 LDKPaymentFailureReason_RecipientRejected,
628 * The user chose to abandon this payment by calling [`ChannelManager::abandon_payment`].
630 [`ChannelManager::abandon_payment`]: crate::ln::channelmanager::ChannelManager::abandon_payment
632 LDKPaymentFailureReason_UserAbandoned,
634 * We exhausted all of our retry attempts while trying to send the payment, or we
635 exhausted the [`Retry::Timeout`] if the user set one. If at any point a retry
636 attempt failed while being forwarded along the path, an [`Event::PaymentPathFailed`] will
637 have come before this.
639 [`Retry::Timeout`]: crate::ln::channelmanager::Retry::Timeout
641 LDKPaymentFailureReason_RetriesExhausted,
643 * The payment expired while retrying, based on the provided
644 [`PaymentParameters::expiry_time`].
646 [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time
648 LDKPaymentFailureReason_PaymentExpired,
650 * We failed to find a route while retrying the payment.
652 LDKPaymentFailureReason_RouteNotFound,
654 * This error should generally never happen. This likely means that there is a problem with
657 LDKPaymentFailureReason_UnexpectedError,
662 * Specifies the recipient of an invoice.
664 * This indicates to [`NodeSigner::sign_invoice`] what node secret key should be used to sign
667 export enum Recipient {
669 * The invoice should be signed with the local node secret key.
673 * The invoice should be signed with the phantom node secret key. This secret key must be the
674 same for all nodes participating in the [phantom node payment].
676 [phantom node payment]: PhantomKeysManager
678 LDKRecipient_PhantomNode,
683 * Indicates an immediate error on [`ChannelManager::send_payment`]. Further errors may be
684 * surfaced later via [`Event::PaymentPathFailed`] and [`Event::PaymentFailed`].
686 * [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
687 * [`Event::PaymentPathFailed`]: crate::events::Event::PaymentPathFailed
688 * [`Event::PaymentFailed`]: crate::events::Event::PaymentFailed
690 export enum RetryableSendFailure {
692 * The provided [`PaymentParameters::expiry_time`] indicated that the payment has expired. Note
693 that this error is *not* caused by [`Retry::Timeout`].
695 [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time
697 LDKRetryableSendFailure_PaymentExpired,
699 * We were unable to find a route to the destination.
701 LDKRetryableSendFailure_RouteNotFound,
703 * Indicates that a payment for the provided [`PaymentId`] is already in-flight and has not
704 yet completed (i.e. generated an [`Event::PaymentSent`] or [`Event::PaymentFailed`]).
706 [`PaymentId`]: crate::ln::channelmanager::PaymentId
707 [`Event::PaymentSent`]: crate::events::Event::PaymentSent
708 [`Event::PaymentFailed`]: crate::events::Event::PaymentFailed
710 LDKRetryableSendFailure_DuplicatePayment,
715 * Represents an error returned from libsecp256k1 during validation of some secp256k1 data
717 export enum Secp256k1Error {
719 * Signature failed verification
721 LDKSecp256k1Error_IncorrectSignature,
723 * Badly sized message ("messages" are actually fixed-sized digests; see the MESSAGE_SIZE constant)
725 LDKSecp256k1Error_InvalidMessage,
729 LDKSecp256k1Error_InvalidPublicKey,
733 LDKSecp256k1Error_InvalidSignature,
737 LDKSecp256k1Error_InvalidSecretKey,
741 LDKSecp256k1Error_InvalidSharedSecret,
745 LDKSecp256k1Error_InvalidRecoveryId,
747 * Invalid tweak for add_assign or mul_assign
749 LDKSecp256k1Error_InvalidTweak,
751 * Didn't pass enough memory to context creation with preallocated memory
753 LDKSecp256k1Error_NotEnoughMemory,
755 * Bad set of public keys.
757 LDKSecp256k1Error_InvalidPublicKeySum,
759 * The only valid parity values are 0 or 1.
761 LDKSecp256k1Error_InvalidParityValue,
766 * Errors that may occur when converting a [`RawInvoice`] to an [`Invoice`]. They relate to the
767 * requirements sections in BOLT #11
769 export enum SemanticError {
771 * The invoice is missing the mandatory payment hash
773 LDKSemanticError_NoPaymentHash,
775 * The invoice has multiple payment hashes which isn't allowed
777 LDKSemanticError_MultiplePaymentHashes,
779 * No description or description hash are part of the invoice
781 LDKSemanticError_NoDescription,
783 * The invoice contains multiple descriptions and/or description hashes which isn't allowed
785 LDKSemanticError_MultipleDescriptions,
787 * The invoice is missing the mandatory payment secret, which all modern lightning nodes
790 LDKSemanticError_NoPaymentSecret,
792 * The invoice contains multiple payment secrets
794 LDKSemanticError_MultiplePaymentSecrets,
796 * The invoice's features are invalid
798 LDKSemanticError_InvalidFeatures,
800 * The recovery id doesn't fit the signature/pub key
802 LDKSemanticError_InvalidRecoveryId,
804 * The invoice's signature is invalid
806 LDKSemanticError_InvalidSignature,
808 * The invoice's amount was not a whole number of millisatoshis
810 LDKSemanticError_ImpreciseAmount,
815 * SI prefixes for the human readable part
817 export enum SiPrefix {
838 * An error when accessing the chain via [`UtxoLookup`].
840 export enum UtxoLookupError {
842 * The requested chain is unknown.
844 LDKUtxoLookupError_UnknownChain,
846 * The requested transaction doesn't exist or hasn't confirmed.
848 LDKUtxoLookupError_UnknownTx,
851 // struct LDKThirtyTwoBytes BigEndianScalar_get_bytes (struct LDKBigEndianScalar* thing)
853 export function BigEndianScalar_get_bytes(thing: bigint): number {
854 if(!isWasmInitialized) {
855 throw new Error("initializeWasm() must be awaited first!");
857 const nativeResponseValue = wasm.TS_BigEndianScalar_get_bytes(thing);
858 return nativeResponseValue;
860 // static void BigEndianScalar_free (struct LDKBigEndianScalar thing)
862 export function BigEndianScalar_free(thing: bigint): void {
863 if(!isWasmInitialized) {
864 throw new Error("initializeWasm() must be awaited first!");
866 const nativeResponseValue = wasm.TS_BigEndianScalar_free(thing);
867 // debug statements here
870 export class LDKBech32Error {
871 protected constructor() {}
874 export function LDKBech32Error_ty_from_ptr(ptr: bigint): number {
875 if(!isWasmInitialized) {
876 throw new Error("initializeWasm() must be awaited first!");
878 const nativeResponseValue = wasm.TS_LDKBech32Error_ty_from_ptr(ptr);
879 return nativeResponseValue;
882 export function LDKBech32Error_InvalidChar_get_invalid_char(ptr: bigint): number {
883 if(!isWasmInitialized) {
884 throw new Error("initializeWasm() must be awaited first!");
886 const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidChar_get_invalid_char(ptr);
887 return nativeResponseValue;
890 export function LDKBech32Error_InvalidData_get_invalid_data(ptr: bigint): number {
891 if(!isWasmInitialized) {
892 throw new Error("initializeWasm() must be awaited first!");
894 const nativeResponseValue = wasm.TS_LDKBech32Error_InvalidData_get_invalid_data(ptr);
895 return nativeResponseValue;
897 // struct LDKCVec_u8Z TxOut_get_script_pubkey (struct LDKTxOut* thing)
899 export function TxOut_get_script_pubkey(thing: bigint): number {
900 if(!isWasmInitialized) {
901 throw new Error("initializeWasm() must be awaited first!");
903 const nativeResponseValue = wasm.TS_TxOut_get_script_pubkey(thing);
904 return nativeResponseValue;
906 // uint64_t TxOut_get_value (struct LDKTxOut* thing)
908 export function TxOut_get_value(thing: bigint): bigint {
909 if(!isWasmInitialized) {
910 throw new Error("initializeWasm() must be awaited first!");
912 const nativeResponseValue = wasm.TS_TxOut_get_value(thing);
913 return nativeResponseValue;
916 export class LDKCOption_DurationZ {
917 protected constructor() {}
920 export function LDKCOption_DurationZ_ty_from_ptr(ptr: bigint): number {
921 if(!isWasmInitialized) {
922 throw new Error("initializeWasm() must be awaited first!");
924 const nativeResponseValue = wasm.TS_LDKCOption_DurationZ_ty_from_ptr(ptr);
925 return nativeResponseValue;
928 export function LDKCOption_DurationZ_Some_get_some(ptr: bigint): bigint {
929 if(!isWasmInitialized) {
930 throw new Error("initializeWasm() must be awaited first!");
932 const nativeResponseValue = wasm.TS_LDKCOption_DurationZ_Some_get_some(ptr);
933 return nativeResponseValue;
936 export class LDKCOption_u64Z {
937 protected constructor() {}
940 export function LDKCOption_u64Z_ty_from_ptr(ptr: bigint): number {
941 if(!isWasmInitialized) {
942 throw new Error("initializeWasm() must be awaited first!");
944 const nativeResponseValue = wasm.TS_LDKCOption_u64Z_ty_from_ptr(ptr);
945 return nativeResponseValue;
948 export function LDKCOption_u64Z_Some_get_some(ptr: bigint): bigint {
949 if(!isWasmInitialized) {
950 throw new Error("initializeWasm() must be awaited first!");
952 const nativeResponseValue = wasm.TS_LDKCOption_u64Z_Some_get_some(ptr);
953 return nativeResponseValue;
956 export class LDKAPIError {
957 protected constructor() {}
960 export function LDKAPIError_ty_from_ptr(ptr: bigint): number {
961 if(!isWasmInitialized) {
962 throw new Error("initializeWasm() must be awaited first!");
964 const nativeResponseValue = wasm.TS_LDKAPIError_ty_from_ptr(ptr);
965 return nativeResponseValue;
968 export function LDKAPIError_APIMisuseError_get_err(ptr: bigint): number {
969 if(!isWasmInitialized) {
970 throw new Error("initializeWasm() must be awaited first!");
972 const nativeResponseValue = wasm.TS_LDKAPIError_APIMisuseError_get_err(ptr);
973 return nativeResponseValue;
976 export function LDKAPIError_FeeRateTooHigh_get_err(ptr: bigint): number {
977 if(!isWasmInitialized) {
978 throw new Error("initializeWasm() must be awaited first!");
980 const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_err(ptr);
981 return nativeResponseValue;
984 export function LDKAPIError_FeeRateTooHigh_get_feerate(ptr: bigint): number {
985 if(!isWasmInitialized) {
986 throw new Error("initializeWasm() must be awaited first!");
988 const nativeResponseValue = wasm.TS_LDKAPIError_FeeRateTooHigh_get_feerate(ptr);
989 return nativeResponseValue;
992 export function LDKAPIError_InvalidRoute_get_err(ptr: bigint): number {
993 if(!isWasmInitialized) {
994 throw new Error("initializeWasm() must be awaited first!");
996 const nativeResponseValue = wasm.TS_LDKAPIError_InvalidRoute_get_err(ptr);
997 return nativeResponseValue;
1000 export function LDKAPIError_ChannelUnavailable_get_err(ptr: bigint): number {
1001 if(!isWasmInitialized) {
1002 throw new Error("initializeWasm() must be awaited first!");
1004 const nativeResponseValue = wasm.TS_LDKAPIError_ChannelUnavailable_get_err(ptr);
1005 return nativeResponseValue;
1008 export function LDKAPIError_IncompatibleShutdownScript_get_script(ptr: bigint): bigint {
1009 if(!isWasmInitialized) {
1010 throw new Error("initializeWasm() must be awaited first!");
1012 const nativeResponseValue = wasm.TS_LDKAPIError_IncompatibleShutdownScript_get_script(ptr);
1013 return nativeResponseValue;
1015 // void CResult_NoneAPIErrorZ_get_ok(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
1017 export function CResult_NoneAPIErrorZ_get_ok(owner: bigint): void {
1018 if(!isWasmInitialized) {
1019 throw new Error("initializeWasm() must be awaited first!");
1021 const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_ok(owner);
1022 // debug statements here
1024 // struct LDKAPIError CResult_NoneAPIErrorZ_get_err(LDKCResult_NoneAPIErrorZ *NONNULL_PTR owner);
1026 export function CResult_NoneAPIErrorZ_get_err(owner: bigint): bigint {
1027 if(!isWasmInitialized) {
1028 throw new Error("initializeWasm() must be awaited first!");
1030 const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_get_err(owner);
1031 return nativeResponseValue;
1034 export class LDKCOption_CVec_u8ZZ {
1035 protected constructor() {}
1038 export function LDKCOption_CVec_u8ZZ_ty_from_ptr(ptr: bigint): number {
1039 if(!isWasmInitialized) {
1040 throw new Error("initializeWasm() must be awaited first!");
1042 const nativeResponseValue = wasm.TS_LDKCOption_CVec_u8ZZ_ty_from_ptr(ptr);
1043 return nativeResponseValue;
1046 export function LDKCOption_CVec_u8ZZ_Some_get_some(ptr: bigint): number {
1047 if(!isWasmInitialized) {
1048 throw new Error("initializeWasm() must be awaited first!");
1050 const nativeResponseValue = wasm.TS_LDKCOption_CVec_u8ZZ_Some_get_some(ptr);
1051 return nativeResponseValue;
1054 export class LDKDecodeError {
1055 protected constructor() {}
1058 export function LDKDecodeError_ty_from_ptr(ptr: bigint): number {
1059 if(!isWasmInitialized) {
1060 throw new Error("initializeWasm() must be awaited first!");
1062 const nativeResponseValue = wasm.TS_LDKDecodeError_ty_from_ptr(ptr);
1063 return nativeResponseValue;
1066 export function LDKDecodeError_Io_get_io(ptr: bigint): IOError {
1067 if(!isWasmInitialized) {
1068 throw new Error("initializeWasm() must be awaited first!");
1070 const nativeResponseValue = wasm.TS_LDKDecodeError_Io_get_io(ptr);
1071 return nativeResponseValue;
1073 // struct LDKRecipientOnionFields CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR owner);
1075 export function CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(owner: bigint): bigint {
1076 if(!isWasmInitialized) {
1077 throw new Error("initializeWasm() must be awaited first!");
1079 const nativeResponseValue = wasm.TS_CResult_RecipientOnionFieldsDecodeErrorZ_get_ok(owner);
1080 return nativeResponseValue;
1082 // struct LDKDecodeError CResult_RecipientOnionFieldsDecodeErrorZ_get_err(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR owner);
1084 export function CResult_RecipientOnionFieldsDecodeErrorZ_get_err(owner: bigint): bigint {
1085 if(!isWasmInitialized) {
1086 throw new Error("initializeWasm() must be awaited first!");
1088 const nativeResponseValue = wasm.TS_CResult_RecipientOnionFieldsDecodeErrorZ_get_err(owner);
1089 return nativeResponseValue;
1092 export class LDKCOption_HTLCClaimZ {
1093 protected constructor() {}
1096 export function LDKCOption_HTLCClaimZ_ty_from_ptr(ptr: bigint): number {
1097 if(!isWasmInitialized) {
1098 throw new Error("initializeWasm() must be awaited first!");
1100 const nativeResponseValue = wasm.TS_LDKCOption_HTLCClaimZ_ty_from_ptr(ptr);
1101 return nativeResponseValue;
1104 export function LDKCOption_HTLCClaimZ_Some_get_some(ptr: bigint): HTLCClaim {
1105 if(!isWasmInitialized) {
1106 throw new Error("initializeWasm() must be awaited first!");
1108 const nativeResponseValue = wasm.TS_LDKCOption_HTLCClaimZ_Some_get_some(ptr);
1109 return nativeResponseValue;
1111 // void CResult_NoneNoneZ_get_ok(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
1113 export function CResult_NoneNoneZ_get_ok(owner: bigint): void {
1114 if(!isWasmInitialized) {
1115 throw new Error("initializeWasm() must be awaited first!");
1117 const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_ok(owner);
1118 // debug statements here
1120 // void CResult_NoneNoneZ_get_err(LDKCResult_NoneNoneZ *NONNULL_PTR owner);
1122 export function CResult_NoneNoneZ_get_err(owner: bigint): void {
1123 if(!isWasmInitialized) {
1124 throw new Error("initializeWasm() must be awaited first!");
1126 const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_get_err(owner);
1127 // debug statements here
1129 // struct LDKCounterpartyCommitmentSecrets CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
1131 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner: bigint): bigint {
1132 if(!isWasmInitialized) {
1133 throw new Error("initializeWasm() must be awaited first!");
1135 const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_ok(owner);
1136 return nativeResponseValue;
1138 // struct LDKDecodeError CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR owner);
1140 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner: bigint): bigint {
1141 if(!isWasmInitialized) {
1142 throw new Error("initializeWasm() must be awaited first!");
1144 const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_get_err(owner);
1145 return nativeResponseValue;
1147 // struct LDKTxCreationKeys CResult_TxCreationKeysDecodeErrorZ_get_ok(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
1149 export function CResult_TxCreationKeysDecodeErrorZ_get_ok(owner: bigint): bigint {
1150 if(!isWasmInitialized) {
1151 throw new Error("initializeWasm() must be awaited first!");
1153 const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_ok(owner);
1154 return nativeResponseValue;
1156 // struct LDKDecodeError CResult_TxCreationKeysDecodeErrorZ_get_err(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR owner);
1158 export function CResult_TxCreationKeysDecodeErrorZ_get_err(owner: bigint): bigint {
1159 if(!isWasmInitialized) {
1160 throw new Error("initializeWasm() must be awaited first!");
1162 const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_get_err(owner);
1163 return nativeResponseValue;
1165 // struct LDKChannelPublicKeys CResult_ChannelPublicKeysDecodeErrorZ_get_ok(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
1167 export function CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner: bigint): bigint {
1168 if(!isWasmInitialized) {
1169 throw new Error("initializeWasm() must be awaited first!");
1171 const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_ok(owner);
1172 return nativeResponseValue;
1174 // struct LDKDecodeError CResult_ChannelPublicKeysDecodeErrorZ_get_err(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR owner);
1176 export function CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner: bigint): bigint {
1177 if(!isWasmInitialized) {
1178 throw new Error("initializeWasm() must be awaited first!");
1180 const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_get_err(owner);
1181 return nativeResponseValue;
1184 export class LDKCOption_u32Z {
1185 protected constructor() {}
1188 export function LDKCOption_u32Z_ty_from_ptr(ptr: bigint): number {
1189 if(!isWasmInitialized) {
1190 throw new Error("initializeWasm() must be awaited first!");
1192 const nativeResponseValue = wasm.TS_LDKCOption_u32Z_ty_from_ptr(ptr);
1193 return nativeResponseValue;
1196 export function LDKCOption_u32Z_Some_get_some(ptr: bigint): number {
1197 if(!isWasmInitialized) {
1198 throw new Error("initializeWasm() must be awaited first!");
1200 const nativeResponseValue = wasm.TS_LDKCOption_u32Z_Some_get_some(ptr);
1201 return nativeResponseValue;
1203 // struct LDKHTLCOutputInCommitment CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
1205 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner: bigint): bigint {
1206 if(!isWasmInitialized) {
1207 throw new Error("initializeWasm() must be awaited first!");
1209 const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(owner);
1210 return nativeResponseValue;
1212 // struct LDKDecodeError CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR owner);
1214 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner: bigint): bigint {
1215 if(!isWasmInitialized) {
1216 throw new Error("initializeWasm() must be awaited first!");
1218 const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(owner);
1219 return nativeResponseValue;
1221 // struct LDKCounterpartyChannelTransactionParameters CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
1223 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner: bigint): bigint {
1224 if(!isWasmInitialized) {
1225 throw new Error("initializeWasm() must be awaited first!");
1227 const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_ok(owner);
1228 return nativeResponseValue;
1230 // struct LDKDecodeError CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
1232 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner: bigint): bigint {
1233 if(!isWasmInitialized) {
1234 throw new Error("initializeWasm() must be awaited first!");
1236 const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_get_err(owner);
1237 return nativeResponseValue;
1239 // struct LDKChannelTransactionParameters CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
1241 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner: bigint): bigint {
1242 if(!isWasmInitialized) {
1243 throw new Error("initializeWasm() must be awaited first!");
1245 const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_ok(owner);
1246 return nativeResponseValue;
1248 // struct LDKDecodeError CResult_ChannelTransactionParametersDecodeErrorZ_get_err(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR owner);
1250 export function CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner: bigint): bigint {
1251 if(!isWasmInitialized) {
1252 throw new Error("initializeWasm() must be awaited first!");
1254 const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_get_err(owner);
1255 return nativeResponseValue;
1257 // struct LDKHolderCommitmentTransaction CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1259 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner: bigint): bigint {
1260 if(!isWasmInitialized) {
1261 throw new Error("initializeWasm() must be awaited first!");
1263 const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_ok(owner);
1264 return nativeResponseValue;
1266 // struct LDKDecodeError CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1268 export function CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner: bigint): bigint {
1269 if(!isWasmInitialized) {
1270 throw new Error("initializeWasm() must be awaited first!");
1272 const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_get_err(owner);
1273 return nativeResponseValue;
1275 // struct LDKBuiltCommitmentTransaction CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1277 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner: bigint): bigint {
1278 if(!isWasmInitialized) {
1279 throw new Error("initializeWasm() must be awaited first!");
1281 const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_ok(owner);
1282 return nativeResponseValue;
1284 // struct LDKDecodeError CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1286 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner: bigint): bigint {
1287 if(!isWasmInitialized) {
1288 throw new Error("initializeWasm() must be awaited first!");
1290 const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_get_err(owner);
1291 return nativeResponseValue;
1293 // struct LDKTrustedClosingTransaction CResult_TrustedClosingTransactionNoneZ_get_ok(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
1295 export function CResult_TrustedClosingTransactionNoneZ_get_ok(owner: bigint): bigint {
1296 if(!isWasmInitialized) {
1297 throw new Error("initializeWasm() must be awaited first!");
1299 const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_ok(owner);
1300 return nativeResponseValue;
1302 // void CResult_TrustedClosingTransactionNoneZ_get_err(LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR owner);
1304 export function CResult_TrustedClosingTransactionNoneZ_get_err(owner: bigint): void {
1305 if(!isWasmInitialized) {
1306 throw new Error("initializeWasm() must be awaited first!");
1308 const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_get_err(owner);
1309 // debug statements here
1311 // struct LDKCommitmentTransaction CResult_CommitmentTransactionDecodeErrorZ_get_ok(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1313 export function CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner: bigint): bigint {
1314 if(!isWasmInitialized) {
1315 throw new Error("initializeWasm() must be awaited first!");
1317 const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_ok(owner);
1318 return nativeResponseValue;
1320 // struct LDKDecodeError CResult_CommitmentTransactionDecodeErrorZ_get_err(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR owner);
1322 export function CResult_CommitmentTransactionDecodeErrorZ_get_err(owner: bigint): bigint {
1323 if(!isWasmInitialized) {
1324 throw new Error("initializeWasm() must be awaited first!");
1326 const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_get_err(owner);
1327 return nativeResponseValue;
1329 // struct LDKTrustedCommitmentTransaction CResult_TrustedCommitmentTransactionNoneZ_get_ok(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
1331 export function CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner: bigint): bigint {
1332 if(!isWasmInitialized) {
1333 throw new Error("initializeWasm() must be awaited first!");
1335 const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_ok(owner);
1336 return nativeResponseValue;
1338 // void CResult_TrustedCommitmentTransactionNoneZ_get_err(LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR owner);
1340 export function CResult_TrustedCommitmentTransactionNoneZ_get_err(owner: bigint): void {
1341 if(!isWasmInitialized) {
1342 throw new Error("initializeWasm() must be awaited first!");
1344 const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_get_err(owner);
1345 // debug statements here
1347 // struct LDKCVec_SignatureZ CResult_CVec_SignatureZNoneZ_get_ok(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
1349 export function CResult_CVec_SignatureZNoneZ_get_ok(owner: bigint): number {
1350 if(!isWasmInitialized) {
1351 throw new Error("initializeWasm() must be awaited first!");
1353 const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_ok(owner);
1354 return nativeResponseValue;
1356 // void CResult_CVec_SignatureZNoneZ_get_err(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR owner);
1358 export function CResult_CVec_SignatureZNoneZ_get_err(owner: bigint): void {
1359 if(!isWasmInitialized) {
1360 throw new Error("initializeWasm() must be awaited first!");
1362 const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_get_err(owner);
1363 // debug statements here
1365 // struct LDKShutdownScript CResult_ShutdownScriptDecodeErrorZ_get_ok(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
1367 export function CResult_ShutdownScriptDecodeErrorZ_get_ok(owner: bigint): bigint {
1368 if(!isWasmInitialized) {
1369 throw new Error("initializeWasm() must be awaited first!");
1371 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_ok(owner);
1372 return nativeResponseValue;
1374 // struct LDKDecodeError CResult_ShutdownScriptDecodeErrorZ_get_err(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR owner);
1376 export function CResult_ShutdownScriptDecodeErrorZ_get_err(owner: bigint): bigint {
1377 if(!isWasmInitialized) {
1378 throw new Error("initializeWasm() must be awaited first!");
1380 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_get_err(owner);
1381 return nativeResponseValue;
1383 // struct LDKShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
1385 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner: bigint): bigint {
1386 if(!isWasmInitialized) {
1387 throw new Error("initializeWasm() must be awaited first!");
1389 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_ok(owner);
1390 return nativeResponseValue;
1392 // struct LDKInvalidShutdownScript CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR owner);
1394 export function CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner: bigint): bigint {
1395 if(!isWasmInitialized) {
1396 throw new Error("initializeWasm() must be awaited first!");
1398 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_get_err(owner);
1399 return nativeResponseValue;
1401 // struct LDKBlindedPayInfo CResult_BlindedPayInfoDecodeErrorZ_get_ok(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR owner);
1403 export function CResult_BlindedPayInfoDecodeErrorZ_get_ok(owner: bigint): bigint {
1404 if(!isWasmInitialized) {
1405 throw new Error("initializeWasm() must be awaited first!");
1407 const nativeResponseValue = wasm.TS_CResult_BlindedPayInfoDecodeErrorZ_get_ok(owner);
1408 return nativeResponseValue;
1410 // struct LDKDecodeError CResult_BlindedPayInfoDecodeErrorZ_get_err(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR owner);
1412 export function CResult_BlindedPayInfoDecodeErrorZ_get_err(owner: bigint): bigint {
1413 if(!isWasmInitialized) {
1414 throw new Error("initializeWasm() must be awaited first!");
1416 const nativeResponseValue = wasm.TS_CResult_BlindedPayInfoDecodeErrorZ_get_err(owner);
1417 return nativeResponseValue;
1419 // struct LDKRoute CResult_RouteLightningErrorZ_get_ok(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1421 export function CResult_RouteLightningErrorZ_get_ok(owner: bigint): bigint {
1422 if(!isWasmInitialized) {
1423 throw new Error("initializeWasm() must be awaited first!");
1425 const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_ok(owner);
1426 return nativeResponseValue;
1428 // struct LDKLightningError CResult_RouteLightningErrorZ_get_err(LDKCResult_RouteLightningErrorZ *NONNULL_PTR owner);
1430 export function CResult_RouteLightningErrorZ_get_err(owner: bigint): bigint {
1431 if(!isWasmInitialized) {
1432 throw new Error("initializeWasm() must be awaited first!");
1434 const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_get_err(owner);
1435 return nativeResponseValue;
1437 // struct LDKInFlightHtlcs CResult_InFlightHtlcsDecodeErrorZ_get_ok(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
1439 export function CResult_InFlightHtlcsDecodeErrorZ_get_ok(owner: bigint): bigint {
1440 if(!isWasmInitialized) {
1441 throw new Error("initializeWasm() must be awaited first!");
1443 const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_get_ok(owner);
1444 return nativeResponseValue;
1446 // struct LDKDecodeError CResult_InFlightHtlcsDecodeErrorZ_get_err(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR owner);
1448 export function CResult_InFlightHtlcsDecodeErrorZ_get_err(owner: bigint): bigint {
1449 if(!isWasmInitialized) {
1450 throw new Error("initializeWasm() must be awaited first!");
1452 const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_get_err(owner);
1453 return nativeResponseValue;
1455 // struct LDKRouteHop CResult_RouteHopDecodeErrorZ_get_ok(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
1457 export function CResult_RouteHopDecodeErrorZ_get_ok(owner: bigint): bigint {
1458 if(!isWasmInitialized) {
1459 throw new Error("initializeWasm() must be awaited first!");
1461 const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_ok(owner);
1462 return nativeResponseValue;
1464 // struct LDKDecodeError CResult_RouteHopDecodeErrorZ_get_err(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR owner);
1466 export function CResult_RouteHopDecodeErrorZ_get_err(owner: bigint): bigint {
1467 if(!isWasmInitialized) {
1468 throw new Error("initializeWasm() must be awaited first!");
1470 const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_get_err(owner);
1471 return nativeResponseValue;
1473 // struct LDKBlindedTail CResult_BlindedTailDecodeErrorZ_get_ok(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR owner);
1475 export function CResult_BlindedTailDecodeErrorZ_get_ok(owner: bigint): bigint {
1476 if(!isWasmInitialized) {
1477 throw new Error("initializeWasm() must be awaited first!");
1479 const nativeResponseValue = wasm.TS_CResult_BlindedTailDecodeErrorZ_get_ok(owner);
1480 return nativeResponseValue;
1482 // struct LDKDecodeError CResult_BlindedTailDecodeErrorZ_get_err(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR owner);
1484 export function CResult_BlindedTailDecodeErrorZ_get_err(owner: bigint): bigint {
1485 if(!isWasmInitialized) {
1486 throw new Error("initializeWasm() must be awaited first!");
1488 const nativeResponseValue = wasm.TS_CResult_BlindedTailDecodeErrorZ_get_err(owner);
1489 return nativeResponseValue;
1491 // struct LDKRoute CResult_RouteDecodeErrorZ_get_ok(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
1493 export function CResult_RouteDecodeErrorZ_get_ok(owner: bigint): bigint {
1494 if(!isWasmInitialized) {
1495 throw new Error("initializeWasm() must be awaited first!");
1497 const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_ok(owner);
1498 return nativeResponseValue;
1500 // struct LDKDecodeError CResult_RouteDecodeErrorZ_get_err(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR owner);
1502 export function CResult_RouteDecodeErrorZ_get_err(owner: bigint): bigint {
1503 if(!isWasmInitialized) {
1504 throw new Error("initializeWasm() must be awaited first!");
1506 const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_get_err(owner);
1507 return nativeResponseValue;
1509 // struct LDKRouteParameters CResult_RouteParametersDecodeErrorZ_get_ok(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
1511 export function CResult_RouteParametersDecodeErrorZ_get_ok(owner: bigint): bigint {
1512 if(!isWasmInitialized) {
1513 throw new Error("initializeWasm() must be awaited first!");
1515 const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_ok(owner);
1516 return nativeResponseValue;
1518 // struct LDKDecodeError CResult_RouteParametersDecodeErrorZ_get_err(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR owner);
1520 export function CResult_RouteParametersDecodeErrorZ_get_err(owner: bigint): bigint {
1521 if(!isWasmInitialized) {
1522 throw new Error("initializeWasm() must be awaited first!");
1524 const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_get_err(owner);
1525 return nativeResponseValue;
1527 // struct LDKPaymentParameters CResult_PaymentParametersDecodeErrorZ_get_ok(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1529 export function CResult_PaymentParametersDecodeErrorZ_get_ok(owner: bigint): bigint {
1530 if(!isWasmInitialized) {
1531 throw new Error("initializeWasm() must be awaited first!");
1533 const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_ok(owner);
1534 return nativeResponseValue;
1536 // struct LDKDecodeError CResult_PaymentParametersDecodeErrorZ_get_err(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR owner);
1538 export function CResult_PaymentParametersDecodeErrorZ_get_err(owner: bigint): bigint {
1539 if(!isWasmInitialized) {
1540 throw new Error("initializeWasm() must be awaited first!");
1542 const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_get_err(owner);
1543 return nativeResponseValue;
1545 // struct LDKBlindedPayInfo C2Tuple_BlindedPayInfoBlindedPathZ_get_a(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR owner);
1547 export function C2Tuple_BlindedPayInfoBlindedPathZ_get_a(owner: bigint): bigint {
1548 if(!isWasmInitialized) {
1549 throw new Error("initializeWasm() must be awaited first!");
1551 const nativeResponseValue = wasm.TS_C2Tuple_BlindedPayInfoBlindedPathZ_get_a(owner);
1552 return nativeResponseValue;
1554 // struct LDKBlindedPath C2Tuple_BlindedPayInfoBlindedPathZ_get_b(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR owner);
1556 export function C2Tuple_BlindedPayInfoBlindedPathZ_get_b(owner: bigint): bigint {
1557 if(!isWasmInitialized) {
1558 throw new Error("initializeWasm() must be awaited first!");
1560 const nativeResponseValue = wasm.TS_C2Tuple_BlindedPayInfoBlindedPathZ_get_b(owner);
1561 return nativeResponseValue;
1563 // struct LDKRouteHint CResult_RouteHintDecodeErrorZ_get_ok(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1565 export function CResult_RouteHintDecodeErrorZ_get_ok(owner: bigint): bigint {
1566 if(!isWasmInitialized) {
1567 throw new Error("initializeWasm() must be awaited first!");
1569 const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_ok(owner);
1570 return nativeResponseValue;
1572 // struct LDKDecodeError CResult_RouteHintDecodeErrorZ_get_err(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR owner);
1574 export function CResult_RouteHintDecodeErrorZ_get_err(owner: bigint): bigint {
1575 if(!isWasmInitialized) {
1576 throw new Error("initializeWasm() must be awaited first!");
1578 const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_get_err(owner);
1579 return nativeResponseValue;
1581 // struct LDKRouteHintHop CResult_RouteHintHopDecodeErrorZ_get_ok(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1583 export function CResult_RouteHintHopDecodeErrorZ_get_ok(owner: bigint): bigint {
1584 if(!isWasmInitialized) {
1585 throw new Error("initializeWasm() must be awaited first!");
1587 const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_ok(owner);
1588 return nativeResponseValue;
1590 // struct LDKDecodeError CResult_RouteHintHopDecodeErrorZ_get_err(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR owner);
1592 export function CResult_RouteHintHopDecodeErrorZ_get_err(owner: bigint): bigint {
1593 if(!isWasmInitialized) {
1594 throw new Error("initializeWasm() must be awaited first!");
1596 const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_get_err(owner);
1597 return nativeResponseValue;
1599 // uintptr_t C2Tuple_usizeTransactionZ_get_a(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
1601 export function C2Tuple_usizeTransactionZ_get_a(owner: bigint): number {
1602 if(!isWasmInitialized) {
1603 throw new Error("initializeWasm() must be awaited first!");
1605 const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_a(owner);
1606 return nativeResponseValue;
1608 // struct LDKTransaction C2Tuple_usizeTransactionZ_get_b(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR owner);
1610 export function C2Tuple_usizeTransactionZ_get_b(owner: bigint): number {
1611 if(!isWasmInitialized) {
1612 throw new Error("initializeWasm() must be awaited first!");
1614 const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_get_b(owner);
1615 return nativeResponseValue;
1617 // struct LDKThirtyTwoBytes C2Tuple_TxidBlockHashZ_get_a(LDKC2Tuple_TxidBlockHashZ *NONNULL_PTR owner);
1619 export function C2Tuple_TxidBlockHashZ_get_a(owner: bigint): number {
1620 if(!isWasmInitialized) {
1621 throw new Error("initializeWasm() must be awaited first!");
1623 const nativeResponseValue = wasm.TS_C2Tuple_TxidBlockHashZ_get_a(owner);
1624 return nativeResponseValue;
1626 // struct LDKThirtyTwoBytes C2Tuple_TxidBlockHashZ_get_b(LDKC2Tuple_TxidBlockHashZ *NONNULL_PTR owner);
1628 export function C2Tuple_TxidBlockHashZ_get_b(owner: bigint): number {
1629 if(!isWasmInitialized) {
1630 throw new Error("initializeWasm() must be awaited first!");
1632 const nativeResponseValue = wasm.TS_C2Tuple_TxidBlockHashZ_get_b(owner);
1633 return nativeResponseValue;
1636 export class LDKMonitorEvent {
1637 protected constructor() {}
1640 export function LDKMonitorEvent_ty_from_ptr(ptr: bigint): number {
1641 if(!isWasmInitialized) {
1642 throw new Error("initializeWasm() must be awaited first!");
1644 const nativeResponseValue = wasm.TS_LDKMonitorEvent_ty_from_ptr(ptr);
1645 return nativeResponseValue;
1648 export function LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr: bigint): bigint {
1649 if(!isWasmInitialized) {
1650 throw new Error("initializeWasm() must be awaited first!");
1652 const nativeResponseValue = wasm.TS_LDKMonitorEvent_HTLCEvent_get_htlc_event(ptr);
1653 return nativeResponseValue;
1656 export function LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr: bigint): bigint {
1657 if(!isWasmInitialized) {
1658 throw new Error("initializeWasm() must be awaited first!");
1660 const nativeResponseValue = wasm.TS_LDKMonitorEvent_CommitmentTxConfirmed_get_commitment_tx_confirmed(ptr);
1661 return nativeResponseValue;
1664 export function LDKMonitorEvent_Completed_get_funding_txo(ptr: bigint): bigint {
1665 if(!isWasmInitialized) {
1666 throw new Error("initializeWasm() must be awaited first!");
1668 const nativeResponseValue = wasm.TS_LDKMonitorEvent_Completed_get_funding_txo(ptr);
1669 return nativeResponseValue;
1672 export function LDKMonitorEvent_Completed_get_monitor_update_id(ptr: bigint): bigint {
1673 if(!isWasmInitialized) {
1674 throw new Error("initializeWasm() must be awaited first!");
1676 const nativeResponseValue = wasm.TS_LDKMonitorEvent_Completed_get_monitor_update_id(ptr);
1677 return nativeResponseValue;
1680 export function LDKMonitorEvent_UpdateFailed_get_update_failed(ptr: bigint): bigint {
1681 if(!isWasmInitialized) {
1682 throw new Error("initializeWasm() must be awaited first!");
1684 const nativeResponseValue = wasm.TS_LDKMonitorEvent_UpdateFailed_get_update_failed(ptr);
1685 return nativeResponseValue;
1687 // struct LDKOutPoint C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
1689 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(owner: bigint): bigint {
1690 if(!isWasmInitialized) {
1691 throw new Error("initializeWasm() must be awaited first!");
1693 const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(owner);
1694 return nativeResponseValue;
1696 // struct LDKCVec_MonitorEventZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
1698 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(owner: bigint): number {
1699 if(!isWasmInitialized) {
1700 throw new Error("initializeWasm() must be awaited first!");
1702 const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(owner);
1703 return nativeResponseValue;
1705 // struct LDKPublicKey C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR owner);
1707 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(owner: bigint): number {
1708 if(!isWasmInitialized) {
1709 throw new Error("initializeWasm() must be awaited first!");
1711 const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(owner);
1712 return nativeResponseValue;
1714 // struct LDKFixedPenaltyScorer CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
1716 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner: bigint): bigint {
1717 if(!isWasmInitialized) {
1718 throw new Error("initializeWasm() must be awaited first!");
1720 const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_ok(owner);
1721 return nativeResponseValue;
1723 // struct LDKDecodeError CResult_FixedPenaltyScorerDecodeErrorZ_get_err(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR owner);
1725 export function CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner: bigint): bigint {
1726 if(!isWasmInitialized) {
1727 throw new Error("initializeWasm() must be awaited first!");
1729 const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_get_err(owner);
1730 return nativeResponseValue;
1732 // uint64_t C2Tuple_u64u64Z_get_a(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
1734 export function C2Tuple_u64u64Z_get_a(owner: bigint): bigint {
1735 if(!isWasmInitialized) {
1736 throw new Error("initializeWasm() must be awaited first!");
1738 const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_get_a(owner);
1739 return nativeResponseValue;
1741 // uint64_t C2Tuple_u64u64Z_get_b(LDKC2Tuple_u64u64Z *NONNULL_PTR owner);
1743 export function C2Tuple_u64u64Z_get_b(owner: bigint): bigint {
1744 if(!isWasmInitialized) {
1745 throw new Error("initializeWasm() must be awaited first!");
1747 const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_get_b(owner);
1748 return nativeResponseValue;
1751 export class LDKCOption_C2Tuple_u64u64ZZ {
1752 protected constructor() {}
1755 export function LDKCOption_C2Tuple_u64u64ZZ_ty_from_ptr(ptr: bigint): number {
1756 if(!isWasmInitialized) {
1757 throw new Error("initializeWasm() must be awaited first!");
1759 const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_u64u64ZZ_ty_from_ptr(ptr);
1760 return nativeResponseValue;
1763 export function LDKCOption_C2Tuple_u64u64ZZ_Some_get_some(ptr: bigint): bigint {
1764 if(!isWasmInitialized) {
1765 throw new Error("initializeWasm() must be awaited first!");
1767 const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_u64u64ZZ_Some_get_some(ptr);
1768 return nativeResponseValue;
1770 // struct LDKEightU16s C2Tuple_Z_get_a(LDKC2Tuple_Z *NONNULL_PTR owner);
1772 export function C2Tuple_Z_get_a(owner: bigint): number {
1773 if(!isWasmInitialized) {
1774 throw new Error("initializeWasm() must be awaited first!");
1776 const nativeResponseValue = wasm.TS_C2Tuple_Z_get_a(owner);
1777 return nativeResponseValue;
1779 // struct LDKEightU16s C2Tuple_Z_get_b(LDKC2Tuple_Z *NONNULL_PTR owner);
1781 export function C2Tuple_Z_get_b(owner: bigint): number {
1782 if(!isWasmInitialized) {
1783 throw new Error("initializeWasm() must be awaited first!");
1785 const nativeResponseValue = wasm.TS_C2Tuple_Z_get_b(owner);
1786 return nativeResponseValue;
1788 // struct LDKEightU16s C2Tuple__u168_u168Z_get_a(LDKC2Tuple__u168_u168Z *NONNULL_PTR owner);
1790 export function C2Tuple__u168_u168Z_get_a(owner: bigint): number {
1791 if(!isWasmInitialized) {
1792 throw new Error("initializeWasm() must be awaited first!");
1794 const nativeResponseValue = wasm.TS_C2Tuple__u168_u168Z_get_a(owner);
1795 return nativeResponseValue;
1797 // struct LDKEightU16s C2Tuple__u168_u168Z_get_b(LDKC2Tuple__u168_u168Z *NONNULL_PTR owner);
1799 export function C2Tuple__u168_u168Z_get_b(owner: bigint): number {
1800 if(!isWasmInitialized) {
1801 throw new Error("initializeWasm() must be awaited first!");
1803 const nativeResponseValue = wasm.TS_C2Tuple__u168_u168Z_get_b(owner);
1804 return nativeResponseValue;
1807 export class LDKCOption_C2Tuple_EightU16sEightU16sZZ {
1808 protected constructor() {}
1811 export function LDKCOption_C2Tuple_EightU16sEightU16sZZ_ty_from_ptr(ptr: bigint): number {
1812 if(!isWasmInitialized) {
1813 throw new Error("initializeWasm() must be awaited first!");
1815 const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_EightU16sEightU16sZZ_ty_from_ptr(ptr);
1816 return nativeResponseValue;
1819 export function LDKCOption_C2Tuple_EightU16sEightU16sZZ_Some_get_some(ptr: bigint): bigint {
1820 if(!isWasmInitialized) {
1821 throw new Error("initializeWasm() must be awaited first!");
1823 const nativeResponseValue = wasm.TS_LDKCOption_C2Tuple_EightU16sEightU16sZZ_Some_get_some(ptr);
1824 return nativeResponseValue;
1827 export interface LDKLogger {
1828 log (record: bigint): void;
1832 export function LDKLogger_new(impl: LDKLogger): [bigint, number] {
1833 if(!isWasmInitialized) {
1834 throw new Error("initializeWasm() must be awaited first!");
1836 var new_obj_idx = js_objs.length;
1837 for (var i = 0; i < js_objs.length; i++) {
1838 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
1840 js_objs[i] = new WeakRef(impl);
1841 return [wasm.TS_LDKLogger_new(i), i];
1843 // struct LDKProbabilisticScorer CResult_ProbabilisticScorerDecodeErrorZ_get_ok(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
1845 export function CResult_ProbabilisticScorerDecodeErrorZ_get_ok(owner: bigint): bigint {
1846 if(!isWasmInitialized) {
1847 throw new Error("initializeWasm() must be awaited first!");
1849 const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_ok(owner);
1850 return nativeResponseValue;
1852 // struct LDKDecodeError CResult_ProbabilisticScorerDecodeErrorZ_get_err(LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR owner);
1854 export function CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner: bigint): bigint {
1855 if(!isWasmInitialized) {
1856 throw new Error("initializeWasm() must be awaited first!");
1858 const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_get_err(owner);
1859 return nativeResponseValue;
1861 // struct LDKInitFeatures CResult_InitFeaturesDecodeErrorZ_get_ok(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
1863 export function CResult_InitFeaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
1864 if(!isWasmInitialized) {
1865 throw new Error("initializeWasm() must be awaited first!");
1867 const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_ok(owner);
1868 return nativeResponseValue;
1870 // struct LDKDecodeError CResult_InitFeaturesDecodeErrorZ_get_err(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR owner);
1872 export function CResult_InitFeaturesDecodeErrorZ_get_err(owner: bigint): bigint {
1873 if(!isWasmInitialized) {
1874 throw new Error("initializeWasm() must be awaited first!");
1876 const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_get_err(owner);
1877 return nativeResponseValue;
1879 // struct LDKChannelFeatures CResult_ChannelFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
1881 export function CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
1882 if(!isWasmInitialized) {
1883 throw new Error("initializeWasm() must be awaited first!");
1885 const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_ok(owner);
1886 return nativeResponseValue;
1888 // struct LDKDecodeError CResult_ChannelFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR owner);
1890 export function CResult_ChannelFeaturesDecodeErrorZ_get_err(owner: bigint): bigint {
1891 if(!isWasmInitialized) {
1892 throw new Error("initializeWasm() must be awaited first!");
1894 const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_get_err(owner);
1895 return nativeResponseValue;
1897 // struct LDKNodeFeatures CResult_NodeFeaturesDecodeErrorZ_get_ok(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
1899 export function CResult_NodeFeaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
1900 if(!isWasmInitialized) {
1901 throw new Error("initializeWasm() must be awaited first!");
1903 const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_ok(owner);
1904 return nativeResponseValue;
1906 // struct LDKDecodeError CResult_NodeFeaturesDecodeErrorZ_get_err(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR owner);
1908 export function CResult_NodeFeaturesDecodeErrorZ_get_err(owner: bigint): bigint {
1909 if(!isWasmInitialized) {
1910 throw new Error("initializeWasm() must be awaited first!");
1912 const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_get_err(owner);
1913 return nativeResponseValue;
1915 // struct LDKInvoiceFeatures CResult_InvoiceFeaturesDecodeErrorZ_get_ok(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
1917 export function CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
1918 if(!isWasmInitialized) {
1919 throw new Error("initializeWasm() must be awaited first!");
1921 const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_ok(owner);
1922 return nativeResponseValue;
1924 // struct LDKDecodeError CResult_InvoiceFeaturesDecodeErrorZ_get_err(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR owner);
1926 export function CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner: bigint): bigint {
1927 if(!isWasmInitialized) {
1928 throw new Error("initializeWasm() must be awaited first!");
1930 const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_get_err(owner);
1931 return nativeResponseValue;
1933 // struct LDKBlindedHopFeatures CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner);
1935 export function CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
1936 if(!isWasmInitialized) {
1937 throw new Error("initializeWasm() must be awaited first!");
1939 const nativeResponseValue = wasm.TS_CResult_BlindedHopFeaturesDecodeErrorZ_get_ok(owner);
1940 return nativeResponseValue;
1942 // struct LDKDecodeError CResult_BlindedHopFeaturesDecodeErrorZ_get_err(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR owner);
1944 export function CResult_BlindedHopFeaturesDecodeErrorZ_get_err(owner: bigint): bigint {
1945 if(!isWasmInitialized) {
1946 throw new Error("initializeWasm() must be awaited first!");
1948 const nativeResponseValue = wasm.TS_CResult_BlindedHopFeaturesDecodeErrorZ_get_err(owner);
1949 return nativeResponseValue;
1951 // struct LDKChannelTypeFeatures CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
1953 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
1954 if(!isWasmInitialized) {
1955 throw new Error("initializeWasm() must be awaited first!");
1957 const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_ok(owner);
1958 return nativeResponseValue;
1960 // struct LDKDecodeError CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR owner);
1962 export function CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner: bigint): bigint {
1963 if(!isWasmInitialized) {
1964 throw new Error("initializeWasm() must be awaited first!");
1966 const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_get_err(owner);
1967 return nativeResponseValue;
1970 export class LDKPaymentPurpose {
1971 protected constructor() {}
1974 export function LDKPaymentPurpose_ty_from_ptr(ptr: bigint): number {
1975 if(!isWasmInitialized) {
1976 throw new Error("initializeWasm() must be awaited first!");
1978 const nativeResponseValue = wasm.TS_LDKPaymentPurpose_ty_from_ptr(ptr);
1979 return nativeResponseValue;
1982 export function LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr: bigint): number {
1983 if(!isWasmInitialized) {
1984 throw new Error("initializeWasm() must be awaited first!");
1986 const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_preimage(ptr);
1987 return nativeResponseValue;
1990 export function LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr: bigint): number {
1991 if(!isWasmInitialized) {
1992 throw new Error("initializeWasm() must be awaited first!");
1994 const nativeResponseValue = wasm.TS_LDKPaymentPurpose_InvoicePayment_get_payment_secret(ptr);
1995 return nativeResponseValue;
1998 export function LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr: bigint): number {
1999 if(!isWasmInitialized) {
2000 throw new Error("initializeWasm() must be awaited first!");
2002 const nativeResponseValue = wasm.TS_LDKPaymentPurpose_SpontaneousPayment_get_spontaneous_payment(ptr);
2003 return nativeResponseValue;
2005 // struct LDKPaymentPurpose CResult_PaymentPurposeDecodeErrorZ_get_ok(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
2007 export function CResult_PaymentPurposeDecodeErrorZ_get_ok(owner: bigint): bigint {
2008 if(!isWasmInitialized) {
2009 throw new Error("initializeWasm() must be awaited first!");
2011 const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_get_ok(owner);
2012 return nativeResponseValue;
2014 // struct LDKDecodeError CResult_PaymentPurposeDecodeErrorZ_get_err(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR owner);
2016 export function CResult_PaymentPurposeDecodeErrorZ_get_err(owner: bigint): bigint {
2017 if(!isWasmInitialized) {
2018 throw new Error("initializeWasm() must be awaited first!");
2020 const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_get_err(owner);
2021 return nativeResponseValue;
2024 export class LDKNetworkUpdate {
2025 protected constructor() {}
2028 export function LDKNetworkUpdate_ty_from_ptr(ptr: bigint): number {
2029 if(!isWasmInitialized) {
2030 throw new Error("initializeWasm() must be awaited first!");
2032 const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ty_from_ptr(ptr);
2033 return nativeResponseValue;
2036 export function LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr: bigint): bigint {
2037 if(!isWasmInitialized) {
2038 throw new Error("initializeWasm() must be awaited first!");
2040 const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelUpdateMessage_get_msg(ptr);
2041 return nativeResponseValue;
2044 export function LDKNetworkUpdate_ChannelFailure_get_short_channel_id(ptr: bigint): bigint {
2045 if(!isWasmInitialized) {
2046 throw new Error("initializeWasm() must be awaited first!");
2048 const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelFailure_get_short_channel_id(ptr);
2049 return nativeResponseValue;
2052 export function LDKNetworkUpdate_ChannelFailure_get_is_permanent(ptr: bigint): boolean {
2053 if(!isWasmInitialized) {
2054 throw new Error("initializeWasm() must be awaited first!");
2056 const nativeResponseValue = wasm.TS_LDKNetworkUpdate_ChannelFailure_get_is_permanent(ptr);
2057 return nativeResponseValue;
2060 export function LDKNetworkUpdate_NodeFailure_get_node_id(ptr: bigint): number {
2061 if(!isWasmInitialized) {
2062 throw new Error("initializeWasm() must be awaited first!");
2064 const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_node_id(ptr);
2065 return nativeResponseValue;
2068 export function LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr: bigint): boolean {
2069 if(!isWasmInitialized) {
2070 throw new Error("initializeWasm() must be awaited first!");
2072 const nativeResponseValue = wasm.TS_LDKNetworkUpdate_NodeFailure_get_is_permanent(ptr);
2073 return nativeResponseValue;
2076 export class LDKCOption_NetworkUpdateZ {
2077 protected constructor() {}
2080 export function LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr: bigint): number {
2081 if(!isWasmInitialized) {
2082 throw new Error("initializeWasm() must be awaited first!");
2084 const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_ty_from_ptr(ptr);
2085 return nativeResponseValue;
2088 export function LDKCOption_NetworkUpdateZ_Some_get_some(ptr: bigint): bigint {
2089 if(!isWasmInitialized) {
2090 throw new Error("initializeWasm() must be awaited first!");
2092 const nativeResponseValue = wasm.TS_LDKCOption_NetworkUpdateZ_Some_get_some(ptr);
2093 return nativeResponseValue;
2096 export class LDKPathFailure {
2097 protected constructor() {}
2100 export function LDKPathFailure_ty_from_ptr(ptr: bigint): number {
2101 if(!isWasmInitialized) {
2102 throw new Error("initializeWasm() must be awaited first!");
2104 const nativeResponseValue = wasm.TS_LDKPathFailure_ty_from_ptr(ptr);
2105 return nativeResponseValue;
2108 export function LDKPathFailure_InitialSend_get_err(ptr: bigint): bigint {
2109 if(!isWasmInitialized) {
2110 throw new Error("initializeWasm() must be awaited first!");
2112 const nativeResponseValue = wasm.TS_LDKPathFailure_InitialSend_get_err(ptr);
2113 return nativeResponseValue;
2116 export function LDKPathFailure_OnPath_get_network_update(ptr: bigint): bigint {
2117 if(!isWasmInitialized) {
2118 throw new Error("initializeWasm() must be awaited first!");
2120 const nativeResponseValue = wasm.TS_LDKPathFailure_OnPath_get_network_update(ptr);
2121 return nativeResponseValue;
2124 export class LDKCOption_PathFailureZ {
2125 protected constructor() {}
2128 export function LDKCOption_PathFailureZ_ty_from_ptr(ptr: bigint): number {
2129 if(!isWasmInitialized) {
2130 throw new Error("initializeWasm() must be awaited first!");
2132 const nativeResponseValue = wasm.TS_LDKCOption_PathFailureZ_ty_from_ptr(ptr);
2133 return nativeResponseValue;
2136 export function LDKCOption_PathFailureZ_Some_get_some(ptr: bigint): bigint {
2137 if(!isWasmInitialized) {
2138 throw new Error("initializeWasm() must be awaited first!");
2140 const nativeResponseValue = wasm.TS_LDKCOption_PathFailureZ_Some_get_some(ptr);
2141 return nativeResponseValue;
2143 // struct LDKCOption_PathFailureZ CResult_COption_PathFailureZDecodeErrorZ_get_ok(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner);
2145 export function CResult_COption_PathFailureZDecodeErrorZ_get_ok(owner: bigint): bigint {
2146 if(!isWasmInitialized) {
2147 throw new Error("initializeWasm() must be awaited first!");
2149 const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_get_ok(owner);
2150 return nativeResponseValue;
2152 // struct LDKDecodeError CResult_COption_PathFailureZDecodeErrorZ_get_err(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR owner);
2154 export function CResult_COption_PathFailureZDecodeErrorZ_get_err(owner: bigint): bigint {
2155 if(!isWasmInitialized) {
2156 throw new Error("initializeWasm() must be awaited first!");
2158 const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_get_err(owner);
2159 return nativeResponseValue;
2162 export class LDKClosureReason {
2163 protected constructor() {}
2166 export function LDKClosureReason_ty_from_ptr(ptr: bigint): number {
2167 if(!isWasmInitialized) {
2168 throw new Error("initializeWasm() must be awaited first!");
2170 const nativeResponseValue = wasm.TS_LDKClosureReason_ty_from_ptr(ptr);
2171 return nativeResponseValue;
2174 export function LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr: bigint): bigint {
2175 if(!isWasmInitialized) {
2176 throw new Error("initializeWasm() must be awaited first!");
2178 const nativeResponseValue = wasm.TS_LDKClosureReason_CounterpartyForceClosed_get_peer_msg(ptr);
2179 return nativeResponseValue;
2182 export function LDKClosureReason_ProcessingError_get_err(ptr: bigint): number {
2183 if(!isWasmInitialized) {
2184 throw new Error("initializeWasm() must be awaited first!");
2186 const nativeResponseValue = wasm.TS_LDKClosureReason_ProcessingError_get_err(ptr);
2187 return nativeResponseValue;
2190 export class LDKCOption_ClosureReasonZ {
2191 protected constructor() {}
2194 export function LDKCOption_ClosureReasonZ_ty_from_ptr(ptr: bigint): number {
2195 if(!isWasmInitialized) {
2196 throw new Error("initializeWasm() must be awaited first!");
2198 const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_ty_from_ptr(ptr);
2199 return nativeResponseValue;
2202 export function LDKCOption_ClosureReasonZ_Some_get_some(ptr: bigint): bigint {
2203 if(!isWasmInitialized) {
2204 throw new Error("initializeWasm() must be awaited first!");
2206 const nativeResponseValue = wasm.TS_LDKCOption_ClosureReasonZ_Some_get_some(ptr);
2207 return nativeResponseValue;
2209 // struct LDKCOption_ClosureReasonZ CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
2211 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner: bigint): bigint {
2212 if(!isWasmInitialized) {
2213 throw new Error("initializeWasm() must be awaited first!");
2215 const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_ok(owner);
2216 return nativeResponseValue;
2218 // struct LDKDecodeError CResult_COption_ClosureReasonZDecodeErrorZ_get_err(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR owner);
2220 export function CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner: bigint): bigint {
2221 if(!isWasmInitialized) {
2222 throw new Error("initializeWasm() must be awaited first!");
2224 const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_get_err(owner);
2225 return nativeResponseValue;
2228 export class LDKHTLCDestination {
2229 protected constructor() {}
2232 export function LDKHTLCDestination_ty_from_ptr(ptr: bigint): number {
2233 if(!isWasmInitialized) {
2234 throw new Error("initializeWasm() must be awaited first!");
2236 const nativeResponseValue = wasm.TS_LDKHTLCDestination_ty_from_ptr(ptr);
2237 return nativeResponseValue;
2240 export function LDKHTLCDestination_NextHopChannel_get_node_id(ptr: bigint): number {
2241 if(!isWasmInitialized) {
2242 throw new Error("initializeWasm() must be awaited first!");
2244 const nativeResponseValue = wasm.TS_LDKHTLCDestination_NextHopChannel_get_node_id(ptr);
2245 return nativeResponseValue;
2248 export function LDKHTLCDestination_NextHopChannel_get_channel_id(ptr: bigint): number {
2249 if(!isWasmInitialized) {
2250 throw new Error("initializeWasm() must be awaited first!");
2252 const nativeResponseValue = wasm.TS_LDKHTLCDestination_NextHopChannel_get_channel_id(ptr);
2253 return nativeResponseValue;
2256 export function LDKHTLCDestination_UnknownNextHop_get_requested_forward_scid(ptr: bigint): bigint {
2257 if(!isWasmInitialized) {
2258 throw new Error("initializeWasm() must be awaited first!");
2260 const nativeResponseValue = wasm.TS_LDKHTLCDestination_UnknownNextHop_get_requested_forward_scid(ptr);
2261 return nativeResponseValue;
2264 export function LDKHTLCDestination_InvalidForward_get_requested_forward_scid(ptr: bigint): bigint {
2265 if(!isWasmInitialized) {
2266 throw new Error("initializeWasm() must be awaited first!");
2268 const nativeResponseValue = wasm.TS_LDKHTLCDestination_InvalidForward_get_requested_forward_scid(ptr);
2269 return nativeResponseValue;
2272 export function LDKHTLCDestination_FailedPayment_get_payment_hash(ptr: bigint): number {
2273 if(!isWasmInitialized) {
2274 throw new Error("initializeWasm() must be awaited first!");
2276 const nativeResponseValue = wasm.TS_LDKHTLCDestination_FailedPayment_get_payment_hash(ptr);
2277 return nativeResponseValue;
2280 export class LDKCOption_HTLCDestinationZ {
2281 protected constructor() {}
2284 export function LDKCOption_HTLCDestinationZ_ty_from_ptr(ptr: bigint): number {
2285 if(!isWasmInitialized) {
2286 throw new Error("initializeWasm() must be awaited first!");
2288 const nativeResponseValue = wasm.TS_LDKCOption_HTLCDestinationZ_ty_from_ptr(ptr);
2289 return nativeResponseValue;
2292 export function LDKCOption_HTLCDestinationZ_Some_get_some(ptr: bigint): bigint {
2293 if(!isWasmInitialized) {
2294 throw new Error("initializeWasm() must be awaited first!");
2296 const nativeResponseValue = wasm.TS_LDKCOption_HTLCDestinationZ_Some_get_some(ptr);
2297 return nativeResponseValue;
2299 // struct LDKCOption_HTLCDestinationZ CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
2301 export function CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(owner: bigint): bigint {
2302 if(!isWasmInitialized) {
2303 throw new Error("initializeWasm() must be awaited first!");
2305 const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_get_ok(owner);
2306 return nativeResponseValue;
2308 // struct LDKDecodeError CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR owner);
2310 export function CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(owner: bigint): bigint {
2311 if(!isWasmInitialized) {
2312 throw new Error("initializeWasm() must be awaited first!");
2314 const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_get_err(owner);
2315 return nativeResponseValue;
2317 // enum LDKPaymentFailureReason CResult_PaymentFailureReasonDecodeErrorZ_get_ok(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR owner);
2319 export function CResult_PaymentFailureReasonDecodeErrorZ_get_ok(owner: bigint): PaymentFailureReason {
2320 if(!isWasmInitialized) {
2321 throw new Error("initializeWasm() must be awaited first!");
2323 const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_get_ok(owner);
2324 return nativeResponseValue;
2326 // struct LDKDecodeError CResult_PaymentFailureReasonDecodeErrorZ_get_err(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR owner);
2328 export function CResult_PaymentFailureReasonDecodeErrorZ_get_err(owner: bigint): bigint {
2329 if(!isWasmInitialized) {
2330 throw new Error("initializeWasm() must be awaited first!");
2332 const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_get_err(owner);
2333 return nativeResponseValue;
2336 export class LDKCOption_u128Z {
2337 protected constructor() {}
2340 export function LDKCOption_u128Z_ty_from_ptr(ptr: bigint): number {
2341 if(!isWasmInitialized) {
2342 throw new Error("initializeWasm() must be awaited first!");
2344 const nativeResponseValue = wasm.TS_LDKCOption_u128Z_ty_from_ptr(ptr);
2345 return nativeResponseValue;
2348 export function LDKCOption_u128Z_Some_get_some(ptr: bigint): number {
2349 if(!isWasmInitialized) {
2350 throw new Error("initializeWasm() must be awaited first!");
2352 const nativeResponseValue = wasm.TS_LDKCOption_u128Z_Some_get_some(ptr);
2353 return nativeResponseValue;
2356 export class LDKCOption_PaymentFailureReasonZ {
2357 protected constructor() {}
2360 export function LDKCOption_PaymentFailureReasonZ_ty_from_ptr(ptr: bigint): number {
2361 if(!isWasmInitialized) {
2362 throw new Error("initializeWasm() must be awaited first!");
2364 const nativeResponseValue = wasm.TS_LDKCOption_PaymentFailureReasonZ_ty_from_ptr(ptr);
2365 return nativeResponseValue;
2368 export function LDKCOption_PaymentFailureReasonZ_Some_get_some(ptr: bigint): PaymentFailureReason {
2369 if(!isWasmInitialized) {
2370 throw new Error("initializeWasm() must be awaited first!");
2372 const nativeResponseValue = wasm.TS_LDKCOption_PaymentFailureReasonZ_Some_get_some(ptr);
2373 return nativeResponseValue;
2376 export class LDKSpendableOutputDescriptor {
2377 protected constructor() {}
2380 export function LDKSpendableOutputDescriptor_ty_from_ptr(ptr: bigint): number {
2381 if(!isWasmInitialized) {
2382 throw new Error("initializeWasm() must be awaited first!");
2384 const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_ty_from_ptr(ptr);
2385 return nativeResponseValue;
2388 export function LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr: bigint): bigint {
2389 if(!isWasmInitialized) {
2390 throw new Error("initializeWasm() must be awaited first!");
2392 const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_outpoint(ptr);
2393 return nativeResponseValue;
2396 export function LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr: bigint): bigint {
2397 if(!isWasmInitialized) {
2398 throw new Error("initializeWasm() must be awaited first!");
2400 const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticOutput_get_output(ptr);
2401 return nativeResponseValue;
2404 export function LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr: bigint): bigint {
2405 if(!isWasmInitialized) {
2406 throw new Error("initializeWasm() must be awaited first!");
2408 const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_DelayedPaymentOutput_get_delayed_payment_output(ptr);
2409 return nativeResponseValue;
2412 export function LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr: bigint): bigint {
2413 if(!isWasmInitialized) {
2414 throw new Error("initializeWasm() must be awaited first!");
2416 const nativeResponseValue = wasm.TS_LDKSpendableOutputDescriptor_StaticPaymentOutput_get_static_payment_output(ptr);
2417 return nativeResponseValue;
2420 export class LDKEvent {
2421 protected constructor() {}
2424 export function LDKEvent_ty_from_ptr(ptr: bigint): number {
2425 if(!isWasmInitialized) {
2426 throw new Error("initializeWasm() must be awaited first!");
2428 const nativeResponseValue = wasm.TS_LDKEvent_ty_from_ptr(ptr);
2429 return nativeResponseValue;
2432 export function LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr: bigint): number {
2433 if(!isWasmInitialized) {
2434 throw new Error("initializeWasm() must be awaited first!");
2436 const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_temporary_channel_id(ptr);
2437 return nativeResponseValue;
2440 export function LDKEvent_FundingGenerationReady_get_counterparty_node_id(ptr: bigint): number {
2441 if(!isWasmInitialized) {
2442 throw new Error("initializeWasm() must be awaited first!");
2444 const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_counterparty_node_id(ptr);
2445 return nativeResponseValue;
2448 export function LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr: bigint): bigint {
2449 if(!isWasmInitialized) {
2450 throw new Error("initializeWasm() must be awaited first!");
2452 const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_channel_value_satoshis(ptr);
2453 return nativeResponseValue;
2456 export function LDKEvent_FundingGenerationReady_get_output_script(ptr: bigint): number {
2457 if(!isWasmInitialized) {
2458 throw new Error("initializeWasm() must be awaited first!");
2460 const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_output_script(ptr);
2461 return nativeResponseValue;
2464 export function LDKEvent_FundingGenerationReady_get_user_channel_id(ptr: bigint): number {
2465 if(!isWasmInitialized) {
2466 throw new Error("initializeWasm() must be awaited first!");
2468 const nativeResponseValue = wasm.TS_LDKEvent_FundingGenerationReady_get_user_channel_id(ptr);
2469 return nativeResponseValue;
2472 export function LDKEvent_PaymentClaimable_get_receiver_node_id(ptr: bigint): number {
2473 if(!isWasmInitialized) {
2474 throw new Error("initializeWasm() must be awaited first!");
2476 const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimable_get_receiver_node_id(ptr);
2477 return nativeResponseValue;
2480 export function LDKEvent_PaymentClaimable_get_payment_hash(ptr: bigint): number {
2481 if(!isWasmInitialized) {
2482 throw new Error("initializeWasm() must be awaited first!");
2484 const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimable_get_payment_hash(ptr);
2485 return nativeResponseValue;
2488 export function LDKEvent_PaymentClaimable_get_onion_fields(ptr: bigint): bigint {
2489 if(!isWasmInitialized) {
2490 throw new Error("initializeWasm() must be awaited first!");
2492 const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimable_get_onion_fields(ptr);
2493 return nativeResponseValue;
2496 export function LDKEvent_PaymentClaimable_get_amount_msat(ptr: bigint): bigint {
2497 if(!isWasmInitialized) {
2498 throw new Error("initializeWasm() must be awaited first!");
2500 const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimable_get_amount_msat(ptr);
2501 return nativeResponseValue;
2504 export function LDKEvent_PaymentClaimable_get_purpose(ptr: bigint): bigint {
2505 if(!isWasmInitialized) {
2506 throw new Error("initializeWasm() must be awaited first!");
2508 const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimable_get_purpose(ptr);
2509 return nativeResponseValue;
2512 export function LDKEvent_PaymentClaimable_get_via_channel_id(ptr: bigint): number {
2513 if(!isWasmInitialized) {
2514 throw new Error("initializeWasm() must be awaited first!");
2516 const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimable_get_via_channel_id(ptr);
2517 return nativeResponseValue;
2520 export function LDKEvent_PaymentClaimable_get_via_user_channel_id(ptr: bigint): bigint {
2521 if(!isWasmInitialized) {
2522 throw new Error("initializeWasm() must be awaited first!");
2524 const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimable_get_via_user_channel_id(ptr);
2525 return nativeResponseValue;
2528 export function LDKEvent_PaymentClaimable_get_claim_deadline(ptr: bigint): bigint {
2529 if(!isWasmInitialized) {
2530 throw new Error("initializeWasm() must be awaited first!");
2532 const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimable_get_claim_deadline(ptr);
2533 return nativeResponseValue;
2536 export function LDKEvent_PaymentClaimed_get_receiver_node_id(ptr: bigint): number {
2537 if(!isWasmInitialized) {
2538 throw new Error("initializeWasm() must be awaited first!");
2540 const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_receiver_node_id(ptr);
2541 return nativeResponseValue;
2544 export function LDKEvent_PaymentClaimed_get_payment_hash(ptr: bigint): number {
2545 if(!isWasmInitialized) {
2546 throw new Error("initializeWasm() must be awaited first!");
2548 const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_payment_hash(ptr);
2549 return nativeResponseValue;
2552 export function LDKEvent_PaymentClaimed_get_amount_msat(ptr: bigint): bigint {
2553 if(!isWasmInitialized) {
2554 throw new Error("initializeWasm() must be awaited first!");
2556 const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_amount_msat(ptr);
2557 return nativeResponseValue;
2560 export function LDKEvent_PaymentClaimed_get_purpose(ptr: bigint): bigint {
2561 if(!isWasmInitialized) {
2562 throw new Error("initializeWasm() must be awaited first!");
2564 const nativeResponseValue = wasm.TS_LDKEvent_PaymentClaimed_get_purpose(ptr);
2565 return nativeResponseValue;
2568 export function LDKEvent_PaymentSent_get_payment_id(ptr: bigint): number {
2569 if(!isWasmInitialized) {
2570 throw new Error("initializeWasm() must be awaited first!");
2572 const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_id(ptr);
2573 return nativeResponseValue;
2576 export function LDKEvent_PaymentSent_get_payment_preimage(ptr: bigint): number {
2577 if(!isWasmInitialized) {
2578 throw new Error("initializeWasm() must be awaited first!");
2580 const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_preimage(ptr);
2581 return nativeResponseValue;
2584 export function LDKEvent_PaymentSent_get_payment_hash(ptr: bigint): number {
2585 if(!isWasmInitialized) {
2586 throw new Error("initializeWasm() must be awaited first!");
2588 const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_payment_hash(ptr);
2589 return nativeResponseValue;
2592 export function LDKEvent_PaymentSent_get_fee_paid_msat(ptr: bigint): bigint {
2593 if(!isWasmInitialized) {
2594 throw new Error("initializeWasm() must be awaited first!");
2596 const nativeResponseValue = wasm.TS_LDKEvent_PaymentSent_get_fee_paid_msat(ptr);
2597 return nativeResponseValue;
2600 export function LDKEvent_PaymentFailed_get_payment_id(ptr: bigint): number {
2601 if(!isWasmInitialized) {
2602 throw new Error("initializeWasm() must be awaited first!");
2604 const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_id(ptr);
2605 return nativeResponseValue;
2608 export function LDKEvent_PaymentFailed_get_payment_hash(ptr: bigint): number {
2609 if(!isWasmInitialized) {
2610 throw new Error("initializeWasm() must be awaited first!");
2612 const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_payment_hash(ptr);
2613 return nativeResponseValue;
2616 export function LDKEvent_PaymentFailed_get_reason(ptr: bigint): bigint {
2617 if(!isWasmInitialized) {
2618 throw new Error("initializeWasm() must be awaited first!");
2620 const nativeResponseValue = wasm.TS_LDKEvent_PaymentFailed_get_reason(ptr);
2621 return nativeResponseValue;
2624 export function LDKEvent_PaymentPathSuccessful_get_payment_id(ptr: bigint): number {
2625 if(!isWasmInitialized) {
2626 throw new Error("initializeWasm() must be awaited first!");
2628 const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_id(ptr);
2629 return nativeResponseValue;
2632 export function LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr: bigint): number {
2633 if(!isWasmInitialized) {
2634 throw new Error("initializeWasm() must be awaited first!");
2636 const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_payment_hash(ptr);
2637 return nativeResponseValue;
2640 export function LDKEvent_PaymentPathSuccessful_get_path(ptr: bigint): bigint {
2641 if(!isWasmInitialized) {
2642 throw new Error("initializeWasm() must be awaited first!");
2644 const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathSuccessful_get_path(ptr);
2645 return nativeResponseValue;
2648 export function LDKEvent_PaymentPathFailed_get_payment_id(ptr: bigint): number {
2649 if(!isWasmInitialized) {
2650 throw new Error("initializeWasm() must be awaited first!");
2652 const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_id(ptr);
2653 return nativeResponseValue;
2656 export function LDKEvent_PaymentPathFailed_get_payment_hash(ptr: bigint): number {
2657 if(!isWasmInitialized) {
2658 throw new Error("initializeWasm() must be awaited first!");
2660 const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_hash(ptr);
2661 return nativeResponseValue;
2664 export function LDKEvent_PaymentPathFailed_get_payment_failed_permanently(ptr: bigint): boolean {
2665 if(!isWasmInitialized) {
2666 throw new Error("initializeWasm() must be awaited first!");
2668 const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_payment_failed_permanently(ptr);
2669 return nativeResponseValue;
2672 export function LDKEvent_PaymentPathFailed_get_failure(ptr: bigint): bigint {
2673 if(!isWasmInitialized) {
2674 throw new Error("initializeWasm() must be awaited first!");
2676 const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_failure(ptr);
2677 return nativeResponseValue;
2680 export function LDKEvent_PaymentPathFailed_get_path(ptr: bigint): bigint {
2681 if(!isWasmInitialized) {
2682 throw new Error("initializeWasm() must be awaited first!");
2684 const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_path(ptr);
2685 return nativeResponseValue;
2688 export function LDKEvent_PaymentPathFailed_get_short_channel_id(ptr: bigint): bigint {
2689 if(!isWasmInitialized) {
2690 throw new Error("initializeWasm() must be awaited first!");
2692 const nativeResponseValue = wasm.TS_LDKEvent_PaymentPathFailed_get_short_channel_id(ptr);
2693 return nativeResponseValue;
2696 export function LDKEvent_ProbeSuccessful_get_payment_id(ptr: bigint): number {
2697 if(!isWasmInitialized) {
2698 throw new Error("initializeWasm() must be awaited first!");
2700 const nativeResponseValue = wasm.TS_LDKEvent_ProbeSuccessful_get_payment_id(ptr);
2701 return nativeResponseValue;
2704 export function LDKEvent_ProbeSuccessful_get_payment_hash(ptr: bigint): number {
2705 if(!isWasmInitialized) {
2706 throw new Error("initializeWasm() must be awaited first!");
2708 const nativeResponseValue = wasm.TS_LDKEvent_ProbeSuccessful_get_payment_hash(ptr);
2709 return nativeResponseValue;
2712 export function LDKEvent_ProbeSuccessful_get_path(ptr: bigint): bigint {
2713 if(!isWasmInitialized) {
2714 throw new Error("initializeWasm() must be awaited first!");
2716 const nativeResponseValue = wasm.TS_LDKEvent_ProbeSuccessful_get_path(ptr);
2717 return nativeResponseValue;
2720 export function LDKEvent_ProbeFailed_get_payment_id(ptr: bigint): number {
2721 if(!isWasmInitialized) {
2722 throw new Error("initializeWasm() must be awaited first!");
2724 const nativeResponseValue = wasm.TS_LDKEvent_ProbeFailed_get_payment_id(ptr);
2725 return nativeResponseValue;
2728 export function LDKEvent_ProbeFailed_get_payment_hash(ptr: bigint): number {
2729 if(!isWasmInitialized) {
2730 throw new Error("initializeWasm() must be awaited first!");
2732 const nativeResponseValue = wasm.TS_LDKEvent_ProbeFailed_get_payment_hash(ptr);
2733 return nativeResponseValue;
2736 export function LDKEvent_ProbeFailed_get_path(ptr: bigint): bigint {
2737 if(!isWasmInitialized) {
2738 throw new Error("initializeWasm() must be awaited first!");
2740 const nativeResponseValue = wasm.TS_LDKEvent_ProbeFailed_get_path(ptr);
2741 return nativeResponseValue;
2744 export function LDKEvent_ProbeFailed_get_short_channel_id(ptr: bigint): bigint {
2745 if(!isWasmInitialized) {
2746 throw new Error("initializeWasm() must be awaited first!");
2748 const nativeResponseValue = wasm.TS_LDKEvent_ProbeFailed_get_short_channel_id(ptr);
2749 return nativeResponseValue;
2752 export function LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr: bigint): bigint {
2753 if(!isWasmInitialized) {
2754 throw new Error("initializeWasm() must be awaited first!");
2756 const nativeResponseValue = wasm.TS_LDKEvent_PendingHTLCsForwardable_get_time_forwardable(ptr);
2757 return nativeResponseValue;
2760 export function LDKEvent_HTLCIntercepted_get_intercept_id(ptr: bigint): number {
2761 if(!isWasmInitialized) {
2762 throw new Error("initializeWasm() must be awaited first!");
2764 const nativeResponseValue = wasm.TS_LDKEvent_HTLCIntercepted_get_intercept_id(ptr);
2765 return nativeResponseValue;
2768 export function LDKEvent_HTLCIntercepted_get_requested_next_hop_scid(ptr: bigint): bigint {
2769 if(!isWasmInitialized) {
2770 throw new Error("initializeWasm() must be awaited first!");
2772 const nativeResponseValue = wasm.TS_LDKEvent_HTLCIntercepted_get_requested_next_hop_scid(ptr);
2773 return nativeResponseValue;
2776 export function LDKEvent_HTLCIntercepted_get_payment_hash(ptr: bigint): number {
2777 if(!isWasmInitialized) {
2778 throw new Error("initializeWasm() must be awaited first!");
2780 const nativeResponseValue = wasm.TS_LDKEvent_HTLCIntercepted_get_payment_hash(ptr);
2781 return nativeResponseValue;
2784 export function LDKEvent_HTLCIntercepted_get_inbound_amount_msat(ptr: bigint): bigint {
2785 if(!isWasmInitialized) {
2786 throw new Error("initializeWasm() must be awaited first!");
2788 const nativeResponseValue = wasm.TS_LDKEvent_HTLCIntercepted_get_inbound_amount_msat(ptr);
2789 return nativeResponseValue;
2792 export function LDKEvent_HTLCIntercepted_get_expected_outbound_amount_msat(ptr: bigint): bigint {
2793 if(!isWasmInitialized) {
2794 throw new Error("initializeWasm() must be awaited first!");
2796 const nativeResponseValue = wasm.TS_LDKEvent_HTLCIntercepted_get_expected_outbound_amount_msat(ptr);
2797 return nativeResponseValue;
2800 export function LDKEvent_SpendableOutputs_get_outputs(ptr: bigint): number {
2801 if(!isWasmInitialized) {
2802 throw new Error("initializeWasm() must be awaited first!");
2804 const nativeResponseValue = wasm.TS_LDKEvent_SpendableOutputs_get_outputs(ptr);
2805 return nativeResponseValue;
2808 export function LDKEvent_PaymentForwarded_get_prev_channel_id(ptr: bigint): number {
2809 if(!isWasmInitialized) {
2810 throw new Error("initializeWasm() must be awaited first!");
2812 const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_prev_channel_id(ptr);
2813 return nativeResponseValue;
2816 export function LDKEvent_PaymentForwarded_get_next_channel_id(ptr: bigint): number {
2817 if(!isWasmInitialized) {
2818 throw new Error("initializeWasm() must be awaited first!");
2820 const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_next_channel_id(ptr);
2821 return nativeResponseValue;
2824 export function LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr: bigint): bigint {
2825 if(!isWasmInitialized) {
2826 throw new Error("initializeWasm() must be awaited first!");
2828 const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_fee_earned_msat(ptr);
2829 return nativeResponseValue;
2832 export function LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr: bigint): boolean {
2833 if(!isWasmInitialized) {
2834 throw new Error("initializeWasm() must be awaited first!");
2836 const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_claim_from_onchain_tx(ptr);
2837 return nativeResponseValue;
2840 export function LDKEvent_PaymentForwarded_get_outbound_amount_forwarded_msat(ptr: bigint): bigint {
2841 if(!isWasmInitialized) {
2842 throw new Error("initializeWasm() must be awaited first!");
2844 const nativeResponseValue = wasm.TS_LDKEvent_PaymentForwarded_get_outbound_amount_forwarded_msat(ptr);
2845 return nativeResponseValue;
2848 export function LDKEvent_ChannelPending_get_channel_id(ptr: bigint): number {
2849 if(!isWasmInitialized) {
2850 throw new Error("initializeWasm() must be awaited first!");
2852 const nativeResponseValue = wasm.TS_LDKEvent_ChannelPending_get_channel_id(ptr);
2853 return nativeResponseValue;
2856 export function LDKEvent_ChannelPending_get_user_channel_id(ptr: bigint): number {
2857 if(!isWasmInitialized) {
2858 throw new Error("initializeWasm() must be awaited first!");
2860 const nativeResponseValue = wasm.TS_LDKEvent_ChannelPending_get_user_channel_id(ptr);
2861 return nativeResponseValue;
2864 export function LDKEvent_ChannelPending_get_former_temporary_channel_id(ptr: bigint): number {
2865 if(!isWasmInitialized) {
2866 throw new Error("initializeWasm() must be awaited first!");
2868 const nativeResponseValue = wasm.TS_LDKEvent_ChannelPending_get_former_temporary_channel_id(ptr);
2869 return nativeResponseValue;
2872 export function LDKEvent_ChannelPending_get_counterparty_node_id(ptr: bigint): number {
2873 if(!isWasmInitialized) {
2874 throw new Error("initializeWasm() must be awaited first!");
2876 const nativeResponseValue = wasm.TS_LDKEvent_ChannelPending_get_counterparty_node_id(ptr);
2877 return nativeResponseValue;
2880 export function LDKEvent_ChannelPending_get_funding_txo(ptr: bigint): bigint {
2881 if(!isWasmInitialized) {
2882 throw new Error("initializeWasm() must be awaited first!");
2884 const nativeResponseValue = wasm.TS_LDKEvent_ChannelPending_get_funding_txo(ptr);
2885 return nativeResponseValue;
2888 export function LDKEvent_ChannelReady_get_channel_id(ptr: bigint): number {
2889 if(!isWasmInitialized) {
2890 throw new Error("initializeWasm() must be awaited first!");
2892 const nativeResponseValue = wasm.TS_LDKEvent_ChannelReady_get_channel_id(ptr);
2893 return nativeResponseValue;
2896 export function LDKEvent_ChannelReady_get_user_channel_id(ptr: bigint): number {
2897 if(!isWasmInitialized) {
2898 throw new Error("initializeWasm() must be awaited first!");
2900 const nativeResponseValue = wasm.TS_LDKEvent_ChannelReady_get_user_channel_id(ptr);
2901 return nativeResponseValue;
2904 export function LDKEvent_ChannelReady_get_counterparty_node_id(ptr: bigint): number {
2905 if(!isWasmInitialized) {
2906 throw new Error("initializeWasm() must be awaited first!");
2908 const nativeResponseValue = wasm.TS_LDKEvent_ChannelReady_get_counterparty_node_id(ptr);
2909 return nativeResponseValue;
2912 export function LDKEvent_ChannelReady_get_channel_type(ptr: bigint): bigint {
2913 if(!isWasmInitialized) {
2914 throw new Error("initializeWasm() must be awaited first!");
2916 const nativeResponseValue = wasm.TS_LDKEvent_ChannelReady_get_channel_type(ptr);
2917 return nativeResponseValue;
2920 export function LDKEvent_ChannelClosed_get_channel_id(ptr: bigint): number {
2921 if(!isWasmInitialized) {
2922 throw new Error("initializeWasm() must be awaited first!");
2924 const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_channel_id(ptr);
2925 return nativeResponseValue;
2928 export function LDKEvent_ChannelClosed_get_user_channel_id(ptr: bigint): number {
2929 if(!isWasmInitialized) {
2930 throw new Error("initializeWasm() must be awaited first!");
2932 const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_user_channel_id(ptr);
2933 return nativeResponseValue;
2936 export function LDKEvent_ChannelClosed_get_reason(ptr: bigint): bigint {
2937 if(!isWasmInitialized) {
2938 throw new Error("initializeWasm() must be awaited first!");
2940 const nativeResponseValue = wasm.TS_LDKEvent_ChannelClosed_get_reason(ptr);
2941 return nativeResponseValue;
2944 export function LDKEvent_DiscardFunding_get_channel_id(ptr: bigint): number {
2945 if(!isWasmInitialized) {
2946 throw new Error("initializeWasm() must be awaited first!");
2948 const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_channel_id(ptr);
2949 return nativeResponseValue;
2952 export function LDKEvent_DiscardFunding_get_transaction(ptr: bigint): number {
2953 if(!isWasmInitialized) {
2954 throw new Error("initializeWasm() must be awaited first!");
2956 const nativeResponseValue = wasm.TS_LDKEvent_DiscardFunding_get_transaction(ptr);
2957 return nativeResponseValue;
2960 export function LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr: bigint): number {
2961 if(!isWasmInitialized) {
2962 throw new Error("initializeWasm() must be awaited first!");
2964 const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_temporary_channel_id(ptr);
2965 return nativeResponseValue;
2968 export function LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr: bigint): number {
2969 if(!isWasmInitialized) {
2970 throw new Error("initializeWasm() must be awaited first!");
2972 const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_counterparty_node_id(ptr);
2973 return nativeResponseValue;
2976 export function LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr: bigint): bigint {
2977 if(!isWasmInitialized) {
2978 throw new Error("initializeWasm() must be awaited first!");
2980 const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_funding_satoshis(ptr);
2981 return nativeResponseValue;
2984 export function LDKEvent_OpenChannelRequest_get_push_msat(ptr: bigint): bigint {
2985 if(!isWasmInitialized) {
2986 throw new Error("initializeWasm() must be awaited first!");
2988 const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_push_msat(ptr);
2989 return nativeResponseValue;
2992 export function LDKEvent_OpenChannelRequest_get_channel_type(ptr: bigint): bigint {
2993 if(!isWasmInitialized) {
2994 throw new Error("initializeWasm() must be awaited first!");
2996 const nativeResponseValue = wasm.TS_LDKEvent_OpenChannelRequest_get_channel_type(ptr);
2997 return nativeResponseValue;
3000 export function LDKEvent_HTLCHandlingFailed_get_prev_channel_id(ptr: bigint): number {
3001 if(!isWasmInitialized) {
3002 throw new Error("initializeWasm() must be awaited first!");
3004 const nativeResponseValue = wasm.TS_LDKEvent_HTLCHandlingFailed_get_prev_channel_id(ptr);
3005 return nativeResponseValue;
3008 export function LDKEvent_HTLCHandlingFailed_get_failed_next_destination(ptr: bigint): bigint {
3009 if(!isWasmInitialized) {
3010 throw new Error("initializeWasm() must be awaited first!");
3012 const nativeResponseValue = wasm.TS_LDKEvent_HTLCHandlingFailed_get_failed_next_destination(ptr);
3013 return nativeResponseValue;
3016 export class LDKCOption_EventZ {
3017 protected constructor() {}
3020 export function LDKCOption_EventZ_ty_from_ptr(ptr: bigint): number {
3021 if(!isWasmInitialized) {
3022 throw new Error("initializeWasm() must be awaited first!");
3024 const nativeResponseValue = wasm.TS_LDKCOption_EventZ_ty_from_ptr(ptr);
3025 return nativeResponseValue;
3028 export function LDKCOption_EventZ_Some_get_some(ptr: bigint): bigint {
3029 if(!isWasmInitialized) {
3030 throw new Error("initializeWasm() must be awaited first!");
3032 const nativeResponseValue = wasm.TS_LDKCOption_EventZ_Some_get_some(ptr);
3033 return nativeResponseValue;
3035 // struct LDKCOption_EventZ CResult_COption_EventZDecodeErrorZ_get_ok(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
3037 export function CResult_COption_EventZDecodeErrorZ_get_ok(owner: bigint): bigint {
3038 if(!isWasmInitialized) {
3039 throw new Error("initializeWasm() must be awaited first!");
3041 const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_ok(owner);
3042 return nativeResponseValue;
3044 // struct LDKDecodeError CResult_COption_EventZDecodeErrorZ_get_err(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR owner);
3046 export function CResult_COption_EventZDecodeErrorZ_get_err(owner: bigint): bigint {
3047 if(!isWasmInitialized) {
3048 throw new Error("initializeWasm() must be awaited first!");
3050 const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_get_err(owner);
3051 return nativeResponseValue;
3054 export class LDKErrorAction {
3055 protected constructor() {}
3058 export function LDKErrorAction_ty_from_ptr(ptr: bigint): number {
3059 if(!isWasmInitialized) {
3060 throw new Error("initializeWasm() must be awaited first!");
3062 const nativeResponseValue = wasm.TS_LDKErrorAction_ty_from_ptr(ptr);
3063 return nativeResponseValue;
3066 export function LDKErrorAction_DisconnectPeer_get_msg(ptr: bigint): bigint {
3067 if(!isWasmInitialized) {
3068 throw new Error("initializeWasm() must be awaited first!");
3070 const nativeResponseValue = wasm.TS_LDKErrorAction_DisconnectPeer_get_msg(ptr);
3071 return nativeResponseValue;
3074 export function LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr: bigint): Level {
3075 if(!isWasmInitialized) {
3076 throw new Error("initializeWasm() must be awaited first!");
3078 const nativeResponseValue = wasm.TS_LDKErrorAction_IgnoreAndLog_get_ignore_and_log(ptr);
3079 return nativeResponseValue;
3082 export function LDKErrorAction_SendErrorMessage_get_msg(ptr: bigint): bigint {
3083 if(!isWasmInitialized) {
3084 throw new Error("initializeWasm() must be awaited first!");
3086 const nativeResponseValue = wasm.TS_LDKErrorAction_SendErrorMessage_get_msg(ptr);
3087 return nativeResponseValue;
3090 export function LDKErrorAction_SendWarningMessage_get_msg(ptr: bigint): bigint {
3091 if(!isWasmInitialized) {
3092 throw new Error("initializeWasm() must be awaited first!");
3094 const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_msg(ptr);
3095 return nativeResponseValue;
3098 export function LDKErrorAction_SendWarningMessage_get_log_level(ptr: bigint): Level {
3099 if(!isWasmInitialized) {
3100 throw new Error("initializeWasm() must be awaited first!");
3102 const nativeResponseValue = wasm.TS_LDKErrorAction_SendWarningMessage_get_log_level(ptr);
3103 return nativeResponseValue;
3106 export class LDKMessageSendEvent {
3107 protected constructor() {}
3110 export function LDKMessageSendEvent_ty_from_ptr(ptr: bigint): number {
3111 if(!isWasmInitialized) {
3112 throw new Error("initializeWasm() must be awaited first!");
3114 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_ty_from_ptr(ptr);
3115 return nativeResponseValue;
3118 export function LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr: bigint): number {
3119 if(!isWasmInitialized) {
3120 throw new Error("initializeWasm() must be awaited first!");
3122 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_node_id(ptr);
3123 return nativeResponseValue;
3126 export function LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr: bigint): bigint {
3127 if(!isWasmInitialized) {
3128 throw new Error("initializeWasm() must be awaited first!");
3130 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAcceptChannel_get_msg(ptr);
3131 return nativeResponseValue;
3134 export function LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr: bigint): number {
3135 if(!isWasmInitialized) {
3136 throw new Error("initializeWasm() must be awaited first!");
3138 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_node_id(ptr);
3139 return nativeResponseValue;
3142 export function LDKMessageSendEvent_SendOpenChannel_get_msg(ptr: bigint): bigint {
3143 if(!isWasmInitialized) {
3144 throw new Error("initializeWasm() must be awaited first!");
3146 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendOpenChannel_get_msg(ptr);
3147 return nativeResponseValue;
3150 export function LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr: bigint): number {
3151 if(!isWasmInitialized) {
3152 throw new Error("initializeWasm() must be awaited first!");
3154 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_node_id(ptr);
3155 return nativeResponseValue;
3158 export function LDKMessageSendEvent_SendFundingCreated_get_msg(ptr: bigint): bigint {
3159 if(!isWasmInitialized) {
3160 throw new Error("initializeWasm() must be awaited first!");
3162 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingCreated_get_msg(ptr);
3163 return nativeResponseValue;
3166 export function LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr: bigint): number {
3167 if(!isWasmInitialized) {
3168 throw new Error("initializeWasm() must be awaited first!");
3170 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_node_id(ptr);
3171 return nativeResponseValue;
3174 export function LDKMessageSendEvent_SendFundingSigned_get_msg(ptr: bigint): bigint {
3175 if(!isWasmInitialized) {
3176 throw new Error("initializeWasm() must be awaited first!");
3178 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendFundingSigned_get_msg(ptr);
3179 return nativeResponseValue;
3182 export function LDKMessageSendEvent_SendChannelReady_get_node_id(ptr: bigint): number {
3183 if(!isWasmInitialized) {
3184 throw new Error("initializeWasm() must be awaited first!");
3186 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReady_get_node_id(ptr);
3187 return nativeResponseValue;
3190 export function LDKMessageSendEvent_SendChannelReady_get_msg(ptr: bigint): bigint {
3191 if(!isWasmInitialized) {
3192 throw new Error("initializeWasm() must be awaited first!");
3194 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReady_get_msg(ptr);
3195 return nativeResponseValue;
3198 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr: bigint): number {
3199 if(!isWasmInitialized) {
3200 throw new Error("initializeWasm() must be awaited first!");
3202 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_node_id(ptr);
3203 return nativeResponseValue;
3206 export function LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr: bigint): bigint {
3207 if(!isWasmInitialized) {
3208 throw new Error("initializeWasm() must be awaited first!");
3210 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendAnnouncementSignatures_get_msg(ptr);
3211 return nativeResponseValue;
3214 export function LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr: bigint): number {
3215 if(!isWasmInitialized) {
3216 throw new Error("initializeWasm() must be awaited first!");
3218 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_node_id(ptr);
3219 return nativeResponseValue;
3222 export function LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr: bigint): bigint {
3223 if(!isWasmInitialized) {
3224 throw new Error("initializeWasm() must be awaited first!");
3226 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_UpdateHTLCs_get_updates(ptr);
3227 return nativeResponseValue;
3230 export function LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr: bigint): number {
3231 if(!isWasmInitialized) {
3232 throw new Error("initializeWasm() must be awaited first!");
3234 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_node_id(ptr);
3235 return nativeResponseValue;
3238 export function LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr: bigint): bigint {
3239 if(!isWasmInitialized) {
3240 throw new Error("initializeWasm() must be awaited first!");
3242 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendRevokeAndACK_get_msg(ptr);
3243 return nativeResponseValue;
3246 export function LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr: bigint): number {
3247 if(!isWasmInitialized) {
3248 throw new Error("initializeWasm() must be awaited first!");
3250 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_node_id(ptr);
3251 return nativeResponseValue;
3254 export function LDKMessageSendEvent_SendClosingSigned_get_msg(ptr: bigint): bigint {
3255 if(!isWasmInitialized) {
3256 throw new Error("initializeWasm() must be awaited first!");
3258 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendClosingSigned_get_msg(ptr);
3259 return nativeResponseValue;
3262 export function LDKMessageSendEvent_SendShutdown_get_node_id(ptr: bigint): number {
3263 if(!isWasmInitialized) {
3264 throw new Error("initializeWasm() must be awaited first!");
3266 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_node_id(ptr);
3267 return nativeResponseValue;
3270 export function LDKMessageSendEvent_SendShutdown_get_msg(ptr: bigint): bigint {
3271 if(!isWasmInitialized) {
3272 throw new Error("initializeWasm() must be awaited first!");
3274 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShutdown_get_msg(ptr);
3275 return nativeResponseValue;
3278 export function LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr: bigint): number {
3279 if(!isWasmInitialized) {
3280 throw new Error("initializeWasm() must be awaited first!");
3282 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_node_id(ptr);
3283 return nativeResponseValue;
3286 export function LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr: bigint): bigint {
3287 if(!isWasmInitialized) {
3288 throw new Error("initializeWasm() must be awaited first!");
3290 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelReestablish_get_msg(ptr);
3291 return nativeResponseValue;
3294 export function LDKMessageSendEvent_SendChannelAnnouncement_get_node_id(ptr: bigint): number {
3295 if(!isWasmInitialized) {
3296 throw new Error("initializeWasm() must be awaited first!");
3298 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelAnnouncement_get_node_id(ptr);
3299 return nativeResponseValue;
3302 export function LDKMessageSendEvent_SendChannelAnnouncement_get_msg(ptr: bigint): bigint {
3303 if(!isWasmInitialized) {
3304 throw new Error("initializeWasm() must be awaited first!");
3306 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelAnnouncement_get_msg(ptr);
3307 return nativeResponseValue;
3310 export function LDKMessageSendEvent_SendChannelAnnouncement_get_update_msg(ptr: bigint): bigint {
3311 if(!isWasmInitialized) {
3312 throw new Error("initializeWasm() must be awaited first!");
3314 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelAnnouncement_get_update_msg(ptr);
3315 return nativeResponseValue;
3318 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr: bigint): bigint {
3319 if(!isWasmInitialized) {
3320 throw new Error("initializeWasm() must be awaited first!");
3322 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_msg(ptr);
3323 return nativeResponseValue;
3326 export function LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr: bigint): bigint {
3327 if(!isWasmInitialized) {
3328 throw new Error("initializeWasm() must be awaited first!");
3330 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelAnnouncement_get_update_msg(ptr);
3331 return nativeResponseValue;
3334 export function LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr: bigint): bigint {
3335 if(!isWasmInitialized) {
3336 throw new Error("initializeWasm() must be awaited first!");
3338 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastChannelUpdate_get_msg(ptr);
3339 return nativeResponseValue;
3342 export function LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr: bigint): bigint {
3343 if(!isWasmInitialized) {
3344 throw new Error("initializeWasm() must be awaited first!");
3346 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_BroadcastNodeAnnouncement_get_msg(ptr);
3347 return nativeResponseValue;
3350 export function LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr: bigint): number {
3351 if(!isWasmInitialized) {
3352 throw new Error("initializeWasm() must be awaited first!");
3354 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_node_id(ptr);
3355 return nativeResponseValue;
3358 export function LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr: bigint): bigint {
3359 if(!isWasmInitialized) {
3360 throw new Error("initializeWasm() must be awaited first!");
3362 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelUpdate_get_msg(ptr);
3363 return nativeResponseValue;
3366 export function LDKMessageSendEvent_HandleError_get_node_id(ptr: bigint): number {
3367 if(!isWasmInitialized) {
3368 throw new Error("initializeWasm() must be awaited first!");
3370 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_node_id(ptr);
3371 return nativeResponseValue;
3374 export function LDKMessageSendEvent_HandleError_get_action(ptr: bigint): bigint {
3375 if(!isWasmInitialized) {
3376 throw new Error("initializeWasm() must be awaited first!");
3378 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_HandleError_get_action(ptr);
3379 return nativeResponseValue;
3382 export function LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr: bigint): number {
3383 if(!isWasmInitialized) {
3384 throw new Error("initializeWasm() must be awaited first!");
3386 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_node_id(ptr);
3387 return nativeResponseValue;
3390 export function LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr: bigint): bigint {
3391 if(!isWasmInitialized) {
3392 throw new Error("initializeWasm() must be awaited first!");
3394 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendChannelRangeQuery_get_msg(ptr);
3395 return nativeResponseValue;
3398 export function LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr: bigint): number {
3399 if(!isWasmInitialized) {
3400 throw new Error("initializeWasm() must be awaited first!");
3402 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_node_id(ptr);
3403 return nativeResponseValue;
3406 export function LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr: bigint): bigint {
3407 if(!isWasmInitialized) {
3408 throw new Error("initializeWasm() must be awaited first!");
3410 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendShortIdsQuery_get_msg(ptr);
3411 return nativeResponseValue;
3414 export function LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr: bigint): number {
3415 if(!isWasmInitialized) {
3416 throw new Error("initializeWasm() must be awaited first!");
3418 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_node_id(ptr);
3419 return nativeResponseValue;
3422 export function LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr: bigint): bigint {
3423 if(!isWasmInitialized) {
3424 throw new Error("initializeWasm() must be awaited first!");
3426 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendReplyChannelRange_get_msg(ptr);
3427 return nativeResponseValue;
3430 export function LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr: bigint): number {
3431 if(!isWasmInitialized) {
3432 throw new Error("initializeWasm() must be awaited first!");
3434 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendGossipTimestampFilter_get_node_id(ptr);
3435 return nativeResponseValue;
3438 export function LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr: bigint): bigint {
3439 if(!isWasmInitialized) {
3440 throw new Error("initializeWasm() must be awaited first!");
3442 const nativeResponseValue = wasm.TS_LDKMessageSendEvent_SendGossipTimestampFilter_get_msg(ptr);
3443 return nativeResponseValue;
3445 // struct LDKPublicKey CResult_PublicKeyErrorZ_get_ok(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
3447 export function CResult_PublicKeyErrorZ_get_ok(owner: bigint): number {
3448 if(!isWasmInitialized) {
3449 throw new Error("initializeWasm() must be awaited first!");
3451 const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_ok(owner);
3452 return nativeResponseValue;
3454 // enum LDKSecp256k1Error CResult_PublicKeyErrorZ_get_err(LDKCResult_PublicKeyErrorZ *NONNULL_PTR owner);
3456 export function CResult_PublicKeyErrorZ_get_err(owner: bigint): Secp256k1Error {
3457 if(!isWasmInitialized) {
3458 throw new Error("initializeWasm() must be awaited first!");
3460 const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_get_err(owner);
3461 return nativeResponseValue;
3463 // struct LDKNodeId CResult_NodeIdDecodeErrorZ_get_ok(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
3465 export function CResult_NodeIdDecodeErrorZ_get_ok(owner: bigint): bigint {
3466 if(!isWasmInitialized) {
3467 throw new Error("initializeWasm() must be awaited first!");
3469 const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_ok(owner);
3470 return nativeResponseValue;
3472 // struct LDKDecodeError CResult_NodeIdDecodeErrorZ_get_err(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR owner);
3474 export function CResult_NodeIdDecodeErrorZ_get_err(owner: bigint): bigint {
3475 if(!isWasmInitialized) {
3476 throw new Error("initializeWasm() must be awaited first!");
3478 const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_get_err(owner);
3479 return nativeResponseValue;
3481 // struct LDKCOption_NetworkUpdateZ CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
3483 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner: bigint): bigint {
3484 if(!isWasmInitialized) {
3485 throw new Error("initializeWasm() must be awaited first!");
3487 const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_ok(owner);
3488 return nativeResponseValue;
3490 // struct LDKDecodeError CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR owner);
3492 export function CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner: bigint): bigint {
3493 if(!isWasmInitialized) {
3494 throw new Error("initializeWasm() must be awaited first!");
3496 const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_get_err(owner);
3497 return nativeResponseValue;
3499 // struct LDKTxOut CResult_TxOutUtxoLookupErrorZ_get_ok(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner);
3501 export function CResult_TxOutUtxoLookupErrorZ_get_ok(owner: bigint): bigint {
3502 if(!isWasmInitialized) {
3503 throw new Error("initializeWasm() must be awaited first!");
3505 const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_get_ok(owner);
3506 return nativeResponseValue;
3508 // enum LDKUtxoLookupError CResult_TxOutUtxoLookupErrorZ_get_err(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR owner);
3510 export function CResult_TxOutUtxoLookupErrorZ_get_err(owner: bigint): UtxoLookupError {
3511 if(!isWasmInitialized) {
3512 throw new Error("initializeWasm() must be awaited first!");
3514 const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_get_err(owner);
3515 return nativeResponseValue;
3518 export class LDKUtxoResult {
3519 protected constructor() {}
3522 export function LDKUtxoResult_ty_from_ptr(ptr: bigint): number {
3523 if(!isWasmInitialized) {
3524 throw new Error("initializeWasm() must be awaited first!");
3526 const nativeResponseValue = wasm.TS_LDKUtxoResult_ty_from_ptr(ptr);
3527 return nativeResponseValue;
3530 export function LDKUtxoResult_Sync_get_sync(ptr: bigint): bigint {
3531 if(!isWasmInitialized) {
3532 throw new Error("initializeWasm() must be awaited first!");
3534 const nativeResponseValue = wasm.TS_LDKUtxoResult_Sync_get_sync(ptr);
3535 return nativeResponseValue;
3538 export function LDKUtxoResult_Async_get_async(ptr: bigint): bigint {
3539 if(!isWasmInitialized) {
3540 throw new Error("initializeWasm() must be awaited first!");
3542 const nativeResponseValue = wasm.TS_LDKUtxoResult_Async_get_async(ptr);
3543 return nativeResponseValue;
3546 export interface LDKUtxoLookup {
3547 get_utxo (genesis_hash: number, short_channel_id: bigint): bigint;
3551 export function LDKUtxoLookup_new(impl: LDKUtxoLookup): [bigint, number] {
3552 if(!isWasmInitialized) {
3553 throw new Error("initializeWasm() must be awaited first!");
3555 var new_obj_idx = js_objs.length;
3556 for (var i = 0; i < js_objs.length; i++) {
3557 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
3559 js_objs[i] = new WeakRef(impl);
3560 return [wasm.TS_LDKUtxoLookup_new(i), i];
3562 // LDKUtxoResult UtxoLookup_get_utxo LDKUtxoLookup *NONNULL_PTR this_arg, const uint8_t (*genesis_hash)[32], uint64_t short_channel_id
3564 export function UtxoLookup_get_utxo(this_arg: bigint, genesis_hash: number, short_channel_id: bigint): bigint {
3565 if(!isWasmInitialized) {
3566 throw new Error("initializeWasm() must be awaited first!");
3568 const nativeResponseValue = wasm.TS_UtxoLookup_get_utxo(this_arg, genesis_hash, short_channel_id);
3569 return nativeResponseValue;
3572 export class LDKCOption_UtxoLookupZ {
3573 protected constructor() {}
3576 export function LDKCOption_UtxoLookupZ_ty_from_ptr(ptr: bigint): number {
3577 if(!isWasmInitialized) {
3578 throw new Error("initializeWasm() must be awaited first!");
3580 const nativeResponseValue = wasm.TS_LDKCOption_UtxoLookupZ_ty_from_ptr(ptr);
3581 return nativeResponseValue;
3584 export function LDKCOption_UtxoLookupZ_Some_get_some(ptr: bigint): bigint {
3585 if(!isWasmInitialized) {
3586 throw new Error("initializeWasm() must be awaited first!");
3588 const nativeResponseValue = wasm.TS_LDKCOption_UtxoLookupZ_Some_get_some(ptr);
3589 return nativeResponseValue;
3591 // bool CResult_boolLightningErrorZ_get_ok(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
3593 export function CResult_boolLightningErrorZ_get_ok(owner: bigint): boolean {
3594 if(!isWasmInitialized) {
3595 throw new Error("initializeWasm() must be awaited first!");
3597 const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_ok(owner);
3598 return nativeResponseValue;
3600 // struct LDKLightningError CResult_boolLightningErrorZ_get_err(LDKCResult_boolLightningErrorZ *NONNULL_PTR owner);
3602 export function CResult_boolLightningErrorZ_get_err(owner: bigint): bigint {
3603 if(!isWasmInitialized) {
3604 throw new Error("initializeWasm() must be awaited first!");
3606 const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_get_err(owner);
3607 return nativeResponseValue;
3609 // struct LDKChannelAnnouncement C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
3611 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner: bigint): bigint {
3612 if(!isWasmInitialized) {
3613 throw new Error("initializeWasm() must be awaited first!");
3615 const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_a(owner);
3616 return nativeResponseValue;
3618 // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
3620 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner: bigint): bigint {
3621 if(!isWasmInitialized) {
3622 throw new Error("initializeWasm() must be awaited first!");
3624 const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_b(owner);
3625 return nativeResponseValue;
3627 // struct LDKChannelUpdate C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR owner);
3629 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner: bigint): bigint {
3630 if(!isWasmInitialized) {
3631 throw new Error("initializeWasm() must be awaited first!");
3633 const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_get_c(owner);
3634 return nativeResponseValue;
3637 export class LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ {
3638 protected constructor() {}
3641 export function LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ty_from_ptr(ptr: bigint): number {
3642 if(!isWasmInitialized) {
3643 throw new Error("initializeWasm() must be awaited first!");
3645 const nativeResponseValue = wasm.TS_LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_ty_from_ptr(ptr);
3646 return nativeResponseValue;
3649 export function LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_Some_get_some(ptr: bigint): bigint {
3650 if(!isWasmInitialized) {
3651 throw new Error("initializeWasm() must be awaited first!");
3653 const nativeResponseValue = wasm.TS_LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_Some_get_some(ptr);
3654 return nativeResponseValue;
3656 // void CResult_NoneLightningErrorZ_get_ok(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
3658 export function CResult_NoneLightningErrorZ_get_ok(owner: bigint): void {
3659 if(!isWasmInitialized) {
3660 throw new Error("initializeWasm() must be awaited first!");
3662 const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_ok(owner);
3663 // debug statements here
3665 // struct LDKLightningError CResult_NoneLightningErrorZ_get_err(LDKCResult_NoneLightningErrorZ *NONNULL_PTR owner);
3667 export function CResult_NoneLightningErrorZ_get_err(owner: bigint): bigint {
3668 if(!isWasmInitialized) {
3669 throw new Error("initializeWasm() must be awaited first!");
3671 const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_get_err(owner);
3672 return nativeResponseValue;
3674 // struct LDKChannelUpdateInfo CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
3676 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner: bigint): bigint {
3677 if(!isWasmInitialized) {
3678 throw new Error("initializeWasm() must be awaited first!");
3680 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_ok(owner);
3681 return nativeResponseValue;
3683 // struct LDKDecodeError CResult_ChannelUpdateInfoDecodeErrorZ_get_err(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR owner);
3685 export function CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner: bigint): bigint {
3686 if(!isWasmInitialized) {
3687 throw new Error("initializeWasm() must be awaited first!");
3689 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_get_err(owner);
3690 return nativeResponseValue;
3692 // struct LDKChannelInfo CResult_ChannelInfoDecodeErrorZ_get_ok(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
3694 export function CResult_ChannelInfoDecodeErrorZ_get_ok(owner: bigint): bigint {
3695 if(!isWasmInitialized) {
3696 throw new Error("initializeWasm() must be awaited first!");
3698 const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_ok(owner);
3699 return nativeResponseValue;
3701 // struct LDKDecodeError CResult_ChannelInfoDecodeErrorZ_get_err(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR owner);
3703 export function CResult_ChannelInfoDecodeErrorZ_get_err(owner: bigint): bigint {
3704 if(!isWasmInitialized) {
3705 throw new Error("initializeWasm() must be awaited first!");
3707 const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_get_err(owner);
3708 return nativeResponseValue;
3710 // struct LDKRoutingFees CResult_RoutingFeesDecodeErrorZ_get_ok(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
3712 export function CResult_RoutingFeesDecodeErrorZ_get_ok(owner: bigint): bigint {
3713 if(!isWasmInitialized) {
3714 throw new Error("initializeWasm() must be awaited first!");
3716 const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_ok(owner);
3717 return nativeResponseValue;
3719 // struct LDKDecodeError CResult_RoutingFeesDecodeErrorZ_get_err(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR owner);
3721 export function CResult_RoutingFeesDecodeErrorZ_get_err(owner: bigint): bigint {
3722 if(!isWasmInitialized) {
3723 throw new Error("initializeWasm() must be awaited first!");
3725 const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_get_err(owner);
3726 return nativeResponseValue;
3729 export class LDKNetAddress {
3730 protected constructor() {}
3733 export function LDKNetAddress_ty_from_ptr(ptr: bigint): number {
3734 if(!isWasmInitialized) {
3735 throw new Error("initializeWasm() must be awaited first!");
3737 const nativeResponseValue = wasm.TS_LDKNetAddress_ty_from_ptr(ptr);
3738 return nativeResponseValue;
3741 export function LDKNetAddress_IPv4_get_addr(ptr: bigint): number {
3742 if(!isWasmInitialized) {
3743 throw new Error("initializeWasm() must be awaited first!");
3745 const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_addr(ptr);
3746 return nativeResponseValue;
3749 export function LDKNetAddress_IPv4_get_port(ptr: bigint): number {
3750 if(!isWasmInitialized) {
3751 throw new Error("initializeWasm() must be awaited first!");
3753 const nativeResponseValue = wasm.TS_LDKNetAddress_IPv4_get_port(ptr);
3754 return nativeResponseValue;
3757 export function LDKNetAddress_IPv6_get_addr(ptr: bigint): number {
3758 if(!isWasmInitialized) {
3759 throw new Error("initializeWasm() must be awaited first!");
3761 const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_addr(ptr);
3762 return nativeResponseValue;
3765 export function LDKNetAddress_IPv6_get_port(ptr: bigint): number {
3766 if(!isWasmInitialized) {
3767 throw new Error("initializeWasm() must be awaited first!");
3769 const nativeResponseValue = wasm.TS_LDKNetAddress_IPv6_get_port(ptr);
3770 return nativeResponseValue;
3773 export function LDKNetAddress_OnionV2_get_onion_v2(ptr: bigint): number {
3774 if(!isWasmInitialized) {
3775 throw new Error("initializeWasm() must be awaited first!");
3777 const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV2_get_onion_v2(ptr);
3778 return nativeResponseValue;
3781 export function LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr: bigint): number {
3782 if(!isWasmInitialized) {
3783 throw new Error("initializeWasm() must be awaited first!");
3785 const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_ed25519_pubkey(ptr);
3786 return nativeResponseValue;
3789 export function LDKNetAddress_OnionV3_get_checksum(ptr: bigint): number {
3790 if(!isWasmInitialized) {
3791 throw new Error("initializeWasm() must be awaited first!");
3793 const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_checksum(ptr);
3794 return nativeResponseValue;
3797 export function LDKNetAddress_OnionV3_get_version(ptr: bigint): number {
3798 if(!isWasmInitialized) {
3799 throw new Error("initializeWasm() must be awaited first!");
3801 const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_version(ptr);
3802 return nativeResponseValue;
3805 export function LDKNetAddress_OnionV3_get_port(ptr: bigint): number {
3806 if(!isWasmInitialized) {
3807 throw new Error("initializeWasm() must be awaited first!");
3809 const nativeResponseValue = wasm.TS_LDKNetAddress_OnionV3_get_port(ptr);
3810 return nativeResponseValue;
3813 export function LDKNetAddress_Hostname_get_hostname(ptr: bigint): bigint {
3814 if(!isWasmInitialized) {
3815 throw new Error("initializeWasm() must be awaited first!");
3817 const nativeResponseValue = wasm.TS_LDKNetAddress_Hostname_get_hostname(ptr);
3818 return nativeResponseValue;
3821 export function LDKNetAddress_Hostname_get_port(ptr: bigint): number {
3822 if(!isWasmInitialized) {
3823 throw new Error("initializeWasm() must be awaited first!");
3825 const nativeResponseValue = wasm.TS_LDKNetAddress_Hostname_get_port(ptr);
3826 return nativeResponseValue;
3828 // struct LDKNodeAnnouncementInfo CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
3830 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner: bigint): bigint {
3831 if(!isWasmInitialized) {
3832 throw new Error("initializeWasm() must be awaited first!");
3834 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_ok(owner);
3835 return nativeResponseValue;
3837 // struct LDKDecodeError CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR owner);
3839 export function CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner: bigint): bigint {
3840 if(!isWasmInitialized) {
3841 throw new Error("initializeWasm() must be awaited first!");
3843 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_get_err(owner);
3844 return nativeResponseValue;
3846 // struct LDKNodeAlias CResult_NodeAliasDecodeErrorZ_get_ok(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
3848 export function CResult_NodeAliasDecodeErrorZ_get_ok(owner: bigint): bigint {
3849 if(!isWasmInitialized) {
3850 throw new Error("initializeWasm() must be awaited first!");
3852 const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_get_ok(owner);
3853 return nativeResponseValue;
3855 // struct LDKDecodeError CResult_NodeAliasDecodeErrorZ_get_err(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR owner);
3857 export function CResult_NodeAliasDecodeErrorZ_get_err(owner: bigint): bigint {
3858 if(!isWasmInitialized) {
3859 throw new Error("initializeWasm() must be awaited first!");
3861 const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_get_err(owner);
3862 return nativeResponseValue;
3864 // struct LDKNodeInfo CResult_NodeInfoDecodeErrorZ_get_ok(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
3866 export function CResult_NodeInfoDecodeErrorZ_get_ok(owner: bigint): bigint {
3867 if(!isWasmInitialized) {
3868 throw new Error("initializeWasm() must be awaited first!");
3870 const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_ok(owner);
3871 return nativeResponseValue;
3873 // struct LDKDecodeError CResult_NodeInfoDecodeErrorZ_get_err(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR owner);
3875 export function CResult_NodeInfoDecodeErrorZ_get_err(owner: bigint): bigint {
3876 if(!isWasmInitialized) {
3877 throw new Error("initializeWasm() must be awaited first!");
3879 const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_get_err(owner);
3880 return nativeResponseValue;
3882 // struct LDKNetworkGraph CResult_NetworkGraphDecodeErrorZ_get_ok(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
3884 export function CResult_NetworkGraphDecodeErrorZ_get_ok(owner: bigint): bigint {
3885 if(!isWasmInitialized) {
3886 throw new Error("initializeWasm() must be awaited first!");
3888 const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_ok(owner);
3889 return nativeResponseValue;
3891 // struct LDKDecodeError CResult_NetworkGraphDecodeErrorZ_get_err(LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR owner);
3893 export function CResult_NetworkGraphDecodeErrorZ_get_err(owner: bigint): bigint {
3894 if(!isWasmInitialized) {
3895 throw new Error("initializeWasm() must be awaited first!");
3897 const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_get_err(owner);
3898 return nativeResponseValue;
3901 export class LDKCOption_CVec_NetAddressZZ {
3902 protected constructor() {}
3905 export function LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr: bigint): number {
3906 if(!isWasmInitialized) {
3907 throw new Error("initializeWasm() must be awaited first!");
3909 const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr);
3910 return nativeResponseValue;
3913 export function LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr: bigint): number {
3914 if(!isWasmInitialized) {
3915 throw new Error("initializeWasm() must be awaited first!");
3917 const nativeResponseValue = wasm.TS_LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr);
3918 return nativeResponseValue;
3920 // struct LDKDelayedPaymentOutputDescriptor CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
3922 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: bigint): bigint {
3923 if(!isWasmInitialized) {
3924 throw new Error("initializeWasm() must be awaited first!");
3926 const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
3927 return nativeResponseValue;
3929 // struct LDKDecodeError CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
3931 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner: bigint): bigint {
3932 if(!isWasmInitialized) {
3933 throw new Error("initializeWasm() must be awaited first!");
3935 const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
3936 return nativeResponseValue;
3938 // struct LDKStaticPaymentOutputDescriptor CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
3940 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner: bigint): bigint {
3941 if(!isWasmInitialized) {
3942 throw new Error("initializeWasm() must be awaited first!");
3944 const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_ok(owner);
3945 return nativeResponseValue;
3947 // struct LDKDecodeError CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
3949 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner: bigint): bigint {
3950 if(!isWasmInitialized) {
3951 throw new Error("initializeWasm() must be awaited first!");
3953 const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_get_err(owner);
3954 return nativeResponseValue;
3956 // struct LDKSpendableOutputDescriptor CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
3958 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner: bigint): bigint {
3959 if(!isWasmInitialized) {
3960 throw new Error("initializeWasm() must be awaited first!");
3962 const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_ok(owner);
3963 return nativeResponseValue;
3965 // struct LDKDecodeError CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR owner);
3967 export function CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner: bigint): bigint {
3968 if(!isWasmInitialized) {
3969 throw new Error("initializeWasm() must be awaited first!");
3971 const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_get_err(owner);
3972 return nativeResponseValue;
3974 // struct LDKSignature C2Tuple_SignatureCVec_SignatureZZ_get_a(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
3976 export function C2Tuple_SignatureCVec_SignatureZZ_get_a(owner: bigint): number {
3977 if(!isWasmInitialized) {
3978 throw new Error("initializeWasm() must be awaited first!");
3980 const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_a(owner);
3981 return nativeResponseValue;
3983 // struct LDKCVec_SignatureZ C2Tuple_SignatureCVec_SignatureZZ_get_b(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR owner);
3985 export function C2Tuple_SignatureCVec_SignatureZZ_get_b(owner: bigint): number {
3986 if(!isWasmInitialized) {
3987 throw new Error("initializeWasm() must be awaited first!");
3989 const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_get_b(owner);
3990 return nativeResponseValue;
3992 // struct LDKC2Tuple_SignatureCVec_SignatureZZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
3994 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner: bigint): bigint {
3995 if(!isWasmInitialized) {
3996 throw new Error("initializeWasm() must be awaited first!");
3998 const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_ok(owner);
3999 return nativeResponseValue;
4001 // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR owner);
4003 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner: bigint): void {
4004 if(!isWasmInitialized) {
4005 throw new Error("initializeWasm() must be awaited first!");
4007 const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_get_err(owner);
4008 // debug statements here
4010 // struct LDKSignature CResult_SignatureNoneZ_get_ok(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
4012 export function CResult_SignatureNoneZ_get_ok(owner: bigint): number {
4013 if(!isWasmInitialized) {
4014 throw new Error("initializeWasm() must be awaited first!");
4016 const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_ok(owner);
4017 return nativeResponseValue;
4019 // void CResult_SignatureNoneZ_get_err(LDKCResult_SignatureNoneZ *NONNULL_PTR owner);
4021 export function CResult_SignatureNoneZ_get_err(owner: bigint): void {
4022 if(!isWasmInitialized) {
4023 throw new Error("initializeWasm() must be awaited first!");
4025 const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_get_err(owner);
4026 // debug statements here
4028 // struct LDKPublicKey CResult_PublicKeyNoneZ_get_ok(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner);
4030 export function CResult_PublicKeyNoneZ_get_ok(owner: bigint): number {
4031 if(!isWasmInitialized) {
4032 throw new Error("initializeWasm() must be awaited first!");
4034 const nativeResponseValue = wasm.TS_CResult_PublicKeyNoneZ_get_ok(owner);
4035 return nativeResponseValue;
4037 // void CResult_PublicKeyNoneZ_get_err(LDKCResult_PublicKeyNoneZ *NONNULL_PTR owner);
4039 export function CResult_PublicKeyNoneZ_get_err(owner: bigint): void {
4040 if(!isWasmInitialized) {
4041 throw new Error("initializeWasm() must be awaited first!");
4043 const nativeResponseValue = wasm.TS_CResult_PublicKeyNoneZ_get_err(owner);
4044 // debug statements here
4047 export class LDKCOption_ScalarZ {
4048 protected constructor() {}
4051 export function LDKCOption_ScalarZ_ty_from_ptr(ptr: bigint): number {
4052 if(!isWasmInitialized) {
4053 throw new Error("initializeWasm() must be awaited first!");
4055 const nativeResponseValue = wasm.TS_LDKCOption_ScalarZ_ty_from_ptr(ptr);
4056 return nativeResponseValue;
4059 export function LDKCOption_ScalarZ_Some_get_some(ptr: bigint): bigint {
4060 if(!isWasmInitialized) {
4061 throw new Error("initializeWasm() must be awaited first!");
4063 const nativeResponseValue = wasm.TS_LDKCOption_ScalarZ_Some_get_some(ptr);
4064 return nativeResponseValue;
4066 // struct LDKThirtyTwoBytes CResult_SharedSecretNoneZ_get_ok(LDKCResult_SharedSecretNoneZ *NONNULL_PTR owner);
4068 export function CResult_SharedSecretNoneZ_get_ok(owner: bigint): number {
4069 if(!isWasmInitialized) {
4070 throw new Error("initializeWasm() must be awaited first!");
4072 const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_get_ok(owner);
4073 return nativeResponseValue;
4075 // void CResult_SharedSecretNoneZ_get_err(LDKCResult_SharedSecretNoneZ *NONNULL_PTR owner);
4077 export function CResult_SharedSecretNoneZ_get_err(owner: bigint): void {
4078 if(!isWasmInitialized) {
4079 throw new Error("initializeWasm() must be awaited first!");
4081 const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_get_err(owner);
4082 // debug statements here
4084 // struct LDKRecoverableSignature CResult_RecoverableSignatureNoneZ_get_ok(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
4086 export function CResult_RecoverableSignatureNoneZ_get_ok(owner: bigint): number {
4087 if(!isWasmInitialized) {
4088 throw new Error("initializeWasm() must be awaited first!");
4090 const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_ok(owner);
4091 return nativeResponseValue;
4093 // void CResult_RecoverableSignatureNoneZ_get_err(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR owner);
4095 export function CResult_RecoverableSignatureNoneZ_get_err(owner: bigint): void {
4096 if(!isWasmInitialized) {
4097 throw new Error("initializeWasm() must be awaited first!");
4099 const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_get_err(owner);
4100 // debug statements here
4103 export interface LDKChannelSigner {
4104 get_per_commitment_point (idx: bigint): number;
4105 release_commitment_secret (idx: bigint): number;
4106 validate_holder_commitment (holder_tx: bigint, preimages: number): bigint;
4107 channel_keys_id (): number;
4108 provide_channel_parameters (channel_parameters: bigint): void;
4112 export function LDKChannelSigner_new(impl: LDKChannelSigner, pubkeys: bigint): [bigint, number] {
4113 if(!isWasmInitialized) {
4114 throw new Error("initializeWasm() must be awaited first!");
4116 var new_obj_idx = js_objs.length;
4117 for (var i = 0; i < js_objs.length; i++) {
4118 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4120 js_objs[i] = new WeakRef(impl);
4121 return [wasm.TS_LDKChannelSigner_new(i, pubkeys), i];
4123 // LDKPublicKey ChannelSigner_get_per_commitment_point LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx
4125 export function ChannelSigner_get_per_commitment_point(this_arg: bigint, idx: bigint): number {
4126 if(!isWasmInitialized) {
4127 throw new Error("initializeWasm() must be awaited first!");
4129 const nativeResponseValue = wasm.TS_ChannelSigner_get_per_commitment_point(this_arg, idx);
4130 return nativeResponseValue;
4132 // LDKThirtyTwoBytes ChannelSigner_release_commitment_secret LDKChannelSigner *NONNULL_PTR this_arg, uint64_t idx
4134 export function ChannelSigner_release_commitment_secret(this_arg: bigint, idx: bigint): number {
4135 if(!isWasmInitialized) {
4136 throw new Error("initializeWasm() must be awaited first!");
4138 const nativeResponseValue = wasm.TS_ChannelSigner_release_commitment_secret(this_arg, idx);
4139 return nativeResponseValue;
4141 // LDKCResult_NoneNoneZ ChannelSigner_validate_holder_commitment LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR holder_tx, struct LDKCVec_PaymentPreimageZ preimages
4143 export function ChannelSigner_validate_holder_commitment(this_arg: bigint, holder_tx: bigint, preimages: number): bigint {
4144 if(!isWasmInitialized) {
4145 throw new Error("initializeWasm() must be awaited first!");
4147 const nativeResponseValue = wasm.TS_ChannelSigner_validate_holder_commitment(this_arg, holder_tx, preimages);
4148 return nativeResponseValue;
4150 // LDKThirtyTwoBytes ChannelSigner_channel_keys_id LDKChannelSigner *NONNULL_PTR this_arg
4152 export function ChannelSigner_channel_keys_id(this_arg: bigint): number {
4153 if(!isWasmInitialized) {
4154 throw new Error("initializeWasm() must be awaited first!");
4156 const nativeResponseValue = wasm.TS_ChannelSigner_channel_keys_id(this_arg);
4157 return nativeResponseValue;
4159 // void ChannelSigner_provide_channel_parameters LDKChannelSigner *NONNULL_PTR this_arg, const struct LDKChannelTransactionParameters *NONNULL_PTR channel_parameters
4161 export function ChannelSigner_provide_channel_parameters(this_arg: bigint, channel_parameters: bigint): void {
4162 if(!isWasmInitialized) {
4163 throw new Error("initializeWasm() must be awaited first!");
4165 const nativeResponseValue = wasm.TS_ChannelSigner_provide_channel_parameters(this_arg, channel_parameters);
4166 // debug statements here
4168 // LDKChannelPublicKeys ChannelSigner_get_pubkeys LDKChannelSigner *NONNULL_PTR this_arg
4170 export function ChannelSigner_get_pubkeys(this_arg: bigint): bigint {
4171 if(!isWasmInitialized) {
4172 throw new Error("initializeWasm() must be awaited first!");
4174 const nativeResponseValue = wasm.TS_ChannelSigner_get_pubkeys(this_arg);
4175 return nativeResponseValue;
4178 export interface LDKEcdsaChannelSigner {
4179 sign_counterparty_commitment (commitment_tx: bigint, preimages: number): bigint;
4180 validate_counterparty_revocation (idx: bigint, secret: number): bigint;
4181 sign_holder_commitment_and_htlcs (commitment_tx: bigint): bigint;
4182 sign_justice_revoked_output (justice_tx: number, input: number, amount: bigint, per_commitment_key: number): bigint;
4183 sign_justice_revoked_htlc (justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: bigint): bigint;
4184 sign_counterparty_htlc_transaction (htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: bigint): bigint;
4185 sign_closing_transaction (closing_tx: bigint): bigint;
4186 sign_holder_anchor_input (anchor_tx: number, input: number): bigint;
4187 sign_channel_announcement_with_funding_key (msg: bigint): bigint;
4191 export function LDKEcdsaChannelSigner_new(impl: LDKEcdsaChannelSigner, ChannelSigner: number, pubkeys: bigint): [bigint, number] {
4192 if(!isWasmInitialized) {
4193 throw new Error("initializeWasm() must be awaited first!");
4195 var new_obj_idx = js_objs.length;
4196 for (var i = 0; i < js_objs.length; i++) {
4197 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4199 js_objs[i] = new WeakRef(impl);
4200 return [wasm.TS_LDKEcdsaChannelSigner_new(i, ChannelSigner, pubkeys), i];
4202 // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ EcdsaChannelSigner_sign_counterparty_commitment LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKCommitmentTransaction *NONNULL_PTR commitment_tx, struct LDKCVec_PaymentPreimageZ preimages
4204 export function EcdsaChannelSigner_sign_counterparty_commitment(this_arg: bigint, commitment_tx: bigint, preimages: number): bigint {
4205 if(!isWasmInitialized) {
4206 throw new Error("initializeWasm() must be awaited first!");
4208 const nativeResponseValue = wasm.TS_EcdsaChannelSigner_sign_counterparty_commitment(this_arg, commitment_tx, preimages);
4209 return nativeResponseValue;
4211 // LDKCResult_NoneNoneZ EcdsaChannelSigner_validate_counterparty_revocation LDKEcdsaChannelSigner *NONNULL_PTR this_arg, uint64_t idx, const uint8_t (*secret)[32]
4213 export function EcdsaChannelSigner_validate_counterparty_revocation(this_arg: bigint, idx: bigint, secret: number): bigint {
4214 if(!isWasmInitialized) {
4215 throw new Error("initializeWasm() must be awaited first!");
4217 const nativeResponseValue = wasm.TS_EcdsaChannelSigner_validate_counterparty_revocation(this_arg, idx, secret);
4218 return nativeResponseValue;
4220 // LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ EcdsaChannelSigner_sign_holder_commitment_and_htlcs LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKHolderCommitmentTransaction *NONNULL_PTR commitment_tx
4222 export function EcdsaChannelSigner_sign_holder_commitment_and_htlcs(this_arg: bigint, commitment_tx: bigint): bigint {
4223 if(!isWasmInitialized) {
4224 throw new Error("initializeWasm() must be awaited first!");
4226 const nativeResponseValue = wasm.TS_EcdsaChannelSigner_sign_holder_commitment_and_htlcs(this_arg, commitment_tx);
4227 return nativeResponseValue;
4229 // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_justice_revoked_output LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32]
4231 export function EcdsaChannelSigner_sign_justice_revoked_output(this_arg: bigint, justice_tx: number, input: number, amount: bigint, per_commitment_key: number): bigint {
4232 if(!isWasmInitialized) {
4233 throw new Error("initializeWasm() must be awaited first!");
4235 const nativeResponseValue = wasm.TS_EcdsaChannelSigner_sign_justice_revoked_output(this_arg, justice_tx, input, amount, per_commitment_key);
4236 return nativeResponseValue;
4238 // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_justice_revoked_htlc LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction justice_tx, uintptr_t input, uint64_t amount, const uint8_t (*per_commitment_key)[32], const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
4240 export function EcdsaChannelSigner_sign_justice_revoked_htlc(this_arg: bigint, justice_tx: number, input: number, amount: bigint, per_commitment_key: number, htlc: bigint): bigint {
4241 if(!isWasmInitialized) {
4242 throw new Error("initializeWasm() must be awaited first!");
4244 const nativeResponseValue = wasm.TS_EcdsaChannelSigner_sign_justice_revoked_htlc(this_arg, justice_tx, input, amount, per_commitment_key, htlc);
4245 return nativeResponseValue;
4247 // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_counterparty_htlc_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction htlc_tx, uintptr_t input, uint64_t amount, struct LDKPublicKey per_commitment_point, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc
4249 export function EcdsaChannelSigner_sign_counterparty_htlc_transaction(this_arg: bigint, htlc_tx: number, input: number, amount: bigint, per_commitment_point: number, htlc: bigint): bigint {
4250 if(!isWasmInitialized) {
4251 throw new Error("initializeWasm() must be awaited first!");
4253 const nativeResponseValue = wasm.TS_EcdsaChannelSigner_sign_counterparty_htlc_transaction(this_arg, htlc_tx, input, amount, per_commitment_point, htlc);
4254 return nativeResponseValue;
4256 // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_closing_transaction LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKClosingTransaction *NONNULL_PTR closing_tx
4258 export function EcdsaChannelSigner_sign_closing_transaction(this_arg: bigint, closing_tx: bigint): bigint {
4259 if(!isWasmInitialized) {
4260 throw new Error("initializeWasm() must be awaited first!");
4262 const nativeResponseValue = wasm.TS_EcdsaChannelSigner_sign_closing_transaction(this_arg, closing_tx);
4263 return nativeResponseValue;
4265 // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_holder_anchor_input LDKEcdsaChannelSigner *NONNULL_PTR this_arg, struct LDKTransaction anchor_tx, uintptr_t input
4267 export function EcdsaChannelSigner_sign_holder_anchor_input(this_arg: bigint, anchor_tx: number, input: number): bigint {
4268 if(!isWasmInitialized) {
4269 throw new Error("initializeWasm() must be awaited first!");
4271 const nativeResponseValue = wasm.TS_EcdsaChannelSigner_sign_holder_anchor_input(this_arg, anchor_tx, input);
4272 return nativeResponseValue;
4274 // LDKCResult_SignatureNoneZ EcdsaChannelSigner_sign_channel_announcement_with_funding_key LDKEcdsaChannelSigner *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg
4276 export function EcdsaChannelSigner_sign_channel_announcement_with_funding_key(this_arg: bigint, msg: bigint): bigint {
4277 if(!isWasmInitialized) {
4278 throw new Error("initializeWasm() must be awaited first!");
4280 const nativeResponseValue = wasm.TS_EcdsaChannelSigner_sign_channel_announcement_with_funding_key(this_arg, msg);
4281 return nativeResponseValue;
4284 export interface LDKWriteableEcdsaChannelSigner {
4289 export function LDKWriteableEcdsaChannelSigner_new(impl: LDKWriteableEcdsaChannelSigner, EcdsaChannelSigner: number, ChannelSigner: number, pubkeys: bigint): [bigint, number] {
4290 if(!isWasmInitialized) {
4291 throw new Error("initializeWasm() must be awaited first!");
4293 var new_obj_idx = js_objs.length;
4294 for (var i = 0; i < js_objs.length; i++) {
4295 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4297 js_objs[i] = new WeakRef(impl);
4298 return [wasm.TS_LDKWriteableEcdsaChannelSigner_new(i, EcdsaChannelSigner, ChannelSigner, pubkeys), i];
4300 // LDKCVec_u8Z WriteableEcdsaChannelSigner_write LDKWriteableEcdsaChannelSigner *NONNULL_PTR this_arg
4302 export function WriteableEcdsaChannelSigner_write(this_arg: bigint): number {
4303 if(!isWasmInitialized) {
4304 throw new Error("initializeWasm() must be awaited first!");
4306 const nativeResponseValue = wasm.TS_WriteableEcdsaChannelSigner_write(this_arg);
4307 return nativeResponseValue;
4309 // struct LDKWriteableEcdsaChannelSigner CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner);
4311 export function CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(owner: bigint): bigint {
4312 if(!isWasmInitialized) {
4313 throw new Error("initializeWasm() must be awaited first!");
4315 const nativeResponseValue = wasm.TS_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_ok(owner);
4316 return nativeResponseValue;
4318 // struct LDKDecodeError CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR owner);
4320 export function CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(owner: bigint): bigint {
4321 if(!isWasmInitialized) {
4322 throw new Error("initializeWasm() must be awaited first!");
4324 const nativeResponseValue = wasm.TS_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_get_err(owner);
4325 return nativeResponseValue;
4327 // struct LDKCVec_CVec_u8ZZ CResult_CVec_CVec_u8ZZNoneZ_get_ok(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
4329 export function CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner: bigint): number {
4330 if(!isWasmInitialized) {
4331 throw new Error("initializeWasm() must be awaited first!");
4333 const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_ok(owner);
4334 return nativeResponseValue;
4336 // void CResult_CVec_CVec_u8ZZNoneZ_get_err(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR owner);
4338 export function CResult_CVec_CVec_u8ZZNoneZ_get_err(owner: bigint): void {
4339 if(!isWasmInitialized) {
4340 throw new Error("initializeWasm() must be awaited first!");
4342 const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_get_err(owner);
4343 // debug statements here
4345 // struct LDKInMemorySigner CResult_InMemorySignerDecodeErrorZ_get_ok(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
4347 export function CResult_InMemorySignerDecodeErrorZ_get_ok(owner: bigint): bigint {
4348 if(!isWasmInitialized) {
4349 throw new Error("initializeWasm() must be awaited first!");
4351 const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_ok(owner);
4352 return nativeResponseValue;
4354 // struct LDKDecodeError CResult_InMemorySignerDecodeErrorZ_get_err(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR owner);
4356 export function CResult_InMemorySignerDecodeErrorZ_get_err(owner: bigint): bigint {
4357 if(!isWasmInitialized) {
4358 throw new Error("initializeWasm() must be awaited first!");
4360 const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_get_err(owner);
4361 return nativeResponseValue;
4363 // struct LDKTransaction CResult_TransactionNoneZ_get_ok(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
4365 export function CResult_TransactionNoneZ_get_ok(owner: bigint): number {
4366 if(!isWasmInitialized) {
4367 throw new Error("initializeWasm() must be awaited first!");
4369 const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_ok(owner);
4370 return nativeResponseValue;
4372 // void CResult_TransactionNoneZ_get_err(LDKCResult_TransactionNoneZ *NONNULL_PTR owner);
4374 export function CResult_TransactionNoneZ_get_err(owner: bigint): void {
4375 if(!isWasmInitialized) {
4376 throw new Error("initializeWasm() must be awaited first!");
4378 const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_get_err(owner);
4379 // debug statements here
4382 export class LDKCOption_u16Z {
4383 protected constructor() {}
4386 export function LDKCOption_u16Z_ty_from_ptr(ptr: bigint): number {
4387 if(!isWasmInitialized) {
4388 throw new Error("initializeWasm() must be awaited first!");
4390 const nativeResponseValue = wasm.TS_LDKCOption_u16Z_ty_from_ptr(ptr);
4391 return nativeResponseValue;
4394 export function LDKCOption_u16Z_Some_get_some(ptr: bigint): number {
4395 if(!isWasmInitialized) {
4396 throw new Error("initializeWasm() must be awaited first!");
4398 const nativeResponseValue = wasm.TS_LDKCOption_u16Z_Some_get_some(ptr);
4399 return nativeResponseValue;
4401 // struct LDKThirtyTwoBytes CResult__u832APIErrorZ_get_ok(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
4403 export function CResult__u832APIErrorZ_get_ok(owner: bigint): number {
4404 if(!isWasmInitialized) {
4405 throw new Error("initializeWasm() must be awaited first!");
4407 const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_ok(owner);
4408 return nativeResponseValue;
4410 // struct LDKAPIError CResult__u832APIErrorZ_get_err(LDKCResult__u832APIErrorZ *NONNULL_PTR owner);
4412 export function CResult__u832APIErrorZ_get_err(owner: bigint): bigint {
4413 if(!isWasmInitialized) {
4414 throw new Error("initializeWasm() must be awaited first!");
4416 const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_get_err(owner);
4417 return nativeResponseValue;
4420 export class LDKRecentPaymentDetails {
4421 protected constructor() {}
4424 export function LDKRecentPaymentDetails_ty_from_ptr(ptr: bigint): number {
4425 if(!isWasmInitialized) {
4426 throw new Error("initializeWasm() must be awaited first!");
4428 const nativeResponseValue = wasm.TS_LDKRecentPaymentDetails_ty_from_ptr(ptr);
4429 return nativeResponseValue;
4432 export function LDKRecentPaymentDetails_Pending_get_payment_hash(ptr: bigint): number {
4433 if(!isWasmInitialized) {
4434 throw new Error("initializeWasm() must be awaited first!");
4436 const nativeResponseValue = wasm.TS_LDKRecentPaymentDetails_Pending_get_payment_hash(ptr);
4437 return nativeResponseValue;
4440 export function LDKRecentPaymentDetails_Pending_get_total_msat(ptr: bigint): bigint {
4441 if(!isWasmInitialized) {
4442 throw new Error("initializeWasm() must be awaited first!");
4444 const nativeResponseValue = wasm.TS_LDKRecentPaymentDetails_Pending_get_total_msat(ptr);
4445 return nativeResponseValue;
4448 export function LDKRecentPaymentDetails_Fulfilled_get_payment_hash(ptr: bigint): number {
4449 if(!isWasmInitialized) {
4450 throw new Error("initializeWasm() must be awaited first!");
4452 const nativeResponseValue = wasm.TS_LDKRecentPaymentDetails_Fulfilled_get_payment_hash(ptr);
4453 return nativeResponseValue;
4456 export function LDKRecentPaymentDetails_Abandoned_get_payment_hash(ptr: bigint): number {
4457 if(!isWasmInitialized) {
4458 throw new Error("initializeWasm() must be awaited first!");
4460 const nativeResponseValue = wasm.TS_LDKRecentPaymentDetails_Abandoned_get_payment_hash(ptr);
4461 return nativeResponseValue;
4464 export class LDKPaymentSendFailure {
4465 protected constructor() {}
4468 export function LDKPaymentSendFailure_ty_from_ptr(ptr: bigint): number {
4469 if(!isWasmInitialized) {
4470 throw new Error("initializeWasm() must be awaited first!");
4472 const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ty_from_ptr(ptr);
4473 return nativeResponseValue;
4476 export function LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr: bigint): bigint {
4477 if(!isWasmInitialized) {
4478 throw new Error("initializeWasm() must be awaited first!");
4480 const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_ParameterError_get_parameter_error(ptr);
4481 return nativeResponseValue;
4484 export function LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr: bigint): number {
4485 if(!isWasmInitialized) {
4486 throw new Error("initializeWasm() must be awaited first!");
4488 const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PathParameterError_get_path_parameter_error(ptr);
4489 return nativeResponseValue;
4492 export function LDKPaymentSendFailure_AllFailedResendSafe_get_all_failed_resend_safe(ptr: bigint): number {
4493 if(!isWasmInitialized) {
4494 throw new Error("initializeWasm() must be awaited first!");
4496 const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_AllFailedResendSafe_get_all_failed_resend_safe(ptr);
4497 return nativeResponseValue;
4500 export function LDKPaymentSendFailure_PartialFailure_get_results(ptr: bigint): number {
4501 if(!isWasmInitialized) {
4502 throw new Error("initializeWasm() must be awaited first!");
4504 const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_results(ptr);
4505 return nativeResponseValue;
4508 export function LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr: bigint): bigint {
4509 if(!isWasmInitialized) {
4510 throw new Error("initializeWasm() must be awaited first!");
4512 const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_failed_paths_retry(ptr);
4513 return nativeResponseValue;
4516 export function LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr: bigint): number {
4517 if(!isWasmInitialized) {
4518 throw new Error("initializeWasm() must be awaited first!");
4520 const nativeResponseValue = wasm.TS_LDKPaymentSendFailure_PartialFailure_get_payment_id(ptr);
4521 return nativeResponseValue;
4523 // void CResult_NonePaymentSendFailureZ_get_ok(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
4525 export function CResult_NonePaymentSendFailureZ_get_ok(owner: bigint): void {
4526 if(!isWasmInitialized) {
4527 throw new Error("initializeWasm() must be awaited first!");
4529 const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_ok(owner);
4530 // debug statements here
4532 // struct LDKPaymentSendFailure CResult_NonePaymentSendFailureZ_get_err(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR owner);
4534 export function CResult_NonePaymentSendFailureZ_get_err(owner: bigint): bigint {
4535 if(!isWasmInitialized) {
4536 throw new Error("initializeWasm() must be awaited first!");
4538 const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_get_err(owner);
4539 return nativeResponseValue;
4541 // void CResult_NoneRetryableSendFailureZ_get_ok(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner);
4543 export function CResult_NoneRetryableSendFailureZ_get_ok(owner: bigint): void {
4544 if(!isWasmInitialized) {
4545 throw new Error("initializeWasm() must be awaited first!");
4547 const nativeResponseValue = wasm.TS_CResult_NoneRetryableSendFailureZ_get_ok(owner);
4548 // debug statements here
4550 // enum LDKRetryableSendFailure CResult_NoneRetryableSendFailureZ_get_err(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR owner);
4552 export function CResult_NoneRetryableSendFailureZ_get_err(owner: bigint): RetryableSendFailure {
4553 if(!isWasmInitialized) {
4554 throw new Error("initializeWasm() must be awaited first!");
4556 const nativeResponseValue = wasm.TS_CResult_NoneRetryableSendFailureZ_get_err(owner);
4557 return nativeResponseValue;
4559 // struct LDKThirtyTwoBytes CResult_PaymentHashPaymentSendFailureZ_get_ok(LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR owner);
4561 export function CResult_PaymentHashPaymentSendFailureZ_get_ok(owner: bigint): number {
4562 if(!isWasmInitialized) {
4563 throw new Error("initializeWasm() must be awaited first!");
4565 const nativeResponseValue = wasm.TS_CResult_PaymentHashPaymentSendFailureZ_get_ok(owner);
4566 return nativeResponseValue;
4568 // struct LDKPaymentSendFailure CResult_PaymentHashPaymentSendFailureZ_get_err(LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR owner);
4570 export function CResult_PaymentHashPaymentSendFailureZ_get_err(owner: bigint): bigint {
4571 if(!isWasmInitialized) {
4572 throw new Error("initializeWasm() must be awaited first!");
4574 const nativeResponseValue = wasm.TS_CResult_PaymentHashPaymentSendFailureZ_get_err(owner);
4575 return nativeResponseValue;
4577 // struct LDKThirtyTwoBytes CResult_PaymentHashRetryableSendFailureZ_get_ok(LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR owner);
4579 export function CResult_PaymentHashRetryableSendFailureZ_get_ok(owner: bigint): number {
4580 if(!isWasmInitialized) {
4581 throw new Error("initializeWasm() must be awaited first!");
4583 const nativeResponseValue = wasm.TS_CResult_PaymentHashRetryableSendFailureZ_get_ok(owner);
4584 return nativeResponseValue;
4586 // enum LDKRetryableSendFailure CResult_PaymentHashRetryableSendFailureZ_get_err(LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR owner);
4588 export function CResult_PaymentHashRetryableSendFailureZ_get_err(owner: bigint): RetryableSendFailure {
4589 if(!isWasmInitialized) {
4590 throw new Error("initializeWasm() must be awaited first!");
4592 const nativeResponseValue = wasm.TS_CResult_PaymentHashRetryableSendFailureZ_get_err(owner);
4593 return nativeResponseValue;
4595 // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_a(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
4597 export function C2Tuple_PaymentHashPaymentIdZ_get_a(owner: bigint): number {
4598 if(!isWasmInitialized) {
4599 throw new Error("initializeWasm() must be awaited first!");
4601 const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_a(owner);
4602 return nativeResponseValue;
4604 // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentIdZ_get_b(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR owner);
4606 export function C2Tuple_PaymentHashPaymentIdZ_get_b(owner: bigint): number {
4607 if(!isWasmInitialized) {
4608 throw new Error("initializeWasm() must be awaited first!");
4610 const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_get_b(owner);
4611 return nativeResponseValue;
4613 // struct LDKC2Tuple_PaymentHashPaymentIdZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
4615 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner: bigint): bigint {
4616 if(!isWasmInitialized) {
4617 throw new Error("initializeWasm() must be awaited first!");
4619 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_ok(owner);
4620 return nativeResponseValue;
4622 // struct LDKPaymentSendFailure CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR owner);
4624 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner: bigint): bigint {
4625 if(!isWasmInitialized) {
4626 throw new Error("initializeWasm() must be awaited first!");
4628 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_get_err(owner);
4629 return nativeResponseValue;
4631 // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_a(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
4633 export function C2Tuple_PaymentHashPaymentSecretZ_get_a(owner: bigint): number {
4634 if(!isWasmInitialized) {
4635 throw new Error("initializeWasm() must be awaited first!");
4637 const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_a(owner);
4638 return nativeResponseValue;
4640 // struct LDKThirtyTwoBytes C2Tuple_PaymentHashPaymentSecretZ_get_b(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR owner);
4642 export function C2Tuple_PaymentHashPaymentSecretZ_get_b(owner: bigint): number {
4643 if(!isWasmInitialized) {
4644 throw new Error("initializeWasm() must be awaited first!");
4646 const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_get_b(owner);
4647 return nativeResponseValue;
4649 // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
4651 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner: bigint): bigint {
4652 if(!isWasmInitialized) {
4653 throw new Error("initializeWasm() must be awaited first!");
4655 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_ok(owner);
4656 return nativeResponseValue;
4658 // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR owner);
4660 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner: bigint): void {
4661 if(!isWasmInitialized) {
4662 throw new Error("initializeWasm() must be awaited first!");
4664 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_get_err(owner);
4665 // debug statements here
4667 // struct LDKC2Tuple_PaymentHashPaymentSecretZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
4669 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner: bigint): bigint {
4670 if(!isWasmInitialized) {
4671 throw new Error("initializeWasm() must be awaited first!");
4673 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_ok(owner);
4674 return nativeResponseValue;
4676 // struct LDKAPIError CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR owner);
4678 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner: bigint): bigint {
4679 if(!isWasmInitialized) {
4680 throw new Error("initializeWasm() must be awaited first!");
4682 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_get_err(owner);
4683 return nativeResponseValue;
4685 // struct LDKThirtyTwoBytes CResult_PaymentSecretNoneZ_get_ok(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
4687 export function CResult_PaymentSecretNoneZ_get_ok(owner: bigint): number {
4688 if(!isWasmInitialized) {
4689 throw new Error("initializeWasm() must be awaited first!");
4691 const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_ok(owner);
4692 return nativeResponseValue;
4694 // void CResult_PaymentSecretNoneZ_get_err(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR owner);
4696 export function CResult_PaymentSecretNoneZ_get_err(owner: bigint): void {
4697 if(!isWasmInitialized) {
4698 throw new Error("initializeWasm() must be awaited first!");
4700 const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_get_err(owner);
4701 // debug statements here
4703 // struct LDKThirtyTwoBytes CResult_PaymentSecretAPIErrorZ_get_ok(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
4705 export function CResult_PaymentSecretAPIErrorZ_get_ok(owner: bigint): number {
4706 if(!isWasmInitialized) {
4707 throw new Error("initializeWasm() must be awaited first!");
4709 const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_ok(owner);
4710 return nativeResponseValue;
4712 // struct LDKAPIError CResult_PaymentSecretAPIErrorZ_get_err(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR owner);
4714 export function CResult_PaymentSecretAPIErrorZ_get_err(owner: bigint): bigint {
4715 if(!isWasmInitialized) {
4716 throw new Error("initializeWasm() must be awaited first!");
4718 const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_get_err(owner);
4719 return nativeResponseValue;
4721 // struct LDKThirtyTwoBytes CResult_PaymentPreimageAPIErrorZ_get_ok(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
4723 export function CResult_PaymentPreimageAPIErrorZ_get_ok(owner: bigint): number {
4724 if(!isWasmInitialized) {
4725 throw new Error("initializeWasm() must be awaited first!");
4727 const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_ok(owner);
4728 return nativeResponseValue;
4730 // struct LDKAPIError CResult_PaymentPreimageAPIErrorZ_get_err(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR owner);
4732 export function CResult_PaymentPreimageAPIErrorZ_get_err(owner: bigint): bigint {
4733 if(!isWasmInitialized) {
4734 throw new Error("initializeWasm() must be awaited first!");
4736 const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_get_err(owner);
4737 return nativeResponseValue;
4739 // struct LDKCounterpartyForwardingInfo CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
4741 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner: bigint): bigint {
4742 if(!isWasmInitialized) {
4743 throw new Error("initializeWasm() must be awaited first!");
4745 const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_ok(owner);
4746 return nativeResponseValue;
4748 // struct LDKDecodeError CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR owner);
4750 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner: bigint): bigint {
4751 if(!isWasmInitialized) {
4752 throw new Error("initializeWasm() must be awaited first!");
4754 const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_get_err(owner);
4755 return nativeResponseValue;
4757 // struct LDKChannelCounterparty CResult_ChannelCounterpartyDecodeErrorZ_get_ok(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
4759 export function CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner: bigint): bigint {
4760 if(!isWasmInitialized) {
4761 throw new Error("initializeWasm() must be awaited first!");
4763 const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_ok(owner);
4764 return nativeResponseValue;
4766 // struct LDKDecodeError CResult_ChannelCounterpartyDecodeErrorZ_get_err(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR owner);
4768 export function CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner: bigint): bigint {
4769 if(!isWasmInitialized) {
4770 throw new Error("initializeWasm() must be awaited first!");
4772 const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_get_err(owner);
4773 return nativeResponseValue;
4775 // struct LDKChannelDetails CResult_ChannelDetailsDecodeErrorZ_get_ok(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
4777 export function CResult_ChannelDetailsDecodeErrorZ_get_ok(owner: bigint): bigint {
4778 if(!isWasmInitialized) {
4779 throw new Error("initializeWasm() must be awaited first!");
4781 const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_ok(owner);
4782 return nativeResponseValue;
4784 // struct LDKDecodeError CResult_ChannelDetailsDecodeErrorZ_get_err(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR owner);
4786 export function CResult_ChannelDetailsDecodeErrorZ_get_err(owner: bigint): bigint {
4787 if(!isWasmInitialized) {
4788 throw new Error("initializeWasm() must be awaited first!");
4790 const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_get_err(owner);
4791 return nativeResponseValue;
4793 // struct LDKPhantomRouteHints CResult_PhantomRouteHintsDecodeErrorZ_get_ok(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
4795 export function CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner: bigint): bigint {
4796 if(!isWasmInitialized) {
4797 throw new Error("initializeWasm() must be awaited first!");
4799 const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_ok(owner);
4800 return nativeResponseValue;
4802 // struct LDKDecodeError CResult_PhantomRouteHintsDecodeErrorZ_get_err(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR owner);
4804 export function CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner: bigint): bigint {
4805 if(!isWasmInitialized) {
4806 throw new Error("initializeWasm() must be awaited first!");
4808 const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_get_err(owner);
4809 return nativeResponseValue;
4812 export interface LDKWatch {
4813 watch_channel (funding_txo: bigint, monitor: bigint): ChannelMonitorUpdateStatus;
4814 update_channel (funding_txo: bigint, update: bigint): ChannelMonitorUpdateStatus;
4815 release_pending_monitor_events (): number;
4819 export function LDKWatch_new(impl: LDKWatch): [bigint, number] {
4820 if(!isWasmInitialized) {
4821 throw new Error("initializeWasm() must be awaited first!");
4823 var new_obj_idx = js_objs.length;
4824 for (var i = 0; i < js_objs.length; i++) {
4825 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4827 js_objs[i] = new WeakRef(impl);
4828 return [wasm.TS_LDKWatch_new(i), i];
4830 // LDKChannelMonitorUpdateStatus Watch_watch_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, struct LDKChannelMonitor monitor
4832 export function Watch_watch_channel(this_arg: bigint, funding_txo: bigint, monitor: bigint): ChannelMonitorUpdateStatus {
4833 if(!isWasmInitialized) {
4834 throw new Error("initializeWasm() must be awaited first!");
4836 const nativeResponseValue = wasm.TS_Watch_watch_channel(this_arg, funding_txo, monitor);
4837 return nativeResponseValue;
4839 // LDKChannelMonitorUpdateStatus Watch_update_channel LDKWatch *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo, const struct LDKChannelMonitorUpdate *NONNULL_PTR update
4841 export function Watch_update_channel(this_arg: bigint, funding_txo: bigint, update: bigint): ChannelMonitorUpdateStatus {
4842 if(!isWasmInitialized) {
4843 throw new Error("initializeWasm() must be awaited first!");
4845 const nativeResponseValue = wasm.TS_Watch_update_channel(this_arg, funding_txo, update);
4846 return nativeResponseValue;
4848 // LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ Watch_release_pending_monitor_events LDKWatch *NONNULL_PTR this_arg
4850 export function Watch_release_pending_monitor_events(this_arg: bigint): number {
4851 if(!isWasmInitialized) {
4852 throw new Error("initializeWasm() must be awaited first!");
4854 const nativeResponseValue = wasm.TS_Watch_release_pending_monitor_events(this_arg);
4855 return nativeResponseValue;
4858 export interface LDKBroadcasterInterface {
4859 broadcast_transaction (tx: number): void;
4863 export function LDKBroadcasterInterface_new(impl: LDKBroadcasterInterface): [bigint, number] {
4864 if(!isWasmInitialized) {
4865 throw new Error("initializeWasm() must be awaited first!");
4867 var new_obj_idx = js_objs.length;
4868 for (var i = 0; i < js_objs.length; i++) {
4869 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4871 js_objs[i] = new WeakRef(impl);
4872 return [wasm.TS_LDKBroadcasterInterface_new(i), i];
4874 // void BroadcasterInterface_broadcast_transaction LDKBroadcasterInterface *NONNULL_PTR this_arg, struct LDKTransaction tx
4876 export function BroadcasterInterface_broadcast_transaction(this_arg: bigint, tx: number): void {
4877 if(!isWasmInitialized) {
4878 throw new Error("initializeWasm() must be awaited first!");
4880 const nativeResponseValue = wasm.TS_BroadcasterInterface_broadcast_transaction(this_arg, tx);
4881 // debug statements here
4884 export interface LDKEntropySource {
4885 get_secure_random_bytes (): number;
4889 export function LDKEntropySource_new(impl: LDKEntropySource): [bigint, number] {
4890 if(!isWasmInitialized) {
4891 throw new Error("initializeWasm() must be awaited first!");
4893 var new_obj_idx = js_objs.length;
4894 for (var i = 0; i < js_objs.length; i++) {
4895 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4897 js_objs[i] = new WeakRef(impl);
4898 return [wasm.TS_LDKEntropySource_new(i), i];
4900 // LDKThirtyTwoBytes EntropySource_get_secure_random_bytes LDKEntropySource *NONNULL_PTR this_arg
4902 export function EntropySource_get_secure_random_bytes(this_arg: bigint): number {
4903 if(!isWasmInitialized) {
4904 throw new Error("initializeWasm() must be awaited first!");
4906 const nativeResponseValue = wasm.TS_EntropySource_get_secure_random_bytes(this_arg);
4907 return nativeResponseValue;
4910 export class LDKUnsignedGossipMessage {
4911 protected constructor() {}
4914 export function LDKUnsignedGossipMessage_ty_from_ptr(ptr: bigint): number {
4915 if(!isWasmInitialized) {
4916 throw new Error("initializeWasm() must be awaited first!");
4918 const nativeResponseValue = wasm.TS_LDKUnsignedGossipMessage_ty_from_ptr(ptr);
4919 return nativeResponseValue;
4922 export function LDKUnsignedGossipMessage_ChannelAnnouncement_get_channel_announcement(ptr: bigint): bigint {
4923 if(!isWasmInitialized) {
4924 throw new Error("initializeWasm() must be awaited first!");
4926 const nativeResponseValue = wasm.TS_LDKUnsignedGossipMessage_ChannelAnnouncement_get_channel_announcement(ptr);
4927 return nativeResponseValue;
4930 export function LDKUnsignedGossipMessage_ChannelUpdate_get_channel_update(ptr: bigint): bigint {
4931 if(!isWasmInitialized) {
4932 throw new Error("initializeWasm() must be awaited first!");
4934 const nativeResponseValue = wasm.TS_LDKUnsignedGossipMessage_ChannelUpdate_get_channel_update(ptr);
4935 return nativeResponseValue;
4938 export function LDKUnsignedGossipMessage_NodeAnnouncement_get_node_announcement(ptr: bigint): bigint {
4939 if(!isWasmInitialized) {
4940 throw new Error("initializeWasm() must be awaited first!");
4942 const nativeResponseValue = wasm.TS_LDKUnsignedGossipMessage_NodeAnnouncement_get_node_announcement(ptr);
4943 return nativeResponseValue;
4946 export interface LDKNodeSigner {
4947 get_inbound_payment_key_material (): number;
4948 get_node_id (recipient: Recipient): bigint;
4949 ecdh (recipient: Recipient, other_key: number, tweak: bigint): bigint;
4950 sign_invoice (hrp_bytes: number, invoice_data: number, recipient: Recipient): bigint;
4951 sign_gossip_message (msg: bigint): bigint;
4955 export function LDKNodeSigner_new(impl: LDKNodeSigner): [bigint, number] {
4956 if(!isWasmInitialized) {
4957 throw new Error("initializeWasm() must be awaited first!");
4959 var new_obj_idx = js_objs.length;
4960 for (var i = 0; i < js_objs.length; i++) {
4961 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
4963 js_objs[i] = new WeakRef(impl);
4964 return [wasm.TS_LDKNodeSigner_new(i), i];
4966 // LDKThirtyTwoBytes NodeSigner_get_inbound_payment_key_material LDKNodeSigner *NONNULL_PTR this_arg
4968 export function NodeSigner_get_inbound_payment_key_material(this_arg: bigint): number {
4969 if(!isWasmInitialized) {
4970 throw new Error("initializeWasm() must be awaited first!");
4972 const nativeResponseValue = wasm.TS_NodeSigner_get_inbound_payment_key_material(this_arg);
4973 return nativeResponseValue;
4975 // LDKCResult_PublicKeyNoneZ NodeSigner_get_node_id LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient
4977 export function NodeSigner_get_node_id(this_arg: bigint, recipient: Recipient): bigint {
4978 if(!isWasmInitialized) {
4979 throw new Error("initializeWasm() must be awaited first!");
4981 const nativeResponseValue = wasm.TS_NodeSigner_get_node_id(this_arg, recipient);
4982 return nativeResponseValue;
4984 // LDKCResult_SharedSecretNoneZ NodeSigner_ecdh LDKNodeSigner *NONNULL_PTR this_arg, enum LDKRecipient recipient, struct LDKPublicKey other_key, struct LDKCOption_ScalarZ tweak
4986 export function NodeSigner_ecdh(this_arg: bigint, recipient: Recipient, other_key: number, tweak: bigint): bigint {
4987 if(!isWasmInitialized) {
4988 throw new Error("initializeWasm() must be awaited first!");
4990 const nativeResponseValue = wasm.TS_NodeSigner_ecdh(this_arg, recipient, other_key, tweak);
4991 return nativeResponseValue;
4993 // LDKCResult_RecoverableSignatureNoneZ NodeSigner_sign_invoice LDKNodeSigner *NONNULL_PTR this_arg, struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z invoice_data, enum LDKRecipient recipient
4995 export function NodeSigner_sign_invoice(this_arg: bigint, hrp_bytes: number, invoice_data: number, recipient: Recipient): bigint {
4996 if(!isWasmInitialized) {
4997 throw new Error("initializeWasm() must be awaited first!");
4999 const nativeResponseValue = wasm.TS_NodeSigner_sign_invoice(this_arg, hrp_bytes, invoice_data, recipient);
5000 return nativeResponseValue;
5002 // LDKCResult_SignatureNoneZ NodeSigner_sign_gossip_message LDKNodeSigner *NONNULL_PTR this_arg, struct LDKUnsignedGossipMessage msg
5004 export function NodeSigner_sign_gossip_message(this_arg: bigint, msg: bigint): bigint {
5005 if(!isWasmInitialized) {
5006 throw new Error("initializeWasm() must be awaited first!");
5008 const nativeResponseValue = wasm.TS_NodeSigner_sign_gossip_message(this_arg, msg);
5009 return nativeResponseValue;
5012 export interface LDKSignerProvider {
5013 generate_channel_keys_id (inbound: boolean, channel_value_satoshis: bigint, user_channel_id: number): number;
5014 derive_channel_signer (channel_value_satoshis: bigint, channel_keys_id: number): bigint;
5015 read_chan_signer (reader: number): bigint;
5016 get_destination_script (): number;
5017 get_shutdown_scriptpubkey (): bigint;
5021 export function LDKSignerProvider_new(impl: LDKSignerProvider): [bigint, number] {
5022 if(!isWasmInitialized) {
5023 throw new Error("initializeWasm() must be awaited first!");
5025 var new_obj_idx = js_objs.length;
5026 for (var i = 0; i < js_objs.length; i++) {
5027 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5029 js_objs[i] = new WeakRef(impl);
5030 return [wasm.TS_LDKSignerProvider_new(i), i];
5032 // LDKThirtyTwoBytes SignerProvider_generate_channel_keys_id LDKSignerProvider *NONNULL_PTR this_arg, bool inbound, uint64_t channel_value_satoshis, struct LDKU128 user_channel_id
5034 export function SignerProvider_generate_channel_keys_id(this_arg: bigint, inbound: boolean, channel_value_satoshis: bigint, user_channel_id: number): number {
5035 if(!isWasmInitialized) {
5036 throw new Error("initializeWasm() must be awaited first!");
5038 const nativeResponseValue = wasm.TS_SignerProvider_generate_channel_keys_id(this_arg, inbound, channel_value_satoshis, user_channel_id);
5039 return nativeResponseValue;
5041 // LDKWriteableEcdsaChannelSigner SignerProvider_derive_channel_signer LDKSignerProvider *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id
5043 export function SignerProvider_derive_channel_signer(this_arg: bigint, channel_value_satoshis: bigint, channel_keys_id: number): bigint {
5044 if(!isWasmInitialized) {
5045 throw new Error("initializeWasm() must be awaited first!");
5047 const nativeResponseValue = wasm.TS_SignerProvider_derive_channel_signer(this_arg, channel_value_satoshis, channel_keys_id);
5048 return nativeResponseValue;
5050 // LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ SignerProvider_read_chan_signer LDKSignerProvider *NONNULL_PTR this_arg, struct LDKu8slice reader
5052 export function SignerProvider_read_chan_signer(this_arg: bigint, reader: number): bigint {
5053 if(!isWasmInitialized) {
5054 throw new Error("initializeWasm() must be awaited first!");
5056 const nativeResponseValue = wasm.TS_SignerProvider_read_chan_signer(this_arg, reader);
5057 return nativeResponseValue;
5059 // LDKCVec_u8Z SignerProvider_get_destination_script LDKSignerProvider *NONNULL_PTR this_arg
5061 export function SignerProvider_get_destination_script(this_arg: bigint): number {
5062 if(!isWasmInitialized) {
5063 throw new Error("initializeWasm() must be awaited first!");
5065 const nativeResponseValue = wasm.TS_SignerProvider_get_destination_script(this_arg);
5066 return nativeResponseValue;
5068 // LDKShutdownScript SignerProvider_get_shutdown_scriptpubkey LDKSignerProvider *NONNULL_PTR this_arg
5070 export function SignerProvider_get_shutdown_scriptpubkey(this_arg: bigint): bigint {
5071 if(!isWasmInitialized) {
5072 throw new Error("initializeWasm() must be awaited first!");
5074 const nativeResponseValue = wasm.TS_SignerProvider_get_shutdown_scriptpubkey(this_arg);
5075 return nativeResponseValue;
5078 export interface LDKFeeEstimator {
5079 get_est_sat_per_1000_weight (confirmation_target: ConfirmationTarget): number;
5083 export function LDKFeeEstimator_new(impl: LDKFeeEstimator): [bigint, number] {
5084 if(!isWasmInitialized) {
5085 throw new Error("initializeWasm() must be awaited first!");
5087 var new_obj_idx = js_objs.length;
5088 for (var i = 0; i < js_objs.length; i++) {
5089 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5091 js_objs[i] = new WeakRef(impl);
5092 return [wasm.TS_LDKFeeEstimator_new(i), i];
5094 // uint32_t FeeEstimator_get_est_sat_per_1000_weight LDKFeeEstimator *NONNULL_PTR this_arg, enum LDKConfirmationTarget confirmation_target
5096 export function FeeEstimator_get_est_sat_per_1000_weight(this_arg: bigint, confirmation_target: ConfirmationTarget): number {
5097 if(!isWasmInitialized) {
5098 throw new Error("initializeWasm() must be awaited first!");
5100 const nativeResponseValue = wasm.TS_FeeEstimator_get_est_sat_per_1000_weight(this_arg, confirmation_target);
5101 return nativeResponseValue;
5104 export interface LDKRouter {
5105 find_route (payer: number, route_params: bigint, first_hops: number, inflight_htlcs: bigint): bigint;
5106 find_route_with_id (payer: number, route_params: bigint, first_hops: number, inflight_htlcs: bigint, _payment_hash: number, _payment_id: number): bigint;
5110 export function LDKRouter_new(impl: LDKRouter): [bigint, number] {
5111 if(!isWasmInitialized) {
5112 throw new Error("initializeWasm() must be awaited first!");
5114 var new_obj_idx = js_objs.length;
5115 for (var i = 0; i < js_objs.length; i++) {
5116 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5118 js_objs[i] = new WeakRef(impl);
5119 return [wasm.TS_LDKRouter_new(i), i];
5121 // LDKCResult_RouteLightningErrorZ Router_find_route LDKRouter *NONNULL_PTR this_arg, struct LDKPublicKey payer, const struct LDKRouteParameters *NONNULL_PTR route_params, struct LDKCVec_ChannelDetailsZ *first_hops, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs
5123 export function Router_find_route(this_arg: bigint, payer: number, route_params: bigint, first_hops: number, inflight_htlcs: bigint): bigint {
5124 if(!isWasmInitialized) {
5125 throw new Error("initializeWasm() must be awaited first!");
5127 const nativeResponseValue = wasm.TS_Router_find_route(this_arg, payer, route_params, first_hops, inflight_htlcs);
5128 return nativeResponseValue;
5130 // LDKCResult_RouteLightningErrorZ Router_find_route_with_id LDKRouter *NONNULL_PTR this_arg, struct LDKPublicKey payer, const struct LDKRouteParameters *NONNULL_PTR route_params, struct LDKCVec_ChannelDetailsZ *first_hops, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs, struct LDKThirtyTwoBytes _payment_hash, struct LDKThirtyTwoBytes _payment_id
5132 export function Router_find_route_with_id(this_arg: bigint, payer: number, route_params: bigint, first_hops: number, inflight_htlcs: bigint, _payment_hash: number, _payment_id: number): bigint {
5133 if(!isWasmInitialized) {
5134 throw new Error("initializeWasm() must be awaited first!");
5136 const nativeResponseValue = wasm.TS_Router_find_route_with_id(this_arg, payer, route_params, first_hops, inflight_htlcs, _payment_hash, _payment_id);
5137 return nativeResponseValue;
5139 // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelManagerZ_get_a(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
5141 export function C2Tuple_BlockHashChannelManagerZ_get_a(owner: bigint): number {
5142 if(!isWasmInitialized) {
5143 throw new Error("initializeWasm() must be awaited first!");
5145 const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_a(owner);
5146 return nativeResponseValue;
5148 // struct LDKChannelManager C2Tuple_BlockHashChannelManagerZ_get_b(LDKC2Tuple_BlockHashChannelManagerZ *NONNULL_PTR owner);
5150 export function C2Tuple_BlockHashChannelManagerZ_get_b(owner: bigint): bigint {
5151 if(!isWasmInitialized) {
5152 throw new Error("initializeWasm() must be awaited first!");
5154 const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_get_b(owner);
5155 return nativeResponseValue;
5157 // struct LDKC2Tuple_BlockHashChannelManagerZ *CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
5159 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner: bigint): bigint {
5160 if(!isWasmInitialized) {
5161 throw new Error("initializeWasm() must be awaited first!");
5163 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_ok(owner);
5164 return nativeResponseValue;
5166 // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR owner);
5168 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner: bigint): bigint {
5169 if(!isWasmInitialized) {
5170 throw new Error("initializeWasm() must be awaited first!");
5172 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_get_err(owner);
5173 return nativeResponseValue;
5175 // struct LDKChannelConfig CResult_ChannelConfigDecodeErrorZ_get_ok(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
5177 export function CResult_ChannelConfigDecodeErrorZ_get_ok(owner: bigint): bigint {
5178 if(!isWasmInitialized) {
5179 throw new Error("initializeWasm() must be awaited first!");
5181 const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_ok(owner);
5182 return nativeResponseValue;
5184 // struct LDKDecodeError CResult_ChannelConfigDecodeErrorZ_get_err(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR owner);
5186 export function CResult_ChannelConfigDecodeErrorZ_get_err(owner: bigint): bigint {
5187 if(!isWasmInitialized) {
5188 throw new Error("initializeWasm() must be awaited first!");
5190 const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_get_err(owner);
5191 return nativeResponseValue;
5194 export class LDKCOption_APIErrorZ {
5195 protected constructor() {}
5198 export function LDKCOption_APIErrorZ_ty_from_ptr(ptr: bigint): number {
5199 if(!isWasmInitialized) {
5200 throw new Error("initializeWasm() must be awaited first!");
5202 const nativeResponseValue = wasm.TS_LDKCOption_APIErrorZ_ty_from_ptr(ptr);
5203 return nativeResponseValue;
5206 export function LDKCOption_APIErrorZ_Some_get_some(ptr: bigint): bigint {
5207 if(!isWasmInitialized) {
5208 throw new Error("initializeWasm() must be awaited first!");
5210 const nativeResponseValue = wasm.TS_LDKCOption_APIErrorZ_Some_get_some(ptr);
5211 return nativeResponseValue;
5213 // struct LDKCOption_APIErrorZ CResult_COption_APIErrorZDecodeErrorZ_get_ok(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner);
5215 export function CResult_COption_APIErrorZDecodeErrorZ_get_ok(owner: bigint): bigint {
5216 if(!isWasmInitialized) {
5217 throw new Error("initializeWasm() must be awaited first!");
5219 const nativeResponseValue = wasm.TS_CResult_COption_APIErrorZDecodeErrorZ_get_ok(owner);
5220 return nativeResponseValue;
5222 // struct LDKDecodeError CResult_COption_APIErrorZDecodeErrorZ_get_err(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR owner);
5224 export function CResult_COption_APIErrorZDecodeErrorZ_get_err(owner: bigint): bigint {
5225 if(!isWasmInitialized) {
5226 throw new Error("initializeWasm() must be awaited first!");
5228 const nativeResponseValue = wasm.TS_CResult_COption_APIErrorZDecodeErrorZ_get_err(owner);
5229 return nativeResponseValue;
5231 // struct LDKUntrustedString CResult_UntrustedStringDecodeErrorZ_get_ok(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner);
5233 export function CResult_UntrustedStringDecodeErrorZ_get_ok(owner: bigint): bigint {
5234 if(!isWasmInitialized) {
5235 throw new Error("initializeWasm() must be awaited first!");
5237 const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_get_ok(owner);
5238 return nativeResponseValue;
5240 // struct LDKDecodeError CResult_UntrustedStringDecodeErrorZ_get_err(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR owner);
5242 export function CResult_UntrustedStringDecodeErrorZ_get_err(owner: bigint): bigint {
5243 if(!isWasmInitialized) {
5244 throw new Error("initializeWasm() must be awaited first!");
5246 const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_get_err(owner);
5247 return nativeResponseValue;
5249 // struct LDKOutPoint CResult_OutPointDecodeErrorZ_get_ok(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
5251 export function CResult_OutPointDecodeErrorZ_get_ok(owner: bigint): bigint {
5252 if(!isWasmInitialized) {
5253 throw new Error("initializeWasm() must be awaited first!");
5255 const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_ok(owner);
5256 return nativeResponseValue;
5258 // struct LDKDecodeError CResult_OutPointDecodeErrorZ_get_err(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR owner);
5260 export function CResult_OutPointDecodeErrorZ_get_err(owner: bigint): bigint {
5261 if(!isWasmInitialized) {
5262 throw new Error("initializeWasm() must be awaited first!");
5264 const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_get_err(owner);
5265 return nativeResponseValue;
5268 export interface LDKType {
5270 debug_str (): number;
5275 export function LDKType_new(impl: LDKType): [bigint, number] {
5276 if(!isWasmInitialized) {
5277 throw new Error("initializeWasm() must be awaited first!");
5279 var new_obj_idx = js_objs.length;
5280 for (var i = 0; i < js_objs.length; i++) {
5281 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5283 js_objs[i] = new WeakRef(impl);
5284 return [wasm.TS_LDKType_new(i), i];
5286 // uint16_t Type_type_id LDKType *NONNULL_PTR this_arg
5288 export function Type_type_id(this_arg: bigint): number {
5289 if(!isWasmInitialized) {
5290 throw new Error("initializeWasm() must be awaited first!");
5292 const nativeResponseValue = wasm.TS_Type_type_id(this_arg);
5293 return nativeResponseValue;
5295 // LDKStr Type_debug_str LDKType *NONNULL_PTR this_arg
5297 export function Type_debug_str(this_arg: bigint): number {
5298 if(!isWasmInitialized) {
5299 throw new Error("initializeWasm() must be awaited first!");
5301 const nativeResponseValue = wasm.TS_Type_debug_str(this_arg);
5302 return nativeResponseValue;
5304 // LDKCVec_u8Z Type_write LDKType *NONNULL_PTR this_arg
5306 export function Type_write(this_arg: bigint): number {
5307 if(!isWasmInitialized) {
5308 throw new Error("initializeWasm() must be awaited first!");
5310 const nativeResponseValue = wasm.TS_Type_write(this_arg);
5311 return nativeResponseValue;
5314 export class LDKCOption_TypeZ {
5315 protected constructor() {}
5318 export function LDKCOption_TypeZ_ty_from_ptr(ptr: bigint): number {
5319 if(!isWasmInitialized) {
5320 throw new Error("initializeWasm() must be awaited first!");
5322 const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_ty_from_ptr(ptr);
5323 return nativeResponseValue;
5326 export function LDKCOption_TypeZ_Some_get_some(ptr: bigint): bigint {
5327 if(!isWasmInitialized) {
5328 throw new Error("initializeWasm() must be awaited first!");
5330 const nativeResponseValue = wasm.TS_LDKCOption_TypeZ_Some_get_some(ptr);
5331 return nativeResponseValue;
5333 // struct LDKCOption_TypeZ CResult_COption_TypeZDecodeErrorZ_get_ok(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
5335 export function CResult_COption_TypeZDecodeErrorZ_get_ok(owner: bigint): bigint {
5336 if(!isWasmInitialized) {
5337 throw new Error("initializeWasm() must be awaited first!");
5339 const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_ok(owner);
5340 return nativeResponseValue;
5342 // struct LDKDecodeError CResult_COption_TypeZDecodeErrorZ_get_err(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR owner);
5344 export function CResult_COption_TypeZDecodeErrorZ_get_err(owner: bigint): bigint {
5345 if(!isWasmInitialized) {
5346 throw new Error("initializeWasm() must be awaited first!");
5348 const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_get_err(owner);
5349 return nativeResponseValue;
5352 export class LDKPaymentError {
5353 protected constructor() {}
5356 export function LDKPaymentError_ty_from_ptr(ptr: bigint): number {
5357 if(!isWasmInitialized) {
5358 throw new Error("initializeWasm() must be awaited first!");
5360 const nativeResponseValue = wasm.TS_LDKPaymentError_ty_from_ptr(ptr);
5361 return nativeResponseValue;
5364 export function LDKPaymentError_Invoice_get_invoice(ptr: bigint): number {
5365 if(!isWasmInitialized) {
5366 throw new Error("initializeWasm() must be awaited first!");
5368 const nativeResponseValue = wasm.TS_LDKPaymentError_Invoice_get_invoice(ptr);
5369 return nativeResponseValue;
5372 export function LDKPaymentError_Sending_get_sending(ptr: bigint): RetryableSendFailure {
5373 if(!isWasmInitialized) {
5374 throw new Error("initializeWasm() must be awaited first!");
5376 const nativeResponseValue = wasm.TS_LDKPaymentError_Sending_get_sending(ptr);
5377 return nativeResponseValue;
5379 // struct LDKThirtyTwoBytes CResult_PaymentIdPaymentErrorZ_get_ok(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
5381 export function CResult_PaymentIdPaymentErrorZ_get_ok(owner: bigint): number {
5382 if(!isWasmInitialized) {
5383 throw new Error("initializeWasm() must be awaited first!");
5385 const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_ok(owner);
5386 return nativeResponseValue;
5388 // struct LDKPaymentError CResult_PaymentIdPaymentErrorZ_get_err(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR owner);
5390 export function CResult_PaymentIdPaymentErrorZ_get_err(owner: bigint): bigint {
5391 if(!isWasmInitialized) {
5392 throw new Error("initializeWasm() must be awaited first!");
5394 const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_get_err(owner);
5395 return nativeResponseValue;
5397 // void CResult_NonePaymentErrorZ_get_ok(LDKCResult_NonePaymentErrorZ *NONNULL_PTR owner);
5399 export function CResult_NonePaymentErrorZ_get_ok(owner: bigint): void {
5400 if(!isWasmInitialized) {
5401 throw new Error("initializeWasm() must be awaited first!");
5403 const nativeResponseValue = wasm.TS_CResult_NonePaymentErrorZ_get_ok(owner);
5404 // debug statements here
5406 // struct LDKPaymentError CResult_NonePaymentErrorZ_get_err(LDKCResult_NonePaymentErrorZ *NONNULL_PTR owner);
5408 export function CResult_NonePaymentErrorZ_get_err(owner: bigint): bigint {
5409 if(!isWasmInitialized) {
5410 throw new Error("initializeWasm() must be awaited first!");
5412 const nativeResponseValue = wasm.TS_CResult_NonePaymentErrorZ_get_err(owner);
5413 return nativeResponseValue;
5415 // struct LDKStr CResult_StringErrorZ_get_ok(LDKCResult_StringErrorZ *NONNULL_PTR owner);
5417 export function CResult_StringErrorZ_get_ok(owner: bigint): number {
5418 if(!isWasmInitialized) {
5419 throw new Error("initializeWasm() must be awaited first!");
5421 const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_ok(owner);
5422 return nativeResponseValue;
5424 // enum LDKSecp256k1Error CResult_StringErrorZ_get_err(LDKCResult_StringErrorZ *NONNULL_PTR owner);
5426 export function CResult_StringErrorZ_get_err(owner: bigint): Secp256k1Error {
5427 if(!isWasmInitialized) {
5428 throw new Error("initializeWasm() must be awaited first!");
5430 const nativeResponseValue = wasm.TS_CResult_StringErrorZ_get_err(owner);
5431 return nativeResponseValue;
5433 // struct LDKChannelMonitorUpdate CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
5435 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner: bigint): bigint {
5436 if(!isWasmInitialized) {
5437 throw new Error("initializeWasm() must be awaited first!");
5439 const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_ok(owner);
5440 return nativeResponseValue;
5442 // struct LDKDecodeError CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR owner);
5444 export function CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner: bigint): bigint {
5445 if(!isWasmInitialized) {
5446 throw new Error("initializeWasm() must be awaited first!");
5448 const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_get_err(owner);
5449 return nativeResponseValue;
5452 export class LDKCOption_MonitorEventZ {
5453 protected constructor() {}
5456 export function LDKCOption_MonitorEventZ_ty_from_ptr(ptr: bigint): number {
5457 if(!isWasmInitialized) {
5458 throw new Error("initializeWasm() must be awaited first!");
5460 const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_ty_from_ptr(ptr);
5461 return nativeResponseValue;
5464 export function LDKCOption_MonitorEventZ_Some_get_some(ptr: bigint): bigint {
5465 if(!isWasmInitialized) {
5466 throw new Error("initializeWasm() must be awaited first!");
5468 const nativeResponseValue = wasm.TS_LDKCOption_MonitorEventZ_Some_get_some(ptr);
5469 return nativeResponseValue;
5471 // struct LDKCOption_MonitorEventZ CResult_COption_MonitorEventZDecodeErrorZ_get_ok(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
5473 export function CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner: bigint): bigint {
5474 if(!isWasmInitialized) {
5475 throw new Error("initializeWasm() must be awaited first!");
5477 const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_ok(owner);
5478 return nativeResponseValue;
5480 // struct LDKDecodeError CResult_COption_MonitorEventZDecodeErrorZ_get_err(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR owner);
5482 export function CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner: bigint): bigint {
5483 if(!isWasmInitialized) {
5484 throw new Error("initializeWasm() must be awaited first!");
5486 const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_get_err(owner);
5487 return nativeResponseValue;
5489 // struct LDKHTLCUpdate CResult_HTLCUpdateDecodeErrorZ_get_ok(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
5491 export function CResult_HTLCUpdateDecodeErrorZ_get_ok(owner: bigint): bigint {
5492 if(!isWasmInitialized) {
5493 throw new Error("initializeWasm() must be awaited first!");
5495 const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_ok(owner);
5496 return nativeResponseValue;
5498 // struct LDKDecodeError CResult_HTLCUpdateDecodeErrorZ_get_err(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR owner);
5500 export function CResult_HTLCUpdateDecodeErrorZ_get_err(owner: bigint): bigint {
5501 if(!isWasmInitialized) {
5502 throw new Error("initializeWasm() must be awaited first!");
5504 const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_get_err(owner);
5505 return nativeResponseValue;
5507 // struct LDKOutPoint C2Tuple_OutPointScriptZ_get_a(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
5509 export function C2Tuple_OutPointScriptZ_get_a(owner: bigint): bigint {
5510 if(!isWasmInitialized) {
5511 throw new Error("initializeWasm() must be awaited first!");
5513 const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_a(owner);
5514 return nativeResponseValue;
5516 // struct LDKCVec_u8Z C2Tuple_OutPointScriptZ_get_b(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR owner);
5518 export function C2Tuple_OutPointScriptZ_get_b(owner: bigint): number {
5519 if(!isWasmInitialized) {
5520 throw new Error("initializeWasm() must be awaited first!");
5522 const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_get_b(owner);
5523 return nativeResponseValue;
5525 // uint32_t C2Tuple_u32ScriptZ_get_a(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
5527 export function C2Tuple_u32ScriptZ_get_a(owner: bigint): number {
5528 if(!isWasmInitialized) {
5529 throw new Error("initializeWasm() must be awaited first!");
5531 const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_a(owner);
5532 return nativeResponseValue;
5534 // struct LDKCVec_u8Z C2Tuple_u32ScriptZ_get_b(LDKC2Tuple_u32ScriptZ *NONNULL_PTR owner);
5536 export function C2Tuple_u32ScriptZ_get_b(owner: bigint): number {
5537 if(!isWasmInitialized) {
5538 throw new Error("initializeWasm() must be awaited first!");
5540 const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_get_b(owner);
5541 return nativeResponseValue;
5543 // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
5545 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner: bigint): number {
5546 if(!isWasmInitialized) {
5547 throw new Error("initializeWasm() must be awaited first!");
5549 const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_a(owner);
5550 return nativeResponseValue;
5552 // struct LDKCVec_C2Tuple_u32ScriptZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR owner);
5554 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner: bigint): number {
5555 if(!isWasmInitialized) {
5556 throw new Error("initializeWasm() must be awaited first!");
5558 const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_get_b(owner);
5559 return nativeResponseValue;
5561 // uint32_t C2Tuple_u32TxOutZ_get_a(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
5563 export function C2Tuple_u32TxOutZ_get_a(owner: bigint): number {
5564 if(!isWasmInitialized) {
5565 throw new Error("initializeWasm() must be awaited first!");
5567 const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_a(owner);
5568 return nativeResponseValue;
5570 // struct LDKTxOut C2Tuple_u32TxOutZ_get_b(LDKC2Tuple_u32TxOutZ *NONNULL_PTR owner);
5572 export function C2Tuple_u32TxOutZ_get_b(owner: bigint): bigint {
5573 if(!isWasmInitialized) {
5574 throw new Error("initializeWasm() must be awaited first!");
5576 const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_get_b(owner);
5577 return nativeResponseValue;
5579 // struct LDKThirtyTwoBytes C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
5581 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner: bigint): number {
5582 if(!isWasmInitialized) {
5583 throw new Error("initializeWasm() must be awaited first!");
5585 const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_a(owner);
5586 return nativeResponseValue;
5588 // struct LDKCVec_C2Tuple_u32TxOutZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR owner);
5590 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner: bigint): number {
5591 if(!isWasmInitialized) {
5592 throw new Error("initializeWasm() must be awaited first!");
5594 const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_get_b(owner);
5595 return nativeResponseValue;
5598 export class LDKBalance {
5599 protected constructor() {}
5602 export function LDKBalance_ty_from_ptr(ptr: bigint): number {
5603 if(!isWasmInitialized) {
5604 throw new Error("initializeWasm() must be awaited first!");
5606 const nativeResponseValue = wasm.TS_LDKBalance_ty_from_ptr(ptr);
5607 return nativeResponseValue;
5610 export function LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr: bigint): bigint {
5611 if(!isWasmInitialized) {
5612 throw new Error("initializeWasm() must be awaited first!");
5614 const nativeResponseValue = wasm.TS_LDKBalance_ClaimableOnChannelClose_get_claimable_amount_satoshis(ptr);
5615 return nativeResponseValue;
5618 export function LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr: bigint): bigint {
5619 if(!isWasmInitialized) {
5620 throw new Error("initializeWasm() must be awaited first!");
5622 const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_claimable_amount_satoshis(ptr);
5623 return nativeResponseValue;
5626 export function LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr: bigint): number {
5627 if(!isWasmInitialized) {
5628 throw new Error("initializeWasm() must be awaited first!");
5630 const nativeResponseValue = wasm.TS_LDKBalance_ClaimableAwaitingConfirmations_get_confirmation_height(ptr);
5631 return nativeResponseValue;
5634 export function LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr: bigint): bigint {
5635 if(!isWasmInitialized) {
5636 throw new Error("initializeWasm() must be awaited first!");
5638 const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_claimable_amount_satoshis(ptr);
5639 return nativeResponseValue;
5642 export function LDKBalance_ContentiousClaimable_get_timeout_height(ptr: bigint): number {
5643 if(!isWasmInitialized) {
5644 throw new Error("initializeWasm() must be awaited first!");
5646 const nativeResponseValue = wasm.TS_LDKBalance_ContentiousClaimable_get_timeout_height(ptr);
5647 return nativeResponseValue;
5650 export function LDKBalance_MaybeTimeoutClaimableHTLC_get_claimable_amount_satoshis(ptr: bigint): bigint {
5651 if(!isWasmInitialized) {
5652 throw new Error("initializeWasm() must be awaited first!");
5654 const nativeResponseValue = wasm.TS_LDKBalance_MaybeTimeoutClaimableHTLC_get_claimable_amount_satoshis(ptr);
5655 return nativeResponseValue;
5658 export function LDKBalance_MaybeTimeoutClaimableHTLC_get_claimable_height(ptr: bigint): number {
5659 if(!isWasmInitialized) {
5660 throw new Error("initializeWasm() must be awaited first!");
5662 const nativeResponseValue = wasm.TS_LDKBalance_MaybeTimeoutClaimableHTLC_get_claimable_height(ptr);
5663 return nativeResponseValue;
5666 export function LDKBalance_MaybePreimageClaimableHTLC_get_claimable_amount_satoshis(ptr: bigint): bigint {
5667 if(!isWasmInitialized) {
5668 throw new Error("initializeWasm() must be awaited first!");
5670 const nativeResponseValue = wasm.TS_LDKBalance_MaybePreimageClaimableHTLC_get_claimable_amount_satoshis(ptr);
5671 return nativeResponseValue;
5674 export function LDKBalance_MaybePreimageClaimableHTLC_get_expiry_height(ptr: bigint): number {
5675 if(!isWasmInitialized) {
5676 throw new Error("initializeWasm() must be awaited first!");
5678 const nativeResponseValue = wasm.TS_LDKBalance_MaybePreimageClaimableHTLC_get_expiry_height(ptr);
5679 return nativeResponseValue;
5682 export function LDKBalance_CounterpartyRevokedOutputClaimable_get_claimable_amount_satoshis(ptr: bigint): bigint {
5683 if(!isWasmInitialized) {
5684 throw new Error("initializeWasm() must be awaited first!");
5686 const nativeResponseValue = wasm.TS_LDKBalance_CounterpartyRevokedOutputClaimable_get_claimable_amount_satoshis(ptr);
5687 return nativeResponseValue;
5689 // struct LDKThirtyTwoBytes C2Tuple_BlockHashChannelMonitorZ_get_a(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
5691 export function C2Tuple_BlockHashChannelMonitorZ_get_a(owner: bigint): number {
5692 if(!isWasmInitialized) {
5693 throw new Error("initializeWasm() must be awaited first!");
5695 const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_a(owner);
5696 return nativeResponseValue;
5698 // struct LDKChannelMonitor C2Tuple_BlockHashChannelMonitorZ_get_b(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR owner);
5700 export function C2Tuple_BlockHashChannelMonitorZ_get_b(owner: bigint): bigint {
5701 if(!isWasmInitialized) {
5702 throw new Error("initializeWasm() must be awaited first!");
5704 const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_get_b(owner);
5705 return nativeResponseValue;
5707 // struct LDKC2Tuple_BlockHashChannelMonitorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
5709 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner: bigint): bigint {
5710 if(!isWasmInitialized) {
5711 throw new Error("initializeWasm() must be awaited first!");
5713 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_ok(owner);
5714 return nativeResponseValue;
5716 // struct LDKDecodeError CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR owner);
5718 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner: bigint): bigint {
5719 if(!isWasmInitialized) {
5720 throw new Error("initializeWasm() must be awaited first!");
5722 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_get_err(owner);
5723 return nativeResponseValue;
5725 // struct LDKPublicKey C2Tuple_PublicKeyTypeZ_get_a(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
5727 export function C2Tuple_PublicKeyTypeZ_get_a(owner: bigint): number {
5728 if(!isWasmInitialized) {
5729 throw new Error("initializeWasm() must be awaited first!");
5731 const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_a(owner);
5732 return nativeResponseValue;
5734 // struct LDKType C2Tuple_PublicKeyTypeZ_get_b(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR owner);
5736 export function C2Tuple_PublicKeyTypeZ_get_b(owner: bigint): bigint {
5737 if(!isWasmInitialized) {
5738 throw new Error("initializeWasm() must be awaited first!");
5740 const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_get_b(owner);
5741 return nativeResponseValue;
5744 export interface LDKCustomOnionMessageContents {
5745 tlv_type (): bigint;
5750 export function LDKCustomOnionMessageContents_new(impl: LDKCustomOnionMessageContents): [bigint, number] {
5751 if(!isWasmInitialized) {
5752 throw new Error("initializeWasm() must be awaited first!");
5754 var new_obj_idx = js_objs.length;
5755 for (var i = 0; i < js_objs.length; i++) {
5756 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
5758 js_objs[i] = new WeakRef(impl);
5759 return [wasm.TS_LDKCustomOnionMessageContents_new(i), i];
5761 // uint64_t CustomOnionMessageContents_tlv_type LDKCustomOnionMessageContents *NONNULL_PTR this_arg
5763 export function CustomOnionMessageContents_tlv_type(this_arg: bigint): bigint {
5764 if(!isWasmInitialized) {
5765 throw new Error("initializeWasm() must be awaited first!");
5767 const nativeResponseValue = wasm.TS_CustomOnionMessageContents_tlv_type(this_arg);
5768 return nativeResponseValue;
5770 // LDKCVec_u8Z CustomOnionMessageContents_write LDKCustomOnionMessageContents *NONNULL_PTR this_arg
5772 export function CustomOnionMessageContents_write(this_arg: bigint): number {
5773 if(!isWasmInitialized) {
5774 throw new Error("initializeWasm() must be awaited first!");
5776 const nativeResponseValue = wasm.TS_CustomOnionMessageContents_write(this_arg);
5777 return nativeResponseValue;
5780 export class LDKCOption_CustomOnionMessageContentsZ {
5781 protected constructor() {}
5784 export function LDKCOption_CustomOnionMessageContentsZ_ty_from_ptr(ptr: bigint): number {
5785 if(!isWasmInitialized) {
5786 throw new Error("initializeWasm() must be awaited first!");
5788 const nativeResponseValue = wasm.TS_LDKCOption_CustomOnionMessageContentsZ_ty_from_ptr(ptr);
5789 return nativeResponseValue;
5792 export function LDKCOption_CustomOnionMessageContentsZ_Some_get_some(ptr: bigint): bigint {
5793 if(!isWasmInitialized) {
5794 throw new Error("initializeWasm() must be awaited first!");
5796 const nativeResponseValue = wasm.TS_LDKCOption_CustomOnionMessageContentsZ_Some_get_some(ptr);
5797 return nativeResponseValue;
5799 // struct LDKCOption_CustomOnionMessageContentsZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_ok(LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner);
5801 export function CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_ok(owner: bigint): bigint {
5802 if(!isWasmInitialized) {
5803 throw new Error("initializeWasm() must be awaited first!");
5805 const nativeResponseValue = wasm.TS_CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_ok(owner);
5806 return nativeResponseValue;
5808 // struct LDKDecodeError CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_err(LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR owner);
5810 export function CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_err(owner: bigint): bigint {
5811 if(!isWasmInitialized) {
5812 throw new Error("initializeWasm() must be awaited first!");
5814 const nativeResponseValue = wasm.TS_CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_get_err(owner);
5815 return nativeResponseValue;
5818 export class LDKCOption_NetAddressZ {
5819 protected constructor() {}
5822 export function LDKCOption_NetAddressZ_ty_from_ptr(ptr: bigint): number {
5823 if(!isWasmInitialized) {
5824 throw new Error("initializeWasm() must be awaited first!");
5826 const nativeResponseValue = wasm.TS_LDKCOption_NetAddressZ_ty_from_ptr(ptr);
5827 return nativeResponseValue;
5830 export function LDKCOption_NetAddressZ_Some_get_some(ptr: bigint): bigint {
5831 if(!isWasmInitialized) {
5832 throw new Error("initializeWasm() must be awaited first!");
5834 const nativeResponseValue = wasm.TS_LDKCOption_NetAddressZ_Some_get_some(ptr);
5835 return nativeResponseValue;
5837 // struct LDKPublicKey C2Tuple_PublicKeyCOption_NetAddressZZ_get_a(LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR owner);
5839 export function C2Tuple_PublicKeyCOption_NetAddressZZ_get_a(owner: bigint): number {
5840 if(!isWasmInitialized) {
5841 throw new Error("initializeWasm() must be awaited first!");
5843 const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyCOption_NetAddressZZ_get_a(owner);
5844 return nativeResponseValue;
5846 // struct LDKCOption_NetAddressZ C2Tuple_PublicKeyCOption_NetAddressZZ_get_b(LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR owner);
5848 export function C2Tuple_PublicKeyCOption_NetAddressZZ_get_b(owner: bigint): bigint {
5849 if(!isWasmInitialized) {
5850 throw new Error("initializeWasm() must be awaited first!");
5852 const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyCOption_NetAddressZZ_get_b(owner);
5853 return nativeResponseValue;
5855 // struct LDKCVec_u8Z CResult_CVec_u8ZPeerHandleErrorZ_get_ok(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
5857 export function CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner: bigint): number {
5858 if(!isWasmInitialized) {
5859 throw new Error("initializeWasm() must be awaited first!");
5861 const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_ok(owner);
5862 return nativeResponseValue;
5864 // struct LDKPeerHandleError CResult_CVec_u8ZPeerHandleErrorZ_get_err(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR owner);
5866 export function CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner: bigint): bigint {
5867 if(!isWasmInitialized) {
5868 throw new Error("initializeWasm() must be awaited first!");
5870 const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_get_err(owner);
5871 return nativeResponseValue;
5873 // void CResult_NonePeerHandleErrorZ_get_ok(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
5875 export function CResult_NonePeerHandleErrorZ_get_ok(owner: bigint): void {
5876 if(!isWasmInitialized) {
5877 throw new Error("initializeWasm() must be awaited first!");
5879 const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_ok(owner);
5880 // debug statements here
5882 // struct LDKPeerHandleError CResult_NonePeerHandleErrorZ_get_err(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR owner);
5884 export function CResult_NonePeerHandleErrorZ_get_err(owner: bigint): bigint {
5885 if(!isWasmInitialized) {
5886 throw new Error("initializeWasm() must be awaited first!");
5888 const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_get_err(owner);
5889 return nativeResponseValue;
5891 // bool CResult_boolPeerHandleErrorZ_get_ok(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
5893 export function CResult_boolPeerHandleErrorZ_get_ok(owner: bigint): boolean {
5894 if(!isWasmInitialized) {
5895 throw new Error("initializeWasm() must be awaited first!");
5897 const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_ok(owner);
5898 return nativeResponseValue;
5900 // struct LDKPeerHandleError CResult_boolPeerHandleErrorZ_get_err(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR owner);
5902 export function CResult_boolPeerHandleErrorZ_get_err(owner: bigint): bigint {
5903 if(!isWasmInitialized) {
5904 throw new Error("initializeWasm() must be awaited first!");
5906 const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_get_err(owner);
5907 return nativeResponseValue;
5910 export class LDKSendError {
5911 protected constructor() {}
5914 export function LDKSendError_ty_from_ptr(ptr: bigint): number {
5915 if(!isWasmInitialized) {
5916 throw new Error("initializeWasm() must be awaited first!");
5918 const nativeResponseValue = wasm.TS_LDKSendError_ty_from_ptr(ptr);
5919 return nativeResponseValue;
5922 export function LDKSendError_Secp256k1_get_secp256k1(ptr: bigint): Secp256k1Error {
5923 if(!isWasmInitialized) {
5924 throw new Error("initializeWasm() must be awaited first!");
5926 const nativeResponseValue = wasm.TS_LDKSendError_Secp256k1_get_secp256k1(ptr);
5927 return nativeResponseValue;
5929 // void CResult_NoneSendErrorZ_get_ok(LDKCResult_NoneSendErrorZ *NONNULL_PTR owner);
5931 export function CResult_NoneSendErrorZ_get_ok(owner: bigint): void {
5932 if(!isWasmInitialized) {
5933 throw new Error("initializeWasm() must be awaited first!");
5935 const nativeResponseValue = wasm.TS_CResult_NoneSendErrorZ_get_ok(owner);
5936 // debug statements here
5938 // struct LDKSendError CResult_NoneSendErrorZ_get_err(LDKCResult_NoneSendErrorZ *NONNULL_PTR owner);
5940 export function CResult_NoneSendErrorZ_get_err(owner: bigint): bigint {
5941 if(!isWasmInitialized) {
5942 throw new Error("initializeWasm() must be awaited first!");
5944 const nativeResponseValue = wasm.TS_CResult_NoneSendErrorZ_get_err(owner);
5945 return nativeResponseValue;
5947 // struct LDKBlindedPath CResult_BlindedPathNoneZ_get_ok(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
5949 export function CResult_BlindedPathNoneZ_get_ok(owner: bigint): bigint {
5950 if(!isWasmInitialized) {
5951 throw new Error("initializeWasm() must be awaited first!");
5953 const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_get_ok(owner);
5954 return nativeResponseValue;
5956 // void CResult_BlindedPathNoneZ_get_err(LDKCResult_BlindedPathNoneZ *NONNULL_PTR owner);
5958 export function CResult_BlindedPathNoneZ_get_err(owner: bigint): void {
5959 if(!isWasmInitialized) {
5960 throw new Error("initializeWasm() must be awaited first!");
5962 const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_get_err(owner);
5963 // debug statements here
5965 // struct LDKBlindedPath CResult_BlindedPathDecodeErrorZ_get_ok(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
5967 export function CResult_BlindedPathDecodeErrorZ_get_ok(owner: bigint): bigint {
5968 if(!isWasmInitialized) {
5969 throw new Error("initializeWasm() must be awaited first!");
5971 const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_get_ok(owner);
5972 return nativeResponseValue;
5974 // struct LDKDecodeError CResult_BlindedPathDecodeErrorZ_get_err(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR owner);
5976 export function CResult_BlindedPathDecodeErrorZ_get_err(owner: bigint): bigint {
5977 if(!isWasmInitialized) {
5978 throw new Error("initializeWasm() must be awaited first!");
5980 const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_get_err(owner);
5981 return nativeResponseValue;
5983 // struct LDKBlindedHop CResult_BlindedHopDecodeErrorZ_get_ok(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
5985 export function CResult_BlindedHopDecodeErrorZ_get_ok(owner: bigint): bigint {
5986 if(!isWasmInitialized) {
5987 throw new Error("initializeWasm() must be awaited first!");
5989 const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_get_ok(owner);
5990 return nativeResponseValue;
5992 // struct LDKDecodeError CResult_BlindedHopDecodeErrorZ_get_err(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR owner);
5994 export function CResult_BlindedHopDecodeErrorZ_get_err(owner: bigint): bigint {
5995 if(!isWasmInitialized) {
5996 throw new Error("initializeWasm() must be awaited first!");
5998 const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_get_err(owner);
5999 return nativeResponseValue;
6002 export class LDKGraphSyncError {
6003 protected constructor() {}
6006 export function LDKGraphSyncError_ty_from_ptr(ptr: bigint): number {
6007 if(!isWasmInitialized) {
6008 throw new Error("initializeWasm() must be awaited first!");
6010 const nativeResponseValue = wasm.TS_LDKGraphSyncError_ty_from_ptr(ptr);
6011 return nativeResponseValue;
6014 export function LDKGraphSyncError_DecodeError_get_decode_error(ptr: bigint): bigint {
6015 if(!isWasmInitialized) {
6016 throw new Error("initializeWasm() must be awaited first!");
6018 const nativeResponseValue = wasm.TS_LDKGraphSyncError_DecodeError_get_decode_error(ptr);
6019 return nativeResponseValue;
6022 export function LDKGraphSyncError_LightningError_get_lightning_error(ptr: bigint): bigint {
6023 if(!isWasmInitialized) {
6024 throw new Error("initializeWasm() must be awaited first!");
6026 const nativeResponseValue = wasm.TS_LDKGraphSyncError_LightningError_get_lightning_error(ptr);
6027 return nativeResponseValue;
6029 // uint32_t CResult_u32GraphSyncErrorZ_get_ok(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
6031 export function CResult_u32GraphSyncErrorZ_get_ok(owner: bigint): number {
6032 if(!isWasmInitialized) {
6033 throw new Error("initializeWasm() must be awaited first!");
6035 const nativeResponseValue = wasm.TS_CResult_u32GraphSyncErrorZ_get_ok(owner);
6036 return nativeResponseValue;
6038 // struct LDKGraphSyncError CResult_u32GraphSyncErrorZ_get_err(LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR owner);
6040 export function CResult_u32GraphSyncErrorZ_get_err(owner: bigint): bigint {
6041 if(!isWasmInitialized) {
6042 throw new Error("initializeWasm() must be awaited first!");
6044 const nativeResponseValue = wasm.TS_CResult_u32GraphSyncErrorZ_get_err(owner);
6045 return nativeResponseValue;
6047 // void CResult_NoneErrorZ_get_ok(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
6049 export function CResult_NoneErrorZ_get_ok(owner: bigint): void {
6050 if(!isWasmInitialized) {
6051 throw new Error("initializeWasm() must be awaited first!");
6053 const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_get_ok(owner);
6054 // debug statements here
6056 // enum LDKIOError CResult_NoneErrorZ_get_err(LDKCResult_NoneErrorZ *NONNULL_PTR owner);
6058 export function CResult_NoneErrorZ_get_err(owner: bigint): IOError {
6059 if(!isWasmInitialized) {
6060 throw new Error("initializeWasm() must be awaited first!");
6062 const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_get_err(owner);
6063 return nativeResponseValue;
6065 // struct LDKNetAddress CResult_NetAddressDecodeErrorZ_get_ok(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
6067 export function CResult_NetAddressDecodeErrorZ_get_ok(owner: bigint): bigint {
6068 if(!isWasmInitialized) {
6069 throw new Error("initializeWasm() must be awaited first!");
6071 const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_ok(owner);
6072 return nativeResponseValue;
6074 // struct LDKDecodeError CResult_NetAddressDecodeErrorZ_get_err(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR owner);
6076 export function CResult_NetAddressDecodeErrorZ_get_err(owner: bigint): bigint {
6077 if(!isWasmInitialized) {
6078 throw new Error("initializeWasm() must be awaited first!");
6080 const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_get_err(owner);
6081 return nativeResponseValue;
6083 // struct LDKAcceptChannel CResult_AcceptChannelDecodeErrorZ_get_ok(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
6085 export function CResult_AcceptChannelDecodeErrorZ_get_ok(owner: bigint): bigint {
6086 if(!isWasmInitialized) {
6087 throw new Error("initializeWasm() must be awaited first!");
6089 const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_ok(owner);
6090 return nativeResponseValue;
6092 // struct LDKDecodeError CResult_AcceptChannelDecodeErrorZ_get_err(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR owner);
6094 export function CResult_AcceptChannelDecodeErrorZ_get_err(owner: bigint): bigint {
6095 if(!isWasmInitialized) {
6096 throw new Error("initializeWasm() must be awaited first!");
6098 const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_get_err(owner);
6099 return nativeResponseValue;
6101 // struct LDKAnnouncementSignatures CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
6103 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner: bigint): bigint {
6104 if(!isWasmInitialized) {
6105 throw new Error("initializeWasm() must be awaited first!");
6107 const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_ok(owner);
6108 return nativeResponseValue;
6110 // struct LDKDecodeError CResult_AnnouncementSignaturesDecodeErrorZ_get_err(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR owner);
6112 export function CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner: bigint): bigint {
6113 if(!isWasmInitialized) {
6114 throw new Error("initializeWasm() must be awaited first!");
6116 const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_get_err(owner);
6117 return nativeResponseValue;
6119 // struct LDKChannelReestablish CResult_ChannelReestablishDecodeErrorZ_get_ok(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
6121 export function CResult_ChannelReestablishDecodeErrorZ_get_ok(owner: bigint): bigint {
6122 if(!isWasmInitialized) {
6123 throw new Error("initializeWasm() must be awaited first!");
6125 const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_ok(owner);
6126 return nativeResponseValue;
6128 // struct LDKDecodeError CResult_ChannelReestablishDecodeErrorZ_get_err(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR owner);
6130 export function CResult_ChannelReestablishDecodeErrorZ_get_err(owner: bigint): bigint {
6131 if(!isWasmInitialized) {
6132 throw new Error("initializeWasm() must be awaited first!");
6134 const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_get_err(owner);
6135 return nativeResponseValue;
6137 // struct LDKClosingSigned CResult_ClosingSignedDecodeErrorZ_get_ok(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
6139 export function CResult_ClosingSignedDecodeErrorZ_get_ok(owner: bigint): bigint {
6140 if(!isWasmInitialized) {
6141 throw new Error("initializeWasm() must be awaited first!");
6143 const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_ok(owner);
6144 return nativeResponseValue;
6146 // struct LDKDecodeError CResult_ClosingSignedDecodeErrorZ_get_err(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR owner);
6148 export function CResult_ClosingSignedDecodeErrorZ_get_err(owner: bigint): bigint {
6149 if(!isWasmInitialized) {
6150 throw new Error("initializeWasm() must be awaited first!");
6152 const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_get_err(owner);
6153 return nativeResponseValue;
6155 // struct LDKClosingSignedFeeRange CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
6157 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner: bigint): bigint {
6158 if(!isWasmInitialized) {
6159 throw new Error("initializeWasm() must be awaited first!");
6161 const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_ok(owner);
6162 return nativeResponseValue;
6164 // struct LDKDecodeError CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR owner);
6166 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner: bigint): bigint {
6167 if(!isWasmInitialized) {
6168 throw new Error("initializeWasm() must be awaited first!");
6170 const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_get_err(owner);
6171 return nativeResponseValue;
6173 // struct LDKCommitmentSigned CResult_CommitmentSignedDecodeErrorZ_get_ok(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
6175 export function CResult_CommitmentSignedDecodeErrorZ_get_ok(owner: bigint): bigint {
6176 if(!isWasmInitialized) {
6177 throw new Error("initializeWasm() must be awaited first!");
6179 const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_ok(owner);
6180 return nativeResponseValue;
6182 // struct LDKDecodeError CResult_CommitmentSignedDecodeErrorZ_get_err(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR owner);
6184 export function CResult_CommitmentSignedDecodeErrorZ_get_err(owner: bigint): bigint {
6185 if(!isWasmInitialized) {
6186 throw new Error("initializeWasm() must be awaited first!");
6188 const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_get_err(owner);
6189 return nativeResponseValue;
6191 // struct LDKFundingCreated CResult_FundingCreatedDecodeErrorZ_get_ok(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
6193 export function CResult_FundingCreatedDecodeErrorZ_get_ok(owner: bigint): bigint {
6194 if(!isWasmInitialized) {
6195 throw new Error("initializeWasm() must be awaited first!");
6197 const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_ok(owner);
6198 return nativeResponseValue;
6200 // struct LDKDecodeError CResult_FundingCreatedDecodeErrorZ_get_err(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR owner);
6202 export function CResult_FundingCreatedDecodeErrorZ_get_err(owner: bigint): bigint {
6203 if(!isWasmInitialized) {
6204 throw new Error("initializeWasm() must be awaited first!");
6206 const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_get_err(owner);
6207 return nativeResponseValue;
6209 // struct LDKFundingSigned CResult_FundingSignedDecodeErrorZ_get_ok(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
6211 export function CResult_FundingSignedDecodeErrorZ_get_ok(owner: bigint): bigint {
6212 if(!isWasmInitialized) {
6213 throw new Error("initializeWasm() must be awaited first!");
6215 const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_ok(owner);
6216 return nativeResponseValue;
6218 // struct LDKDecodeError CResult_FundingSignedDecodeErrorZ_get_err(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR owner);
6220 export function CResult_FundingSignedDecodeErrorZ_get_err(owner: bigint): bigint {
6221 if(!isWasmInitialized) {
6222 throw new Error("initializeWasm() must be awaited first!");
6224 const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_get_err(owner);
6225 return nativeResponseValue;
6227 // struct LDKChannelReady CResult_ChannelReadyDecodeErrorZ_get_ok(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
6229 export function CResult_ChannelReadyDecodeErrorZ_get_ok(owner: bigint): bigint {
6230 if(!isWasmInitialized) {
6231 throw new Error("initializeWasm() must be awaited first!");
6233 const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_get_ok(owner);
6234 return nativeResponseValue;
6236 // struct LDKDecodeError CResult_ChannelReadyDecodeErrorZ_get_err(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR owner);
6238 export function CResult_ChannelReadyDecodeErrorZ_get_err(owner: bigint): bigint {
6239 if(!isWasmInitialized) {
6240 throw new Error("initializeWasm() must be awaited first!");
6242 const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_get_err(owner);
6243 return nativeResponseValue;
6245 // struct LDKInit CResult_InitDecodeErrorZ_get_ok(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
6247 export function CResult_InitDecodeErrorZ_get_ok(owner: bigint): bigint {
6248 if(!isWasmInitialized) {
6249 throw new Error("initializeWasm() must be awaited first!");
6251 const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_ok(owner);
6252 return nativeResponseValue;
6254 // struct LDKDecodeError CResult_InitDecodeErrorZ_get_err(LDKCResult_InitDecodeErrorZ *NONNULL_PTR owner);
6256 export function CResult_InitDecodeErrorZ_get_err(owner: bigint): bigint {
6257 if(!isWasmInitialized) {
6258 throw new Error("initializeWasm() must be awaited first!");
6260 const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_get_err(owner);
6261 return nativeResponseValue;
6263 // struct LDKOpenChannel CResult_OpenChannelDecodeErrorZ_get_ok(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
6265 export function CResult_OpenChannelDecodeErrorZ_get_ok(owner: bigint): bigint {
6266 if(!isWasmInitialized) {
6267 throw new Error("initializeWasm() must be awaited first!");
6269 const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_ok(owner);
6270 return nativeResponseValue;
6272 // struct LDKDecodeError CResult_OpenChannelDecodeErrorZ_get_err(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR owner);
6274 export function CResult_OpenChannelDecodeErrorZ_get_err(owner: bigint): bigint {
6275 if(!isWasmInitialized) {
6276 throw new Error("initializeWasm() must be awaited first!");
6278 const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_get_err(owner);
6279 return nativeResponseValue;
6281 // struct LDKRevokeAndACK CResult_RevokeAndACKDecodeErrorZ_get_ok(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
6283 export function CResult_RevokeAndACKDecodeErrorZ_get_ok(owner: bigint): bigint {
6284 if(!isWasmInitialized) {
6285 throw new Error("initializeWasm() must be awaited first!");
6287 const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_ok(owner);
6288 return nativeResponseValue;
6290 // struct LDKDecodeError CResult_RevokeAndACKDecodeErrorZ_get_err(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR owner);
6292 export function CResult_RevokeAndACKDecodeErrorZ_get_err(owner: bigint): bigint {
6293 if(!isWasmInitialized) {
6294 throw new Error("initializeWasm() must be awaited first!");
6296 const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_get_err(owner);
6297 return nativeResponseValue;
6299 // struct LDKShutdown CResult_ShutdownDecodeErrorZ_get_ok(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
6301 export function CResult_ShutdownDecodeErrorZ_get_ok(owner: bigint): bigint {
6302 if(!isWasmInitialized) {
6303 throw new Error("initializeWasm() must be awaited first!");
6305 const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_ok(owner);
6306 return nativeResponseValue;
6308 // struct LDKDecodeError CResult_ShutdownDecodeErrorZ_get_err(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR owner);
6310 export function CResult_ShutdownDecodeErrorZ_get_err(owner: bigint): bigint {
6311 if(!isWasmInitialized) {
6312 throw new Error("initializeWasm() must be awaited first!");
6314 const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_get_err(owner);
6315 return nativeResponseValue;
6317 // struct LDKUpdateFailHTLC CResult_UpdateFailHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
6319 export function CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner: bigint): bigint {
6320 if(!isWasmInitialized) {
6321 throw new Error("initializeWasm() must be awaited first!");
6323 const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_ok(owner);
6324 return nativeResponseValue;
6326 // struct LDKDecodeError CResult_UpdateFailHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR owner);
6328 export function CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner: bigint): bigint {
6329 if(!isWasmInitialized) {
6330 throw new Error("initializeWasm() must be awaited first!");
6332 const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_get_err(owner);
6333 return nativeResponseValue;
6335 // struct LDKUpdateFailMalformedHTLC CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
6337 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner: bigint): bigint {
6338 if(!isWasmInitialized) {
6339 throw new Error("initializeWasm() must be awaited first!");
6341 const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_ok(owner);
6342 return nativeResponseValue;
6344 // struct LDKDecodeError CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR owner);
6346 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner: bigint): bigint {
6347 if(!isWasmInitialized) {
6348 throw new Error("initializeWasm() must be awaited first!");
6350 const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_get_err(owner);
6351 return nativeResponseValue;
6353 // struct LDKUpdateFee CResult_UpdateFeeDecodeErrorZ_get_ok(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
6355 export function CResult_UpdateFeeDecodeErrorZ_get_ok(owner: bigint): bigint {
6356 if(!isWasmInitialized) {
6357 throw new Error("initializeWasm() must be awaited first!");
6359 const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_ok(owner);
6360 return nativeResponseValue;
6362 // struct LDKDecodeError CResult_UpdateFeeDecodeErrorZ_get_err(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR owner);
6364 export function CResult_UpdateFeeDecodeErrorZ_get_err(owner: bigint): bigint {
6365 if(!isWasmInitialized) {
6366 throw new Error("initializeWasm() must be awaited first!");
6368 const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_get_err(owner);
6369 return nativeResponseValue;
6371 // struct LDKUpdateFulfillHTLC CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
6373 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner: bigint): bigint {
6374 if(!isWasmInitialized) {
6375 throw new Error("initializeWasm() must be awaited first!");
6377 const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_ok(owner);
6378 return nativeResponseValue;
6380 // struct LDKDecodeError CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR owner);
6382 export function CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner: bigint): bigint {
6383 if(!isWasmInitialized) {
6384 throw new Error("initializeWasm() must be awaited first!");
6386 const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_get_err(owner);
6387 return nativeResponseValue;
6389 // struct LDKUpdateAddHTLC CResult_UpdateAddHTLCDecodeErrorZ_get_ok(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
6391 export function CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner: bigint): bigint {
6392 if(!isWasmInitialized) {
6393 throw new Error("initializeWasm() must be awaited first!");
6395 const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_ok(owner);
6396 return nativeResponseValue;
6398 // struct LDKDecodeError CResult_UpdateAddHTLCDecodeErrorZ_get_err(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR owner);
6400 export function CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner: bigint): bigint {
6401 if(!isWasmInitialized) {
6402 throw new Error("initializeWasm() must be awaited first!");
6404 const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_get_err(owner);
6405 return nativeResponseValue;
6407 // struct LDKOnionMessage CResult_OnionMessageDecodeErrorZ_get_ok(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
6409 export function CResult_OnionMessageDecodeErrorZ_get_ok(owner: bigint): bigint {
6410 if(!isWasmInitialized) {
6411 throw new Error("initializeWasm() must be awaited first!");
6413 const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_get_ok(owner);
6414 return nativeResponseValue;
6416 // struct LDKDecodeError CResult_OnionMessageDecodeErrorZ_get_err(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR owner);
6418 export function CResult_OnionMessageDecodeErrorZ_get_err(owner: bigint): bigint {
6419 if(!isWasmInitialized) {
6420 throw new Error("initializeWasm() must be awaited first!");
6422 const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_get_err(owner);
6423 return nativeResponseValue;
6425 // struct LDKPing CResult_PingDecodeErrorZ_get_ok(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
6427 export function CResult_PingDecodeErrorZ_get_ok(owner: bigint): bigint {
6428 if(!isWasmInitialized) {
6429 throw new Error("initializeWasm() must be awaited first!");
6431 const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_ok(owner);
6432 return nativeResponseValue;
6434 // struct LDKDecodeError CResult_PingDecodeErrorZ_get_err(LDKCResult_PingDecodeErrorZ *NONNULL_PTR owner);
6436 export function CResult_PingDecodeErrorZ_get_err(owner: bigint): bigint {
6437 if(!isWasmInitialized) {
6438 throw new Error("initializeWasm() must be awaited first!");
6440 const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_get_err(owner);
6441 return nativeResponseValue;
6443 // struct LDKPong CResult_PongDecodeErrorZ_get_ok(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
6445 export function CResult_PongDecodeErrorZ_get_ok(owner: bigint): bigint {
6446 if(!isWasmInitialized) {
6447 throw new Error("initializeWasm() must be awaited first!");
6449 const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_ok(owner);
6450 return nativeResponseValue;
6452 // struct LDKDecodeError CResult_PongDecodeErrorZ_get_err(LDKCResult_PongDecodeErrorZ *NONNULL_PTR owner);
6454 export function CResult_PongDecodeErrorZ_get_err(owner: bigint): bigint {
6455 if(!isWasmInitialized) {
6456 throw new Error("initializeWasm() must be awaited first!");
6458 const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_get_err(owner);
6459 return nativeResponseValue;
6461 // struct LDKUnsignedChannelAnnouncement CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
6463 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner: bigint): bigint {
6464 if(!isWasmInitialized) {
6465 throw new Error("initializeWasm() must be awaited first!");
6467 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_ok(owner);
6468 return nativeResponseValue;
6470 // struct LDKDecodeError CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
6472 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner: bigint): bigint {
6473 if(!isWasmInitialized) {
6474 throw new Error("initializeWasm() must be awaited first!");
6476 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_get_err(owner);
6477 return nativeResponseValue;
6479 // struct LDKChannelAnnouncement CResult_ChannelAnnouncementDecodeErrorZ_get_ok(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
6481 export function CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner: bigint): bigint {
6482 if(!isWasmInitialized) {
6483 throw new Error("initializeWasm() must be awaited first!");
6485 const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_ok(owner);
6486 return nativeResponseValue;
6488 // struct LDKDecodeError CResult_ChannelAnnouncementDecodeErrorZ_get_err(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR owner);
6490 export function CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner: bigint): bigint {
6491 if(!isWasmInitialized) {
6492 throw new Error("initializeWasm() must be awaited first!");
6494 const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_get_err(owner);
6495 return nativeResponseValue;
6497 // struct LDKUnsignedChannelUpdate CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
6499 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner: bigint): bigint {
6500 if(!isWasmInitialized) {
6501 throw new Error("initializeWasm() must be awaited first!");
6503 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_ok(owner);
6504 return nativeResponseValue;
6506 // struct LDKDecodeError CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
6508 export function CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner: bigint): bigint {
6509 if(!isWasmInitialized) {
6510 throw new Error("initializeWasm() must be awaited first!");
6512 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_get_err(owner);
6513 return nativeResponseValue;
6515 // struct LDKChannelUpdate CResult_ChannelUpdateDecodeErrorZ_get_ok(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
6517 export function CResult_ChannelUpdateDecodeErrorZ_get_ok(owner: bigint): bigint {
6518 if(!isWasmInitialized) {
6519 throw new Error("initializeWasm() must be awaited first!");
6521 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_ok(owner);
6522 return nativeResponseValue;
6524 // struct LDKDecodeError CResult_ChannelUpdateDecodeErrorZ_get_err(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR owner);
6526 export function CResult_ChannelUpdateDecodeErrorZ_get_err(owner: bigint): bigint {
6527 if(!isWasmInitialized) {
6528 throw new Error("initializeWasm() must be awaited first!");
6530 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_get_err(owner);
6531 return nativeResponseValue;
6533 // struct LDKErrorMessage CResult_ErrorMessageDecodeErrorZ_get_ok(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
6535 export function CResult_ErrorMessageDecodeErrorZ_get_ok(owner: bigint): bigint {
6536 if(!isWasmInitialized) {
6537 throw new Error("initializeWasm() must be awaited first!");
6539 const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_ok(owner);
6540 return nativeResponseValue;
6542 // struct LDKDecodeError CResult_ErrorMessageDecodeErrorZ_get_err(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR owner);
6544 export function CResult_ErrorMessageDecodeErrorZ_get_err(owner: bigint): bigint {
6545 if(!isWasmInitialized) {
6546 throw new Error("initializeWasm() must be awaited first!");
6548 const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_get_err(owner);
6549 return nativeResponseValue;
6551 // struct LDKWarningMessage CResult_WarningMessageDecodeErrorZ_get_ok(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
6553 export function CResult_WarningMessageDecodeErrorZ_get_ok(owner: bigint): bigint {
6554 if(!isWasmInitialized) {
6555 throw new Error("initializeWasm() must be awaited first!");
6557 const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_ok(owner);
6558 return nativeResponseValue;
6560 // struct LDKDecodeError CResult_WarningMessageDecodeErrorZ_get_err(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR owner);
6562 export function CResult_WarningMessageDecodeErrorZ_get_err(owner: bigint): bigint {
6563 if(!isWasmInitialized) {
6564 throw new Error("initializeWasm() must be awaited first!");
6566 const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_get_err(owner);
6567 return nativeResponseValue;
6569 // struct LDKUnsignedNodeAnnouncement CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
6571 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner: bigint): bigint {
6572 if(!isWasmInitialized) {
6573 throw new Error("initializeWasm() must be awaited first!");
6575 const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_ok(owner);
6576 return nativeResponseValue;
6578 // struct LDKDecodeError CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
6580 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner: bigint): bigint {
6581 if(!isWasmInitialized) {
6582 throw new Error("initializeWasm() must be awaited first!");
6584 const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_get_err(owner);
6585 return nativeResponseValue;
6587 // struct LDKNodeAnnouncement CResult_NodeAnnouncementDecodeErrorZ_get_ok(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
6589 export function CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner: bigint): bigint {
6590 if(!isWasmInitialized) {
6591 throw new Error("initializeWasm() must be awaited first!");
6593 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_ok(owner);
6594 return nativeResponseValue;
6596 // struct LDKDecodeError CResult_NodeAnnouncementDecodeErrorZ_get_err(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR owner);
6598 export function CResult_NodeAnnouncementDecodeErrorZ_get_err(owner: bigint): bigint {
6599 if(!isWasmInitialized) {
6600 throw new Error("initializeWasm() must be awaited first!");
6602 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_get_err(owner);
6603 return nativeResponseValue;
6605 // struct LDKQueryShortChannelIds CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
6607 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner: bigint): bigint {
6608 if(!isWasmInitialized) {
6609 throw new Error("initializeWasm() must be awaited first!");
6611 const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_ok(owner);
6612 return nativeResponseValue;
6614 // struct LDKDecodeError CResult_QueryShortChannelIdsDecodeErrorZ_get_err(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR owner);
6616 export function CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner: bigint): bigint {
6617 if(!isWasmInitialized) {
6618 throw new Error("initializeWasm() must be awaited first!");
6620 const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_get_err(owner);
6621 return nativeResponseValue;
6623 // struct LDKReplyShortChannelIdsEnd CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
6625 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner: bigint): bigint {
6626 if(!isWasmInitialized) {
6627 throw new Error("initializeWasm() must be awaited first!");
6629 const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_ok(owner);
6630 return nativeResponseValue;
6632 // struct LDKDecodeError CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR owner);
6634 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner: bigint): bigint {
6635 if(!isWasmInitialized) {
6636 throw new Error("initializeWasm() must be awaited first!");
6638 const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_get_err(owner);
6639 return nativeResponseValue;
6641 // struct LDKQueryChannelRange CResult_QueryChannelRangeDecodeErrorZ_get_ok(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
6643 export function CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner: bigint): bigint {
6644 if(!isWasmInitialized) {
6645 throw new Error("initializeWasm() must be awaited first!");
6647 const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_ok(owner);
6648 return nativeResponseValue;
6650 // struct LDKDecodeError CResult_QueryChannelRangeDecodeErrorZ_get_err(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR owner);
6652 export function CResult_QueryChannelRangeDecodeErrorZ_get_err(owner: bigint): bigint {
6653 if(!isWasmInitialized) {
6654 throw new Error("initializeWasm() must be awaited first!");
6656 const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_get_err(owner);
6657 return nativeResponseValue;
6659 // struct LDKReplyChannelRange CResult_ReplyChannelRangeDecodeErrorZ_get_ok(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
6661 export function CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner: bigint): bigint {
6662 if(!isWasmInitialized) {
6663 throw new Error("initializeWasm() must be awaited first!");
6665 const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_ok(owner);
6666 return nativeResponseValue;
6668 // struct LDKDecodeError CResult_ReplyChannelRangeDecodeErrorZ_get_err(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR owner);
6670 export function CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner: bigint): bigint {
6671 if(!isWasmInitialized) {
6672 throw new Error("initializeWasm() must be awaited first!");
6674 const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_get_err(owner);
6675 return nativeResponseValue;
6677 // struct LDKGossipTimestampFilter CResult_GossipTimestampFilterDecodeErrorZ_get_ok(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
6679 export function CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner: bigint): bigint {
6680 if(!isWasmInitialized) {
6681 throw new Error("initializeWasm() must be awaited first!");
6683 const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_ok(owner);
6684 return nativeResponseValue;
6686 // struct LDKDecodeError CResult_GossipTimestampFilterDecodeErrorZ_get_err(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR owner);
6688 export function CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner: bigint): bigint {
6689 if(!isWasmInitialized) {
6690 throw new Error("initializeWasm() must be awaited first!");
6692 const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_get_err(owner);
6693 return nativeResponseValue;
6696 export interface LDKFilter {
6697 register_tx (txid: number, script_pubkey: number): void;
6698 register_output (output: bigint): void;
6702 export function LDKFilter_new(impl: LDKFilter): [bigint, number] {
6703 if(!isWasmInitialized) {
6704 throw new Error("initializeWasm() must be awaited first!");
6706 var new_obj_idx = js_objs.length;
6707 for (var i = 0; i < js_objs.length; i++) {
6708 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
6710 js_objs[i] = new WeakRef(impl);
6711 return [wasm.TS_LDKFilter_new(i), i];
6713 // void Filter_register_tx LDKFilter *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKu8slice script_pubkey
6715 export function Filter_register_tx(this_arg: bigint, txid: number, script_pubkey: number): void {
6716 if(!isWasmInitialized) {
6717 throw new Error("initializeWasm() must be awaited first!");
6719 const nativeResponseValue = wasm.TS_Filter_register_tx(this_arg, txid, script_pubkey);
6720 // debug statements here
6722 // void Filter_register_output LDKFilter *NONNULL_PTR this_arg, struct LDKWatchedOutput output
6724 export function Filter_register_output(this_arg: bigint, output: bigint): void {
6725 if(!isWasmInitialized) {
6726 throw new Error("initializeWasm() must be awaited first!");
6728 const nativeResponseValue = wasm.TS_Filter_register_output(this_arg, output);
6729 // debug statements here
6732 export class LDKCOption_FilterZ {
6733 protected constructor() {}
6736 export function LDKCOption_FilterZ_ty_from_ptr(ptr: bigint): number {
6737 if(!isWasmInitialized) {
6738 throw new Error("initializeWasm() must be awaited first!");
6740 const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_ty_from_ptr(ptr);
6741 return nativeResponseValue;
6744 export function LDKCOption_FilterZ_Some_get_some(ptr: bigint): bigint {
6745 if(!isWasmInitialized) {
6746 throw new Error("initializeWasm() must be awaited first!");
6748 const nativeResponseValue = wasm.TS_LDKCOption_FilterZ_Some_get_some(ptr);
6749 return nativeResponseValue;
6751 // struct LDKLockedChannelMonitor CResult_LockedChannelMonitorNoneZ_get_ok(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
6753 export function CResult_LockedChannelMonitorNoneZ_get_ok(owner: bigint): bigint {
6754 if(!isWasmInitialized) {
6755 throw new Error("initializeWasm() must be awaited first!");
6757 const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_ok(owner);
6758 return nativeResponseValue;
6760 // void CResult_LockedChannelMonitorNoneZ_get_err(LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR owner);
6762 export function CResult_LockedChannelMonitorNoneZ_get_err(owner: bigint): void {
6763 if(!isWasmInitialized) {
6764 throw new Error("initializeWasm() must be awaited first!");
6766 const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_get_err(owner);
6767 // debug statements here
6769 // struct LDKOutPoint C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
6771 export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(owner: bigint): bigint {
6772 if(!isWasmInitialized) {
6773 throw new Error("initializeWasm() must be awaited first!");
6775 const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_a(owner);
6776 return nativeResponseValue;
6778 // struct LDKCVec_MonitorUpdateIdZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR owner);
6780 export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(owner: bigint): number {
6781 if(!isWasmInitialized) {
6782 throw new Error("initializeWasm() must be awaited first!");
6784 const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_get_b(owner);
6785 return nativeResponseValue;
6788 export class LDKSignOrCreationError {
6789 protected constructor() {}
6792 export function LDKSignOrCreationError_ty_from_ptr(ptr: bigint): number {
6793 if(!isWasmInitialized) {
6794 throw new Error("initializeWasm() must be awaited first!");
6796 const nativeResponseValue = wasm.TS_LDKSignOrCreationError_ty_from_ptr(ptr);
6797 return nativeResponseValue;
6800 export function LDKSignOrCreationError_CreationError_get_creation_error(ptr: bigint): CreationError {
6801 if(!isWasmInitialized) {
6802 throw new Error("initializeWasm() must be awaited first!");
6804 const nativeResponseValue = wasm.TS_LDKSignOrCreationError_CreationError_get_creation_error(ptr);
6805 return nativeResponseValue;
6807 // struct LDKInvoice CResult_InvoiceSignOrCreationErrorZ_get_ok(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
6809 export function CResult_InvoiceSignOrCreationErrorZ_get_ok(owner: bigint): bigint {
6810 if(!isWasmInitialized) {
6811 throw new Error("initializeWasm() must be awaited first!");
6813 const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_ok(owner);
6814 return nativeResponseValue;
6816 // struct LDKSignOrCreationError CResult_InvoiceSignOrCreationErrorZ_get_err(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR owner);
6818 export function CResult_InvoiceSignOrCreationErrorZ_get_err(owner: bigint): bigint {
6819 if(!isWasmInitialized) {
6820 throw new Error("initializeWasm() must be awaited first!");
6822 const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_get_err(owner);
6823 return nativeResponseValue;
6826 export class LDKParseError {
6827 protected constructor() {}
6830 export function LDKParseError_ty_from_ptr(ptr: bigint): number {
6831 if(!isWasmInitialized) {
6832 throw new Error("initializeWasm() must be awaited first!");
6834 const nativeResponseValue = wasm.TS_LDKParseError_ty_from_ptr(ptr);
6835 return nativeResponseValue;
6838 export function LDKParseError_Bech32Error_get_bech32_error(ptr: bigint): bigint {
6839 if(!isWasmInitialized) {
6840 throw new Error("initializeWasm() must be awaited first!");
6842 const nativeResponseValue = wasm.TS_LDKParseError_Bech32Error_get_bech32_error(ptr);
6843 return nativeResponseValue;
6846 export function LDKParseError_ParseAmountError_get_parse_amount_error(ptr: bigint): number {
6847 if(!isWasmInitialized) {
6848 throw new Error("initializeWasm() must be awaited first!");
6850 const nativeResponseValue = wasm.TS_LDKParseError_ParseAmountError_get_parse_amount_error(ptr);
6851 return nativeResponseValue;
6854 export function LDKParseError_MalformedSignature_get_malformed_signature(ptr: bigint): Secp256k1Error {
6855 if(!isWasmInitialized) {
6856 throw new Error("initializeWasm() must be awaited first!");
6858 const nativeResponseValue = wasm.TS_LDKParseError_MalformedSignature_get_malformed_signature(ptr);
6859 return nativeResponseValue;
6862 export function LDKParseError_DescriptionDecodeError_get_description_decode_error(ptr: bigint): number {
6863 if(!isWasmInitialized) {
6864 throw new Error("initializeWasm() must be awaited first!");
6866 const nativeResponseValue = wasm.TS_LDKParseError_DescriptionDecodeError_get_description_decode_error(ptr);
6867 return nativeResponseValue;
6870 export function LDKParseError_InvalidSliceLength_get_invalid_slice_length(ptr: bigint): number {
6871 if(!isWasmInitialized) {
6872 throw new Error("initializeWasm() must be awaited first!");
6874 const nativeResponseValue = wasm.TS_LDKParseError_InvalidSliceLength_get_invalid_slice_length(ptr);
6875 return nativeResponseValue;
6877 // enum LDKSiPrefix CResult_SiPrefixParseErrorZ_get_ok(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
6879 export function CResult_SiPrefixParseErrorZ_get_ok(owner: bigint): SiPrefix {
6880 if(!isWasmInitialized) {
6881 throw new Error("initializeWasm() must be awaited first!");
6883 const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_get_ok(owner);
6884 return nativeResponseValue;
6886 // struct LDKParseError CResult_SiPrefixParseErrorZ_get_err(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR owner);
6888 export function CResult_SiPrefixParseErrorZ_get_err(owner: bigint): bigint {
6889 if(!isWasmInitialized) {
6890 throw new Error("initializeWasm() must be awaited first!");
6892 const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_get_err(owner);
6893 return nativeResponseValue;
6896 export class LDKParseOrSemanticError {
6897 protected constructor() {}
6900 export function LDKParseOrSemanticError_ty_from_ptr(ptr: bigint): number {
6901 if(!isWasmInitialized) {
6902 throw new Error("initializeWasm() must be awaited first!");
6904 const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_ty_from_ptr(ptr);
6905 return nativeResponseValue;
6908 export function LDKParseOrSemanticError_ParseError_get_parse_error(ptr: bigint): bigint {
6909 if(!isWasmInitialized) {
6910 throw new Error("initializeWasm() must be awaited first!");
6912 const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_ParseError_get_parse_error(ptr);
6913 return nativeResponseValue;
6916 export function LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr: bigint): SemanticError {
6917 if(!isWasmInitialized) {
6918 throw new Error("initializeWasm() must be awaited first!");
6920 const nativeResponseValue = wasm.TS_LDKParseOrSemanticError_SemanticError_get_semantic_error(ptr);
6921 return nativeResponseValue;
6923 // struct LDKInvoice CResult_InvoiceParseOrSemanticErrorZ_get_ok(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
6925 export function CResult_InvoiceParseOrSemanticErrorZ_get_ok(owner: bigint): bigint {
6926 if(!isWasmInitialized) {
6927 throw new Error("initializeWasm() must be awaited first!");
6929 const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_get_ok(owner);
6930 return nativeResponseValue;
6932 // struct LDKParseOrSemanticError CResult_InvoiceParseOrSemanticErrorZ_get_err(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR owner);
6934 export function CResult_InvoiceParseOrSemanticErrorZ_get_err(owner: bigint): bigint {
6935 if(!isWasmInitialized) {
6936 throw new Error("initializeWasm() must be awaited first!");
6938 const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_get_err(owner);
6939 return nativeResponseValue;
6941 // struct LDKSignedRawInvoice CResult_SignedRawInvoiceParseErrorZ_get_ok(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
6943 export function CResult_SignedRawInvoiceParseErrorZ_get_ok(owner: bigint): bigint {
6944 if(!isWasmInitialized) {
6945 throw new Error("initializeWasm() must be awaited first!");
6947 const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_get_ok(owner);
6948 return nativeResponseValue;
6950 // struct LDKParseError CResult_SignedRawInvoiceParseErrorZ_get_err(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR owner);
6952 export function CResult_SignedRawInvoiceParseErrorZ_get_err(owner: bigint): bigint {
6953 if(!isWasmInitialized) {
6954 throw new Error("initializeWasm() must be awaited first!");
6956 const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_get_err(owner);
6957 return nativeResponseValue;
6959 // struct LDKRawInvoice C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
6961 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner: bigint): bigint {
6962 if(!isWasmInitialized) {
6963 throw new Error("initializeWasm() must be awaited first!");
6965 const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_a(owner);
6966 return nativeResponseValue;
6968 // struct LDKThirtyTwoBytes C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
6970 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner: bigint): number {
6971 if(!isWasmInitialized) {
6972 throw new Error("initializeWasm() must be awaited first!");
6974 const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_b(owner);
6975 return nativeResponseValue;
6977 // struct LDKInvoiceSignature C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR owner);
6979 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner: bigint): bigint {
6980 if(!isWasmInitialized) {
6981 throw new Error("initializeWasm() must be awaited first!");
6983 const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_get_c(owner);
6984 return nativeResponseValue;
6986 // struct LDKPayeePubKey CResult_PayeePubKeyErrorZ_get_ok(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
6988 export function CResult_PayeePubKeyErrorZ_get_ok(owner: bigint): bigint {
6989 if(!isWasmInitialized) {
6990 throw new Error("initializeWasm() must be awaited first!");
6992 const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_ok(owner);
6993 return nativeResponseValue;
6995 // enum LDKSecp256k1Error CResult_PayeePubKeyErrorZ_get_err(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR owner);
6997 export function CResult_PayeePubKeyErrorZ_get_err(owner: bigint): Secp256k1Error {
6998 if(!isWasmInitialized) {
6999 throw new Error("initializeWasm() must be awaited first!");
7001 const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_get_err(owner);
7002 return nativeResponseValue;
7004 // struct LDKPositiveTimestamp CResult_PositiveTimestampCreationErrorZ_get_ok(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
7006 export function CResult_PositiveTimestampCreationErrorZ_get_ok(owner: bigint): bigint {
7007 if(!isWasmInitialized) {
7008 throw new Error("initializeWasm() must be awaited first!");
7010 const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_ok(owner);
7011 return nativeResponseValue;
7013 // enum LDKCreationError CResult_PositiveTimestampCreationErrorZ_get_err(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR owner);
7015 export function CResult_PositiveTimestampCreationErrorZ_get_err(owner: bigint): CreationError {
7016 if(!isWasmInitialized) {
7017 throw new Error("initializeWasm() must be awaited first!");
7019 const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_get_err(owner);
7020 return nativeResponseValue;
7022 // void CResult_NoneSemanticErrorZ_get_ok(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
7024 export function CResult_NoneSemanticErrorZ_get_ok(owner: bigint): void {
7025 if(!isWasmInitialized) {
7026 throw new Error("initializeWasm() must be awaited first!");
7028 const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_ok(owner);
7029 // debug statements here
7031 // enum LDKSemanticError CResult_NoneSemanticErrorZ_get_err(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR owner);
7033 export function CResult_NoneSemanticErrorZ_get_err(owner: bigint): SemanticError {
7034 if(!isWasmInitialized) {
7035 throw new Error("initializeWasm() must be awaited first!");
7037 const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_get_err(owner);
7038 return nativeResponseValue;
7040 // struct LDKInvoice CResult_InvoiceSemanticErrorZ_get_ok(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
7042 export function CResult_InvoiceSemanticErrorZ_get_ok(owner: bigint): bigint {
7043 if(!isWasmInitialized) {
7044 throw new Error("initializeWasm() must be awaited first!");
7046 const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_ok(owner);
7047 return nativeResponseValue;
7049 // enum LDKSemanticError CResult_InvoiceSemanticErrorZ_get_err(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR owner);
7051 export function CResult_InvoiceSemanticErrorZ_get_err(owner: bigint): SemanticError {
7052 if(!isWasmInitialized) {
7053 throw new Error("initializeWasm() must be awaited first!");
7055 const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_get_err(owner);
7056 return nativeResponseValue;
7058 // struct LDKDescription CResult_DescriptionCreationErrorZ_get_ok(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
7060 export function CResult_DescriptionCreationErrorZ_get_ok(owner: bigint): bigint {
7061 if(!isWasmInitialized) {
7062 throw new Error("initializeWasm() must be awaited first!");
7064 const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_ok(owner);
7065 return nativeResponseValue;
7067 // enum LDKCreationError CResult_DescriptionCreationErrorZ_get_err(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR owner);
7069 export function CResult_DescriptionCreationErrorZ_get_err(owner: bigint): CreationError {
7070 if(!isWasmInitialized) {
7071 throw new Error("initializeWasm() must be awaited first!");
7073 const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_get_err(owner);
7074 return nativeResponseValue;
7076 // struct LDKPrivateRoute CResult_PrivateRouteCreationErrorZ_get_ok(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
7078 export function CResult_PrivateRouteCreationErrorZ_get_ok(owner: bigint): bigint {
7079 if(!isWasmInitialized) {
7080 throw new Error("initializeWasm() must be awaited first!");
7082 const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_ok(owner);
7083 return nativeResponseValue;
7085 // enum LDKCreationError CResult_PrivateRouteCreationErrorZ_get_err(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR owner);
7087 export function CResult_PrivateRouteCreationErrorZ_get_err(owner: bigint): CreationError {
7088 if(!isWasmInitialized) {
7089 throw new Error("initializeWasm() must be awaited first!");
7091 const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_get_err(owner);
7092 return nativeResponseValue;
7095 export interface LDKScore {
7096 channel_penalty_msat (short_channel_id: bigint, source: bigint, target: bigint, usage: bigint): bigint;
7097 payment_path_failed (path: bigint, short_channel_id: bigint): void;
7098 payment_path_successful (path: bigint): void;
7099 probe_failed (path: bigint, short_channel_id: bigint): void;
7100 probe_successful (path: bigint): void;
7105 export function LDKScore_new(impl: LDKScore): [bigint, number] {
7106 if(!isWasmInitialized) {
7107 throw new Error("initializeWasm() must be awaited first!");
7109 var new_obj_idx = js_objs.length;
7110 for (var i = 0; i < js_objs.length; i++) {
7111 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7113 js_objs[i] = new WeakRef(impl);
7114 return [wasm.TS_LDKScore_new(i), i];
7116 // uint64_t Score_channel_penalty_msat LDKScore *NONNULL_PTR this_arg, uint64_t short_channel_id, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, struct LDKChannelUsage usage
7118 export function Score_channel_penalty_msat(this_arg: bigint, short_channel_id: bigint, source: bigint, target: bigint, usage: bigint): bigint {
7119 if(!isWasmInitialized) {
7120 throw new Error("initializeWasm() must be awaited first!");
7122 const nativeResponseValue = wasm.TS_Score_channel_penalty_msat(this_arg, short_channel_id, source, target, usage);
7123 return nativeResponseValue;
7125 // void Score_payment_path_failed LDKScore *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t short_channel_id
7127 export function Score_payment_path_failed(this_arg: bigint, path: bigint, short_channel_id: bigint): void {
7128 if(!isWasmInitialized) {
7129 throw new Error("initializeWasm() must be awaited first!");
7131 const nativeResponseValue = wasm.TS_Score_payment_path_failed(this_arg, path, short_channel_id);
7132 // debug statements here
7134 // void Score_payment_path_successful LDKScore *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path
7136 export function Score_payment_path_successful(this_arg: bigint, path: bigint): void {
7137 if(!isWasmInitialized) {
7138 throw new Error("initializeWasm() must be awaited first!");
7140 const nativeResponseValue = wasm.TS_Score_payment_path_successful(this_arg, path);
7141 // debug statements here
7143 // void Score_probe_failed LDKScore *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, uint64_t short_channel_id
7145 export function Score_probe_failed(this_arg: bigint, path: bigint, short_channel_id: bigint): void {
7146 if(!isWasmInitialized) {
7147 throw new Error("initializeWasm() must be awaited first!");
7149 const nativeResponseValue = wasm.TS_Score_probe_failed(this_arg, path, short_channel_id);
7150 // debug statements here
7152 // void Score_probe_successful LDKScore *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path
7154 export function Score_probe_successful(this_arg: bigint, path: bigint): void {
7155 if(!isWasmInitialized) {
7156 throw new Error("initializeWasm() must be awaited first!");
7158 const nativeResponseValue = wasm.TS_Score_probe_successful(this_arg, path);
7159 // debug statements here
7161 // LDKCVec_u8Z Score_write LDKScore *NONNULL_PTR this_arg
7163 export function Score_write(this_arg: bigint): number {
7164 if(!isWasmInitialized) {
7165 throw new Error("initializeWasm() must be awaited first!");
7167 const nativeResponseValue = wasm.TS_Score_write(this_arg);
7168 return nativeResponseValue;
7171 export interface LDKLockableScore {
7176 export function LDKLockableScore_new(impl: LDKLockableScore): [bigint, number] {
7177 if(!isWasmInitialized) {
7178 throw new Error("initializeWasm() must be awaited first!");
7180 var new_obj_idx = js_objs.length;
7181 for (var i = 0; i < js_objs.length; i++) {
7182 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7184 js_objs[i] = new WeakRef(impl);
7185 return [wasm.TS_LDKLockableScore_new(i), i];
7187 // LDKScore LockableScore_lock LDKLockableScore *NONNULL_PTR this_arg
7189 export function LockableScore_lock(this_arg: bigint): bigint {
7190 if(!isWasmInitialized) {
7191 throw new Error("initializeWasm() must be awaited first!");
7193 const nativeResponseValue = wasm.TS_LockableScore_lock(this_arg);
7194 return nativeResponseValue;
7197 export interface LDKWriteableScore {
7202 export function LDKWriteableScore_new(impl: LDKWriteableScore, LockableScore: number): [bigint, number] {
7203 if(!isWasmInitialized) {
7204 throw new Error("initializeWasm() must be awaited first!");
7206 var new_obj_idx = js_objs.length;
7207 for (var i = 0; i < js_objs.length; i++) {
7208 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7210 js_objs[i] = new WeakRef(impl);
7211 return [wasm.TS_LDKWriteableScore_new(i, LockableScore), i];
7213 // LDKCVec_u8Z WriteableScore_write LDKWriteableScore *NONNULL_PTR this_arg
7215 export function WriteableScore_write(this_arg: bigint): number {
7216 if(!isWasmInitialized) {
7217 throw new Error("initializeWasm() must be awaited first!");
7219 const nativeResponseValue = wasm.TS_WriteableScore_write(this_arg);
7220 return nativeResponseValue;
7223 export interface LDKPersister {
7224 persist_manager (channel_manager: bigint): bigint;
7225 persist_graph (network_graph: bigint): bigint;
7226 persist_scorer (scorer: bigint): bigint;
7230 export function LDKPersister_new(impl: LDKPersister): [bigint, number] {
7231 if(!isWasmInitialized) {
7232 throw new Error("initializeWasm() must be awaited first!");
7234 var new_obj_idx = js_objs.length;
7235 for (var i = 0; i < js_objs.length; i++) {
7236 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7238 js_objs[i] = new WeakRef(impl);
7239 return [wasm.TS_LDKPersister_new(i), i];
7241 // LDKCResult_NoneErrorZ Persister_persist_manager LDKPersister *NONNULL_PTR this_arg, const struct LDKChannelManager *NONNULL_PTR channel_manager
7243 export function Persister_persist_manager(this_arg: bigint, channel_manager: bigint): bigint {
7244 if(!isWasmInitialized) {
7245 throw new Error("initializeWasm() must be awaited first!");
7247 const nativeResponseValue = wasm.TS_Persister_persist_manager(this_arg, channel_manager);
7248 return nativeResponseValue;
7250 // LDKCResult_NoneErrorZ Persister_persist_graph LDKPersister *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR network_graph
7252 export function Persister_persist_graph(this_arg: bigint, network_graph: bigint): bigint {
7253 if(!isWasmInitialized) {
7254 throw new Error("initializeWasm() must be awaited first!");
7256 const nativeResponseValue = wasm.TS_Persister_persist_graph(this_arg, network_graph);
7257 return nativeResponseValue;
7259 // LDKCResult_NoneErrorZ Persister_persist_scorer LDKPersister *NONNULL_PTR this_arg, const struct LDKWriteableScore *NONNULL_PTR scorer
7261 export function Persister_persist_scorer(this_arg: bigint, scorer: bigint): bigint {
7262 if(!isWasmInitialized) {
7263 throw new Error("initializeWasm() must be awaited first!");
7265 const nativeResponseValue = wasm.TS_Persister_persist_scorer(this_arg, scorer);
7266 return nativeResponseValue;
7269 export interface LDKFutureCallback {
7274 export function LDKFutureCallback_new(impl: LDKFutureCallback): [bigint, number] {
7275 if(!isWasmInitialized) {
7276 throw new Error("initializeWasm() must be awaited first!");
7278 var new_obj_idx = js_objs.length;
7279 for (var i = 0; i < js_objs.length; i++) {
7280 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7282 js_objs[i] = new WeakRef(impl);
7283 return [wasm.TS_LDKFutureCallback_new(i), i];
7285 // void FutureCallback_call LDKFutureCallback *NONNULL_PTR this_arg
7287 export function FutureCallback_call(this_arg: bigint): void {
7288 if(!isWasmInitialized) {
7289 throw new Error("initializeWasm() must be awaited first!");
7291 const nativeResponseValue = wasm.TS_FutureCallback_call(this_arg);
7292 // debug statements here
7295 export interface LDKListen {
7296 filtered_block_connected (header: number, txdata: number, height: number): void;
7297 block_connected (block: number, height: number): void;
7298 block_disconnected (header: number, height: number): void;
7302 export function LDKListen_new(impl: LDKListen): [bigint, number] {
7303 if(!isWasmInitialized) {
7304 throw new Error("initializeWasm() must be awaited first!");
7306 var new_obj_idx = js_objs.length;
7307 for (var i = 0; i < js_objs.length; i++) {
7308 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7310 js_objs[i] = new WeakRef(impl);
7311 return [wasm.TS_LDKListen_new(i), i];
7313 // void Listen_filtered_block_connected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
7315 export function Listen_filtered_block_connected(this_arg: bigint, header: number, txdata: number, height: number): void {
7316 if(!isWasmInitialized) {
7317 throw new Error("initializeWasm() must be awaited first!");
7319 const nativeResponseValue = wasm.TS_Listen_filtered_block_connected(this_arg, header, txdata, height);
7320 // debug statements here
7322 // void Listen_block_connected LDKListen *NONNULL_PTR this_arg, struct LDKu8slice block, uint32_t height
7324 export function Listen_block_connected(this_arg: bigint, block: number, height: number): void {
7325 if(!isWasmInitialized) {
7326 throw new Error("initializeWasm() must be awaited first!");
7328 const nativeResponseValue = wasm.TS_Listen_block_connected(this_arg, block, height);
7329 // debug statements here
7331 // void Listen_block_disconnected LDKListen *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
7333 export function Listen_block_disconnected(this_arg: bigint, header: number, height: number): void {
7334 if(!isWasmInitialized) {
7335 throw new Error("initializeWasm() must be awaited first!");
7337 const nativeResponseValue = wasm.TS_Listen_block_disconnected(this_arg, header, height);
7338 // debug statements here
7341 export interface LDKConfirm {
7342 transactions_confirmed (header: number, txdata: number, height: number): void;
7343 transaction_unconfirmed (txid: number): void;
7344 best_block_updated (header: number, height: number): void;
7345 get_relevant_txids (): number;
7349 export function LDKConfirm_new(impl: LDKConfirm): [bigint, number] {
7350 if(!isWasmInitialized) {
7351 throw new Error("initializeWasm() must be awaited first!");
7353 var new_obj_idx = js_objs.length;
7354 for (var i = 0; i < js_objs.length; i++) {
7355 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7357 js_objs[i] = new WeakRef(impl);
7358 return [wasm.TS_LDKConfirm_new(i), i];
7360 // void Confirm_transactions_confirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], struct LDKCVec_C2Tuple_usizeTransactionZZ txdata, uint32_t height
7362 export function Confirm_transactions_confirmed(this_arg: bigint, header: number, txdata: number, height: number): void {
7363 if(!isWasmInitialized) {
7364 throw new Error("initializeWasm() must be awaited first!");
7366 const nativeResponseValue = wasm.TS_Confirm_transactions_confirmed(this_arg, header, txdata, height);
7367 // debug statements here
7369 // void Confirm_transaction_unconfirmed LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*txid)[32]
7371 export function Confirm_transaction_unconfirmed(this_arg: bigint, txid: number): void {
7372 if(!isWasmInitialized) {
7373 throw new Error("initializeWasm() must be awaited first!");
7375 const nativeResponseValue = wasm.TS_Confirm_transaction_unconfirmed(this_arg, txid);
7376 // debug statements here
7378 // void Confirm_best_block_updated LDKConfirm *NONNULL_PTR this_arg, const uint8_t (*header)[80], uint32_t height
7380 export function Confirm_best_block_updated(this_arg: bigint, header: number, height: number): void {
7381 if(!isWasmInitialized) {
7382 throw new Error("initializeWasm() must be awaited first!");
7384 const nativeResponseValue = wasm.TS_Confirm_best_block_updated(this_arg, header, height);
7385 // debug statements here
7387 // LDKCVec_C2Tuple_TxidBlockHashZZ Confirm_get_relevant_txids LDKConfirm *NONNULL_PTR this_arg
7389 export function Confirm_get_relevant_txids(this_arg: bigint): number {
7390 if(!isWasmInitialized) {
7391 throw new Error("initializeWasm() must be awaited first!");
7393 const nativeResponseValue = wasm.TS_Confirm_get_relevant_txids(this_arg);
7394 return nativeResponseValue;
7397 export interface LDKPersist {
7398 persist_new_channel (channel_id: bigint, data: bigint, update_id: bigint): ChannelMonitorUpdateStatus;
7399 update_persisted_channel (channel_id: bigint, update: bigint, data: bigint, update_id: bigint): ChannelMonitorUpdateStatus;
7403 export function LDKPersist_new(impl: LDKPersist): [bigint, number] {
7404 if(!isWasmInitialized) {
7405 throw new Error("initializeWasm() must be awaited first!");
7407 var new_obj_idx = js_objs.length;
7408 for (var i = 0; i < js_objs.length; i++) {
7409 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7411 js_objs[i] = new WeakRef(impl);
7412 return [wasm.TS_LDKPersist_new(i), i];
7414 // LDKChannelMonitorUpdateStatus Persist_persist_new_channel LDKPersist *NONNULL_PTR this_arg, struct LDKOutPoint channel_id, const struct LDKChannelMonitor *NONNULL_PTR data, struct LDKMonitorUpdateId update_id
7416 export function Persist_persist_new_channel(this_arg: bigint, channel_id: bigint, data: bigint, update_id: bigint): ChannelMonitorUpdateStatus {
7417 if(!isWasmInitialized) {
7418 throw new Error("initializeWasm() must be awaited first!");
7420 const nativeResponseValue = wasm.TS_Persist_persist_new_channel(this_arg, channel_id, data, update_id);
7421 return nativeResponseValue;
7423 // 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
7425 export function Persist_update_persisted_channel(this_arg: bigint, channel_id: bigint, update: bigint, data: bigint, update_id: bigint): ChannelMonitorUpdateStatus {
7426 if(!isWasmInitialized) {
7427 throw new Error("initializeWasm() must be awaited first!");
7429 const nativeResponseValue = wasm.TS_Persist_update_persisted_channel(this_arg, channel_id, update, data, update_id);
7430 return nativeResponseValue;
7433 export interface LDKEventHandler {
7434 handle_event (event: bigint): void;
7438 export function LDKEventHandler_new(impl: LDKEventHandler): [bigint, number] {
7439 if(!isWasmInitialized) {
7440 throw new Error("initializeWasm() must be awaited first!");
7442 var new_obj_idx = js_objs.length;
7443 for (var i = 0; i < js_objs.length; i++) {
7444 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7446 js_objs[i] = new WeakRef(impl);
7447 return [wasm.TS_LDKEventHandler_new(i), i];
7449 // void EventHandler_handle_event LDKEventHandler *NONNULL_PTR this_arg, struct LDKEvent event
7451 export function EventHandler_handle_event(this_arg: bigint, event: bigint): void {
7452 if(!isWasmInitialized) {
7453 throw new Error("initializeWasm() must be awaited first!");
7455 const nativeResponseValue = wasm.TS_EventHandler_handle_event(this_arg, event);
7456 // debug statements here
7459 export interface LDKEventsProvider {
7460 process_pending_events (handler: bigint): void;
7464 export function LDKEventsProvider_new(impl: LDKEventsProvider): [bigint, number] {
7465 if(!isWasmInitialized) {
7466 throw new Error("initializeWasm() must be awaited first!");
7468 var new_obj_idx = js_objs.length;
7469 for (var i = 0; i < js_objs.length; i++) {
7470 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7472 js_objs[i] = new WeakRef(impl);
7473 return [wasm.TS_LDKEventsProvider_new(i), i];
7475 // void EventsProvider_process_pending_events LDKEventsProvider *NONNULL_PTR this_arg, struct LDKEventHandler handler
7477 export function EventsProvider_process_pending_events(this_arg: bigint, handler: bigint): void {
7478 if(!isWasmInitialized) {
7479 throw new Error("initializeWasm() must be awaited first!");
7481 const nativeResponseValue = wasm.TS_EventsProvider_process_pending_events(this_arg, handler);
7482 // debug statements here
7485 export class LDKRetry {
7486 protected constructor() {}
7489 export function LDKRetry_ty_from_ptr(ptr: bigint): number {
7490 if(!isWasmInitialized) {
7491 throw new Error("initializeWasm() must be awaited first!");
7493 const nativeResponseValue = wasm.TS_LDKRetry_ty_from_ptr(ptr);
7494 return nativeResponseValue;
7497 export function LDKRetry_Attempts_get_attempts(ptr: bigint): number {
7498 if(!isWasmInitialized) {
7499 throw new Error("initializeWasm() must be awaited first!");
7501 const nativeResponseValue = wasm.TS_LDKRetry_Attempts_get_attempts(ptr);
7502 return nativeResponseValue;
7505 export interface LDKMessageSendEventsProvider {
7506 get_and_clear_pending_msg_events (): number;
7510 export function LDKMessageSendEventsProvider_new(impl: LDKMessageSendEventsProvider): [bigint, number] {
7511 if(!isWasmInitialized) {
7512 throw new Error("initializeWasm() must be awaited first!");
7514 var new_obj_idx = js_objs.length;
7515 for (var i = 0; i < js_objs.length; i++) {
7516 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7518 js_objs[i] = new WeakRef(impl);
7519 return [wasm.TS_LDKMessageSendEventsProvider_new(i), i];
7521 // LDKCVec_MessageSendEventZ MessageSendEventsProvider_get_and_clear_pending_msg_events LDKMessageSendEventsProvider *NONNULL_PTR this_arg
7523 export function MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg: bigint): number {
7524 if(!isWasmInitialized) {
7525 throw new Error("initializeWasm() must be awaited first!");
7527 const nativeResponseValue = wasm.TS_MessageSendEventsProvider_get_and_clear_pending_msg_events(this_arg);
7528 return nativeResponseValue;
7531 export interface LDKChannelMessageHandler {
7532 handle_open_channel (their_node_id: number, msg: bigint): void;
7533 handle_accept_channel (their_node_id: number, msg: bigint): void;
7534 handle_funding_created (their_node_id: number, msg: bigint): void;
7535 handle_funding_signed (their_node_id: number, msg: bigint): void;
7536 handle_channel_ready (their_node_id: number, msg: bigint): void;
7537 handle_shutdown (their_node_id: number, msg: bigint): void;
7538 handle_closing_signed (their_node_id: number, msg: bigint): void;
7539 handle_update_add_htlc (their_node_id: number, msg: bigint): void;
7540 handle_update_fulfill_htlc (their_node_id: number, msg: bigint): void;
7541 handle_update_fail_htlc (their_node_id: number, msg: bigint): void;
7542 handle_update_fail_malformed_htlc (their_node_id: number, msg: bigint): void;
7543 handle_commitment_signed (their_node_id: number, msg: bigint): void;
7544 handle_revoke_and_ack (their_node_id: number, msg: bigint): void;
7545 handle_update_fee (their_node_id: number, msg: bigint): void;
7546 handle_announcement_signatures (their_node_id: number, msg: bigint): void;
7547 peer_disconnected (their_node_id: number): void;
7548 peer_connected (their_node_id: number, msg: bigint, inbound: boolean): bigint;
7549 handle_channel_reestablish (their_node_id: number, msg: bigint): void;
7550 handle_channel_update (their_node_id: number, msg: bigint): void;
7551 handle_error (their_node_id: number, msg: bigint): void;
7552 provided_node_features (): bigint;
7553 provided_init_features (their_node_id: number): bigint;
7557 export function LDKChannelMessageHandler_new(impl: LDKChannelMessageHandler, MessageSendEventsProvider: number): [bigint, number] {
7558 if(!isWasmInitialized) {
7559 throw new Error("initializeWasm() must be awaited first!");
7561 var new_obj_idx = js_objs.length;
7562 for (var i = 0; i < js_objs.length; i++) {
7563 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7565 js_objs[i] = new WeakRef(impl);
7566 return [wasm.TS_LDKChannelMessageHandler_new(i, MessageSendEventsProvider), i];
7568 // void ChannelMessageHandler_handle_open_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKOpenChannel *NONNULL_PTR msg
7570 export function ChannelMessageHandler_handle_open_channel(this_arg: bigint, their_node_id: number, msg: bigint): void {
7571 if(!isWasmInitialized) {
7572 throw new Error("initializeWasm() must be awaited first!");
7574 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_open_channel(this_arg, their_node_id, msg);
7575 // debug statements here
7577 // void ChannelMessageHandler_handle_accept_channel LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAcceptChannel *NONNULL_PTR msg
7579 export function ChannelMessageHandler_handle_accept_channel(this_arg: bigint, their_node_id: number, msg: bigint): void {
7580 if(!isWasmInitialized) {
7581 throw new Error("initializeWasm() must be awaited first!");
7583 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_accept_channel(this_arg, their_node_id, msg);
7584 // debug statements here
7586 // void ChannelMessageHandler_handle_funding_created LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingCreated *NONNULL_PTR msg
7588 export function ChannelMessageHandler_handle_funding_created(this_arg: bigint, their_node_id: number, msg: bigint): void {
7589 if(!isWasmInitialized) {
7590 throw new Error("initializeWasm() must be awaited first!");
7592 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_created(this_arg, their_node_id, msg);
7593 // debug statements here
7595 // void ChannelMessageHandler_handle_funding_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKFundingSigned *NONNULL_PTR msg
7597 export function ChannelMessageHandler_handle_funding_signed(this_arg: bigint, their_node_id: number, msg: bigint): void {
7598 if(!isWasmInitialized) {
7599 throw new Error("initializeWasm() must be awaited first!");
7601 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_funding_signed(this_arg, their_node_id, msg);
7602 // debug statements here
7604 // void ChannelMessageHandler_handle_channel_ready LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReady *NONNULL_PTR msg
7606 export function ChannelMessageHandler_handle_channel_ready(this_arg: bigint, their_node_id: number, msg: bigint): void {
7607 if(!isWasmInitialized) {
7608 throw new Error("initializeWasm() must be awaited first!");
7610 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_ready(this_arg, their_node_id, msg);
7611 // debug statements here
7613 // void ChannelMessageHandler_handle_shutdown LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKShutdown *NONNULL_PTR msg
7615 export function ChannelMessageHandler_handle_shutdown(this_arg: bigint, their_node_id: number, msg: bigint): void {
7616 if(!isWasmInitialized) {
7617 throw new Error("initializeWasm() must be awaited first!");
7619 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_shutdown(this_arg, their_node_id, msg);
7620 // debug statements here
7622 // void ChannelMessageHandler_handle_closing_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKClosingSigned *NONNULL_PTR msg
7624 export function ChannelMessageHandler_handle_closing_signed(this_arg: bigint, their_node_id: number, msg: bigint): void {
7625 if(!isWasmInitialized) {
7626 throw new Error("initializeWasm() must be awaited first!");
7628 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_closing_signed(this_arg, their_node_id, msg);
7629 // debug statements here
7631 // void ChannelMessageHandler_handle_update_add_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateAddHTLC *NONNULL_PTR msg
7633 export function ChannelMessageHandler_handle_update_add_htlc(this_arg: bigint, their_node_id: number, msg: bigint): void {
7634 if(!isWasmInitialized) {
7635 throw new Error("initializeWasm() must be awaited first!");
7637 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_add_htlc(this_arg, their_node_id, msg);
7638 // debug statements here
7640 // void ChannelMessageHandler_handle_update_fulfill_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFulfillHTLC *NONNULL_PTR msg
7642 export function ChannelMessageHandler_handle_update_fulfill_htlc(this_arg: bigint, their_node_id: number, msg: bigint): void {
7643 if(!isWasmInitialized) {
7644 throw new Error("initializeWasm() must be awaited first!");
7646 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fulfill_htlc(this_arg, their_node_id, msg);
7647 // debug statements here
7649 // void ChannelMessageHandler_handle_update_fail_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailHTLC *NONNULL_PTR msg
7651 export function ChannelMessageHandler_handle_update_fail_htlc(this_arg: bigint, their_node_id: number, msg: bigint): void {
7652 if(!isWasmInitialized) {
7653 throw new Error("initializeWasm() must be awaited first!");
7655 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_htlc(this_arg, their_node_id, msg);
7656 // debug statements here
7658 // void ChannelMessageHandler_handle_update_fail_malformed_htlc LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR msg
7660 export function ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg: bigint, their_node_id: number, msg: bigint): void {
7661 if(!isWasmInitialized) {
7662 throw new Error("initializeWasm() must be awaited first!");
7664 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fail_malformed_htlc(this_arg, their_node_id, msg);
7665 // debug statements here
7667 // void ChannelMessageHandler_handle_commitment_signed LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKCommitmentSigned *NONNULL_PTR msg
7669 export function ChannelMessageHandler_handle_commitment_signed(this_arg: bigint, their_node_id: number, msg: bigint): void {
7670 if(!isWasmInitialized) {
7671 throw new Error("initializeWasm() must be awaited first!");
7673 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_commitment_signed(this_arg, their_node_id, msg);
7674 // debug statements here
7676 // void ChannelMessageHandler_handle_revoke_and_ack LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKRevokeAndACK *NONNULL_PTR msg
7678 export function ChannelMessageHandler_handle_revoke_and_ack(this_arg: bigint, their_node_id: number, msg: bigint): void {
7679 if(!isWasmInitialized) {
7680 throw new Error("initializeWasm() must be awaited first!");
7682 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_revoke_and_ack(this_arg, their_node_id, msg);
7683 // debug statements here
7685 // void ChannelMessageHandler_handle_update_fee LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKUpdateFee *NONNULL_PTR msg
7687 export function ChannelMessageHandler_handle_update_fee(this_arg: bigint, their_node_id: number, msg: bigint): void {
7688 if(!isWasmInitialized) {
7689 throw new Error("initializeWasm() must be awaited first!");
7691 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_update_fee(this_arg, their_node_id, msg);
7692 // debug statements here
7694 // void ChannelMessageHandler_handle_announcement_signatures LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKAnnouncementSignatures *NONNULL_PTR msg
7696 export function ChannelMessageHandler_handle_announcement_signatures(this_arg: bigint, their_node_id: number, msg: bigint): void {
7697 if(!isWasmInitialized) {
7698 throw new Error("initializeWasm() must be awaited first!");
7700 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_announcement_signatures(this_arg, their_node_id, msg);
7701 // debug statements here
7703 // void ChannelMessageHandler_peer_disconnected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
7705 export function ChannelMessageHandler_peer_disconnected(this_arg: bigint, their_node_id: number): void {
7706 if(!isWasmInitialized) {
7707 throw new Error("initializeWasm() must be awaited first!");
7709 const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_disconnected(this_arg, their_node_id);
7710 // debug statements here
7712 // LDKCResult_NoneNoneZ ChannelMessageHandler_peer_connected LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR msg, bool inbound
7714 export function ChannelMessageHandler_peer_connected(this_arg: bigint, their_node_id: number, msg: bigint, inbound: boolean): bigint {
7715 if(!isWasmInitialized) {
7716 throw new Error("initializeWasm() must be awaited first!");
7718 const nativeResponseValue = wasm.TS_ChannelMessageHandler_peer_connected(this_arg, their_node_id, msg, inbound);
7719 return nativeResponseValue;
7721 // void ChannelMessageHandler_handle_channel_reestablish LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelReestablish *NONNULL_PTR msg
7723 export function ChannelMessageHandler_handle_channel_reestablish(this_arg: bigint, their_node_id: number, msg: bigint): void {
7724 if(!isWasmInitialized) {
7725 throw new Error("initializeWasm() must be awaited first!");
7727 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_reestablish(this_arg, their_node_id, msg);
7728 // debug statements here
7730 // void ChannelMessageHandler_handle_channel_update LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKChannelUpdate *NONNULL_PTR msg
7732 export function ChannelMessageHandler_handle_channel_update(this_arg: bigint, their_node_id: number, msg: bigint): void {
7733 if(!isWasmInitialized) {
7734 throw new Error("initializeWasm() must be awaited first!");
7736 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_channel_update(this_arg, their_node_id, msg);
7737 // debug statements here
7739 // void ChannelMessageHandler_handle_error LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKErrorMessage *NONNULL_PTR msg
7741 export function ChannelMessageHandler_handle_error(this_arg: bigint, their_node_id: number, msg: bigint): void {
7742 if(!isWasmInitialized) {
7743 throw new Error("initializeWasm() must be awaited first!");
7745 const nativeResponseValue = wasm.TS_ChannelMessageHandler_handle_error(this_arg, their_node_id, msg);
7746 // debug statements here
7748 // LDKNodeFeatures ChannelMessageHandler_provided_node_features LDKChannelMessageHandler *NONNULL_PTR this_arg
7750 export function ChannelMessageHandler_provided_node_features(this_arg: bigint): bigint {
7751 if(!isWasmInitialized) {
7752 throw new Error("initializeWasm() must be awaited first!");
7754 const nativeResponseValue = wasm.TS_ChannelMessageHandler_provided_node_features(this_arg);
7755 return nativeResponseValue;
7757 // LDKInitFeatures ChannelMessageHandler_provided_init_features LDKChannelMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
7759 export function ChannelMessageHandler_provided_init_features(this_arg: bigint, their_node_id: number): bigint {
7760 if(!isWasmInitialized) {
7761 throw new Error("initializeWasm() must be awaited first!");
7763 const nativeResponseValue = wasm.TS_ChannelMessageHandler_provided_init_features(this_arg, their_node_id);
7764 return nativeResponseValue;
7767 export interface LDKRoutingMessageHandler {
7768 handle_node_announcement (msg: bigint): bigint;
7769 handle_channel_announcement (msg: bigint): bigint;
7770 handle_channel_update (msg: bigint): bigint;
7771 get_next_channel_announcement (starting_point: bigint): bigint;
7772 get_next_node_announcement (starting_point: bigint): bigint;
7773 peer_connected (their_node_id: number, init: bigint, inbound: boolean): bigint;
7774 handle_reply_channel_range (their_node_id: number, msg: bigint): bigint;
7775 handle_reply_short_channel_ids_end (their_node_id: number, msg: bigint): bigint;
7776 handle_query_channel_range (their_node_id: number, msg: bigint): bigint;
7777 handle_query_short_channel_ids (their_node_id: number, msg: bigint): bigint;
7778 processing_queue_high (): boolean;
7779 provided_node_features (): bigint;
7780 provided_init_features (their_node_id: number): bigint;
7784 export function LDKRoutingMessageHandler_new(impl: LDKRoutingMessageHandler, MessageSendEventsProvider: number): [bigint, number] {
7785 if(!isWasmInitialized) {
7786 throw new Error("initializeWasm() must be awaited first!");
7788 var new_obj_idx = js_objs.length;
7789 for (var i = 0; i < js_objs.length; i++) {
7790 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7792 js_objs[i] = new WeakRef(impl);
7793 return [wasm.TS_LDKRoutingMessageHandler_new(i, MessageSendEventsProvider), i];
7795 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg
7797 export function RoutingMessageHandler_handle_node_announcement(this_arg: bigint, msg: bigint): bigint {
7798 if(!isWasmInitialized) {
7799 throw new Error("initializeWasm() must be awaited first!");
7801 const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_node_announcement(this_arg, msg);
7802 return nativeResponseValue;
7804 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg
7806 export function RoutingMessageHandler_handle_channel_announcement(this_arg: bigint, msg: bigint): bigint {
7807 if(!isWasmInitialized) {
7808 throw new Error("initializeWasm() must be awaited first!");
7810 const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_announcement(this_arg, msg);
7811 return nativeResponseValue;
7813 // LDKCResult_boolLightningErrorZ RoutingMessageHandler_handle_channel_update LDKRoutingMessageHandler *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg
7815 export function RoutingMessageHandler_handle_channel_update(this_arg: bigint, msg: bigint): bigint {
7816 if(!isWasmInitialized) {
7817 throw new Error("initializeWasm() must be awaited first!");
7819 const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_channel_update(this_arg, msg);
7820 return nativeResponseValue;
7822 // LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ RoutingMessageHandler_get_next_channel_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, uint64_t starting_point
7824 export function RoutingMessageHandler_get_next_channel_announcement(this_arg: bigint, starting_point: bigint): bigint {
7825 if(!isWasmInitialized) {
7826 throw new Error("initializeWasm() must be awaited first!");
7828 const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_channel_announcement(this_arg, starting_point);
7829 return nativeResponseValue;
7831 // LDKNodeAnnouncement RoutingMessageHandler_get_next_node_announcement LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKNodeId starting_point
7833 export function RoutingMessageHandler_get_next_node_announcement(this_arg: bigint, starting_point: bigint): bigint {
7834 if(!isWasmInitialized) {
7835 throw new Error("initializeWasm() must be awaited first!");
7837 const nativeResponseValue = wasm.TS_RoutingMessageHandler_get_next_node_announcement(this_arg, starting_point);
7838 return nativeResponseValue;
7840 // LDKCResult_NoneNoneZ RoutingMessageHandler_peer_connected LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
7842 export function RoutingMessageHandler_peer_connected(this_arg: bigint, their_node_id: number, init: bigint, inbound: boolean): bigint {
7843 if(!isWasmInitialized) {
7844 throw new Error("initializeWasm() must be awaited first!");
7846 const nativeResponseValue = wasm.TS_RoutingMessageHandler_peer_connected(this_arg, their_node_id, init, inbound);
7847 return nativeResponseValue;
7849 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyChannelRange msg
7851 export function RoutingMessageHandler_handle_reply_channel_range(this_arg: bigint, their_node_id: number, msg: bigint): bigint {
7852 if(!isWasmInitialized) {
7853 throw new Error("initializeWasm() must be awaited first!");
7855 const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_channel_range(this_arg, their_node_id, msg);
7856 return nativeResponseValue;
7858 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_reply_short_channel_ids_end LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKReplyShortChannelIdsEnd msg
7860 export function RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg: bigint, their_node_id: number, msg: bigint): bigint {
7861 if(!isWasmInitialized) {
7862 throw new Error("initializeWasm() must be awaited first!");
7864 const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_reply_short_channel_ids_end(this_arg, their_node_id, msg);
7865 return nativeResponseValue;
7867 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_channel_range LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryChannelRange msg
7869 export function RoutingMessageHandler_handle_query_channel_range(this_arg: bigint, their_node_id: number, msg: bigint): bigint {
7870 if(!isWasmInitialized) {
7871 throw new Error("initializeWasm() must be awaited first!");
7873 const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_channel_range(this_arg, their_node_id, msg);
7874 return nativeResponseValue;
7876 // LDKCResult_NoneLightningErrorZ RoutingMessageHandler_handle_query_short_channel_ids LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, struct LDKQueryShortChannelIds msg
7878 export function RoutingMessageHandler_handle_query_short_channel_ids(this_arg: bigint, their_node_id: number, msg: bigint): bigint {
7879 if(!isWasmInitialized) {
7880 throw new Error("initializeWasm() must be awaited first!");
7882 const nativeResponseValue = wasm.TS_RoutingMessageHandler_handle_query_short_channel_ids(this_arg, their_node_id, msg);
7883 return nativeResponseValue;
7885 // bool RoutingMessageHandler_processing_queue_high LDKRoutingMessageHandler *NONNULL_PTR this_arg
7887 export function RoutingMessageHandler_processing_queue_high(this_arg: bigint): boolean {
7888 if(!isWasmInitialized) {
7889 throw new Error("initializeWasm() must be awaited first!");
7891 const nativeResponseValue = wasm.TS_RoutingMessageHandler_processing_queue_high(this_arg);
7892 return nativeResponseValue;
7894 // LDKNodeFeatures RoutingMessageHandler_provided_node_features LDKRoutingMessageHandler *NONNULL_PTR this_arg
7896 export function RoutingMessageHandler_provided_node_features(this_arg: bigint): bigint {
7897 if(!isWasmInitialized) {
7898 throw new Error("initializeWasm() must be awaited first!");
7900 const nativeResponseValue = wasm.TS_RoutingMessageHandler_provided_node_features(this_arg);
7901 return nativeResponseValue;
7903 // LDKInitFeatures RoutingMessageHandler_provided_init_features LDKRoutingMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
7905 export function RoutingMessageHandler_provided_init_features(this_arg: bigint, their_node_id: number): bigint {
7906 if(!isWasmInitialized) {
7907 throw new Error("initializeWasm() must be awaited first!");
7909 const nativeResponseValue = wasm.TS_RoutingMessageHandler_provided_init_features(this_arg, their_node_id);
7910 return nativeResponseValue;
7913 export interface LDKOnionMessageProvider {
7914 next_onion_message_for_peer (peer_node_id: number): bigint;
7918 export function LDKOnionMessageProvider_new(impl: LDKOnionMessageProvider): [bigint, number] {
7919 if(!isWasmInitialized) {
7920 throw new Error("initializeWasm() must be awaited first!");
7922 var new_obj_idx = js_objs.length;
7923 for (var i = 0; i < js_objs.length; i++) {
7924 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7926 js_objs[i] = new WeakRef(impl);
7927 return [wasm.TS_LDKOnionMessageProvider_new(i), i];
7929 // LDKOnionMessage OnionMessageProvider_next_onion_message_for_peer LDKOnionMessageProvider *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id
7931 export function OnionMessageProvider_next_onion_message_for_peer(this_arg: bigint, peer_node_id: number): bigint {
7932 if(!isWasmInitialized) {
7933 throw new Error("initializeWasm() must be awaited first!");
7935 const nativeResponseValue = wasm.TS_OnionMessageProvider_next_onion_message_for_peer(this_arg, peer_node_id);
7936 return nativeResponseValue;
7939 export interface LDKOnionMessageHandler {
7940 handle_onion_message (peer_node_id: number, msg: bigint): void;
7941 peer_connected (their_node_id: number, init: bigint, inbound: boolean): bigint;
7942 peer_disconnected (their_node_id: number): void;
7943 provided_node_features (): bigint;
7944 provided_init_features (their_node_id: number): bigint;
7948 export function LDKOnionMessageHandler_new(impl: LDKOnionMessageHandler, OnionMessageProvider: number): [bigint, number] {
7949 if(!isWasmInitialized) {
7950 throw new Error("initializeWasm() must be awaited first!");
7952 var new_obj_idx = js_objs.length;
7953 for (var i = 0; i < js_objs.length; i++) {
7954 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
7956 js_objs[i] = new WeakRef(impl);
7957 return [wasm.TS_LDKOnionMessageHandler_new(i, OnionMessageProvider), i];
7959 // void OnionMessageHandler_handle_onion_message LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey peer_node_id, const struct LDKOnionMessage *NONNULL_PTR msg
7961 export function OnionMessageHandler_handle_onion_message(this_arg: bigint, peer_node_id: number, msg: bigint): void {
7962 if(!isWasmInitialized) {
7963 throw new Error("initializeWasm() must be awaited first!");
7965 const nativeResponseValue = wasm.TS_OnionMessageHandler_handle_onion_message(this_arg, peer_node_id, msg);
7966 // debug statements here
7968 // LDKCResult_NoneNoneZ OnionMessageHandler_peer_connected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id, const struct LDKInit *NONNULL_PTR init, bool inbound
7970 export function OnionMessageHandler_peer_connected(this_arg: bigint, their_node_id: number, init: bigint, inbound: boolean): bigint {
7971 if(!isWasmInitialized) {
7972 throw new Error("initializeWasm() must be awaited first!");
7974 const nativeResponseValue = wasm.TS_OnionMessageHandler_peer_connected(this_arg, their_node_id, init, inbound);
7975 return nativeResponseValue;
7977 // void OnionMessageHandler_peer_disconnected LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
7979 export function OnionMessageHandler_peer_disconnected(this_arg: bigint, their_node_id: number): void {
7980 if(!isWasmInitialized) {
7981 throw new Error("initializeWasm() must be awaited first!");
7983 const nativeResponseValue = wasm.TS_OnionMessageHandler_peer_disconnected(this_arg, their_node_id);
7984 // debug statements here
7986 // LDKNodeFeatures OnionMessageHandler_provided_node_features LDKOnionMessageHandler *NONNULL_PTR this_arg
7988 export function OnionMessageHandler_provided_node_features(this_arg: bigint): bigint {
7989 if(!isWasmInitialized) {
7990 throw new Error("initializeWasm() must be awaited first!");
7992 const nativeResponseValue = wasm.TS_OnionMessageHandler_provided_node_features(this_arg);
7993 return nativeResponseValue;
7995 // LDKInitFeatures OnionMessageHandler_provided_init_features LDKOnionMessageHandler *NONNULL_PTR this_arg, struct LDKPublicKey their_node_id
7997 export function OnionMessageHandler_provided_init_features(this_arg: bigint, their_node_id: number): bigint {
7998 if(!isWasmInitialized) {
7999 throw new Error("initializeWasm() must be awaited first!");
8001 const nativeResponseValue = wasm.TS_OnionMessageHandler_provided_init_features(this_arg, their_node_id);
8002 return nativeResponseValue;
8005 export interface LDKCustomMessageReader {
8006 read (message_type: number, buffer: number): bigint;
8010 export function LDKCustomMessageReader_new(impl: LDKCustomMessageReader): [bigint, number] {
8011 if(!isWasmInitialized) {
8012 throw new Error("initializeWasm() must be awaited first!");
8014 var new_obj_idx = js_objs.length;
8015 for (var i = 0; i < js_objs.length; i++) {
8016 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
8018 js_objs[i] = new WeakRef(impl);
8019 return [wasm.TS_LDKCustomMessageReader_new(i), i];
8021 // LDKCResult_COption_TypeZDecodeErrorZ CustomMessageReader_read LDKCustomMessageReader *NONNULL_PTR this_arg, uint16_t message_type, struct LDKu8slice buffer
8023 export function CustomMessageReader_read(this_arg: bigint, message_type: number, buffer: number): bigint {
8024 if(!isWasmInitialized) {
8025 throw new Error("initializeWasm() must be awaited first!");
8027 const nativeResponseValue = wasm.TS_CustomMessageReader_read(this_arg, message_type, buffer);
8028 return nativeResponseValue;
8031 export interface LDKCustomMessageHandler {
8032 handle_custom_message (msg: bigint, sender_node_id: number): bigint;
8033 get_and_clear_pending_msg (): number;
8037 export function LDKCustomMessageHandler_new(impl: LDKCustomMessageHandler, CustomMessageReader: number): [bigint, number] {
8038 if(!isWasmInitialized) {
8039 throw new Error("initializeWasm() must be awaited first!");
8041 var new_obj_idx = js_objs.length;
8042 for (var i = 0; i < js_objs.length; i++) {
8043 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
8045 js_objs[i] = new WeakRef(impl);
8046 return [wasm.TS_LDKCustomMessageHandler_new(i, CustomMessageReader), i];
8048 // LDKCResult_NoneLightningErrorZ CustomMessageHandler_handle_custom_message LDKCustomMessageHandler *NONNULL_PTR this_arg, struct LDKType msg, struct LDKPublicKey sender_node_id
8050 export function CustomMessageHandler_handle_custom_message(this_arg: bigint, msg: bigint, sender_node_id: number): bigint {
8051 if(!isWasmInitialized) {
8052 throw new Error("initializeWasm() must be awaited first!");
8054 const nativeResponseValue = wasm.TS_CustomMessageHandler_handle_custom_message(this_arg, msg, sender_node_id);
8055 return nativeResponseValue;
8057 // LDKCVec_C2Tuple_PublicKeyTypeZZ CustomMessageHandler_get_and_clear_pending_msg LDKCustomMessageHandler *NONNULL_PTR this_arg
8059 export function CustomMessageHandler_get_and_clear_pending_msg(this_arg: bigint): number {
8060 if(!isWasmInitialized) {
8061 throw new Error("initializeWasm() must be awaited first!");
8063 const nativeResponseValue = wasm.TS_CustomMessageHandler_get_and_clear_pending_msg(this_arg);
8064 return nativeResponseValue;
8067 export interface LDKCustomOnionMessageHandler {
8068 handle_custom_message (msg: bigint): void;
8069 read_custom_message (message_type: bigint, buffer: number): bigint;
8073 export function LDKCustomOnionMessageHandler_new(impl: LDKCustomOnionMessageHandler): [bigint, number] {
8074 if(!isWasmInitialized) {
8075 throw new Error("initializeWasm() must be awaited first!");
8077 var new_obj_idx = js_objs.length;
8078 for (var i = 0; i < js_objs.length; i++) {
8079 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
8081 js_objs[i] = new WeakRef(impl);
8082 return [wasm.TS_LDKCustomOnionMessageHandler_new(i), i];
8084 // void CustomOnionMessageHandler_handle_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, struct LDKCustomOnionMessageContents msg
8086 export function CustomOnionMessageHandler_handle_custom_message(this_arg: bigint, msg: bigint): void {
8087 if(!isWasmInitialized) {
8088 throw new Error("initializeWasm() must be awaited first!");
8090 const nativeResponseValue = wasm.TS_CustomOnionMessageHandler_handle_custom_message(this_arg, msg);
8091 // debug statements here
8093 // LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CustomOnionMessageHandler_read_custom_message LDKCustomOnionMessageHandler *NONNULL_PTR this_arg, uint64_t message_type, struct LDKu8slice buffer
8095 export function CustomOnionMessageHandler_read_custom_message(this_arg: bigint, message_type: bigint, buffer: number): bigint {
8096 if(!isWasmInitialized) {
8097 throw new Error("initializeWasm() must be awaited first!");
8099 const nativeResponseValue = wasm.TS_CustomOnionMessageHandler_read_custom_message(this_arg, message_type, buffer);
8100 return nativeResponseValue;
8103 export interface LDKSocketDescriptor {
8104 send_data (data: number, resume_read: boolean): number;
8105 disconnect_socket (): void;
8106 eq (other_arg: bigint): boolean;
8111 export function LDKSocketDescriptor_new(impl: LDKSocketDescriptor): [bigint, number] {
8112 if(!isWasmInitialized) {
8113 throw new Error("initializeWasm() must be awaited first!");
8115 var new_obj_idx = js_objs.length;
8116 for (var i = 0; i < js_objs.length; i++) {
8117 if (js_objs[i] == null || js_objs[i] == undefined) { new_obj_idx = i; break; }
8119 js_objs[i] = new WeakRef(impl);
8120 return [wasm.TS_LDKSocketDescriptor_new(i), i];
8122 // uintptr_t SocketDescriptor_send_data LDKSocketDescriptor *NONNULL_PTR this_arg, struct LDKu8slice data, bool resume_read
8124 export function SocketDescriptor_send_data(this_arg: bigint, data: number, resume_read: boolean): number {
8125 if(!isWasmInitialized) {
8126 throw new Error("initializeWasm() must be awaited first!");
8128 const nativeResponseValue = wasm.TS_SocketDescriptor_send_data(this_arg, data, resume_read);
8129 return nativeResponseValue;
8131 // void SocketDescriptor_disconnect_socket LDKSocketDescriptor *NONNULL_PTR this_arg
8133 export function SocketDescriptor_disconnect_socket(this_arg: bigint): void {
8134 if(!isWasmInitialized) {
8135 throw new Error("initializeWasm() must be awaited first!");
8137 const nativeResponseValue = wasm.TS_SocketDescriptor_disconnect_socket(this_arg);
8138 // debug statements here
8140 // uint64_t SocketDescriptor_hash LDKSocketDescriptor *NONNULL_PTR this_arg
8142 export function SocketDescriptor_hash(this_arg: bigint): bigint {
8143 if(!isWasmInitialized) {
8144 throw new Error("initializeWasm() must be awaited first!");
8146 const nativeResponseValue = wasm.TS_SocketDescriptor_hash(this_arg);
8147 return nativeResponseValue;
8150 export class LDKEffectiveCapacity {
8151 protected constructor() {}
8154 export function LDKEffectiveCapacity_ty_from_ptr(ptr: bigint): number {
8155 if(!isWasmInitialized) {
8156 throw new Error("initializeWasm() must be awaited first!");
8158 const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ty_from_ptr(ptr);
8159 return nativeResponseValue;
8162 export function LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr: bigint): bigint {
8163 if(!isWasmInitialized) {
8164 throw new Error("initializeWasm() must be awaited first!");
8166 const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_ExactLiquidity_get_liquidity_msat(ptr);
8167 return nativeResponseValue;
8170 export function LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr: bigint): bigint {
8171 if(!isWasmInitialized) {
8172 throw new Error("initializeWasm() must be awaited first!");
8174 const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_MaximumHTLC_get_amount_msat(ptr);
8175 return nativeResponseValue;
8178 export function LDKEffectiveCapacity_Total_get_capacity_msat(ptr: bigint): bigint {
8179 if(!isWasmInitialized) {
8180 throw new Error("initializeWasm() must be awaited first!");
8182 const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_Total_get_capacity_msat(ptr);
8183 return nativeResponseValue;
8186 export function LDKEffectiveCapacity_Total_get_htlc_maximum_msat(ptr: bigint): bigint {
8187 if(!isWasmInitialized) {
8188 throw new Error("initializeWasm() must be awaited first!");
8190 const nativeResponseValue = wasm.TS_LDKEffectiveCapacity_Total_get_htlc_maximum_msat(ptr);
8191 return nativeResponseValue;
8194 export class LDKHints {
8195 protected constructor() {}
8198 export function LDKHints_ty_from_ptr(ptr: bigint): number {
8199 if(!isWasmInitialized) {
8200 throw new Error("initializeWasm() must be awaited first!");
8202 const nativeResponseValue = wasm.TS_LDKHints_ty_from_ptr(ptr);
8203 return nativeResponseValue;
8206 export function LDKHints_Blinded_get_blinded(ptr: bigint): number {
8207 if(!isWasmInitialized) {
8208 throw new Error("initializeWasm() must be awaited first!");
8210 const nativeResponseValue = wasm.TS_LDKHints_Blinded_get_blinded(ptr);
8211 return nativeResponseValue;
8214 export function LDKHints_Clear_get_clear(ptr: bigint): number {
8215 if(!isWasmInitialized) {
8216 throw new Error("initializeWasm() must be awaited first!");
8218 const nativeResponseValue = wasm.TS_LDKHints_Clear_get_clear(ptr);
8219 return nativeResponseValue;
8222 export class LDKDestination {
8223 protected constructor() {}
8226 export function LDKDestination_ty_from_ptr(ptr: bigint): number {
8227 if(!isWasmInitialized) {
8228 throw new Error("initializeWasm() must be awaited first!");
8230 const nativeResponseValue = wasm.TS_LDKDestination_ty_from_ptr(ptr);
8231 return nativeResponseValue;
8234 export function LDKDestination_Node_get_node(ptr: bigint): number {
8235 if(!isWasmInitialized) {
8236 throw new Error("initializeWasm() must be awaited first!");
8238 const nativeResponseValue = wasm.TS_LDKDestination_Node_get_node(ptr);
8239 return nativeResponseValue;
8242 export function LDKDestination_BlindedPath_get_blinded_path(ptr: bigint): bigint {
8243 if(!isWasmInitialized) {
8244 throw new Error("initializeWasm() must be awaited first!");
8246 const nativeResponseValue = wasm.TS_LDKDestination_BlindedPath_get_blinded_path(ptr);
8247 return nativeResponseValue;
8250 export class LDKOnionMessageContents {
8251 protected constructor() {}
8254 export function LDKOnionMessageContents_ty_from_ptr(ptr: bigint): number {
8255 if(!isWasmInitialized) {
8256 throw new Error("initializeWasm() must be awaited first!");
8258 const nativeResponseValue = wasm.TS_LDKOnionMessageContents_ty_from_ptr(ptr);
8259 return nativeResponseValue;
8262 export function LDKOnionMessageContents_Custom_get_custom(ptr: bigint): bigint {
8263 if(!isWasmInitialized) {
8264 throw new Error("initializeWasm() must be awaited first!");
8266 const nativeResponseValue = wasm.TS_LDKOnionMessageContents_Custom_get_custom(ptr);
8267 return nativeResponseValue;
8270 export class LDKGossipSync {
8271 protected constructor() {}
8274 export function LDKGossipSync_ty_from_ptr(ptr: bigint): number {
8275 if(!isWasmInitialized) {
8276 throw new Error("initializeWasm() must be awaited first!");
8278 const nativeResponseValue = wasm.TS_LDKGossipSync_ty_from_ptr(ptr);
8279 return nativeResponseValue;
8282 export function LDKGossipSync_P2P_get_p2p(ptr: bigint): bigint {
8283 if(!isWasmInitialized) {
8284 throw new Error("initializeWasm() must be awaited first!");
8286 const nativeResponseValue = wasm.TS_LDKGossipSync_P2P_get_p2p(ptr);
8287 return nativeResponseValue;
8290 export function LDKGossipSync_Rapid_get_rapid(ptr: bigint): bigint {
8291 if(!isWasmInitialized) {
8292 throw new Error("initializeWasm() must be awaited first!");
8294 const nativeResponseValue = wasm.TS_LDKGossipSync_Rapid_get_rapid(ptr);
8295 return nativeResponseValue;
8298 export class LDKFallback {
8299 protected constructor() {}
8302 export function LDKFallback_ty_from_ptr(ptr: bigint): number {
8303 if(!isWasmInitialized) {
8304 throw new Error("initializeWasm() must be awaited first!");
8306 const nativeResponseValue = wasm.TS_LDKFallback_ty_from_ptr(ptr);
8307 return nativeResponseValue;
8310 export function LDKFallback_SegWitProgram_get_version(ptr: bigint): number {
8311 if(!isWasmInitialized) {
8312 throw new Error("initializeWasm() must be awaited first!");
8314 const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_version(ptr);
8315 return nativeResponseValue;
8318 export function LDKFallback_SegWitProgram_get_program(ptr: bigint): number {
8319 if(!isWasmInitialized) {
8320 throw new Error("initializeWasm() must be awaited first!");
8322 const nativeResponseValue = wasm.TS_LDKFallback_SegWitProgram_get_program(ptr);
8323 return nativeResponseValue;
8326 export function LDKFallback_PubKeyHash_get_pub_key_hash(ptr: bigint): number {
8327 if(!isWasmInitialized) {
8328 throw new Error("initializeWasm() must be awaited first!");
8330 const nativeResponseValue = wasm.TS_LDKFallback_PubKeyHash_get_pub_key_hash(ptr);
8331 return nativeResponseValue;
8334 export function LDKFallback_ScriptHash_get_script_hash(ptr: bigint): number {
8335 if(!isWasmInitialized) {
8336 throw new Error("initializeWasm() must be awaited first!");
8338 const nativeResponseValue = wasm.TS_LDKFallback_ScriptHash_get_script_hash(ptr);
8339 return nativeResponseValue;
8341 // struct LDKStr _ldk_get_compiled_version(void);
8343 export function _ldk_get_compiled_version(): number {
8344 if(!isWasmInitialized) {
8345 throw new Error("initializeWasm() must be awaited first!");
8347 const nativeResponseValue = wasm.TS__ldk_get_compiled_version();
8348 return nativeResponseValue;
8350 // struct LDKStr _ldk_c_bindings_get_compiled_version(void);
8352 export function _ldk_c_bindings_get_compiled_version(): number {
8353 if(!isWasmInitialized) {
8354 throw new Error("initializeWasm() must be awaited first!");
8356 const nativeResponseValue = wasm.TS__ldk_c_bindings_get_compiled_version();
8357 return nativeResponseValue;
8359 // struct LDKSixteenBytes U128_le_bytes(struct LDKU128 val);
8361 export function U128_le_bytes(val: number): number {
8362 if(!isWasmInitialized) {
8363 throw new Error("initializeWasm() must be awaited first!");
8365 const nativeResponseValue = wasm.TS_U128_le_bytes(val);
8366 return nativeResponseValue;
8368 // struct LDKU128 U128_new(struct LDKSixteenBytes le_bytes);
8370 export function U128_new(le_bytes: number): number {
8371 if(!isWasmInitialized) {
8372 throw new Error("initializeWasm() must be awaited first!");
8374 const nativeResponseValue = wasm.TS_U128_new(le_bytes);
8375 return nativeResponseValue;
8377 // struct LDKBigEndianScalar BigEndianScalar_new(struct LDKThirtyTwoBytes big_endian_bytes);
8379 export function BigEndianScalar_new(big_endian_bytes: number): bigint {
8380 if(!isWasmInitialized) {
8381 throw new Error("initializeWasm() must be awaited first!");
8383 const nativeResponseValue = wasm.TS_BigEndianScalar_new(big_endian_bytes);
8384 return nativeResponseValue;
8386 // uint64_t Bech32Error_clone_ptr(LDKBech32Error *NONNULL_PTR arg);
8388 export function Bech32Error_clone_ptr(arg: bigint): bigint {
8389 if(!isWasmInitialized) {
8390 throw new Error("initializeWasm() must be awaited first!");
8392 const nativeResponseValue = wasm.TS_Bech32Error_clone_ptr(arg);
8393 return nativeResponseValue;
8395 // struct LDKBech32Error Bech32Error_clone(const struct LDKBech32Error *NONNULL_PTR orig);
8397 export function Bech32Error_clone(orig: bigint): bigint {
8398 if(!isWasmInitialized) {
8399 throw new Error("initializeWasm() must be awaited first!");
8401 const nativeResponseValue = wasm.TS_Bech32Error_clone(orig);
8402 return nativeResponseValue;
8404 // void Bech32Error_free(struct LDKBech32Error o);
8406 export function Bech32Error_free(o: bigint): void {
8407 if(!isWasmInitialized) {
8408 throw new Error("initializeWasm() must be awaited first!");
8410 const nativeResponseValue = wasm.TS_Bech32Error_free(o);
8411 // debug statements here
8413 // void Transaction_free(struct LDKTransaction _res);
8415 export function Transaction_free(_res: number): void {
8416 if(!isWasmInitialized) {
8417 throw new Error("initializeWasm() must be awaited first!");
8419 const nativeResponseValue = wasm.TS_Transaction_free(_res);
8420 // debug statements here
8422 // void Witness_free(struct LDKWitness _res);
8424 export function Witness_free(_res: number): void {
8425 if(!isWasmInitialized) {
8426 throw new Error("initializeWasm() must be awaited first!");
8428 const nativeResponseValue = wasm.TS_Witness_free(_res);
8429 // debug statements here
8431 // struct LDKTxOut TxOut_new(struct LDKCVec_u8Z script_pubkey, uint64_t value);
8433 export function TxOut_new(script_pubkey: number, value: bigint): bigint {
8434 if(!isWasmInitialized) {
8435 throw new Error("initializeWasm() must be awaited first!");
8437 const nativeResponseValue = wasm.TS_TxOut_new(script_pubkey, value);
8438 return nativeResponseValue;
8440 // void TxOut_free(struct LDKTxOut _res);
8442 export function TxOut_free(_res: bigint): void {
8443 if(!isWasmInitialized) {
8444 throw new Error("initializeWasm() must be awaited first!");
8446 const nativeResponseValue = wasm.TS_TxOut_free(_res);
8447 // debug statements here
8449 // uint64_t TxOut_clone_ptr(LDKTxOut *NONNULL_PTR arg);
8451 export function TxOut_clone_ptr(arg: bigint): bigint {
8452 if(!isWasmInitialized) {
8453 throw new Error("initializeWasm() must be awaited first!");
8455 const nativeResponseValue = wasm.TS_TxOut_clone_ptr(arg);
8456 return nativeResponseValue;
8458 // struct LDKTxOut TxOut_clone(const struct LDKTxOut *NONNULL_PTR orig);
8460 export function TxOut_clone(orig: bigint): bigint {
8461 if(!isWasmInitialized) {
8462 throw new Error("initializeWasm() must be awaited first!");
8464 const nativeResponseValue = wasm.TS_TxOut_clone(orig);
8465 return nativeResponseValue;
8467 // void Str_free(struct LDKStr _res);
8469 export function Str_free(_res: number): void {
8470 if(!isWasmInitialized) {
8471 throw new Error("initializeWasm() must be awaited first!");
8473 const nativeResponseValue = wasm.TS_Str_free(_res);
8474 // debug statements here
8476 // struct LDKCOption_DurationZ COption_DurationZ_some(uint64_t o);
8478 export function COption_DurationZ_some(o: bigint): bigint {
8479 if(!isWasmInitialized) {
8480 throw new Error("initializeWasm() must be awaited first!");
8482 const nativeResponseValue = wasm.TS_COption_DurationZ_some(o);
8483 return nativeResponseValue;
8485 // struct LDKCOption_DurationZ COption_DurationZ_none(void);
8487 export function COption_DurationZ_none(): bigint {
8488 if(!isWasmInitialized) {
8489 throw new Error("initializeWasm() must be awaited first!");
8491 const nativeResponseValue = wasm.TS_COption_DurationZ_none();
8492 return nativeResponseValue;
8494 // void COption_DurationZ_free(struct LDKCOption_DurationZ _res);
8496 export function COption_DurationZ_free(_res: bigint): void {
8497 if(!isWasmInitialized) {
8498 throw new Error("initializeWasm() must be awaited first!");
8500 const nativeResponseValue = wasm.TS_COption_DurationZ_free(_res);
8501 // debug statements here
8503 // uint64_t COption_DurationZ_clone_ptr(LDKCOption_DurationZ *NONNULL_PTR arg);
8505 export function COption_DurationZ_clone_ptr(arg: bigint): bigint {
8506 if(!isWasmInitialized) {
8507 throw new Error("initializeWasm() must be awaited first!");
8509 const nativeResponseValue = wasm.TS_COption_DurationZ_clone_ptr(arg);
8510 return nativeResponseValue;
8512 // struct LDKCOption_DurationZ COption_DurationZ_clone(const struct LDKCOption_DurationZ *NONNULL_PTR orig);
8514 export function COption_DurationZ_clone(orig: bigint): bigint {
8515 if(!isWasmInitialized) {
8516 throw new Error("initializeWasm() must be awaited first!");
8518 const nativeResponseValue = wasm.TS_COption_DurationZ_clone(orig);
8519 return nativeResponseValue;
8521 // void CVec_BlindedPathZ_free(struct LDKCVec_BlindedPathZ _res);
8523 export function CVec_BlindedPathZ_free(_res: number): void {
8524 if(!isWasmInitialized) {
8525 throw new Error("initializeWasm() must be awaited first!");
8527 const nativeResponseValue = wasm.TS_CVec_BlindedPathZ_free(_res);
8528 // debug statements here
8530 // struct LDKCOption_u64Z COption_u64Z_some(uint64_t o);
8532 export function COption_u64Z_some(o: bigint): bigint {
8533 if(!isWasmInitialized) {
8534 throw new Error("initializeWasm() must be awaited first!");
8536 const nativeResponseValue = wasm.TS_COption_u64Z_some(o);
8537 return nativeResponseValue;
8539 // struct LDKCOption_u64Z COption_u64Z_none(void);
8541 export function COption_u64Z_none(): bigint {
8542 if(!isWasmInitialized) {
8543 throw new Error("initializeWasm() must be awaited first!");
8545 const nativeResponseValue = wasm.TS_COption_u64Z_none();
8546 return nativeResponseValue;
8548 // void COption_u64Z_free(struct LDKCOption_u64Z _res);
8550 export function COption_u64Z_free(_res: bigint): void {
8551 if(!isWasmInitialized) {
8552 throw new Error("initializeWasm() must be awaited first!");
8554 const nativeResponseValue = wasm.TS_COption_u64Z_free(_res);
8555 // debug statements here
8557 // uint64_t COption_u64Z_clone_ptr(LDKCOption_u64Z *NONNULL_PTR arg);
8559 export function COption_u64Z_clone_ptr(arg: bigint): bigint {
8560 if(!isWasmInitialized) {
8561 throw new Error("initializeWasm() must be awaited first!");
8563 const nativeResponseValue = wasm.TS_COption_u64Z_clone_ptr(arg);
8564 return nativeResponseValue;
8566 // struct LDKCOption_u64Z COption_u64Z_clone(const struct LDKCOption_u64Z *NONNULL_PTR orig);
8568 export function COption_u64Z_clone(orig: bigint): bigint {
8569 if(!isWasmInitialized) {
8570 throw new Error("initializeWasm() must be awaited first!");
8572 const nativeResponseValue = wasm.TS_COption_u64Z_clone(orig);
8573 return nativeResponseValue;
8575 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_ok(void);
8577 export function CResult_NoneAPIErrorZ_ok(): bigint {
8578 if(!isWasmInitialized) {
8579 throw new Error("initializeWasm() must be awaited first!");
8581 const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_ok();
8582 return nativeResponseValue;
8584 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_err(struct LDKAPIError e);
8586 export function CResult_NoneAPIErrorZ_err(e: bigint): bigint {
8587 if(!isWasmInitialized) {
8588 throw new Error("initializeWasm() must be awaited first!");
8590 const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_err(e);
8591 return nativeResponseValue;
8593 // bool CResult_NoneAPIErrorZ_is_ok(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR o);
8595 export function CResult_NoneAPIErrorZ_is_ok(o: bigint): boolean {
8596 if(!isWasmInitialized) {
8597 throw new Error("initializeWasm() must be awaited first!");
8599 const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_is_ok(o);
8600 return nativeResponseValue;
8602 // void CResult_NoneAPIErrorZ_free(struct LDKCResult_NoneAPIErrorZ _res);
8604 export function CResult_NoneAPIErrorZ_free(_res: bigint): void {
8605 if(!isWasmInitialized) {
8606 throw new Error("initializeWasm() must be awaited first!");
8608 const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_free(_res);
8609 // debug statements here
8611 // uint64_t CResult_NoneAPIErrorZ_clone_ptr(LDKCResult_NoneAPIErrorZ *NONNULL_PTR arg);
8613 export function CResult_NoneAPIErrorZ_clone_ptr(arg: bigint): bigint {
8614 if(!isWasmInitialized) {
8615 throw new Error("initializeWasm() must be awaited first!");
8617 const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone_ptr(arg);
8618 return nativeResponseValue;
8620 // struct LDKCResult_NoneAPIErrorZ CResult_NoneAPIErrorZ_clone(const struct LDKCResult_NoneAPIErrorZ *NONNULL_PTR orig);
8622 export function CResult_NoneAPIErrorZ_clone(orig: bigint): bigint {
8623 if(!isWasmInitialized) {
8624 throw new Error("initializeWasm() must be awaited first!");
8626 const nativeResponseValue = wasm.TS_CResult_NoneAPIErrorZ_clone(orig);
8627 return nativeResponseValue;
8629 // void CVec_CResult_NoneAPIErrorZZ_free(struct LDKCVec_CResult_NoneAPIErrorZZ _res);
8631 export function CVec_CResult_NoneAPIErrorZZ_free(_res: number): void {
8632 if(!isWasmInitialized) {
8633 throw new Error("initializeWasm() must be awaited first!");
8635 const nativeResponseValue = wasm.TS_CVec_CResult_NoneAPIErrorZZ_free(_res);
8636 // debug statements here
8638 // void CVec_APIErrorZ_free(struct LDKCVec_APIErrorZ _res);
8640 export function CVec_APIErrorZ_free(_res: number): void {
8641 if(!isWasmInitialized) {
8642 throw new Error("initializeWasm() must be awaited first!");
8644 const nativeResponseValue = wasm.TS_CVec_APIErrorZ_free(_res);
8645 // debug statements here
8647 // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
8649 export function CVec_u8Z_free(_res: number): void {
8650 if(!isWasmInitialized) {
8651 throw new Error("initializeWasm() must be awaited first!");
8653 const nativeResponseValue = wasm.TS_CVec_u8Z_free(_res);
8654 // debug statements here
8656 // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_some(struct LDKCVec_u8Z o);
8658 export function COption_CVec_u8ZZ_some(o: number): bigint {
8659 if(!isWasmInitialized) {
8660 throw new Error("initializeWasm() must be awaited first!");
8662 const nativeResponseValue = wasm.TS_COption_CVec_u8ZZ_some(o);
8663 return nativeResponseValue;
8665 // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_none(void);
8667 export function COption_CVec_u8ZZ_none(): bigint {
8668 if(!isWasmInitialized) {
8669 throw new Error("initializeWasm() must be awaited first!");
8671 const nativeResponseValue = wasm.TS_COption_CVec_u8ZZ_none();
8672 return nativeResponseValue;
8674 // void COption_CVec_u8ZZ_free(struct LDKCOption_CVec_u8ZZ _res);
8676 export function COption_CVec_u8ZZ_free(_res: bigint): void {
8677 if(!isWasmInitialized) {
8678 throw new Error("initializeWasm() must be awaited first!");
8680 const nativeResponseValue = wasm.TS_COption_CVec_u8ZZ_free(_res);
8681 // debug statements here
8683 // uint64_t COption_CVec_u8ZZ_clone_ptr(LDKCOption_CVec_u8ZZ *NONNULL_PTR arg);
8685 export function COption_CVec_u8ZZ_clone_ptr(arg: bigint): bigint {
8686 if(!isWasmInitialized) {
8687 throw new Error("initializeWasm() must be awaited first!");
8689 const nativeResponseValue = wasm.TS_COption_CVec_u8ZZ_clone_ptr(arg);
8690 return nativeResponseValue;
8692 // struct LDKCOption_CVec_u8ZZ COption_CVec_u8ZZ_clone(const struct LDKCOption_CVec_u8ZZ *NONNULL_PTR orig);
8694 export function COption_CVec_u8ZZ_clone(orig: bigint): bigint {
8695 if(!isWasmInitialized) {
8696 throw new Error("initializeWasm() must be awaited first!");
8698 const nativeResponseValue = wasm.TS_COption_CVec_u8ZZ_clone(orig);
8699 return nativeResponseValue;
8701 // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_ok(struct LDKRecipientOnionFields o);
8703 export function CResult_RecipientOnionFieldsDecodeErrorZ_ok(o: bigint): bigint {
8704 if(!isWasmInitialized) {
8705 throw new Error("initializeWasm() must be awaited first!");
8707 const nativeResponseValue = wasm.TS_CResult_RecipientOnionFieldsDecodeErrorZ_ok(o);
8708 return nativeResponseValue;
8710 // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_err(struct LDKDecodeError e);
8712 export function CResult_RecipientOnionFieldsDecodeErrorZ_err(e: bigint): bigint {
8713 if(!isWasmInitialized) {
8714 throw new Error("initializeWasm() must be awaited first!");
8716 const nativeResponseValue = wasm.TS_CResult_RecipientOnionFieldsDecodeErrorZ_err(e);
8717 return nativeResponseValue;
8719 // bool CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR o);
8721 export function CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(o: bigint): boolean {
8722 if(!isWasmInitialized) {
8723 throw new Error("initializeWasm() must be awaited first!");
8725 const nativeResponseValue = wasm.TS_CResult_RecipientOnionFieldsDecodeErrorZ_is_ok(o);
8726 return nativeResponseValue;
8728 // void CResult_RecipientOnionFieldsDecodeErrorZ_free(struct LDKCResult_RecipientOnionFieldsDecodeErrorZ _res);
8730 export function CResult_RecipientOnionFieldsDecodeErrorZ_free(_res: bigint): void {
8731 if(!isWasmInitialized) {
8732 throw new Error("initializeWasm() must be awaited first!");
8734 const nativeResponseValue = wasm.TS_CResult_RecipientOnionFieldsDecodeErrorZ_free(_res);
8735 // debug statements here
8737 // uint64_t CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR arg);
8739 export function CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8740 if(!isWasmInitialized) {
8741 throw new Error("initializeWasm() must be awaited first!");
8743 const nativeResponseValue = wasm.TS_CResult_RecipientOnionFieldsDecodeErrorZ_clone_ptr(arg);
8744 return nativeResponseValue;
8746 // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ CResult_RecipientOnionFieldsDecodeErrorZ_clone(const struct LDKCResult_RecipientOnionFieldsDecodeErrorZ *NONNULL_PTR orig);
8748 export function CResult_RecipientOnionFieldsDecodeErrorZ_clone(orig: bigint): bigint {
8749 if(!isWasmInitialized) {
8750 throw new Error("initializeWasm() must be awaited first!");
8752 const nativeResponseValue = wasm.TS_CResult_RecipientOnionFieldsDecodeErrorZ_clone(orig);
8753 return nativeResponseValue;
8755 // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_some(enum LDKHTLCClaim o);
8757 export function COption_HTLCClaimZ_some(o: HTLCClaim): bigint {
8758 if(!isWasmInitialized) {
8759 throw new Error("initializeWasm() must be awaited first!");
8761 const nativeResponseValue = wasm.TS_COption_HTLCClaimZ_some(o);
8762 return nativeResponseValue;
8764 // struct LDKCOption_HTLCClaimZ COption_HTLCClaimZ_none(void);
8766 export function COption_HTLCClaimZ_none(): bigint {
8767 if(!isWasmInitialized) {
8768 throw new Error("initializeWasm() must be awaited first!");
8770 const nativeResponseValue = wasm.TS_COption_HTLCClaimZ_none();
8771 return nativeResponseValue;
8773 // void COption_HTLCClaimZ_free(struct LDKCOption_HTLCClaimZ _res);
8775 export function COption_HTLCClaimZ_free(_res: bigint): void {
8776 if(!isWasmInitialized) {
8777 throw new Error("initializeWasm() must be awaited first!");
8779 const nativeResponseValue = wasm.TS_COption_HTLCClaimZ_free(_res);
8780 // debug statements here
8782 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_ok(void);
8784 export function CResult_NoneNoneZ_ok(): bigint {
8785 if(!isWasmInitialized) {
8786 throw new Error("initializeWasm() must be awaited first!");
8788 const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_ok();
8789 return nativeResponseValue;
8791 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_err(void);
8793 export function CResult_NoneNoneZ_err(): bigint {
8794 if(!isWasmInitialized) {
8795 throw new Error("initializeWasm() must be awaited first!");
8797 const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_err();
8798 return nativeResponseValue;
8800 // bool CResult_NoneNoneZ_is_ok(const struct LDKCResult_NoneNoneZ *NONNULL_PTR o);
8802 export function CResult_NoneNoneZ_is_ok(o: bigint): boolean {
8803 if(!isWasmInitialized) {
8804 throw new Error("initializeWasm() must be awaited first!");
8806 const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_is_ok(o);
8807 return nativeResponseValue;
8809 // void CResult_NoneNoneZ_free(struct LDKCResult_NoneNoneZ _res);
8811 export function CResult_NoneNoneZ_free(_res: bigint): void {
8812 if(!isWasmInitialized) {
8813 throw new Error("initializeWasm() must be awaited first!");
8815 const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_free(_res);
8816 // debug statements here
8818 // uint64_t CResult_NoneNoneZ_clone_ptr(LDKCResult_NoneNoneZ *NONNULL_PTR arg);
8820 export function CResult_NoneNoneZ_clone_ptr(arg: bigint): bigint {
8821 if(!isWasmInitialized) {
8822 throw new Error("initializeWasm() must be awaited first!");
8824 const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone_ptr(arg);
8825 return nativeResponseValue;
8827 // struct LDKCResult_NoneNoneZ CResult_NoneNoneZ_clone(const struct LDKCResult_NoneNoneZ *NONNULL_PTR orig);
8829 export function CResult_NoneNoneZ_clone(orig: bigint): bigint {
8830 if(!isWasmInitialized) {
8831 throw new Error("initializeWasm() must be awaited first!");
8833 const nativeResponseValue = wasm.TS_CResult_NoneNoneZ_clone(orig);
8834 return nativeResponseValue;
8836 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(struct LDKCounterpartyCommitmentSecrets o);
8838 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o: bigint): bigint {
8839 if(!isWasmInitialized) {
8840 throw new Error("initializeWasm() must be awaited first!");
8842 const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_ok(o);
8843 return nativeResponseValue;
8845 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(struct LDKDecodeError e);
8847 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e: bigint): bigint {
8848 if(!isWasmInitialized) {
8849 throw new Error("initializeWasm() must be awaited first!");
8851 const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_err(e);
8852 return nativeResponseValue;
8854 // bool CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR o);
8856 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o: bigint): boolean {
8857 if(!isWasmInitialized) {
8858 throw new Error("initializeWasm() must be awaited first!");
8860 const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_is_ok(o);
8861 return nativeResponseValue;
8863 // void CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ _res);
8865 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res: bigint): void {
8866 if(!isWasmInitialized) {
8867 throw new Error("initializeWasm() must be awaited first!");
8869 const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_free(_res);
8870 // debug statements here
8872 // uint64_t CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR arg);
8874 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8875 if(!isWasmInitialized) {
8876 throw new Error("initializeWasm() must be awaited first!");
8878 const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone_ptr(arg);
8879 return nativeResponseValue;
8881 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(const struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ *NONNULL_PTR orig);
8883 export function CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig: bigint): bigint {
8884 if(!isWasmInitialized) {
8885 throw new Error("initializeWasm() must be awaited first!");
8887 const nativeResponseValue = wasm.TS_CResult_CounterpartyCommitmentSecretsDecodeErrorZ_clone(orig);
8888 return nativeResponseValue;
8890 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_ok(struct LDKTxCreationKeys o);
8892 export function CResult_TxCreationKeysDecodeErrorZ_ok(o: bigint): bigint {
8893 if(!isWasmInitialized) {
8894 throw new Error("initializeWasm() must be awaited first!");
8896 const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_ok(o);
8897 return nativeResponseValue;
8899 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_err(struct LDKDecodeError e);
8901 export function CResult_TxCreationKeysDecodeErrorZ_err(e: bigint): bigint {
8902 if(!isWasmInitialized) {
8903 throw new Error("initializeWasm() must be awaited first!");
8905 const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_err(e);
8906 return nativeResponseValue;
8908 // bool CResult_TxCreationKeysDecodeErrorZ_is_ok(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR o);
8910 export function CResult_TxCreationKeysDecodeErrorZ_is_ok(o: bigint): boolean {
8911 if(!isWasmInitialized) {
8912 throw new Error("initializeWasm() must be awaited first!");
8914 const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_is_ok(o);
8915 return nativeResponseValue;
8917 // void CResult_TxCreationKeysDecodeErrorZ_free(struct LDKCResult_TxCreationKeysDecodeErrorZ _res);
8919 export function CResult_TxCreationKeysDecodeErrorZ_free(_res: bigint): void {
8920 if(!isWasmInitialized) {
8921 throw new Error("initializeWasm() must be awaited first!");
8923 const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_free(_res);
8924 // debug statements here
8926 // uint64_t CResult_TxCreationKeysDecodeErrorZ_clone_ptr(LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR arg);
8928 export function CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8929 if(!isWasmInitialized) {
8930 throw new Error("initializeWasm() must be awaited first!");
8932 const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone_ptr(arg);
8933 return nativeResponseValue;
8935 // struct LDKCResult_TxCreationKeysDecodeErrorZ CResult_TxCreationKeysDecodeErrorZ_clone(const struct LDKCResult_TxCreationKeysDecodeErrorZ *NONNULL_PTR orig);
8937 export function CResult_TxCreationKeysDecodeErrorZ_clone(orig: bigint): bigint {
8938 if(!isWasmInitialized) {
8939 throw new Error("initializeWasm() must be awaited first!");
8941 const nativeResponseValue = wasm.TS_CResult_TxCreationKeysDecodeErrorZ_clone(orig);
8942 return nativeResponseValue;
8944 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_ok(struct LDKChannelPublicKeys o);
8946 export function CResult_ChannelPublicKeysDecodeErrorZ_ok(o: bigint): bigint {
8947 if(!isWasmInitialized) {
8948 throw new Error("initializeWasm() must be awaited first!");
8950 const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_ok(o);
8951 return nativeResponseValue;
8953 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_err(struct LDKDecodeError e);
8955 export function CResult_ChannelPublicKeysDecodeErrorZ_err(e: bigint): bigint {
8956 if(!isWasmInitialized) {
8957 throw new Error("initializeWasm() must be awaited first!");
8959 const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_err(e);
8960 return nativeResponseValue;
8962 // bool CResult_ChannelPublicKeysDecodeErrorZ_is_ok(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR o);
8964 export function CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o: bigint): boolean {
8965 if(!isWasmInitialized) {
8966 throw new Error("initializeWasm() must be awaited first!");
8968 const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_is_ok(o);
8969 return nativeResponseValue;
8971 // void CResult_ChannelPublicKeysDecodeErrorZ_free(struct LDKCResult_ChannelPublicKeysDecodeErrorZ _res);
8973 export function CResult_ChannelPublicKeysDecodeErrorZ_free(_res: bigint): void {
8974 if(!isWasmInitialized) {
8975 throw new Error("initializeWasm() must be awaited first!");
8977 const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_free(_res);
8978 // debug statements here
8980 // uint64_t CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR arg);
8982 export function CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg: bigint): bigint {
8983 if(!isWasmInitialized) {
8984 throw new Error("initializeWasm() must be awaited first!");
8986 const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone_ptr(arg);
8987 return nativeResponseValue;
8989 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ CResult_ChannelPublicKeysDecodeErrorZ_clone(const struct LDKCResult_ChannelPublicKeysDecodeErrorZ *NONNULL_PTR orig);
8991 export function CResult_ChannelPublicKeysDecodeErrorZ_clone(orig: bigint): bigint {
8992 if(!isWasmInitialized) {
8993 throw new Error("initializeWasm() must be awaited first!");
8995 const nativeResponseValue = wasm.TS_CResult_ChannelPublicKeysDecodeErrorZ_clone(orig);
8996 return nativeResponseValue;
8998 // struct LDKCOption_u32Z COption_u32Z_some(uint32_t o);
9000 export function COption_u32Z_some(o: number): bigint {
9001 if(!isWasmInitialized) {
9002 throw new Error("initializeWasm() must be awaited first!");
9004 const nativeResponseValue = wasm.TS_COption_u32Z_some(o);
9005 return nativeResponseValue;
9007 // struct LDKCOption_u32Z COption_u32Z_none(void);
9009 export function COption_u32Z_none(): bigint {
9010 if(!isWasmInitialized) {
9011 throw new Error("initializeWasm() must be awaited first!");
9013 const nativeResponseValue = wasm.TS_COption_u32Z_none();
9014 return nativeResponseValue;
9016 // void COption_u32Z_free(struct LDKCOption_u32Z _res);
9018 export function COption_u32Z_free(_res: bigint): void {
9019 if(!isWasmInitialized) {
9020 throw new Error("initializeWasm() must be awaited first!");
9022 const nativeResponseValue = wasm.TS_COption_u32Z_free(_res);
9023 // debug statements here
9025 // uint64_t COption_u32Z_clone_ptr(LDKCOption_u32Z *NONNULL_PTR arg);
9027 export function COption_u32Z_clone_ptr(arg: bigint): bigint {
9028 if(!isWasmInitialized) {
9029 throw new Error("initializeWasm() must be awaited first!");
9031 const nativeResponseValue = wasm.TS_COption_u32Z_clone_ptr(arg);
9032 return nativeResponseValue;
9034 // struct LDKCOption_u32Z COption_u32Z_clone(const struct LDKCOption_u32Z *NONNULL_PTR orig);
9036 export function COption_u32Z_clone(orig: bigint): bigint {
9037 if(!isWasmInitialized) {
9038 throw new Error("initializeWasm() must be awaited first!");
9040 const nativeResponseValue = wasm.TS_COption_u32Z_clone(orig);
9041 return nativeResponseValue;
9043 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(struct LDKHTLCOutputInCommitment o);
9045 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o: bigint): bigint {
9046 if(!isWasmInitialized) {
9047 throw new Error("initializeWasm() must be awaited first!");
9049 const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o);
9050 return nativeResponseValue;
9052 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_err(struct LDKDecodeError e);
9054 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e: bigint): bigint {
9055 if(!isWasmInitialized) {
9056 throw new Error("initializeWasm() must be awaited first!");
9058 const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e);
9059 return nativeResponseValue;
9061 // bool CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR o);
9063 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o: bigint): boolean {
9064 if(!isWasmInitialized) {
9065 throw new Error("initializeWasm() must be awaited first!");
9067 const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(o);
9068 return nativeResponseValue;
9070 // void CResult_HTLCOutputInCommitmentDecodeErrorZ_free(struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ _res);
9072 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res: bigint): void {
9073 if(!isWasmInitialized) {
9074 throw new Error("initializeWasm() must be awaited first!");
9076 const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_free(_res);
9077 // debug statements here
9079 // uint64_t CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR arg);
9081 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9082 if(!isWasmInitialized) {
9083 throw new Error("initializeWasm() must be awaited first!");
9085 const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(arg);
9086 return nativeResponseValue;
9088 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(const struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ *NONNULL_PTR orig);
9090 export function CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig: bigint): bigint {
9091 if(!isWasmInitialized) {
9092 throw new Error("initializeWasm() must be awaited first!");
9094 const nativeResponseValue = wasm.TS_CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(orig);
9095 return nativeResponseValue;
9097 // enum LDKCOption_NoneZ COption_NoneZ_some(void);
9099 export function COption_NoneZ_some(): COption_NoneZ {
9100 if(!isWasmInitialized) {
9101 throw new Error("initializeWasm() must be awaited first!");
9103 const nativeResponseValue = wasm.TS_COption_NoneZ_some();
9104 return nativeResponseValue;
9106 // enum LDKCOption_NoneZ COption_NoneZ_none(void);
9108 export function COption_NoneZ_none(): COption_NoneZ {
9109 if(!isWasmInitialized) {
9110 throw new Error("initializeWasm() must be awaited first!");
9112 const nativeResponseValue = wasm.TS_COption_NoneZ_none();
9113 return nativeResponseValue;
9115 // void COption_NoneZ_free(enum LDKCOption_NoneZ _res);
9117 export function COption_NoneZ_free(_res: COption_NoneZ): void {
9118 if(!isWasmInitialized) {
9119 throw new Error("initializeWasm() must be awaited first!");
9121 const nativeResponseValue = wasm.TS_COption_NoneZ_free(_res);
9122 // debug statements here
9124 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(struct LDKCounterpartyChannelTransactionParameters o);
9126 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o: bigint): bigint {
9127 if(!isWasmInitialized) {
9128 throw new Error("initializeWasm() must be awaited first!");
9130 const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_ok(o);
9131 return nativeResponseValue;
9133 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
9135 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e: bigint): bigint {
9136 if(!isWasmInitialized) {
9137 throw new Error("initializeWasm() must be awaited first!");
9139 const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_err(e);
9140 return nativeResponseValue;
9142 // bool CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
9144 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o: bigint): boolean {
9145 if(!isWasmInitialized) {
9146 throw new Error("initializeWasm() must be awaited first!");
9148 const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_is_ok(o);
9149 return nativeResponseValue;
9151 // void CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ _res);
9153 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res: bigint): void {
9154 if(!isWasmInitialized) {
9155 throw new Error("initializeWasm() must be awaited first!");
9157 const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_free(_res);
9158 // debug statements here
9160 // uint64_t CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
9162 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9163 if(!isWasmInitialized) {
9164 throw new Error("initializeWasm() must be awaited first!");
9166 const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
9167 return nativeResponseValue;
9169 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
9171 export function CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig: bigint): bigint {
9172 if(!isWasmInitialized) {
9173 throw new Error("initializeWasm() must be awaited first!");
9175 const nativeResponseValue = wasm.TS_CResult_CounterpartyChannelTransactionParametersDecodeErrorZ_clone(orig);
9176 return nativeResponseValue;
9178 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_ok(struct LDKChannelTransactionParameters o);
9180 export function CResult_ChannelTransactionParametersDecodeErrorZ_ok(o: bigint): bigint {
9181 if(!isWasmInitialized) {
9182 throw new Error("initializeWasm() must be awaited first!");
9184 const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_ok(o);
9185 return nativeResponseValue;
9187 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_err(struct LDKDecodeError e);
9189 export function CResult_ChannelTransactionParametersDecodeErrorZ_err(e: bigint): bigint {
9190 if(!isWasmInitialized) {
9191 throw new Error("initializeWasm() must be awaited first!");
9193 const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_err(e);
9194 return nativeResponseValue;
9196 // bool CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR o);
9198 export function CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o: bigint): boolean {
9199 if(!isWasmInitialized) {
9200 throw new Error("initializeWasm() must be awaited first!");
9202 const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_is_ok(o);
9203 return nativeResponseValue;
9205 // void CResult_ChannelTransactionParametersDecodeErrorZ_free(struct LDKCResult_ChannelTransactionParametersDecodeErrorZ _res);
9207 export function CResult_ChannelTransactionParametersDecodeErrorZ_free(_res: bigint): void {
9208 if(!isWasmInitialized) {
9209 throw new Error("initializeWasm() must be awaited first!");
9211 const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_free(_res);
9212 // debug statements here
9214 // uint64_t CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR arg);
9216 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9217 if(!isWasmInitialized) {
9218 throw new Error("initializeWasm() must be awaited first!");
9220 const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone_ptr(arg);
9221 return nativeResponseValue;
9223 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ CResult_ChannelTransactionParametersDecodeErrorZ_clone(const struct LDKCResult_ChannelTransactionParametersDecodeErrorZ *NONNULL_PTR orig);
9225 export function CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig: bigint): bigint {
9226 if(!isWasmInitialized) {
9227 throw new Error("initializeWasm() must be awaited first!");
9229 const nativeResponseValue = wasm.TS_CResult_ChannelTransactionParametersDecodeErrorZ_clone(orig);
9230 return nativeResponseValue;
9232 // void CVec_SignatureZ_free(struct LDKCVec_SignatureZ _res);
9234 export function CVec_SignatureZ_free(_res: number): void {
9235 if(!isWasmInitialized) {
9236 throw new Error("initializeWasm() must be awaited first!");
9238 const nativeResponseValue = wasm.TS_CVec_SignatureZ_free(_res);
9239 // debug statements here
9241 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_ok(struct LDKHolderCommitmentTransaction o);
9243 export function CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o: bigint): bigint {
9244 if(!isWasmInitialized) {
9245 throw new Error("initializeWasm() must be awaited first!");
9247 const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_ok(o);
9248 return nativeResponseValue;
9250 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
9252 export function CResult_HolderCommitmentTransactionDecodeErrorZ_err(e: bigint): bigint {
9253 if(!isWasmInitialized) {
9254 throw new Error("initializeWasm() must be awaited first!");
9256 const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_err(e);
9257 return nativeResponseValue;
9259 // bool CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
9261 export function CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o: bigint): boolean {
9262 if(!isWasmInitialized) {
9263 throw new Error("initializeWasm() must be awaited first!");
9265 const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_is_ok(o);
9266 return nativeResponseValue;
9268 // void CResult_HolderCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ _res);
9270 export function CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res: bigint): void {
9271 if(!isWasmInitialized) {
9272 throw new Error("initializeWasm() must be awaited first!");
9274 const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_free(_res);
9275 // debug statements here
9277 // uint64_t CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
9279 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9280 if(!isWasmInitialized) {
9281 throw new Error("initializeWasm() must be awaited first!");
9283 const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
9284 return nativeResponseValue;
9286 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ CResult_HolderCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
9288 export function CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig: bigint): bigint {
9289 if(!isWasmInitialized) {
9290 throw new Error("initializeWasm() must be awaited first!");
9292 const nativeResponseValue = wasm.TS_CResult_HolderCommitmentTransactionDecodeErrorZ_clone(orig);
9293 return nativeResponseValue;
9295 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(struct LDKBuiltCommitmentTransaction o);
9297 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o: bigint): bigint {
9298 if(!isWasmInitialized) {
9299 throw new Error("initializeWasm() must be awaited first!");
9301 const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_ok(o);
9302 return nativeResponseValue;
9304 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
9306 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e: bigint): bigint {
9307 if(!isWasmInitialized) {
9308 throw new Error("initializeWasm() must be awaited first!");
9310 const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_err(e);
9311 return nativeResponseValue;
9313 // bool CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
9315 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o: bigint): boolean {
9316 if(!isWasmInitialized) {
9317 throw new Error("initializeWasm() must be awaited first!");
9319 const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_is_ok(o);
9320 return nativeResponseValue;
9322 // void CResult_BuiltCommitmentTransactionDecodeErrorZ_free(struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ _res);
9324 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res: bigint): void {
9325 if(!isWasmInitialized) {
9326 throw new Error("initializeWasm() must be awaited first!");
9328 const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_free(_res);
9329 // debug statements here
9331 // uint64_t CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
9333 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9334 if(!isWasmInitialized) {
9335 throw new Error("initializeWasm() must be awaited first!");
9337 const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone_ptr(arg);
9338 return nativeResponseValue;
9340 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
9342 export function CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig: bigint): bigint {
9343 if(!isWasmInitialized) {
9344 throw new Error("initializeWasm() must be awaited first!");
9346 const nativeResponseValue = wasm.TS_CResult_BuiltCommitmentTransactionDecodeErrorZ_clone(orig);
9347 return nativeResponseValue;
9349 // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_ok(struct LDKTrustedClosingTransaction o);
9351 export function CResult_TrustedClosingTransactionNoneZ_ok(o: bigint): bigint {
9352 if(!isWasmInitialized) {
9353 throw new Error("initializeWasm() must be awaited first!");
9355 const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_ok(o);
9356 return nativeResponseValue;
9358 // struct LDKCResult_TrustedClosingTransactionNoneZ CResult_TrustedClosingTransactionNoneZ_err(void);
9360 export function CResult_TrustedClosingTransactionNoneZ_err(): bigint {
9361 if(!isWasmInitialized) {
9362 throw new Error("initializeWasm() must be awaited first!");
9364 const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_err();
9365 return nativeResponseValue;
9367 // bool CResult_TrustedClosingTransactionNoneZ_is_ok(const struct LDKCResult_TrustedClosingTransactionNoneZ *NONNULL_PTR o);
9369 export function CResult_TrustedClosingTransactionNoneZ_is_ok(o: bigint): boolean {
9370 if(!isWasmInitialized) {
9371 throw new Error("initializeWasm() must be awaited first!");
9373 const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_is_ok(o);
9374 return nativeResponseValue;
9376 // void CResult_TrustedClosingTransactionNoneZ_free(struct LDKCResult_TrustedClosingTransactionNoneZ _res);
9378 export function CResult_TrustedClosingTransactionNoneZ_free(_res: bigint): void {
9379 if(!isWasmInitialized) {
9380 throw new Error("initializeWasm() must be awaited first!");
9382 const nativeResponseValue = wasm.TS_CResult_TrustedClosingTransactionNoneZ_free(_res);
9383 // debug statements here
9385 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_ok(struct LDKCommitmentTransaction o);
9387 export function CResult_CommitmentTransactionDecodeErrorZ_ok(o: bigint): bigint {
9388 if(!isWasmInitialized) {
9389 throw new Error("initializeWasm() must be awaited first!");
9391 const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_ok(o);
9392 return nativeResponseValue;
9394 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_err(struct LDKDecodeError e);
9396 export function CResult_CommitmentTransactionDecodeErrorZ_err(e: bigint): bigint {
9397 if(!isWasmInitialized) {
9398 throw new Error("initializeWasm() must be awaited first!");
9400 const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_err(e);
9401 return nativeResponseValue;
9403 // bool CResult_CommitmentTransactionDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR o);
9405 export function CResult_CommitmentTransactionDecodeErrorZ_is_ok(o: bigint): boolean {
9406 if(!isWasmInitialized) {
9407 throw new Error("initializeWasm() must be awaited first!");
9409 const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_is_ok(o);
9410 return nativeResponseValue;
9412 // void CResult_CommitmentTransactionDecodeErrorZ_free(struct LDKCResult_CommitmentTransactionDecodeErrorZ _res);
9414 export function CResult_CommitmentTransactionDecodeErrorZ_free(_res: bigint): void {
9415 if(!isWasmInitialized) {
9416 throw new Error("initializeWasm() must be awaited first!");
9418 const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_free(_res);
9419 // debug statements here
9421 // uint64_t CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR arg);
9423 export function CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9424 if(!isWasmInitialized) {
9425 throw new Error("initializeWasm() must be awaited first!");
9427 const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone_ptr(arg);
9428 return nativeResponseValue;
9430 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CResult_CommitmentTransactionDecodeErrorZ_clone(const struct LDKCResult_CommitmentTransactionDecodeErrorZ *NONNULL_PTR orig);
9432 export function CResult_CommitmentTransactionDecodeErrorZ_clone(orig: bigint): bigint {
9433 if(!isWasmInitialized) {
9434 throw new Error("initializeWasm() must be awaited first!");
9436 const nativeResponseValue = wasm.TS_CResult_CommitmentTransactionDecodeErrorZ_clone(orig);
9437 return nativeResponseValue;
9439 // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_ok(struct LDKTrustedCommitmentTransaction o);
9441 export function CResult_TrustedCommitmentTransactionNoneZ_ok(o: bigint): bigint {
9442 if(!isWasmInitialized) {
9443 throw new Error("initializeWasm() must be awaited first!");
9445 const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_ok(o);
9446 return nativeResponseValue;
9448 // struct LDKCResult_TrustedCommitmentTransactionNoneZ CResult_TrustedCommitmentTransactionNoneZ_err(void);
9450 export function CResult_TrustedCommitmentTransactionNoneZ_err(): bigint {
9451 if(!isWasmInitialized) {
9452 throw new Error("initializeWasm() must be awaited first!");
9454 const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_err();
9455 return nativeResponseValue;
9457 // bool CResult_TrustedCommitmentTransactionNoneZ_is_ok(const struct LDKCResult_TrustedCommitmentTransactionNoneZ *NONNULL_PTR o);
9459 export function CResult_TrustedCommitmentTransactionNoneZ_is_ok(o: bigint): boolean {
9460 if(!isWasmInitialized) {
9461 throw new Error("initializeWasm() must be awaited first!");
9463 const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_is_ok(o);
9464 return nativeResponseValue;
9466 // void CResult_TrustedCommitmentTransactionNoneZ_free(struct LDKCResult_TrustedCommitmentTransactionNoneZ _res);
9468 export function CResult_TrustedCommitmentTransactionNoneZ_free(_res: bigint): void {
9469 if(!isWasmInitialized) {
9470 throw new Error("initializeWasm() must be awaited first!");
9472 const nativeResponseValue = wasm.TS_CResult_TrustedCommitmentTransactionNoneZ_free(_res);
9473 // debug statements here
9475 // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_ok(struct LDKCVec_SignatureZ o);
9477 export function CResult_CVec_SignatureZNoneZ_ok(o: number): bigint {
9478 if(!isWasmInitialized) {
9479 throw new Error("initializeWasm() must be awaited first!");
9481 const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_ok(o);
9482 return nativeResponseValue;
9484 // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_err(void);
9486 export function CResult_CVec_SignatureZNoneZ_err(): bigint {
9487 if(!isWasmInitialized) {
9488 throw new Error("initializeWasm() must be awaited first!");
9490 const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_err();
9491 return nativeResponseValue;
9493 // bool CResult_CVec_SignatureZNoneZ_is_ok(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR o);
9495 export function CResult_CVec_SignatureZNoneZ_is_ok(o: bigint): boolean {
9496 if(!isWasmInitialized) {
9497 throw new Error("initializeWasm() must be awaited first!");
9499 const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_is_ok(o);
9500 return nativeResponseValue;
9502 // void CResult_CVec_SignatureZNoneZ_free(struct LDKCResult_CVec_SignatureZNoneZ _res);
9504 export function CResult_CVec_SignatureZNoneZ_free(_res: bigint): void {
9505 if(!isWasmInitialized) {
9506 throw new Error("initializeWasm() must be awaited first!");
9508 const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_free(_res);
9509 // debug statements here
9511 // uint64_t CResult_CVec_SignatureZNoneZ_clone_ptr(LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR arg);
9513 export function CResult_CVec_SignatureZNoneZ_clone_ptr(arg: bigint): bigint {
9514 if(!isWasmInitialized) {
9515 throw new Error("initializeWasm() must be awaited first!");
9517 const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone_ptr(arg);
9518 return nativeResponseValue;
9520 // struct LDKCResult_CVec_SignatureZNoneZ CResult_CVec_SignatureZNoneZ_clone(const struct LDKCResult_CVec_SignatureZNoneZ *NONNULL_PTR orig);
9522 export function CResult_CVec_SignatureZNoneZ_clone(orig: bigint): bigint {
9523 if(!isWasmInitialized) {
9524 throw new Error("initializeWasm() must be awaited first!");
9526 const nativeResponseValue = wasm.TS_CResult_CVec_SignatureZNoneZ_clone(orig);
9527 return nativeResponseValue;
9529 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_ok(struct LDKShutdownScript o);
9531 export function CResult_ShutdownScriptDecodeErrorZ_ok(o: bigint): bigint {
9532 if(!isWasmInitialized) {
9533 throw new Error("initializeWasm() must be awaited first!");
9535 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_ok(o);
9536 return nativeResponseValue;
9538 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_err(struct LDKDecodeError e);
9540 export function CResult_ShutdownScriptDecodeErrorZ_err(e: bigint): bigint {
9541 if(!isWasmInitialized) {
9542 throw new Error("initializeWasm() must be awaited first!");
9544 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_err(e);
9545 return nativeResponseValue;
9547 // bool CResult_ShutdownScriptDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR o);
9549 export function CResult_ShutdownScriptDecodeErrorZ_is_ok(o: bigint): boolean {
9550 if(!isWasmInitialized) {
9551 throw new Error("initializeWasm() must be awaited first!");
9553 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_is_ok(o);
9554 return nativeResponseValue;
9556 // void CResult_ShutdownScriptDecodeErrorZ_free(struct LDKCResult_ShutdownScriptDecodeErrorZ _res);
9558 export function CResult_ShutdownScriptDecodeErrorZ_free(_res: bigint): void {
9559 if(!isWasmInitialized) {
9560 throw new Error("initializeWasm() must be awaited first!");
9562 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_free(_res);
9563 // debug statements here
9565 // uint64_t CResult_ShutdownScriptDecodeErrorZ_clone_ptr(LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR arg);
9567 export function CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9568 if(!isWasmInitialized) {
9569 throw new Error("initializeWasm() must be awaited first!");
9571 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone_ptr(arg);
9572 return nativeResponseValue;
9574 // struct LDKCResult_ShutdownScriptDecodeErrorZ CResult_ShutdownScriptDecodeErrorZ_clone(const struct LDKCResult_ShutdownScriptDecodeErrorZ *NONNULL_PTR orig);
9576 export function CResult_ShutdownScriptDecodeErrorZ_clone(orig: bigint): bigint {
9577 if(!isWasmInitialized) {
9578 throw new Error("initializeWasm() must be awaited first!");
9580 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptDecodeErrorZ_clone(orig);
9581 return nativeResponseValue;
9583 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_ok(struct LDKShutdownScript o);
9585 export function CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o: bigint): bigint {
9586 if(!isWasmInitialized) {
9587 throw new Error("initializeWasm() must be awaited first!");
9589 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_ok(o);
9590 return nativeResponseValue;
9592 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_err(struct LDKInvalidShutdownScript e);
9594 export function CResult_ShutdownScriptInvalidShutdownScriptZ_err(e: bigint): bigint {
9595 if(!isWasmInitialized) {
9596 throw new Error("initializeWasm() must be awaited first!");
9598 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_err(e);
9599 return nativeResponseValue;
9601 // bool CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR o);
9603 export function CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o: bigint): boolean {
9604 if(!isWasmInitialized) {
9605 throw new Error("initializeWasm() must be awaited first!");
9607 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_is_ok(o);
9608 return nativeResponseValue;
9610 // void CResult_ShutdownScriptInvalidShutdownScriptZ_free(struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ _res);
9612 export function CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res: bigint): void {
9613 if(!isWasmInitialized) {
9614 throw new Error("initializeWasm() must be awaited first!");
9616 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_free(_res);
9617 // debug statements here
9619 // uint64_t CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR arg);
9621 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg: bigint): bigint {
9622 if(!isWasmInitialized) {
9623 throw new Error("initializeWasm() must be awaited first!");
9625 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone_ptr(arg);
9626 return nativeResponseValue;
9628 // struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ CResult_ShutdownScriptInvalidShutdownScriptZ_clone(const struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ *NONNULL_PTR orig);
9630 export function CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig: bigint): bigint {
9631 if(!isWasmInitialized) {
9632 throw new Error("initializeWasm() must be awaited first!");
9634 const nativeResponseValue = wasm.TS_CResult_ShutdownScriptInvalidShutdownScriptZ_clone(orig);
9635 return nativeResponseValue;
9637 // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_ok(struct LDKBlindedPayInfo o);
9639 export function CResult_BlindedPayInfoDecodeErrorZ_ok(o: bigint): bigint {
9640 if(!isWasmInitialized) {
9641 throw new Error("initializeWasm() must be awaited first!");
9643 const nativeResponseValue = wasm.TS_CResult_BlindedPayInfoDecodeErrorZ_ok(o);
9644 return nativeResponseValue;
9646 // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_err(struct LDKDecodeError e);
9648 export function CResult_BlindedPayInfoDecodeErrorZ_err(e: bigint): bigint {
9649 if(!isWasmInitialized) {
9650 throw new Error("initializeWasm() must be awaited first!");
9652 const nativeResponseValue = wasm.TS_CResult_BlindedPayInfoDecodeErrorZ_err(e);
9653 return nativeResponseValue;
9655 // bool CResult_BlindedPayInfoDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR o);
9657 export function CResult_BlindedPayInfoDecodeErrorZ_is_ok(o: bigint): boolean {
9658 if(!isWasmInitialized) {
9659 throw new Error("initializeWasm() must be awaited first!");
9661 const nativeResponseValue = wasm.TS_CResult_BlindedPayInfoDecodeErrorZ_is_ok(o);
9662 return nativeResponseValue;
9664 // void CResult_BlindedPayInfoDecodeErrorZ_free(struct LDKCResult_BlindedPayInfoDecodeErrorZ _res);
9666 export function CResult_BlindedPayInfoDecodeErrorZ_free(_res: bigint): void {
9667 if(!isWasmInitialized) {
9668 throw new Error("initializeWasm() must be awaited first!");
9670 const nativeResponseValue = wasm.TS_CResult_BlindedPayInfoDecodeErrorZ_free(_res);
9671 // debug statements here
9673 // uint64_t CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR arg);
9675 export function CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9676 if(!isWasmInitialized) {
9677 throw new Error("initializeWasm() must be awaited first!");
9679 const nativeResponseValue = wasm.TS_CResult_BlindedPayInfoDecodeErrorZ_clone_ptr(arg);
9680 return nativeResponseValue;
9682 // struct LDKCResult_BlindedPayInfoDecodeErrorZ CResult_BlindedPayInfoDecodeErrorZ_clone(const struct LDKCResult_BlindedPayInfoDecodeErrorZ *NONNULL_PTR orig);
9684 export function CResult_BlindedPayInfoDecodeErrorZ_clone(orig: bigint): bigint {
9685 if(!isWasmInitialized) {
9686 throw new Error("initializeWasm() must be awaited first!");
9688 const nativeResponseValue = wasm.TS_CResult_BlindedPayInfoDecodeErrorZ_clone(orig);
9689 return nativeResponseValue;
9691 // void CVec_ChannelDetailsZ_free(struct LDKCVec_ChannelDetailsZ _res);
9693 export function CVec_ChannelDetailsZ_free(_res: number): void {
9694 if(!isWasmInitialized) {
9695 throw new Error("initializeWasm() must be awaited first!");
9697 const nativeResponseValue = wasm.TS_CVec_ChannelDetailsZ_free(_res);
9698 // debug statements here
9700 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
9702 export function CResult_RouteLightningErrorZ_ok(o: bigint): bigint {
9703 if(!isWasmInitialized) {
9704 throw new Error("initializeWasm() must be awaited first!");
9706 const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_ok(o);
9707 return nativeResponseValue;
9709 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
9711 export function CResult_RouteLightningErrorZ_err(e: bigint): bigint {
9712 if(!isWasmInitialized) {
9713 throw new Error("initializeWasm() must be awaited first!");
9715 const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_err(e);
9716 return nativeResponseValue;
9718 // bool CResult_RouteLightningErrorZ_is_ok(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR o);
9720 export function CResult_RouteLightningErrorZ_is_ok(o: bigint): boolean {
9721 if(!isWasmInitialized) {
9722 throw new Error("initializeWasm() must be awaited first!");
9724 const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_is_ok(o);
9725 return nativeResponseValue;
9727 // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
9729 export function CResult_RouteLightningErrorZ_free(_res: bigint): void {
9730 if(!isWasmInitialized) {
9731 throw new Error("initializeWasm() must be awaited first!");
9733 const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_free(_res);
9734 // debug statements here
9736 // uint64_t CResult_RouteLightningErrorZ_clone_ptr(LDKCResult_RouteLightningErrorZ *NONNULL_PTR arg);
9738 export function CResult_RouteLightningErrorZ_clone_ptr(arg: bigint): bigint {
9739 if(!isWasmInitialized) {
9740 throw new Error("initializeWasm() must be awaited first!");
9742 const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone_ptr(arg);
9743 return nativeResponseValue;
9745 // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
9747 export function CResult_RouteLightningErrorZ_clone(orig: bigint): bigint {
9748 if(!isWasmInitialized) {
9749 throw new Error("initializeWasm() must be awaited first!");
9751 const nativeResponseValue = wasm.TS_CResult_RouteLightningErrorZ_clone(orig);
9752 return nativeResponseValue;
9754 // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_ok(struct LDKInFlightHtlcs o);
9756 export function CResult_InFlightHtlcsDecodeErrorZ_ok(o: bigint): bigint {
9757 if(!isWasmInitialized) {
9758 throw new Error("initializeWasm() must be awaited first!");
9760 const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_ok(o);
9761 return nativeResponseValue;
9763 // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_err(struct LDKDecodeError e);
9765 export function CResult_InFlightHtlcsDecodeErrorZ_err(e: bigint): bigint {
9766 if(!isWasmInitialized) {
9767 throw new Error("initializeWasm() must be awaited first!");
9769 const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_err(e);
9770 return nativeResponseValue;
9772 // bool CResult_InFlightHtlcsDecodeErrorZ_is_ok(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR o);
9774 export function CResult_InFlightHtlcsDecodeErrorZ_is_ok(o: bigint): boolean {
9775 if(!isWasmInitialized) {
9776 throw new Error("initializeWasm() must be awaited first!");
9778 const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_is_ok(o);
9779 return nativeResponseValue;
9781 // void CResult_InFlightHtlcsDecodeErrorZ_free(struct LDKCResult_InFlightHtlcsDecodeErrorZ _res);
9783 export function CResult_InFlightHtlcsDecodeErrorZ_free(_res: bigint): void {
9784 if(!isWasmInitialized) {
9785 throw new Error("initializeWasm() must be awaited first!");
9787 const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_free(_res);
9788 // debug statements here
9790 // uint64_t CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR arg);
9792 export function CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9793 if(!isWasmInitialized) {
9794 throw new Error("initializeWasm() must be awaited first!");
9796 const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_clone_ptr(arg);
9797 return nativeResponseValue;
9799 // struct LDKCResult_InFlightHtlcsDecodeErrorZ CResult_InFlightHtlcsDecodeErrorZ_clone(const struct LDKCResult_InFlightHtlcsDecodeErrorZ *NONNULL_PTR orig);
9801 export function CResult_InFlightHtlcsDecodeErrorZ_clone(orig: bigint): bigint {
9802 if(!isWasmInitialized) {
9803 throw new Error("initializeWasm() must be awaited first!");
9805 const nativeResponseValue = wasm.TS_CResult_InFlightHtlcsDecodeErrorZ_clone(orig);
9806 return nativeResponseValue;
9808 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_ok(struct LDKRouteHop o);
9810 export function CResult_RouteHopDecodeErrorZ_ok(o: bigint): bigint {
9811 if(!isWasmInitialized) {
9812 throw new Error("initializeWasm() must be awaited first!");
9814 const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_ok(o);
9815 return nativeResponseValue;
9817 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_err(struct LDKDecodeError e);
9819 export function CResult_RouteHopDecodeErrorZ_err(e: bigint): bigint {
9820 if(!isWasmInitialized) {
9821 throw new Error("initializeWasm() must be awaited first!");
9823 const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_err(e);
9824 return nativeResponseValue;
9826 // bool CResult_RouteHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR o);
9828 export function CResult_RouteHopDecodeErrorZ_is_ok(o: bigint): boolean {
9829 if(!isWasmInitialized) {
9830 throw new Error("initializeWasm() must be awaited first!");
9832 const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_is_ok(o);
9833 return nativeResponseValue;
9835 // void CResult_RouteHopDecodeErrorZ_free(struct LDKCResult_RouteHopDecodeErrorZ _res);
9837 export function CResult_RouteHopDecodeErrorZ_free(_res: bigint): void {
9838 if(!isWasmInitialized) {
9839 throw new Error("initializeWasm() must be awaited first!");
9841 const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_free(_res);
9842 // debug statements here
9844 // uint64_t CResult_RouteHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR arg);
9846 export function CResult_RouteHopDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9847 if(!isWasmInitialized) {
9848 throw new Error("initializeWasm() must be awaited first!");
9850 const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone_ptr(arg);
9851 return nativeResponseValue;
9853 // struct LDKCResult_RouteHopDecodeErrorZ CResult_RouteHopDecodeErrorZ_clone(const struct LDKCResult_RouteHopDecodeErrorZ *NONNULL_PTR orig);
9855 export function CResult_RouteHopDecodeErrorZ_clone(orig: bigint): bigint {
9856 if(!isWasmInitialized) {
9857 throw new Error("initializeWasm() must be awaited first!");
9859 const nativeResponseValue = wasm.TS_CResult_RouteHopDecodeErrorZ_clone(orig);
9860 return nativeResponseValue;
9862 // void CVec_BlindedHopZ_free(struct LDKCVec_BlindedHopZ _res);
9864 export function CVec_BlindedHopZ_free(_res: number): void {
9865 if(!isWasmInitialized) {
9866 throw new Error("initializeWasm() must be awaited first!");
9868 const nativeResponseValue = wasm.TS_CVec_BlindedHopZ_free(_res);
9869 // debug statements here
9871 // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_ok(struct LDKBlindedTail o);
9873 export function CResult_BlindedTailDecodeErrorZ_ok(o: bigint): bigint {
9874 if(!isWasmInitialized) {
9875 throw new Error("initializeWasm() must be awaited first!");
9877 const nativeResponseValue = wasm.TS_CResult_BlindedTailDecodeErrorZ_ok(o);
9878 return nativeResponseValue;
9880 // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_err(struct LDKDecodeError e);
9882 export function CResult_BlindedTailDecodeErrorZ_err(e: bigint): bigint {
9883 if(!isWasmInitialized) {
9884 throw new Error("initializeWasm() must be awaited first!");
9886 const nativeResponseValue = wasm.TS_CResult_BlindedTailDecodeErrorZ_err(e);
9887 return nativeResponseValue;
9889 // bool CResult_BlindedTailDecodeErrorZ_is_ok(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR o);
9891 export function CResult_BlindedTailDecodeErrorZ_is_ok(o: bigint): boolean {
9892 if(!isWasmInitialized) {
9893 throw new Error("initializeWasm() must be awaited first!");
9895 const nativeResponseValue = wasm.TS_CResult_BlindedTailDecodeErrorZ_is_ok(o);
9896 return nativeResponseValue;
9898 // void CResult_BlindedTailDecodeErrorZ_free(struct LDKCResult_BlindedTailDecodeErrorZ _res);
9900 export function CResult_BlindedTailDecodeErrorZ_free(_res: bigint): void {
9901 if(!isWasmInitialized) {
9902 throw new Error("initializeWasm() must be awaited first!");
9904 const nativeResponseValue = wasm.TS_CResult_BlindedTailDecodeErrorZ_free(_res);
9905 // debug statements here
9907 // uint64_t CResult_BlindedTailDecodeErrorZ_clone_ptr(LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR arg);
9909 export function CResult_BlindedTailDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9910 if(!isWasmInitialized) {
9911 throw new Error("initializeWasm() must be awaited first!");
9913 const nativeResponseValue = wasm.TS_CResult_BlindedTailDecodeErrorZ_clone_ptr(arg);
9914 return nativeResponseValue;
9916 // struct LDKCResult_BlindedTailDecodeErrorZ CResult_BlindedTailDecodeErrorZ_clone(const struct LDKCResult_BlindedTailDecodeErrorZ *NONNULL_PTR orig);
9918 export function CResult_BlindedTailDecodeErrorZ_clone(orig: bigint): bigint {
9919 if(!isWasmInitialized) {
9920 throw new Error("initializeWasm() must be awaited first!");
9922 const nativeResponseValue = wasm.TS_CResult_BlindedTailDecodeErrorZ_clone(orig);
9923 return nativeResponseValue;
9925 // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
9927 export function CVec_RouteHopZ_free(_res: number): void {
9928 if(!isWasmInitialized) {
9929 throw new Error("initializeWasm() must be awaited first!");
9931 const nativeResponseValue = wasm.TS_CVec_RouteHopZ_free(_res);
9932 // debug statements here
9934 // void CVec_PathZ_free(struct LDKCVec_PathZ _res);
9936 export function CVec_PathZ_free(_res: number): void {
9937 if(!isWasmInitialized) {
9938 throw new Error("initializeWasm() must be awaited first!");
9940 const nativeResponseValue = wasm.TS_CVec_PathZ_free(_res);
9941 // debug statements here
9943 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
9945 export function CResult_RouteDecodeErrorZ_ok(o: bigint): bigint {
9946 if(!isWasmInitialized) {
9947 throw new Error("initializeWasm() must be awaited first!");
9949 const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_ok(o);
9950 return nativeResponseValue;
9952 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
9954 export function CResult_RouteDecodeErrorZ_err(e: bigint): bigint {
9955 if(!isWasmInitialized) {
9956 throw new Error("initializeWasm() must be awaited first!");
9958 const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_err(e);
9959 return nativeResponseValue;
9961 // bool CResult_RouteDecodeErrorZ_is_ok(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR o);
9963 export function CResult_RouteDecodeErrorZ_is_ok(o: bigint): boolean {
9964 if(!isWasmInitialized) {
9965 throw new Error("initializeWasm() must be awaited first!");
9967 const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_is_ok(o);
9968 return nativeResponseValue;
9970 // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
9972 export function CResult_RouteDecodeErrorZ_free(_res: bigint): void {
9973 if(!isWasmInitialized) {
9974 throw new Error("initializeWasm() must be awaited first!");
9976 const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_free(_res);
9977 // debug statements here
9979 // uint64_t CResult_RouteDecodeErrorZ_clone_ptr(LDKCResult_RouteDecodeErrorZ *NONNULL_PTR arg);
9981 export function CResult_RouteDecodeErrorZ_clone_ptr(arg: bigint): bigint {
9982 if(!isWasmInitialized) {
9983 throw new Error("initializeWasm() must be awaited first!");
9985 const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone_ptr(arg);
9986 return nativeResponseValue;
9988 // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
9990 export function CResult_RouteDecodeErrorZ_clone(orig: bigint): bigint {
9991 if(!isWasmInitialized) {
9992 throw new Error("initializeWasm() must be awaited first!");
9994 const nativeResponseValue = wasm.TS_CResult_RouteDecodeErrorZ_clone(orig);
9995 return nativeResponseValue;
9997 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_ok(struct LDKRouteParameters o);
9999 export function CResult_RouteParametersDecodeErrorZ_ok(o: bigint): bigint {
10000 if(!isWasmInitialized) {
10001 throw new Error("initializeWasm() must be awaited first!");
10003 const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_ok(o);
10004 return nativeResponseValue;
10006 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_err(struct LDKDecodeError e);
10008 export function CResult_RouteParametersDecodeErrorZ_err(e: bigint): bigint {
10009 if(!isWasmInitialized) {
10010 throw new Error("initializeWasm() must be awaited first!");
10012 const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_err(e);
10013 return nativeResponseValue;
10015 // bool CResult_RouteParametersDecodeErrorZ_is_ok(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR o);
10017 export function CResult_RouteParametersDecodeErrorZ_is_ok(o: bigint): boolean {
10018 if(!isWasmInitialized) {
10019 throw new Error("initializeWasm() must be awaited first!");
10021 const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_is_ok(o);
10022 return nativeResponseValue;
10024 // void CResult_RouteParametersDecodeErrorZ_free(struct LDKCResult_RouteParametersDecodeErrorZ _res);
10026 export function CResult_RouteParametersDecodeErrorZ_free(_res: bigint): void {
10027 if(!isWasmInitialized) {
10028 throw new Error("initializeWasm() must be awaited first!");
10030 const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_free(_res);
10031 // debug statements here
10033 // uint64_t CResult_RouteParametersDecodeErrorZ_clone_ptr(LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR arg);
10035 export function CResult_RouteParametersDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10036 if(!isWasmInitialized) {
10037 throw new Error("initializeWasm() must be awaited first!");
10039 const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone_ptr(arg);
10040 return nativeResponseValue;
10042 // struct LDKCResult_RouteParametersDecodeErrorZ CResult_RouteParametersDecodeErrorZ_clone(const struct LDKCResult_RouteParametersDecodeErrorZ *NONNULL_PTR orig);
10044 export function CResult_RouteParametersDecodeErrorZ_clone(orig: bigint): bigint {
10045 if(!isWasmInitialized) {
10046 throw new Error("initializeWasm() must be awaited first!");
10048 const nativeResponseValue = wasm.TS_CResult_RouteParametersDecodeErrorZ_clone(orig);
10049 return nativeResponseValue;
10051 // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
10053 export function CVec_u64Z_free(_res: number): void {
10054 if(!isWasmInitialized) {
10055 throw new Error("initializeWasm() must be awaited first!");
10057 const nativeResponseValue = wasm.TS_CVec_u64Z_free(_res);
10058 // debug statements here
10060 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_ok(struct LDKPaymentParameters o);
10062 export function CResult_PaymentParametersDecodeErrorZ_ok(o: bigint): bigint {
10063 if(!isWasmInitialized) {
10064 throw new Error("initializeWasm() must be awaited first!");
10066 const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_ok(o);
10067 return nativeResponseValue;
10069 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_err(struct LDKDecodeError e);
10071 export function CResult_PaymentParametersDecodeErrorZ_err(e: bigint): bigint {
10072 if(!isWasmInitialized) {
10073 throw new Error("initializeWasm() must be awaited first!");
10075 const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_err(e);
10076 return nativeResponseValue;
10078 // bool CResult_PaymentParametersDecodeErrorZ_is_ok(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR o);
10080 export function CResult_PaymentParametersDecodeErrorZ_is_ok(o: bigint): boolean {
10081 if(!isWasmInitialized) {
10082 throw new Error("initializeWasm() must be awaited first!");
10084 const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_is_ok(o);
10085 return nativeResponseValue;
10087 // void CResult_PaymentParametersDecodeErrorZ_free(struct LDKCResult_PaymentParametersDecodeErrorZ _res);
10089 export function CResult_PaymentParametersDecodeErrorZ_free(_res: bigint): void {
10090 if(!isWasmInitialized) {
10091 throw new Error("initializeWasm() must be awaited first!");
10093 const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_free(_res);
10094 // debug statements here
10096 // uint64_t CResult_PaymentParametersDecodeErrorZ_clone_ptr(LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR arg);
10098 export function CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10099 if(!isWasmInitialized) {
10100 throw new Error("initializeWasm() must be awaited first!");
10102 const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone_ptr(arg);
10103 return nativeResponseValue;
10105 // struct LDKCResult_PaymentParametersDecodeErrorZ CResult_PaymentParametersDecodeErrorZ_clone(const struct LDKCResult_PaymentParametersDecodeErrorZ *NONNULL_PTR orig);
10107 export function CResult_PaymentParametersDecodeErrorZ_clone(orig: bigint): bigint {
10108 if(!isWasmInitialized) {
10109 throw new Error("initializeWasm() must be awaited first!");
10111 const nativeResponseValue = wasm.TS_CResult_PaymentParametersDecodeErrorZ_clone(orig);
10112 return nativeResponseValue;
10114 // uint64_t C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR arg);
10116 export function C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(arg: bigint): bigint {
10117 if(!isWasmInitialized) {
10118 throw new Error("initializeWasm() must be awaited first!");
10120 const nativeResponseValue = wasm.TS_C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(arg);
10121 return nativeResponseValue;
10123 // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_clone(const struct LDKC2Tuple_BlindedPayInfoBlindedPathZ *NONNULL_PTR orig);
10125 export function C2Tuple_BlindedPayInfoBlindedPathZ_clone(orig: bigint): bigint {
10126 if(!isWasmInitialized) {
10127 throw new Error("initializeWasm() must be awaited first!");
10129 const nativeResponseValue = wasm.TS_C2Tuple_BlindedPayInfoBlindedPathZ_clone(orig);
10130 return nativeResponseValue;
10132 // struct LDKC2Tuple_BlindedPayInfoBlindedPathZ C2Tuple_BlindedPayInfoBlindedPathZ_new(struct LDKBlindedPayInfo a, struct LDKBlindedPath b);
10134 export function C2Tuple_BlindedPayInfoBlindedPathZ_new(a: bigint, b: bigint): bigint {
10135 if(!isWasmInitialized) {
10136 throw new Error("initializeWasm() must be awaited first!");
10138 const nativeResponseValue = wasm.TS_C2Tuple_BlindedPayInfoBlindedPathZ_new(a, b);
10139 return nativeResponseValue;
10141 // void C2Tuple_BlindedPayInfoBlindedPathZ_free(struct LDKC2Tuple_BlindedPayInfoBlindedPathZ _res);
10143 export function C2Tuple_BlindedPayInfoBlindedPathZ_free(_res: bigint): void {
10144 if(!isWasmInitialized) {
10145 throw new Error("initializeWasm() must be awaited first!");
10147 const nativeResponseValue = wasm.TS_C2Tuple_BlindedPayInfoBlindedPathZ_free(_res);
10148 // debug statements here
10150 // void CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ _res);
10152 export function CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(_res: number): void {
10153 if(!isWasmInitialized) {
10154 throw new Error("initializeWasm() must be awaited first!");
10156 const nativeResponseValue = wasm.TS_CVec_C2Tuple_BlindedPayInfoBlindedPathZZ_free(_res);
10157 // debug statements here
10159 // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
10161 export function CVec_RouteHintZ_free(_res: number): void {
10162 if(!isWasmInitialized) {
10163 throw new Error("initializeWasm() must be awaited first!");
10165 const nativeResponseValue = wasm.TS_CVec_RouteHintZ_free(_res);
10166 // debug statements here
10168 // void CVec_RouteHintHopZ_free(struct LDKCVec_RouteHintHopZ _res);
10170 export function CVec_RouteHintHopZ_free(_res: number): void {
10171 if(!isWasmInitialized) {
10172 throw new Error("initializeWasm() must be awaited first!");
10174 const nativeResponseValue = wasm.TS_CVec_RouteHintHopZ_free(_res);
10175 // debug statements here
10177 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_ok(struct LDKRouteHint o);
10179 export function CResult_RouteHintDecodeErrorZ_ok(o: bigint): bigint {
10180 if(!isWasmInitialized) {
10181 throw new Error("initializeWasm() must be awaited first!");
10183 const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_ok(o);
10184 return nativeResponseValue;
10186 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_err(struct LDKDecodeError e);
10188 export function CResult_RouteHintDecodeErrorZ_err(e: bigint): bigint {
10189 if(!isWasmInitialized) {
10190 throw new Error("initializeWasm() must be awaited first!");
10192 const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_err(e);
10193 return nativeResponseValue;
10195 // bool CResult_RouteHintDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR o);
10197 export function CResult_RouteHintDecodeErrorZ_is_ok(o: bigint): boolean {
10198 if(!isWasmInitialized) {
10199 throw new Error("initializeWasm() must be awaited first!");
10201 const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_is_ok(o);
10202 return nativeResponseValue;
10204 // void CResult_RouteHintDecodeErrorZ_free(struct LDKCResult_RouteHintDecodeErrorZ _res);
10206 export function CResult_RouteHintDecodeErrorZ_free(_res: bigint): void {
10207 if(!isWasmInitialized) {
10208 throw new Error("initializeWasm() must be awaited first!");
10210 const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_free(_res);
10211 // debug statements here
10213 // uint64_t CResult_RouteHintDecodeErrorZ_clone_ptr(LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR arg);
10215 export function CResult_RouteHintDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10216 if(!isWasmInitialized) {
10217 throw new Error("initializeWasm() must be awaited first!");
10219 const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone_ptr(arg);
10220 return nativeResponseValue;
10222 // struct LDKCResult_RouteHintDecodeErrorZ CResult_RouteHintDecodeErrorZ_clone(const struct LDKCResult_RouteHintDecodeErrorZ *NONNULL_PTR orig);
10224 export function CResult_RouteHintDecodeErrorZ_clone(orig: bigint): bigint {
10225 if(!isWasmInitialized) {
10226 throw new Error("initializeWasm() must be awaited first!");
10228 const nativeResponseValue = wasm.TS_CResult_RouteHintDecodeErrorZ_clone(orig);
10229 return nativeResponseValue;
10231 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_ok(struct LDKRouteHintHop o);
10233 export function CResult_RouteHintHopDecodeErrorZ_ok(o: bigint): bigint {
10234 if(!isWasmInitialized) {
10235 throw new Error("initializeWasm() must be awaited first!");
10237 const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_ok(o);
10238 return nativeResponseValue;
10240 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_err(struct LDKDecodeError e);
10242 export function CResult_RouteHintHopDecodeErrorZ_err(e: bigint): bigint {
10243 if(!isWasmInitialized) {
10244 throw new Error("initializeWasm() must be awaited first!");
10246 const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_err(e);
10247 return nativeResponseValue;
10249 // bool CResult_RouteHintHopDecodeErrorZ_is_ok(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR o);
10251 export function CResult_RouteHintHopDecodeErrorZ_is_ok(o: bigint): boolean {
10252 if(!isWasmInitialized) {
10253 throw new Error("initializeWasm() must be awaited first!");
10255 const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_is_ok(o);
10256 return nativeResponseValue;
10258 // void CResult_RouteHintHopDecodeErrorZ_free(struct LDKCResult_RouteHintHopDecodeErrorZ _res);
10260 export function CResult_RouteHintHopDecodeErrorZ_free(_res: bigint): void {
10261 if(!isWasmInitialized) {
10262 throw new Error("initializeWasm() must be awaited first!");
10264 const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_free(_res);
10265 // debug statements here
10267 // uint64_t CResult_RouteHintHopDecodeErrorZ_clone_ptr(LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR arg);
10269 export function CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10270 if(!isWasmInitialized) {
10271 throw new Error("initializeWasm() must be awaited first!");
10273 const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone_ptr(arg);
10274 return nativeResponseValue;
10276 // struct LDKCResult_RouteHintHopDecodeErrorZ CResult_RouteHintHopDecodeErrorZ_clone(const struct LDKCResult_RouteHintHopDecodeErrorZ *NONNULL_PTR orig);
10278 export function CResult_RouteHintHopDecodeErrorZ_clone(orig: bigint): bigint {
10279 if(!isWasmInitialized) {
10280 throw new Error("initializeWasm() must be awaited first!");
10282 const nativeResponseValue = wasm.TS_CResult_RouteHintHopDecodeErrorZ_clone(orig);
10283 return nativeResponseValue;
10285 // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
10287 export function CVec_PublicKeyZ_free(_res: number): void {
10288 if(!isWasmInitialized) {
10289 throw new Error("initializeWasm() must be awaited first!");
10291 const nativeResponseValue = wasm.TS_CVec_PublicKeyZ_free(_res);
10292 // debug statements here
10294 // uint64_t C2Tuple_usizeTransactionZ_clone_ptr(LDKC2Tuple_usizeTransactionZ *NONNULL_PTR arg);
10296 export function C2Tuple_usizeTransactionZ_clone_ptr(arg: bigint): bigint {
10297 if(!isWasmInitialized) {
10298 throw new Error("initializeWasm() must be awaited first!");
10300 const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone_ptr(arg);
10301 return nativeResponseValue;
10303 // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_clone(const struct LDKC2Tuple_usizeTransactionZ *NONNULL_PTR orig);
10305 export function C2Tuple_usizeTransactionZ_clone(orig: bigint): bigint {
10306 if(!isWasmInitialized) {
10307 throw new Error("initializeWasm() must be awaited first!");
10309 const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_clone(orig);
10310 return nativeResponseValue;
10312 // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
10314 export function C2Tuple_usizeTransactionZ_new(a: number, b: number): bigint {
10315 if(!isWasmInitialized) {
10316 throw new Error("initializeWasm() must be awaited first!");
10318 const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_new(a, b);
10319 return nativeResponseValue;
10321 // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
10323 export function C2Tuple_usizeTransactionZ_free(_res: bigint): void {
10324 if(!isWasmInitialized) {
10325 throw new Error("initializeWasm() must be awaited first!");
10327 const nativeResponseValue = wasm.TS_C2Tuple_usizeTransactionZ_free(_res);
10328 // debug statements here
10330 // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
10332 export function CVec_C2Tuple_usizeTransactionZZ_free(_res: number): void {
10333 if(!isWasmInitialized) {
10334 throw new Error("initializeWasm() must be awaited first!");
10336 const nativeResponseValue = wasm.TS_CVec_C2Tuple_usizeTransactionZZ_free(_res);
10337 // debug statements here
10339 // uint64_t C2Tuple_TxidBlockHashZ_clone_ptr(LDKC2Tuple_TxidBlockHashZ *NONNULL_PTR arg);
10341 export function C2Tuple_TxidBlockHashZ_clone_ptr(arg: bigint): bigint {
10342 if(!isWasmInitialized) {
10343 throw new Error("initializeWasm() must be awaited first!");
10345 const nativeResponseValue = wasm.TS_C2Tuple_TxidBlockHashZ_clone_ptr(arg);
10346 return nativeResponseValue;
10348 // struct LDKC2Tuple_TxidBlockHashZ C2Tuple_TxidBlockHashZ_clone(const struct LDKC2Tuple_TxidBlockHashZ *NONNULL_PTR orig);
10350 export function C2Tuple_TxidBlockHashZ_clone(orig: bigint): bigint {
10351 if(!isWasmInitialized) {
10352 throw new Error("initializeWasm() must be awaited first!");
10354 const nativeResponseValue = wasm.TS_C2Tuple_TxidBlockHashZ_clone(orig);
10355 return nativeResponseValue;
10357 // struct LDKC2Tuple_TxidBlockHashZ C2Tuple_TxidBlockHashZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
10359 export function C2Tuple_TxidBlockHashZ_new(a: number, b: number): bigint {
10360 if(!isWasmInitialized) {
10361 throw new Error("initializeWasm() must be awaited first!");
10363 const nativeResponseValue = wasm.TS_C2Tuple_TxidBlockHashZ_new(a, b);
10364 return nativeResponseValue;
10366 // void C2Tuple_TxidBlockHashZ_free(struct LDKC2Tuple_TxidBlockHashZ _res);
10368 export function C2Tuple_TxidBlockHashZ_free(_res: bigint): void {
10369 if(!isWasmInitialized) {
10370 throw new Error("initializeWasm() must be awaited first!");
10372 const nativeResponseValue = wasm.TS_C2Tuple_TxidBlockHashZ_free(_res);
10373 // debug statements here
10375 // void CVec_C2Tuple_TxidBlockHashZZ_free(struct LDKCVec_C2Tuple_TxidBlockHashZZ _res);
10377 export function CVec_C2Tuple_TxidBlockHashZZ_free(_res: number): void {
10378 if(!isWasmInitialized) {
10379 throw new Error("initializeWasm() must be awaited first!");
10381 const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidBlockHashZZ_free(_res);
10382 // debug statements here
10384 // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
10386 export function CVec_MonitorEventZ_free(_res: number): void {
10387 if(!isWasmInitialized) {
10388 throw new Error("initializeWasm() must be awaited first!");
10390 const nativeResponseValue = wasm.TS_CVec_MonitorEventZ_free(_res);
10391 // debug statements here
10393 // uint64_t C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR arg);
10395 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(arg: bigint): bigint {
10396 if(!isWasmInitialized) {
10397 throw new Error("initializeWasm() must be awaited first!");
10399 const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(arg);
10400 return nativeResponseValue;
10402 // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(const struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ *NONNULL_PTR orig);
10404 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(orig: bigint): bigint {
10405 if(!isWasmInitialized) {
10406 throw new Error("initializeWasm() must be awaited first!");
10408 const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(orig);
10409 return nativeResponseValue;
10411 // struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorEventZ b, struct LDKPublicKey c);
10413 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(a: bigint, b: number, c: number): bigint {
10414 if(!isWasmInitialized) {
10415 throw new Error("initializeWasm() must be awaited first!");
10417 const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(a, b, c);
10418 return nativeResponseValue;
10420 // void C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(struct LDKC3Tuple_OutPointCVec_MonitorEventZPublicKeyZ _res);
10422 export function C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(_res: bigint): void {
10423 if(!isWasmInitialized) {
10424 throw new Error("initializeWasm() must be awaited first!");
10426 const nativeResponseValue = wasm.TS_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(_res);
10427 // debug statements here
10429 // void CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(struct LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ _res);
10431 export function CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(_res: number): void {
10432 if(!isWasmInitialized) {
10433 throw new Error("initializeWasm() must be awaited first!");
10435 const nativeResponseValue = wasm.TS_CVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ_free(_res);
10436 // debug statements here
10438 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_ok(struct LDKFixedPenaltyScorer o);
10440 export function CResult_FixedPenaltyScorerDecodeErrorZ_ok(o: bigint): bigint {
10441 if(!isWasmInitialized) {
10442 throw new Error("initializeWasm() must be awaited first!");
10444 const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_ok(o);
10445 return nativeResponseValue;
10447 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_err(struct LDKDecodeError e);
10449 export function CResult_FixedPenaltyScorerDecodeErrorZ_err(e: bigint): bigint {
10450 if(!isWasmInitialized) {
10451 throw new Error("initializeWasm() must be awaited first!");
10453 const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_err(e);
10454 return nativeResponseValue;
10456 // bool CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR o);
10458 export function CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o: bigint): boolean {
10459 if(!isWasmInitialized) {
10460 throw new Error("initializeWasm() must be awaited first!");
10462 const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_is_ok(o);
10463 return nativeResponseValue;
10465 // void CResult_FixedPenaltyScorerDecodeErrorZ_free(struct LDKCResult_FixedPenaltyScorerDecodeErrorZ _res);
10467 export function CResult_FixedPenaltyScorerDecodeErrorZ_free(_res: bigint): void {
10468 if(!isWasmInitialized) {
10469 throw new Error("initializeWasm() must be awaited first!");
10471 const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_free(_res);
10472 // debug statements here
10474 // uint64_t CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR arg);
10476 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10477 if(!isWasmInitialized) {
10478 throw new Error("initializeWasm() must be awaited first!");
10480 const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone_ptr(arg);
10481 return nativeResponseValue;
10483 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ CResult_FixedPenaltyScorerDecodeErrorZ_clone(const struct LDKCResult_FixedPenaltyScorerDecodeErrorZ *NONNULL_PTR orig);
10485 export function CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig: bigint): bigint {
10486 if(!isWasmInitialized) {
10487 throw new Error("initializeWasm() must be awaited first!");
10489 const nativeResponseValue = wasm.TS_CResult_FixedPenaltyScorerDecodeErrorZ_clone(orig);
10490 return nativeResponseValue;
10492 // uint64_t C2Tuple_u64u64Z_clone_ptr(LDKC2Tuple_u64u64Z *NONNULL_PTR arg);
10494 export function C2Tuple_u64u64Z_clone_ptr(arg: bigint): bigint {
10495 if(!isWasmInitialized) {
10496 throw new Error("initializeWasm() must be awaited first!");
10498 const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_clone_ptr(arg);
10499 return nativeResponseValue;
10501 // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_clone(const struct LDKC2Tuple_u64u64Z *NONNULL_PTR orig);
10503 export function C2Tuple_u64u64Z_clone(orig: bigint): bigint {
10504 if(!isWasmInitialized) {
10505 throw new Error("initializeWasm() must be awaited first!");
10507 const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_clone(orig);
10508 return nativeResponseValue;
10510 // struct LDKC2Tuple_u64u64Z C2Tuple_u64u64Z_new(uint64_t a, uint64_t b);
10512 export function C2Tuple_u64u64Z_new(a: bigint, b: bigint): bigint {
10513 if(!isWasmInitialized) {
10514 throw new Error("initializeWasm() must be awaited first!");
10516 const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_new(a, b);
10517 return nativeResponseValue;
10519 // void C2Tuple_u64u64Z_free(struct LDKC2Tuple_u64u64Z _res);
10521 export function C2Tuple_u64u64Z_free(_res: bigint): void {
10522 if(!isWasmInitialized) {
10523 throw new Error("initializeWasm() must be awaited first!");
10525 const nativeResponseValue = wasm.TS_C2Tuple_u64u64Z_free(_res);
10526 // debug statements here
10528 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_some(struct LDKC2Tuple_u64u64Z o);
10530 export function COption_C2Tuple_u64u64ZZ_some(o: bigint): bigint {
10531 if(!isWasmInitialized) {
10532 throw new Error("initializeWasm() must be awaited first!");
10534 const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_some(o);
10535 return nativeResponseValue;
10537 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_none(void);
10539 export function COption_C2Tuple_u64u64ZZ_none(): bigint {
10540 if(!isWasmInitialized) {
10541 throw new Error("initializeWasm() must be awaited first!");
10543 const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_none();
10544 return nativeResponseValue;
10546 // void COption_C2Tuple_u64u64ZZ_free(struct LDKCOption_C2Tuple_u64u64ZZ _res);
10548 export function COption_C2Tuple_u64u64ZZ_free(_res: bigint): void {
10549 if(!isWasmInitialized) {
10550 throw new Error("initializeWasm() must be awaited first!");
10552 const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_free(_res);
10553 // debug statements here
10555 // uint64_t COption_C2Tuple_u64u64ZZ_clone_ptr(LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR arg);
10557 export function COption_C2Tuple_u64u64ZZ_clone_ptr(arg: bigint): bigint {
10558 if(!isWasmInitialized) {
10559 throw new Error("initializeWasm() must be awaited first!");
10561 const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_clone_ptr(arg);
10562 return nativeResponseValue;
10564 // struct LDKCOption_C2Tuple_u64u64ZZ COption_C2Tuple_u64u64ZZ_clone(const struct LDKCOption_C2Tuple_u64u64ZZ *NONNULL_PTR orig);
10566 export function COption_C2Tuple_u64u64ZZ_clone(orig: bigint): bigint {
10567 if(!isWasmInitialized) {
10568 throw new Error("initializeWasm() must be awaited first!");
10570 const nativeResponseValue = wasm.TS_COption_C2Tuple_u64u64ZZ_clone(orig);
10571 return nativeResponseValue;
10573 // uint64_t C2Tuple_Z_clone_ptr(LDKC2Tuple_Z *NONNULL_PTR arg);
10575 export function C2Tuple_Z_clone_ptr(arg: bigint): bigint {
10576 if(!isWasmInitialized) {
10577 throw new Error("initializeWasm() must be awaited first!");
10579 const nativeResponseValue = wasm.TS_C2Tuple_Z_clone_ptr(arg);
10580 return nativeResponseValue;
10582 // struct LDKC2Tuple_Z C2Tuple_Z_clone(const struct LDKC2Tuple_Z *NONNULL_PTR orig);
10584 export function C2Tuple_Z_clone(orig: bigint): bigint {
10585 if(!isWasmInitialized) {
10586 throw new Error("initializeWasm() must be awaited first!");
10588 const nativeResponseValue = wasm.TS_C2Tuple_Z_clone(orig);
10589 return nativeResponseValue;
10591 // struct LDKC2Tuple_Z C2Tuple_Z_new(struct LDKEightU16s a, struct LDKEightU16s b);
10593 export function C2Tuple_Z_new(a: number, b: number): bigint {
10594 if(!isWasmInitialized) {
10595 throw new Error("initializeWasm() must be awaited first!");
10597 const nativeResponseValue = wasm.TS_C2Tuple_Z_new(a, b);
10598 return nativeResponseValue;
10600 // void C2Tuple_Z_free(struct LDKC2Tuple_Z _res);
10602 export function C2Tuple_Z_free(_res: bigint): void {
10603 if(!isWasmInitialized) {
10604 throw new Error("initializeWasm() must be awaited first!");
10606 const nativeResponseValue = wasm.TS_C2Tuple_Z_free(_res);
10607 // debug statements here
10609 // uint64_t C2Tuple__u168_u168Z_clone_ptr(LDKC2Tuple__u168_u168Z *NONNULL_PTR arg);
10611 export function C2Tuple__u168_u168Z_clone_ptr(arg: bigint): bigint {
10612 if(!isWasmInitialized) {
10613 throw new Error("initializeWasm() must be awaited first!");
10615 const nativeResponseValue = wasm.TS_C2Tuple__u168_u168Z_clone_ptr(arg);
10616 return nativeResponseValue;
10618 // struct LDKC2Tuple__u168_u168Z C2Tuple__u168_u168Z_clone(const struct LDKC2Tuple__u168_u168Z *NONNULL_PTR orig);
10620 export function C2Tuple__u168_u168Z_clone(orig: bigint): bigint {
10621 if(!isWasmInitialized) {
10622 throw new Error("initializeWasm() must be awaited first!");
10624 const nativeResponseValue = wasm.TS_C2Tuple__u168_u168Z_clone(orig);
10625 return nativeResponseValue;
10627 // struct LDKC2Tuple__u168_u168Z C2Tuple__u168_u168Z_new(struct LDKEightU16s a, struct LDKEightU16s b);
10629 export function C2Tuple__u168_u168Z_new(a: number, b: number): bigint {
10630 if(!isWasmInitialized) {
10631 throw new Error("initializeWasm() must be awaited first!");
10633 const nativeResponseValue = wasm.TS_C2Tuple__u168_u168Z_new(a, b);
10634 return nativeResponseValue;
10636 // void C2Tuple__u168_u168Z_free(struct LDKC2Tuple__u168_u168Z _res);
10638 export function C2Tuple__u168_u168Z_free(_res: bigint): void {
10639 if(!isWasmInitialized) {
10640 throw new Error("initializeWasm() must be awaited first!");
10642 const nativeResponseValue = wasm.TS_C2Tuple__u168_u168Z_free(_res);
10643 // debug statements here
10645 // struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_some(struct LDKC2Tuple__u168_u168Z o);
10647 export function COption_C2Tuple_EightU16sEightU16sZZ_some(o: bigint): bigint {
10648 if(!isWasmInitialized) {
10649 throw new Error("initializeWasm() must be awaited first!");
10651 const nativeResponseValue = wasm.TS_COption_C2Tuple_EightU16sEightU16sZZ_some(o);
10652 return nativeResponseValue;
10654 // struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_none(void);
10656 export function COption_C2Tuple_EightU16sEightU16sZZ_none(): bigint {
10657 if(!isWasmInitialized) {
10658 throw new Error("initializeWasm() must be awaited first!");
10660 const nativeResponseValue = wasm.TS_COption_C2Tuple_EightU16sEightU16sZZ_none();
10661 return nativeResponseValue;
10663 // void COption_C2Tuple_EightU16sEightU16sZZ_free(struct LDKCOption_C2Tuple_EightU16sEightU16sZZ _res);
10665 export function COption_C2Tuple_EightU16sEightU16sZZ_free(_res: bigint): void {
10666 if(!isWasmInitialized) {
10667 throw new Error("initializeWasm() must be awaited first!");
10669 const nativeResponseValue = wasm.TS_COption_C2Tuple_EightU16sEightU16sZZ_free(_res);
10670 // debug statements here
10672 // uint64_t COption_C2Tuple_EightU16sEightU16sZZ_clone_ptr(LDKCOption_C2Tuple_EightU16sEightU16sZZ *NONNULL_PTR arg);
10674 export function COption_C2Tuple_EightU16sEightU16sZZ_clone_ptr(arg: bigint): bigint {
10675 if(!isWasmInitialized) {
10676 throw new Error("initializeWasm() must be awaited first!");
10678 const nativeResponseValue = wasm.TS_COption_C2Tuple_EightU16sEightU16sZZ_clone_ptr(arg);
10679 return nativeResponseValue;
10681 // struct LDKCOption_C2Tuple_EightU16sEightU16sZZ COption_C2Tuple_EightU16sEightU16sZZ_clone(const struct LDKCOption_C2Tuple_EightU16sEightU16sZZ *NONNULL_PTR orig);
10683 export function COption_C2Tuple_EightU16sEightU16sZZ_clone(orig: bigint): bigint {
10684 if(!isWasmInitialized) {
10685 throw new Error("initializeWasm() must be awaited first!");
10687 const nativeResponseValue = wasm.TS_COption_C2Tuple_EightU16sEightU16sZZ_clone(orig);
10688 return nativeResponseValue;
10690 // void CVec_NodeIdZ_free(struct LDKCVec_NodeIdZ _res);
10692 export function CVec_NodeIdZ_free(_res: number): void {
10693 if(!isWasmInitialized) {
10694 throw new Error("initializeWasm() must be awaited first!");
10696 const nativeResponseValue = wasm.TS_CVec_NodeIdZ_free(_res);
10697 // debug statements here
10699 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_ok(struct LDKProbabilisticScorer o);
10701 export function CResult_ProbabilisticScorerDecodeErrorZ_ok(o: bigint): bigint {
10702 if(!isWasmInitialized) {
10703 throw new Error("initializeWasm() must be awaited first!");
10705 const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_ok(o);
10706 return nativeResponseValue;
10708 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ CResult_ProbabilisticScorerDecodeErrorZ_err(struct LDKDecodeError e);
10710 export function CResult_ProbabilisticScorerDecodeErrorZ_err(e: bigint): bigint {
10711 if(!isWasmInitialized) {
10712 throw new Error("initializeWasm() must be awaited first!");
10714 const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_err(e);
10715 return nativeResponseValue;
10717 // bool CResult_ProbabilisticScorerDecodeErrorZ_is_ok(const struct LDKCResult_ProbabilisticScorerDecodeErrorZ *NONNULL_PTR o);
10719 export function CResult_ProbabilisticScorerDecodeErrorZ_is_ok(o: bigint): boolean {
10720 if(!isWasmInitialized) {
10721 throw new Error("initializeWasm() must be awaited first!");
10723 const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_is_ok(o);
10724 return nativeResponseValue;
10726 // void CResult_ProbabilisticScorerDecodeErrorZ_free(struct LDKCResult_ProbabilisticScorerDecodeErrorZ _res);
10728 export function CResult_ProbabilisticScorerDecodeErrorZ_free(_res: bigint): void {
10729 if(!isWasmInitialized) {
10730 throw new Error("initializeWasm() must be awaited first!");
10732 const nativeResponseValue = wasm.TS_CResult_ProbabilisticScorerDecodeErrorZ_free(_res);
10733 // debug statements here
10735 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
10737 export function CResult_InitFeaturesDecodeErrorZ_ok(o: bigint): bigint {
10738 if(!isWasmInitialized) {
10739 throw new Error("initializeWasm() must be awaited first!");
10741 const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_ok(o);
10742 return nativeResponseValue;
10744 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
10746 export function CResult_InitFeaturesDecodeErrorZ_err(e: bigint): bigint {
10747 if(!isWasmInitialized) {
10748 throw new Error("initializeWasm() must be awaited first!");
10750 const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_err(e);
10751 return nativeResponseValue;
10753 // bool CResult_InitFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR o);
10755 export function CResult_InitFeaturesDecodeErrorZ_is_ok(o: bigint): boolean {
10756 if(!isWasmInitialized) {
10757 throw new Error("initializeWasm() must be awaited first!");
10759 const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_is_ok(o);
10760 return nativeResponseValue;
10762 // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
10764 export function CResult_InitFeaturesDecodeErrorZ_free(_res: bigint): void {
10765 if(!isWasmInitialized) {
10766 throw new Error("initializeWasm() must be awaited first!");
10768 const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_free(_res);
10769 // debug statements here
10771 // uint64_t CResult_InitFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR arg);
10773 export function CResult_InitFeaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10774 if(!isWasmInitialized) {
10775 throw new Error("initializeWasm() must be awaited first!");
10777 const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_clone_ptr(arg);
10778 return nativeResponseValue;
10780 // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_clone(const struct LDKCResult_InitFeaturesDecodeErrorZ *NONNULL_PTR orig);
10782 export function CResult_InitFeaturesDecodeErrorZ_clone(orig: bigint): bigint {
10783 if(!isWasmInitialized) {
10784 throw new Error("initializeWasm() must be awaited first!");
10786 const nativeResponseValue = wasm.TS_CResult_InitFeaturesDecodeErrorZ_clone(orig);
10787 return nativeResponseValue;
10789 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
10791 export function CResult_ChannelFeaturesDecodeErrorZ_ok(o: bigint): bigint {
10792 if(!isWasmInitialized) {
10793 throw new Error("initializeWasm() must be awaited first!");
10795 const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_ok(o);
10796 return nativeResponseValue;
10798 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
10800 export function CResult_ChannelFeaturesDecodeErrorZ_err(e: bigint): bigint {
10801 if(!isWasmInitialized) {
10802 throw new Error("initializeWasm() must be awaited first!");
10804 const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_err(e);
10805 return nativeResponseValue;
10807 // bool CResult_ChannelFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR o);
10809 export function CResult_ChannelFeaturesDecodeErrorZ_is_ok(o: bigint): boolean {
10810 if(!isWasmInitialized) {
10811 throw new Error("initializeWasm() must be awaited first!");
10813 const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_is_ok(o);
10814 return nativeResponseValue;
10816 // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
10818 export function CResult_ChannelFeaturesDecodeErrorZ_free(_res: bigint): void {
10819 if(!isWasmInitialized) {
10820 throw new Error("initializeWasm() must be awaited first!");
10822 const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_free(_res);
10823 // debug statements here
10825 // uint64_t CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR arg);
10827 export function CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10828 if(!isWasmInitialized) {
10829 throw new Error("initializeWasm() must be awaited first!");
10831 const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_clone_ptr(arg);
10832 return nativeResponseValue;
10834 // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelFeaturesDecodeErrorZ *NONNULL_PTR orig);
10836 export function CResult_ChannelFeaturesDecodeErrorZ_clone(orig: bigint): bigint {
10837 if(!isWasmInitialized) {
10838 throw new Error("initializeWasm() must be awaited first!");
10840 const nativeResponseValue = wasm.TS_CResult_ChannelFeaturesDecodeErrorZ_clone(orig);
10841 return nativeResponseValue;
10843 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
10845 export function CResult_NodeFeaturesDecodeErrorZ_ok(o: bigint): bigint {
10846 if(!isWasmInitialized) {
10847 throw new Error("initializeWasm() must be awaited first!");
10849 const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_ok(o);
10850 return nativeResponseValue;
10852 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
10854 export function CResult_NodeFeaturesDecodeErrorZ_err(e: bigint): bigint {
10855 if(!isWasmInitialized) {
10856 throw new Error("initializeWasm() must be awaited first!");
10858 const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_err(e);
10859 return nativeResponseValue;
10861 // bool CResult_NodeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR o);
10863 export function CResult_NodeFeaturesDecodeErrorZ_is_ok(o: bigint): boolean {
10864 if(!isWasmInitialized) {
10865 throw new Error("initializeWasm() must be awaited first!");
10867 const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_is_ok(o);
10868 return nativeResponseValue;
10870 // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
10872 export function CResult_NodeFeaturesDecodeErrorZ_free(_res: bigint): void {
10873 if(!isWasmInitialized) {
10874 throw new Error("initializeWasm() must be awaited first!");
10876 const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_free(_res);
10877 // debug statements here
10879 // uint64_t CResult_NodeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR arg);
10881 export function CResult_NodeFeaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10882 if(!isWasmInitialized) {
10883 throw new Error("initializeWasm() must be awaited first!");
10885 const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_clone_ptr(arg);
10886 return nativeResponseValue;
10888 // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_clone(const struct LDKCResult_NodeFeaturesDecodeErrorZ *NONNULL_PTR orig);
10890 export function CResult_NodeFeaturesDecodeErrorZ_clone(orig: bigint): bigint {
10891 if(!isWasmInitialized) {
10892 throw new Error("initializeWasm() must be awaited first!");
10894 const nativeResponseValue = wasm.TS_CResult_NodeFeaturesDecodeErrorZ_clone(orig);
10895 return nativeResponseValue;
10897 // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_ok(struct LDKInvoiceFeatures o);
10899 export function CResult_InvoiceFeaturesDecodeErrorZ_ok(o: bigint): bigint {
10900 if(!isWasmInitialized) {
10901 throw new Error("initializeWasm() must be awaited first!");
10903 const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_ok(o);
10904 return nativeResponseValue;
10906 // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
10908 export function CResult_InvoiceFeaturesDecodeErrorZ_err(e: bigint): bigint {
10909 if(!isWasmInitialized) {
10910 throw new Error("initializeWasm() must be awaited first!");
10912 const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_err(e);
10913 return nativeResponseValue;
10915 // bool CResult_InvoiceFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR o);
10917 export function CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o: bigint): boolean {
10918 if(!isWasmInitialized) {
10919 throw new Error("initializeWasm() must be awaited first!");
10921 const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_is_ok(o);
10922 return nativeResponseValue;
10924 // void CResult_InvoiceFeaturesDecodeErrorZ_free(struct LDKCResult_InvoiceFeaturesDecodeErrorZ _res);
10926 export function CResult_InvoiceFeaturesDecodeErrorZ_free(_res: bigint): void {
10927 if(!isWasmInitialized) {
10928 throw new Error("initializeWasm() must be awaited first!");
10930 const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_free(_res);
10931 // debug statements here
10933 // uint64_t CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR arg);
10935 export function CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10936 if(!isWasmInitialized) {
10937 throw new Error("initializeWasm() must be awaited first!");
10939 const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_clone_ptr(arg);
10940 return nativeResponseValue;
10942 // struct LDKCResult_InvoiceFeaturesDecodeErrorZ CResult_InvoiceFeaturesDecodeErrorZ_clone(const struct LDKCResult_InvoiceFeaturesDecodeErrorZ *NONNULL_PTR orig);
10944 export function CResult_InvoiceFeaturesDecodeErrorZ_clone(orig: bigint): bigint {
10945 if(!isWasmInitialized) {
10946 throw new Error("initializeWasm() must be awaited first!");
10948 const nativeResponseValue = wasm.TS_CResult_InvoiceFeaturesDecodeErrorZ_clone(orig);
10949 return nativeResponseValue;
10951 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_ok(struct LDKBlindedHopFeatures o);
10953 export function CResult_BlindedHopFeaturesDecodeErrorZ_ok(o: bigint): bigint {
10954 if(!isWasmInitialized) {
10955 throw new Error("initializeWasm() must be awaited first!");
10957 const nativeResponseValue = wasm.TS_CResult_BlindedHopFeaturesDecodeErrorZ_ok(o);
10958 return nativeResponseValue;
10960 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
10962 export function CResult_BlindedHopFeaturesDecodeErrorZ_err(e: bigint): bigint {
10963 if(!isWasmInitialized) {
10964 throw new Error("initializeWasm() must be awaited first!");
10966 const nativeResponseValue = wasm.TS_CResult_BlindedHopFeaturesDecodeErrorZ_err(e);
10967 return nativeResponseValue;
10969 // bool CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR o);
10971 export function CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(o: bigint): boolean {
10972 if(!isWasmInitialized) {
10973 throw new Error("initializeWasm() must be awaited first!");
10975 const nativeResponseValue = wasm.TS_CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(o);
10976 return nativeResponseValue;
10978 // void CResult_BlindedHopFeaturesDecodeErrorZ_free(struct LDKCResult_BlindedHopFeaturesDecodeErrorZ _res);
10980 export function CResult_BlindedHopFeaturesDecodeErrorZ_free(_res: bigint): void {
10981 if(!isWasmInitialized) {
10982 throw new Error("initializeWasm() must be awaited first!");
10984 const nativeResponseValue = wasm.TS_CResult_BlindedHopFeaturesDecodeErrorZ_free(_res);
10985 // debug statements here
10987 // uint64_t CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR arg);
10989 export function CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
10990 if(!isWasmInitialized) {
10991 throw new Error("initializeWasm() must be awaited first!");
10993 const nativeResponseValue = wasm.TS_CResult_BlindedHopFeaturesDecodeErrorZ_clone_ptr(arg);
10994 return nativeResponseValue;
10996 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ CResult_BlindedHopFeaturesDecodeErrorZ_clone(const struct LDKCResult_BlindedHopFeaturesDecodeErrorZ *NONNULL_PTR orig);
10998 export function CResult_BlindedHopFeaturesDecodeErrorZ_clone(orig: bigint): bigint {
10999 if(!isWasmInitialized) {
11000 throw new Error("initializeWasm() must be awaited first!");
11002 const nativeResponseValue = wasm.TS_CResult_BlindedHopFeaturesDecodeErrorZ_clone(orig);
11003 return nativeResponseValue;
11005 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_ok(struct LDKChannelTypeFeatures o);
11007 export function CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o: bigint): bigint {
11008 if(!isWasmInitialized) {
11009 throw new Error("initializeWasm() must be awaited first!");
11011 const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_ok(o);
11012 return nativeResponseValue;
11014 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
11016 export function CResult_ChannelTypeFeaturesDecodeErrorZ_err(e: bigint): bigint {
11017 if(!isWasmInitialized) {
11018 throw new Error("initializeWasm() must be awaited first!");
11020 const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_err(e);
11021 return nativeResponseValue;
11023 // bool CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR o);
11025 export function CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o: bigint): boolean {
11026 if(!isWasmInitialized) {
11027 throw new Error("initializeWasm() must be awaited first!");
11029 const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_is_ok(o);
11030 return nativeResponseValue;
11032 // void CResult_ChannelTypeFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ _res);
11034 export function CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res: bigint): void {
11035 if(!isWasmInitialized) {
11036 throw new Error("initializeWasm() must be awaited first!");
11038 const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_free(_res);
11039 // debug statements here
11041 // uint64_t CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR arg);
11043 export function CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
11044 if(!isWasmInitialized) {
11045 throw new Error("initializeWasm() must be awaited first!");
11047 const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_clone_ptr(arg);
11048 return nativeResponseValue;
11050 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ CResult_ChannelTypeFeaturesDecodeErrorZ_clone(const struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ *NONNULL_PTR orig);
11052 export function CResult_ChannelTypeFeaturesDecodeErrorZ_clone(orig: bigint): bigint {
11053 if(!isWasmInitialized) {
11054 throw new Error("initializeWasm() must be awaited first!");
11056 const nativeResponseValue = wasm.TS_CResult_ChannelTypeFeaturesDecodeErrorZ_clone(orig);
11057 return nativeResponseValue;
11059 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_ok(struct LDKPaymentPurpose o);
11061 export function CResult_PaymentPurposeDecodeErrorZ_ok(o: bigint): bigint {
11062 if(!isWasmInitialized) {
11063 throw new Error("initializeWasm() must be awaited first!");
11065 const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_ok(o);
11066 return nativeResponseValue;
11068 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_err(struct LDKDecodeError e);
11070 export function CResult_PaymentPurposeDecodeErrorZ_err(e: bigint): bigint {
11071 if(!isWasmInitialized) {
11072 throw new Error("initializeWasm() must be awaited first!");
11074 const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_err(e);
11075 return nativeResponseValue;
11077 // bool CResult_PaymentPurposeDecodeErrorZ_is_ok(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR o);
11079 export function CResult_PaymentPurposeDecodeErrorZ_is_ok(o: bigint): boolean {
11080 if(!isWasmInitialized) {
11081 throw new Error("initializeWasm() must be awaited first!");
11083 const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_is_ok(o);
11084 return nativeResponseValue;
11086 // void CResult_PaymentPurposeDecodeErrorZ_free(struct LDKCResult_PaymentPurposeDecodeErrorZ _res);
11088 export function CResult_PaymentPurposeDecodeErrorZ_free(_res: bigint): void {
11089 if(!isWasmInitialized) {
11090 throw new Error("initializeWasm() must be awaited first!");
11092 const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_free(_res);
11093 // debug statements here
11095 // uint64_t CResult_PaymentPurposeDecodeErrorZ_clone_ptr(LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR arg);
11097 export function CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg: bigint): bigint {
11098 if(!isWasmInitialized) {
11099 throw new Error("initializeWasm() must be awaited first!");
11101 const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone_ptr(arg);
11102 return nativeResponseValue;
11104 // struct LDKCResult_PaymentPurposeDecodeErrorZ CResult_PaymentPurposeDecodeErrorZ_clone(const struct LDKCResult_PaymentPurposeDecodeErrorZ *NONNULL_PTR orig);
11106 export function CResult_PaymentPurposeDecodeErrorZ_clone(orig: bigint): bigint {
11107 if(!isWasmInitialized) {
11108 throw new Error("initializeWasm() must be awaited first!");
11110 const nativeResponseValue = wasm.TS_CResult_PaymentPurposeDecodeErrorZ_clone(orig);
11111 return nativeResponseValue;
11113 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_some(struct LDKNetworkUpdate o);
11115 export function COption_NetworkUpdateZ_some(o: bigint): bigint {
11116 if(!isWasmInitialized) {
11117 throw new Error("initializeWasm() must be awaited first!");
11119 const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_some(o);
11120 return nativeResponseValue;
11122 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_none(void);
11124 export function COption_NetworkUpdateZ_none(): bigint {
11125 if(!isWasmInitialized) {
11126 throw new Error("initializeWasm() must be awaited first!");
11128 const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_none();
11129 return nativeResponseValue;
11131 // void COption_NetworkUpdateZ_free(struct LDKCOption_NetworkUpdateZ _res);
11133 export function COption_NetworkUpdateZ_free(_res: bigint): void {
11134 if(!isWasmInitialized) {
11135 throw new Error("initializeWasm() must be awaited first!");
11137 const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_free(_res);
11138 // debug statements here
11140 // uint64_t COption_NetworkUpdateZ_clone_ptr(LDKCOption_NetworkUpdateZ *NONNULL_PTR arg);
11142 export function COption_NetworkUpdateZ_clone_ptr(arg: bigint): bigint {
11143 if(!isWasmInitialized) {
11144 throw new Error("initializeWasm() must be awaited first!");
11146 const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone_ptr(arg);
11147 return nativeResponseValue;
11149 // struct LDKCOption_NetworkUpdateZ COption_NetworkUpdateZ_clone(const struct LDKCOption_NetworkUpdateZ *NONNULL_PTR orig);
11151 export function COption_NetworkUpdateZ_clone(orig: bigint): bigint {
11152 if(!isWasmInitialized) {
11153 throw new Error("initializeWasm() must be awaited first!");
11155 const nativeResponseValue = wasm.TS_COption_NetworkUpdateZ_clone(orig);
11156 return nativeResponseValue;
11158 // struct LDKCOption_PathFailureZ COption_PathFailureZ_some(struct LDKPathFailure o);
11160 export function COption_PathFailureZ_some(o: bigint): bigint {
11161 if(!isWasmInitialized) {
11162 throw new Error("initializeWasm() must be awaited first!");
11164 const nativeResponseValue = wasm.TS_COption_PathFailureZ_some(o);
11165 return nativeResponseValue;
11167 // struct LDKCOption_PathFailureZ COption_PathFailureZ_none(void);
11169 export function COption_PathFailureZ_none(): bigint {
11170 if(!isWasmInitialized) {
11171 throw new Error("initializeWasm() must be awaited first!");
11173 const nativeResponseValue = wasm.TS_COption_PathFailureZ_none();
11174 return nativeResponseValue;
11176 // void COption_PathFailureZ_free(struct LDKCOption_PathFailureZ _res);
11178 export function COption_PathFailureZ_free(_res: bigint): void {
11179 if(!isWasmInitialized) {
11180 throw new Error("initializeWasm() must be awaited first!");
11182 const nativeResponseValue = wasm.TS_COption_PathFailureZ_free(_res);
11183 // debug statements here
11185 // uint64_t COption_PathFailureZ_clone_ptr(LDKCOption_PathFailureZ *NONNULL_PTR arg);
11187 export function COption_PathFailureZ_clone_ptr(arg: bigint): bigint {
11188 if(!isWasmInitialized) {
11189 throw new Error("initializeWasm() must be awaited first!");
11191 const nativeResponseValue = wasm.TS_COption_PathFailureZ_clone_ptr(arg);
11192 return nativeResponseValue;
11194 // struct LDKCOption_PathFailureZ COption_PathFailureZ_clone(const struct LDKCOption_PathFailureZ *NONNULL_PTR orig);
11196 export function COption_PathFailureZ_clone(orig: bigint): bigint {
11197 if(!isWasmInitialized) {
11198 throw new Error("initializeWasm() must be awaited first!");
11200 const nativeResponseValue = wasm.TS_COption_PathFailureZ_clone(orig);
11201 return nativeResponseValue;
11203 // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_ok(struct LDKCOption_PathFailureZ o);
11205 export function CResult_COption_PathFailureZDecodeErrorZ_ok(o: bigint): bigint {
11206 if(!isWasmInitialized) {
11207 throw new Error("initializeWasm() must be awaited first!");
11209 const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_ok(o);
11210 return nativeResponseValue;
11212 // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_err(struct LDKDecodeError e);
11214 export function CResult_COption_PathFailureZDecodeErrorZ_err(e: bigint): bigint {
11215 if(!isWasmInitialized) {
11216 throw new Error("initializeWasm() must be awaited first!");
11218 const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_err(e);
11219 return nativeResponseValue;
11221 // bool CResult_COption_PathFailureZDecodeErrorZ_is_ok(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR o);
11223 export function CResult_COption_PathFailureZDecodeErrorZ_is_ok(o: bigint): boolean {
11224 if(!isWasmInitialized) {
11225 throw new Error("initializeWasm() must be awaited first!");
11227 const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_is_ok(o);
11228 return nativeResponseValue;
11230 // void CResult_COption_PathFailureZDecodeErrorZ_free(struct LDKCResult_COption_PathFailureZDecodeErrorZ _res);
11232 export function CResult_COption_PathFailureZDecodeErrorZ_free(_res: bigint): void {
11233 if(!isWasmInitialized) {
11234 throw new Error("initializeWasm() must be awaited first!");
11236 const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_free(_res);
11237 // debug statements here
11239 // uint64_t CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR arg);
11241 export function CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
11242 if(!isWasmInitialized) {
11243 throw new Error("initializeWasm() must be awaited first!");
11245 const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_clone_ptr(arg);
11246 return nativeResponseValue;
11248 // struct LDKCResult_COption_PathFailureZDecodeErrorZ CResult_COption_PathFailureZDecodeErrorZ_clone(const struct LDKCResult_COption_PathFailureZDecodeErrorZ *NONNULL_PTR orig);
11250 export function CResult_COption_PathFailureZDecodeErrorZ_clone(orig: bigint): bigint {
11251 if(!isWasmInitialized) {
11252 throw new Error("initializeWasm() must be awaited first!");
11254 const nativeResponseValue = wasm.TS_CResult_COption_PathFailureZDecodeErrorZ_clone(orig);
11255 return nativeResponseValue;
11257 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_some(struct LDKClosureReason o);
11259 export function COption_ClosureReasonZ_some(o: bigint): bigint {
11260 if(!isWasmInitialized) {
11261 throw new Error("initializeWasm() must be awaited first!");
11263 const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_some(o);
11264 return nativeResponseValue;
11266 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_none(void);
11268 export function COption_ClosureReasonZ_none(): bigint {
11269 if(!isWasmInitialized) {
11270 throw new Error("initializeWasm() must be awaited first!");
11272 const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_none();
11273 return nativeResponseValue;
11275 // void COption_ClosureReasonZ_free(struct LDKCOption_ClosureReasonZ _res);
11277 export function COption_ClosureReasonZ_free(_res: bigint): void {
11278 if(!isWasmInitialized) {
11279 throw new Error("initializeWasm() must be awaited first!");
11281 const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_free(_res);
11282 // debug statements here
11284 // uint64_t COption_ClosureReasonZ_clone_ptr(LDKCOption_ClosureReasonZ *NONNULL_PTR arg);
11286 export function COption_ClosureReasonZ_clone_ptr(arg: bigint): bigint {
11287 if(!isWasmInitialized) {
11288 throw new Error("initializeWasm() must be awaited first!");
11290 const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone_ptr(arg);
11291 return nativeResponseValue;
11293 // struct LDKCOption_ClosureReasonZ COption_ClosureReasonZ_clone(const struct LDKCOption_ClosureReasonZ *NONNULL_PTR orig);
11295 export function COption_ClosureReasonZ_clone(orig: bigint): bigint {
11296 if(!isWasmInitialized) {
11297 throw new Error("initializeWasm() must be awaited first!");
11299 const nativeResponseValue = wasm.TS_COption_ClosureReasonZ_clone(orig);
11300 return nativeResponseValue;
11302 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_ok(struct LDKCOption_ClosureReasonZ o);
11304 export function CResult_COption_ClosureReasonZDecodeErrorZ_ok(o: bigint): bigint {
11305 if(!isWasmInitialized) {
11306 throw new Error("initializeWasm() must be awaited first!");
11308 const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_ok(o);
11309 return nativeResponseValue;
11311 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_err(struct LDKDecodeError e);
11313 export function CResult_COption_ClosureReasonZDecodeErrorZ_err(e: bigint): bigint {
11314 if(!isWasmInitialized) {
11315 throw new Error("initializeWasm() must be awaited first!");
11317 const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_err(e);
11318 return nativeResponseValue;
11320 // bool CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR o);
11322 export function CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o: bigint): boolean {
11323 if(!isWasmInitialized) {
11324 throw new Error("initializeWasm() must be awaited first!");
11326 const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_is_ok(o);
11327 return nativeResponseValue;
11329 // void CResult_COption_ClosureReasonZDecodeErrorZ_free(struct LDKCResult_COption_ClosureReasonZDecodeErrorZ _res);
11331 export function CResult_COption_ClosureReasonZDecodeErrorZ_free(_res: bigint): void {
11332 if(!isWasmInitialized) {
11333 throw new Error("initializeWasm() must be awaited first!");
11335 const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_free(_res);
11336 // debug statements here
11338 // uint64_t CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR arg);
11340 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
11341 if(!isWasmInitialized) {
11342 throw new Error("initializeWasm() must be awaited first!");
11344 const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone_ptr(arg);
11345 return nativeResponseValue;
11347 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ CResult_COption_ClosureReasonZDecodeErrorZ_clone(const struct LDKCResult_COption_ClosureReasonZDecodeErrorZ *NONNULL_PTR orig);
11349 export function CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig: bigint): bigint {
11350 if(!isWasmInitialized) {
11351 throw new Error("initializeWasm() must be awaited first!");
11353 const nativeResponseValue = wasm.TS_CResult_COption_ClosureReasonZDecodeErrorZ_clone(orig);
11354 return nativeResponseValue;
11356 // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_some(struct LDKHTLCDestination o);
11358 export function COption_HTLCDestinationZ_some(o: bigint): bigint {
11359 if(!isWasmInitialized) {
11360 throw new Error("initializeWasm() must be awaited first!");
11362 const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_some(o);
11363 return nativeResponseValue;
11365 // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_none(void);
11367 export function COption_HTLCDestinationZ_none(): bigint {
11368 if(!isWasmInitialized) {
11369 throw new Error("initializeWasm() must be awaited first!");
11371 const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_none();
11372 return nativeResponseValue;
11374 // void COption_HTLCDestinationZ_free(struct LDKCOption_HTLCDestinationZ _res);
11376 export function COption_HTLCDestinationZ_free(_res: bigint): void {
11377 if(!isWasmInitialized) {
11378 throw new Error("initializeWasm() must be awaited first!");
11380 const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_free(_res);
11381 // debug statements here
11383 // uint64_t COption_HTLCDestinationZ_clone_ptr(LDKCOption_HTLCDestinationZ *NONNULL_PTR arg);
11385 export function COption_HTLCDestinationZ_clone_ptr(arg: bigint): bigint {
11386 if(!isWasmInitialized) {
11387 throw new Error("initializeWasm() must be awaited first!");
11389 const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_clone_ptr(arg);
11390 return nativeResponseValue;
11392 // struct LDKCOption_HTLCDestinationZ COption_HTLCDestinationZ_clone(const struct LDKCOption_HTLCDestinationZ *NONNULL_PTR orig);
11394 export function COption_HTLCDestinationZ_clone(orig: bigint): bigint {
11395 if(!isWasmInitialized) {
11396 throw new Error("initializeWasm() must be awaited first!");
11398 const nativeResponseValue = wasm.TS_COption_HTLCDestinationZ_clone(orig);
11399 return nativeResponseValue;
11401 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_ok(struct LDKCOption_HTLCDestinationZ o);
11403 export function CResult_COption_HTLCDestinationZDecodeErrorZ_ok(o: bigint): bigint {
11404 if(!isWasmInitialized) {
11405 throw new Error("initializeWasm() must be awaited first!");
11407 const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_ok(o);
11408 return nativeResponseValue;
11410 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_err(struct LDKDecodeError e);
11412 export function CResult_COption_HTLCDestinationZDecodeErrorZ_err(e: bigint): bigint {
11413 if(!isWasmInitialized) {
11414 throw new Error("initializeWasm() must be awaited first!");
11416 const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_err(e);
11417 return nativeResponseValue;
11419 // bool CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR o);
11421 export function CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(o: bigint): boolean {
11422 if(!isWasmInitialized) {
11423 throw new Error("initializeWasm() must be awaited first!");
11425 const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_is_ok(o);
11426 return nativeResponseValue;
11428 // void CResult_COption_HTLCDestinationZDecodeErrorZ_free(struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ _res);
11430 export function CResult_COption_HTLCDestinationZDecodeErrorZ_free(_res: bigint): void {
11431 if(!isWasmInitialized) {
11432 throw new Error("initializeWasm() must be awaited first!");
11434 const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_free(_res);
11435 // debug statements here
11437 // uint64_t CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR arg);
11439 export function CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
11440 if(!isWasmInitialized) {
11441 throw new Error("initializeWasm() must be awaited first!");
11443 const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_clone_ptr(arg);
11444 return nativeResponseValue;
11446 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ CResult_COption_HTLCDestinationZDecodeErrorZ_clone(const struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ *NONNULL_PTR orig);
11448 export function CResult_COption_HTLCDestinationZDecodeErrorZ_clone(orig: bigint): bigint {
11449 if(!isWasmInitialized) {
11450 throw new Error("initializeWasm() must be awaited first!");
11452 const nativeResponseValue = wasm.TS_CResult_COption_HTLCDestinationZDecodeErrorZ_clone(orig);
11453 return nativeResponseValue;
11455 // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_ok(enum LDKPaymentFailureReason o);
11457 export function CResult_PaymentFailureReasonDecodeErrorZ_ok(o: PaymentFailureReason): bigint {
11458 if(!isWasmInitialized) {
11459 throw new Error("initializeWasm() must be awaited first!");
11461 const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_ok(o);
11462 return nativeResponseValue;
11464 // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_err(struct LDKDecodeError e);
11466 export function CResult_PaymentFailureReasonDecodeErrorZ_err(e: bigint): bigint {
11467 if(!isWasmInitialized) {
11468 throw new Error("initializeWasm() must be awaited first!");
11470 const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_err(e);
11471 return nativeResponseValue;
11473 // bool CResult_PaymentFailureReasonDecodeErrorZ_is_ok(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR o);
11475 export function CResult_PaymentFailureReasonDecodeErrorZ_is_ok(o: bigint): boolean {
11476 if(!isWasmInitialized) {
11477 throw new Error("initializeWasm() must be awaited first!");
11479 const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_is_ok(o);
11480 return nativeResponseValue;
11482 // void CResult_PaymentFailureReasonDecodeErrorZ_free(struct LDKCResult_PaymentFailureReasonDecodeErrorZ _res);
11484 export function CResult_PaymentFailureReasonDecodeErrorZ_free(_res: bigint): void {
11485 if(!isWasmInitialized) {
11486 throw new Error("initializeWasm() must be awaited first!");
11488 const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_free(_res);
11489 // debug statements here
11491 // uint64_t CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR arg);
11493 export function CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(arg: bigint): bigint {
11494 if(!isWasmInitialized) {
11495 throw new Error("initializeWasm() must be awaited first!");
11497 const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_clone_ptr(arg);
11498 return nativeResponseValue;
11500 // struct LDKCResult_PaymentFailureReasonDecodeErrorZ CResult_PaymentFailureReasonDecodeErrorZ_clone(const struct LDKCResult_PaymentFailureReasonDecodeErrorZ *NONNULL_PTR orig);
11502 export function CResult_PaymentFailureReasonDecodeErrorZ_clone(orig: bigint): bigint {
11503 if(!isWasmInitialized) {
11504 throw new Error("initializeWasm() must be awaited first!");
11506 const nativeResponseValue = wasm.TS_CResult_PaymentFailureReasonDecodeErrorZ_clone(orig);
11507 return nativeResponseValue;
11509 // struct LDKCOption_u128Z COption_u128Z_some(struct LDKU128 o);
11511 export function COption_u128Z_some(o: number): bigint {
11512 if(!isWasmInitialized) {
11513 throw new Error("initializeWasm() must be awaited first!");
11515 const nativeResponseValue = wasm.TS_COption_u128Z_some(o);
11516 return nativeResponseValue;
11518 // struct LDKCOption_u128Z COption_u128Z_none(void);
11520 export function COption_u128Z_none(): bigint {
11521 if(!isWasmInitialized) {
11522 throw new Error("initializeWasm() must be awaited first!");
11524 const nativeResponseValue = wasm.TS_COption_u128Z_none();
11525 return nativeResponseValue;
11527 // void COption_u128Z_free(struct LDKCOption_u128Z _res);
11529 export function COption_u128Z_free(_res: bigint): void {
11530 if(!isWasmInitialized) {
11531 throw new Error("initializeWasm() must be awaited first!");
11533 const nativeResponseValue = wasm.TS_COption_u128Z_free(_res);
11534 // debug statements here
11536 // uint64_t COption_u128Z_clone_ptr(LDKCOption_u128Z *NONNULL_PTR arg);
11538 export function COption_u128Z_clone_ptr(arg: bigint): bigint {
11539 if(!isWasmInitialized) {
11540 throw new Error("initializeWasm() must be awaited first!");
11542 const nativeResponseValue = wasm.TS_COption_u128Z_clone_ptr(arg);
11543 return nativeResponseValue;
11545 // struct LDKCOption_u128Z COption_u128Z_clone(const struct LDKCOption_u128Z *NONNULL_PTR orig);
11547 export function COption_u128Z_clone(orig: bigint): bigint {
11548 if(!isWasmInitialized) {
11549 throw new Error("initializeWasm() must be awaited first!");
11551 const nativeResponseValue = wasm.TS_COption_u128Z_clone(orig);
11552 return nativeResponseValue;
11554 // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_some(enum LDKPaymentFailureReason o);
11556 export function COption_PaymentFailureReasonZ_some(o: PaymentFailureReason): bigint {
11557 if(!isWasmInitialized) {
11558 throw new Error("initializeWasm() must be awaited first!");
11560 const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_some(o);
11561 return nativeResponseValue;
11563 // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_none(void);
11565 export function COption_PaymentFailureReasonZ_none(): bigint {
11566 if(!isWasmInitialized) {
11567 throw new Error("initializeWasm() must be awaited first!");
11569 const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_none();
11570 return nativeResponseValue;
11572 // void COption_PaymentFailureReasonZ_free(struct LDKCOption_PaymentFailureReasonZ _res);
11574 export function COption_PaymentFailureReasonZ_free(_res: bigint): void {
11575 if(!isWasmInitialized) {
11576 throw new Error("initializeWasm() must be awaited first!");
11578 const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_free(_res);
11579 // debug statements here
11581 // uint64_t COption_PaymentFailureReasonZ_clone_ptr(LDKCOption_PaymentFailureReasonZ *NONNULL_PTR arg);
11583 export function COption_PaymentFailureReasonZ_clone_ptr(arg: bigint): bigint {
11584 if(!isWasmInitialized) {
11585 throw new Error("initializeWasm() must be awaited first!");
11587 const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_clone_ptr(arg);
11588 return nativeResponseValue;
11590 // struct LDKCOption_PaymentFailureReasonZ COption_PaymentFailureReasonZ_clone(const struct LDKCOption_PaymentFailureReasonZ *NONNULL_PTR orig);
11592 export function COption_PaymentFailureReasonZ_clone(orig: bigint): bigint {
11593 if(!isWasmInitialized) {
11594 throw new Error("initializeWasm() must be awaited first!");
11596 const nativeResponseValue = wasm.TS_COption_PaymentFailureReasonZ_clone(orig);
11597 return nativeResponseValue;
11599 // void CVec_SpendableOutputDescriptorZ_free(struct LDKCVec_SpendableOutputDescriptorZ _res);
11601 export function CVec_SpendableOutputDescriptorZ_free(_res: number): void {
11602 if(!isWasmInitialized) {
11603 throw new Error("initializeWasm() must be awaited first!");
11605 const nativeResponseValue = wasm.TS_CVec_SpendableOutputDescriptorZ_free(_res);
11606 // debug statements here
11608 // struct LDKCOption_EventZ COption_EventZ_some(struct LDKEvent o);
11610 export function COption_EventZ_some(o: bigint): bigint {
11611 if(!isWasmInitialized) {
11612 throw new Error("initializeWasm() must be awaited first!");
11614 const nativeResponseValue = wasm.TS_COption_EventZ_some(o);
11615 return nativeResponseValue;
11617 // struct LDKCOption_EventZ COption_EventZ_none(void);
11619 export function COption_EventZ_none(): bigint {
11620 if(!isWasmInitialized) {
11621 throw new Error("initializeWasm() must be awaited first!");
11623 const nativeResponseValue = wasm.TS_COption_EventZ_none();
11624 return nativeResponseValue;
11626 // void COption_EventZ_free(struct LDKCOption_EventZ _res);
11628 export function COption_EventZ_free(_res: bigint): void {
11629 if(!isWasmInitialized) {
11630 throw new Error("initializeWasm() must be awaited first!");
11632 const nativeResponseValue = wasm.TS_COption_EventZ_free(_res);
11633 // debug statements here
11635 // uint64_t COption_EventZ_clone_ptr(LDKCOption_EventZ *NONNULL_PTR arg);
11637 export function COption_EventZ_clone_ptr(arg: bigint): bigint {
11638 if(!isWasmInitialized) {
11639 throw new Error("initializeWasm() must be awaited first!");
11641 const nativeResponseValue = wasm.TS_COption_EventZ_clone_ptr(arg);
11642 return nativeResponseValue;
11644 // struct LDKCOption_EventZ COption_EventZ_clone(const struct LDKCOption_EventZ *NONNULL_PTR orig);
11646 export function COption_EventZ_clone(orig: bigint): bigint {
11647 if(!isWasmInitialized) {
11648 throw new Error("initializeWasm() must be awaited first!");
11650 const nativeResponseValue = wasm.TS_COption_EventZ_clone(orig);
11651 return nativeResponseValue;
11653 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_ok(struct LDKCOption_EventZ o);
11655 export function CResult_COption_EventZDecodeErrorZ_ok(o: bigint): bigint {
11656 if(!isWasmInitialized) {
11657 throw new Error("initializeWasm() must be awaited first!");
11659 const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_ok(o);
11660 return nativeResponseValue;
11662 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_err(struct LDKDecodeError e);
11664 export function CResult_COption_EventZDecodeErrorZ_err(e: bigint): bigint {
11665 if(!isWasmInitialized) {
11666 throw new Error("initializeWasm() must be awaited first!");
11668 const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_err(e);
11669 return nativeResponseValue;
11671 // bool CResult_COption_EventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR o);
11673 export function CResult_COption_EventZDecodeErrorZ_is_ok(o: bigint): boolean {
11674 if(!isWasmInitialized) {
11675 throw new Error("initializeWasm() must be awaited first!");
11677 const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_is_ok(o);
11678 return nativeResponseValue;
11680 // void CResult_COption_EventZDecodeErrorZ_free(struct LDKCResult_COption_EventZDecodeErrorZ _res);
11682 export function CResult_COption_EventZDecodeErrorZ_free(_res: bigint): void {
11683 if(!isWasmInitialized) {
11684 throw new Error("initializeWasm() must be awaited first!");
11686 const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_free(_res);
11687 // debug statements here
11689 // uint64_t CResult_COption_EventZDecodeErrorZ_clone_ptr(LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR arg);
11691 export function CResult_COption_EventZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
11692 if(!isWasmInitialized) {
11693 throw new Error("initializeWasm() must be awaited first!");
11695 const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone_ptr(arg);
11696 return nativeResponseValue;
11698 // struct LDKCResult_COption_EventZDecodeErrorZ CResult_COption_EventZDecodeErrorZ_clone(const struct LDKCResult_COption_EventZDecodeErrorZ *NONNULL_PTR orig);
11700 export function CResult_COption_EventZDecodeErrorZ_clone(orig: bigint): bigint {
11701 if(!isWasmInitialized) {
11702 throw new Error("initializeWasm() must be awaited first!");
11704 const nativeResponseValue = wasm.TS_CResult_COption_EventZDecodeErrorZ_clone(orig);
11705 return nativeResponseValue;
11707 // void CVec_MessageSendEventZ_free(struct LDKCVec_MessageSendEventZ _res);
11709 export function CVec_MessageSendEventZ_free(_res: number): void {
11710 if(!isWasmInitialized) {
11711 throw new Error("initializeWasm() must be awaited first!");
11713 const nativeResponseValue = wasm.TS_CVec_MessageSendEventZ_free(_res);
11714 // debug statements here
11716 // void CVec_ChainHashZ_free(struct LDKCVec_ChainHashZ _res);
11718 export function CVec_ChainHashZ_free(_res: number): void {
11719 if(!isWasmInitialized) {
11720 throw new Error("initializeWasm() must be awaited first!");
11722 const nativeResponseValue = wasm.TS_CVec_ChainHashZ_free(_res);
11723 // debug statements here
11725 // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_ok(struct LDKPublicKey o);
11727 export function CResult_PublicKeyErrorZ_ok(o: number): bigint {
11728 if(!isWasmInitialized) {
11729 throw new Error("initializeWasm() must be awaited first!");
11731 const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_ok(o);
11732 return nativeResponseValue;
11734 // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_err(enum LDKSecp256k1Error e);
11736 export function CResult_PublicKeyErrorZ_err(e: Secp256k1Error): bigint {
11737 if(!isWasmInitialized) {
11738 throw new Error("initializeWasm() must be awaited first!");
11740 const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_err(e);
11741 return nativeResponseValue;
11743 // bool CResult_PublicKeyErrorZ_is_ok(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR o);
11745 export function CResult_PublicKeyErrorZ_is_ok(o: bigint): boolean {
11746 if(!isWasmInitialized) {
11747 throw new Error("initializeWasm() must be awaited first!");
11749 const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_is_ok(o);
11750 return nativeResponseValue;
11752 // void CResult_PublicKeyErrorZ_free(struct LDKCResult_PublicKeyErrorZ _res);
11754 export function CResult_PublicKeyErrorZ_free(_res: bigint): void {
11755 if(!isWasmInitialized) {
11756 throw new Error("initializeWasm() must be awaited first!");
11758 const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_free(_res);
11759 // debug statements here
11761 // uint64_t CResult_PublicKeyErrorZ_clone_ptr(LDKCResult_PublicKeyErrorZ *NONNULL_PTR arg);
11763 export function CResult_PublicKeyErrorZ_clone_ptr(arg: bigint): bigint {
11764 if(!isWasmInitialized) {
11765 throw new Error("initializeWasm() must be awaited first!");
11767 const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone_ptr(arg);
11768 return nativeResponseValue;
11770 // struct LDKCResult_PublicKeyErrorZ CResult_PublicKeyErrorZ_clone(const struct LDKCResult_PublicKeyErrorZ *NONNULL_PTR orig);
11772 export function CResult_PublicKeyErrorZ_clone(orig: bigint): bigint {
11773 if(!isWasmInitialized) {
11774 throw new Error("initializeWasm() must be awaited first!");
11776 const nativeResponseValue = wasm.TS_CResult_PublicKeyErrorZ_clone(orig);
11777 return nativeResponseValue;
11779 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_ok(struct LDKNodeId o);
11781 export function CResult_NodeIdDecodeErrorZ_ok(o: bigint): bigint {
11782 if(!isWasmInitialized) {
11783 throw new Error("initializeWasm() must be awaited first!");
11785 const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_ok(o);
11786 return nativeResponseValue;
11788 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_err(struct LDKDecodeError e);
11790 export function CResult_NodeIdDecodeErrorZ_err(e: bigint): bigint {
11791 if(!isWasmInitialized) {
11792 throw new Error("initializeWasm() must be awaited first!");
11794 const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_err(e);
11795 return nativeResponseValue;
11797 // bool CResult_NodeIdDecodeErrorZ_is_ok(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR o);
11799 export function CResult_NodeIdDecodeErrorZ_is_ok(o: bigint): boolean {
11800 if(!isWasmInitialized) {
11801 throw new Error("initializeWasm() must be awaited first!");
11803 const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_is_ok(o);
11804 return nativeResponseValue;
11806 // void CResult_NodeIdDecodeErrorZ_free(struct LDKCResult_NodeIdDecodeErrorZ _res);
11808 export function CResult_NodeIdDecodeErrorZ_free(_res: bigint): void {
11809 if(!isWasmInitialized) {
11810 throw new Error("initializeWasm() must be awaited first!");
11812 const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_free(_res);
11813 // debug statements here
11815 // uint64_t CResult_NodeIdDecodeErrorZ_clone_ptr(LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR arg);
11817 export function CResult_NodeIdDecodeErrorZ_clone_ptr(arg: bigint): bigint {
11818 if(!isWasmInitialized) {
11819 throw new Error("initializeWasm() must be awaited first!");
11821 const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone_ptr(arg);
11822 return nativeResponseValue;
11824 // struct LDKCResult_NodeIdDecodeErrorZ CResult_NodeIdDecodeErrorZ_clone(const struct LDKCResult_NodeIdDecodeErrorZ *NONNULL_PTR orig);
11826 export function CResult_NodeIdDecodeErrorZ_clone(orig: bigint): bigint {
11827 if(!isWasmInitialized) {
11828 throw new Error("initializeWasm() must be awaited first!");
11830 const nativeResponseValue = wasm.TS_CResult_NodeIdDecodeErrorZ_clone(orig);
11831 return nativeResponseValue;
11833 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_ok(struct LDKCOption_NetworkUpdateZ o);
11835 export function CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o: bigint): bigint {
11836 if(!isWasmInitialized) {
11837 throw new Error("initializeWasm() must be awaited first!");
11839 const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_ok(o);
11840 return nativeResponseValue;
11842 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_err(struct LDKDecodeError e);
11844 export function CResult_COption_NetworkUpdateZDecodeErrorZ_err(e: bigint): bigint {
11845 if(!isWasmInitialized) {
11846 throw new Error("initializeWasm() must be awaited first!");
11848 const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_err(e);
11849 return nativeResponseValue;
11851 // bool CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR o);
11853 export function CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o: bigint): boolean {
11854 if(!isWasmInitialized) {
11855 throw new Error("initializeWasm() must be awaited first!");
11857 const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_is_ok(o);
11858 return nativeResponseValue;
11860 // void CResult_COption_NetworkUpdateZDecodeErrorZ_free(struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ _res);
11862 export function CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res: bigint): void {
11863 if(!isWasmInitialized) {
11864 throw new Error("initializeWasm() must be awaited first!");
11866 const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_free(_res);
11867 // debug statements here
11869 // uint64_t CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR arg);
11871 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
11872 if(!isWasmInitialized) {
11873 throw new Error("initializeWasm() must be awaited first!");
11875 const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone_ptr(arg);
11876 return nativeResponseValue;
11878 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ CResult_COption_NetworkUpdateZDecodeErrorZ_clone(const struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ *NONNULL_PTR orig);
11880 export function CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig: bigint): bigint {
11881 if(!isWasmInitialized) {
11882 throw new Error("initializeWasm() must be awaited first!");
11884 const nativeResponseValue = wasm.TS_CResult_COption_NetworkUpdateZDecodeErrorZ_clone(orig);
11885 return nativeResponseValue;
11887 // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_some(struct LDKUtxoLookup o);
11889 export function COption_UtxoLookupZ_some(o: bigint): bigint {
11890 if(!isWasmInitialized) {
11891 throw new Error("initializeWasm() must be awaited first!");
11893 const nativeResponseValue = wasm.TS_COption_UtxoLookupZ_some(o);
11894 return nativeResponseValue;
11896 // struct LDKCOption_UtxoLookupZ COption_UtxoLookupZ_none(void);
11898 export function COption_UtxoLookupZ_none(): bigint {
11899 if(!isWasmInitialized) {
11900 throw new Error("initializeWasm() must be awaited first!");
11902 const nativeResponseValue = wasm.TS_COption_UtxoLookupZ_none();
11903 return nativeResponseValue;
11905 // void COption_UtxoLookupZ_free(struct LDKCOption_UtxoLookupZ _res);
11907 export function COption_UtxoLookupZ_free(_res: bigint): void {
11908 if(!isWasmInitialized) {
11909 throw new Error("initializeWasm() must be awaited first!");
11911 const nativeResponseValue = wasm.TS_COption_UtxoLookupZ_free(_res);
11912 // debug statements here
11914 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
11916 export function CResult_boolLightningErrorZ_ok(o: boolean): bigint {
11917 if(!isWasmInitialized) {
11918 throw new Error("initializeWasm() must be awaited first!");
11920 const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_ok(o);
11921 return nativeResponseValue;
11923 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
11925 export function CResult_boolLightningErrorZ_err(e: bigint): bigint {
11926 if(!isWasmInitialized) {
11927 throw new Error("initializeWasm() must be awaited first!");
11929 const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_err(e);
11930 return nativeResponseValue;
11932 // bool CResult_boolLightningErrorZ_is_ok(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR o);
11934 export function CResult_boolLightningErrorZ_is_ok(o: bigint): boolean {
11935 if(!isWasmInitialized) {
11936 throw new Error("initializeWasm() must be awaited first!");
11938 const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_is_ok(o);
11939 return nativeResponseValue;
11941 // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
11943 export function CResult_boolLightningErrorZ_free(_res: bigint): void {
11944 if(!isWasmInitialized) {
11945 throw new Error("initializeWasm() must be awaited first!");
11947 const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_free(_res);
11948 // debug statements here
11950 // uint64_t CResult_boolLightningErrorZ_clone_ptr(LDKCResult_boolLightningErrorZ *NONNULL_PTR arg);
11952 export function CResult_boolLightningErrorZ_clone_ptr(arg: bigint): bigint {
11953 if(!isWasmInitialized) {
11954 throw new Error("initializeWasm() must be awaited first!");
11956 const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone_ptr(arg);
11957 return nativeResponseValue;
11959 // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
11961 export function CResult_boolLightningErrorZ_clone(orig: bigint): bigint {
11962 if(!isWasmInitialized) {
11963 throw new Error("initializeWasm() must be awaited first!");
11965 const nativeResponseValue = wasm.TS_CResult_boolLightningErrorZ_clone(orig);
11966 return nativeResponseValue;
11968 // uint64_t C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR arg);
11970 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg: bigint): bigint {
11971 if(!isWasmInitialized) {
11972 throw new Error("initializeWasm() must be awaited first!");
11974 const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone_ptr(arg);
11975 return nativeResponseValue;
11977 // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
11979 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig: bigint): bigint {
11980 if(!isWasmInitialized) {
11981 throw new Error("initializeWasm() must be awaited first!");
11983 const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(orig);
11984 return nativeResponseValue;
11986 // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
11988 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a: bigint, b: bigint, c: bigint): bigint {
11989 if(!isWasmInitialized) {
11990 throw new Error("initializeWasm() must be awaited first!");
11992 const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(a, b, c);
11993 return nativeResponseValue;
11995 // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
11997 export function C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res: bigint): void {
11998 if(!isWasmInitialized) {
11999 throw new Error("initializeWasm() must be awaited first!");
12001 const nativeResponseValue = wasm.TS_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(_res);
12002 // debug statements here
12004 // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ o);
12006 export function COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(o: bigint): bigint {
12007 if(!isWasmInitialized) {
12008 throw new Error("initializeWasm() must be awaited first!");
12010 const nativeResponseValue = wasm.TS_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_some(o);
12011 return nativeResponseValue;
12013 // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(void);
12015 export function COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none(): bigint {
12016 if(!isWasmInitialized) {
12017 throw new Error("initializeWasm() must be awaited first!");
12019 const nativeResponseValue = wasm.TS_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_none();
12020 return nativeResponseValue;
12022 // void COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
12024 export function COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res: bigint): void {
12025 if(!isWasmInitialized) {
12026 throw new Error("initializeWasm() must be awaited first!");
12028 const nativeResponseValue = wasm.TS_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(_res);
12029 // debug statements here
12031 // uint64_t COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR arg);
12033 export function COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(arg: bigint): bigint {
12034 if(!isWasmInitialized) {
12035 throw new Error("initializeWasm() must be awaited first!");
12037 const nativeResponseValue = wasm.TS_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone_ptr(arg);
12038 return nativeResponseValue;
12040 // struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(const struct LDKCOption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ *NONNULL_PTR orig);
12042 export function COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(orig: bigint): bigint {
12043 if(!isWasmInitialized) {
12044 throw new Error("initializeWasm() must be awaited first!");
12046 const nativeResponseValue = wasm.TS_COption_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_clone(orig);
12047 return nativeResponseValue;
12049 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
12051 export function CResult_NoneLightningErrorZ_ok(): bigint {
12052 if(!isWasmInitialized) {
12053 throw new Error("initializeWasm() must be awaited first!");
12055 const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_ok();
12056 return nativeResponseValue;
12058 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
12060 export function CResult_NoneLightningErrorZ_err(e: bigint): bigint {
12061 if(!isWasmInitialized) {
12062 throw new Error("initializeWasm() must be awaited first!");
12064 const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_err(e);
12065 return nativeResponseValue;
12067 // bool CResult_NoneLightningErrorZ_is_ok(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR o);
12069 export function CResult_NoneLightningErrorZ_is_ok(o: bigint): boolean {
12070 if(!isWasmInitialized) {
12071 throw new Error("initializeWasm() must be awaited first!");
12073 const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_is_ok(o);
12074 return nativeResponseValue;
12076 // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
12078 export function CResult_NoneLightningErrorZ_free(_res: bigint): void {
12079 if(!isWasmInitialized) {
12080 throw new Error("initializeWasm() must be awaited first!");
12082 const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_free(_res);
12083 // debug statements here
12085 // uint64_t CResult_NoneLightningErrorZ_clone_ptr(LDKCResult_NoneLightningErrorZ *NONNULL_PTR arg);
12087 export function CResult_NoneLightningErrorZ_clone_ptr(arg: bigint): bigint {
12088 if(!isWasmInitialized) {
12089 throw new Error("initializeWasm() must be awaited first!");
12091 const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone_ptr(arg);
12092 return nativeResponseValue;
12094 // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
12096 export function CResult_NoneLightningErrorZ_clone(orig: bigint): bigint {
12097 if(!isWasmInitialized) {
12098 throw new Error("initializeWasm() must be awaited first!");
12100 const nativeResponseValue = wasm.TS_CResult_NoneLightningErrorZ_clone(orig);
12101 return nativeResponseValue;
12103 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_ok(struct LDKChannelUpdateInfo o);
12105 export function CResult_ChannelUpdateInfoDecodeErrorZ_ok(o: bigint): bigint {
12106 if(!isWasmInitialized) {
12107 throw new Error("initializeWasm() must be awaited first!");
12109 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_ok(o);
12110 return nativeResponseValue;
12112 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_err(struct LDKDecodeError e);
12114 export function CResult_ChannelUpdateInfoDecodeErrorZ_err(e: bigint): bigint {
12115 if(!isWasmInitialized) {
12116 throw new Error("initializeWasm() must be awaited first!");
12118 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_err(e);
12119 return nativeResponseValue;
12121 // bool CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR o);
12123 export function CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o: bigint): boolean {
12124 if(!isWasmInitialized) {
12125 throw new Error("initializeWasm() must be awaited first!");
12127 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_is_ok(o);
12128 return nativeResponseValue;
12130 // void CResult_ChannelUpdateInfoDecodeErrorZ_free(struct LDKCResult_ChannelUpdateInfoDecodeErrorZ _res);
12132 export function CResult_ChannelUpdateInfoDecodeErrorZ_free(_res: bigint): void {
12133 if(!isWasmInitialized) {
12134 throw new Error("initializeWasm() must be awaited first!");
12136 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_free(_res);
12137 // debug statements here
12139 // uint64_t CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR arg);
12141 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12142 if(!isWasmInitialized) {
12143 throw new Error("initializeWasm() must be awaited first!");
12145 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone_ptr(arg);
12146 return nativeResponseValue;
12148 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ CResult_ChannelUpdateInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateInfoDecodeErrorZ *NONNULL_PTR orig);
12150 export function CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig: bigint): bigint {
12151 if(!isWasmInitialized) {
12152 throw new Error("initializeWasm() must be awaited first!");
12154 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateInfoDecodeErrorZ_clone(orig);
12155 return nativeResponseValue;
12157 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
12159 export function CResult_ChannelInfoDecodeErrorZ_ok(o: bigint): bigint {
12160 if(!isWasmInitialized) {
12161 throw new Error("initializeWasm() must be awaited first!");
12163 const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_ok(o);
12164 return nativeResponseValue;
12166 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
12168 export function CResult_ChannelInfoDecodeErrorZ_err(e: bigint): bigint {
12169 if(!isWasmInitialized) {
12170 throw new Error("initializeWasm() must be awaited first!");
12172 const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_err(e);
12173 return nativeResponseValue;
12175 // bool CResult_ChannelInfoDecodeErrorZ_is_ok(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR o);
12177 export function CResult_ChannelInfoDecodeErrorZ_is_ok(o: bigint): boolean {
12178 if(!isWasmInitialized) {
12179 throw new Error("initializeWasm() must be awaited first!");
12181 const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_is_ok(o);
12182 return nativeResponseValue;
12184 // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
12186 export function CResult_ChannelInfoDecodeErrorZ_free(_res: bigint): void {
12187 if(!isWasmInitialized) {
12188 throw new Error("initializeWasm() must be awaited first!");
12190 const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_free(_res);
12191 // debug statements here
12193 // uint64_t CResult_ChannelInfoDecodeErrorZ_clone_ptr(LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR arg);
12195 export function CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12196 if(!isWasmInitialized) {
12197 throw new Error("initializeWasm() must be awaited first!");
12199 const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone_ptr(arg);
12200 return nativeResponseValue;
12202 // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
12204 export function CResult_ChannelInfoDecodeErrorZ_clone(orig: bigint): bigint {
12205 if(!isWasmInitialized) {
12206 throw new Error("initializeWasm() must be awaited first!");
12208 const nativeResponseValue = wasm.TS_CResult_ChannelInfoDecodeErrorZ_clone(orig);
12209 return nativeResponseValue;
12211 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
12213 export function CResult_RoutingFeesDecodeErrorZ_ok(o: bigint): bigint {
12214 if(!isWasmInitialized) {
12215 throw new Error("initializeWasm() must be awaited first!");
12217 const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_ok(o);
12218 return nativeResponseValue;
12220 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
12222 export function CResult_RoutingFeesDecodeErrorZ_err(e: bigint): bigint {
12223 if(!isWasmInitialized) {
12224 throw new Error("initializeWasm() must be awaited first!");
12226 const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_err(e);
12227 return nativeResponseValue;
12229 // bool CResult_RoutingFeesDecodeErrorZ_is_ok(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR o);
12231 export function CResult_RoutingFeesDecodeErrorZ_is_ok(o: bigint): boolean {
12232 if(!isWasmInitialized) {
12233 throw new Error("initializeWasm() must be awaited first!");
12235 const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_is_ok(o);
12236 return nativeResponseValue;
12238 // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
12240 export function CResult_RoutingFeesDecodeErrorZ_free(_res: bigint): void {
12241 if(!isWasmInitialized) {
12242 throw new Error("initializeWasm() must be awaited first!");
12244 const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_free(_res);
12245 // debug statements here
12247 // uint64_t CResult_RoutingFeesDecodeErrorZ_clone_ptr(LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR arg);
12249 export function CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12250 if(!isWasmInitialized) {
12251 throw new Error("initializeWasm() must be awaited first!");
12253 const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone_ptr(arg);
12254 return nativeResponseValue;
12256 // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
12258 export function CResult_RoutingFeesDecodeErrorZ_clone(orig: bigint): bigint {
12259 if(!isWasmInitialized) {
12260 throw new Error("initializeWasm() must be awaited first!");
12262 const nativeResponseValue = wasm.TS_CResult_RoutingFeesDecodeErrorZ_clone(orig);
12263 return nativeResponseValue;
12265 // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
12267 export function CVec_NetAddressZ_free(_res: number): void {
12268 if(!isWasmInitialized) {
12269 throw new Error("initializeWasm() must be awaited first!");
12271 const nativeResponseValue = wasm.TS_CVec_NetAddressZ_free(_res);
12272 // debug statements here
12274 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
12276 export function CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o: bigint): bigint {
12277 if(!isWasmInitialized) {
12278 throw new Error("initializeWasm() must be awaited first!");
12280 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_ok(o);
12281 return nativeResponseValue;
12283 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
12285 export function CResult_NodeAnnouncementInfoDecodeErrorZ_err(e: bigint): bigint {
12286 if(!isWasmInitialized) {
12287 throw new Error("initializeWasm() must be awaited first!");
12289 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_err(e);
12290 return nativeResponseValue;
12292 // bool CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR o);
12294 export function CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o: bigint): boolean {
12295 if(!isWasmInitialized) {
12296 throw new Error("initializeWasm() must be awaited first!");
12298 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_is_ok(o);
12299 return nativeResponseValue;
12301 // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
12303 export function CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res: bigint): void {
12304 if(!isWasmInitialized) {
12305 throw new Error("initializeWasm() must be awaited first!");
12307 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_free(_res);
12308 // debug statements here
12310 // uint64_t CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR arg);
12312 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12313 if(!isWasmInitialized) {
12314 throw new Error("initializeWasm() must be awaited first!");
12316 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone_ptr(arg);
12317 return nativeResponseValue;
12319 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
12321 export function CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig: bigint): bigint {
12322 if(!isWasmInitialized) {
12323 throw new Error("initializeWasm() must be awaited first!");
12325 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementInfoDecodeErrorZ_clone(orig);
12326 return nativeResponseValue;
12328 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_ok(struct LDKNodeAlias o);
12330 export function CResult_NodeAliasDecodeErrorZ_ok(o: bigint): bigint {
12331 if(!isWasmInitialized) {
12332 throw new Error("initializeWasm() must be awaited first!");
12334 const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_ok(o);
12335 return nativeResponseValue;
12337 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_err(struct LDKDecodeError e);
12339 export function CResult_NodeAliasDecodeErrorZ_err(e: bigint): bigint {
12340 if(!isWasmInitialized) {
12341 throw new Error("initializeWasm() must be awaited first!");
12343 const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_err(e);
12344 return nativeResponseValue;
12346 // bool CResult_NodeAliasDecodeErrorZ_is_ok(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR o);
12348 export function CResult_NodeAliasDecodeErrorZ_is_ok(o: bigint): boolean {
12349 if(!isWasmInitialized) {
12350 throw new Error("initializeWasm() must be awaited first!");
12352 const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_is_ok(o);
12353 return nativeResponseValue;
12355 // void CResult_NodeAliasDecodeErrorZ_free(struct LDKCResult_NodeAliasDecodeErrorZ _res);
12357 export function CResult_NodeAliasDecodeErrorZ_free(_res: bigint): void {
12358 if(!isWasmInitialized) {
12359 throw new Error("initializeWasm() must be awaited first!");
12361 const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_free(_res);
12362 // debug statements here
12364 // uint64_t CResult_NodeAliasDecodeErrorZ_clone_ptr(LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR arg);
12366 export function CResult_NodeAliasDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12367 if(!isWasmInitialized) {
12368 throw new Error("initializeWasm() must be awaited first!");
12370 const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_clone_ptr(arg);
12371 return nativeResponseValue;
12373 // struct LDKCResult_NodeAliasDecodeErrorZ CResult_NodeAliasDecodeErrorZ_clone(const struct LDKCResult_NodeAliasDecodeErrorZ *NONNULL_PTR orig);
12375 export function CResult_NodeAliasDecodeErrorZ_clone(orig: bigint): bigint {
12376 if(!isWasmInitialized) {
12377 throw new Error("initializeWasm() must be awaited first!");
12379 const nativeResponseValue = wasm.TS_CResult_NodeAliasDecodeErrorZ_clone(orig);
12380 return nativeResponseValue;
12382 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
12384 export function CResult_NodeInfoDecodeErrorZ_ok(o: bigint): bigint {
12385 if(!isWasmInitialized) {
12386 throw new Error("initializeWasm() must be awaited first!");
12388 const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_ok(o);
12389 return nativeResponseValue;
12391 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
12393 export function CResult_NodeInfoDecodeErrorZ_err(e: bigint): bigint {
12394 if(!isWasmInitialized) {
12395 throw new Error("initializeWasm() must be awaited first!");
12397 const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_err(e);
12398 return nativeResponseValue;
12400 // bool CResult_NodeInfoDecodeErrorZ_is_ok(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR o);
12402 export function CResult_NodeInfoDecodeErrorZ_is_ok(o: bigint): boolean {
12403 if(!isWasmInitialized) {
12404 throw new Error("initializeWasm() must be awaited first!");
12406 const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_is_ok(o);
12407 return nativeResponseValue;
12409 // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
12411 export function CResult_NodeInfoDecodeErrorZ_free(_res: bigint): void {
12412 if(!isWasmInitialized) {
12413 throw new Error("initializeWasm() must be awaited first!");
12415 const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_free(_res);
12416 // debug statements here
12418 // uint64_t CResult_NodeInfoDecodeErrorZ_clone_ptr(LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR arg);
12420 export function CResult_NodeInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12421 if(!isWasmInitialized) {
12422 throw new Error("initializeWasm() must be awaited first!");
12424 const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone_ptr(arg);
12425 return nativeResponseValue;
12427 // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
12429 export function CResult_NodeInfoDecodeErrorZ_clone(orig: bigint): bigint {
12430 if(!isWasmInitialized) {
12431 throw new Error("initializeWasm() must be awaited first!");
12433 const nativeResponseValue = wasm.TS_CResult_NodeInfoDecodeErrorZ_clone(orig);
12434 return nativeResponseValue;
12436 // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
12438 export function CResult_NetworkGraphDecodeErrorZ_ok(o: bigint): bigint {
12439 if(!isWasmInitialized) {
12440 throw new Error("initializeWasm() must be awaited first!");
12442 const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_ok(o);
12443 return nativeResponseValue;
12445 // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
12447 export function CResult_NetworkGraphDecodeErrorZ_err(e: bigint): bigint {
12448 if(!isWasmInitialized) {
12449 throw new Error("initializeWasm() must be awaited first!");
12451 const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_err(e);
12452 return nativeResponseValue;
12454 // bool CResult_NetworkGraphDecodeErrorZ_is_ok(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR o);
12456 export function CResult_NetworkGraphDecodeErrorZ_is_ok(o: bigint): boolean {
12457 if(!isWasmInitialized) {
12458 throw new Error("initializeWasm() must be awaited first!");
12460 const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_is_ok(o);
12461 return nativeResponseValue;
12463 // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
12465 export function CResult_NetworkGraphDecodeErrorZ_free(_res: bigint): void {
12466 if(!isWasmInitialized) {
12467 throw new Error("initializeWasm() must be awaited first!");
12469 const nativeResponseValue = wasm.TS_CResult_NetworkGraphDecodeErrorZ_free(_res);
12470 // debug statements here
12472 // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_some(struct LDKCVec_NetAddressZ o);
12474 export function COption_CVec_NetAddressZZ_some(o: number): bigint {
12475 if(!isWasmInitialized) {
12476 throw new Error("initializeWasm() must be awaited first!");
12478 const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_some(o);
12479 return nativeResponseValue;
12481 // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_none(void);
12483 export function COption_CVec_NetAddressZZ_none(): bigint {
12484 if(!isWasmInitialized) {
12485 throw new Error("initializeWasm() must be awaited first!");
12487 const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_none();
12488 return nativeResponseValue;
12490 // void COption_CVec_NetAddressZZ_free(struct LDKCOption_CVec_NetAddressZZ _res);
12492 export function COption_CVec_NetAddressZZ_free(_res: bigint): void {
12493 if(!isWasmInitialized) {
12494 throw new Error("initializeWasm() must be awaited first!");
12496 const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_free(_res);
12497 // debug statements here
12499 // uint64_t COption_CVec_NetAddressZZ_clone_ptr(LDKCOption_CVec_NetAddressZZ *NONNULL_PTR arg);
12501 export function COption_CVec_NetAddressZZ_clone_ptr(arg: bigint): bigint {
12502 if(!isWasmInitialized) {
12503 throw new Error("initializeWasm() must be awaited first!");
12505 const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone_ptr(arg);
12506 return nativeResponseValue;
12508 // struct LDKCOption_CVec_NetAddressZZ COption_CVec_NetAddressZZ_clone(const struct LDKCOption_CVec_NetAddressZZ *NONNULL_PTR orig);
12510 export function COption_CVec_NetAddressZZ_clone(orig: bigint): bigint {
12511 if(!isWasmInitialized) {
12512 throw new Error("initializeWasm() must be awaited first!");
12514 const nativeResponseValue = wasm.TS_COption_CVec_NetAddressZZ_clone(orig);
12515 return nativeResponseValue;
12517 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKDelayedPaymentOutputDescriptor o);
12519 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o: bigint): bigint {
12520 if(!isWasmInitialized) {
12521 throw new Error("initializeWasm() must be awaited first!");
12523 const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o);
12524 return nativeResponseValue;
12526 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
12528 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e: bigint): bigint {
12529 if(!isWasmInitialized) {
12530 throw new Error("initializeWasm() must be awaited first!");
12532 const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e);
12533 return nativeResponseValue;
12535 // bool CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
12537 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o: bigint): boolean {
12538 if(!isWasmInitialized) {
12539 throw new Error("initializeWasm() must be awaited first!");
12541 const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
12542 return nativeResponseValue;
12544 // void CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ _res);
12546 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res: bigint): void {
12547 if(!isWasmInitialized) {
12548 throw new Error("initializeWasm() must be awaited first!");
12550 const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_free(_res);
12551 // debug statements here
12553 // uint64_t CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
12555 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12556 if(!isWasmInitialized) {
12557 throw new Error("initializeWasm() must be awaited first!");
12559 const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
12560 return nativeResponseValue;
12562 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
12564 export function CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig: bigint): bigint {
12565 if(!isWasmInitialized) {
12566 throw new Error("initializeWasm() must be awaited first!");
12568 const nativeResponseValue = wasm.TS_CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(orig);
12569 return nativeResponseValue;
12571 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(struct LDKStaticPaymentOutputDescriptor o);
12573 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o: bigint): bigint {
12574 if(!isWasmInitialized) {
12575 throw new Error("initializeWasm() must be awaited first!");
12577 const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_ok(o);
12578 return nativeResponseValue;
12580 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
12582 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e: bigint): bigint {
12583 if(!isWasmInitialized) {
12584 throw new Error("initializeWasm() must be awaited first!");
12586 const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_err(e);
12587 return nativeResponseValue;
12589 // bool CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
12591 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o: bigint): boolean {
12592 if(!isWasmInitialized) {
12593 throw new Error("initializeWasm() must be awaited first!");
12595 const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_is_ok(o);
12596 return nativeResponseValue;
12598 // void CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ _res);
12600 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res: bigint): void {
12601 if(!isWasmInitialized) {
12602 throw new Error("initializeWasm() must be awaited first!");
12604 const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_free(_res);
12605 // debug statements here
12607 // uint64_t CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
12609 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12610 if(!isWasmInitialized) {
12611 throw new Error("initializeWasm() must be awaited first!");
12613 const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone_ptr(arg);
12614 return nativeResponseValue;
12616 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
12618 export function CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig: bigint): bigint {
12619 if(!isWasmInitialized) {
12620 throw new Error("initializeWasm() must be awaited first!");
12622 const nativeResponseValue = wasm.TS_CResult_StaticPaymentOutputDescriptorDecodeErrorZ_clone(orig);
12623 return nativeResponseValue;
12625 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_ok(struct LDKSpendableOutputDescriptor o);
12627 export function CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o: bigint): bigint {
12628 if(!isWasmInitialized) {
12629 throw new Error("initializeWasm() must be awaited first!");
12631 const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_ok(o);
12632 return nativeResponseValue;
12634 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_err(struct LDKDecodeError e);
12636 export function CResult_SpendableOutputDescriptorDecodeErrorZ_err(e: bigint): bigint {
12637 if(!isWasmInitialized) {
12638 throw new Error("initializeWasm() must be awaited first!");
12640 const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_err(e);
12641 return nativeResponseValue;
12643 // bool CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR o);
12645 export function CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o: bigint): boolean {
12646 if(!isWasmInitialized) {
12647 throw new Error("initializeWasm() must be awaited first!");
12649 const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_is_ok(o);
12650 return nativeResponseValue;
12652 // void CResult_SpendableOutputDescriptorDecodeErrorZ_free(struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ _res);
12654 export function CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res: bigint): void {
12655 if(!isWasmInitialized) {
12656 throw new Error("initializeWasm() must be awaited first!");
12658 const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_free(_res);
12659 // debug statements here
12661 // uint64_t CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR arg);
12663 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg: bigint): bigint {
12664 if(!isWasmInitialized) {
12665 throw new Error("initializeWasm() must be awaited first!");
12667 const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone_ptr(arg);
12668 return nativeResponseValue;
12670 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ CResult_SpendableOutputDescriptorDecodeErrorZ_clone(const struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ *NONNULL_PTR orig);
12672 export function CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig: bigint): bigint {
12673 if(!isWasmInitialized) {
12674 throw new Error("initializeWasm() must be awaited first!");
12676 const nativeResponseValue = wasm.TS_CResult_SpendableOutputDescriptorDecodeErrorZ_clone(orig);
12677 return nativeResponseValue;
12679 // void CVec_PaymentPreimageZ_free(struct LDKCVec_PaymentPreimageZ _res);
12681 export function CVec_PaymentPreimageZ_free(_res: number): void {
12682 if(!isWasmInitialized) {
12683 throw new Error("initializeWasm() must be awaited first!");
12685 const nativeResponseValue = wasm.TS_CVec_PaymentPreimageZ_free(_res);
12686 // debug statements here
12688 // uint64_t C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR arg);
12690 export function C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg: bigint): bigint {
12691 if(!isWasmInitialized) {
12692 throw new Error("initializeWasm() must be awaited first!");
12694 const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone_ptr(arg);
12695 return nativeResponseValue;
12697 // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_clone(const struct LDKC2Tuple_SignatureCVec_SignatureZZ *NONNULL_PTR orig);
12699 export function C2Tuple_SignatureCVec_SignatureZZ_clone(orig: bigint): bigint {
12700 if(!isWasmInitialized) {
12701 throw new Error("initializeWasm() must be awaited first!");
12703 const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_clone(orig);
12704 return nativeResponseValue;
12706 // struct LDKC2Tuple_SignatureCVec_SignatureZZ C2Tuple_SignatureCVec_SignatureZZ_new(struct LDKSignature a, struct LDKCVec_SignatureZ b);
12708 export function C2Tuple_SignatureCVec_SignatureZZ_new(a: number, b: number): bigint {
12709 if(!isWasmInitialized) {
12710 throw new Error("initializeWasm() must be awaited first!");
12712 const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_new(a, b);
12713 return nativeResponseValue;
12715 // void C2Tuple_SignatureCVec_SignatureZZ_free(struct LDKC2Tuple_SignatureCVec_SignatureZZ _res);
12717 export function C2Tuple_SignatureCVec_SignatureZZ_free(_res: bigint): void {
12718 if(!isWasmInitialized) {
12719 throw new Error("initializeWasm() must be awaited first!");
12721 const nativeResponseValue = wasm.TS_C2Tuple_SignatureCVec_SignatureZZ_free(_res);
12722 // debug statements here
12724 // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(struct LDKC2Tuple_SignatureCVec_SignatureZZ o);
12726 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o: bigint): bigint {
12727 if(!isWasmInitialized) {
12728 throw new Error("initializeWasm() must be awaited first!");
12730 const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_ok(o);
12731 return nativeResponseValue;
12733 // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(void);
12735 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err(): bigint {
12736 if(!isWasmInitialized) {
12737 throw new Error("initializeWasm() must be awaited first!");
12739 const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_err();
12740 return nativeResponseValue;
12742 // bool CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR o);
12744 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o: bigint): boolean {
12745 if(!isWasmInitialized) {
12746 throw new Error("initializeWasm() must be awaited first!");
12748 const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_is_ok(o);
12749 return nativeResponseValue;
12751 // void CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ _res);
12753 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res: bigint): void {
12754 if(!isWasmInitialized) {
12755 throw new Error("initializeWasm() must be awaited first!");
12757 const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_free(_res);
12758 // debug statements here
12760 // uint64_t CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR arg);
12762 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg: bigint): bigint {
12763 if(!isWasmInitialized) {
12764 throw new Error("initializeWasm() must be awaited first!");
12766 const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone_ptr(arg);
12767 return nativeResponseValue;
12769 // struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(const struct LDKCResult_C2Tuple_SignatureCVec_SignatureZZNoneZ *NONNULL_PTR orig);
12771 export function CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig: bigint): bigint {
12772 if(!isWasmInitialized) {
12773 throw new Error("initializeWasm() must be awaited first!");
12775 const nativeResponseValue = wasm.TS_CResult_C2Tuple_SignatureCVec_SignatureZZNoneZ_clone(orig);
12776 return nativeResponseValue;
12778 // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_ok(struct LDKSignature o);
12780 export function CResult_SignatureNoneZ_ok(o: number): bigint {
12781 if(!isWasmInitialized) {
12782 throw new Error("initializeWasm() must be awaited first!");
12784 const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_ok(o);
12785 return nativeResponseValue;
12787 // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_err(void);
12789 export function CResult_SignatureNoneZ_err(): bigint {
12790 if(!isWasmInitialized) {
12791 throw new Error("initializeWasm() must be awaited first!");
12793 const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_err();
12794 return nativeResponseValue;
12796 // bool CResult_SignatureNoneZ_is_ok(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR o);
12798 export function CResult_SignatureNoneZ_is_ok(o: bigint): boolean {
12799 if(!isWasmInitialized) {
12800 throw new Error("initializeWasm() must be awaited first!");
12802 const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_is_ok(o);
12803 return nativeResponseValue;
12805 // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
12807 export function CResult_SignatureNoneZ_free(_res: bigint): void {
12808 if(!isWasmInitialized) {
12809 throw new Error("initializeWasm() must be awaited first!");
12811 const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_free(_res);
12812 // debug statements here
12814 // uint64_t CResult_SignatureNoneZ_clone_ptr(LDKCResult_SignatureNoneZ *NONNULL_PTR arg);
12816 export function CResult_SignatureNoneZ_clone_ptr(arg: bigint): bigint {
12817 if(!isWasmInitialized) {
12818 throw new Error("initializeWasm() must be awaited first!");
12820 const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone_ptr(arg);
12821 return nativeResponseValue;
12823 // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
12825 export function CResult_SignatureNoneZ_clone(orig: bigint): bigint {
12826 if(!isWasmInitialized) {
12827 throw new Error("initializeWasm() must be awaited first!");
12829 const nativeResponseValue = wasm.TS_CResult_SignatureNoneZ_clone(orig);
12830 return nativeResponseValue;
12832 // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_ok(struct LDKPublicKey o);
12834 export function CResult_PublicKeyNoneZ_ok(o: number): bigint {
12835 if(!isWasmInitialized) {
12836 throw new Error("initializeWasm() must be awaited first!");
12838 const nativeResponseValue = wasm.TS_CResult_PublicKeyNoneZ_ok(o);
12839 return nativeResponseValue;
12841 // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_err(void);
12843 export function CResult_PublicKeyNoneZ_err(): bigint {
12844 if(!isWasmInitialized) {
12845 throw new Error("initializeWasm() must be awaited first!");
12847 const nativeResponseValue = wasm.TS_CResult_PublicKeyNoneZ_err();
12848 return nativeResponseValue;
12850 // bool CResult_PublicKeyNoneZ_is_ok(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR o);
12852 export function CResult_PublicKeyNoneZ_is_ok(o: bigint): boolean {
12853 if(!isWasmInitialized) {
12854 throw new Error("initializeWasm() must be awaited first!");
12856 const nativeResponseValue = wasm.TS_CResult_PublicKeyNoneZ_is_ok(o);
12857 return nativeResponseValue;
12859 // void CResult_PublicKeyNoneZ_free(struct LDKCResult_PublicKeyNoneZ _res);
12861 export function CResult_PublicKeyNoneZ_free(_res: bigint): void {
12862 if(!isWasmInitialized) {
12863 throw new Error("initializeWasm() must be awaited first!");
12865 const nativeResponseValue = wasm.TS_CResult_PublicKeyNoneZ_free(_res);
12866 // debug statements here
12868 // uint64_t CResult_PublicKeyNoneZ_clone_ptr(LDKCResult_PublicKeyNoneZ *NONNULL_PTR arg);
12870 export function CResult_PublicKeyNoneZ_clone_ptr(arg: bigint): bigint {
12871 if(!isWasmInitialized) {
12872 throw new Error("initializeWasm() must be awaited first!");
12874 const nativeResponseValue = wasm.TS_CResult_PublicKeyNoneZ_clone_ptr(arg);
12875 return nativeResponseValue;
12877 // struct LDKCResult_PublicKeyNoneZ CResult_PublicKeyNoneZ_clone(const struct LDKCResult_PublicKeyNoneZ *NONNULL_PTR orig);
12879 export function CResult_PublicKeyNoneZ_clone(orig: bigint): bigint {
12880 if(!isWasmInitialized) {
12881 throw new Error("initializeWasm() must be awaited first!");
12883 const nativeResponseValue = wasm.TS_CResult_PublicKeyNoneZ_clone(orig);
12884 return nativeResponseValue;
12886 // struct LDKCOption_ScalarZ COption_ScalarZ_some(struct LDKBigEndianScalar o);
12888 export function COption_ScalarZ_some(o: bigint): bigint {
12889 if(!isWasmInitialized) {
12890 throw new Error("initializeWasm() must be awaited first!");
12892 const nativeResponseValue = wasm.TS_COption_ScalarZ_some(o);
12893 return nativeResponseValue;
12895 // struct LDKCOption_ScalarZ COption_ScalarZ_none(void);
12897 export function COption_ScalarZ_none(): bigint {
12898 if(!isWasmInitialized) {
12899 throw new Error("initializeWasm() must be awaited first!");
12901 const nativeResponseValue = wasm.TS_COption_ScalarZ_none();
12902 return nativeResponseValue;
12904 // void COption_ScalarZ_free(struct LDKCOption_ScalarZ _res);
12906 export function COption_ScalarZ_free(_res: bigint): void {
12907 if(!isWasmInitialized) {
12908 throw new Error("initializeWasm() must be awaited first!");
12910 const nativeResponseValue = wasm.TS_COption_ScalarZ_free(_res);
12911 // debug statements here
12913 // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
12915 export function CResult_SharedSecretNoneZ_ok(o: number): bigint {
12916 if(!isWasmInitialized) {
12917 throw new Error("initializeWasm() must be awaited first!");
12919 const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_ok(o);
12920 return nativeResponseValue;
12922 // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_err(void);
12924 export function CResult_SharedSecretNoneZ_err(): bigint {
12925 if(!isWasmInitialized) {
12926 throw new Error("initializeWasm() must be awaited first!");
12928 const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_err();
12929 return nativeResponseValue;
12931 // bool CResult_SharedSecretNoneZ_is_ok(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR o);
12933 export function CResult_SharedSecretNoneZ_is_ok(o: bigint): boolean {
12934 if(!isWasmInitialized) {
12935 throw new Error("initializeWasm() must be awaited first!");
12937 const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_is_ok(o);
12938 return nativeResponseValue;
12940 // void CResult_SharedSecretNoneZ_free(struct LDKCResult_SharedSecretNoneZ _res);
12942 export function CResult_SharedSecretNoneZ_free(_res: bigint): void {
12943 if(!isWasmInitialized) {
12944 throw new Error("initializeWasm() must be awaited first!");
12946 const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_free(_res);
12947 // debug statements here
12949 // uint64_t CResult_SharedSecretNoneZ_clone_ptr(LDKCResult_SharedSecretNoneZ *NONNULL_PTR arg);
12951 export function CResult_SharedSecretNoneZ_clone_ptr(arg: bigint): bigint {
12952 if(!isWasmInitialized) {
12953 throw new Error("initializeWasm() must be awaited first!");
12955 const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_clone_ptr(arg);
12956 return nativeResponseValue;
12958 // struct LDKCResult_SharedSecretNoneZ CResult_SharedSecretNoneZ_clone(const struct LDKCResult_SharedSecretNoneZ *NONNULL_PTR orig);
12960 export function CResult_SharedSecretNoneZ_clone(orig: bigint): bigint {
12961 if(!isWasmInitialized) {
12962 throw new Error("initializeWasm() must be awaited first!");
12964 const nativeResponseValue = wasm.TS_CResult_SharedSecretNoneZ_clone(orig);
12965 return nativeResponseValue;
12967 // void CVec_U5Z_free(struct LDKCVec_U5Z _res);
12969 export function CVec_U5Z_free(_res: number): void {
12970 if(!isWasmInitialized) {
12971 throw new Error("initializeWasm() must be awaited first!");
12973 const nativeResponseValue = wasm.TS_CVec_U5Z_free(_res);
12974 // debug statements here
12976 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_ok(struct LDKRecoverableSignature o);
12978 export function CResult_RecoverableSignatureNoneZ_ok(o: number): bigint {
12979 if(!isWasmInitialized) {
12980 throw new Error("initializeWasm() must be awaited first!");
12982 const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_ok(o);
12983 return nativeResponseValue;
12985 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_err(void);
12987 export function CResult_RecoverableSignatureNoneZ_err(): bigint {
12988 if(!isWasmInitialized) {
12989 throw new Error("initializeWasm() must be awaited first!");
12991 const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_err();
12992 return nativeResponseValue;
12994 // bool CResult_RecoverableSignatureNoneZ_is_ok(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR o);
12996 export function CResult_RecoverableSignatureNoneZ_is_ok(o: bigint): boolean {
12997 if(!isWasmInitialized) {
12998 throw new Error("initializeWasm() must be awaited first!");
13000 const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_is_ok(o);
13001 return nativeResponseValue;
13003 // void CResult_RecoverableSignatureNoneZ_free(struct LDKCResult_RecoverableSignatureNoneZ _res);
13005 export function CResult_RecoverableSignatureNoneZ_free(_res: bigint): void {
13006 if(!isWasmInitialized) {
13007 throw new Error("initializeWasm() must be awaited first!");
13009 const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_free(_res);
13010 // debug statements here
13012 // uint64_t CResult_RecoverableSignatureNoneZ_clone_ptr(LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR arg);
13014 export function CResult_RecoverableSignatureNoneZ_clone_ptr(arg: bigint): bigint {
13015 if(!isWasmInitialized) {
13016 throw new Error("initializeWasm() must be awaited first!");
13018 const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone_ptr(arg);
13019 return nativeResponseValue;
13021 // struct LDKCResult_RecoverableSignatureNoneZ CResult_RecoverableSignatureNoneZ_clone(const struct LDKCResult_RecoverableSignatureNoneZ *NONNULL_PTR orig);
13023 export function CResult_RecoverableSignatureNoneZ_clone(orig: bigint): bigint {
13024 if(!isWasmInitialized) {
13025 throw new Error("initializeWasm() must be awaited first!");
13027 const nativeResponseValue = wasm.TS_CResult_RecoverableSignatureNoneZ_clone(orig);
13028 return nativeResponseValue;
13030 // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(struct LDKWriteableEcdsaChannelSigner o);
13032 export function CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(o: bigint): bigint {
13033 if(!isWasmInitialized) {
13034 throw new Error("initializeWasm() must be awaited first!");
13036 const nativeResponseValue = wasm.TS_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_ok(o);
13037 return nativeResponseValue;
13039 // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(struct LDKDecodeError e);
13041 export function CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(e: bigint): bigint {
13042 if(!isWasmInitialized) {
13043 throw new Error("initializeWasm() must be awaited first!");
13045 const nativeResponseValue = wasm.TS_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_err(e);
13046 return nativeResponseValue;
13048 // bool CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR o);
13050 export function CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(o: bigint): boolean {
13051 if(!isWasmInitialized) {
13052 throw new Error("initializeWasm() must be awaited first!");
13054 const nativeResponseValue = wasm.TS_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_is_ok(o);
13055 return nativeResponseValue;
13057 // void CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ _res);
13059 export function CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(_res: bigint): void {
13060 if(!isWasmInitialized) {
13061 throw new Error("initializeWasm() must be awaited first!");
13063 const nativeResponseValue = wasm.TS_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_free(_res);
13064 // debug statements here
13066 // uint64_t CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR arg);
13068 export function CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(arg: bigint): bigint {
13069 if(!isWasmInitialized) {
13070 throw new Error("initializeWasm() must be awaited first!");
13072 const nativeResponseValue = wasm.TS_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone_ptr(arg);
13073 return nativeResponseValue;
13075 // struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(const struct LDKCResult_WriteableEcdsaChannelSignerDecodeErrorZ *NONNULL_PTR orig);
13077 export function CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(orig: bigint): bigint {
13078 if(!isWasmInitialized) {
13079 throw new Error("initializeWasm() must be awaited first!");
13081 const nativeResponseValue = wasm.TS_CResult_WriteableEcdsaChannelSignerDecodeErrorZ_clone(orig);
13082 return nativeResponseValue;
13084 // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
13086 export function CVec_CVec_u8ZZ_free(_res: number): void {
13087 if(!isWasmInitialized) {
13088 throw new Error("initializeWasm() must be awaited first!");
13090 const nativeResponseValue = wasm.TS_CVec_CVec_u8ZZ_free(_res);
13091 // debug statements here
13093 // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
13095 export function CResult_CVec_CVec_u8ZZNoneZ_ok(o: number): bigint {
13096 if(!isWasmInitialized) {
13097 throw new Error("initializeWasm() must be awaited first!");
13099 const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_ok(o);
13100 return nativeResponseValue;
13102 // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
13104 export function CResult_CVec_CVec_u8ZZNoneZ_err(): bigint {
13105 if(!isWasmInitialized) {
13106 throw new Error("initializeWasm() must be awaited first!");
13108 const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_err();
13109 return nativeResponseValue;
13111 // bool CResult_CVec_CVec_u8ZZNoneZ_is_ok(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR o);
13113 export function CResult_CVec_CVec_u8ZZNoneZ_is_ok(o: bigint): boolean {
13114 if(!isWasmInitialized) {
13115 throw new Error("initializeWasm() must be awaited first!");
13117 const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_is_ok(o);
13118 return nativeResponseValue;
13120 // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
13122 export function CResult_CVec_CVec_u8ZZNoneZ_free(_res: bigint): void {
13123 if(!isWasmInitialized) {
13124 throw new Error("initializeWasm() must be awaited first!");
13126 const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_free(_res);
13127 // debug statements here
13129 // uint64_t CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR arg);
13131 export function CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg: bigint): bigint {
13132 if(!isWasmInitialized) {
13133 throw new Error("initializeWasm() must be awaited first!");
13135 const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone_ptr(arg);
13136 return nativeResponseValue;
13138 // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
13140 export function CResult_CVec_CVec_u8ZZNoneZ_clone(orig: bigint): bigint {
13141 if(!isWasmInitialized) {
13142 throw new Error("initializeWasm() must be awaited first!");
13144 const nativeResponseValue = wasm.TS_CResult_CVec_CVec_u8ZZNoneZ_clone(orig);
13145 return nativeResponseValue;
13147 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
13149 export function CResult_InMemorySignerDecodeErrorZ_ok(o: bigint): bigint {
13150 if(!isWasmInitialized) {
13151 throw new Error("initializeWasm() must be awaited first!");
13153 const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_ok(o);
13154 return nativeResponseValue;
13156 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
13158 export function CResult_InMemorySignerDecodeErrorZ_err(e: bigint): bigint {
13159 if(!isWasmInitialized) {
13160 throw new Error("initializeWasm() must be awaited first!");
13162 const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_err(e);
13163 return nativeResponseValue;
13165 // bool CResult_InMemorySignerDecodeErrorZ_is_ok(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR o);
13167 export function CResult_InMemorySignerDecodeErrorZ_is_ok(o: bigint): boolean {
13168 if(!isWasmInitialized) {
13169 throw new Error("initializeWasm() must be awaited first!");
13171 const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_is_ok(o);
13172 return nativeResponseValue;
13174 // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
13176 export function CResult_InMemorySignerDecodeErrorZ_free(_res: bigint): void {
13177 if(!isWasmInitialized) {
13178 throw new Error("initializeWasm() must be awaited first!");
13180 const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_free(_res);
13181 // debug statements here
13183 // uint64_t CResult_InMemorySignerDecodeErrorZ_clone_ptr(LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR arg);
13185 export function CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg: bigint): bigint {
13186 if(!isWasmInitialized) {
13187 throw new Error("initializeWasm() must be awaited first!");
13189 const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone_ptr(arg);
13190 return nativeResponseValue;
13192 // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
13194 export function CResult_InMemorySignerDecodeErrorZ_clone(orig: bigint): bigint {
13195 if(!isWasmInitialized) {
13196 throw new Error("initializeWasm() must be awaited first!");
13198 const nativeResponseValue = wasm.TS_CResult_InMemorySignerDecodeErrorZ_clone(orig);
13199 return nativeResponseValue;
13201 // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
13203 export function CVec_TxOutZ_free(_res: number): void {
13204 if(!isWasmInitialized) {
13205 throw new Error("initializeWasm() must be awaited first!");
13207 const nativeResponseValue = wasm.TS_CVec_TxOutZ_free(_res);
13208 // debug statements here
13210 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
13212 export function CResult_TransactionNoneZ_ok(o: number): bigint {
13213 if(!isWasmInitialized) {
13214 throw new Error("initializeWasm() must be awaited first!");
13216 const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_ok(o);
13217 return nativeResponseValue;
13219 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
13221 export function CResult_TransactionNoneZ_err(): bigint {
13222 if(!isWasmInitialized) {
13223 throw new Error("initializeWasm() must be awaited first!");
13225 const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_err();
13226 return nativeResponseValue;
13228 // bool CResult_TransactionNoneZ_is_ok(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR o);
13230 export function CResult_TransactionNoneZ_is_ok(o: bigint): boolean {
13231 if(!isWasmInitialized) {
13232 throw new Error("initializeWasm() must be awaited first!");
13234 const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_is_ok(o);
13235 return nativeResponseValue;
13237 // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
13239 export function CResult_TransactionNoneZ_free(_res: bigint): void {
13240 if(!isWasmInitialized) {
13241 throw new Error("initializeWasm() must be awaited first!");
13243 const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_free(_res);
13244 // debug statements here
13246 // uint64_t CResult_TransactionNoneZ_clone_ptr(LDKCResult_TransactionNoneZ *NONNULL_PTR arg);
13248 export function CResult_TransactionNoneZ_clone_ptr(arg: bigint): bigint {
13249 if(!isWasmInitialized) {
13250 throw new Error("initializeWasm() must be awaited first!");
13252 const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone_ptr(arg);
13253 return nativeResponseValue;
13255 // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_clone(const struct LDKCResult_TransactionNoneZ *NONNULL_PTR orig);
13257 export function CResult_TransactionNoneZ_clone(orig: bigint): bigint {
13258 if(!isWasmInitialized) {
13259 throw new Error("initializeWasm() must be awaited first!");
13261 const nativeResponseValue = wasm.TS_CResult_TransactionNoneZ_clone(orig);
13262 return nativeResponseValue;
13264 // struct LDKCOption_u16Z COption_u16Z_some(uint16_t o);
13266 export function COption_u16Z_some(o: number): bigint {
13267 if(!isWasmInitialized) {
13268 throw new Error("initializeWasm() must be awaited first!");
13270 const nativeResponseValue = wasm.TS_COption_u16Z_some(o);
13271 return nativeResponseValue;
13273 // struct LDKCOption_u16Z COption_u16Z_none(void);
13275 export function COption_u16Z_none(): bigint {
13276 if(!isWasmInitialized) {
13277 throw new Error("initializeWasm() must be awaited first!");
13279 const nativeResponseValue = wasm.TS_COption_u16Z_none();
13280 return nativeResponseValue;
13282 // void COption_u16Z_free(struct LDKCOption_u16Z _res);
13284 export function COption_u16Z_free(_res: bigint): void {
13285 if(!isWasmInitialized) {
13286 throw new Error("initializeWasm() must be awaited first!");
13288 const nativeResponseValue = wasm.TS_COption_u16Z_free(_res);
13289 // debug statements here
13291 // uint64_t COption_u16Z_clone_ptr(LDKCOption_u16Z *NONNULL_PTR arg);
13293 export function COption_u16Z_clone_ptr(arg: bigint): bigint {
13294 if(!isWasmInitialized) {
13295 throw new Error("initializeWasm() must be awaited first!");
13297 const nativeResponseValue = wasm.TS_COption_u16Z_clone_ptr(arg);
13298 return nativeResponseValue;
13300 // struct LDKCOption_u16Z COption_u16Z_clone(const struct LDKCOption_u16Z *NONNULL_PTR orig);
13302 export function COption_u16Z_clone(orig: bigint): bigint {
13303 if(!isWasmInitialized) {
13304 throw new Error("initializeWasm() must be awaited first!");
13306 const nativeResponseValue = wasm.TS_COption_u16Z_clone(orig);
13307 return nativeResponseValue;
13309 // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_ok(struct LDKThirtyTwoBytes o);
13311 export function CResult__u832APIErrorZ_ok(o: number): bigint {
13312 if(!isWasmInitialized) {
13313 throw new Error("initializeWasm() must be awaited first!");
13315 const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_ok(o);
13316 return nativeResponseValue;
13318 // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_err(struct LDKAPIError e);
13320 export function CResult__u832APIErrorZ_err(e: bigint): bigint {
13321 if(!isWasmInitialized) {
13322 throw new Error("initializeWasm() must be awaited first!");
13324 const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_err(e);
13325 return nativeResponseValue;
13327 // bool CResult__u832APIErrorZ_is_ok(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR o);
13329 export function CResult__u832APIErrorZ_is_ok(o: bigint): boolean {
13330 if(!isWasmInitialized) {
13331 throw new Error("initializeWasm() must be awaited first!");
13333 const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_is_ok(o);
13334 return nativeResponseValue;
13336 // void CResult__u832APIErrorZ_free(struct LDKCResult__u832APIErrorZ _res);
13338 export function CResult__u832APIErrorZ_free(_res: bigint): void {
13339 if(!isWasmInitialized) {
13340 throw new Error("initializeWasm() must be awaited first!");
13342 const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_free(_res);
13343 // debug statements here
13345 // uint64_t CResult__u832APIErrorZ_clone_ptr(LDKCResult__u832APIErrorZ *NONNULL_PTR arg);
13347 export function CResult__u832APIErrorZ_clone_ptr(arg: bigint): bigint {
13348 if(!isWasmInitialized) {
13349 throw new Error("initializeWasm() must be awaited first!");
13351 const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone_ptr(arg);
13352 return nativeResponseValue;
13354 // struct LDKCResult__u832APIErrorZ CResult__u832APIErrorZ_clone(const struct LDKCResult__u832APIErrorZ *NONNULL_PTR orig);
13356 export function CResult__u832APIErrorZ_clone(orig: bigint): bigint {
13357 if(!isWasmInitialized) {
13358 throw new Error("initializeWasm() must be awaited first!");
13360 const nativeResponseValue = wasm.TS_CResult__u832APIErrorZ_clone(orig);
13361 return nativeResponseValue;
13363 // void CVec_RecentPaymentDetailsZ_free(struct LDKCVec_RecentPaymentDetailsZ _res);
13365 export function CVec_RecentPaymentDetailsZ_free(_res: number): void {
13366 if(!isWasmInitialized) {
13367 throw new Error("initializeWasm() must be awaited first!");
13369 const nativeResponseValue = wasm.TS_CVec_RecentPaymentDetailsZ_free(_res);
13370 // debug statements here
13372 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_ok(void);
13374 export function CResult_NonePaymentSendFailureZ_ok(): bigint {
13375 if(!isWasmInitialized) {
13376 throw new Error("initializeWasm() must be awaited first!");
13378 const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_ok();
13379 return nativeResponseValue;
13381 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
13383 export function CResult_NonePaymentSendFailureZ_err(e: bigint): bigint {
13384 if(!isWasmInitialized) {
13385 throw new Error("initializeWasm() must be awaited first!");
13387 const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_err(e);
13388 return nativeResponseValue;
13390 // bool CResult_NonePaymentSendFailureZ_is_ok(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR o);
13392 export function CResult_NonePaymentSendFailureZ_is_ok(o: bigint): boolean {
13393 if(!isWasmInitialized) {
13394 throw new Error("initializeWasm() must be awaited first!");
13396 const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_is_ok(o);
13397 return nativeResponseValue;
13399 // void CResult_NonePaymentSendFailureZ_free(struct LDKCResult_NonePaymentSendFailureZ _res);
13401 export function CResult_NonePaymentSendFailureZ_free(_res: bigint): void {
13402 if(!isWasmInitialized) {
13403 throw new Error("initializeWasm() must be awaited first!");
13405 const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_free(_res);
13406 // debug statements here
13408 // uint64_t CResult_NonePaymentSendFailureZ_clone_ptr(LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR arg);
13410 export function CResult_NonePaymentSendFailureZ_clone_ptr(arg: bigint): bigint {
13411 if(!isWasmInitialized) {
13412 throw new Error("initializeWasm() must be awaited first!");
13414 const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone_ptr(arg);
13415 return nativeResponseValue;
13417 // struct LDKCResult_NonePaymentSendFailureZ CResult_NonePaymentSendFailureZ_clone(const struct LDKCResult_NonePaymentSendFailureZ *NONNULL_PTR orig);
13419 export function CResult_NonePaymentSendFailureZ_clone(orig: bigint): bigint {
13420 if(!isWasmInitialized) {
13421 throw new Error("initializeWasm() must be awaited first!");
13423 const nativeResponseValue = wasm.TS_CResult_NonePaymentSendFailureZ_clone(orig);
13424 return nativeResponseValue;
13426 // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_ok(void);
13428 export function CResult_NoneRetryableSendFailureZ_ok(): bigint {
13429 if(!isWasmInitialized) {
13430 throw new Error("initializeWasm() must be awaited first!");
13432 const nativeResponseValue = wasm.TS_CResult_NoneRetryableSendFailureZ_ok();
13433 return nativeResponseValue;
13435 // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
13437 export function CResult_NoneRetryableSendFailureZ_err(e: RetryableSendFailure): bigint {
13438 if(!isWasmInitialized) {
13439 throw new Error("initializeWasm() must be awaited first!");
13441 const nativeResponseValue = wasm.TS_CResult_NoneRetryableSendFailureZ_err(e);
13442 return nativeResponseValue;
13444 // bool CResult_NoneRetryableSendFailureZ_is_ok(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR o);
13446 export function CResult_NoneRetryableSendFailureZ_is_ok(o: bigint): boolean {
13447 if(!isWasmInitialized) {
13448 throw new Error("initializeWasm() must be awaited first!");
13450 const nativeResponseValue = wasm.TS_CResult_NoneRetryableSendFailureZ_is_ok(o);
13451 return nativeResponseValue;
13453 // void CResult_NoneRetryableSendFailureZ_free(struct LDKCResult_NoneRetryableSendFailureZ _res);
13455 export function CResult_NoneRetryableSendFailureZ_free(_res: bigint): void {
13456 if(!isWasmInitialized) {
13457 throw new Error("initializeWasm() must be awaited first!");
13459 const nativeResponseValue = wasm.TS_CResult_NoneRetryableSendFailureZ_free(_res);
13460 // debug statements here
13462 // uint64_t CResult_NoneRetryableSendFailureZ_clone_ptr(LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR arg);
13464 export function CResult_NoneRetryableSendFailureZ_clone_ptr(arg: bigint): bigint {
13465 if(!isWasmInitialized) {
13466 throw new Error("initializeWasm() must be awaited first!");
13468 const nativeResponseValue = wasm.TS_CResult_NoneRetryableSendFailureZ_clone_ptr(arg);
13469 return nativeResponseValue;
13471 // struct LDKCResult_NoneRetryableSendFailureZ CResult_NoneRetryableSendFailureZ_clone(const struct LDKCResult_NoneRetryableSendFailureZ *NONNULL_PTR orig);
13473 export function CResult_NoneRetryableSendFailureZ_clone(orig: bigint): bigint {
13474 if(!isWasmInitialized) {
13475 throw new Error("initializeWasm() must be awaited first!");
13477 const nativeResponseValue = wasm.TS_CResult_NoneRetryableSendFailureZ_clone(orig);
13478 return nativeResponseValue;
13480 // struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_ok(struct LDKThirtyTwoBytes o);
13482 export function CResult_PaymentHashPaymentSendFailureZ_ok(o: number): bigint {
13483 if(!isWasmInitialized) {
13484 throw new Error("initializeWasm() must be awaited first!");
13486 const nativeResponseValue = wasm.TS_CResult_PaymentHashPaymentSendFailureZ_ok(o);
13487 return nativeResponseValue;
13489 // struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
13491 export function CResult_PaymentHashPaymentSendFailureZ_err(e: bigint): bigint {
13492 if(!isWasmInitialized) {
13493 throw new Error("initializeWasm() must be awaited first!");
13495 const nativeResponseValue = wasm.TS_CResult_PaymentHashPaymentSendFailureZ_err(e);
13496 return nativeResponseValue;
13498 // bool CResult_PaymentHashPaymentSendFailureZ_is_ok(const struct LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR o);
13500 export function CResult_PaymentHashPaymentSendFailureZ_is_ok(o: bigint): boolean {
13501 if(!isWasmInitialized) {
13502 throw new Error("initializeWasm() must be awaited first!");
13504 const nativeResponseValue = wasm.TS_CResult_PaymentHashPaymentSendFailureZ_is_ok(o);
13505 return nativeResponseValue;
13507 // void CResult_PaymentHashPaymentSendFailureZ_free(struct LDKCResult_PaymentHashPaymentSendFailureZ _res);
13509 export function CResult_PaymentHashPaymentSendFailureZ_free(_res: bigint): void {
13510 if(!isWasmInitialized) {
13511 throw new Error("initializeWasm() must be awaited first!");
13513 const nativeResponseValue = wasm.TS_CResult_PaymentHashPaymentSendFailureZ_free(_res);
13514 // debug statements here
13516 // uint64_t CResult_PaymentHashPaymentSendFailureZ_clone_ptr(LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR arg);
13518 export function CResult_PaymentHashPaymentSendFailureZ_clone_ptr(arg: bigint): bigint {
13519 if(!isWasmInitialized) {
13520 throw new Error("initializeWasm() must be awaited first!");
13522 const nativeResponseValue = wasm.TS_CResult_PaymentHashPaymentSendFailureZ_clone_ptr(arg);
13523 return nativeResponseValue;
13525 // struct LDKCResult_PaymentHashPaymentSendFailureZ CResult_PaymentHashPaymentSendFailureZ_clone(const struct LDKCResult_PaymentHashPaymentSendFailureZ *NONNULL_PTR orig);
13527 export function CResult_PaymentHashPaymentSendFailureZ_clone(orig: bigint): bigint {
13528 if(!isWasmInitialized) {
13529 throw new Error("initializeWasm() must be awaited first!");
13531 const nativeResponseValue = wasm.TS_CResult_PaymentHashPaymentSendFailureZ_clone(orig);
13532 return nativeResponseValue;
13534 // struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_ok(struct LDKThirtyTwoBytes o);
13536 export function CResult_PaymentHashRetryableSendFailureZ_ok(o: number): bigint {
13537 if(!isWasmInitialized) {
13538 throw new Error("initializeWasm() must be awaited first!");
13540 const nativeResponseValue = wasm.TS_CResult_PaymentHashRetryableSendFailureZ_ok(o);
13541 return nativeResponseValue;
13543 // struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_err(enum LDKRetryableSendFailure e);
13545 export function CResult_PaymentHashRetryableSendFailureZ_err(e: RetryableSendFailure): bigint {
13546 if(!isWasmInitialized) {
13547 throw new Error("initializeWasm() must be awaited first!");
13549 const nativeResponseValue = wasm.TS_CResult_PaymentHashRetryableSendFailureZ_err(e);
13550 return nativeResponseValue;
13552 // bool CResult_PaymentHashRetryableSendFailureZ_is_ok(const struct LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR o);
13554 export function CResult_PaymentHashRetryableSendFailureZ_is_ok(o: bigint): boolean {
13555 if(!isWasmInitialized) {
13556 throw new Error("initializeWasm() must be awaited first!");
13558 const nativeResponseValue = wasm.TS_CResult_PaymentHashRetryableSendFailureZ_is_ok(o);
13559 return nativeResponseValue;
13561 // void CResult_PaymentHashRetryableSendFailureZ_free(struct LDKCResult_PaymentHashRetryableSendFailureZ _res);
13563 export function CResult_PaymentHashRetryableSendFailureZ_free(_res: bigint): void {
13564 if(!isWasmInitialized) {
13565 throw new Error("initializeWasm() must be awaited first!");
13567 const nativeResponseValue = wasm.TS_CResult_PaymentHashRetryableSendFailureZ_free(_res);
13568 // debug statements here
13570 // uint64_t CResult_PaymentHashRetryableSendFailureZ_clone_ptr(LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR arg);
13572 export function CResult_PaymentHashRetryableSendFailureZ_clone_ptr(arg: bigint): bigint {
13573 if(!isWasmInitialized) {
13574 throw new Error("initializeWasm() must be awaited first!");
13576 const nativeResponseValue = wasm.TS_CResult_PaymentHashRetryableSendFailureZ_clone_ptr(arg);
13577 return nativeResponseValue;
13579 // struct LDKCResult_PaymentHashRetryableSendFailureZ CResult_PaymentHashRetryableSendFailureZ_clone(const struct LDKCResult_PaymentHashRetryableSendFailureZ *NONNULL_PTR orig);
13581 export function CResult_PaymentHashRetryableSendFailureZ_clone(orig: bigint): bigint {
13582 if(!isWasmInitialized) {
13583 throw new Error("initializeWasm() must be awaited first!");
13585 const nativeResponseValue = wasm.TS_CResult_PaymentHashRetryableSendFailureZ_clone(orig);
13586 return nativeResponseValue;
13588 // uint64_t C2Tuple_PaymentHashPaymentIdZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR arg);
13590 export function C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg: bigint): bigint {
13591 if(!isWasmInitialized) {
13592 throw new Error("initializeWasm() must be awaited first!");
13594 const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone_ptr(arg);
13595 return nativeResponseValue;
13597 // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_clone(const struct LDKC2Tuple_PaymentHashPaymentIdZ *NONNULL_PTR orig);
13599 export function C2Tuple_PaymentHashPaymentIdZ_clone(orig: bigint): bigint {
13600 if(!isWasmInitialized) {
13601 throw new Error("initializeWasm() must be awaited first!");
13603 const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_clone(orig);
13604 return nativeResponseValue;
13606 // struct LDKC2Tuple_PaymentHashPaymentIdZ C2Tuple_PaymentHashPaymentIdZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
13608 export function C2Tuple_PaymentHashPaymentIdZ_new(a: number, b: number): bigint {
13609 if(!isWasmInitialized) {
13610 throw new Error("initializeWasm() must be awaited first!");
13612 const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_new(a, b);
13613 return nativeResponseValue;
13615 // void C2Tuple_PaymentHashPaymentIdZ_free(struct LDKC2Tuple_PaymentHashPaymentIdZ _res);
13617 export function C2Tuple_PaymentHashPaymentIdZ_free(_res: bigint): void {
13618 if(!isWasmInitialized) {
13619 throw new Error("initializeWasm() must be awaited first!");
13621 const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentIdZ_free(_res);
13622 // debug statements here
13624 // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(struct LDKC2Tuple_PaymentHashPaymentIdZ o);
13626 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o: bigint): bigint {
13627 if(!isWasmInitialized) {
13628 throw new Error("initializeWasm() must be awaited first!");
13630 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_ok(o);
13631 return nativeResponseValue;
13633 // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(struct LDKPaymentSendFailure e);
13635 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e: bigint): bigint {
13636 if(!isWasmInitialized) {
13637 throw new Error("initializeWasm() must be awaited first!");
13639 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_err(e);
13640 return nativeResponseValue;
13642 // bool CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR o);
13644 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o: bigint): boolean {
13645 if(!isWasmInitialized) {
13646 throw new Error("initializeWasm() must be awaited first!");
13648 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_is_ok(o);
13649 return nativeResponseValue;
13651 // void CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ _res);
13653 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res: bigint): void {
13654 if(!isWasmInitialized) {
13655 throw new Error("initializeWasm() must be awaited first!");
13657 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_free(_res);
13658 // debug statements here
13660 // uint64_t CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR arg);
13662 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg: bigint): bigint {
13663 if(!isWasmInitialized) {
13664 throw new Error("initializeWasm() must be awaited first!");
13666 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone_ptr(arg);
13667 return nativeResponseValue;
13669 // struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ *NONNULL_PTR orig);
13671 export function CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig: bigint): bigint {
13672 if(!isWasmInitialized) {
13673 throw new Error("initializeWasm() must be awaited first!");
13675 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ_clone(orig);
13676 return nativeResponseValue;
13678 // void CVec_ThirtyTwoBytesZ_free(struct LDKCVec_ThirtyTwoBytesZ _res);
13680 export function CVec_ThirtyTwoBytesZ_free(_res: number): void {
13681 if(!isWasmInitialized) {
13682 throw new Error("initializeWasm() must be awaited first!");
13684 const nativeResponseValue = wasm.TS_CVec_ThirtyTwoBytesZ_free(_res);
13685 // debug statements here
13687 // uint64_t C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR arg);
13689 export function C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg: bigint): bigint {
13690 if(!isWasmInitialized) {
13691 throw new Error("initializeWasm() must be awaited first!");
13693 const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone_ptr(arg);
13694 return nativeResponseValue;
13696 // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_clone(const struct LDKC2Tuple_PaymentHashPaymentSecretZ *NONNULL_PTR orig);
13698 export function C2Tuple_PaymentHashPaymentSecretZ_clone(orig: bigint): bigint {
13699 if(!isWasmInitialized) {
13700 throw new Error("initializeWasm() must be awaited first!");
13702 const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_clone(orig);
13703 return nativeResponseValue;
13705 // struct LDKC2Tuple_PaymentHashPaymentSecretZ C2Tuple_PaymentHashPaymentSecretZ_new(struct LDKThirtyTwoBytes a, struct LDKThirtyTwoBytes b);
13707 export function C2Tuple_PaymentHashPaymentSecretZ_new(a: number, b: number): bigint {
13708 if(!isWasmInitialized) {
13709 throw new Error("initializeWasm() must be awaited first!");
13711 const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_new(a, b);
13712 return nativeResponseValue;
13714 // void C2Tuple_PaymentHashPaymentSecretZ_free(struct LDKC2Tuple_PaymentHashPaymentSecretZ _res);
13716 export function C2Tuple_PaymentHashPaymentSecretZ_free(_res: bigint): void {
13717 if(!isWasmInitialized) {
13718 throw new Error("initializeWasm() must be awaited first!");
13720 const nativeResponseValue = wasm.TS_C2Tuple_PaymentHashPaymentSecretZ_free(_res);
13721 // debug statements here
13723 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
13725 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o: bigint): bigint {
13726 if(!isWasmInitialized) {
13727 throw new Error("initializeWasm() must be awaited first!");
13729 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_ok(o);
13730 return nativeResponseValue;
13732 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(void);
13734 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err(): bigint {
13735 if(!isWasmInitialized) {
13736 throw new Error("initializeWasm() must be awaited first!");
13738 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_err();
13739 return nativeResponseValue;
13741 // bool CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR o);
13743 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o: bigint): boolean {
13744 if(!isWasmInitialized) {
13745 throw new Error("initializeWasm() must be awaited first!");
13747 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_is_ok(o);
13748 return nativeResponseValue;
13750 // void CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ _res);
13752 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res: bigint): void {
13753 if(!isWasmInitialized) {
13754 throw new Error("initializeWasm() must be awaited first!");
13756 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_free(_res);
13757 // debug statements here
13759 // uint64_t CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR arg);
13761 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg: bigint): bigint {
13762 if(!isWasmInitialized) {
13763 throw new Error("initializeWasm() must be awaited first!");
13765 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone_ptr(arg);
13766 return nativeResponseValue;
13768 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ *NONNULL_PTR orig);
13770 export function CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig: bigint): bigint {
13771 if(!isWasmInitialized) {
13772 throw new Error("initializeWasm() must be awaited first!");
13774 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZNoneZ_clone(orig);
13775 return nativeResponseValue;
13777 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(struct LDKC2Tuple_PaymentHashPaymentSecretZ o);
13779 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o: bigint): bigint {
13780 if(!isWasmInitialized) {
13781 throw new Error("initializeWasm() must be awaited first!");
13783 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_ok(o);
13784 return nativeResponseValue;
13786 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(struct LDKAPIError e);
13788 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e: bigint): bigint {
13789 if(!isWasmInitialized) {
13790 throw new Error("initializeWasm() must be awaited first!");
13792 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_err(e);
13793 return nativeResponseValue;
13795 // bool CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR o);
13797 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o: bigint): boolean {
13798 if(!isWasmInitialized) {
13799 throw new Error("initializeWasm() must be awaited first!");
13801 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_is_ok(o);
13802 return nativeResponseValue;
13804 // void CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ _res);
13806 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res: bigint): void {
13807 if(!isWasmInitialized) {
13808 throw new Error("initializeWasm() must be awaited first!");
13810 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_free(_res);
13811 // debug statements here
13813 // uint64_t CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR arg);
13815 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg: bigint): bigint {
13816 if(!isWasmInitialized) {
13817 throw new Error("initializeWasm() must be awaited first!");
13819 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone_ptr(arg);
13820 return nativeResponseValue;
13822 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(const struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ *NONNULL_PTR orig);
13824 export function CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig: bigint): bigint {
13825 if(!isWasmInitialized) {
13826 throw new Error("initializeWasm() must be awaited first!");
13828 const nativeResponseValue = wasm.TS_CResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ_clone(orig);
13829 return nativeResponseValue;
13831 // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_ok(struct LDKThirtyTwoBytes o);
13833 export function CResult_PaymentSecretNoneZ_ok(o: number): bigint {
13834 if(!isWasmInitialized) {
13835 throw new Error("initializeWasm() must be awaited first!");
13837 const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_ok(o);
13838 return nativeResponseValue;
13840 // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_err(void);
13842 export function CResult_PaymentSecretNoneZ_err(): bigint {
13843 if(!isWasmInitialized) {
13844 throw new Error("initializeWasm() must be awaited first!");
13846 const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_err();
13847 return nativeResponseValue;
13849 // bool CResult_PaymentSecretNoneZ_is_ok(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR o);
13851 export function CResult_PaymentSecretNoneZ_is_ok(o: bigint): boolean {
13852 if(!isWasmInitialized) {
13853 throw new Error("initializeWasm() must be awaited first!");
13855 const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_is_ok(o);
13856 return nativeResponseValue;
13858 // void CResult_PaymentSecretNoneZ_free(struct LDKCResult_PaymentSecretNoneZ _res);
13860 export function CResult_PaymentSecretNoneZ_free(_res: bigint): void {
13861 if(!isWasmInitialized) {
13862 throw new Error("initializeWasm() must be awaited first!");
13864 const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_free(_res);
13865 // debug statements here
13867 // uint64_t CResult_PaymentSecretNoneZ_clone_ptr(LDKCResult_PaymentSecretNoneZ *NONNULL_PTR arg);
13869 export function CResult_PaymentSecretNoneZ_clone_ptr(arg: bigint): bigint {
13870 if(!isWasmInitialized) {
13871 throw new Error("initializeWasm() must be awaited first!");
13873 const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone_ptr(arg);
13874 return nativeResponseValue;
13876 // struct LDKCResult_PaymentSecretNoneZ CResult_PaymentSecretNoneZ_clone(const struct LDKCResult_PaymentSecretNoneZ *NONNULL_PTR orig);
13878 export function CResult_PaymentSecretNoneZ_clone(orig: bigint): bigint {
13879 if(!isWasmInitialized) {
13880 throw new Error("initializeWasm() must be awaited first!");
13882 const nativeResponseValue = wasm.TS_CResult_PaymentSecretNoneZ_clone(orig);
13883 return nativeResponseValue;
13885 // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
13887 export function CResult_PaymentSecretAPIErrorZ_ok(o: number): bigint {
13888 if(!isWasmInitialized) {
13889 throw new Error("initializeWasm() must be awaited first!");
13891 const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_ok(o);
13892 return nativeResponseValue;
13894 // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_err(struct LDKAPIError e);
13896 export function CResult_PaymentSecretAPIErrorZ_err(e: bigint): bigint {
13897 if(!isWasmInitialized) {
13898 throw new Error("initializeWasm() must be awaited first!");
13900 const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_err(e);
13901 return nativeResponseValue;
13903 // bool CResult_PaymentSecretAPIErrorZ_is_ok(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR o);
13905 export function CResult_PaymentSecretAPIErrorZ_is_ok(o: bigint): boolean {
13906 if(!isWasmInitialized) {
13907 throw new Error("initializeWasm() must be awaited first!");
13909 const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_is_ok(o);
13910 return nativeResponseValue;
13912 // void CResult_PaymentSecretAPIErrorZ_free(struct LDKCResult_PaymentSecretAPIErrorZ _res);
13914 export function CResult_PaymentSecretAPIErrorZ_free(_res: bigint): void {
13915 if(!isWasmInitialized) {
13916 throw new Error("initializeWasm() must be awaited first!");
13918 const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_free(_res);
13919 // debug statements here
13921 // uint64_t CResult_PaymentSecretAPIErrorZ_clone_ptr(LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR arg);
13923 export function CResult_PaymentSecretAPIErrorZ_clone_ptr(arg: bigint): bigint {
13924 if(!isWasmInitialized) {
13925 throw new Error("initializeWasm() must be awaited first!");
13927 const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone_ptr(arg);
13928 return nativeResponseValue;
13930 // struct LDKCResult_PaymentSecretAPIErrorZ CResult_PaymentSecretAPIErrorZ_clone(const struct LDKCResult_PaymentSecretAPIErrorZ *NONNULL_PTR orig);
13932 export function CResult_PaymentSecretAPIErrorZ_clone(orig: bigint): bigint {
13933 if(!isWasmInitialized) {
13934 throw new Error("initializeWasm() must be awaited first!");
13936 const nativeResponseValue = wasm.TS_CResult_PaymentSecretAPIErrorZ_clone(orig);
13937 return nativeResponseValue;
13939 // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_ok(struct LDKThirtyTwoBytes o);
13941 export function CResult_PaymentPreimageAPIErrorZ_ok(o: number): bigint {
13942 if(!isWasmInitialized) {
13943 throw new Error("initializeWasm() must be awaited first!");
13945 const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_ok(o);
13946 return nativeResponseValue;
13948 // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_err(struct LDKAPIError e);
13950 export function CResult_PaymentPreimageAPIErrorZ_err(e: bigint): bigint {
13951 if(!isWasmInitialized) {
13952 throw new Error("initializeWasm() must be awaited first!");
13954 const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_err(e);
13955 return nativeResponseValue;
13957 // bool CResult_PaymentPreimageAPIErrorZ_is_ok(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR o);
13959 export function CResult_PaymentPreimageAPIErrorZ_is_ok(o: bigint): boolean {
13960 if(!isWasmInitialized) {
13961 throw new Error("initializeWasm() must be awaited first!");
13963 const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_is_ok(o);
13964 return nativeResponseValue;
13966 // void CResult_PaymentPreimageAPIErrorZ_free(struct LDKCResult_PaymentPreimageAPIErrorZ _res);
13968 export function CResult_PaymentPreimageAPIErrorZ_free(_res: bigint): void {
13969 if(!isWasmInitialized) {
13970 throw new Error("initializeWasm() must be awaited first!");
13972 const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_free(_res);
13973 // debug statements here
13975 // uint64_t CResult_PaymentPreimageAPIErrorZ_clone_ptr(LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR arg);
13977 export function CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg: bigint): bigint {
13978 if(!isWasmInitialized) {
13979 throw new Error("initializeWasm() must be awaited first!");
13981 const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone_ptr(arg);
13982 return nativeResponseValue;
13984 // struct LDKCResult_PaymentPreimageAPIErrorZ CResult_PaymentPreimageAPIErrorZ_clone(const struct LDKCResult_PaymentPreimageAPIErrorZ *NONNULL_PTR orig);
13986 export function CResult_PaymentPreimageAPIErrorZ_clone(orig: bigint): bigint {
13987 if(!isWasmInitialized) {
13988 throw new Error("initializeWasm() must be awaited first!");
13990 const nativeResponseValue = wasm.TS_CResult_PaymentPreimageAPIErrorZ_clone(orig);
13991 return nativeResponseValue;
13993 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(struct LDKCounterpartyForwardingInfo o);
13995 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o: bigint): bigint {
13996 if(!isWasmInitialized) {
13997 throw new Error("initializeWasm() must be awaited first!");
13999 const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_ok(o);
14000 return nativeResponseValue;
14002 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_err(struct LDKDecodeError e);
14004 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e: bigint): bigint {
14005 if(!isWasmInitialized) {
14006 throw new Error("initializeWasm() must be awaited first!");
14008 const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_err(e);
14009 return nativeResponseValue;
14011 // bool CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR o);
14013 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o: bigint): boolean {
14014 if(!isWasmInitialized) {
14015 throw new Error("initializeWasm() must be awaited first!");
14017 const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_is_ok(o);
14018 return nativeResponseValue;
14020 // void CResult_CounterpartyForwardingInfoDecodeErrorZ_free(struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ _res);
14022 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res: bigint): void {
14023 if(!isWasmInitialized) {
14024 throw new Error("initializeWasm() must be awaited first!");
14026 const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_free(_res);
14027 // debug statements here
14029 // uint64_t CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR arg);
14031 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14032 if(!isWasmInitialized) {
14033 throw new Error("initializeWasm() must be awaited first!");
14035 const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone_ptr(arg);
14036 return nativeResponseValue;
14038 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(const struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ *NONNULL_PTR orig);
14040 export function CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig: bigint): bigint {
14041 if(!isWasmInitialized) {
14042 throw new Error("initializeWasm() must be awaited first!");
14044 const nativeResponseValue = wasm.TS_CResult_CounterpartyForwardingInfoDecodeErrorZ_clone(orig);
14045 return nativeResponseValue;
14047 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_ok(struct LDKChannelCounterparty o);
14049 export function CResult_ChannelCounterpartyDecodeErrorZ_ok(o: bigint): bigint {
14050 if(!isWasmInitialized) {
14051 throw new Error("initializeWasm() must be awaited first!");
14053 const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_ok(o);
14054 return nativeResponseValue;
14056 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_err(struct LDKDecodeError e);
14058 export function CResult_ChannelCounterpartyDecodeErrorZ_err(e: bigint): bigint {
14059 if(!isWasmInitialized) {
14060 throw new Error("initializeWasm() must be awaited first!");
14062 const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_err(e);
14063 return nativeResponseValue;
14065 // bool CResult_ChannelCounterpartyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR o);
14067 export function CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o: bigint): boolean {
14068 if(!isWasmInitialized) {
14069 throw new Error("initializeWasm() must be awaited first!");
14071 const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_is_ok(o);
14072 return nativeResponseValue;
14074 // void CResult_ChannelCounterpartyDecodeErrorZ_free(struct LDKCResult_ChannelCounterpartyDecodeErrorZ _res);
14076 export function CResult_ChannelCounterpartyDecodeErrorZ_free(_res: bigint): void {
14077 if(!isWasmInitialized) {
14078 throw new Error("initializeWasm() must be awaited first!");
14080 const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_free(_res);
14081 // debug statements here
14083 // uint64_t CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR arg);
14085 export function CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14086 if(!isWasmInitialized) {
14087 throw new Error("initializeWasm() must be awaited first!");
14089 const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone_ptr(arg);
14090 return nativeResponseValue;
14092 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ CResult_ChannelCounterpartyDecodeErrorZ_clone(const struct LDKCResult_ChannelCounterpartyDecodeErrorZ *NONNULL_PTR orig);
14094 export function CResult_ChannelCounterpartyDecodeErrorZ_clone(orig: bigint): bigint {
14095 if(!isWasmInitialized) {
14096 throw new Error("initializeWasm() must be awaited first!");
14098 const nativeResponseValue = wasm.TS_CResult_ChannelCounterpartyDecodeErrorZ_clone(orig);
14099 return nativeResponseValue;
14101 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_ok(struct LDKChannelDetails o);
14103 export function CResult_ChannelDetailsDecodeErrorZ_ok(o: bigint): bigint {
14104 if(!isWasmInitialized) {
14105 throw new Error("initializeWasm() must be awaited first!");
14107 const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_ok(o);
14108 return nativeResponseValue;
14110 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_err(struct LDKDecodeError e);
14112 export function CResult_ChannelDetailsDecodeErrorZ_err(e: bigint): bigint {
14113 if(!isWasmInitialized) {
14114 throw new Error("initializeWasm() must be awaited first!");
14116 const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_err(e);
14117 return nativeResponseValue;
14119 // bool CResult_ChannelDetailsDecodeErrorZ_is_ok(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR o);
14121 export function CResult_ChannelDetailsDecodeErrorZ_is_ok(o: bigint): boolean {
14122 if(!isWasmInitialized) {
14123 throw new Error("initializeWasm() must be awaited first!");
14125 const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_is_ok(o);
14126 return nativeResponseValue;
14128 // void CResult_ChannelDetailsDecodeErrorZ_free(struct LDKCResult_ChannelDetailsDecodeErrorZ _res);
14130 export function CResult_ChannelDetailsDecodeErrorZ_free(_res: bigint): void {
14131 if(!isWasmInitialized) {
14132 throw new Error("initializeWasm() must be awaited first!");
14134 const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_free(_res);
14135 // debug statements here
14137 // uint64_t CResult_ChannelDetailsDecodeErrorZ_clone_ptr(LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR arg);
14139 export function CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14140 if(!isWasmInitialized) {
14141 throw new Error("initializeWasm() must be awaited first!");
14143 const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone_ptr(arg);
14144 return nativeResponseValue;
14146 // struct LDKCResult_ChannelDetailsDecodeErrorZ CResult_ChannelDetailsDecodeErrorZ_clone(const struct LDKCResult_ChannelDetailsDecodeErrorZ *NONNULL_PTR orig);
14148 export function CResult_ChannelDetailsDecodeErrorZ_clone(orig: bigint): bigint {
14149 if(!isWasmInitialized) {
14150 throw new Error("initializeWasm() must be awaited first!");
14152 const nativeResponseValue = wasm.TS_CResult_ChannelDetailsDecodeErrorZ_clone(orig);
14153 return nativeResponseValue;
14155 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_ok(struct LDKPhantomRouteHints o);
14157 export function CResult_PhantomRouteHintsDecodeErrorZ_ok(o: bigint): bigint {
14158 if(!isWasmInitialized) {
14159 throw new Error("initializeWasm() must be awaited first!");
14161 const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_ok(o);
14162 return nativeResponseValue;
14164 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_err(struct LDKDecodeError e);
14166 export function CResult_PhantomRouteHintsDecodeErrorZ_err(e: bigint): bigint {
14167 if(!isWasmInitialized) {
14168 throw new Error("initializeWasm() must be awaited first!");
14170 const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_err(e);
14171 return nativeResponseValue;
14173 // bool CResult_PhantomRouteHintsDecodeErrorZ_is_ok(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR o);
14175 export function CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o: bigint): boolean {
14176 if(!isWasmInitialized) {
14177 throw new Error("initializeWasm() must be awaited first!");
14179 const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_is_ok(o);
14180 return nativeResponseValue;
14182 // void CResult_PhantomRouteHintsDecodeErrorZ_free(struct LDKCResult_PhantomRouteHintsDecodeErrorZ _res);
14184 export function CResult_PhantomRouteHintsDecodeErrorZ_free(_res: bigint): void {
14185 if(!isWasmInitialized) {
14186 throw new Error("initializeWasm() must be awaited first!");
14188 const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_free(_res);
14189 // debug statements here
14191 // uint64_t CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR arg);
14193 export function CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14194 if(!isWasmInitialized) {
14195 throw new Error("initializeWasm() must be awaited first!");
14197 const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone_ptr(arg);
14198 return nativeResponseValue;
14200 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ CResult_PhantomRouteHintsDecodeErrorZ_clone(const struct LDKCResult_PhantomRouteHintsDecodeErrorZ *NONNULL_PTR orig);
14202 export function CResult_PhantomRouteHintsDecodeErrorZ_clone(orig: bigint): bigint {
14203 if(!isWasmInitialized) {
14204 throw new Error("initializeWasm() must be awaited first!");
14206 const nativeResponseValue = wasm.TS_CResult_PhantomRouteHintsDecodeErrorZ_clone(orig);
14207 return nativeResponseValue;
14209 // void CVec_ChannelMonitorZ_free(struct LDKCVec_ChannelMonitorZ _res);
14211 export function CVec_ChannelMonitorZ_free(_res: number): void {
14212 if(!isWasmInitialized) {
14213 throw new Error("initializeWasm() must be awaited first!");
14215 const nativeResponseValue = wasm.TS_CVec_ChannelMonitorZ_free(_res);
14216 // debug statements here
14218 // struct LDKC2Tuple_BlockHashChannelManagerZ C2Tuple_BlockHashChannelManagerZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelManager b);
14220 export function C2Tuple_BlockHashChannelManagerZ_new(a: number, b: bigint): bigint {
14221 if(!isWasmInitialized) {
14222 throw new Error("initializeWasm() must be awaited first!");
14224 const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_new(a, b);
14225 return nativeResponseValue;
14227 // void C2Tuple_BlockHashChannelManagerZ_free(struct LDKC2Tuple_BlockHashChannelManagerZ _res);
14229 export function C2Tuple_BlockHashChannelManagerZ_free(_res: bigint): void {
14230 if(!isWasmInitialized) {
14231 throw new Error("initializeWasm() must be awaited first!");
14233 const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_free(_res);
14234 // debug statements here
14236 // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelManagerZ o);
14238 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o: bigint): bigint {
14239 if(!isWasmInitialized) {
14240 throw new Error("initializeWasm() must be awaited first!");
14242 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_ok(o);
14243 return nativeResponseValue;
14245 // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(struct LDKDecodeError e);
14247 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e: bigint): bigint {
14248 if(!isWasmInitialized) {
14249 throw new Error("initializeWasm() must be awaited first!");
14251 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_err(e);
14252 return nativeResponseValue;
14254 // bool CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ *NONNULL_PTR o);
14256 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o: bigint): boolean {
14257 if(!isWasmInitialized) {
14258 throw new Error("initializeWasm() must be awaited first!");
14260 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_is_ok(o);
14261 return nativeResponseValue;
14263 // void CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ _res);
14265 export function CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res: bigint): void {
14266 if(!isWasmInitialized) {
14267 throw new Error("initializeWasm() must be awaited first!");
14269 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ_free(_res);
14270 // debug statements here
14272 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
14274 export function CResult_ChannelConfigDecodeErrorZ_ok(o: bigint): bigint {
14275 if(!isWasmInitialized) {
14276 throw new Error("initializeWasm() must be awaited first!");
14278 const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_ok(o);
14279 return nativeResponseValue;
14281 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
14283 export function CResult_ChannelConfigDecodeErrorZ_err(e: bigint): bigint {
14284 if(!isWasmInitialized) {
14285 throw new Error("initializeWasm() must be awaited first!");
14287 const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_err(e);
14288 return nativeResponseValue;
14290 // bool CResult_ChannelConfigDecodeErrorZ_is_ok(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR o);
14292 export function CResult_ChannelConfigDecodeErrorZ_is_ok(o: bigint): boolean {
14293 if(!isWasmInitialized) {
14294 throw new Error("initializeWasm() must be awaited first!");
14296 const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_is_ok(o);
14297 return nativeResponseValue;
14299 // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
14301 export function CResult_ChannelConfigDecodeErrorZ_free(_res: bigint): void {
14302 if(!isWasmInitialized) {
14303 throw new Error("initializeWasm() must be awaited first!");
14305 const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_free(_res);
14306 // debug statements here
14308 // uint64_t CResult_ChannelConfigDecodeErrorZ_clone_ptr(LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR arg);
14310 export function CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14311 if(!isWasmInitialized) {
14312 throw new Error("initializeWasm() must be awaited first!");
14314 const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone_ptr(arg);
14315 return nativeResponseValue;
14317 // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
14319 export function CResult_ChannelConfigDecodeErrorZ_clone(orig: bigint): bigint {
14320 if(!isWasmInitialized) {
14321 throw new Error("initializeWasm() must be awaited first!");
14323 const nativeResponseValue = wasm.TS_CResult_ChannelConfigDecodeErrorZ_clone(orig);
14324 return nativeResponseValue;
14326 // struct LDKCOption_APIErrorZ COption_APIErrorZ_some(struct LDKAPIError o);
14328 export function COption_APIErrorZ_some(o: bigint): bigint {
14329 if(!isWasmInitialized) {
14330 throw new Error("initializeWasm() must be awaited first!");
14332 const nativeResponseValue = wasm.TS_COption_APIErrorZ_some(o);
14333 return nativeResponseValue;
14335 // struct LDKCOption_APIErrorZ COption_APIErrorZ_none(void);
14337 export function COption_APIErrorZ_none(): bigint {
14338 if(!isWasmInitialized) {
14339 throw new Error("initializeWasm() must be awaited first!");
14341 const nativeResponseValue = wasm.TS_COption_APIErrorZ_none();
14342 return nativeResponseValue;
14344 // void COption_APIErrorZ_free(struct LDKCOption_APIErrorZ _res);
14346 export function COption_APIErrorZ_free(_res: bigint): void {
14347 if(!isWasmInitialized) {
14348 throw new Error("initializeWasm() must be awaited first!");
14350 const nativeResponseValue = wasm.TS_COption_APIErrorZ_free(_res);
14351 // debug statements here
14353 // uint64_t COption_APIErrorZ_clone_ptr(LDKCOption_APIErrorZ *NONNULL_PTR arg);
14355 export function COption_APIErrorZ_clone_ptr(arg: bigint): bigint {
14356 if(!isWasmInitialized) {
14357 throw new Error("initializeWasm() must be awaited first!");
14359 const nativeResponseValue = wasm.TS_COption_APIErrorZ_clone_ptr(arg);
14360 return nativeResponseValue;
14362 // struct LDKCOption_APIErrorZ COption_APIErrorZ_clone(const struct LDKCOption_APIErrorZ *NONNULL_PTR orig);
14364 export function COption_APIErrorZ_clone(orig: bigint): bigint {
14365 if(!isWasmInitialized) {
14366 throw new Error("initializeWasm() must be awaited first!");
14368 const nativeResponseValue = wasm.TS_COption_APIErrorZ_clone(orig);
14369 return nativeResponseValue;
14371 // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_ok(struct LDKCOption_APIErrorZ o);
14373 export function CResult_COption_APIErrorZDecodeErrorZ_ok(o: bigint): bigint {
14374 if(!isWasmInitialized) {
14375 throw new Error("initializeWasm() must be awaited first!");
14377 const nativeResponseValue = wasm.TS_CResult_COption_APIErrorZDecodeErrorZ_ok(o);
14378 return nativeResponseValue;
14380 // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_err(struct LDKDecodeError e);
14382 export function CResult_COption_APIErrorZDecodeErrorZ_err(e: bigint): bigint {
14383 if(!isWasmInitialized) {
14384 throw new Error("initializeWasm() must be awaited first!");
14386 const nativeResponseValue = wasm.TS_CResult_COption_APIErrorZDecodeErrorZ_err(e);
14387 return nativeResponseValue;
14389 // bool CResult_COption_APIErrorZDecodeErrorZ_is_ok(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR o);
14391 export function CResult_COption_APIErrorZDecodeErrorZ_is_ok(o: bigint): boolean {
14392 if(!isWasmInitialized) {
14393 throw new Error("initializeWasm() must be awaited first!");
14395 const nativeResponseValue = wasm.TS_CResult_COption_APIErrorZDecodeErrorZ_is_ok(o);
14396 return nativeResponseValue;
14398 // void CResult_COption_APIErrorZDecodeErrorZ_free(struct LDKCResult_COption_APIErrorZDecodeErrorZ _res);
14400 export function CResult_COption_APIErrorZDecodeErrorZ_free(_res: bigint): void {
14401 if(!isWasmInitialized) {
14402 throw new Error("initializeWasm() must be awaited first!");
14404 const nativeResponseValue = wasm.TS_CResult_COption_APIErrorZDecodeErrorZ_free(_res);
14405 // debug statements here
14407 // uint64_t CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR arg);
14409 export function CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14410 if(!isWasmInitialized) {
14411 throw new Error("initializeWasm() must be awaited first!");
14413 const nativeResponseValue = wasm.TS_CResult_COption_APIErrorZDecodeErrorZ_clone_ptr(arg);
14414 return nativeResponseValue;
14416 // struct LDKCResult_COption_APIErrorZDecodeErrorZ CResult_COption_APIErrorZDecodeErrorZ_clone(const struct LDKCResult_COption_APIErrorZDecodeErrorZ *NONNULL_PTR orig);
14418 export function CResult_COption_APIErrorZDecodeErrorZ_clone(orig: bigint): bigint {
14419 if(!isWasmInitialized) {
14420 throw new Error("initializeWasm() must be awaited first!");
14422 const nativeResponseValue = wasm.TS_CResult_COption_APIErrorZDecodeErrorZ_clone(orig);
14423 return nativeResponseValue;
14425 // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_ok(struct LDKUntrustedString o);
14427 export function CResult_UntrustedStringDecodeErrorZ_ok(o: bigint): bigint {
14428 if(!isWasmInitialized) {
14429 throw new Error("initializeWasm() must be awaited first!");
14431 const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_ok(o);
14432 return nativeResponseValue;
14434 // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_err(struct LDKDecodeError e);
14436 export function CResult_UntrustedStringDecodeErrorZ_err(e: bigint): bigint {
14437 if(!isWasmInitialized) {
14438 throw new Error("initializeWasm() must be awaited first!");
14440 const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_err(e);
14441 return nativeResponseValue;
14443 // bool CResult_UntrustedStringDecodeErrorZ_is_ok(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR o);
14445 export function CResult_UntrustedStringDecodeErrorZ_is_ok(o: bigint): boolean {
14446 if(!isWasmInitialized) {
14447 throw new Error("initializeWasm() must be awaited first!");
14449 const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_is_ok(o);
14450 return nativeResponseValue;
14452 // void CResult_UntrustedStringDecodeErrorZ_free(struct LDKCResult_UntrustedStringDecodeErrorZ _res);
14454 export function CResult_UntrustedStringDecodeErrorZ_free(_res: bigint): void {
14455 if(!isWasmInitialized) {
14456 throw new Error("initializeWasm() must be awaited first!");
14458 const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_free(_res);
14459 // debug statements here
14461 // uint64_t CResult_UntrustedStringDecodeErrorZ_clone_ptr(LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR arg);
14463 export function CResult_UntrustedStringDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14464 if(!isWasmInitialized) {
14465 throw new Error("initializeWasm() must be awaited first!");
14467 const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_clone_ptr(arg);
14468 return nativeResponseValue;
14470 // struct LDKCResult_UntrustedStringDecodeErrorZ CResult_UntrustedStringDecodeErrorZ_clone(const struct LDKCResult_UntrustedStringDecodeErrorZ *NONNULL_PTR orig);
14472 export function CResult_UntrustedStringDecodeErrorZ_clone(orig: bigint): bigint {
14473 if(!isWasmInitialized) {
14474 throw new Error("initializeWasm() must be awaited first!");
14476 const nativeResponseValue = wasm.TS_CResult_UntrustedStringDecodeErrorZ_clone(orig);
14477 return nativeResponseValue;
14479 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
14481 export function CResult_OutPointDecodeErrorZ_ok(o: bigint): bigint {
14482 if(!isWasmInitialized) {
14483 throw new Error("initializeWasm() must be awaited first!");
14485 const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_ok(o);
14486 return nativeResponseValue;
14488 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
14490 export function CResult_OutPointDecodeErrorZ_err(e: bigint): bigint {
14491 if(!isWasmInitialized) {
14492 throw new Error("initializeWasm() must be awaited first!");
14494 const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_err(e);
14495 return nativeResponseValue;
14497 // bool CResult_OutPointDecodeErrorZ_is_ok(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR o);
14499 export function CResult_OutPointDecodeErrorZ_is_ok(o: bigint): boolean {
14500 if(!isWasmInitialized) {
14501 throw new Error("initializeWasm() must be awaited first!");
14503 const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_is_ok(o);
14504 return nativeResponseValue;
14506 // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
14508 export function CResult_OutPointDecodeErrorZ_free(_res: bigint): void {
14509 if(!isWasmInitialized) {
14510 throw new Error("initializeWasm() must be awaited first!");
14512 const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_free(_res);
14513 // debug statements here
14515 // uint64_t CResult_OutPointDecodeErrorZ_clone_ptr(LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR arg);
14517 export function CResult_OutPointDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14518 if(!isWasmInitialized) {
14519 throw new Error("initializeWasm() must be awaited first!");
14521 const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone_ptr(arg);
14522 return nativeResponseValue;
14524 // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
14526 export function CResult_OutPointDecodeErrorZ_clone(orig: bigint): bigint {
14527 if(!isWasmInitialized) {
14528 throw new Error("initializeWasm() must be awaited first!");
14530 const nativeResponseValue = wasm.TS_CResult_OutPointDecodeErrorZ_clone(orig);
14531 return nativeResponseValue;
14533 // struct LDKCOption_TypeZ COption_TypeZ_some(struct LDKType o);
14535 export function COption_TypeZ_some(o: bigint): bigint {
14536 if(!isWasmInitialized) {
14537 throw new Error("initializeWasm() must be awaited first!");
14539 const nativeResponseValue = wasm.TS_COption_TypeZ_some(o);
14540 return nativeResponseValue;
14542 // struct LDKCOption_TypeZ COption_TypeZ_none(void);
14544 export function COption_TypeZ_none(): bigint {
14545 if(!isWasmInitialized) {
14546 throw new Error("initializeWasm() must be awaited first!");
14548 const nativeResponseValue = wasm.TS_COption_TypeZ_none();
14549 return nativeResponseValue;
14551 // void COption_TypeZ_free(struct LDKCOption_TypeZ _res);
14553 export function COption_TypeZ_free(_res: bigint): void {
14554 if(!isWasmInitialized) {
14555 throw new Error("initializeWasm() must be awaited first!");
14557 const nativeResponseValue = wasm.TS_COption_TypeZ_free(_res);
14558 // debug statements here
14560 // uint64_t COption_TypeZ_clone_ptr(LDKCOption_TypeZ *NONNULL_PTR arg);
14562 export function COption_TypeZ_clone_ptr(arg: bigint): bigint {
14563 if(!isWasmInitialized) {
14564 throw new Error("initializeWasm() must be awaited first!");
14566 const nativeResponseValue = wasm.TS_COption_TypeZ_clone_ptr(arg);
14567 return nativeResponseValue;
14569 // struct LDKCOption_TypeZ COption_TypeZ_clone(const struct LDKCOption_TypeZ *NONNULL_PTR orig);
14571 export function COption_TypeZ_clone(orig: bigint): bigint {
14572 if(!isWasmInitialized) {
14573 throw new Error("initializeWasm() must be awaited first!");
14575 const nativeResponseValue = wasm.TS_COption_TypeZ_clone(orig);
14576 return nativeResponseValue;
14578 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_ok(struct LDKCOption_TypeZ o);
14580 export function CResult_COption_TypeZDecodeErrorZ_ok(o: bigint): bigint {
14581 if(!isWasmInitialized) {
14582 throw new Error("initializeWasm() must be awaited first!");
14584 const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_ok(o);
14585 return nativeResponseValue;
14587 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_err(struct LDKDecodeError e);
14589 export function CResult_COption_TypeZDecodeErrorZ_err(e: bigint): bigint {
14590 if(!isWasmInitialized) {
14591 throw new Error("initializeWasm() must be awaited first!");
14593 const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_err(e);
14594 return nativeResponseValue;
14596 // bool CResult_COption_TypeZDecodeErrorZ_is_ok(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR o);
14598 export function CResult_COption_TypeZDecodeErrorZ_is_ok(o: bigint): boolean {
14599 if(!isWasmInitialized) {
14600 throw new Error("initializeWasm() must be awaited first!");
14602 const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_is_ok(o);
14603 return nativeResponseValue;
14605 // void CResult_COption_TypeZDecodeErrorZ_free(struct LDKCResult_COption_TypeZDecodeErrorZ _res);
14607 export function CResult_COption_TypeZDecodeErrorZ_free(_res: bigint): void {
14608 if(!isWasmInitialized) {
14609 throw new Error("initializeWasm() must be awaited first!");
14611 const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_free(_res);
14612 // debug statements here
14614 // uint64_t CResult_COption_TypeZDecodeErrorZ_clone_ptr(LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR arg);
14616 export function CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14617 if(!isWasmInitialized) {
14618 throw new Error("initializeWasm() must be awaited first!");
14620 const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone_ptr(arg);
14621 return nativeResponseValue;
14623 // struct LDKCResult_COption_TypeZDecodeErrorZ CResult_COption_TypeZDecodeErrorZ_clone(const struct LDKCResult_COption_TypeZDecodeErrorZ *NONNULL_PTR orig);
14625 export function CResult_COption_TypeZDecodeErrorZ_clone(orig: bigint): bigint {
14626 if(!isWasmInitialized) {
14627 throw new Error("initializeWasm() must be awaited first!");
14629 const nativeResponseValue = wasm.TS_CResult_COption_TypeZDecodeErrorZ_clone(orig);
14630 return nativeResponseValue;
14632 // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_ok(struct LDKThirtyTwoBytes o);
14634 export function CResult_PaymentIdPaymentErrorZ_ok(o: number): bigint {
14635 if(!isWasmInitialized) {
14636 throw new Error("initializeWasm() must be awaited first!");
14638 const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_ok(o);
14639 return nativeResponseValue;
14641 // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_err(struct LDKPaymentError e);
14643 export function CResult_PaymentIdPaymentErrorZ_err(e: bigint): bigint {
14644 if(!isWasmInitialized) {
14645 throw new Error("initializeWasm() must be awaited first!");
14647 const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_err(e);
14648 return nativeResponseValue;
14650 // bool CResult_PaymentIdPaymentErrorZ_is_ok(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR o);
14652 export function CResult_PaymentIdPaymentErrorZ_is_ok(o: bigint): boolean {
14653 if(!isWasmInitialized) {
14654 throw new Error("initializeWasm() must be awaited first!");
14656 const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_is_ok(o);
14657 return nativeResponseValue;
14659 // void CResult_PaymentIdPaymentErrorZ_free(struct LDKCResult_PaymentIdPaymentErrorZ _res);
14661 export function CResult_PaymentIdPaymentErrorZ_free(_res: bigint): void {
14662 if(!isWasmInitialized) {
14663 throw new Error("initializeWasm() must be awaited first!");
14665 const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_free(_res);
14666 // debug statements here
14668 // uint64_t CResult_PaymentIdPaymentErrorZ_clone_ptr(LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR arg);
14670 export function CResult_PaymentIdPaymentErrorZ_clone_ptr(arg: bigint): bigint {
14671 if(!isWasmInitialized) {
14672 throw new Error("initializeWasm() must be awaited first!");
14674 const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone_ptr(arg);
14675 return nativeResponseValue;
14677 // struct LDKCResult_PaymentIdPaymentErrorZ CResult_PaymentIdPaymentErrorZ_clone(const struct LDKCResult_PaymentIdPaymentErrorZ *NONNULL_PTR orig);
14679 export function CResult_PaymentIdPaymentErrorZ_clone(orig: bigint): bigint {
14680 if(!isWasmInitialized) {
14681 throw new Error("initializeWasm() must be awaited first!");
14683 const nativeResponseValue = wasm.TS_CResult_PaymentIdPaymentErrorZ_clone(orig);
14684 return nativeResponseValue;
14686 // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_ok(void);
14688 export function CResult_NonePaymentErrorZ_ok(): bigint {
14689 if(!isWasmInitialized) {
14690 throw new Error("initializeWasm() must be awaited first!");
14692 const nativeResponseValue = wasm.TS_CResult_NonePaymentErrorZ_ok();
14693 return nativeResponseValue;
14695 // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_err(struct LDKPaymentError e);
14697 export function CResult_NonePaymentErrorZ_err(e: bigint): bigint {
14698 if(!isWasmInitialized) {
14699 throw new Error("initializeWasm() must be awaited first!");
14701 const nativeResponseValue = wasm.TS_CResult_NonePaymentErrorZ_err(e);
14702 return nativeResponseValue;
14704 // bool CResult_NonePaymentErrorZ_is_ok(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR o);
14706 export function CResult_NonePaymentErrorZ_is_ok(o: bigint): boolean {
14707 if(!isWasmInitialized) {
14708 throw new Error("initializeWasm() must be awaited first!");
14710 const nativeResponseValue = wasm.TS_CResult_NonePaymentErrorZ_is_ok(o);
14711 return nativeResponseValue;
14713 // void CResult_NonePaymentErrorZ_free(struct LDKCResult_NonePaymentErrorZ _res);
14715 export function CResult_NonePaymentErrorZ_free(_res: bigint): void {
14716 if(!isWasmInitialized) {
14717 throw new Error("initializeWasm() must be awaited first!");
14719 const nativeResponseValue = wasm.TS_CResult_NonePaymentErrorZ_free(_res);
14720 // debug statements here
14722 // uint64_t CResult_NonePaymentErrorZ_clone_ptr(LDKCResult_NonePaymentErrorZ *NONNULL_PTR arg);
14724 export function CResult_NonePaymentErrorZ_clone_ptr(arg: bigint): bigint {
14725 if(!isWasmInitialized) {
14726 throw new Error("initializeWasm() must be awaited first!");
14728 const nativeResponseValue = wasm.TS_CResult_NonePaymentErrorZ_clone_ptr(arg);
14729 return nativeResponseValue;
14731 // struct LDKCResult_NonePaymentErrorZ CResult_NonePaymentErrorZ_clone(const struct LDKCResult_NonePaymentErrorZ *NONNULL_PTR orig);
14733 export function CResult_NonePaymentErrorZ_clone(orig: bigint): bigint {
14734 if(!isWasmInitialized) {
14735 throw new Error("initializeWasm() must be awaited first!");
14737 const nativeResponseValue = wasm.TS_CResult_NonePaymentErrorZ_clone(orig);
14738 return nativeResponseValue;
14740 // struct LDKCResult_StringErrorZ CResult_StringErrorZ_ok(struct LDKStr o);
14742 export function CResult_StringErrorZ_ok(o: number): bigint {
14743 if(!isWasmInitialized) {
14744 throw new Error("initializeWasm() must be awaited first!");
14746 const nativeResponseValue = wasm.TS_CResult_StringErrorZ_ok(o);
14747 return nativeResponseValue;
14749 // struct LDKCResult_StringErrorZ CResult_StringErrorZ_err(enum LDKSecp256k1Error e);
14751 export function CResult_StringErrorZ_err(e: Secp256k1Error): bigint {
14752 if(!isWasmInitialized) {
14753 throw new Error("initializeWasm() must be awaited first!");
14755 const nativeResponseValue = wasm.TS_CResult_StringErrorZ_err(e);
14756 return nativeResponseValue;
14758 // bool CResult_StringErrorZ_is_ok(const struct LDKCResult_StringErrorZ *NONNULL_PTR o);
14760 export function CResult_StringErrorZ_is_ok(o: bigint): boolean {
14761 if(!isWasmInitialized) {
14762 throw new Error("initializeWasm() must be awaited first!");
14764 const nativeResponseValue = wasm.TS_CResult_StringErrorZ_is_ok(o);
14765 return nativeResponseValue;
14767 // void CResult_StringErrorZ_free(struct LDKCResult_StringErrorZ _res);
14769 export function CResult_StringErrorZ_free(_res: bigint): void {
14770 if(!isWasmInitialized) {
14771 throw new Error("initializeWasm() must be awaited first!");
14773 const nativeResponseValue = wasm.TS_CResult_StringErrorZ_free(_res);
14774 // debug statements here
14776 // uint64_t CResult_StringErrorZ_clone_ptr(LDKCResult_StringErrorZ *NONNULL_PTR arg);
14778 export function CResult_StringErrorZ_clone_ptr(arg: bigint): bigint {
14779 if(!isWasmInitialized) {
14780 throw new Error("initializeWasm() must be awaited first!");
14782 const nativeResponseValue = wasm.TS_CResult_StringErrorZ_clone_ptr(arg);
14783 return nativeResponseValue;
14785 // struct LDKCResult_StringErrorZ CResult_StringErrorZ_clone(const struct LDKCResult_StringErrorZ *NONNULL_PTR orig);
14787 export function CResult_StringErrorZ_clone(orig: bigint): bigint {
14788 if(!isWasmInitialized) {
14789 throw new Error("initializeWasm() must be awaited first!");
14791 const nativeResponseValue = wasm.TS_CResult_StringErrorZ_clone(orig);
14792 return nativeResponseValue;
14794 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
14796 export function CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o: bigint): bigint {
14797 if(!isWasmInitialized) {
14798 throw new Error("initializeWasm() must be awaited first!");
14800 const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_ok(o);
14801 return nativeResponseValue;
14803 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
14805 export function CResult_ChannelMonitorUpdateDecodeErrorZ_err(e: bigint): bigint {
14806 if(!isWasmInitialized) {
14807 throw new Error("initializeWasm() must be awaited first!");
14809 const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_err(e);
14810 return nativeResponseValue;
14812 // bool CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR o);
14814 export function CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o: bigint): boolean {
14815 if(!isWasmInitialized) {
14816 throw new Error("initializeWasm() must be awaited first!");
14818 const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_is_ok(o);
14819 return nativeResponseValue;
14821 // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
14823 export function CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res: bigint): void {
14824 if(!isWasmInitialized) {
14825 throw new Error("initializeWasm() must be awaited first!");
14827 const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_free(_res);
14828 // debug statements here
14830 // uint64_t CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR arg);
14832 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14833 if(!isWasmInitialized) {
14834 throw new Error("initializeWasm() must be awaited first!");
14836 const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone_ptr(arg);
14837 return nativeResponseValue;
14839 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
14841 export function CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig: bigint): bigint {
14842 if(!isWasmInitialized) {
14843 throw new Error("initializeWasm() must be awaited first!");
14845 const nativeResponseValue = wasm.TS_CResult_ChannelMonitorUpdateDecodeErrorZ_clone(orig);
14846 return nativeResponseValue;
14848 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_some(struct LDKMonitorEvent o);
14850 export function COption_MonitorEventZ_some(o: bigint): bigint {
14851 if(!isWasmInitialized) {
14852 throw new Error("initializeWasm() must be awaited first!");
14854 const nativeResponseValue = wasm.TS_COption_MonitorEventZ_some(o);
14855 return nativeResponseValue;
14857 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_none(void);
14859 export function COption_MonitorEventZ_none(): bigint {
14860 if(!isWasmInitialized) {
14861 throw new Error("initializeWasm() must be awaited first!");
14863 const nativeResponseValue = wasm.TS_COption_MonitorEventZ_none();
14864 return nativeResponseValue;
14866 // void COption_MonitorEventZ_free(struct LDKCOption_MonitorEventZ _res);
14868 export function COption_MonitorEventZ_free(_res: bigint): void {
14869 if(!isWasmInitialized) {
14870 throw new Error("initializeWasm() must be awaited first!");
14872 const nativeResponseValue = wasm.TS_COption_MonitorEventZ_free(_res);
14873 // debug statements here
14875 // uint64_t COption_MonitorEventZ_clone_ptr(LDKCOption_MonitorEventZ *NONNULL_PTR arg);
14877 export function COption_MonitorEventZ_clone_ptr(arg: bigint): bigint {
14878 if(!isWasmInitialized) {
14879 throw new Error("initializeWasm() must be awaited first!");
14881 const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone_ptr(arg);
14882 return nativeResponseValue;
14884 // struct LDKCOption_MonitorEventZ COption_MonitorEventZ_clone(const struct LDKCOption_MonitorEventZ *NONNULL_PTR orig);
14886 export function COption_MonitorEventZ_clone(orig: bigint): bigint {
14887 if(!isWasmInitialized) {
14888 throw new Error("initializeWasm() must be awaited first!");
14890 const nativeResponseValue = wasm.TS_COption_MonitorEventZ_clone(orig);
14891 return nativeResponseValue;
14893 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_ok(struct LDKCOption_MonitorEventZ o);
14895 export function CResult_COption_MonitorEventZDecodeErrorZ_ok(o: bigint): bigint {
14896 if(!isWasmInitialized) {
14897 throw new Error("initializeWasm() must be awaited first!");
14899 const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_ok(o);
14900 return nativeResponseValue;
14902 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_err(struct LDKDecodeError e);
14904 export function CResult_COption_MonitorEventZDecodeErrorZ_err(e: bigint): bigint {
14905 if(!isWasmInitialized) {
14906 throw new Error("initializeWasm() must be awaited first!");
14908 const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_err(e);
14909 return nativeResponseValue;
14911 // bool CResult_COption_MonitorEventZDecodeErrorZ_is_ok(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR o);
14913 export function CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o: bigint): boolean {
14914 if(!isWasmInitialized) {
14915 throw new Error("initializeWasm() must be awaited first!");
14917 const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_is_ok(o);
14918 return nativeResponseValue;
14920 // void CResult_COption_MonitorEventZDecodeErrorZ_free(struct LDKCResult_COption_MonitorEventZDecodeErrorZ _res);
14922 export function CResult_COption_MonitorEventZDecodeErrorZ_free(_res: bigint): void {
14923 if(!isWasmInitialized) {
14924 throw new Error("initializeWasm() must be awaited first!");
14926 const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_free(_res);
14927 // debug statements here
14929 // uint64_t CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR arg);
14931 export function CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14932 if(!isWasmInitialized) {
14933 throw new Error("initializeWasm() must be awaited first!");
14935 const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone_ptr(arg);
14936 return nativeResponseValue;
14938 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ CResult_COption_MonitorEventZDecodeErrorZ_clone(const struct LDKCResult_COption_MonitorEventZDecodeErrorZ *NONNULL_PTR orig);
14940 export function CResult_COption_MonitorEventZDecodeErrorZ_clone(orig: bigint): bigint {
14941 if(!isWasmInitialized) {
14942 throw new Error("initializeWasm() must be awaited first!");
14944 const nativeResponseValue = wasm.TS_CResult_COption_MonitorEventZDecodeErrorZ_clone(orig);
14945 return nativeResponseValue;
14947 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
14949 export function CResult_HTLCUpdateDecodeErrorZ_ok(o: bigint): bigint {
14950 if(!isWasmInitialized) {
14951 throw new Error("initializeWasm() must be awaited first!");
14953 const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_ok(o);
14954 return nativeResponseValue;
14956 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
14958 export function CResult_HTLCUpdateDecodeErrorZ_err(e: bigint): bigint {
14959 if(!isWasmInitialized) {
14960 throw new Error("initializeWasm() must be awaited first!");
14962 const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_err(e);
14963 return nativeResponseValue;
14965 // bool CResult_HTLCUpdateDecodeErrorZ_is_ok(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR o);
14967 export function CResult_HTLCUpdateDecodeErrorZ_is_ok(o: bigint): boolean {
14968 if(!isWasmInitialized) {
14969 throw new Error("initializeWasm() must be awaited first!");
14971 const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_is_ok(o);
14972 return nativeResponseValue;
14974 // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
14976 export function CResult_HTLCUpdateDecodeErrorZ_free(_res: bigint): void {
14977 if(!isWasmInitialized) {
14978 throw new Error("initializeWasm() must be awaited first!");
14980 const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_free(_res);
14981 // debug statements here
14983 // uint64_t CResult_HTLCUpdateDecodeErrorZ_clone_ptr(LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR arg);
14985 export function CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg: bigint): bigint {
14986 if(!isWasmInitialized) {
14987 throw new Error("initializeWasm() must be awaited first!");
14989 const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone_ptr(arg);
14990 return nativeResponseValue;
14992 // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
14994 export function CResult_HTLCUpdateDecodeErrorZ_clone(orig: bigint): bigint {
14995 if(!isWasmInitialized) {
14996 throw new Error("initializeWasm() must be awaited first!");
14998 const nativeResponseValue = wasm.TS_CResult_HTLCUpdateDecodeErrorZ_clone(orig);
14999 return nativeResponseValue;
15001 // uint64_t C2Tuple_OutPointScriptZ_clone_ptr(LDKC2Tuple_OutPointScriptZ *NONNULL_PTR arg);
15003 export function C2Tuple_OutPointScriptZ_clone_ptr(arg: bigint): bigint {
15004 if(!isWasmInitialized) {
15005 throw new Error("initializeWasm() must be awaited first!");
15007 const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone_ptr(arg);
15008 return nativeResponseValue;
15010 // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_clone(const struct LDKC2Tuple_OutPointScriptZ *NONNULL_PTR orig);
15012 export function C2Tuple_OutPointScriptZ_clone(orig: bigint): bigint {
15013 if(!isWasmInitialized) {
15014 throw new Error("initializeWasm() must be awaited first!");
15016 const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_clone(orig);
15017 return nativeResponseValue;
15019 // struct LDKC2Tuple_OutPointScriptZ C2Tuple_OutPointScriptZ_new(struct LDKOutPoint a, struct LDKCVec_u8Z b);
15021 export function C2Tuple_OutPointScriptZ_new(a: bigint, b: number): bigint {
15022 if(!isWasmInitialized) {
15023 throw new Error("initializeWasm() must be awaited first!");
15025 const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_new(a, b);
15026 return nativeResponseValue;
15028 // void C2Tuple_OutPointScriptZ_free(struct LDKC2Tuple_OutPointScriptZ _res);
15030 export function C2Tuple_OutPointScriptZ_free(_res: bigint): void {
15031 if(!isWasmInitialized) {
15032 throw new Error("initializeWasm() must be awaited first!");
15034 const nativeResponseValue = wasm.TS_C2Tuple_OutPointScriptZ_free(_res);
15035 // debug statements here
15037 // uint64_t C2Tuple_u32ScriptZ_clone_ptr(LDKC2Tuple_u32ScriptZ *NONNULL_PTR arg);
15039 export function C2Tuple_u32ScriptZ_clone_ptr(arg: bigint): bigint {
15040 if(!isWasmInitialized) {
15041 throw new Error("initializeWasm() must be awaited first!");
15043 const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone_ptr(arg);
15044 return nativeResponseValue;
15046 // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_clone(const struct LDKC2Tuple_u32ScriptZ *NONNULL_PTR orig);
15048 export function C2Tuple_u32ScriptZ_clone(orig: bigint): bigint {
15049 if(!isWasmInitialized) {
15050 throw new Error("initializeWasm() must be awaited first!");
15052 const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_clone(orig);
15053 return nativeResponseValue;
15055 // struct LDKC2Tuple_u32ScriptZ C2Tuple_u32ScriptZ_new(uint32_t a, struct LDKCVec_u8Z b);
15057 export function C2Tuple_u32ScriptZ_new(a: number, b: number): bigint {
15058 if(!isWasmInitialized) {
15059 throw new Error("initializeWasm() must be awaited first!");
15061 const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_new(a, b);
15062 return nativeResponseValue;
15064 // void C2Tuple_u32ScriptZ_free(struct LDKC2Tuple_u32ScriptZ _res);
15066 export function C2Tuple_u32ScriptZ_free(_res: bigint): void {
15067 if(!isWasmInitialized) {
15068 throw new Error("initializeWasm() must be awaited first!");
15070 const nativeResponseValue = wasm.TS_C2Tuple_u32ScriptZ_free(_res);
15071 // debug statements here
15073 // void CVec_C2Tuple_u32ScriptZZ_free(struct LDKCVec_C2Tuple_u32ScriptZZ _res);
15075 export function CVec_C2Tuple_u32ScriptZZ_free(_res: number): void {
15076 if(!isWasmInitialized) {
15077 throw new Error("initializeWasm() must be awaited first!");
15079 const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32ScriptZZ_free(_res);
15080 // debug statements here
15082 // uint64_t C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR arg);
15084 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg: bigint): bigint {
15085 if(!isWasmInitialized) {
15086 throw new Error("initializeWasm() must be awaited first!");
15088 const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone_ptr(arg);
15089 return nativeResponseValue;
15091 // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ *NONNULL_PTR orig);
15093 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig: bigint): bigint {
15094 if(!isWasmInitialized) {
15095 throw new Error("initializeWasm() must be awaited first!");
15097 const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(orig);
15098 return nativeResponseValue;
15100 // struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32ScriptZZ b);
15102 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a: number, b: number): bigint {
15103 if(!isWasmInitialized) {
15104 throw new Error("initializeWasm() must be awaited first!");
15106 const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_new(a, b);
15107 return nativeResponseValue;
15109 // void C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ _res);
15111 export function C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res: bigint): void {
15112 if(!isWasmInitialized) {
15113 throw new Error("initializeWasm() must be awaited first!");
15115 const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_free(_res);
15116 // debug statements here
15118 // void CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ _res);
15120 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res: number): void {
15121 if(!isWasmInitialized) {
15122 throw new Error("initializeWasm() must be awaited first!");
15124 const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_free(_res);
15125 // debug statements here
15127 // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
15129 export function CVec_EventZ_free(_res: number): void {
15130 if(!isWasmInitialized) {
15131 throw new Error("initializeWasm() must be awaited first!");
15133 const nativeResponseValue = wasm.TS_CVec_EventZ_free(_res);
15134 // debug statements here
15136 // void CVec_TransactionZ_free(struct LDKCVec_TransactionZ _res);
15138 export function CVec_TransactionZ_free(_res: number): void {
15139 if(!isWasmInitialized) {
15140 throw new Error("initializeWasm() must be awaited first!");
15142 const nativeResponseValue = wasm.TS_CVec_TransactionZ_free(_res);
15143 // debug statements here
15145 // uint64_t C2Tuple_u32TxOutZ_clone_ptr(LDKC2Tuple_u32TxOutZ *NONNULL_PTR arg);
15147 export function C2Tuple_u32TxOutZ_clone_ptr(arg: bigint): bigint {
15148 if(!isWasmInitialized) {
15149 throw new Error("initializeWasm() must be awaited first!");
15151 const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone_ptr(arg);
15152 return nativeResponseValue;
15154 // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_clone(const struct LDKC2Tuple_u32TxOutZ *NONNULL_PTR orig);
15156 export function C2Tuple_u32TxOutZ_clone(orig: bigint): bigint {
15157 if(!isWasmInitialized) {
15158 throw new Error("initializeWasm() must be awaited first!");
15160 const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_clone(orig);
15161 return nativeResponseValue;
15163 // struct LDKC2Tuple_u32TxOutZ C2Tuple_u32TxOutZ_new(uint32_t a, struct LDKTxOut b);
15165 export function C2Tuple_u32TxOutZ_new(a: number, b: bigint): bigint {
15166 if(!isWasmInitialized) {
15167 throw new Error("initializeWasm() must be awaited first!");
15169 const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_new(a, b);
15170 return nativeResponseValue;
15172 // void C2Tuple_u32TxOutZ_free(struct LDKC2Tuple_u32TxOutZ _res);
15174 export function C2Tuple_u32TxOutZ_free(_res: bigint): void {
15175 if(!isWasmInitialized) {
15176 throw new Error("initializeWasm() must be awaited first!");
15178 const nativeResponseValue = wasm.TS_C2Tuple_u32TxOutZ_free(_res);
15179 // debug statements here
15181 // void CVec_C2Tuple_u32TxOutZZ_free(struct LDKCVec_C2Tuple_u32TxOutZZ _res);
15183 export function CVec_C2Tuple_u32TxOutZZ_free(_res: number): void {
15184 if(!isWasmInitialized) {
15185 throw new Error("initializeWasm() must be awaited first!");
15187 const nativeResponseValue = wasm.TS_CVec_C2Tuple_u32TxOutZZ_free(_res);
15188 // debug statements here
15190 // uint64_t C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR arg);
15192 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg: bigint): bigint {
15193 if(!isWasmInitialized) {
15194 throw new Error("initializeWasm() must be awaited first!");
15196 const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone_ptr(arg);
15197 return nativeResponseValue;
15199 // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(const struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ *NONNULL_PTR orig);
15201 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig: bigint): bigint {
15202 if(!isWasmInitialized) {
15203 throw new Error("initializeWasm() must be awaited first!");
15205 const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(orig);
15206 return nativeResponseValue;
15208 // struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(struct LDKThirtyTwoBytes a, struct LDKCVec_C2Tuple_u32TxOutZZ b);
15210 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a: number, b: number): bigint {
15211 if(!isWasmInitialized) {
15212 throw new Error("initializeWasm() must be awaited first!");
15214 const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_new(a, b);
15215 return nativeResponseValue;
15217 // void C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(struct LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ _res);
15219 export function C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res: bigint): void {
15220 if(!isWasmInitialized) {
15221 throw new Error("initializeWasm() must be awaited first!");
15223 const nativeResponseValue = wasm.TS_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_free(_res);
15224 // debug statements here
15226 // void CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ _res);
15228 export function CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res: number): void {
15229 if(!isWasmInitialized) {
15230 throw new Error("initializeWasm() must be awaited first!");
15232 const nativeResponseValue = wasm.TS_CVec_C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZZ_free(_res);
15233 // debug statements here
15235 // void CVec_BalanceZ_free(struct LDKCVec_BalanceZ _res);
15237 export function CVec_BalanceZ_free(_res: number): void {
15238 if(!isWasmInitialized) {
15239 throw new Error("initializeWasm() must be awaited first!");
15241 const nativeResponseValue = wasm.TS_CVec_BalanceZ_free(_res);
15242 // debug statements here
15244 // uint64_t C2Tuple_BlockHashChannelMonitorZ_clone_ptr(LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR arg);
15246 export function C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg: bigint): bigint {
15247 if(!isWasmInitialized) {
15248 throw new Error("initializeWasm() must be awaited first!");
15250 const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone_ptr(arg);
15251 return nativeResponseValue;
15253 // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_clone(const struct LDKC2Tuple_BlockHashChannelMonitorZ *NONNULL_PTR orig);
15255 export function C2Tuple_BlockHashChannelMonitorZ_clone(orig: bigint): bigint {
15256 if(!isWasmInitialized) {
15257 throw new Error("initializeWasm() must be awaited first!");
15259 const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_clone(orig);
15260 return nativeResponseValue;
15262 // struct LDKC2Tuple_BlockHashChannelMonitorZ C2Tuple_BlockHashChannelMonitorZ_new(struct LDKThirtyTwoBytes a, struct LDKChannelMonitor b);
15264 export function C2Tuple_BlockHashChannelMonitorZ_new(a: number, b: bigint): bigint {
15265 if(!isWasmInitialized) {
15266 throw new Error("initializeWasm() must be awaited first!");
15268 const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_new(a, b);
15269 return nativeResponseValue;
15271 // void C2Tuple_BlockHashChannelMonitorZ_free(struct LDKC2Tuple_BlockHashChannelMonitorZ _res);
15273 export function C2Tuple_BlockHashChannelMonitorZ_free(_res: bigint): void {
15274 if(!isWasmInitialized) {
15275 throw new Error("initializeWasm() must be awaited first!");
15277 const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_free(_res);
15278 // debug statements here
15280 // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(struct LDKC2Tuple_BlockHashChannelMonitorZ o);
15282 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o: bigint): bigint {
15283 if(!isWasmInitialized) {
15284 throw new Error("initializeWasm() must be awaited first!");
15286 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_ok(o);
15287 return nativeResponseValue;
15289 // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(struct LDKDecodeError e);
15291 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e: bigint): bigint {
15292 if(!isWasmInitialized) {
15293 throw new Error("initializeWasm() must be awaited first!");
15295 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_err(e);
15296 return nativeResponseValue;
15298 // bool CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR o);
15300 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o: bigint): boolean {
15301 if(!isWasmInitialized) {
15302 throw new Error("initializeWasm() must be awaited first!");
15304 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_is_ok(o);
15305 return nativeResponseValue;
15307 // void CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ _res);
15309 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res: bigint): void {
15310 if(!isWasmInitialized) {
15311 throw new Error("initializeWasm() must be awaited first!");
15313 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_free(_res);
15314 // debug statements here
15316 // uint64_t CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR arg);
15318 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15319 if(!isWasmInitialized) {
15320 throw new Error("initializeWasm() must be awaited first!");
15322 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone_ptr(arg);
15323 return nativeResponseValue;
15325 // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(const struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ *NONNULL_PTR orig);
15327 export function CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig: bigint): bigint {
15328 if(!isWasmInitialized) {
15329 throw new Error("initializeWasm() must be awaited first!");
15331 const nativeResponseValue = wasm.TS_CResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ_clone(orig);
15332 return nativeResponseValue;
15334 // uint64_t C2Tuple_PublicKeyTypeZ_clone_ptr(LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR arg);
15336 export function C2Tuple_PublicKeyTypeZ_clone_ptr(arg: bigint): bigint {
15337 if(!isWasmInitialized) {
15338 throw new Error("initializeWasm() must be awaited first!");
15340 const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone_ptr(arg);
15341 return nativeResponseValue;
15343 // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_clone(const struct LDKC2Tuple_PublicKeyTypeZ *NONNULL_PTR orig);
15345 export function C2Tuple_PublicKeyTypeZ_clone(orig: bigint): bigint {
15346 if(!isWasmInitialized) {
15347 throw new Error("initializeWasm() must be awaited first!");
15349 const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_clone(orig);
15350 return nativeResponseValue;
15352 // struct LDKC2Tuple_PublicKeyTypeZ C2Tuple_PublicKeyTypeZ_new(struct LDKPublicKey a, struct LDKType b);
15354 export function C2Tuple_PublicKeyTypeZ_new(a: number, b: bigint): bigint {
15355 if(!isWasmInitialized) {
15356 throw new Error("initializeWasm() must be awaited first!");
15358 const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_new(a, b);
15359 return nativeResponseValue;
15361 // void C2Tuple_PublicKeyTypeZ_free(struct LDKC2Tuple_PublicKeyTypeZ _res);
15363 export function C2Tuple_PublicKeyTypeZ_free(_res: bigint): void {
15364 if(!isWasmInitialized) {
15365 throw new Error("initializeWasm() must be awaited first!");
15367 const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyTypeZ_free(_res);
15368 // debug statements here
15370 // void CVec_C2Tuple_PublicKeyTypeZZ_free(struct LDKCVec_C2Tuple_PublicKeyTypeZZ _res);
15372 export function CVec_C2Tuple_PublicKeyTypeZZ_free(_res: number): void {
15373 if(!isWasmInitialized) {
15374 throw new Error("initializeWasm() must be awaited first!");
15376 const nativeResponseValue = wasm.TS_CVec_C2Tuple_PublicKeyTypeZZ_free(_res);
15377 // debug statements here
15379 // struct LDKCOption_CustomOnionMessageContentsZ COption_CustomOnionMessageContentsZ_some(struct LDKCustomOnionMessageContents o);
15381 export function COption_CustomOnionMessageContentsZ_some(o: bigint): bigint {
15382 if(!isWasmInitialized) {
15383 throw new Error("initializeWasm() must be awaited first!");
15385 const nativeResponseValue = wasm.TS_COption_CustomOnionMessageContentsZ_some(o);
15386 return nativeResponseValue;
15388 // struct LDKCOption_CustomOnionMessageContentsZ COption_CustomOnionMessageContentsZ_none(void);
15390 export function COption_CustomOnionMessageContentsZ_none(): bigint {
15391 if(!isWasmInitialized) {
15392 throw new Error("initializeWasm() must be awaited first!");
15394 const nativeResponseValue = wasm.TS_COption_CustomOnionMessageContentsZ_none();
15395 return nativeResponseValue;
15397 // void COption_CustomOnionMessageContentsZ_free(struct LDKCOption_CustomOnionMessageContentsZ _res);
15399 export function COption_CustomOnionMessageContentsZ_free(_res: bigint): void {
15400 if(!isWasmInitialized) {
15401 throw new Error("initializeWasm() must be awaited first!");
15403 const nativeResponseValue = wasm.TS_COption_CustomOnionMessageContentsZ_free(_res);
15404 // debug statements here
15406 // uint64_t COption_CustomOnionMessageContentsZ_clone_ptr(LDKCOption_CustomOnionMessageContentsZ *NONNULL_PTR arg);
15408 export function COption_CustomOnionMessageContentsZ_clone_ptr(arg: bigint): bigint {
15409 if(!isWasmInitialized) {
15410 throw new Error("initializeWasm() must be awaited first!");
15412 const nativeResponseValue = wasm.TS_COption_CustomOnionMessageContentsZ_clone_ptr(arg);
15413 return nativeResponseValue;
15415 // struct LDKCOption_CustomOnionMessageContentsZ COption_CustomOnionMessageContentsZ_clone(const struct LDKCOption_CustomOnionMessageContentsZ *NONNULL_PTR orig);
15417 export function COption_CustomOnionMessageContentsZ_clone(orig: bigint): bigint {
15418 if(!isWasmInitialized) {
15419 throw new Error("initializeWasm() must be awaited first!");
15421 const nativeResponseValue = wasm.TS_COption_CustomOnionMessageContentsZ_clone(orig);
15422 return nativeResponseValue;
15424 // struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_ok(struct LDKCOption_CustomOnionMessageContentsZ o);
15426 export function CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_ok(o: bigint): bigint {
15427 if(!isWasmInitialized) {
15428 throw new Error("initializeWasm() must be awaited first!");
15430 const nativeResponseValue = wasm.TS_CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_ok(o);
15431 return nativeResponseValue;
15433 // struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_err(struct LDKDecodeError e);
15435 export function CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_err(e: bigint): bigint {
15436 if(!isWasmInitialized) {
15437 throw new Error("initializeWasm() must be awaited first!");
15439 const nativeResponseValue = wasm.TS_CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_err(e);
15440 return nativeResponseValue;
15442 // bool CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_is_ok(const struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR o);
15444 export function CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_is_ok(o: bigint): boolean {
15445 if(!isWasmInitialized) {
15446 throw new Error("initializeWasm() must be awaited first!");
15448 const nativeResponseValue = wasm.TS_CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_is_ok(o);
15449 return nativeResponseValue;
15451 // void CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_free(struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ _res);
15453 export function CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_free(_res: bigint): void {
15454 if(!isWasmInitialized) {
15455 throw new Error("initializeWasm() must be awaited first!");
15457 const nativeResponseValue = wasm.TS_CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_free(_res);
15458 // debug statements here
15460 // uint64_t CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone_ptr(LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR arg);
15462 export function CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15463 if(!isWasmInitialized) {
15464 throw new Error("initializeWasm() must be awaited first!");
15466 const nativeResponseValue = wasm.TS_CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone_ptr(arg);
15467 return nativeResponseValue;
15469 // struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone(const struct LDKCResult_COption_CustomOnionMessageContentsZDecodeErrorZ *NONNULL_PTR orig);
15471 export function CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone(orig: bigint): bigint {
15472 if(!isWasmInitialized) {
15473 throw new Error("initializeWasm() must be awaited first!");
15475 const nativeResponseValue = wasm.TS_CResult_COption_CustomOnionMessageContentsZDecodeErrorZ_clone(orig);
15476 return nativeResponseValue;
15478 // struct LDKCOption_NetAddressZ COption_NetAddressZ_some(struct LDKNetAddress o);
15480 export function COption_NetAddressZ_some(o: bigint): bigint {
15481 if(!isWasmInitialized) {
15482 throw new Error("initializeWasm() must be awaited first!");
15484 const nativeResponseValue = wasm.TS_COption_NetAddressZ_some(o);
15485 return nativeResponseValue;
15487 // struct LDKCOption_NetAddressZ COption_NetAddressZ_none(void);
15489 export function COption_NetAddressZ_none(): bigint {
15490 if(!isWasmInitialized) {
15491 throw new Error("initializeWasm() must be awaited first!");
15493 const nativeResponseValue = wasm.TS_COption_NetAddressZ_none();
15494 return nativeResponseValue;
15496 // void COption_NetAddressZ_free(struct LDKCOption_NetAddressZ _res);
15498 export function COption_NetAddressZ_free(_res: bigint): void {
15499 if(!isWasmInitialized) {
15500 throw new Error("initializeWasm() must be awaited first!");
15502 const nativeResponseValue = wasm.TS_COption_NetAddressZ_free(_res);
15503 // debug statements here
15505 // uint64_t COption_NetAddressZ_clone_ptr(LDKCOption_NetAddressZ *NONNULL_PTR arg);
15507 export function COption_NetAddressZ_clone_ptr(arg: bigint): bigint {
15508 if(!isWasmInitialized) {
15509 throw new Error("initializeWasm() must be awaited first!");
15511 const nativeResponseValue = wasm.TS_COption_NetAddressZ_clone_ptr(arg);
15512 return nativeResponseValue;
15514 // struct LDKCOption_NetAddressZ COption_NetAddressZ_clone(const struct LDKCOption_NetAddressZ *NONNULL_PTR orig);
15516 export function COption_NetAddressZ_clone(orig: bigint): bigint {
15517 if(!isWasmInitialized) {
15518 throw new Error("initializeWasm() must be awaited first!");
15520 const nativeResponseValue = wasm.TS_COption_NetAddressZ_clone(orig);
15521 return nativeResponseValue;
15523 // uint64_t C2Tuple_PublicKeyCOption_NetAddressZZ_clone_ptr(LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR arg);
15525 export function C2Tuple_PublicKeyCOption_NetAddressZZ_clone_ptr(arg: bigint): bigint {
15526 if(!isWasmInitialized) {
15527 throw new Error("initializeWasm() must be awaited first!");
15529 const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyCOption_NetAddressZZ_clone_ptr(arg);
15530 return nativeResponseValue;
15532 // struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ C2Tuple_PublicKeyCOption_NetAddressZZ_clone(const struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ *NONNULL_PTR orig);
15534 export function C2Tuple_PublicKeyCOption_NetAddressZZ_clone(orig: bigint): bigint {
15535 if(!isWasmInitialized) {
15536 throw new Error("initializeWasm() must be awaited first!");
15538 const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyCOption_NetAddressZZ_clone(orig);
15539 return nativeResponseValue;
15541 // struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ C2Tuple_PublicKeyCOption_NetAddressZZ_new(struct LDKPublicKey a, struct LDKCOption_NetAddressZ b);
15543 export function C2Tuple_PublicKeyCOption_NetAddressZZ_new(a: number, b: bigint): bigint {
15544 if(!isWasmInitialized) {
15545 throw new Error("initializeWasm() must be awaited first!");
15547 const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyCOption_NetAddressZZ_new(a, b);
15548 return nativeResponseValue;
15550 // void C2Tuple_PublicKeyCOption_NetAddressZZ_free(struct LDKC2Tuple_PublicKeyCOption_NetAddressZZ _res);
15552 export function C2Tuple_PublicKeyCOption_NetAddressZZ_free(_res: bigint): void {
15553 if(!isWasmInitialized) {
15554 throw new Error("initializeWasm() must be awaited first!");
15556 const nativeResponseValue = wasm.TS_C2Tuple_PublicKeyCOption_NetAddressZZ_free(_res);
15557 // debug statements here
15559 // void CVec_C2Tuple_PublicKeyCOption_NetAddressZZZ_free(struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ _res);
15561 export function CVec_C2Tuple_PublicKeyCOption_NetAddressZZZ_free(_res: number): void {
15562 if(!isWasmInitialized) {
15563 throw new Error("initializeWasm() must be awaited first!");
15565 const nativeResponseValue = wasm.TS_CVec_C2Tuple_PublicKeyCOption_NetAddressZZZ_free(_res);
15566 // debug statements here
15568 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
15570 export function CResult_CVec_u8ZPeerHandleErrorZ_ok(o: number): bigint {
15571 if(!isWasmInitialized) {
15572 throw new Error("initializeWasm() must be awaited first!");
15574 const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_ok(o);
15575 return nativeResponseValue;
15577 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
15579 export function CResult_CVec_u8ZPeerHandleErrorZ_err(e: bigint): bigint {
15580 if(!isWasmInitialized) {
15581 throw new Error("initializeWasm() must be awaited first!");
15583 const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_err(e);
15584 return nativeResponseValue;
15586 // bool CResult_CVec_u8ZPeerHandleErrorZ_is_ok(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR o);
15588 export function CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o: bigint): boolean {
15589 if(!isWasmInitialized) {
15590 throw new Error("initializeWasm() must be awaited first!");
15592 const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_is_ok(o);
15593 return nativeResponseValue;
15595 // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
15597 export function CResult_CVec_u8ZPeerHandleErrorZ_free(_res: bigint): void {
15598 if(!isWasmInitialized) {
15599 throw new Error("initializeWasm() must be awaited first!");
15601 const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_free(_res);
15602 // debug statements here
15604 // uint64_t CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR arg);
15606 export function CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg: bigint): bigint {
15607 if(!isWasmInitialized) {
15608 throw new Error("initializeWasm() must be awaited first!");
15610 const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone_ptr(arg);
15611 return nativeResponseValue;
15613 // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
15615 export function CResult_CVec_u8ZPeerHandleErrorZ_clone(orig: bigint): bigint {
15616 if(!isWasmInitialized) {
15617 throw new Error("initializeWasm() must be awaited first!");
15619 const nativeResponseValue = wasm.TS_CResult_CVec_u8ZPeerHandleErrorZ_clone(orig);
15620 return nativeResponseValue;
15622 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
15624 export function CResult_NonePeerHandleErrorZ_ok(): bigint {
15625 if(!isWasmInitialized) {
15626 throw new Error("initializeWasm() must be awaited first!");
15628 const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_ok();
15629 return nativeResponseValue;
15631 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
15633 export function CResult_NonePeerHandleErrorZ_err(e: bigint): bigint {
15634 if(!isWasmInitialized) {
15635 throw new Error("initializeWasm() must be awaited first!");
15637 const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_err(e);
15638 return nativeResponseValue;
15640 // bool CResult_NonePeerHandleErrorZ_is_ok(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR o);
15642 export function CResult_NonePeerHandleErrorZ_is_ok(o: bigint): boolean {
15643 if(!isWasmInitialized) {
15644 throw new Error("initializeWasm() must be awaited first!");
15646 const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_is_ok(o);
15647 return nativeResponseValue;
15649 // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
15651 export function CResult_NonePeerHandleErrorZ_free(_res: bigint): void {
15652 if(!isWasmInitialized) {
15653 throw new Error("initializeWasm() must be awaited first!");
15655 const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_free(_res);
15656 // debug statements here
15658 // uint64_t CResult_NonePeerHandleErrorZ_clone_ptr(LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR arg);
15660 export function CResult_NonePeerHandleErrorZ_clone_ptr(arg: bigint): bigint {
15661 if(!isWasmInitialized) {
15662 throw new Error("initializeWasm() must be awaited first!");
15664 const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone_ptr(arg);
15665 return nativeResponseValue;
15667 // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
15669 export function CResult_NonePeerHandleErrorZ_clone(orig: bigint): bigint {
15670 if(!isWasmInitialized) {
15671 throw new Error("initializeWasm() must be awaited first!");
15673 const nativeResponseValue = wasm.TS_CResult_NonePeerHandleErrorZ_clone(orig);
15674 return nativeResponseValue;
15676 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
15678 export function CResult_boolPeerHandleErrorZ_ok(o: boolean): bigint {
15679 if(!isWasmInitialized) {
15680 throw new Error("initializeWasm() must be awaited first!");
15682 const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_ok(o);
15683 return nativeResponseValue;
15685 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
15687 export function CResult_boolPeerHandleErrorZ_err(e: bigint): bigint {
15688 if(!isWasmInitialized) {
15689 throw new Error("initializeWasm() must be awaited first!");
15691 const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_err(e);
15692 return nativeResponseValue;
15694 // bool CResult_boolPeerHandleErrorZ_is_ok(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR o);
15696 export function CResult_boolPeerHandleErrorZ_is_ok(o: bigint): boolean {
15697 if(!isWasmInitialized) {
15698 throw new Error("initializeWasm() must be awaited first!");
15700 const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_is_ok(o);
15701 return nativeResponseValue;
15703 // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
15705 export function CResult_boolPeerHandleErrorZ_free(_res: bigint): void {
15706 if(!isWasmInitialized) {
15707 throw new Error("initializeWasm() must be awaited first!");
15709 const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_free(_res);
15710 // debug statements here
15712 // uint64_t CResult_boolPeerHandleErrorZ_clone_ptr(LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR arg);
15714 export function CResult_boolPeerHandleErrorZ_clone_ptr(arg: bigint): bigint {
15715 if(!isWasmInitialized) {
15716 throw new Error("initializeWasm() must be awaited first!");
15718 const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone_ptr(arg);
15719 return nativeResponseValue;
15721 // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
15723 export function CResult_boolPeerHandleErrorZ_clone(orig: bigint): bigint {
15724 if(!isWasmInitialized) {
15725 throw new Error("initializeWasm() must be awaited first!");
15727 const nativeResponseValue = wasm.TS_CResult_boolPeerHandleErrorZ_clone(orig);
15728 return nativeResponseValue;
15730 // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_ok(struct LDKTxOut o);
15732 export function CResult_TxOutUtxoLookupErrorZ_ok(o: bigint): bigint {
15733 if(!isWasmInitialized) {
15734 throw new Error("initializeWasm() must be awaited first!");
15736 const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_ok(o);
15737 return nativeResponseValue;
15739 // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_err(enum LDKUtxoLookupError e);
15741 export function CResult_TxOutUtxoLookupErrorZ_err(e: UtxoLookupError): bigint {
15742 if(!isWasmInitialized) {
15743 throw new Error("initializeWasm() must be awaited first!");
15745 const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_err(e);
15746 return nativeResponseValue;
15748 // bool CResult_TxOutUtxoLookupErrorZ_is_ok(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR o);
15750 export function CResult_TxOutUtxoLookupErrorZ_is_ok(o: bigint): boolean {
15751 if(!isWasmInitialized) {
15752 throw new Error("initializeWasm() must be awaited first!");
15754 const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_is_ok(o);
15755 return nativeResponseValue;
15757 // void CResult_TxOutUtxoLookupErrorZ_free(struct LDKCResult_TxOutUtxoLookupErrorZ _res);
15759 export function CResult_TxOutUtxoLookupErrorZ_free(_res: bigint): void {
15760 if(!isWasmInitialized) {
15761 throw new Error("initializeWasm() must be awaited first!");
15763 const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_free(_res);
15764 // debug statements here
15766 // uint64_t CResult_TxOutUtxoLookupErrorZ_clone_ptr(LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR arg);
15768 export function CResult_TxOutUtxoLookupErrorZ_clone_ptr(arg: bigint): bigint {
15769 if(!isWasmInitialized) {
15770 throw new Error("initializeWasm() must be awaited first!");
15772 const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_clone_ptr(arg);
15773 return nativeResponseValue;
15775 // struct LDKCResult_TxOutUtxoLookupErrorZ CResult_TxOutUtxoLookupErrorZ_clone(const struct LDKCResult_TxOutUtxoLookupErrorZ *NONNULL_PTR orig);
15777 export function CResult_TxOutUtxoLookupErrorZ_clone(orig: bigint): bigint {
15778 if(!isWasmInitialized) {
15779 throw new Error("initializeWasm() must be awaited first!");
15781 const nativeResponseValue = wasm.TS_CResult_TxOutUtxoLookupErrorZ_clone(orig);
15782 return nativeResponseValue;
15784 // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_ok(void);
15786 export function CResult_NoneSendErrorZ_ok(): bigint {
15787 if(!isWasmInitialized) {
15788 throw new Error("initializeWasm() must be awaited first!");
15790 const nativeResponseValue = wasm.TS_CResult_NoneSendErrorZ_ok();
15791 return nativeResponseValue;
15793 // struct LDKCResult_NoneSendErrorZ CResult_NoneSendErrorZ_err(struct LDKSendError e);
15795 export function CResult_NoneSendErrorZ_err(e: bigint): bigint {
15796 if(!isWasmInitialized) {
15797 throw new Error("initializeWasm() must be awaited first!");
15799 const nativeResponseValue = wasm.TS_CResult_NoneSendErrorZ_err(e);
15800 return nativeResponseValue;
15802 // bool CResult_NoneSendErrorZ_is_ok(const struct LDKCResult_NoneSendErrorZ *NONNULL_PTR o);
15804 export function CResult_NoneSendErrorZ_is_ok(o: bigint): boolean {
15805 if(!isWasmInitialized) {
15806 throw new Error("initializeWasm() must be awaited first!");
15808 const nativeResponseValue = wasm.TS_CResult_NoneSendErrorZ_is_ok(o);
15809 return nativeResponseValue;
15811 // void CResult_NoneSendErrorZ_free(struct LDKCResult_NoneSendErrorZ _res);
15813 export function CResult_NoneSendErrorZ_free(_res: bigint): void {
15814 if(!isWasmInitialized) {
15815 throw new Error("initializeWasm() must be awaited first!");
15817 const nativeResponseValue = wasm.TS_CResult_NoneSendErrorZ_free(_res);
15818 // debug statements here
15820 // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_ok(struct LDKBlindedPath o);
15822 export function CResult_BlindedPathNoneZ_ok(o: bigint): bigint {
15823 if(!isWasmInitialized) {
15824 throw new Error("initializeWasm() must be awaited first!");
15826 const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_ok(o);
15827 return nativeResponseValue;
15829 // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_err(void);
15831 export function CResult_BlindedPathNoneZ_err(): bigint {
15832 if(!isWasmInitialized) {
15833 throw new Error("initializeWasm() must be awaited first!");
15835 const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_err();
15836 return nativeResponseValue;
15838 // bool CResult_BlindedPathNoneZ_is_ok(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR o);
15840 export function CResult_BlindedPathNoneZ_is_ok(o: bigint): boolean {
15841 if(!isWasmInitialized) {
15842 throw new Error("initializeWasm() must be awaited first!");
15844 const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_is_ok(o);
15845 return nativeResponseValue;
15847 // void CResult_BlindedPathNoneZ_free(struct LDKCResult_BlindedPathNoneZ _res);
15849 export function CResult_BlindedPathNoneZ_free(_res: bigint): void {
15850 if(!isWasmInitialized) {
15851 throw new Error("initializeWasm() must be awaited first!");
15853 const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_free(_res);
15854 // debug statements here
15856 // uint64_t CResult_BlindedPathNoneZ_clone_ptr(LDKCResult_BlindedPathNoneZ *NONNULL_PTR arg);
15858 export function CResult_BlindedPathNoneZ_clone_ptr(arg: bigint): bigint {
15859 if(!isWasmInitialized) {
15860 throw new Error("initializeWasm() must be awaited first!");
15862 const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_clone_ptr(arg);
15863 return nativeResponseValue;
15865 // struct LDKCResult_BlindedPathNoneZ CResult_BlindedPathNoneZ_clone(const struct LDKCResult_BlindedPathNoneZ *NONNULL_PTR orig);
15867 export function CResult_BlindedPathNoneZ_clone(orig: bigint): bigint {
15868 if(!isWasmInitialized) {
15869 throw new Error("initializeWasm() must be awaited first!");
15871 const nativeResponseValue = wasm.TS_CResult_BlindedPathNoneZ_clone(orig);
15872 return nativeResponseValue;
15874 // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_ok(struct LDKBlindedPath o);
15876 export function CResult_BlindedPathDecodeErrorZ_ok(o: bigint): bigint {
15877 if(!isWasmInitialized) {
15878 throw new Error("initializeWasm() must be awaited first!");
15880 const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_ok(o);
15881 return nativeResponseValue;
15883 // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_err(struct LDKDecodeError e);
15885 export function CResult_BlindedPathDecodeErrorZ_err(e: bigint): bigint {
15886 if(!isWasmInitialized) {
15887 throw new Error("initializeWasm() must be awaited first!");
15889 const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_err(e);
15890 return nativeResponseValue;
15892 // bool CResult_BlindedPathDecodeErrorZ_is_ok(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR o);
15894 export function CResult_BlindedPathDecodeErrorZ_is_ok(o: bigint): boolean {
15895 if(!isWasmInitialized) {
15896 throw new Error("initializeWasm() must be awaited first!");
15898 const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_is_ok(o);
15899 return nativeResponseValue;
15901 // void CResult_BlindedPathDecodeErrorZ_free(struct LDKCResult_BlindedPathDecodeErrorZ _res);
15903 export function CResult_BlindedPathDecodeErrorZ_free(_res: bigint): void {
15904 if(!isWasmInitialized) {
15905 throw new Error("initializeWasm() must be awaited first!");
15907 const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_free(_res);
15908 // debug statements here
15910 // uint64_t CResult_BlindedPathDecodeErrorZ_clone_ptr(LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR arg);
15912 export function CResult_BlindedPathDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15913 if(!isWasmInitialized) {
15914 throw new Error("initializeWasm() must be awaited first!");
15916 const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_clone_ptr(arg);
15917 return nativeResponseValue;
15919 // struct LDKCResult_BlindedPathDecodeErrorZ CResult_BlindedPathDecodeErrorZ_clone(const struct LDKCResult_BlindedPathDecodeErrorZ *NONNULL_PTR orig);
15921 export function CResult_BlindedPathDecodeErrorZ_clone(orig: bigint): bigint {
15922 if(!isWasmInitialized) {
15923 throw new Error("initializeWasm() must be awaited first!");
15925 const nativeResponseValue = wasm.TS_CResult_BlindedPathDecodeErrorZ_clone(orig);
15926 return nativeResponseValue;
15928 // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_ok(struct LDKBlindedHop o);
15930 export function CResult_BlindedHopDecodeErrorZ_ok(o: bigint): bigint {
15931 if(!isWasmInitialized) {
15932 throw new Error("initializeWasm() must be awaited first!");
15934 const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_ok(o);
15935 return nativeResponseValue;
15937 // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_err(struct LDKDecodeError e);
15939 export function CResult_BlindedHopDecodeErrorZ_err(e: bigint): bigint {
15940 if(!isWasmInitialized) {
15941 throw new Error("initializeWasm() must be awaited first!");
15943 const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_err(e);
15944 return nativeResponseValue;
15946 // bool CResult_BlindedHopDecodeErrorZ_is_ok(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR o);
15948 export function CResult_BlindedHopDecodeErrorZ_is_ok(o: bigint): boolean {
15949 if(!isWasmInitialized) {
15950 throw new Error("initializeWasm() must be awaited first!");
15952 const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_is_ok(o);
15953 return nativeResponseValue;
15955 // void CResult_BlindedHopDecodeErrorZ_free(struct LDKCResult_BlindedHopDecodeErrorZ _res);
15957 export function CResult_BlindedHopDecodeErrorZ_free(_res: bigint): void {
15958 if(!isWasmInitialized) {
15959 throw new Error("initializeWasm() must be awaited first!");
15961 const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_free(_res);
15962 // debug statements here
15964 // uint64_t CResult_BlindedHopDecodeErrorZ_clone_ptr(LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR arg);
15966 export function CResult_BlindedHopDecodeErrorZ_clone_ptr(arg: bigint): bigint {
15967 if(!isWasmInitialized) {
15968 throw new Error("initializeWasm() must be awaited first!");
15970 const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_clone_ptr(arg);
15971 return nativeResponseValue;
15973 // struct LDKCResult_BlindedHopDecodeErrorZ CResult_BlindedHopDecodeErrorZ_clone(const struct LDKCResult_BlindedHopDecodeErrorZ *NONNULL_PTR orig);
15975 export function CResult_BlindedHopDecodeErrorZ_clone(orig: bigint): bigint {
15976 if(!isWasmInitialized) {
15977 throw new Error("initializeWasm() must be awaited first!");
15979 const nativeResponseValue = wasm.TS_CResult_BlindedHopDecodeErrorZ_clone(orig);
15980 return nativeResponseValue;
15982 // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_ok(uint32_t o);
15984 export function CResult_u32GraphSyncErrorZ_ok(o: number): bigint {
15985 if(!isWasmInitialized) {
15986 throw new Error("initializeWasm() must be awaited first!");
15988 const nativeResponseValue = wasm.TS_CResult_u32GraphSyncErrorZ_ok(o);
15989 return nativeResponseValue;
15991 // struct LDKCResult_u32GraphSyncErrorZ CResult_u32GraphSyncErrorZ_err(struct LDKGraphSyncError e);
15993 export function CResult_u32GraphSyncErrorZ_err(e: bigint): bigint {
15994 if(!isWasmInitialized) {
15995 throw new Error("initializeWasm() must be awaited first!");
15997 const nativeResponseValue = wasm.TS_CResult_u32GraphSyncErrorZ_err(e);
15998 return nativeResponseValue;
16000 // bool CResult_u32GraphSyncErrorZ_is_ok(const struct LDKCResult_u32GraphSyncErrorZ *NONNULL_PTR o);
16002 export function CResult_u32GraphSyncErrorZ_is_ok(o: bigint): boolean {
16003 if(!isWasmInitialized) {
16004 throw new Error("initializeWasm() must be awaited first!");
16006 const nativeResponseValue = wasm.TS_CResult_u32GraphSyncErrorZ_is_ok(o);
16007 return nativeResponseValue;
16009 // void CResult_u32GraphSyncErrorZ_free(struct LDKCResult_u32GraphSyncErrorZ _res);
16011 export function CResult_u32GraphSyncErrorZ_free(_res: bigint): void {
16012 if(!isWasmInitialized) {
16013 throw new Error("initializeWasm() must be awaited first!");
16015 const nativeResponseValue = wasm.TS_CResult_u32GraphSyncErrorZ_free(_res);
16016 // debug statements here
16018 // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_ok(void);
16020 export function CResult_NoneErrorZ_ok(): bigint {
16021 if(!isWasmInitialized) {
16022 throw new Error("initializeWasm() must be awaited first!");
16024 const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_ok();
16025 return nativeResponseValue;
16027 // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_err(enum LDKIOError e);
16029 export function CResult_NoneErrorZ_err(e: IOError): bigint {
16030 if(!isWasmInitialized) {
16031 throw new Error("initializeWasm() must be awaited first!");
16033 const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_err(e);
16034 return nativeResponseValue;
16036 // bool CResult_NoneErrorZ_is_ok(const struct LDKCResult_NoneErrorZ *NONNULL_PTR o);
16038 export function CResult_NoneErrorZ_is_ok(o: bigint): boolean {
16039 if(!isWasmInitialized) {
16040 throw new Error("initializeWasm() must be awaited first!");
16042 const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_is_ok(o);
16043 return nativeResponseValue;
16045 // void CResult_NoneErrorZ_free(struct LDKCResult_NoneErrorZ _res);
16047 export function CResult_NoneErrorZ_free(_res: bigint): void {
16048 if(!isWasmInitialized) {
16049 throw new Error("initializeWasm() must be awaited first!");
16051 const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_free(_res);
16052 // debug statements here
16054 // uint64_t CResult_NoneErrorZ_clone_ptr(LDKCResult_NoneErrorZ *NONNULL_PTR arg);
16056 export function CResult_NoneErrorZ_clone_ptr(arg: bigint): bigint {
16057 if(!isWasmInitialized) {
16058 throw new Error("initializeWasm() must be awaited first!");
16060 const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_clone_ptr(arg);
16061 return nativeResponseValue;
16063 // struct LDKCResult_NoneErrorZ CResult_NoneErrorZ_clone(const struct LDKCResult_NoneErrorZ *NONNULL_PTR orig);
16065 export function CResult_NoneErrorZ_clone(orig: bigint): bigint {
16066 if(!isWasmInitialized) {
16067 throw new Error("initializeWasm() must be awaited first!");
16069 const nativeResponseValue = wasm.TS_CResult_NoneErrorZ_clone(orig);
16070 return nativeResponseValue;
16072 // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_ok(struct LDKNetAddress o);
16074 export function CResult_NetAddressDecodeErrorZ_ok(o: bigint): bigint {
16075 if(!isWasmInitialized) {
16076 throw new Error("initializeWasm() must be awaited first!");
16078 const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_ok(o);
16079 return nativeResponseValue;
16081 // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_err(struct LDKDecodeError e);
16083 export function CResult_NetAddressDecodeErrorZ_err(e: bigint): bigint {
16084 if(!isWasmInitialized) {
16085 throw new Error("initializeWasm() must be awaited first!");
16087 const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_err(e);
16088 return nativeResponseValue;
16090 // bool CResult_NetAddressDecodeErrorZ_is_ok(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR o);
16092 export function CResult_NetAddressDecodeErrorZ_is_ok(o: bigint): boolean {
16093 if(!isWasmInitialized) {
16094 throw new Error("initializeWasm() must be awaited first!");
16096 const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_is_ok(o);
16097 return nativeResponseValue;
16099 // void CResult_NetAddressDecodeErrorZ_free(struct LDKCResult_NetAddressDecodeErrorZ _res);
16101 export function CResult_NetAddressDecodeErrorZ_free(_res: bigint): void {
16102 if(!isWasmInitialized) {
16103 throw new Error("initializeWasm() must be awaited first!");
16105 const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_free(_res);
16106 // debug statements here
16108 // uint64_t CResult_NetAddressDecodeErrorZ_clone_ptr(LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR arg);
16110 export function CResult_NetAddressDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16111 if(!isWasmInitialized) {
16112 throw new Error("initializeWasm() must be awaited first!");
16114 const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone_ptr(arg);
16115 return nativeResponseValue;
16117 // struct LDKCResult_NetAddressDecodeErrorZ CResult_NetAddressDecodeErrorZ_clone(const struct LDKCResult_NetAddressDecodeErrorZ *NONNULL_PTR orig);
16119 export function CResult_NetAddressDecodeErrorZ_clone(orig: bigint): bigint {
16120 if(!isWasmInitialized) {
16121 throw new Error("initializeWasm() must be awaited first!");
16123 const nativeResponseValue = wasm.TS_CResult_NetAddressDecodeErrorZ_clone(orig);
16124 return nativeResponseValue;
16126 // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
16128 export function CVec_UpdateAddHTLCZ_free(_res: number): void {
16129 if(!isWasmInitialized) {
16130 throw new Error("initializeWasm() must be awaited first!");
16132 const nativeResponseValue = wasm.TS_CVec_UpdateAddHTLCZ_free(_res);
16133 // debug statements here
16135 // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
16137 export function CVec_UpdateFulfillHTLCZ_free(_res: number): void {
16138 if(!isWasmInitialized) {
16139 throw new Error("initializeWasm() must be awaited first!");
16141 const nativeResponseValue = wasm.TS_CVec_UpdateFulfillHTLCZ_free(_res);
16142 // debug statements here
16144 // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
16146 export function CVec_UpdateFailHTLCZ_free(_res: number): void {
16147 if(!isWasmInitialized) {
16148 throw new Error("initializeWasm() must be awaited first!");
16150 const nativeResponseValue = wasm.TS_CVec_UpdateFailHTLCZ_free(_res);
16151 // debug statements here
16153 // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
16155 export function CVec_UpdateFailMalformedHTLCZ_free(_res: number): void {
16156 if(!isWasmInitialized) {
16157 throw new Error("initializeWasm() must be awaited first!");
16159 const nativeResponseValue = wasm.TS_CVec_UpdateFailMalformedHTLCZ_free(_res);
16160 // debug statements here
16162 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
16164 export function CResult_AcceptChannelDecodeErrorZ_ok(o: bigint): bigint {
16165 if(!isWasmInitialized) {
16166 throw new Error("initializeWasm() must be awaited first!");
16168 const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_ok(o);
16169 return nativeResponseValue;
16171 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
16173 export function CResult_AcceptChannelDecodeErrorZ_err(e: bigint): bigint {
16174 if(!isWasmInitialized) {
16175 throw new Error("initializeWasm() must be awaited first!");
16177 const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_err(e);
16178 return nativeResponseValue;
16180 // bool CResult_AcceptChannelDecodeErrorZ_is_ok(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR o);
16182 export function CResult_AcceptChannelDecodeErrorZ_is_ok(o: bigint): boolean {
16183 if(!isWasmInitialized) {
16184 throw new Error("initializeWasm() must be awaited first!");
16186 const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_is_ok(o);
16187 return nativeResponseValue;
16189 // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
16191 export function CResult_AcceptChannelDecodeErrorZ_free(_res: bigint): void {
16192 if(!isWasmInitialized) {
16193 throw new Error("initializeWasm() must be awaited first!");
16195 const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_free(_res);
16196 // debug statements here
16198 // uint64_t CResult_AcceptChannelDecodeErrorZ_clone_ptr(LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR arg);
16200 export function CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16201 if(!isWasmInitialized) {
16202 throw new Error("initializeWasm() must be awaited first!");
16204 const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone_ptr(arg);
16205 return nativeResponseValue;
16207 // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
16209 export function CResult_AcceptChannelDecodeErrorZ_clone(orig: bigint): bigint {
16210 if(!isWasmInitialized) {
16211 throw new Error("initializeWasm() must be awaited first!");
16213 const nativeResponseValue = wasm.TS_CResult_AcceptChannelDecodeErrorZ_clone(orig);
16214 return nativeResponseValue;
16216 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
16218 export function CResult_AnnouncementSignaturesDecodeErrorZ_ok(o: bigint): bigint {
16219 if(!isWasmInitialized) {
16220 throw new Error("initializeWasm() must be awaited first!");
16222 const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_ok(o);
16223 return nativeResponseValue;
16225 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
16227 export function CResult_AnnouncementSignaturesDecodeErrorZ_err(e: bigint): bigint {
16228 if(!isWasmInitialized) {
16229 throw new Error("initializeWasm() must be awaited first!");
16231 const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_err(e);
16232 return nativeResponseValue;
16234 // bool CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR o);
16236 export function CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o: bigint): boolean {
16237 if(!isWasmInitialized) {
16238 throw new Error("initializeWasm() must be awaited first!");
16240 const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_is_ok(o);
16241 return nativeResponseValue;
16243 // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
16245 export function CResult_AnnouncementSignaturesDecodeErrorZ_free(_res: bigint): void {
16246 if(!isWasmInitialized) {
16247 throw new Error("initializeWasm() must be awaited first!");
16249 const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_free(_res);
16250 // debug statements here
16252 // uint64_t CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR arg);
16254 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16255 if(!isWasmInitialized) {
16256 throw new Error("initializeWasm() must be awaited first!");
16258 const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone_ptr(arg);
16259 return nativeResponseValue;
16261 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
16263 export function CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig: bigint): bigint {
16264 if(!isWasmInitialized) {
16265 throw new Error("initializeWasm() must be awaited first!");
16267 const nativeResponseValue = wasm.TS_CResult_AnnouncementSignaturesDecodeErrorZ_clone(orig);
16268 return nativeResponseValue;
16270 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
16272 export function CResult_ChannelReestablishDecodeErrorZ_ok(o: bigint): bigint {
16273 if(!isWasmInitialized) {
16274 throw new Error("initializeWasm() must be awaited first!");
16276 const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_ok(o);
16277 return nativeResponseValue;
16279 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
16281 export function CResult_ChannelReestablishDecodeErrorZ_err(e: bigint): bigint {
16282 if(!isWasmInitialized) {
16283 throw new Error("initializeWasm() must be awaited first!");
16285 const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_err(e);
16286 return nativeResponseValue;
16288 // bool CResult_ChannelReestablishDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR o);
16290 export function CResult_ChannelReestablishDecodeErrorZ_is_ok(o: bigint): boolean {
16291 if(!isWasmInitialized) {
16292 throw new Error("initializeWasm() must be awaited first!");
16294 const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_is_ok(o);
16295 return nativeResponseValue;
16297 // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
16299 export function CResult_ChannelReestablishDecodeErrorZ_free(_res: bigint): void {
16300 if(!isWasmInitialized) {
16301 throw new Error("initializeWasm() must be awaited first!");
16303 const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_free(_res);
16304 // debug statements here
16306 // uint64_t CResult_ChannelReestablishDecodeErrorZ_clone_ptr(LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR arg);
16308 export function CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16309 if(!isWasmInitialized) {
16310 throw new Error("initializeWasm() must be awaited first!");
16312 const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone_ptr(arg);
16313 return nativeResponseValue;
16315 // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
16317 export function CResult_ChannelReestablishDecodeErrorZ_clone(orig: bigint): bigint {
16318 if(!isWasmInitialized) {
16319 throw new Error("initializeWasm() must be awaited first!");
16321 const nativeResponseValue = wasm.TS_CResult_ChannelReestablishDecodeErrorZ_clone(orig);
16322 return nativeResponseValue;
16324 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
16326 export function CResult_ClosingSignedDecodeErrorZ_ok(o: bigint): bigint {
16327 if(!isWasmInitialized) {
16328 throw new Error("initializeWasm() must be awaited first!");
16330 const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_ok(o);
16331 return nativeResponseValue;
16333 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
16335 export function CResult_ClosingSignedDecodeErrorZ_err(e: bigint): bigint {
16336 if(!isWasmInitialized) {
16337 throw new Error("initializeWasm() must be awaited first!");
16339 const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_err(e);
16340 return nativeResponseValue;
16342 // bool CResult_ClosingSignedDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR o);
16344 export function CResult_ClosingSignedDecodeErrorZ_is_ok(o: bigint): boolean {
16345 if(!isWasmInitialized) {
16346 throw new Error("initializeWasm() must be awaited first!");
16348 const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_is_ok(o);
16349 return nativeResponseValue;
16351 // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
16353 export function CResult_ClosingSignedDecodeErrorZ_free(_res: bigint): void {
16354 if(!isWasmInitialized) {
16355 throw new Error("initializeWasm() must be awaited first!");
16357 const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_free(_res);
16358 // debug statements here
16360 // uint64_t CResult_ClosingSignedDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR arg);
16362 export function CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16363 if(!isWasmInitialized) {
16364 throw new Error("initializeWasm() must be awaited first!");
16366 const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone_ptr(arg);
16367 return nativeResponseValue;
16369 // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
16371 export function CResult_ClosingSignedDecodeErrorZ_clone(orig: bigint): bigint {
16372 if(!isWasmInitialized) {
16373 throw new Error("initializeWasm() must be awaited first!");
16375 const nativeResponseValue = wasm.TS_CResult_ClosingSignedDecodeErrorZ_clone(orig);
16376 return nativeResponseValue;
16378 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(struct LDKClosingSignedFeeRange o);
16380 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o: bigint): bigint {
16381 if(!isWasmInitialized) {
16382 throw new Error("initializeWasm() must be awaited first!");
16384 const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_ok(o);
16385 return nativeResponseValue;
16387 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_err(struct LDKDecodeError e);
16389 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e: bigint): bigint {
16390 if(!isWasmInitialized) {
16391 throw new Error("initializeWasm() must be awaited first!");
16393 const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_err(e);
16394 return nativeResponseValue;
16396 // bool CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR o);
16398 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o: bigint): boolean {
16399 if(!isWasmInitialized) {
16400 throw new Error("initializeWasm() must be awaited first!");
16402 const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_is_ok(o);
16403 return nativeResponseValue;
16405 // void CResult_ClosingSignedFeeRangeDecodeErrorZ_free(struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ _res);
16407 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res: bigint): void {
16408 if(!isWasmInitialized) {
16409 throw new Error("initializeWasm() must be awaited first!");
16411 const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_free(_res);
16412 // debug statements here
16414 // uint64_t CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR arg);
16416 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16417 if(!isWasmInitialized) {
16418 throw new Error("initializeWasm() must be awaited first!");
16420 const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone_ptr(arg);
16421 return nativeResponseValue;
16423 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ *NONNULL_PTR orig);
16425 export function CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig: bigint): bigint {
16426 if(!isWasmInitialized) {
16427 throw new Error("initializeWasm() must be awaited first!");
16429 const nativeResponseValue = wasm.TS_CResult_ClosingSignedFeeRangeDecodeErrorZ_clone(orig);
16430 return nativeResponseValue;
16432 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
16434 export function CResult_CommitmentSignedDecodeErrorZ_ok(o: bigint): bigint {
16435 if(!isWasmInitialized) {
16436 throw new Error("initializeWasm() must be awaited first!");
16438 const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_ok(o);
16439 return nativeResponseValue;
16441 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
16443 export function CResult_CommitmentSignedDecodeErrorZ_err(e: bigint): bigint {
16444 if(!isWasmInitialized) {
16445 throw new Error("initializeWasm() must be awaited first!");
16447 const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_err(e);
16448 return nativeResponseValue;
16450 // bool CResult_CommitmentSignedDecodeErrorZ_is_ok(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR o);
16452 export function CResult_CommitmentSignedDecodeErrorZ_is_ok(o: bigint): boolean {
16453 if(!isWasmInitialized) {
16454 throw new Error("initializeWasm() must be awaited first!");
16456 const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_is_ok(o);
16457 return nativeResponseValue;
16459 // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
16461 export function CResult_CommitmentSignedDecodeErrorZ_free(_res: bigint): void {
16462 if(!isWasmInitialized) {
16463 throw new Error("initializeWasm() must be awaited first!");
16465 const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_free(_res);
16466 // debug statements here
16468 // uint64_t CResult_CommitmentSignedDecodeErrorZ_clone_ptr(LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR arg);
16470 export function CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16471 if(!isWasmInitialized) {
16472 throw new Error("initializeWasm() must be awaited first!");
16474 const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone_ptr(arg);
16475 return nativeResponseValue;
16477 // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
16479 export function CResult_CommitmentSignedDecodeErrorZ_clone(orig: bigint): bigint {
16480 if(!isWasmInitialized) {
16481 throw new Error("initializeWasm() must be awaited first!");
16483 const nativeResponseValue = wasm.TS_CResult_CommitmentSignedDecodeErrorZ_clone(orig);
16484 return nativeResponseValue;
16486 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
16488 export function CResult_FundingCreatedDecodeErrorZ_ok(o: bigint): bigint {
16489 if(!isWasmInitialized) {
16490 throw new Error("initializeWasm() must be awaited first!");
16492 const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_ok(o);
16493 return nativeResponseValue;
16495 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
16497 export function CResult_FundingCreatedDecodeErrorZ_err(e: bigint): bigint {
16498 if(!isWasmInitialized) {
16499 throw new Error("initializeWasm() must be awaited first!");
16501 const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_err(e);
16502 return nativeResponseValue;
16504 // bool CResult_FundingCreatedDecodeErrorZ_is_ok(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR o);
16506 export function CResult_FundingCreatedDecodeErrorZ_is_ok(o: bigint): boolean {
16507 if(!isWasmInitialized) {
16508 throw new Error("initializeWasm() must be awaited first!");
16510 const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_is_ok(o);
16511 return nativeResponseValue;
16513 // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
16515 export function CResult_FundingCreatedDecodeErrorZ_free(_res: bigint): void {
16516 if(!isWasmInitialized) {
16517 throw new Error("initializeWasm() must be awaited first!");
16519 const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_free(_res);
16520 // debug statements here
16522 // uint64_t CResult_FundingCreatedDecodeErrorZ_clone_ptr(LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR arg);
16524 export function CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16525 if(!isWasmInitialized) {
16526 throw new Error("initializeWasm() must be awaited first!");
16528 const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone_ptr(arg);
16529 return nativeResponseValue;
16531 // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
16533 export function CResult_FundingCreatedDecodeErrorZ_clone(orig: bigint): bigint {
16534 if(!isWasmInitialized) {
16535 throw new Error("initializeWasm() must be awaited first!");
16537 const nativeResponseValue = wasm.TS_CResult_FundingCreatedDecodeErrorZ_clone(orig);
16538 return nativeResponseValue;
16540 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
16542 export function CResult_FundingSignedDecodeErrorZ_ok(o: bigint): bigint {
16543 if(!isWasmInitialized) {
16544 throw new Error("initializeWasm() must be awaited first!");
16546 const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_ok(o);
16547 return nativeResponseValue;
16549 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
16551 export function CResult_FundingSignedDecodeErrorZ_err(e: bigint): bigint {
16552 if(!isWasmInitialized) {
16553 throw new Error("initializeWasm() must be awaited first!");
16555 const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_err(e);
16556 return nativeResponseValue;
16558 // bool CResult_FundingSignedDecodeErrorZ_is_ok(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR o);
16560 export function CResult_FundingSignedDecodeErrorZ_is_ok(o: bigint): boolean {
16561 if(!isWasmInitialized) {
16562 throw new Error("initializeWasm() must be awaited first!");
16564 const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_is_ok(o);
16565 return nativeResponseValue;
16567 // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
16569 export function CResult_FundingSignedDecodeErrorZ_free(_res: bigint): void {
16570 if(!isWasmInitialized) {
16571 throw new Error("initializeWasm() must be awaited first!");
16573 const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_free(_res);
16574 // debug statements here
16576 // uint64_t CResult_FundingSignedDecodeErrorZ_clone_ptr(LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR arg);
16578 export function CResult_FundingSignedDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16579 if(!isWasmInitialized) {
16580 throw new Error("initializeWasm() must be awaited first!");
16582 const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone_ptr(arg);
16583 return nativeResponseValue;
16585 // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
16587 export function CResult_FundingSignedDecodeErrorZ_clone(orig: bigint): bigint {
16588 if(!isWasmInitialized) {
16589 throw new Error("initializeWasm() must be awaited first!");
16591 const nativeResponseValue = wasm.TS_CResult_FundingSignedDecodeErrorZ_clone(orig);
16592 return nativeResponseValue;
16594 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_ok(struct LDKChannelReady o);
16596 export function CResult_ChannelReadyDecodeErrorZ_ok(o: bigint): bigint {
16597 if(!isWasmInitialized) {
16598 throw new Error("initializeWasm() must be awaited first!");
16600 const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_ok(o);
16601 return nativeResponseValue;
16603 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_err(struct LDKDecodeError e);
16605 export function CResult_ChannelReadyDecodeErrorZ_err(e: bigint): bigint {
16606 if(!isWasmInitialized) {
16607 throw new Error("initializeWasm() must be awaited first!");
16609 const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_err(e);
16610 return nativeResponseValue;
16612 // bool CResult_ChannelReadyDecodeErrorZ_is_ok(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR o);
16614 export function CResult_ChannelReadyDecodeErrorZ_is_ok(o: bigint): boolean {
16615 if(!isWasmInitialized) {
16616 throw new Error("initializeWasm() must be awaited first!");
16618 const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_is_ok(o);
16619 return nativeResponseValue;
16621 // void CResult_ChannelReadyDecodeErrorZ_free(struct LDKCResult_ChannelReadyDecodeErrorZ _res);
16623 export function CResult_ChannelReadyDecodeErrorZ_free(_res: bigint): void {
16624 if(!isWasmInitialized) {
16625 throw new Error("initializeWasm() must be awaited first!");
16627 const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_free(_res);
16628 // debug statements here
16630 // uint64_t CResult_ChannelReadyDecodeErrorZ_clone_ptr(LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR arg);
16632 export function CResult_ChannelReadyDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16633 if(!isWasmInitialized) {
16634 throw new Error("initializeWasm() must be awaited first!");
16636 const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_clone_ptr(arg);
16637 return nativeResponseValue;
16639 // struct LDKCResult_ChannelReadyDecodeErrorZ CResult_ChannelReadyDecodeErrorZ_clone(const struct LDKCResult_ChannelReadyDecodeErrorZ *NONNULL_PTR orig);
16641 export function CResult_ChannelReadyDecodeErrorZ_clone(orig: bigint): bigint {
16642 if(!isWasmInitialized) {
16643 throw new Error("initializeWasm() must be awaited first!");
16645 const nativeResponseValue = wasm.TS_CResult_ChannelReadyDecodeErrorZ_clone(orig);
16646 return nativeResponseValue;
16648 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
16650 export function CResult_InitDecodeErrorZ_ok(o: bigint): bigint {
16651 if(!isWasmInitialized) {
16652 throw new Error("initializeWasm() must be awaited first!");
16654 const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_ok(o);
16655 return nativeResponseValue;
16657 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
16659 export function CResult_InitDecodeErrorZ_err(e: bigint): bigint {
16660 if(!isWasmInitialized) {
16661 throw new Error("initializeWasm() must be awaited first!");
16663 const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_err(e);
16664 return nativeResponseValue;
16666 // bool CResult_InitDecodeErrorZ_is_ok(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR o);
16668 export function CResult_InitDecodeErrorZ_is_ok(o: bigint): boolean {
16669 if(!isWasmInitialized) {
16670 throw new Error("initializeWasm() must be awaited first!");
16672 const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_is_ok(o);
16673 return nativeResponseValue;
16675 // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
16677 export function CResult_InitDecodeErrorZ_free(_res: bigint): void {
16678 if(!isWasmInitialized) {
16679 throw new Error("initializeWasm() must be awaited first!");
16681 const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_free(_res);
16682 // debug statements here
16684 // uint64_t CResult_InitDecodeErrorZ_clone_ptr(LDKCResult_InitDecodeErrorZ *NONNULL_PTR arg);
16686 export function CResult_InitDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16687 if(!isWasmInitialized) {
16688 throw new Error("initializeWasm() must be awaited first!");
16690 const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone_ptr(arg);
16691 return nativeResponseValue;
16693 // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
16695 export function CResult_InitDecodeErrorZ_clone(orig: bigint): bigint {
16696 if(!isWasmInitialized) {
16697 throw new Error("initializeWasm() must be awaited first!");
16699 const nativeResponseValue = wasm.TS_CResult_InitDecodeErrorZ_clone(orig);
16700 return nativeResponseValue;
16702 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
16704 export function CResult_OpenChannelDecodeErrorZ_ok(o: bigint): bigint {
16705 if(!isWasmInitialized) {
16706 throw new Error("initializeWasm() must be awaited first!");
16708 const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_ok(o);
16709 return nativeResponseValue;
16711 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
16713 export function CResult_OpenChannelDecodeErrorZ_err(e: bigint): bigint {
16714 if(!isWasmInitialized) {
16715 throw new Error("initializeWasm() must be awaited first!");
16717 const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_err(e);
16718 return nativeResponseValue;
16720 // bool CResult_OpenChannelDecodeErrorZ_is_ok(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR o);
16722 export function CResult_OpenChannelDecodeErrorZ_is_ok(o: bigint): boolean {
16723 if(!isWasmInitialized) {
16724 throw new Error("initializeWasm() must be awaited first!");
16726 const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_is_ok(o);
16727 return nativeResponseValue;
16729 // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
16731 export function CResult_OpenChannelDecodeErrorZ_free(_res: bigint): void {
16732 if(!isWasmInitialized) {
16733 throw new Error("initializeWasm() must be awaited first!");
16735 const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_free(_res);
16736 // debug statements here
16738 // uint64_t CResult_OpenChannelDecodeErrorZ_clone_ptr(LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR arg);
16740 export function CResult_OpenChannelDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16741 if(!isWasmInitialized) {
16742 throw new Error("initializeWasm() must be awaited first!");
16744 const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone_ptr(arg);
16745 return nativeResponseValue;
16747 // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
16749 export function CResult_OpenChannelDecodeErrorZ_clone(orig: bigint): bigint {
16750 if(!isWasmInitialized) {
16751 throw new Error("initializeWasm() must be awaited first!");
16753 const nativeResponseValue = wasm.TS_CResult_OpenChannelDecodeErrorZ_clone(orig);
16754 return nativeResponseValue;
16756 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
16758 export function CResult_RevokeAndACKDecodeErrorZ_ok(o: bigint): bigint {
16759 if(!isWasmInitialized) {
16760 throw new Error("initializeWasm() must be awaited first!");
16762 const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_ok(o);
16763 return nativeResponseValue;
16765 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
16767 export function CResult_RevokeAndACKDecodeErrorZ_err(e: bigint): bigint {
16768 if(!isWasmInitialized) {
16769 throw new Error("initializeWasm() must be awaited first!");
16771 const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_err(e);
16772 return nativeResponseValue;
16774 // bool CResult_RevokeAndACKDecodeErrorZ_is_ok(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR o);
16776 export function CResult_RevokeAndACKDecodeErrorZ_is_ok(o: bigint): boolean {
16777 if(!isWasmInitialized) {
16778 throw new Error("initializeWasm() must be awaited first!");
16780 const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_is_ok(o);
16781 return nativeResponseValue;
16783 // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
16785 export function CResult_RevokeAndACKDecodeErrorZ_free(_res: bigint): void {
16786 if(!isWasmInitialized) {
16787 throw new Error("initializeWasm() must be awaited first!");
16789 const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_free(_res);
16790 // debug statements here
16792 // uint64_t CResult_RevokeAndACKDecodeErrorZ_clone_ptr(LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR arg);
16794 export function CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16795 if(!isWasmInitialized) {
16796 throw new Error("initializeWasm() must be awaited first!");
16798 const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone_ptr(arg);
16799 return nativeResponseValue;
16801 // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
16803 export function CResult_RevokeAndACKDecodeErrorZ_clone(orig: bigint): bigint {
16804 if(!isWasmInitialized) {
16805 throw new Error("initializeWasm() must be awaited first!");
16807 const nativeResponseValue = wasm.TS_CResult_RevokeAndACKDecodeErrorZ_clone(orig);
16808 return nativeResponseValue;
16810 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
16812 export function CResult_ShutdownDecodeErrorZ_ok(o: bigint): bigint {
16813 if(!isWasmInitialized) {
16814 throw new Error("initializeWasm() must be awaited first!");
16816 const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_ok(o);
16817 return nativeResponseValue;
16819 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
16821 export function CResult_ShutdownDecodeErrorZ_err(e: bigint): bigint {
16822 if(!isWasmInitialized) {
16823 throw new Error("initializeWasm() must be awaited first!");
16825 const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_err(e);
16826 return nativeResponseValue;
16828 // bool CResult_ShutdownDecodeErrorZ_is_ok(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR o);
16830 export function CResult_ShutdownDecodeErrorZ_is_ok(o: bigint): boolean {
16831 if(!isWasmInitialized) {
16832 throw new Error("initializeWasm() must be awaited first!");
16834 const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_is_ok(o);
16835 return nativeResponseValue;
16837 // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
16839 export function CResult_ShutdownDecodeErrorZ_free(_res: bigint): void {
16840 if(!isWasmInitialized) {
16841 throw new Error("initializeWasm() must be awaited first!");
16843 const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_free(_res);
16844 // debug statements here
16846 // uint64_t CResult_ShutdownDecodeErrorZ_clone_ptr(LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR arg);
16848 export function CResult_ShutdownDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16849 if(!isWasmInitialized) {
16850 throw new Error("initializeWasm() must be awaited first!");
16852 const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone_ptr(arg);
16853 return nativeResponseValue;
16855 // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
16857 export function CResult_ShutdownDecodeErrorZ_clone(orig: bigint): bigint {
16858 if(!isWasmInitialized) {
16859 throw new Error("initializeWasm() must be awaited first!");
16861 const nativeResponseValue = wasm.TS_CResult_ShutdownDecodeErrorZ_clone(orig);
16862 return nativeResponseValue;
16864 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
16866 export function CResult_UpdateFailHTLCDecodeErrorZ_ok(o: bigint): bigint {
16867 if(!isWasmInitialized) {
16868 throw new Error("initializeWasm() must be awaited first!");
16870 const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_ok(o);
16871 return nativeResponseValue;
16873 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
16875 export function CResult_UpdateFailHTLCDecodeErrorZ_err(e: bigint): bigint {
16876 if(!isWasmInitialized) {
16877 throw new Error("initializeWasm() must be awaited first!");
16879 const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_err(e);
16880 return nativeResponseValue;
16882 // bool CResult_UpdateFailHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR o);
16884 export function CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o: bigint): boolean {
16885 if(!isWasmInitialized) {
16886 throw new Error("initializeWasm() must be awaited first!");
16888 const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_is_ok(o);
16889 return nativeResponseValue;
16891 // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
16893 export function CResult_UpdateFailHTLCDecodeErrorZ_free(_res: bigint): void {
16894 if(!isWasmInitialized) {
16895 throw new Error("initializeWasm() must be awaited first!");
16897 const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_free(_res);
16898 // debug statements here
16900 // uint64_t CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR arg);
16902 export function CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16903 if(!isWasmInitialized) {
16904 throw new Error("initializeWasm() must be awaited first!");
16906 const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone_ptr(arg);
16907 return nativeResponseValue;
16909 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
16911 export function CResult_UpdateFailHTLCDecodeErrorZ_clone(orig: bigint): bigint {
16912 if(!isWasmInitialized) {
16913 throw new Error("initializeWasm() must be awaited first!");
16915 const nativeResponseValue = wasm.TS_CResult_UpdateFailHTLCDecodeErrorZ_clone(orig);
16916 return nativeResponseValue;
16918 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
16920 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o: bigint): bigint {
16921 if(!isWasmInitialized) {
16922 throw new Error("initializeWasm() must be awaited first!");
16924 const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(o);
16925 return nativeResponseValue;
16927 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
16929 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e: bigint): bigint {
16930 if(!isWasmInitialized) {
16931 throw new Error("initializeWasm() must be awaited first!");
16933 const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(e);
16934 return nativeResponseValue;
16936 // bool CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR o);
16938 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o: bigint): boolean {
16939 if(!isWasmInitialized) {
16940 throw new Error("initializeWasm() must be awaited first!");
16942 const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_is_ok(o);
16943 return nativeResponseValue;
16945 // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
16947 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res: bigint): void {
16948 if(!isWasmInitialized) {
16949 throw new Error("initializeWasm() must be awaited first!");
16951 const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(_res);
16952 // debug statements here
16954 // uint64_t CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR arg);
16956 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg: bigint): bigint {
16957 if(!isWasmInitialized) {
16958 throw new Error("initializeWasm() must be awaited first!");
16960 const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone_ptr(arg);
16961 return nativeResponseValue;
16963 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
16965 export function CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig: bigint): bigint {
16966 if(!isWasmInitialized) {
16967 throw new Error("initializeWasm() must be awaited first!");
16969 const nativeResponseValue = wasm.TS_CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(orig);
16970 return nativeResponseValue;
16972 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
16974 export function CResult_UpdateFeeDecodeErrorZ_ok(o: bigint): bigint {
16975 if(!isWasmInitialized) {
16976 throw new Error("initializeWasm() must be awaited first!");
16978 const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_ok(o);
16979 return nativeResponseValue;
16981 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
16983 export function CResult_UpdateFeeDecodeErrorZ_err(e: bigint): bigint {
16984 if(!isWasmInitialized) {
16985 throw new Error("initializeWasm() must be awaited first!");
16987 const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_err(e);
16988 return nativeResponseValue;
16990 // bool CResult_UpdateFeeDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR o);
16992 export function CResult_UpdateFeeDecodeErrorZ_is_ok(o: bigint): boolean {
16993 if(!isWasmInitialized) {
16994 throw new Error("initializeWasm() must be awaited first!");
16996 const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_is_ok(o);
16997 return nativeResponseValue;
16999 // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
17001 export function CResult_UpdateFeeDecodeErrorZ_free(_res: bigint): void {
17002 if(!isWasmInitialized) {
17003 throw new Error("initializeWasm() must be awaited first!");
17005 const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_free(_res);
17006 // debug statements here
17008 // uint64_t CResult_UpdateFeeDecodeErrorZ_clone_ptr(LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR arg);
17010 export function CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17011 if(!isWasmInitialized) {
17012 throw new Error("initializeWasm() must be awaited first!");
17014 const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone_ptr(arg);
17015 return nativeResponseValue;
17017 // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
17019 export function CResult_UpdateFeeDecodeErrorZ_clone(orig: bigint): bigint {
17020 if(!isWasmInitialized) {
17021 throw new Error("initializeWasm() must be awaited first!");
17023 const nativeResponseValue = wasm.TS_CResult_UpdateFeeDecodeErrorZ_clone(orig);
17024 return nativeResponseValue;
17026 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
17028 export function CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o: bigint): bigint {
17029 if(!isWasmInitialized) {
17030 throw new Error("initializeWasm() must be awaited first!");
17032 const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_ok(o);
17033 return nativeResponseValue;
17035 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
17037 export function CResult_UpdateFulfillHTLCDecodeErrorZ_err(e: bigint): bigint {
17038 if(!isWasmInitialized) {
17039 throw new Error("initializeWasm() must be awaited first!");
17041 const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_err(e);
17042 return nativeResponseValue;
17044 // bool CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR o);
17046 export function CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o: bigint): boolean {
17047 if(!isWasmInitialized) {
17048 throw new Error("initializeWasm() must be awaited first!");
17050 const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_is_ok(o);
17051 return nativeResponseValue;
17053 // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
17055 export function CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res: bigint): void {
17056 if(!isWasmInitialized) {
17057 throw new Error("initializeWasm() must be awaited first!");
17059 const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_free(_res);
17060 // debug statements here
17062 // uint64_t CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR arg);
17064 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17065 if(!isWasmInitialized) {
17066 throw new Error("initializeWasm() must be awaited first!");
17068 const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone_ptr(arg);
17069 return nativeResponseValue;
17071 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
17073 export function CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig: bigint): bigint {
17074 if(!isWasmInitialized) {
17075 throw new Error("initializeWasm() must be awaited first!");
17077 const nativeResponseValue = wasm.TS_CResult_UpdateFulfillHTLCDecodeErrorZ_clone(orig);
17078 return nativeResponseValue;
17080 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
17082 export function CResult_UpdateAddHTLCDecodeErrorZ_ok(o: bigint): bigint {
17083 if(!isWasmInitialized) {
17084 throw new Error("initializeWasm() must be awaited first!");
17086 const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_ok(o);
17087 return nativeResponseValue;
17089 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
17091 export function CResult_UpdateAddHTLCDecodeErrorZ_err(e: bigint): bigint {
17092 if(!isWasmInitialized) {
17093 throw new Error("initializeWasm() must be awaited first!");
17095 const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_err(e);
17096 return nativeResponseValue;
17098 // bool CResult_UpdateAddHTLCDecodeErrorZ_is_ok(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR o);
17100 export function CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o: bigint): boolean {
17101 if(!isWasmInitialized) {
17102 throw new Error("initializeWasm() must be awaited first!");
17104 const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_is_ok(o);
17105 return nativeResponseValue;
17107 // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
17109 export function CResult_UpdateAddHTLCDecodeErrorZ_free(_res: bigint): void {
17110 if(!isWasmInitialized) {
17111 throw new Error("initializeWasm() must be awaited first!");
17113 const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_free(_res);
17114 // debug statements here
17116 // uint64_t CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR arg);
17118 export function CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17119 if(!isWasmInitialized) {
17120 throw new Error("initializeWasm() must be awaited first!");
17122 const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone_ptr(arg);
17123 return nativeResponseValue;
17125 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
17127 export function CResult_UpdateAddHTLCDecodeErrorZ_clone(orig: bigint): bigint {
17128 if(!isWasmInitialized) {
17129 throw new Error("initializeWasm() must be awaited first!");
17131 const nativeResponseValue = wasm.TS_CResult_UpdateAddHTLCDecodeErrorZ_clone(orig);
17132 return nativeResponseValue;
17134 // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_ok(struct LDKOnionMessage o);
17136 export function CResult_OnionMessageDecodeErrorZ_ok(o: bigint): bigint {
17137 if(!isWasmInitialized) {
17138 throw new Error("initializeWasm() must be awaited first!");
17140 const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_ok(o);
17141 return nativeResponseValue;
17143 // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_err(struct LDKDecodeError e);
17145 export function CResult_OnionMessageDecodeErrorZ_err(e: bigint): bigint {
17146 if(!isWasmInitialized) {
17147 throw new Error("initializeWasm() must be awaited first!");
17149 const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_err(e);
17150 return nativeResponseValue;
17152 // bool CResult_OnionMessageDecodeErrorZ_is_ok(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR o);
17154 export function CResult_OnionMessageDecodeErrorZ_is_ok(o: bigint): boolean {
17155 if(!isWasmInitialized) {
17156 throw new Error("initializeWasm() must be awaited first!");
17158 const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_is_ok(o);
17159 return nativeResponseValue;
17161 // void CResult_OnionMessageDecodeErrorZ_free(struct LDKCResult_OnionMessageDecodeErrorZ _res);
17163 export function CResult_OnionMessageDecodeErrorZ_free(_res: bigint): void {
17164 if(!isWasmInitialized) {
17165 throw new Error("initializeWasm() must be awaited first!");
17167 const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_free(_res);
17168 // debug statements here
17170 // uint64_t CResult_OnionMessageDecodeErrorZ_clone_ptr(LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR arg);
17172 export function CResult_OnionMessageDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17173 if(!isWasmInitialized) {
17174 throw new Error("initializeWasm() must be awaited first!");
17176 const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_clone_ptr(arg);
17177 return nativeResponseValue;
17179 // struct LDKCResult_OnionMessageDecodeErrorZ CResult_OnionMessageDecodeErrorZ_clone(const struct LDKCResult_OnionMessageDecodeErrorZ *NONNULL_PTR orig);
17181 export function CResult_OnionMessageDecodeErrorZ_clone(orig: bigint): bigint {
17182 if(!isWasmInitialized) {
17183 throw new Error("initializeWasm() must be awaited first!");
17185 const nativeResponseValue = wasm.TS_CResult_OnionMessageDecodeErrorZ_clone(orig);
17186 return nativeResponseValue;
17188 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
17190 export function CResult_PingDecodeErrorZ_ok(o: bigint): bigint {
17191 if(!isWasmInitialized) {
17192 throw new Error("initializeWasm() must be awaited first!");
17194 const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_ok(o);
17195 return nativeResponseValue;
17197 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
17199 export function CResult_PingDecodeErrorZ_err(e: bigint): bigint {
17200 if(!isWasmInitialized) {
17201 throw new Error("initializeWasm() must be awaited first!");
17203 const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_err(e);
17204 return nativeResponseValue;
17206 // bool CResult_PingDecodeErrorZ_is_ok(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR o);
17208 export function CResult_PingDecodeErrorZ_is_ok(o: bigint): boolean {
17209 if(!isWasmInitialized) {
17210 throw new Error("initializeWasm() must be awaited first!");
17212 const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_is_ok(o);
17213 return nativeResponseValue;
17215 // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
17217 export function CResult_PingDecodeErrorZ_free(_res: bigint): void {
17218 if(!isWasmInitialized) {
17219 throw new Error("initializeWasm() must be awaited first!");
17221 const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_free(_res);
17222 // debug statements here
17224 // uint64_t CResult_PingDecodeErrorZ_clone_ptr(LDKCResult_PingDecodeErrorZ *NONNULL_PTR arg);
17226 export function CResult_PingDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17227 if(!isWasmInitialized) {
17228 throw new Error("initializeWasm() must be awaited first!");
17230 const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone_ptr(arg);
17231 return nativeResponseValue;
17233 // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
17235 export function CResult_PingDecodeErrorZ_clone(orig: bigint): bigint {
17236 if(!isWasmInitialized) {
17237 throw new Error("initializeWasm() must be awaited first!");
17239 const nativeResponseValue = wasm.TS_CResult_PingDecodeErrorZ_clone(orig);
17240 return nativeResponseValue;
17242 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
17244 export function CResult_PongDecodeErrorZ_ok(o: bigint): bigint {
17245 if(!isWasmInitialized) {
17246 throw new Error("initializeWasm() must be awaited first!");
17248 const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_ok(o);
17249 return nativeResponseValue;
17251 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
17253 export function CResult_PongDecodeErrorZ_err(e: bigint): bigint {
17254 if(!isWasmInitialized) {
17255 throw new Error("initializeWasm() must be awaited first!");
17257 const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_err(e);
17258 return nativeResponseValue;
17260 // bool CResult_PongDecodeErrorZ_is_ok(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR o);
17262 export function CResult_PongDecodeErrorZ_is_ok(o: bigint): boolean {
17263 if(!isWasmInitialized) {
17264 throw new Error("initializeWasm() must be awaited first!");
17266 const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_is_ok(o);
17267 return nativeResponseValue;
17269 // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
17271 export function CResult_PongDecodeErrorZ_free(_res: bigint): void {
17272 if(!isWasmInitialized) {
17273 throw new Error("initializeWasm() must be awaited first!");
17275 const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_free(_res);
17276 // debug statements here
17278 // uint64_t CResult_PongDecodeErrorZ_clone_ptr(LDKCResult_PongDecodeErrorZ *NONNULL_PTR arg);
17280 export function CResult_PongDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17281 if(!isWasmInitialized) {
17282 throw new Error("initializeWasm() must be awaited first!");
17284 const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone_ptr(arg);
17285 return nativeResponseValue;
17287 // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
17289 export function CResult_PongDecodeErrorZ_clone(orig: bigint): bigint {
17290 if(!isWasmInitialized) {
17291 throw new Error("initializeWasm() must be awaited first!");
17293 const nativeResponseValue = wasm.TS_CResult_PongDecodeErrorZ_clone(orig);
17294 return nativeResponseValue;
17296 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
17298 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o: bigint): bigint {
17299 if(!isWasmInitialized) {
17300 throw new Error("initializeWasm() must be awaited first!");
17302 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(o);
17303 return nativeResponseValue;
17305 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
17307 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e: bigint): bigint {
17308 if(!isWasmInitialized) {
17309 throw new Error("initializeWasm() must be awaited first!");
17311 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(e);
17312 return nativeResponseValue;
17314 // bool CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
17316 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o: bigint): boolean {
17317 if(!isWasmInitialized) {
17318 throw new Error("initializeWasm() must be awaited first!");
17320 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(o);
17321 return nativeResponseValue;
17323 // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
17325 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res: bigint): void {
17326 if(!isWasmInitialized) {
17327 throw new Error("initializeWasm() must be awaited first!");
17329 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(_res);
17330 // debug statements here
17332 // uint64_t CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
17334 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17335 if(!isWasmInitialized) {
17336 throw new Error("initializeWasm() must be awaited first!");
17338 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
17339 return nativeResponseValue;
17341 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
17343 export function CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig: bigint): bigint {
17344 if(!isWasmInitialized) {
17345 throw new Error("initializeWasm() must be awaited first!");
17347 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(orig);
17348 return nativeResponseValue;
17350 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
17352 export function CResult_ChannelAnnouncementDecodeErrorZ_ok(o: bigint): bigint {
17353 if(!isWasmInitialized) {
17354 throw new Error("initializeWasm() must be awaited first!");
17356 const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_ok(o);
17357 return nativeResponseValue;
17359 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
17361 export function CResult_ChannelAnnouncementDecodeErrorZ_err(e: bigint): bigint {
17362 if(!isWasmInitialized) {
17363 throw new Error("initializeWasm() must be awaited first!");
17365 const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_err(e);
17366 return nativeResponseValue;
17368 // bool CResult_ChannelAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR o);
17370 export function CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o: bigint): boolean {
17371 if(!isWasmInitialized) {
17372 throw new Error("initializeWasm() must be awaited first!");
17374 const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_is_ok(o);
17375 return nativeResponseValue;
17377 // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
17379 export function CResult_ChannelAnnouncementDecodeErrorZ_free(_res: bigint): void {
17380 if(!isWasmInitialized) {
17381 throw new Error("initializeWasm() must be awaited first!");
17383 const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_free(_res);
17384 // debug statements here
17386 // uint64_t CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR arg);
17388 export function CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17389 if(!isWasmInitialized) {
17390 throw new Error("initializeWasm() must be awaited first!");
17392 const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone_ptr(arg);
17393 return nativeResponseValue;
17395 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
17397 export function CResult_ChannelAnnouncementDecodeErrorZ_clone(orig: bigint): bigint {
17398 if(!isWasmInitialized) {
17399 throw new Error("initializeWasm() must be awaited first!");
17401 const nativeResponseValue = wasm.TS_CResult_ChannelAnnouncementDecodeErrorZ_clone(orig);
17402 return nativeResponseValue;
17404 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
17406 export function CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o: bigint): bigint {
17407 if(!isWasmInitialized) {
17408 throw new Error("initializeWasm() must be awaited first!");
17410 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_ok(o);
17411 return nativeResponseValue;
17413 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
17415 export function CResult_UnsignedChannelUpdateDecodeErrorZ_err(e: bigint): bigint {
17416 if(!isWasmInitialized) {
17417 throw new Error("initializeWasm() must be awaited first!");
17419 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_err(e);
17420 return nativeResponseValue;
17422 // bool CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR o);
17424 export function CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o: bigint): boolean {
17425 if(!isWasmInitialized) {
17426 throw new Error("initializeWasm() must be awaited first!");
17428 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_is_ok(o);
17429 return nativeResponseValue;
17431 // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
17433 export function CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res: bigint): void {
17434 if(!isWasmInitialized) {
17435 throw new Error("initializeWasm() must be awaited first!");
17437 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_free(_res);
17438 // debug statements here
17440 // uint64_t CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
17442 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17443 if(!isWasmInitialized) {
17444 throw new Error("initializeWasm() must be awaited first!");
17446 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone_ptr(arg);
17447 return nativeResponseValue;
17449 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
17451 export function CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig: bigint): bigint {
17452 if(!isWasmInitialized) {
17453 throw new Error("initializeWasm() must be awaited first!");
17455 const nativeResponseValue = wasm.TS_CResult_UnsignedChannelUpdateDecodeErrorZ_clone(orig);
17456 return nativeResponseValue;
17458 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
17460 export function CResult_ChannelUpdateDecodeErrorZ_ok(o: bigint): bigint {
17461 if(!isWasmInitialized) {
17462 throw new Error("initializeWasm() must be awaited first!");
17464 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_ok(o);
17465 return nativeResponseValue;
17467 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
17469 export function CResult_ChannelUpdateDecodeErrorZ_err(e: bigint): bigint {
17470 if(!isWasmInitialized) {
17471 throw new Error("initializeWasm() must be awaited first!");
17473 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_err(e);
17474 return nativeResponseValue;
17476 // bool CResult_ChannelUpdateDecodeErrorZ_is_ok(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR o);
17478 export function CResult_ChannelUpdateDecodeErrorZ_is_ok(o: bigint): boolean {
17479 if(!isWasmInitialized) {
17480 throw new Error("initializeWasm() must be awaited first!");
17482 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_is_ok(o);
17483 return nativeResponseValue;
17485 // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
17487 export function CResult_ChannelUpdateDecodeErrorZ_free(_res: bigint): void {
17488 if(!isWasmInitialized) {
17489 throw new Error("initializeWasm() must be awaited first!");
17491 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_free(_res);
17492 // debug statements here
17494 // uint64_t CResult_ChannelUpdateDecodeErrorZ_clone_ptr(LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR arg);
17496 export function CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17497 if(!isWasmInitialized) {
17498 throw new Error("initializeWasm() must be awaited first!");
17500 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone_ptr(arg);
17501 return nativeResponseValue;
17503 // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
17505 export function CResult_ChannelUpdateDecodeErrorZ_clone(orig: bigint): bigint {
17506 if(!isWasmInitialized) {
17507 throw new Error("initializeWasm() must be awaited first!");
17509 const nativeResponseValue = wasm.TS_CResult_ChannelUpdateDecodeErrorZ_clone(orig);
17510 return nativeResponseValue;
17512 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
17514 export function CResult_ErrorMessageDecodeErrorZ_ok(o: bigint): bigint {
17515 if(!isWasmInitialized) {
17516 throw new Error("initializeWasm() must be awaited first!");
17518 const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_ok(o);
17519 return nativeResponseValue;
17521 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
17523 export function CResult_ErrorMessageDecodeErrorZ_err(e: bigint): bigint {
17524 if(!isWasmInitialized) {
17525 throw new Error("initializeWasm() must be awaited first!");
17527 const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_err(e);
17528 return nativeResponseValue;
17530 // bool CResult_ErrorMessageDecodeErrorZ_is_ok(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR o);
17532 export function CResult_ErrorMessageDecodeErrorZ_is_ok(o: bigint): boolean {
17533 if(!isWasmInitialized) {
17534 throw new Error("initializeWasm() must be awaited first!");
17536 const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_is_ok(o);
17537 return nativeResponseValue;
17539 // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
17541 export function CResult_ErrorMessageDecodeErrorZ_free(_res: bigint): void {
17542 if(!isWasmInitialized) {
17543 throw new Error("initializeWasm() must be awaited first!");
17545 const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_free(_res);
17546 // debug statements here
17548 // uint64_t CResult_ErrorMessageDecodeErrorZ_clone_ptr(LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR arg);
17550 export function CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17551 if(!isWasmInitialized) {
17552 throw new Error("initializeWasm() must be awaited first!");
17554 const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone_ptr(arg);
17555 return nativeResponseValue;
17557 // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
17559 export function CResult_ErrorMessageDecodeErrorZ_clone(orig: bigint): bigint {
17560 if(!isWasmInitialized) {
17561 throw new Error("initializeWasm() must be awaited first!");
17563 const nativeResponseValue = wasm.TS_CResult_ErrorMessageDecodeErrorZ_clone(orig);
17564 return nativeResponseValue;
17566 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_ok(struct LDKWarningMessage o);
17568 export function CResult_WarningMessageDecodeErrorZ_ok(o: bigint): bigint {
17569 if(!isWasmInitialized) {
17570 throw new Error("initializeWasm() must be awaited first!");
17572 const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_ok(o);
17573 return nativeResponseValue;
17575 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_err(struct LDKDecodeError e);
17577 export function CResult_WarningMessageDecodeErrorZ_err(e: bigint): bigint {
17578 if(!isWasmInitialized) {
17579 throw new Error("initializeWasm() must be awaited first!");
17581 const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_err(e);
17582 return nativeResponseValue;
17584 // bool CResult_WarningMessageDecodeErrorZ_is_ok(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR o);
17586 export function CResult_WarningMessageDecodeErrorZ_is_ok(o: bigint): boolean {
17587 if(!isWasmInitialized) {
17588 throw new Error("initializeWasm() must be awaited first!");
17590 const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_is_ok(o);
17591 return nativeResponseValue;
17593 // void CResult_WarningMessageDecodeErrorZ_free(struct LDKCResult_WarningMessageDecodeErrorZ _res);
17595 export function CResult_WarningMessageDecodeErrorZ_free(_res: bigint): void {
17596 if(!isWasmInitialized) {
17597 throw new Error("initializeWasm() must be awaited first!");
17599 const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_free(_res);
17600 // debug statements here
17602 // uint64_t CResult_WarningMessageDecodeErrorZ_clone_ptr(LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR arg);
17604 export function CResult_WarningMessageDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17605 if(!isWasmInitialized) {
17606 throw new Error("initializeWasm() must be awaited first!");
17608 const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone_ptr(arg);
17609 return nativeResponseValue;
17611 // struct LDKCResult_WarningMessageDecodeErrorZ CResult_WarningMessageDecodeErrorZ_clone(const struct LDKCResult_WarningMessageDecodeErrorZ *NONNULL_PTR orig);
17613 export function CResult_WarningMessageDecodeErrorZ_clone(orig: bigint): bigint {
17614 if(!isWasmInitialized) {
17615 throw new Error("initializeWasm() must be awaited first!");
17617 const nativeResponseValue = wasm.TS_CResult_WarningMessageDecodeErrorZ_clone(orig);
17618 return nativeResponseValue;
17620 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
17622 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o: bigint): bigint {
17623 if(!isWasmInitialized) {
17624 throw new Error("initializeWasm() must be awaited first!");
17626 const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(o);
17627 return nativeResponseValue;
17629 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
17631 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e: bigint): bigint {
17632 if(!isWasmInitialized) {
17633 throw new Error("initializeWasm() must be awaited first!");
17635 const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(e);
17636 return nativeResponseValue;
17638 // bool CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
17640 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o: bigint): boolean {
17641 if(!isWasmInitialized) {
17642 throw new Error("initializeWasm() must be awaited first!");
17644 const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_is_ok(o);
17645 return nativeResponseValue;
17647 // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
17649 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res: bigint): void {
17650 if(!isWasmInitialized) {
17651 throw new Error("initializeWasm() must be awaited first!");
17653 const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(_res);
17654 // debug statements here
17656 // uint64_t CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
17658 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17659 if(!isWasmInitialized) {
17660 throw new Error("initializeWasm() must be awaited first!");
17662 const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone_ptr(arg);
17663 return nativeResponseValue;
17665 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
17667 export function CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig: bigint): bigint {
17668 if(!isWasmInitialized) {
17669 throw new Error("initializeWasm() must be awaited first!");
17671 const nativeResponseValue = wasm.TS_CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(orig);
17672 return nativeResponseValue;
17674 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
17676 export function CResult_NodeAnnouncementDecodeErrorZ_ok(o: bigint): bigint {
17677 if(!isWasmInitialized) {
17678 throw new Error("initializeWasm() must be awaited first!");
17680 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_ok(o);
17681 return nativeResponseValue;
17683 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
17685 export function CResult_NodeAnnouncementDecodeErrorZ_err(e: bigint): bigint {
17686 if(!isWasmInitialized) {
17687 throw new Error("initializeWasm() must be awaited first!");
17689 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_err(e);
17690 return nativeResponseValue;
17692 // bool CResult_NodeAnnouncementDecodeErrorZ_is_ok(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR o);
17694 export function CResult_NodeAnnouncementDecodeErrorZ_is_ok(o: bigint): boolean {
17695 if(!isWasmInitialized) {
17696 throw new Error("initializeWasm() must be awaited first!");
17698 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_is_ok(o);
17699 return nativeResponseValue;
17701 // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
17703 export function CResult_NodeAnnouncementDecodeErrorZ_free(_res: bigint): void {
17704 if(!isWasmInitialized) {
17705 throw new Error("initializeWasm() must be awaited first!");
17707 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_free(_res);
17708 // debug statements here
17710 // uint64_t CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR arg);
17712 export function CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17713 if(!isWasmInitialized) {
17714 throw new Error("initializeWasm() must be awaited first!");
17716 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone_ptr(arg);
17717 return nativeResponseValue;
17719 // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
17721 export function CResult_NodeAnnouncementDecodeErrorZ_clone(orig: bigint): bigint {
17722 if(!isWasmInitialized) {
17723 throw new Error("initializeWasm() must be awaited first!");
17725 const nativeResponseValue = wasm.TS_CResult_NodeAnnouncementDecodeErrorZ_clone(orig);
17726 return nativeResponseValue;
17728 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
17730 export function CResult_QueryShortChannelIdsDecodeErrorZ_ok(o: bigint): bigint {
17731 if(!isWasmInitialized) {
17732 throw new Error("initializeWasm() must be awaited first!");
17734 const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_ok(o);
17735 return nativeResponseValue;
17737 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
17739 export function CResult_QueryShortChannelIdsDecodeErrorZ_err(e: bigint): bigint {
17740 if(!isWasmInitialized) {
17741 throw new Error("initializeWasm() must be awaited first!");
17743 const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_err(e);
17744 return nativeResponseValue;
17746 // bool CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR o);
17748 export function CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o: bigint): boolean {
17749 if(!isWasmInitialized) {
17750 throw new Error("initializeWasm() must be awaited first!");
17752 const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_is_ok(o);
17753 return nativeResponseValue;
17755 // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
17757 export function CResult_QueryShortChannelIdsDecodeErrorZ_free(_res: bigint): void {
17758 if(!isWasmInitialized) {
17759 throw new Error("initializeWasm() must be awaited first!");
17761 const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_free(_res);
17762 // debug statements here
17764 // uint64_t CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR arg);
17766 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17767 if(!isWasmInitialized) {
17768 throw new Error("initializeWasm() must be awaited first!");
17770 const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone_ptr(arg);
17771 return nativeResponseValue;
17773 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
17775 export function CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig: bigint): bigint {
17776 if(!isWasmInitialized) {
17777 throw new Error("initializeWasm() must be awaited first!");
17779 const nativeResponseValue = wasm.TS_CResult_QueryShortChannelIdsDecodeErrorZ_clone(orig);
17780 return nativeResponseValue;
17782 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
17784 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o: bigint): bigint {
17785 if(!isWasmInitialized) {
17786 throw new Error("initializeWasm() must be awaited first!");
17788 const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(o);
17789 return nativeResponseValue;
17791 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
17793 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e: bigint): bigint {
17794 if(!isWasmInitialized) {
17795 throw new Error("initializeWasm() must be awaited first!");
17797 const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(e);
17798 return nativeResponseValue;
17800 // bool CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR o);
17802 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o: bigint): boolean {
17803 if(!isWasmInitialized) {
17804 throw new Error("initializeWasm() must be awaited first!");
17806 const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_is_ok(o);
17807 return nativeResponseValue;
17809 // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
17811 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res: bigint): void {
17812 if(!isWasmInitialized) {
17813 throw new Error("initializeWasm() must be awaited first!");
17815 const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(_res);
17816 // debug statements here
17818 // uint64_t CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR arg);
17820 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17821 if(!isWasmInitialized) {
17822 throw new Error("initializeWasm() must be awaited first!");
17824 const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone_ptr(arg);
17825 return nativeResponseValue;
17827 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
17829 export function CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig: bigint): bigint {
17830 if(!isWasmInitialized) {
17831 throw new Error("initializeWasm() must be awaited first!");
17833 const nativeResponseValue = wasm.TS_CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(orig);
17834 return nativeResponseValue;
17836 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
17838 export function CResult_QueryChannelRangeDecodeErrorZ_ok(o: bigint): bigint {
17839 if(!isWasmInitialized) {
17840 throw new Error("initializeWasm() must be awaited first!");
17842 const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_ok(o);
17843 return nativeResponseValue;
17845 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
17847 export function CResult_QueryChannelRangeDecodeErrorZ_err(e: bigint): bigint {
17848 if(!isWasmInitialized) {
17849 throw new Error("initializeWasm() must be awaited first!");
17851 const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_err(e);
17852 return nativeResponseValue;
17854 // bool CResult_QueryChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR o);
17856 export function CResult_QueryChannelRangeDecodeErrorZ_is_ok(o: bigint): boolean {
17857 if(!isWasmInitialized) {
17858 throw new Error("initializeWasm() must be awaited first!");
17860 const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_is_ok(o);
17861 return nativeResponseValue;
17863 // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
17865 export function CResult_QueryChannelRangeDecodeErrorZ_free(_res: bigint): void {
17866 if(!isWasmInitialized) {
17867 throw new Error("initializeWasm() must be awaited first!");
17869 const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_free(_res);
17870 // debug statements here
17872 // uint64_t CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR arg);
17874 export function CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17875 if(!isWasmInitialized) {
17876 throw new Error("initializeWasm() must be awaited first!");
17878 const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone_ptr(arg);
17879 return nativeResponseValue;
17881 // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
17883 export function CResult_QueryChannelRangeDecodeErrorZ_clone(orig: bigint): bigint {
17884 if(!isWasmInitialized) {
17885 throw new Error("initializeWasm() must be awaited first!");
17887 const nativeResponseValue = wasm.TS_CResult_QueryChannelRangeDecodeErrorZ_clone(orig);
17888 return nativeResponseValue;
17890 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
17892 export function CResult_ReplyChannelRangeDecodeErrorZ_ok(o: bigint): bigint {
17893 if(!isWasmInitialized) {
17894 throw new Error("initializeWasm() must be awaited first!");
17896 const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_ok(o);
17897 return nativeResponseValue;
17899 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
17901 export function CResult_ReplyChannelRangeDecodeErrorZ_err(e: bigint): bigint {
17902 if(!isWasmInitialized) {
17903 throw new Error("initializeWasm() must be awaited first!");
17905 const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_err(e);
17906 return nativeResponseValue;
17908 // bool CResult_ReplyChannelRangeDecodeErrorZ_is_ok(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR o);
17910 export function CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o: bigint): boolean {
17911 if(!isWasmInitialized) {
17912 throw new Error("initializeWasm() must be awaited first!");
17914 const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_is_ok(o);
17915 return nativeResponseValue;
17917 // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
17919 export function CResult_ReplyChannelRangeDecodeErrorZ_free(_res: bigint): void {
17920 if(!isWasmInitialized) {
17921 throw new Error("initializeWasm() must be awaited first!");
17923 const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_free(_res);
17924 // debug statements here
17926 // uint64_t CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR arg);
17928 export function CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17929 if(!isWasmInitialized) {
17930 throw new Error("initializeWasm() must be awaited first!");
17932 const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone_ptr(arg);
17933 return nativeResponseValue;
17935 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
17937 export function CResult_ReplyChannelRangeDecodeErrorZ_clone(orig: bigint): bigint {
17938 if(!isWasmInitialized) {
17939 throw new Error("initializeWasm() must be awaited first!");
17941 const nativeResponseValue = wasm.TS_CResult_ReplyChannelRangeDecodeErrorZ_clone(orig);
17942 return nativeResponseValue;
17944 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
17946 export function CResult_GossipTimestampFilterDecodeErrorZ_ok(o: bigint): bigint {
17947 if(!isWasmInitialized) {
17948 throw new Error("initializeWasm() must be awaited first!");
17950 const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_ok(o);
17951 return nativeResponseValue;
17953 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
17955 export function CResult_GossipTimestampFilterDecodeErrorZ_err(e: bigint): bigint {
17956 if(!isWasmInitialized) {
17957 throw new Error("initializeWasm() must be awaited first!");
17959 const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_err(e);
17960 return nativeResponseValue;
17962 // bool CResult_GossipTimestampFilterDecodeErrorZ_is_ok(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR o);
17964 export function CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o: bigint): boolean {
17965 if(!isWasmInitialized) {
17966 throw new Error("initializeWasm() must be awaited first!");
17968 const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_is_ok(o);
17969 return nativeResponseValue;
17971 // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
17973 export function CResult_GossipTimestampFilterDecodeErrorZ_free(_res: bigint): void {
17974 if(!isWasmInitialized) {
17975 throw new Error("initializeWasm() must be awaited first!");
17977 const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_free(_res);
17978 // debug statements here
17980 // uint64_t CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR arg);
17982 export function CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg: bigint): bigint {
17983 if(!isWasmInitialized) {
17984 throw new Error("initializeWasm() must be awaited first!");
17986 const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone_ptr(arg);
17987 return nativeResponseValue;
17989 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
17991 export function CResult_GossipTimestampFilterDecodeErrorZ_clone(orig: bigint): bigint {
17992 if(!isWasmInitialized) {
17993 throw new Error("initializeWasm() must be awaited first!");
17995 const nativeResponseValue = wasm.TS_CResult_GossipTimestampFilterDecodeErrorZ_clone(orig);
17996 return nativeResponseValue;
17998 // struct LDKCOption_FilterZ COption_FilterZ_some(struct LDKFilter o);
18000 export function COption_FilterZ_some(o: bigint): bigint {
18001 if(!isWasmInitialized) {
18002 throw new Error("initializeWasm() must be awaited first!");
18004 const nativeResponseValue = wasm.TS_COption_FilterZ_some(o);
18005 return nativeResponseValue;
18007 // struct LDKCOption_FilterZ COption_FilterZ_none(void);
18009 export function COption_FilterZ_none(): bigint {
18010 if(!isWasmInitialized) {
18011 throw new Error("initializeWasm() must be awaited first!");
18013 const nativeResponseValue = wasm.TS_COption_FilterZ_none();
18014 return nativeResponseValue;
18016 // void COption_FilterZ_free(struct LDKCOption_FilterZ _res);
18018 export function COption_FilterZ_free(_res: bigint): void {
18019 if(!isWasmInitialized) {
18020 throw new Error("initializeWasm() must be awaited first!");
18022 const nativeResponseValue = wasm.TS_COption_FilterZ_free(_res);
18023 // debug statements here
18025 // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_ok(struct LDKLockedChannelMonitor o);
18027 export function CResult_LockedChannelMonitorNoneZ_ok(o: bigint): bigint {
18028 if(!isWasmInitialized) {
18029 throw new Error("initializeWasm() must be awaited first!");
18031 const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_ok(o);
18032 return nativeResponseValue;
18034 // struct LDKCResult_LockedChannelMonitorNoneZ CResult_LockedChannelMonitorNoneZ_err(void);
18036 export function CResult_LockedChannelMonitorNoneZ_err(): bigint {
18037 if(!isWasmInitialized) {
18038 throw new Error("initializeWasm() must be awaited first!");
18040 const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_err();
18041 return nativeResponseValue;
18043 // bool CResult_LockedChannelMonitorNoneZ_is_ok(const struct LDKCResult_LockedChannelMonitorNoneZ *NONNULL_PTR o);
18045 export function CResult_LockedChannelMonitorNoneZ_is_ok(o: bigint): boolean {
18046 if(!isWasmInitialized) {
18047 throw new Error("initializeWasm() must be awaited first!");
18049 const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_is_ok(o);
18050 return nativeResponseValue;
18052 // void CResult_LockedChannelMonitorNoneZ_free(struct LDKCResult_LockedChannelMonitorNoneZ _res);
18054 export function CResult_LockedChannelMonitorNoneZ_free(_res: bigint): void {
18055 if(!isWasmInitialized) {
18056 throw new Error("initializeWasm() must be awaited first!");
18058 const nativeResponseValue = wasm.TS_CResult_LockedChannelMonitorNoneZ_free(_res);
18059 // debug statements here
18061 // void CVec_OutPointZ_free(struct LDKCVec_OutPointZ _res);
18063 export function CVec_OutPointZ_free(_res: number): void {
18064 if(!isWasmInitialized) {
18065 throw new Error("initializeWasm() must be awaited first!");
18067 const nativeResponseValue = wasm.TS_CVec_OutPointZ_free(_res);
18068 // debug statements here
18070 // void CVec_MonitorUpdateIdZ_free(struct LDKCVec_MonitorUpdateIdZ _res);
18072 export function CVec_MonitorUpdateIdZ_free(_res: number): void {
18073 if(!isWasmInitialized) {
18074 throw new Error("initializeWasm() must be awaited first!");
18076 const nativeResponseValue = wasm.TS_CVec_MonitorUpdateIdZ_free(_res);
18077 // debug statements here
18079 // uint64_t C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR arg);
18081 export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(arg: bigint): bigint {
18082 if(!isWasmInitialized) {
18083 throw new Error("initializeWasm() must be awaited first!");
18085 const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone_ptr(arg);
18086 return nativeResponseValue;
18088 // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(const struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ *NONNULL_PTR orig);
18090 export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(orig: bigint): bigint {
18091 if(!isWasmInitialized) {
18092 throw new Error("initializeWasm() must be awaited first!");
18094 const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_clone(orig);
18095 return nativeResponseValue;
18097 // struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(struct LDKOutPoint a, struct LDKCVec_MonitorUpdateIdZ b);
18099 export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(a: bigint, b: number): bigint {
18100 if(!isWasmInitialized) {
18101 throw new Error("initializeWasm() must be awaited first!");
18103 const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_new(a, b);
18104 return nativeResponseValue;
18106 // void C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(struct LDKC2Tuple_OutPointCVec_MonitorUpdateIdZZ _res);
18108 export function C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(_res: bigint): void {
18109 if(!isWasmInitialized) {
18110 throw new Error("initializeWasm() must be awaited first!");
18112 const nativeResponseValue = wasm.TS_C2Tuple_OutPointCVec_MonitorUpdateIdZZ_free(_res);
18113 // debug statements here
18115 // void CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ _res);
18117 export function CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(_res: number): void {
18118 if(!isWasmInitialized) {
18119 throw new Error("initializeWasm() must be awaited first!");
18121 const nativeResponseValue = wasm.TS_CVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ_free(_res);
18122 // debug statements here
18124 // void CVec_PhantomRouteHintsZ_free(struct LDKCVec_PhantomRouteHintsZ _res);
18126 export function CVec_PhantomRouteHintsZ_free(_res: number): void {
18127 if(!isWasmInitialized) {
18128 throw new Error("initializeWasm() must be awaited first!");
18130 const nativeResponseValue = wasm.TS_CVec_PhantomRouteHintsZ_free(_res);
18131 // debug statements here
18133 // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_ok(struct LDKInvoice o);
18135 export function CResult_InvoiceSignOrCreationErrorZ_ok(o: bigint): bigint {
18136 if(!isWasmInitialized) {
18137 throw new Error("initializeWasm() must be awaited first!");
18139 const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_ok(o);
18140 return nativeResponseValue;
18142 // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_err(struct LDKSignOrCreationError e);
18144 export function CResult_InvoiceSignOrCreationErrorZ_err(e: bigint): bigint {
18145 if(!isWasmInitialized) {
18146 throw new Error("initializeWasm() must be awaited first!");
18148 const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_err(e);
18149 return nativeResponseValue;
18151 // bool CResult_InvoiceSignOrCreationErrorZ_is_ok(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR o);
18153 export function CResult_InvoiceSignOrCreationErrorZ_is_ok(o: bigint): boolean {
18154 if(!isWasmInitialized) {
18155 throw new Error("initializeWasm() must be awaited first!");
18157 const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_is_ok(o);
18158 return nativeResponseValue;
18160 // void CResult_InvoiceSignOrCreationErrorZ_free(struct LDKCResult_InvoiceSignOrCreationErrorZ _res);
18162 export function CResult_InvoiceSignOrCreationErrorZ_free(_res: bigint): void {
18163 if(!isWasmInitialized) {
18164 throw new Error("initializeWasm() must be awaited first!");
18166 const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_free(_res);
18167 // debug statements here
18169 // uint64_t CResult_InvoiceSignOrCreationErrorZ_clone_ptr(LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR arg);
18171 export function CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg: bigint): bigint {
18172 if(!isWasmInitialized) {
18173 throw new Error("initializeWasm() must be awaited first!");
18175 const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone_ptr(arg);
18176 return nativeResponseValue;
18178 // struct LDKCResult_InvoiceSignOrCreationErrorZ CResult_InvoiceSignOrCreationErrorZ_clone(const struct LDKCResult_InvoiceSignOrCreationErrorZ *NONNULL_PTR orig);
18180 export function CResult_InvoiceSignOrCreationErrorZ_clone(orig: bigint): bigint {
18181 if(!isWasmInitialized) {
18182 throw new Error("initializeWasm() must be awaited first!");
18184 const nativeResponseValue = wasm.TS_CResult_InvoiceSignOrCreationErrorZ_clone(orig);
18185 return nativeResponseValue;
18187 // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_ok(enum LDKSiPrefix o);
18189 export function CResult_SiPrefixParseErrorZ_ok(o: SiPrefix): bigint {
18190 if(!isWasmInitialized) {
18191 throw new Error("initializeWasm() must be awaited first!");
18193 const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_ok(o);
18194 return nativeResponseValue;
18196 // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_err(struct LDKParseError e);
18198 export function CResult_SiPrefixParseErrorZ_err(e: bigint): bigint {
18199 if(!isWasmInitialized) {
18200 throw new Error("initializeWasm() must be awaited first!");
18202 const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_err(e);
18203 return nativeResponseValue;
18205 // bool CResult_SiPrefixParseErrorZ_is_ok(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR o);
18207 export function CResult_SiPrefixParseErrorZ_is_ok(o: bigint): boolean {
18208 if(!isWasmInitialized) {
18209 throw new Error("initializeWasm() must be awaited first!");
18211 const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_is_ok(o);
18212 return nativeResponseValue;
18214 // void CResult_SiPrefixParseErrorZ_free(struct LDKCResult_SiPrefixParseErrorZ _res);
18216 export function CResult_SiPrefixParseErrorZ_free(_res: bigint): void {
18217 if(!isWasmInitialized) {
18218 throw new Error("initializeWasm() must be awaited first!");
18220 const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_free(_res);
18221 // debug statements here
18223 // uint64_t CResult_SiPrefixParseErrorZ_clone_ptr(LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR arg);
18225 export function CResult_SiPrefixParseErrorZ_clone_ptr(arg: bigint): bigint {
18226 if(!isWasmInitialized) {
18227 throw new Error("initializeWasm() must be awaited first!");
18229 const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_clone_ptr(arg);
18230 return nativeResponseValue;
18232 // struct LDKCResult_SiPrefixParseErrorZ CResult_SiPrefixParseErrorZ_clone(const struct LDKCResult_SiPrefixParseErrorZ *NONNULL_PTR orig);
18234 export function CResult_SiPrefixParseErrorZ_clone(orig: bigint): bigint {
18235 if(!isWasmInitialized) {
18236 throw new Error("initializeWasm() must be awaited first!");
18238 const nativeResponseValue = wasm.TS_CResult_SiPrefixParseErrorZ_clone(orig);
18239 return nativeResponseValue;
18241 // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_ok(struct LDKInvoice o);
18243 export function CResult_InvoiceParseOrSemanticErrorZ_ok(o: bigint): bigint {
18244 if(!isWasmInitialized) {
18245 throw new Error("initializeWasm() must be awaited first!");
18247 const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_ok(o);
18248 return nativeResponseValue;
18250 // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_err(struct LDKParseOrSemanticError e);
18252 export function CResult_InvoiceParseOrSemanticErrorZ_err(e: bigint): bigint {
18253 if(!isWasmInitialized) {
18254 throw new Error("initializeWasm() must be awaited first!");
18256 const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_err(e);
18257 return nativeResponseValue;
18259 // bool CResult_InvoiceParseOrSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR o);
18261 export function CResult_InvoiceParseOrSemanticErrorZ_is_ok(o: bigint): boolean {
18262 if(!isWasmInitialized) {
18263 throw new Error("initializeWasm() must be awaited first!");
18265 const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_is_ok(o);
18266 return nativeResponseValue;
18268 // void CResult_InvoiceParseOrSemanticErrorZ_free(struct LDKCResult_InvoiceParseOrSemanticErrorZ _res);
18270 export function CResult_InvoiceParseOrSemanticErrorZ_free(_res: bigint): void {
18271 if(!isWasmInitialized) {
18272 throw new Error("initializeWasm() must be awaited first!");
18274 const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_free(_res);
18275 // debug statements here
18277 // uint64_t CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR arg);
18279 export function CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(arg: bigint): bigint {
18280 if(!isWasmInitialized) {
18281 throw new Error("initializeWasm() must be awaited first!");
18283 const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_clone_ptr(arg);
18284 return nativeResponseValue;
18286 // struct LDKCResult_InvoiceParseOrSemanticErrorZ CResult_InvoiceParseOrSemanticErrorZ_clone(const struct LDKCResult_InvoiceParseOrSemanticErrorZ *NONNULL_PTR orig);
18288 export function CResult_InvoiceParseOrSemanticErrorZ_clone(orig: bigint): bigint {
18289 if(!isWasmInitialized) {
18290 throw new Error("initializeWasm() must be awaited first!");
18292 const nativeResponseValue = wasm.TS_CResult_InvoiceParseOrSemanticErrorZ_clone(orig);
18293 return nativeResponseValue;
18295 // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_ok(struct LDKSignedRawInvoice o);
18297 export function CResult_SignedRawInvoiceParseErrorZ_ok(o: bigint): bigint {
18298 if(!isWasmInitialized) {
18299 throw new Error("initializeWasm() must be awaited first!");
18301 const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_ok(o);
18302 return nativeResponseValue;
18304 // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_err(struct LDKParseError e);
18306 export function CResult_SignedRawInvoiceParseErrorZ_err(e: bigint): bigint {
18307 if(!isWasmInitialized) {
18308 throw new Error("initializeWasm() must be awaited first!");
18310 const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_err(e);
18311 return nativeResponseValue;
18313 // bool CResult_SignedRawInvoiceParseErrorZ_is_ok(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR o);
18315 export function CResult_SignedRawInvoiceParseErrorZ_is_ok(o: bigint): boolean {
18316 if(!isWasmInitialized) {
18317 throw new Error("initializeWasm() must be awaited first!");
18319 const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_is_ok(o);
18320 return nativeResponseValue;
18322 // void CResult_SignedRawInvoiceParseErrorZ_free(struct LDKCResult_SignedRawInvoiceParseErrorZ _res);
18324 export function CResult_SignedRawInvoiceParseErrorZ_free(_res: bigint): void {
18325 if(!isWasmInitialized) {
18326 throw new Error("initializeWasm() must be awaited first!");
18328 const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_free(_res);
18329 // debug statements here
18331 // uint64_t CResult_SignedRawInvoiceParseErrorZ_clone_ptr(LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR arg);
18333 export function CResult_SignedRawInvoiceParseErrorZ_clone_ptr(arg: bigint): bigint {
18334 if(!isWasmInitialized) {
18335 throw new Error("initializeWasm() must be awaited first!");
18337 const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_clone_ptr(arg);
18338 return nativeResponseValue;
18340 // struct LDKCResult_SignedRawInvoiceParseErrorZ CResult_SignedRawInvoiceParseErrorZ_clone(const struct LDKCResult_SignedRawInvoiceParseErrorZ *NONNULL_PTR orig);
18342 export function CResult_SignedRawInvoiceParseErrorZ_clone(orig: bigint): bigint {
18343 if(!isWasmInitialized) {
18344 throw new Error("initializeWasm() must be awaited first!");
18346 const nativeResponseValue = wasm.TS_CResult_SignedRawInvoiceParseErrorZ_clone(orig);
18347 return nativeResponseValue;
18349 // uint64_t C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR arg);
18351 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg: bigint): bigint {
18352 if(!isWasmInitialized) {
18353 throw new Error("initializeWasm() must be awaited first!");
18355 const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone_ptr(arg);
18356 return nativeResponseValue;
18358 // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(const struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ *NONNULL_PTR orig);
18360 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig: bigint): bigint {
18361 if(!isWasmInitialized) {
18362 throw new Error("initializeWasm() must be awaited first!");
18364 const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_clone(orig);
18365 return nativeResponseValue;
18367 // struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(struct LDKRawInvoice a, struct LDKThirtyTwoBytes b, struct LDKInvoiceSignature c);
18369 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a: bigint, b: number, c: bigint): bigint {
18370 if(!isWasmInitialized) {
18371 throw new Error("initializeWasm() must be awaited first!");
18373 const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_new(a, b, c);
18374 return nativeResponseValue;
18376 // void C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ _res);
18378 export function C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res: bigint): void {
18379 if(!isWasmInitialized) {
18380 throw new Error("initializeWasm() must be awaited first!");
18382 const nativeResponseValue = wasm.TS_C3Tuple_RawInvoice_u832InvoiceSignatureZ_free(_res);
18383 // debug statements here
18385 // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_ok(struct LDKPayeePubKey o);
18387 export function CResult_PayeePubKeyErrorZ_ok(o: bigint): bigint {
18388 if(!isWasmInitialized) {
18389 throw new Error("initializeWasm() must be awaited first!");
18391 const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_ok(o);
18392 return nativeResponseValue;
18394 // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_err(enum LDKSecp256k1Error e);
18396 export function CResult_PayeePubKeyErrorZ_err(e: Secp256k1Error): bigint {
18397 if(!isWasmInitialized) {
18398 throw new Error("initializeWasm() must be awaited first!");
18400 const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_err(e);
18401 return nativeResponseValue;
18403 // bool CResult_PayeePubKeyErrorZ_is_ok(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR o);
18405 export function CResult_PayeePubKeyErrorZ_is_ok(o: bigint): boolean {
18406 if(!isWasmInitialized) {
18407 throw new Error("initializeWasm() must be awaited first!");
18409 const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_is_ok(o);
18410 return nativeResponseValue;
18412 // void CResult_PayeePubKeyErrorZ_free(struct LDKCResult_PayeePubKeyErrorZ _res);
18414 export function CResult_PayeePubKeyErrorZ_free(_res: bigint): void {
18415 if(!isWasmInitialized) {
18416 throw new Error("initializeWasm() must be awaited first!");
18418 const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_free(_res);
18419 // debug statements here
18421 // uint64_t CResult_PayeePubKeyErrorZ_clone_ptr(LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR arg);
18423 export function CResult_PayeePubKeyErrorZ_clone_ptr(arg: bigint): bigint {
18424 if(!isWasmInitialized) {
18425 throw new Error("initializeWasm() must be awaited first!");
18427 const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone_ptr(arg);
18428 return nativeResponseValue;
18430 // struct LDKCResult_PayeePubKeyErrorZ CResult_PayeePubKeyErrorZ_clone(const struct LDKCResult_PayeePubKeyErrorZ *NONNULL_PTR orig);
18432 export function CResult_PayeePubKeyErrorZ_clone(orig: bigint): bigint {
18433 if(!isWasmInitialized) {
18434 throw new Error("initializeWasm() must be awaited first!");
18436 const nativeResponseValue = wasm.TS_CResult_PayeePubKeyErrorZ_clone(orig);
18437 return nativeResponseValue;
18439 // void CVec_PrivateRouteZ_free(struct LDKCVec_PrivateRouteZ _res);
18441 export function CVec_PrivateRouteZ_free(_res: number): void {
18442 if(!isWasmInitialized) {
18443 throw new Error("initializeWasm() must be awaited first!");
18445 const nativeResponseValue = wasm.TS_CVec_PrivateRouteZ_free(_res);
18446 // debug statements here
18448 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_ok(struct LDKPositiveTimestamp o);
18450 export function CResult_PositiveTimestampCreationErrorZ_ok(o: bigint): bigint {
18451 if(!isWasmInitialized) {
18452 throw new Error("initializeWasm() must be awaited first!");
18454 const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_ok(o);
18455 return nativeResponseValue;
18457 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_err(enum LDKCreationError e);
18459 export function CResult_PositiveTimestampCreationErrorZ_err(e: CreationError): bigint {
18460 if(!isWasmInitialized) {
18461 throw new Error("initializeWasm() must be awaited first!");
18463 const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_err(e);
18464 return nativeResponseValue;
18466 // bool CResult_PositiveTimestampCreationErrorZ_is_ok(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR o);
18468 export function CResult_PositiveTimestampCreationErrorZ_is_ok(o: bigint): boolean {
18469 if(!isWasmInitialized) {
18470 throw new Error("initializeWasm() must be awaited first!");
18472 const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_is_ok(o);
18473 return nativeResponseValue;
18475 // void CResult_PositiveTimestampCreationErrorZ_free(struct LDKCResult_PositiveTimestampCreationErrorZ _res);
18477 export function CResult_PositiveTimestampCreationErrorZ_free(_res: bigint): void {
18478 if(!isWasmInitialized) {
18479 throw new Error("initializeWasm() must be awaited first!");
18481 const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_free(_res);
18482 // debug statements here
18484 // uint64_t CResult_PositiveTimestampCreationErrorZ_clone_ptr(LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR arg);
18486 export function CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg: bigint): bigint {
18487 if(!isWasmInitialized) {
18488 throw new Error("initializeWasm() must be awaited first!");
18490 const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone_ptr(arg);
18491 return nativeResponseValue;
18493 // struct LDKCResult_PositiveTimestampCreationErrorZ CResult_PositiveTimestampCreationErrorZ_clone(const struct LDKCResult_PositiveTimestampCreationErrorZ *NONNULL_PTR orig);
18495 export function CResult_PositiveTimestampCreationErrorZ_clone(orig: bigint): bigint {
18496 if(!isWasmInitialized) {
18497 throw new Error("initializeWasm() must be awaited first!");
18499 const nativeResponseValue = wasm.TS_CResult_PositiveTimestampCreationErrorZ_clone(orig);
18500 return nativeResponseValue;
18502 // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_ok(void);
18504 export function CResult_NoneSemanticErrorZ_ok(): bigint {
18505 if(!isWasmInitialized) {
18506 throw new Error("initializeWasm() must be awaited first!");
18508 const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_ok();
18509 return nativeResponseValue;
18511 // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_err(enum LDKSemanticError e);
18513 export function CResult_NoneSemanticErrorZ_err(e: SemanticError): bigint {
18514 if(!isWasmInitialized) {
18515 throw new Error("initializeWasm() must be awaited first!");
18517 const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_err(e);
18518 return nativeResponseValue;
18520 // bool CResult_NoneSemanticErrorZ_is_ok(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR o);
18522 export function CResult_NoneSemanticErrorZ_is_ok(o: bigint): boolean {
18523 if(!isWasmInitialized) {
18524 throw new Error("initializeWasm() must be awaited first!");
18526 const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_is_ok(o);
18527 return nativeResponseValue;
18529 // void CResult_NoneSemanticErrorZ_free(struct LDKCResult_NoneSemanticErrorZ _res);
18531 export function CResult_NoneSemanticErrorZ_free(_res: bigint): void {
18532 if(!isWasmInitialized) {
18533 throw new Error("initializeWasm() must be awaited first!");
18535 const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_free(_res);
18536 // debug statements here
18538 // uint64_t CResult_NoneSemanticErrorZ_clone_ptr(LDKCResult_NoneSemanticErrorZ *NONNULL_PTR arg);
18540 export function CResult_NoneSemanticErrorZ_clone_ptr(arg: bigint): bigint {
18541 if(!isWasmInitialized) {
18542 throw new Error("initializeWasm() must be awaited first!");
18544 const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone_ptr(arg);
18545 return nativeResponseValue;
18547 // struct LDKCResult_NoneSemanticErrorZ CResult_NoneSemanticErrorZ_clone(const struct LDKCResult_NoneSemanticErrorZ *NONNULL_PTR orig);
18549 export function CResult_NoneSemanticErrorZ_clone(orig: bigint): bigint {
18550 if(!isWasmInitialized) {
18551 throw new Error("initializeWasm() must be awaited first!");
18553 const nativeResponseValue = wasm.TS_CResult_NoneSemanticErrorZ_clone(orig);
18554 return nativeResponseValue;
18556 // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_ok(struct LDKInvoice o);
18558 export function CResult_InvoiceSemanticErrorZ_ok(o: bigint): bigint {
18559 if(!isWasmInitialized) {
18560 throw new Error("initializeWasm() must be awaited first!");
18562 const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_ok(o);
18563 return nativeResponseValue;
18565 // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_err(enum LDKSemanticError e);
18567 export function CResult_InvoiceSemanticErrorZ_err(e: SemanticError): bigint {
18568 if(!isWasmInitialized) {
18569 throw new Error("initializeWasm() must be awaited first!");
18571 const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_err(e);
18572 return nativeResponseValue;
18574 // bool CResult_InvoiceSemanticErrorZ_is_ok(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR o);
18576 export function CResult_InvoiceSemanticErrorZ_is_ok(o: bigint): boolean {
18577 if(!isWasmInitialized) {
18578 throw new Error("initializeWasm() must be awaited first!");
18580 const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_is_ok(o);
18581 return nativeResponseValue;
18583 // void CResult_InvoiceSemanticErrorZ_free(struct LDKCResult_InvoiceSemanticErrorZ _res);
18585 export function CResult_InvoiceSemanticErrorZ_free(_res: bigint): void {
18586 if(!isWasmInitialized) {
18587 throw new Error("initializeWasm() must be awaited first!");
18589 const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_free(_res);
18590 // debug statements here
18592 // uint64_t CResult_InvoiceSemanticErrorZ_clone_ptr(LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR arg);
18594 export function CResult_InvoiceSemanticErrorZ_clone_ptr(arg: bigint): bigint {
18595 if(!isWasmInitialized) {
18596 throw new Error("initializeWasm() must be awaited first!");
18598 const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone_ptr(arg);
18599 return nativeResponseValue;
18601 // struct LDKCResult_InvoiceSemanticErrorZ CResult_InvoiceSemanticErrorZ_clone(const struct LDKCResult_InvoiceSemanticErrorZ *NONNULL_PTR orig);
18603 export function CResult_InvoiceSemanticErrorZ_clone(orig: bigint): bigint {
18604 if(!isWasmInitialized) {
18605 throw new Error("initializeWasm() must be awaited first!");
18607 const nativeResponseValue = wasm.TS_CResult_InvoiceSemanticErrorZ_clone(orig);
18608 return nativeResponseValue;
18610 // void CVec_AddressZ_free(struct LDKCVec_AddressZ _res);
18612 export function CVec_AddressZ_free(_res: number): void {
18613 if(!isWasmInitialized) {
18614 throw new Error("initializeWasm() must be awaited first!");
18616 const nativeResponseValue = wasm.TS_CVec_AddressZ_free(_res);
18617 // debug statements here
18619 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_ok(struct LDKDescription o);
18621 export function CResult_DescriptionCreationErrorZ_ok(o: bigint): bigint {
18622 if(!isWasmInitialized) {
18623 throw new Error("initializeWasm() must be awaited first!");
18625 const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_ok(o);
18626 return nativeResponseValue;
18628 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_err(enum LDKCreationError e);
18630 export function CResult_DescriptionCreationErrorZ_err(e: CreationError): bigint {
18631 if(!isWasmInitialized) {
18632 throw new Error("initializeWasm() must be awaited first!");
18634 const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_err(e);
18635 return nativeResponseValue;
18637 // bool CResult_DescriptionCreationErrorZ_is_ok(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR o);
18639 export function CResult_DescriptionCreationErrorZ_is_ok(o: bigint): boolean {
18640 if(!isWasmInitialized) {
18641 throw new Error("initializeWasm() must be awaited first!");
18643 const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_is_ok(o);
18644 return nativeResponseValue;
18646 // void CResult_DescriptionCreationErrorZ_free(struct LDKCResult_DescriptionCreationErrorZ _res);
18648 export function CResult_DescriptionCreationErrorZ_free(_res: bigint): void {
18649 if(!isWasmInitialized) {
18650 throw new Error("initializeWasm() must be awaited first!");
18652 const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_free(_res);
18653 // debug statements here
18655 // uint64_t CResult_DescriptionCreationErrorZ_clone_ptr(LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR arg);
18657 export function CResult_DescriptionCreationErrorZ_clone_ptr(arg: bigint): bigint {
18658 if(!isWasmInitialized) {
18659 throw new Error("initializeWasm() must be awaited first!");
18661 const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone_ptr(arg);
18662 return nativeResponseValue;
18664 // struct LDKCResult_DescriptionCreationErrorZ CResult_DescriptionCreationErrorZ_clone(const struct LDKCResult_DescriptionCreationErrorZ *NONNULL_PTR orig);
18666 export function CResult_DescriptionCreationErrorZ_clone(orig: bigint): bigint {
18667 if(!isWasmInitialized) {
18668 throw new Error("initializeWasm() must be awaited first!");
18670 const nativeResponseValue = wasm.TS_CResult_DescriptionCreationErrorZ_clone(orig);
18671 return nativeResponseValue;
18673 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_ok(struct LDKPrivateRoute o);
18675 export function CResult_PrivateRouteCreationErrorZ_ok(o: bigint): bigint {
18676 if(!isWasmInitialized) {
18677 throw new Error("initializeWasm() must be awaited first!");
18679 const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_ok(o);
18680 return nativeResponseValue;
18682 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_err(enum LDKCreationError e);
18684 export function CResult_PrivateRouteCreationErrorZ_err(e: CreationError): bigint {
18685 if(!isWasmInitialized) {
18686 throw new Error("initializeWasm() must be awaited first!");
18688 const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_err(e);
18689 return nativeResponseValue;
18691 // bool CResult_PrivateRouteCreationErrorZ_is_ok(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR o);
18693 export function CResult_PrivateRouteCreationErrorZ_is_ok(o: bigint): boolean {
18694 if(!isWasmInitialized) {
18695 throw new Error("initializeWasm() must be awaited first!");
18697 const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_is_ok(o);
18698 return nativeResponseValue;
18700 // void CResult_PrivateRouteCreationErrorZ_free(struct LDKCResult_PrivateRouteCreationErrorZ _res);
18702 export function CResult_PrivateRouteCreationErrorZ_free(_res: bigint): void {
18703 if(!isWasmInitialized) {
18704 throw new Error("initializeWasm() must be awaited first!");
18706 const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_free(_res);
18707 // debug statements here
18709 // uint64_t CResult_PrivateRouteCreationErrorZ_clone_ptr(LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR arg);
18711 export function CResult_PrivateRouteCreationErrorZ_clone_ptr(arg: bigint): bigint {
18712 if(!isWasmInitialized) {
18713 throw new Error("initializeWasm() must be awaited first!");
18715 const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone_ptr(arg);
18716 return nativeResponseValue;
18718 // struct LDKCResult_PrivateRouteCreationErrorZ CResult_PrivateRouteCreationErrorZ_clone(const struct LDKCResult_PrivateRouteCreationErrorZ *NONNULL_PTR orig);
18720 export function CResult_PrivateRouteCreationErrorZ_clone(orig: bigint): bigint {
18721 if(!isWasmInitialized) {
18722 throw new Error("initializeWasm() must be awaited first!");
18724 const nativeResponseValue = wasm.TS_CResult_PrivateRouteCreationErrorZ_clone(orig);
18725 return nativeResponseValue;
18727 // void APIError_free(struct LDKAPIError this_ptr);
18729 export function APIError_free(this_ptr: bigint): void {
18730 if(!isWasmInitialized) {
18731 throw new Error("initializeWasm() must be awaited first!");
18733 const nativeResponseValue = wasm.TS_APIError_free(this_ptr);
18734 // debug statements here
18736 // uint64_t APIError_clone_ptr(LDKAPIError *NONNULL_PTR arg);
18738 export function APIError_clone_ptr(arg: bigint): bigint {
18739 if(!isWasmInitialized) {
18740 throw new Error("initializeWasm() must be awaited first!");
18742 const nativeResponseValue = wasm.TS_APIError_clone_ptr(arg);
18743 return nativeResponseValue;
18745 // struct LDKAPIError APIError_clone(const struct LDKAPIError *NONNULL_PTR orig);
18747 export function APIError_clone(orig: bigint): bigint {
18748 if(!isWasmInitialized) {
18749 throw new Error("initializeWasm() must be awaited first!");
18751 const nativeResponseValue = wasm.TS_APIError_clone(orig);
18752 return nativeResponseValue;
18754 // struct LDKAPIError APIError_apimisuse_error(struct LDKStr err);
18756 export function APIError_apimisuse_error(err: number): bigint {
18757 if(!isWasmInitialized) {
18758 throw new Error("initializeWasm() must be awaited first!");
18760 const nativeResponseValue = wasm.TS_APIError_apimisuse_error(err);
18761 return nativeResponseValue;
18763 // struct LDKAPIError APIError_fee_rate_too_high(struct LDKStr err, uint32_t feerate);
18765 export function APIError_fee_rate_too_high(err: number, feerate: number): bigint {
18766 if(!isWasmInitialized) {
18767 throw new Error("initializeWasm() must be awaited first!");
18769 const nativeResponseValue = wasm.TS_APIError_fee_rate_too_high(err, feerate);
18770 return nativeResponseValue;
18772 // struct LDKAPIError APIError_invalid_route(struct LDKStr err);
18774 export function APIError_invalid_route(err: number): bigint {
18775 if(!isWasmInitialized) {
18776 throw new Error("initializeWasm() must be awaited first!");
18778 const nativeResponseValue = wasm.TS_APIError_invalid_route(err);
18779 return nativeResponseValue;
18781 // struct LDKAPIError APIError_channel_unavailable(struct LDKStr err);
18783 export function APIError_channel_unavailable(err: number): bigint {
18784 if(!isWasmInitialized) {
18785 throw new Error("initializeWasm() must be awaited first!");
18787 const nativeResponseValue = wasm.TS_APIError_channel_unavailable(err);
18788 return nativeResponseValue;
18790 // struct LDKAPIError APIError_monitor_update_in_progress(void);
18792 export function APIError_monitor_update_in_progress(): bigint {
18793 if(!isWasmInitialized) {
18794 throw new Error("initializeWasm() must be awaited first!");
18796 const nativeResponseValue = wasm.TS_APIError_monitor_update_in_progress();
18797 return nativeResponseValue;
18799 // struct LDKAPIError APIError_incompatible_shutdown_script(struct LDKShutdownScript script);
18801 export function APIError_incompatible_shutdown_script(script: bigint): bigint {
18802 if(!isWasmInitialized) {
18803 throw new Error("initializeWasm() must be awaited first!");
18805 const nativeResponseValue = wasm.TS_APIError_incompatible_shutdown_script(script);
18806 return nativeResponseValue;
18808 // bool APIError_eq(const struct LDKAPIError *NONNULL_PTR a, const struct LDKAPIError *NONNULL_PTR b);
18810 export function APIError_eq(a: bigint, b: bigint): boolean {
18811 if(!isWasmInitialized) {
18812 throw new Error("initializeWasm() must be awaited first!");
18814 const nativeResponseValue = wasm.TS_APIError_eq(a, b);
18815 return nativeResponseValue;
18817 // struct LDKCVec_u8Z APIError_write(const struct LDKAPIError *NONNULL_PTR obj);
18819 export function APIError_write(obj: bigint): number {
18820 if(!isWasmInitialized) {
18821 throw new Error("initializeWasm() must be awaited first!");
18823 const nativeResponseValue = wasm.TS_APIError_write(obj);
18824 return nativeResponseValue;
18826 // struct LDKCResult_COption_APIErrorZDecodeErrorZ APIError_read(struct LDKu8slice ser);
18828 export function APIError_read(ser: number): bigint {
18829 if(!isWasmInitialized) {
18830 throw new Error("initializeWasm() must be awaited first!");
18832 const nativeResponseValue = wasm.TS_APIError_read(ser);
18833 return nativeResponseValue;
18835 // void BigSize_free(struct LDKBigSize this_obj);
18837 export function BigSize_free(this_obj: bigint): void {
18838 if(!isWasmInitialized) {
18839 throw new Error("initializeWasm() must be awaited first!");
18841 const nativeResponseValue = wasm.TS_BigSize_free(this_obj);
18842 // debug statements here
18844 // uint64_t BigSize_get_a(const struct LDKBigSize *NONNULL_PTR this_ptr);
18846 export function BigSize_get_a(this_ptr: bigint): bigint {
18847 if(!isWasmInitialized) {
18848 throw new Error("initializeWasm() must be awaited first!");
18850 const nativeResponseValue = wasm.TS_BigSize_get_a(this_ptr);
18851 return nativeResponseValue;
18853 // void BigSize_set_a(struct LDKBigSize *NONNULL_PTR this_ptr, uint64_t val);
18855 export function BigSize_set_a(this_ptr: bigint, val: bigint): void {
18856 if(!isWasmInitialized) {
18857 throw new Error("initializeWasm() must be awaited first!");
18859 const nativeResponseValue = wasm.TS_BigSize_set_a(this_ptr, val);
18860 // debug statements here
18862 // MUST_USE_RES struct LDKBigSize BigSize_new(uint64_t a_arg);
18864 export function BigSize_new(a_arg: bigint): bigint {
18865 if(!isWasmInitialized) {
18866 throw new Error("initializeWasm() must be awaited first!");
18868 const nativeResponseValue = wasm.TS_BigSize_new(a_arg);
18869 return nativeResponseValue;
18871 // void Hostname_free(struct LDKHostname this_obj);
18873 export function Hostname_free(this_obj: bigint): void {
18874 if(!isWasmInitialized) {
18875 throw new Error("initializeWasm() must be awaited first!");
18877 const nativeResponseValue = wasm.TS_Hostname_free(this_obj);
18878 // debug statements here
18880 // uint64_t Hostname_clone_ptr(LDKHostname *NONNULL_PTR arg);
18882 export function Hostname_clone_ptr(arg: bigint): bigint {
18883 if(!isWasmInitialized) {
18884 throw new Error("initializeWasm() must be awaited first!");
18886 const nativeResponseValue = wasm.TS_Hostname_clone_ptr(arg);
18887 return nativeResponseValue;
18889 // struct LDKHostname Hostname_clone(const struct LDKHostname *NONNULL_PTR orig);
18891 export function Hostname_clone(orig: bigint): bigint {
18892 if(!isWasmInitialized) {
18893 throw new Error("initializeWasm() must be awaited first!");
18895 const nativeResponseValue = wasm.TS_Hostname_clone(orig);
18896 return nativeResponseValue;
18898 // bool Hostname_eq(const struct LDKHostname *NONNULL_PTR a, const struct LDKHostname *NONNULL_PTR b);
18900 export function Hostname_eq(a: bigint, b: bigint): boolean {
18901 if(!isWasmInitialized) {
18902 throw new Error("initializeWasm() must be awaited first!");
18904 const nativeResponseValue = wasm.TS_Hostname_eq(a, b);
18905 return nativeResponseValue;
18907 // MUST_USE_RES uint8_t Hostname_len(const struct LDKHostname *NONNULL_PTR this_arg);
18909 export function Hostname_len(this_arg: bigint): number {
18910 if(!isWasmInitialized) {
18911 throw new Error("initializeWasm() must be awaited first!");
18913 const nativeResponseValue = wasm.TS_Hostname_len(this_arg);
18914 return nativeResponseValue;
18916 // struct LDKCResult_StringErrorZ sign(struct LDKu8slice msg, const uint8_t (*sk)[32]);
18918 export function sign(msg: number, sk: number): bigint {
18919 if(!isWasmInitialized) {
18920 throw new Error("initializeWasm() must be awaited first!");
18922 const nativeResponseValue = wasm.TS_sign(msg, sk);
18923 return nativeResponseValue;
18925 // struct LDKCResult_PublicKeyErrorZ recover_pk(struct LDKu8slice msg, struct LDKStr sig);
18927 export function recover_pk(msg: number, sig: number): bigint {
18928 if(!isWasmInitialized) {
18929 throw new Error("initializeWasm() must be awaited first!");
18931 const nativeResponseValue = wasm.TS_recover_pk(msg, sig);
18932 return nativeResponseValue;
18934 // bool verify(struct LDKu8slice msg, struct LDKStr sig, struct LDKPublicKey pk);
18936 export function verify(msg: number, sig: number, pk: number): boolean {
18937 if(!isWasmInitialized) {
18938 throw new Error("initializeWasm() must be awaited first!");
18940 const nativeResponseValue = wasm.TS_verify(msg, sig, pk);
18941 return nativeResponseValue;
18943 // struct LDKCVec_u8Z construct_invoice_preimage(struct LDKu8slice hrp_bytes, struct LDKCVec_U5Z data_without_signature);
18945 export function construct_invoice_preimage(hrp_bytes: number, data_without_signature: number): number {
18946 if(!isWasmInitialized) {
18947 throw new Error("initializeWasm() must be awaited first!");
18949 const nativeResponseValue = wasm.TS_construct_invoice_preimage(hrp_bytes, data_without_signature);
18950 return nativeResponseValue;
18952 // void Persister_free(struct LDKPersister this_ptr);
18954 export function Persister_free(this_ptr: bigint): void {
18955 if(!isWasmInitialized) {
18956 throw new Error("initializeWasm() must be awaited first!");
18958 const nativeResponseValue = wasm.TS_Persister_free(this_ptr);
18959 // debug statements here
18961 // void UntrustedString_free(struct LDKUntrustedString this_obj);
18963 export function UntrustedString_free(this_obj: bigint): void {
18964 if(!isWasmInitialized) {
18965 throw new Error("initializeWasm() must be awaited first!");
18967 const nativeResponseValue = wasm.TS_UntrustedString_free(this_obj);
18968 // debug statements here
18970 // struct LDKStr UntrustedString_get_a(const struct LDKUntrustedString *NONNULL_PTR this_ptr);
18972 export function UntrustedString_get_a(this_ptr: bigint): number {
18973 if(!isWasmInitialized) {
18974 throw new Error("initializeWasm() must be awaited first!");
18976 const nativeResponseValue = wasm.TS_UntrustedString_get_a(this_ptr);
18977 return nativeResponseValue;
18979 // void UntrustedString_set_a(struct LDKUntrustedString *NONNULL_PTR this_ptr, struct LDKStr val);
18981 export function UntrustedString_set_a(this_ptr: bigint, val: number): void {
18982 if(!isWasmInitialized) {
18983 throw new Error("initializeWasm() must be awaited first!");
18985 const nativeResponseValue = wasm.TS_UntrustedString_set_a(this_ptr, val);
18986 // debug statements here
18988 // MUST_USE_RES struct LDKUntrustedString UntrustedString_new(struct LDKStr a_arg);
18990 export function UntrustedString_new(a_arg: number): bigint {
18991 if(!isWasmInitialized) {
18992 throw new Error("initializeWasm() must be awaited first!");
18994 const nativeResponseValue = wasm.TS_UntrustedString_new(a_arg);
18995 return nativeResponseValue;
18997 // uint64_t UntrustedString_clone_ptr(LDKUntrustedString *NONNULL_PTR arg);
18999 export function UntrustedString_clone_ptr(arg: bigint): bigint {
19000 if(!isWasmInitialized) {
19001 throw new Error("initializeWasm() must be awaited first!");
19003 const nativeResponseValue = wasm.TS_UntrustedString_clone_ptr(arg);
19004 return nativeResponseValue;
19006 // struct LDKUntrustedString UntrustedString_clone(const struct LDKUntrustedString *NONNULL_PTR orig);
19008 export function UntrustedString_clone(orig: bigint): bigint {
19009 if(!isWasmInitialized) {
19010 throw new Error("initializeWasm() must be awaited first!");
19012 const nativeResponseValue = wasm.TS_UntrustedString_clone(orig);
19013 return nativeResponseValue;
19015 // bool UntrustedString_eq(const struct LDKUntrustedString *NONNULL_PTR a, const struct LDKUntrustedString *NONNULL_PTR b);
19017 export function UntrustedString_eq(a: bigint, b: bigint): boolean {
19018 if(!isWasmInitialized) {
19019 throw new Error("initializeWasm() must be awaited first!");
19021 const nativeResponseValue = wasm.TS_UntrustedString_eq(a, b);
19022 return nativeResponseValue;
19024 // struct LDKCVec_u8Z UntrustedString_write(const struct LDKUntrustedString *NONNULL_PTR obj);
19026 export function UntrustedString_write(obj: bigint): number {
19027 if(!isWasmInitialized) {
19028 throw new Error("initializeWasm() must be awaited first!");
19030 const nativeResponseValue = wasm.TS_UntrustedString_write(obj);
19031 return nativeResponseValue;
19033 // struct LDKCResult_UntrustedStringDecodeErrorZ UntrustedString_read(struct LDKu8slice ser);
19035 export function UntrustedString_read(ser: number): bigint {
19036 if(!isWasmInitialized) {
19037 throw new Error("initializeWasm() must be awaited first!");
19039 const nativeResponseValue = wasm.TS_UntrustedString_read(ser);
19040 return nativeResponseValue;
19042 // void PrintableString_free(struct LDKPrintableString this_obj);
19044 export function PrintableString_free(this_obj: bigint): void {
19045 if(!isWasmInitialized) {
19046 throw new Error("initializeWasm() must be awaited first!");
19048 const nativeResponseValue = wasm.TS_PrintableString_free(this_obj);
19049 // debug statements here
19051 // struct LDKStr PrintableString_get_a(const struct LDKPrintableString *NONNULL_PTR this_ptr);
19053 export function PrintableString_get_a(this_ptr: bigint): number {
19054 if(!isWasmInitialized) {
19055 throw new Error("initializeWasm() must be awaited first!");
19057 const nativeResponseValue = wasm.TS_PrintableString_get_a(this_ptr);
19058 return nativeResponseValue;
19060 // void PrintableString_set_a(struct LDKPrintableString *NONNULL_PTR this_ptr, struct LDKStr val);
19062 export function PrintableString_set_a(this_ptr: bigint, val: number): void {
19063 if(!isWasmInitialized) {
19064 throw new Error("initializeWasm() must be awaited first!");
19066 const nativeResponseValue = wasm.TS_PrintableString_set_a(this_ptr, val);
19067 // debug statements here
19069 // MUST_USE_RES struct LDKPrintableString PrintableString_new(struct LDKStr a_arg);
19071 export function PrintableString_new(a_arg: number): bigint {
19072 if(!isWasmInitialized) {
19073 throw new Error("initializeWasm() must be awaited first!");
19075 const nativeResponseValue = wasm.TS_PrintableString_new(a_arg);
19076 return nativeResponseValue;
19078 // void FutureCallback_free(struct LDKFutureCallback this_ptr);
19080 export function FutureCallback_free(this_ptr: bigint): void {
19081 if(!isWasmInitialized) {
19082 throw new Error("initializeWasm() must be awaited first!");
19084 const nativeResponseValue = wasm.TS_FutureCallback_free(this_ptr);
19085 // debug statements here
19087 // void Future_free(struct LDKFuture this_obj);
19089 export function Future_free(this_obj: bigint): void {
19090 if(!isWasmInitialized) {
19091 throw new Error("initializeWasm() must be awaited first!");
19093 const nativeResponseValue = wasm.TS_Future_free(this_obj);
19094 // debug statements here
19096 // uint64_t Future_clone_ptr(LDKFuture *NONNULL_PTR arg);
19098 export function Future_clone_ptr(arg: bigint): bigint {
19099 if(!isWasmInitialized) {
19100 throw new Error("initializeWasm() must be awaited first!");
19102 const nativeResponseValue = wasm.TS_Future_clone_ptr(arg);
19103 return nativeResponseValue;
19105 // struct LDKFuture Future_clone(const struct LDKFuture *NONNULL_PTR orig);
19107 export function Future_clone(orig: bigint): bigint {
19108 if(!isWasmInitialized) {
19109 throw new Error("initializeWasm() must be awaited first!");
19111 const nativeResponseValue = wasm.TS_Future_clone(orig);
19112 return nativeResponseValue;
19114 // void Future_register_callback_fn(const struct LDKFuture *NONNULL_PTR this_arg, struct LDKFutureCallback callback);
19116 export function Future_register_callback_fn(this_arg: bigint, callback: bigint): void {
19117 if(!isWasmInitialized) {
19118 throw new Error("initializeWasm() must be awaited first!");
19120 const nativeResponseValue = wasm.TS_Future_register_callback_fn(this_arg, callback);
19121 // debug statements here
19123 // enum LDKLevel Level_clone(const enum LDKLevel *NONNULL_PTR orig);
19125 export function Level_clone(orig: bigint): Level {
19126 if(!isWasmInitialized) {
19127 throw new Error("initializeWasm() must be awaited first!");
19129 const nativeResponseValue = wasm.TS_Level_clone(orig);
19130 return nativeResponseValue;
19132 // enum LDKLevel Level_gossip(void);
19134 export function Level_gossip(): Level {
19135 if(!isWasmInitialized) {
19136 throw new Error("initializeWasm() must be awaited first!");
19138 const nativeResponseValue = wasm.TS_Level_gossip();
19139 return nativeResponseValue;
19141 // enum LDKLevel Level_trace(void);
19143 export function Level_trace(): Level {
19144 if(!isWasmInitialized) {
19145 throw new Error("initializeWasm() must be awaited first!");
19147 const nativeResponseValue = wasm.TS_Level_trace();
19148 return nativeResponseValue;
19150 // enum LDKLevel Level_debug(void);
19152 export function Level_debug(): Level {
19153 if(!isWasmInitialized) {
19154 throw new Error("initializeWasm() must be awaited first!");
19156 const nativeResponseValue = wasm.TS_Level_debug();
19157 return nativeResponseValue;
19159 // enum LDKLevel Level_info(void);
19161 export function Level_info(): Level {
19162 if(!isWasmInitialized) {
19163 throw new Error("initializeWasm() must be awaited first!");
19165 const nativeResponseValue = wasm.TS_Level_info();
19166 return nativeResponseValue;
19168 // enum LDKLevel Level_warn(void);
19170 export function Level_warn(): Level {
19171 if(!isWasmInitialized) {
19172 throw new Error("initializeWasm() must be awaited first!");
19174 const nativeResponseValue = wasm.TS_Level_warn();
19175 return nativeResponseValue;
19177 // enum LDKLevel Level_error(void);
19179 export function Level_error(): Level {
19180 if(!isWasmInitialized) {
19181 throw new Error("initializeWasm() must be awaited first!");
19183 const nativeResponseValue = wasm.TS_Level_error();
19184 return nativeResponseValue;
19186 // bool Level_eq(const enum LDKLevel *NONNULL_PTR a, const enum LDKLevel *NONNULL_PTR b);
19188 export function Level_eq(a: bigint, b: bigint): boolean {
19189 if(!isWasmInitialized) {
19190 throw new Error("initializeWasm() must be awaited first!");
19192 const nativeResponseValue = wasm.TS_Level_eq(a, b);
19193 return nativeResponseValue;
19195 // uint64_t Level_hash(const enum LDKLevel *NONNULL_PTR o);
19197 export function Level_hash(o: bigint): bigint {
19198 if(!isWasmInitialized) {
19199 throw new Error("initializeWasm() must be awaited first!");
19201 const nativeResponseValue = wasm.TS_Level_hash(o);
19202 return nativeResponseValue;
19204 // MUST_USE_RES enum LDKLevel Level_max(void);
19206 export function Level_max(): Level {
19207 if(!isWasmInitialized) {
19208 throw new Error("initializeWasm() must be awaited first!");
19210 const nativeResponseValue = wasm.TS_Level_max();
19211 return nativeResponseValue;
19213 // void Record_free(struct LDKRecord this_obj);
19215 export function Record_free(this_obj: bigint): void {
19216 if(!isWasmInitialized) {
19217 throw new Error("initializeWasm() must be awaited first!");
19219 const nativeResponseValue = wasm.TS_Record_free(this_obj);
19220 // debug statements here
19222 // enum LDKLevel Record_get_level(const struct LDKRecord *NONNULL_PTR this_ptr);
19224 export function Record_get_level(this_ptr: bigint): Level {
19225 if(!isWasmInitialized) {
19226 throw new Error("initializeWasm() must be awaited first!");
19228 const nativeResponseValue = wasm.TS_Record_get_level(this_ptr);
19229 return nativeResponseValue;
19231 // void Record_set_level(struct LDKRecord *NONNULL_PTR this_ptr, enum LDKLevel val);
19233 export function Record_set_level(this_ptr: bigint, val: Level): void {
19234 if(!isWasmInitialized) {
19235 throw new Error("initializeWasm() must be awaited first!");
19237 const nativeResponseValue = wasm.TS_Record_set_level(this_ptr, val);
19238 // debug statements here
19240 // struct LDKStr Record_get_args(const struct LDKRecord *NONNULL_PTR this_ptr);
19242 export function Record_get_args(this_ptr: bigint): number {
19243 if(!isWasmInitialized) {
19244 throw new Error("initializeWasm() must be awaited first!");
19246 const nativeResponseValue = wasm.TS_Record_get_args(this_ptr);
19247 return nativeResponseValue;
19249 // void Record_set_args(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
19251 export function Record_set_args(this_ptr: bigint, val: number): void {
19252 if(!isWasmInitialized) {
19253 throw new Error("initializeWasm() must be awaited first!");
19255 const nativeResponseValue = wasm.TS_Record_set_args(this_ptr, val);
19256 // debug statements here
19258 // struct LDKStr Record_get_module_path(const struct LDKRecord *NONNULL_PTR this_ptr);
19260 export function Record_get_module_path(this_ptr: bigint): number {
19261 if(!isWasmInitialized) {
19262 throw new Error("initializeWasm() must be awaited first!");
19264 const nativeResponseValue = wasm.TS_Record_get_module_path(this_ptr);
19265 return nativeResponseValue;
19267 // void Record_set_module_path(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
19269 export function Record_set_module_path(this_ptr: bigint, val: number): void {
19270 if(!isWasmInitialized) {
19271 throw new Error("initializeWasm() must be awaited first!");
19273 const nativeResponseValue = wasm.TS_Record_set_module_path(this_ptr, val);
19274 // debug statements here
19276 // struct LDKStr Record_get_file(const struct LDKRecord *NONNULL_PTR this_ptr);
19278 export function Record_get_file(this_ptr: bigint): number {
19279 if(!isWasmInitialized) {
19280 throw new Error("initializeWasm() must be awaited first!");
19282 const nativeResponseValue = wasm.TS_Record_get_file(this_ptr);
19283 return nativeResponseValue;
19285 // void Record_set_file(struct LDKRecord *NONNULL_PTR this_ptr, struct LDKStr val);
19287 export function Record_set_file(this_ptr: bigint, val: number): void {
19288 if(!isWasmInitialized) {
19289 throw new Error("initializeWasm() must be awaited first!");
19291 const nativeResponseValue = wasm.TS_Record_set_file(this_ptr, val);
19292 // debug statements here
19294 // uint32_t Record_get_line(const struct LDKRecord *NONNULL_PTR this_ptr);
19296 export function Record_get_line(this_ptr: bigint): number {
19297 if(!isWasmInitialized) {
19298 throw new Error("initializeWasm() must be awaited first!");
19300 const nativeResponseValue = wasm.TS_Record_get_line(this_ptr);
19301 return nativeResponseValue;
19303 // void Record_set_line(struct LDKRecord *NONNULL_PTR this_ptr, uint32_t val);
19305 export function Record_set_line(this_ptr: bigint, val: number): void {
19306 if(!isWasmInitialized) {
19307 throw new Error("initializeWasm() must be awaited first!");
19309 const nativeResponseValue = wasm.TS_Record_set_line(this_ptr, val);
19310 // debug statements here
19312 // uint64_t Record_clone_ptr(LDKRecord *NONNULL_PTR arg);
19314 export function Record_clone_ptr(arg: bigint): bigint {
19315 if(!isWasmInitialized) {
19316 throw new Error("initializeWasm() must be awaited first!");
19318 const nativeResponseValue = wasm.TS_Record_clone_ptr(arg);
19319 return nativeResponseValue;
19321 // struct LDKRecord Record_clone(const struct LDKRecord *NONNULL_PTR orig);
19323 export function Record_clone(orig: bigint): bigint {
19324 if(!isWasmInitialized) {
19325 throw new Error("initializeWasm() must be awaited first!");
19327 const nativeResponseValue = wasm.TS_Record_clone(orig);
19328 return nativeResponseValue;
19330 // void Logger_free(struct LDKLogger this_ptr);
19332 export function Logger_free(this_ptr: bigint): void {
19333 if(!isWasmInitialized) {
19334 throw new Error("initializeWasm() must be awaited first!");
19336 const nativeResponseValue = wasm.TS_Logger_free(this_ptr);
19337 // debug statements here
19339 // void ChannelHandshakeConfig_free(struct LDKChannelHandshakeConfig this_obj);
19341 export function ChannelHandshakeConfig_free(this_obj: bigint): void {
19342 if(!isWasmInitialized) {
19343 throw new Error("initializeWasm() must be awaited first!");
19345 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_free(this_obj);
19346 // debug statements here
19348 // uint32_t ChannelHandshakeConfig_get_minimum_depth(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
19350 export function ChannelHandshakeConfig_get_minimum_depth(this_ptr: bigint): number {
19351 if(!isWasmInitialized) {
19352 throw new Error("initializeWasm() must be awaited first!");
19354 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_minimum_depth(this_ptr);
19355 return nativeResponseValue;
19357 // void ChannelHandshakeConfig_set_minimum_depth(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
19359 export function ChannelHandshakeConfig_set_minimum_depth(this_ptr: bigint, val: number): void {
19360 if(!isWasmInitialized) {
19361 throw new Error("initializeWasm() must be awaited first!");
19363 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_minimum_depth(this_ptr, val);
19364 // debug statements here
19366 // uint16_t ChannelHandshakeConfig_get_our_to_self_delay(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
19368 export function ChannelHandshakeConfig_get_our_to_self_delay(this_ptr: bigint): number {
19369 if(!isWasmInitialized) {
19370 throw new Error("initializeWasm() must be awaited first!");
19372 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_to_self_delay(this_ptr);
19373 return nativeResponseValue;
19375 // void ChannelHandshakeConfig_set_our_to_self_delay(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
19377 export function ChannelHandshakeConfig_set_our_to_self_delay(this_ptr: bigint, val: number): void {
19378 if(!isWasmInitialized) {
19379 throw new Error("initializeWasm() must be awaited first!");
19381 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_to_self_delay(this_ptr, val);
19382 // debug statements here
19384 // uint64_t ChannelHandshakeConfig_get_our_htlc_minimum_msat(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
19386 export function ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr: bigint): bigint {
19387 if(!isWasmInitialized) {
19388 throw new Error("initializeWasm() must be awaited first!");
19390 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_htlc_minimum_msat(this_ptr);
19391 return nativeResponseValue;
19393 // void ChannelHandshakeConfig_set_our_htlc_minimum_msat(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint64_t val);
19395 export function ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
19396 if(!isWasmInitialized) {
19397 throw new Error("initializeWasm() must be awaited first!");
19399 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_htlc_minimum_msat(this_ptr, val);
19400 // debug statements here
19402 // uint8_t ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
19404 export function ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: bigint): number {
19405 if(!isWasmInitialized) {
19406 throw new Error("initializeWasm() must be awaited first!");
19408 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr);
19409 return nativeResponseValue;
19411 // void ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint8_t val);
19413 export function ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr: bigint, val: number): void {
19414 if(!isWasmInitialized) {
19415 throw new Error("initializeWasm() must be awaited first!");
19417 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_max_inbound_htlc_value_in_flight_percent_of_channel(this_ptr, val);
19418 // debug statements here
19420 // bool ChannelHandshakeConfig_get_negotiate_scid_privacy(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
19422 export function ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr: bigint): boolean {
19423 if(!isWasmInitialized) {
19424 throw new Error("initializeWasm() must be awaited first!");
19426 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_negotiate_scid_privacy(this_ptr);
19427 return nativeResponseValue;
19429 // void ChannelHandshakeConfig_set_negotiate_scid_privacy(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
19431 export function ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr: bigint, val: boolean): void {
19432 if(!isWasmInitialized) {
19433 throw new Error("initializeWasm() must be awaited first!");
19435 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_negotiate_scid_privacy(this_ptr, val);
19436 // debug statements here
19438 // bool ChannelHandshakeConfig_get_announced_channel(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
19440 export function ChannelHandshakeConfig_get_announced_channel(this_ptr: bigint): boolean {
19441 if(!isWasmInitialized) {
19442 throw new Error("initializeWasm() must be awaited first!");
19444 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_announced_channel(this_ptr);
19445 return nativeResponseValue;
19447 // void ChannelHandshakeConfig_set_announced_channel(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
19449 export function ChannelHandshakeConfig_set_announced_channel(this_ptr: bigint, val: boolean): void {
19450 if(!isWasmInitialized) {
19451 throw new Error("initializeWasm() must be awaited first!");
19453 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_announced_channel(this_ptr, val);
19454 // debug statements here
19456 // bool ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
19458 export function ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this_ptr: bigint): boolean {
19459 if(!isWasmInitialized) {
19460 throw new Error("initializeWasm() must be awaited first!");
19462 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_commit_upfront_shutdown_pubkey(this_ptr);
19463 return nativeResponseValue;
19465 // void ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, bool val);
19467 export function ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this_ptr: bigint, val: boolean): void {
19468 if(!isWasmInitialized) {
19469 throw new Error("initializeWasm() must be awaited first!");
19471 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_commit_upfront_shutdown_pubkey(this_ptr, val);
19472 // debug statements here
19474 // uint32_t ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
19476 export function ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(this_ptr: bigint): number {
19477 if(!isWasmInitialized) {
19478 throw new Error("initializeWasm() must be awaited first!");
19480 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_their_channel_reserve_proportional_millionths(this_ptr);
19481 return nativeResponseValue;
19483 // void ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint32_t val);
19485 export function ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(this_ptr: bigint, val: number): void {
19486 if(!isWasmInitialized) {
19487 throw new Error("initializeWasm() must be awaited first!");
19489 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_their_channel_reserve_proportional_millionths(this_ptr, val);
19490 // debug statements here
19492 // uint16_t ChannelHandshakeConfig_get_our_max_accepted_htlcs(const struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr);
19494 export function ChannelHandshakeConfig_get_our_max_accepted_htlcs(this_ptr: bigint): number {
19495 if(!isWasmInitialized) {
19496 throw new Error("initializeWasm() must be awaited first!");
19498 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_get_our_max_accepted_htlcs(this_ptr);
19499 return nativeResponseValue;
19501 // void ChannelHandshakeConfig_set_our_max_accepted_htlcs(struct LDKChannelHandshakeConfig *NONNULL_PTR this_ptr, uint16_t val);
19503 export function ChannelHandshakeConfig_set_our_max_accepted_htlcs(this_ptr: bigint, val: number): void {
19504 if(!isWasmInitialized) {
19505 throw new Error("initializeWasm() must be awaited first!");
19507 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_set_our_max_accepted_htlcs(this_ptr, val);
19508 // debug statements here
19510 // 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, uint16_t our_max_accepted_htlcs_arg);
19512 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, our_max_accepted_htlcs_arg: number): bigint {
19513 if(!isWasmInitialized) {
19514 throw new Error("initializeWasm() must be awaited first!");
19516 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, our_max_accepted_htlcs_arg);
19517 return nativeResponseValue;
19519 // uint64_t ChannelHandshakeConfig_clone_ptr(LDKChannelHandshakeConfig *NONNULL_PTR arg);
19521 export function ChannelHandshakeConfig_clone_ptr(arg: bigint): bigint {
19522 if(!isWasmInitialized) {
19523 throw new Error("initializeWasm() must be awaited first!");
19525 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone_ptr(arg);
19526 return nativeResponseValue;
19528 // struct LDKChannelHandshakeConfig ChannelHandshakeConfig_clone(const struct LDKChannelHandshakeConfig *NONNULL_PTR orig);
19530 export function ChannelHandshakeConfig_clone(orig: bigint): bigint {
19531 if(!isWasmInitialized) {
19532 throw new Error("initializeWasm() must be awaited first!");
19534 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_clone(orig);
19535 return nativeResponseValue;
19537 // MUST_USE_RES struct LDKChannelHandshakeConfig ChannelHandshakeConfig_default(void);
19539 export function ChannelHandshakeConfig_default(): bigint {
19540 if(!isWasmInitialized) {
19541 throw new Error("initializeWasm() must be awaited first!");
19543 const nativeResponseValue = wasm.TS_ChannelHandshakeConfig_default();
19544 return nativeResponseValue;
19546 // void ChannelHandshakeLimits_free(struct LDKChannelHandshakeLimits this_obj);
19548 export function ChannelHandshakeLimits_free(this_obj: bigint): void {
19549 if(!isWasmInitialized) {
19550 throw new Error("initializeWasm() must be awaited first!");
19552 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_free(this_obj);
19553 // debug statements here
19555 // uint64_t ChannelHandshakeLimits_get_min_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
19557 export function ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr: bigint): bigint {
19558 if(!isWasmInitialized) {
19559 throw new Error("initializeWasm() must be awaited first!");
19561 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_funding_satoshis(this_ptr);
19562 return nativeResponseValue;
19564 // void ChannelHandshakeLimits_set_min_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
19566 export function ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr: bigint, val: bigint): void {
19567 if(!isWasmInitialized) {
19568 throw new Error("initializeWasm() must be awaited first!");
19570 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_funding_satoshis(this_ptr, val);
19571 // debug statements here
19573 // uint64_t ChannelHandshakeLimits_get_max_funding_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
19575 export function ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr: bigint): bigint {
19576 if(!isWasmInitialized) {
19577 throw new Error("initializeWasm() must be awaited first!");
19579 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_funding_satoshis(this_ptr);
19580 return nativeResponseValue;
19582 // void ChannelHandshakeLimits_set_max_funding_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
19584 export function ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr: bigint, val: bigint): void {
19585 if(!isWasmInitialized) {
19586 throw new Error("initializeWasm() must be awaited first!");
19588 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_funding_satoshis(this_ptr, val);
19589 // debug statements here
19591 // uint64_t ChannelHandshakeLimits_get_max_htlc_minimum_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
19593 export function ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr: bigint): bigint {
19594 if(!isWasmInitialized) {
19595 throw new Error("initializeWasm() must be awaited first!");
19597 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_htlc_minimum_msat(this_ptr);
19598 return nativeResponseValue;
19600 // void ChannelHandshakeLimits_set_max_htlc_minimum_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
19602 export function ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
19603 if(!isWasmInitialized) {
19604 throw new Error("initializeWasm() must be awaited first!");
19606 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_htlc_minimum_msat(this_ptr, val);
19607 // debug statements here
19609 // uint64_t ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
19611 export function ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint {
19612 if(!isWasmInitialized) {
19613 throw new Error("initializeWasm() must be awaited first!");
19615 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_htlc_value_in_flight_msat(this_ptr);
19616 return nativeResponseValue;
19618 // void ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
19620 export function ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void {
19621 if(!isWasmInitialized) {
19622 throw new Error("initializeWasm() must be awaited first!");
19624 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_htlc_value_in_flight_msat(this_ptr, val);
19625 // debug statements here
19627 // uint64_t ChannelHandshakeLimits_get_max_channel_reserve_satoshis(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
19629 export function ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr: bigint): bigint {
19630 if(!isWasmInitialized) {
19631 throw new Error("initializeWasm() must be awaited first!");
19633 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_channel_reserve_satoshis(this_ptr);
19634 return nativeResponseValue;
19636 // void ChannelHandshakeLimits_set_max_channel_reserve_satoshis(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint64_t val);
19638 export function ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr: bigint, val: bigint): void {
19639 if(!isWasmInitialized) {
19640 throw new Error("initializeWasm() must be awaited first!");
19642 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_channel_reserve_satoshis(this_ptr, val);
19643 // debug statements here
19645 // uint16_t ChannelHandshakeLimits_get_min_max_accepted_htlcs(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
19647 export function ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr: bigint): number {
19648 if(!isWasmInitialized) {
19649 throw new Error("initializeWasm() must be awaited first!");
19651 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_min_max_accepted_htlcs(this_ptr);
19652 return nativeResponseValue;
19654 // void ChannelHandshakeLimits_set_min_max_accepted_htlcs(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
19656 export function ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr: bigint, val: number): void {
19657 if(!isWasmInitialized) {
19658 throw new Error("initializeWasm() must be awaited first!");
19660 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_min_max_accepted_htlcs(this_ptr, val);
19661 // debug statements here
19663 // uint32_t ChannelHandshakeLimits_get_max_minimum_depth(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
19665 export function ChannelHandshakeLimits_get_max_minimum_depth(this_ptr: bigint): number {
19666 if(!isWasmInitialized) {
19667 throw new Error("initializeWasm() must be awaited first!");
19669 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_max_minimum_depth(this_ptr);
19670 return nativeResponseValue;
19672 // void ChannelHandshakeLimits_set_max_minimum_depth(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint32_t val);
19674 export function ChannelHandshakeLimits_set_max_minimum_depth(this_ptr: bigint, val: number): void {
19675 if(!isWasmInitialized) {
19676 throw new Error("initializeWasm() must be awaited first!");
19678 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_max_minimum_depth(this_ptr, val);
19679 // debug statements here
19681 // bool ChannelHandshakeLimits_get_trust_own_funding_0conf(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
19683 export function ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr: bigint): boolean {
19684 if(!isWasmInitialized) {
19685 throw new Error("initializeWasm() must be awaited first!");
19687 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_trust_own_funding_0conf(this_ptr);
19688 return nativeResponseValue;
19690 // void ChannelHandshakeLimits_set_trust_own_funding_0conf(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
19692 export function ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr: bigint, val: boolean): void {
19693 if(!isWasmInitialized) {
19694 throw new Error("initializeWasm() must be awaited first!");
19696 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_trust_own_funding_0conf(this_ptr, val);
19697 // debug statements here
19699 // bool ChannelHandshakeLimits_get_force_announced_channel_preference(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
19701 export function ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr: bigint): boolean {
19702 if(!isWasmInitialized) {
19703 throw new Error("initializeWasm() must be awaited first!");
19705 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_force_announced_channel_preference(this_ptr);
19706 return nativeResponseValue;
19708 // void ChannelHandshakeLimits_set_force_announced_channel_preference(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, bool val);
19710 export function ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr: bigint, val: boolean): void {
19711 if(!isWasmInitialized) {
19712 throw new Error("initializeWasm() must be awaited first!");
19714 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_force_announced_channel_preference(this_ptr, val);
19715 // debug statements here
19717 // uint16_t ChannelHandshakeLimits_get_their_to_self_delay(const struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr);
19719 export function ChannelHandshakeLimits_get_their_to_self_delay(this_ptr: bigint): number {
19720 if(!isWasmInitialized) {
19721 throw new Error("initializeWasm() must be awaited first!");
19723 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_get_their_to_self_delay(this_ptr);
19724 return nativeResponseValue;
19726 // void ChannelHandshakeLimits_set_their_to_self_delay(struct LDKChannelHandshakeLimits *NONNULL_PTR this_ptr, uint16_t val);
19728 export function ChannelHandshakeLimits_set_their_to_self_delay(this_ptr: bigint, val: number): void {
19729 if(!isWasmInitialized) {
19730 throw new Error("initializeWasm() must be awaited first!");
19732 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_set_their_to_self_delay(this_ptr, val);
19733 // debug statements here
19735 // 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);
19737 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 {
19738 if(!isWasmInitialized) {
19739 throw new Error("initializeWasm() must be awaited first!");
19741 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);
19742 return nativeResponseValue;
19744 // uint64_t ChannelHandshakeLimits_clone_ptr(LDKChannelHandshakeLimits *NONNULL_PTR arg);
19746 export function ChannelHandshakeLimits_clone_ptr(arg: bigint): bigint {
19747 if(!isWasmInitialized) {
19748 throw new Error("initializeWasm() must be awaited first!");
19750 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone_ptr(arg);
19751 return nativeResponseValue;
19753 // struct LDKChannelHandshakeLimits ChannelHandshakeLimits_clone(const struct LDKChannelHandshakeLimits *NONNULL_PTR orig);
19755 export function ChannelHandshakeLimits_clone(orig: bigint): bigint {
19756 if(!isWasmInitialized) {
19757 throw new Error("initializeWasm() must be awaited first!");
19759 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_clone(orig);
19760 return nativeResponseValue;
19762 // MUST_USE_RES struct LDKChannelHandshakeLimits ChannelHandshakeLimits_default(void);
19764 export function ChannelHandshakeLimits_default(): bigint {
19765 if(!isWasmInitialized) {
19766 throw new Error("initializeWasm() must be awaited first!");
19768 const nativeResponseValue = wasm.TS_ChannelHandshakeLimits_default();
19769 return nativeResponseValue;
19771 // void ChannelConfig_free(struct LDKChannelConfig this_obj);
19773 export function ChannelConfig_free(this_obj: bigint): void {
19774 if(!isWasmInitialized) {
19775 throw new Error("initializeWasm() must be awaited first!");
19777 const nativeResponseValue = wasm.TS_ChannelConfig_free(this_obj);
19778 // debug statements here
19780 // uint32_t ChannelConfig_get_forwarding_fee_proportional_millionths(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
19782 export function ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr: bigint): number {
19783 if(!isWasmInitialized) {
19784 throw new Error("initializeWasm() must be awaited first!");
19786 const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_proportional_millionths(this_ptr);
19787 return nativeResponseValue;
19789 // void ChannelConfig_set_forwarding_fee_proportional_millionths(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
19791 export function ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr: bigint, val: number): void {
19792 if(!isWasmInitialized) {
19793 throw new Error("initializeWasm() must be awaited first!");
19795 const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_proportional_millionths(this_ptr, val);
19796 // debug statements here
19798 // uint32_t ChannelConfig_get_forwarding_fee_base_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
19800 export function ChannelConfig_get_forwarding_fee_base_msat(this_ptr: bigint): number {
19801 if(!isWasmInitialized) {
19802 throw new Error("initializeWasm() must be awaited first!");
19804 const nativeResponseValue = wasm.TS_ChannelConfig_get_forwarding_fee_base_msat(this_ptr);
19805 return nativeResponseValue;
19807 // void ChannelConfig_set_forwarding_fee_base_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint32_t val);
19809 export function ChannelConfig_set_forwarding_fee_base_msat(this_ptr: bigint, val: number): void {
19810 if(!isWasmInitialized) {
19811 throw new Error("initializeWasm() must be awaited first!");
19813 const nativeResponseValue = wasm.TS_ChannelConfig_set_forwarding_fee_base_msat(this_ptr, val);
19814 // debug statements here
19816 // uint16_t ChannelConfig_get_cltv_expiry_delta(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
19818 export function ChannelConfig_get_cltv_expiry_delta(this_ptr: bigint): number {
19819 if(!isWasmInitialized) {
19820 throw new Error("initializeWasm() must be awaited first!");
19822 const nativeResponseValue = wasm.TS_ChannelConfig_get_cltv_expiry_delta(this_ptr);
19823 return nativeResponseValue;
19825 // void ChannelConfig_set_cltv_expiry_delta(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint16_t val);
19827 export function ChannelConfig_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
19828 if(!isWasmInitialized) {
19829 throw new Error("initializeWasm() must be awaited first!");
19831 const nativeResponseValue = wasm.TS_ChannelConfig_set_cltv_expiry_delta(this_ptr, val);
19832 // debug statements here
19834 // uint64_t ChannelConfig_get_max_dust_htlc_exposure_msat(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
19836 export function ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr: bigint): bigint {
19837 if(!isWasmInitialized) {
19838 throw new Error("initializeWasm() must be awaited first!");
19840 const nativeResponseValue = wasm.TS_ChannelConfig_get_max_dust_htlc_exposure_msat(this_ptr);
19841 return nativeResponseValue;
19843 // void ChannelConfig_set_max_dust_htlc_exposure_msat(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
19845 export function ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr: bigint, val: bigint): void {
19846 if(!isWasmInitialized) {
19847 throw new Error("initializeWasm() must be awaited first!");
19849 const nativeResponseValue = wasm.TS_ChannelConfig_set_max_dust_htlc_exposure_msat(this_ptr, val);
19850 // debug statements here
19852 // uint64_t ChannelConfig_get_force_close_avoidance_max_fee_satoshis(const struct LDKChannelConfig *NONNULL_PTR this_ptr);
19854 export function ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr: bigint): bigint {
19855 if(!isWasmInitialized) {
19856 throw new Error("initializeWasm() must be awaited first!");
19858 const nativeResponseValue = wasm.TS_ChannelConfig_get_force_close_avoidance_max_fee_satoshis(this_ptr);
19859 return nativeResponseValue;
19861 // void ChannelConfig_set_force_close_avoidance_max_fee_satoshis(struct LDKChannelConfig *NONNULL_PTR this_ptr, uint64_t val);
19863 export function ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr: bigint, val: bigint): void {
19864 if(!isWasmInitialized) {
19865 throw new Error("initializeWasm() must be awaited first!");
19867 const nativeResponseValue = wasm.TS_ChannelConfig_set_force_close_avoidance_max_fee_satoshis(this_ptr, val);
19868 // debug statements here
19870 // 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, uint64_t max_dust_htlc_exposure_msat_arg, uint64_t force_close_avoidance_max_fee_satoshis_arg);
19872 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_msat_arg: bigint, force_close_avoidance_max_fee_satoshis_arg: bigint): bigint {
19873 if(!isWasmInitialized) {
19874 throw new Error("initializeWasm() must be awaited first!");
19876 const nativeResponseValue = wasm.TS_ChannelConfig_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);
19877 return nativeResponseValue;
19879 // uint64_t ChannelConfig_clone_ptr(LDKChannelConfig *NONNULL_PTR arg);
19881 export function ChannelConfig_clone_ptr(arg: bigint): bigint {
19882 if(!isWasmInitialized) {
19883 throw new Error("initializeWasm() must be awaited first!");
19885 const nativeResponseValue = wasm.TS_ChannelConfig_clone_ptr(arg);
19886 return nativeResponseValue;
19888 // struct LDKChannelConfig ChannelConfig_clone(const struct LDKChannelConfig *NONNULL_PTR orig);
19890 export function ChannelConfig_clone(orig: bigint): bigint {
19891 if(!isWasmInitialized) {
19892 throw new Error("initializeWasm() must be awaited first!");
19894 const nativeResponseValue = wasm.TS_ChannelConfig_clone(orig);
19895 return nativeResponseValue;
19897 // bool ChannelConfig_eq(const struct LDKChannelConfig *NONNULL_PTR a, const struct LDKChannelConfig *NONNULL_PTR b);
19899 export function ChannelConfig_eq(a: bigint, b: bigint): boolean {
19900 if(!isWasmInitialized) {
19901 throw new Error("initializeWasm() must be awaited first!");
19903 const nativeResponseValue = wasm.TS_ChannelConfig_eq(a, b);
19904 return nativeResponseValue;
19906 // MUST_USE_RES struct LDKChannelConfig ChannelConfig_default(void);
19908 export function ChannelConfig_default(): bigint {
19909 if(!isWasmInitialized) {
19910 throw new Error("initializeWasm() must be awaited first!");
19912 const nativeResponseValue = wasm.TS_ChannelConfig_default();
19913 return nativeResponseValue;
19915 // struct LDKCVec_u8Z ChannelConfig_write(const struct LDKChannelConfig *NONNULL_PTR obj);
19917 export function ChannelConfig_write(obj: bigint): number {
19918 if(!isWasmInitialized) {
19919 throw new Error("initializeWasm() must be awaited first!");
19921 const nativeResponseValue = wasm.TS_ChannelConfig_write(obj);
19922 return nativeResponseValue;
19924 // struct LDKCResult_ChannelConfigDecodeErrorZ ChannelConfig_read(struct LDKu8slice ser);
19926 export function ChannelConfig_read(ser: number): bigint {
19927 if(!isWasmInitialized) {
19928 throw new Error("initializeWasm() must be awaited first!");
19930 const nativeResponseValue = wasm.TS_ChannelConfig_read(ser);
19931 return nativeResponseValue;
19933 // void UserConfig_free(struct LDKUserConfig this_obj);
19935 export function UserConfig_free(this_obj: bigint): void {
19936 if(!isWasmInitialized) {
19937 throw new Error("initializeWasm() must be awaited first!");
19939 const nativeResponseValue = wasm.TS_UserConfig_free(this_obj);
19940 // debug statements here
19942 // struct LDKChannelHandshakeConfig UserConfig_get_channel_handshake_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
19944 export function UserConfig_get_channel_handshake_config(this_ptr: bigint): bigint {
19945 if(!isWasmInitialized) {
19946 throw new Error("initializeWasm() must be awaited first!");
19948 const nativeResponseValue = wasm.TS_UserConfig_get_channel_handshake_config(this_ptr);
19949 return nativeResponseValue;
19951 // void UserConfig_set_channel_handshake_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeConfig val);
19953 export function UserConfig_set_channel_handshake_config(this_ptr: bigint, val: bigint): void {
19954 if(!isWasmInitialized) {
19955 throw new Error("initializeWasm() must be awaited first!");
19957 const nativeResponseValue = wasm.TS_UserConfig_set_channel_handshake_config(this_ptr, val);
19958 // debug statements here
19960 // struct LDKChannelHandshakeLimits UserConfig_get_channel_handshake_limits(const struct LDKUserConfig *NONNULL_PTR this_ptr);
19962 export function UserConfig_get_channel_handshake_limits(this_ptr: bigint): bigint {
19963 if(!isWasmInitialized) {
19964 throw new Error("initializeWasm() must be awaited first!");
19966 const nativeResponseValue = wasm.TS_UserConfig_get_channel_handshake_limits(this_ptr);
19967 return nativeResponseValue;
19969 // void UserConfig_set_channel_handshake_limits(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelHandshakeLimits val);
19971 export function UserConfig_set_channel_handshake_limits(this_ptr: bigint, val: bigint): void {
19972 if(!isWasmInitialized) {
19973 throw new Error("initializeWasm() must be awaited first!");
19975 const nativeResponseValue = wasm.TS_UserConfig_set_channel_handshake_limits(this_ptr, val);
19976 // debug statements here
19978 // struct LDKChannelConfig UserConfig_get_channel_config(const struct LDKUserConfig *NONNULL_PTR this_ptr);
19980 export function UserConfig_get_channel_config(this_ptr: bigint): bigint {
19981 if(!isWasmInitialized) {
19982 throw new Error("initializeWasm() must be awaited first!");
19984 const nativeResponseValue = wasm.TS_UserConfig_get_channel_config(this_ptr);
19985 return nativeResponseValue;
19987 // void UserConfig_set_channel_config(struct LDKUserConfig *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
19989 export function UserConfig_set_channel_config(this_ptr: bigint, val: bigint): void {
19990 if(!isWasmInitialized) {
19991 throw new Error("initializeWasm() must be awaited first!");
19993 const nativeResponseValue = wasm.TS_UserConfig_set_channel_config(this_ptr, val);
19994 // debug statements here
19996 // bool UserConfig_get_accept_forwards_to_priv_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
19998 export function UserConfig_get_accept_forwards_to_priv_channels(this_ptr: bigint): boolean {
19999 if(!isWasmInitialized) {
20000 throw new Error("initializeWasm() must be awaited first!");
20002 const nativeResponseValue = wasm.TS_UserConfig_get_accept_forwards_to_priv_channels(this_ptr);
20003 return nativeResponseValue;
20005 // void UserConfig_set_accept_forwards_to_priv_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
20007 export function UserConfig_set_accept_forwards_to_priv_channels(this_ptr: bigint, val: boolean): void {
20008 if(!isWasmInitialized) {
20009 throw new Error("initializeWasm() must be awaited first!");
20011 const nativeResponseValue = wasm.TS_UserConfig_set_accept_forwards_to_priv_channels(this_ptr, val);
20012 // debug statements here
20014 // bool UserConfig_get_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
20016 export function UserConfig_get_accept_inbound_channels(this_ptr: bigint): boolean {
20017 if(!isWasmInitialized) {
20018 throw new Error("initializeWasm() must be awaited first!");
20020 const nativeResponseValue = wasm.TS_UserConfig_get_accept_inbound_channels(this_ptr);
20021 return nativeResponseValue;
20023 // void UserConfig_set_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
20025 export function UserConfig_set_accept_inbound_channels(this_ptr: bigint, val: boolean): void {
20026 if(!isWasmInitialized) {
20027 throw new Error("initializeWasm() must be awaited first!");
20029 const nativeResponseValue = wasm.TS_UserConfig_set_accept_inbound_channels(this_ptr, val);
20030 // debug statements here
20032 // bool UserConfig_get_manually_accept_inbound_channels(const struct LDKUserConfig *NONNULL_PTR this_ptr);
20034 export function UserConfig_get_manually_accept_inbound_channels(this_ptr: bigint): boolean {
20035 if(!isWasmInitialized) {
20036 throw new Error("initializeWasm() must be awaited first!");
20038 const nativeResponseValue = wasm.TS_UserConfig_get_manually_accept_inbound_channels(this_ptr);
20039 return nativeResponseValue;
20041 // void UserConfig_set_manually_accept_inbound_channels(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
20043 export function UserConfig_set_manually_accept_inbound_channels(this_ptr: bigint, val: boolean): void {
20044 if(!isWasmInitialized) {
20045 throw new Error("initializeWasm() must be awaited first!");
20047 const nativeResponseValue = wasm.TS_UserConfig_set_manually_accept_inbound_channels(this_ptr, val);
20048 // debug statements here
20050 // bool UserConfig_get_accept_intercept_htlcs(const struct LDKUserConfig *NONNULL_PTR this_ptr);
20052 export function UserConfig_get_accept_intercept_htlcs(this_ptr: bigint): boolean {
20053 if(!isWasmInitialized) {
20054 throw new Error("initializeWasm() must be awaited first!");
20056 const nativeResponseValue = wasm.TS_UserConfig_get_accept_intercept_htlcs(this_ptr);
20057 return nativeResponseValue;
20059 // void UserConfig_set_accept_intercept_htlcs(struct LDKUserConfig *NONNULL_PTR this_ptr, bool val);
20061 export function UserConfig_set_accept_intercept_htlcs(this_ptr: bigint, val: boolean): void {
20062 if(!isWasmInitialized) {
20063 throw new Error("initializeWasm() must be awaited first!");
20065 const nativeResponseValue = wasm.TS_UserConfig_set_accept_intercept_htlcs(this_ptr, val);
20066 // debug statements here
20068 // 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);
20070 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): bigint {
20071 if(!isWasmInitialized) {
20072 throw new Error("initializeWasm() must be awaited first!");
20074 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);
20075 return nativeResponseValue;
20077 // uint64_t UserConfig_clone_ptr(LDKUserConfig *NONNULL_PTR arg);
20079 export function UserConfig_clone_ptr(arg: bigint): bigint {
20080 if(!isWasmInitialized) {
20081 throw new Error("initializeWasm() must be awaited first!");
20083 const nativeResponseValue = wasm.TS_UserConfig_clone_ptr(arg);
20084 return nativeResponseValue;
20086 // struct LDKUserConfig UserConfig_clone(const struct LDKUserConfig *NONNULL_PTR orig);
20088 export function UserConfig_clone(orig: bigint): bigint {
20089 if(!isWasmInitialized) {
20090 throw new Error("initializeWasm() must be awaited first!");
20092 const nativeResponseValue = wasm.TS_UserConfig_clone(orig);
20093 return nativeResponseValue;
20095 // MUST_USE_RES struct LDKUserConfig UserConfig_default(void);
20097 export function UserConfig_default(): bigint {
20098 if(!isWasmInitialized) {
20099 throw new Error("initializeWasm() must be awaited first!");
20101 const nativeResponseValue = wasm.TS_UserConfig_default();
20102 return nativeResponseValue;
20104 // void BestBlock_free(struct LDKBestBlock this_obj);
20106 export function BestBlock_free(this_obj: bigint): void {
20107 if(!isWasmInitialized) {
20108 throw new Error("initializeWasm() must be awaited first!");
20110 const nativeResponseValue = wasm.TS_BestBlock_free(this_obj);
20111 // debug statements here
20113 // uint64_t BestBlock_clone_ptr(LDKBestBlock *NONNULL_PTR arg);
20115 export function BestBlock_clone_ptr(arg: bigint): bigint {
20116 if(!isWasmInitialized) {
20117 throw new Error("initializeWasm() must be awaited first!");
20119 const nativeResponseValue = wasm.TS_BestBlock_clone_ptr(arg);
20120 return nativeResponseValue;
20122 // struct LDKBestBlock BestBlock_clone(const struct LDKBestBlock *NONNULL_PTR orig);
20124 export function BestBlock_clone(orig: bigint): bigint {
20125 if(!isWasmInitialized) {
20126 throw new Error("initializeWasm() must be awaited first!");
20128 const nativeResponseValue = wasm.TS_BestBlock_clone(orig);
20129 return nativeResponseValue;
20131 // bool BestBlock_eq(const struct LDKBestBlock *NONNULL_PTR a, const struct LDKBestBlock *NONNULL_PTR b);
20133 export function BestBlock_eq(a: bigint, b: bigint): boolean {
20134 if(!isWasmInitialized) {
20135 throw new Error("initializeWasm() must be awaited first!");
20137 const nativeResponseValue = wasm.TS_BestBlock_eq(a, b);
20138 return nativeResponseValue;
20140 // MUST_USE_RES struct LDKBestBlock BestBlock_from_network(enum LDKNetwork network);
20142 export function BestBlock_from_network(network: Network): bigint {
20143 if(!isWasmInitialized) {
20144 throw new Error("initializeWasm() must be awaited first!");
20146 const nativeResponseValue = wasm.TS_BestBlock_from_network(network);
20147 return nativeResponseValue;
20149 // MUST_USE_RES struct LDKBestBlock BestBlock_new(struct LDKThirtyTwoBytes block_hash, uint32_t height);
20151 export function BestBlock_new(block_hash: number, height: number): bigint {
20152 if(!isWasmInitialized) {
20153 throw new Error("initializeWasm() must be awaited first!");
20155 const nativeResponseValue = wasm.TS_BestBlock_new(block_hash, height);
20156 return nativeResponseValue;
20158 // MUST_USE_RES struct LDKThirtyTwoBytes BestBlock_block_hash(const struct LDKBestBlock *NONNULL_PTR this_arg);
20160 export function BestBlock_block_hash(this_arg: bigint): number {
20161 if(!isWasmInitialized) {
20162 throw new Error("initializeWasm() must be awaited first!");
20164 const nativeResponseValue = wasm.TS_BestBlock_block_hash(this_arg);
20165 return nativeResponseValue;
20167 // MUST_USE_RES uint32_t BestBlock_height(const struct LDKBestBlock *NONNULL_PTR this_arg);
20169 export function BestBlock_height(this_arg: bigint): number {
20170 if(!isWasmInitialized) {
20171 throw new Error("initializeWasm() must be awaited first!");
20173 const nativeResponseValue = wasm.TS_BestBlock_height(this_arg);
20174 return nativeResponseValue;
20176 // void Listen_free(struct LDKListen this_ptr);
20178 export function Listen_free(this_ptr: bigint): void {
20179 if(!isWasmInitialized) {
20180 throw new Error("initializeWasm() must be awaited first!");
20182 const nativeResponseValue = wasm.TS_Listen_free(this_ptr);
20183 // debug statements here
20185 // void Confirm_free(struct LDKConfirm this_ptr);
20187 export function Confirm_free(this_ptr: bigint): void {
20188 if(!isWasmInitialized) {
20189 throw new Error("initializeWasm() must be awaited first!");
20191 const nativeResponseValue = wasm.TS_Confirm_free(this_ptr);
20192 // debug statements here
20194 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_clone(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR orig);
20196 export function ChannelMonitorUpdateStatus_clone(orig: bigint): ChannelMonitorUpdateStatus {
20197 if(!isWasmInitialized) {
20198 throw new Error("initializeWasm() must be awaited first!");
20200 const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_clone(orig);
20201 return nativeResponseValue;
20203 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_completed(void);
20205 export function ChannelMonitorUpdateStatus_completed(): ChannelMonitorUpdateStatus {
20206 if(!isWasmInitialized) {
20207 throw new Error("initializeWasm() must be awaited first!");
20209 const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_completed();
20210 return nativeResponseValue;
20212 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_in_progress(void);
20214 export function ChannelMonitorUpdateStatus_in_progress(): ChannelMonitorUpdateStatus {
20215 if(!isWasmInitialized) {
20216 throw new Error("initializeWasm() must be awaited first!");
20218 const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_in_progress();
20219 return nativeResponseValue;
20221 // enum LDKChannelMonitorUpdateStatus ChannelMonitorUpdateStatus_permanent_failure(void);
20223 export function ChannelMonitorUpdateStatus_permanent_failure(): ChannelMonitorUpdateStatus {
20224 if(!isWasmInitialized) {
20225 throw new Error("initializeWasm() must be awaited first!");
20227 const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_permanent_failure();
20228 return nativeResponseValue;
20230 // bool ChannelMonitorUpdateStatus_eq(const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR a, const enum LDKChannelMonitorUpdateStatus *NONNULL_PTR b);
20232 export function ChannelMonitorUpdateStatus_eq(a: bigint, b: bigint): boolean {
20233 if(!isWasmInitialized) {
20234 throw new Error("initializeWasm() must be awaited first!");
20236 const nativeResponseValue = wasm.TS_ChannelMonitorUpdateStatus_eq(a, b);
20237 return nativeResponseValue;
20239 // void Watch_free(struct LDKWatch this_ptr);
20241 export function Watch_free(this_ptr: bigint): void {
20242 if(!isWasmInitialized) {
20243 throw new Error("initializeWasm() must be awaited first!");
20245 const nativeResponseValue = wasm.TS_Watch_free(this_ptr);
20246 // debug statements here
20248 // void Filter_free(struct LDKFilter this_ptr);
20250 export function Filter_free(this_ptr: bigint): void {
20251 if(!isWasmInitialized) {
20252 throw new Error("initializeWasm() must be awaited first!");
20254 const nativeResponseValue = wasm.TS_Filter_free(this_ptr);
20255 // debug statements here
20257 // void WatchedOutput_free(struct LDKWatchedOutput this_obj);
20259 export function WatchedOutput_free(this_obj: bigint): void {
20260 if(!isWasmInitialized) {
20261 throw new Error("initializeWasm() must be awaited first!");
20263 const nativeResponseValue = wasm.TS_WatchedOutput_free(this_obj);
20264 // debug statements here
20266 // struct LDKThirtyTwoBytes WatchedOutput_get_block_hash(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
20268 export function WatchedOutput_get_block_hash(this_ptr: bigint): number {
20269 if(!isWasmInitialized) {
20270 throw new Error("initializeWasm() must be awaited first!");
20272 const nativeResponseValue = wasm.TS_WatchedOutput_get_block_hash(this_ptr);
20273 return nativeResponseValue;
20275 // void WatchedOutput_set_block_hash(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
20277 export function WatchedOutput_set_block_hash(this_ptr: bigint, val: number): void {
20278 if(!isWasmInitialized) {
20279 throw new Error("initializeWasm() must be awaited first!");
20281 const nativeResponseValue = wasm.TS_WatchedOutput_set_block_hash(this_ptr, val);
20282 // debug statements here
20284 // struct LDKOutPoint WatchedOutput_get_outpoint(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
20286 export function WatchedOutput_get_outpoint(this_ptr: bigint): bigint {
20287 if(!isWasmInitialized) {
20288 throw new Error("initializeWasm() must be awaited first!");
20290 const nativeResponseValue = wasm.TS_WatchedOutput_get_outpoint(this_ptr);
20291 return nativeResponseValue;
20293 // void WatchedOutput_set_outpoint(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKOutPoint val);
20295 export function WatchedOutput_set_outpoint(this_ptr: bigint, val: bigint): void {
20296 if(!isWasmInitialized) {
20297 throw new Error("initializeWasm() must be awaited first!");
20299 const nativeResponseValue = wasm.TS_WatchedOutput_set_outpoint(this_ptr, val);
20300 // debug statements here
20302 // struct LDKu8slice WatchedOutput_get_script_pubkey(const struct LDKWatchedOutput *NONNULL_PTR this_ptr);
20304 export function WatchedOutput_get_script_pubkey(this_ptr: bigint): number {
20305 if(!isWasmInitialized) {
20306 throw new Error("initializeWasm() must be awaited first!");
20308 const nativeResponseValue = wasm.TS_WatchedOutput_get_script_pubkey(this_ptr);
20309 return nativeResponseValue;
20311 // void WatchedOutput_set_script_pubkey(struct LDKWatchedOutput *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
20313 export function WatchedOutput_set_script_pubkey(this_ptr: bigint, val: number): void {
20314 if(!isWasmInitialized) {
20315 throw new Error("initializeWasm() must be awaited first!");
20317 const nativeResponseValue = wasm.TS_WatchedOutput_set_script_pubkey(this_ptr, val);
20318 // debug statements here
20320 // MUST_USE_RES struct LDKWatchedOutput WatchedOutput_new(struct LDKThirtyTwoBytes block_hash_arg, struct LDKOutPoint outpoint_arg, struct LDKCVec_u8Z script_pubkey_arg);
20322 export function WatchedOutput_new(block_hash_arg: number, outpoint_arg: bigint, script_pubkey_arg: number): bigint {
20323 if(!isWasmInitialized) {
20324 throw new Error("initializeWasm() must be awaited first!");
20326 const nativeResponseValue = wasm.TS_WatchedOutput_new(block_hash_arg, outpoint_arg, script_pubkey_arg);
20327 return nativeResponseValue;
20329 // uint64_t WatchedOutput_clone_ptr(LDKWatchedOutput *NONNULL_PTR arg);
20331 export function WatchedOutput_clone_ptr(arg: bigint): bigint {
20332 if(!isWasmInitialized) {
20333 throw new Error("initializeWasm() must be awaited first!");
20335 const nativeResponseValue = wasm.TS_WatchedOutput_clone_ptr(arg);
20336 return nativeResponseValue;
20338 // struct LDKWatchedOutput WatchedOutput_clone(const struct LDKWatchedOutput *NONNULL_PTR orig);
20340 export function WatchedOutput_clone(orig: bigint): bigint {
20341 if(!isWasmInitialized) {
20342 throw new Error("initializeWasm() must be awaited first!");
20344 const nativeResponseValue = wasm.TS_WatchedOutput_clone(orig);
20345 return nativeResponseValue;
20347 // bool WatchedOutput_eq(const struct LDKWatchedOutput *NONNULL_PTR a, const struct LDKWatchedOutput *NONNULL_PTR b);
20349 export function WatchedOutput_eq(a: bigint, b: bigint): boolean {
20350 if(!isWasmInitialized) {
20351 throw new Error("initializeWasm() must be awaited first!");
20353 const nativeResponseValue = wasm.TS_WatchedOutput_eq(a, b);
20354 return nativeResponseValue;
20356 // uint64_t WatchedOutput_hash(const struct LDKWatchedOutput *NONNULL_PTR o);
20358 export function WatchedOutput_hash(o: bigint): bigint {
20359 if(!isWasmInitialized) {
20360 throw new Error("initializeWasm() must be awaited first!");
20362 const nativeResponseValue = wasm.TS_WatchedOutput_hash(o);
20363 return nativeResponseValue;
20365 // void BroadcasterInterface_free(struct LDKBroadcasterInterface this_ptr);
20367 export function BroadcasterInterface_free(this_ptr: bigint): void {
20368 if(!isWasmInitialized) {
20369 throw new Error("initializeWasm() must be awaited first!");
20371 const nativeResponseValue = wasm.TS_BroadcasterInterface_free(this_ptr);
20372 // debug statements here
20374 // enum LDKConfirmationTarget ConfirmationTarget_clone(const enum LDKConfirmationTarget *NONNULL_PTR orig);
20376 export function ConfirmationTarget_clone(orig: bigint): ConfirmationTarget {
20377 if(!isWasmInitialized) {
20378 throw new Error("initializeWasm() must be awaited first!");
20380 const nativeResponseValue = wasm.TS_ConfirmationTarget_clone(orig);
20381 return nativeResponseValue;
20383 // enum LDKConfirmationTarget ConfirmationTarget_background(void);
20385 export function ConfirmationTarget_background(): ConfirmationTarget {
20386 if(!isWasmInitialized) {
20387 throw new Error("initializeWasm() must be awaited first!");
20389 const nativeResponseValue = wasm.TS_ConfirmationTarget_background();
20390 return nativeResponseValue;
20392 // enum LDKConfirmationTarget ConfirmationTarget_normal(void);
20394 export function ConfirmationTarget_normal(): ConfirmationTarget {
20395 if(!isWasmInitialized) {
20396 throw new Error("initializeWasm() must be awaited first!");
20398 const nativeResponseValue = wasm.TS_ConfirmationTarget_normal();
20399 return nativeResponseValue;
20401 // enum LDKConfirmationTarget ConfirmationTarget_high_priority(void);
20403 export function ConfirmationTarget_high_priority(): ConfirmationTarget {
20404 if(!isWasmInitialized) {
20405 throw new Error("initializeWasm() must be awaited first!");
20407 const nativeResponseValue = wasm.TS_ConfirmationTarget_high_priority();
20408 return nativeResponseValue;
20410 // uint64_t ConfirmationTarget_hash(const enum LDKConfirmationTarget *NONNULL_PTR o);
20412 export function ConfirmationTarget_hash(o: bigint): bigint {
20413 if(!isWasmInitialized) {
20414 throw new Error("initializeWasm() must be awaited first!");
20416 const nativeResponseValue = wasm.TS_ConfirmationTarget_hash(o);
20417 return nativeResponseValue;
20419 // bool ConfirmationTarget_eq(const enum LDKConfirmationTarget *NONNULL_PTR a, const enum LDKConfirmationTarget *NONNULL_PTR b);
20421 export function ConfirmationTarget_eq(a: bigint, b: bigint): boolean {
20422 if(!isWasmInitialized) {
20423 throw new Error("initializeWasm() must be awaited first!");
20425 const nativeResponseValue = wasm.TS_ConfirmationTarget_eq(a, b);
20426 return nativeResponseValue;
20428 // void FeeEstimator_free(struct LDKFeeEstimator this_ptr);
20430 export function FeeEstimator_free(this_ptr: bigint): void {
20431 if(!isWasmInitialized) {
20432 throw new Error("initializeWasm() must be awaited first!");
20434 const nativeResponseValue = wasm.TS_FeeEstimator_free(this_ptr);
20435 // debug statements here
20437 // void MonitorUpdateId_free(struct LDKMonitorUpdateId this_obj);
20439 export function MonitorUpdateId_free(this_obj: bigint): void {
20440 if(!isWasmInitialized) {
20441 throw new Error("initializeWasm() must be awaited first!");
20443 const nativeResponseValue = wasm.TS_MonitorUpdateId_free(this_obj);
20444 // debug statements here
20446 // uint64_t MonitorUpdateId_clone_ptr(LDKMonitorUpdateId *NONNULL_PTR arg);
20448 export function MonitorUpdateId_clone_ptr(arg: bigint): bigint {
20449 if(!isWasmInitialized) {
20450 throw new Error("initializeWasm() must be awaited first!");
20452 const nativeResponseValue = wasm.TS_MonitorUpdateId_clone_ptr(arg);
20453 return nativeResponseValue;
20455 // struct LDKMonitorUpdateId MonitorUpdateId_clone(const struct LDKMonitorUpdateId *NONNULL_PTR orig);
20457 export function MonitorUpdateId_clone(orig: bigint): bigint {
20458 if(!isWasmInitialized) {
20459 throw new Error("initializeWasm() must be awaited first!");
20461 const nativeResponseValue = wasm.TS_MonitorUpdateId_clone(orig);
20462 return nativeResponseValue;
20464 // uint64_t MonitorUpdateId_hash(const struct LDKMonitorUpdateId *NONNULL_PTR o);
20466 export function MonitorUpdateId_hash(o: bigint): bigint {
20467 if(!isWasmInitialized) {
20468 throw new Error("initializeWasm() must be awaited first!");
20470 const nativeResponseValue = wasm.TS_MonitorUpdateId_hash(o);
20471 return nativeResponseValue;
20473 // bool MonitorUpdateId_eq(const struct LDKMonitorUpdateId *NONNULL_PTR a, const struct LDKMonitorUpdateId *NONNULL_PTR b);
20475 export function MonitorUpdateId_eq(a: bigint, b: bigint): boolean {
20476 if(!isWasmInitialized) {
20477 throw new Error("initializeWasm() must be awaited first!");
20479 const nativeResponseValue = wasm.TS_MonitorUpdateId_eq(a, b);
20480 return nativeResponseValue;
20482 // void Persist_free(struct LDKPersist this_ptr);
20484 export function Persist_free(this_ptr: bigint): void {
20485 if(!isWasmInitialized) {
20486 throw new Error("initializeWasm() must be awaited first!");
20488 const nativeResponseValue = wasm.TS_Persist_free(this_ptr);
20489 // debug statements here
20491 // void LockedChannelMonitor_free(struct LDKLockedChannelMonitor this_obj);
20493 export function LockedChannelMonitor_free(this_obj: bigint): void {
20494 if(!isWasmInitialized) {
20495 throw new Error("initializeWasm() must be awaited first!");
20497 const nativeResponseValue = wasm.TS_LockedChannelMonitor_free(this_obj);
20498 // debug statements here
20500 // void ChainMonitor_free(struct LDKChainMonitor this_obj);
20502 export function ChainMonitor_free(this_obj: bigint): void {
20503 if(!isWasmInitialized) {
20504 throw new Error("initializeWasm() must be awaited first!");
20506 const nativeResponseValue = wasm.TS_ChainMonitor_free(this_obj);
20507 // debug statements here
20509 // MUST_USE_RES struct LDKChainMonitor ChainMonitor_new(struct LDKCOption_FilterZ chain_source, struct LDKBroadcasterInterface broadcaster, struct LDKLogger logger, struct LDKFeeEstimator feeest, struct LDKPersist persister);
20511 export function ChainMonitor_new(chain_source: bigint, broadcaster: bigint, logger: bigint, feeest: bigint, persister: bigint): bigint {
20512 if(!isWasmInitialized) {
20513 throw new Error("initializeWasm() must be awaited first!");
20515 const nativeResponseValue = wasm.TS_ChainMonitor_new(chain_source, broadcaster, logger, feeest, persister);
20516 return nativeResponseValue;
20518 // MUST_USE_RES struct LDKCVec_BalanceZ ChainMonitor_get_claimable_balances(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKCVec_ChannelDetailsZ ignored_channels);
20520 export function ChainMonitor_get_claimable_balances(this_arg: bigint, ignored_channels: number): number {
20521 if(!isWasmInitialized) {
20522 throw new Error("initializeWasm() must be awaited first!");
20524 const nativeResponseValue = wasm.TS_ChainMonitor_get_claimable_balances(this_arg, ignored_channels);
20525 return nativeResponseValue;
20527 // MUST_USE_RES struct LDKCResult_LockedChannelMonitorNoneZ ChainMonitor_get_monitor(const struct LDKChainMonitor *NONNULL_PTR this_arg, struct LDKOutPoint funding_txo);
20529 export function ChainMonitor_get_monitor(this_arg: bigint, funding_txo: bigint): bigint {
20530 if(!isWasmInitialized) {
20531 throw new Error("initializeWasm() must be awaited first!");
20533 const nativeResponseValue = wasm.TS_ChainMonitor_get_monitor(this_arg, funding_txo);
20534 return nativeResponseValue;
20536 // MUST_USE_RES struct LDKCVec_OutPointZ ChainMonitor_list_monitors(const struct LDKChainMonitor *NONNULL_PTR this_arg);
20538 export function ChainMonitor_list_monitors(this_arg: bigint): number {
20539 if(!isWasmInitialized) {
20540 throw new Error("initializeWasm() must be awaited first!");
20542 const nativeResponseValue = wasm.TS_ChainMonitor_list_monitors(this_arg);
20543 return nativeResponseValue;
20545 // MUST_USE_RES struct LDKCVec_C2Tuple_OutPointCVec_MonitorUpdateIdZZZ ChainMonitor_list_pending_monitor_updates(const struct LDKChainMonitor *NONNULL_PTR this_arg);
20547 export function ChainMonitor_list_pending_monitor_updates(this_arg: bigint): number {
20548 if(!isWasmInitialized) {
20549 throw new Error("initializeWasm() must be awaited first!");
20551 const nativeResponseValue = wasm.TS_ChainMonitor_list_pending_monitor_updates(this_arg);
20552 return nativeResponseValue;
20554 // 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);
20556 export function ChainMonitor_channel_monitor_updated(this_arg: bigint, funding_txo: bigint, completed_update_id: bigint): bigint {
20557 if(!isWasmInitialized) {
20558 throw new Error("initializeWasm() must be awaited first!");
20560 const nativeResponseValue = wasm.TS_ChainMonitor_channel_monitor_updated(this_arg, funding_txo, completed_update_id);
20561 return nativeResponseValue;
20563 // MUST_USE_RES struct LDKFuture ChainMonitor_get_update_future(const struct LDKChainMonitor *NONNULL_PTR this_arg);
20565 export function ChainMonitor_get_update_future(this_arg: bigint): bigint {
20566 if(!isWasmInitialized) {
20567 throw new Error("initializeWasm() must be awaited first!");
20569 const nativeResponseValue = wasm.TS_ChainMonitor_get_update_future(this_arg);
20570 return nativeResponseValue;
20572 // void ChainMonitor_rebroadcast_pending_claims(const struct LDKChainMonitor *NONNULL_PTR this_arg);
20574 export function ChainMonitor_rebroadcast_pending_claims(this_arg: bigint): void {
20575 if(!isWasmInitialized) {
20576 throw new Error("initializeWasm() must be awaited first!");
20578 const nativeResponseValue = wasm.TS_ChainMonitor_rebroadcast_pending_claims(this_arg);
20579 // debug statements here
20581 // struct LDKListen ChainMonitor_as_Listen(const struct LDKChainMonitor *NONNULL_PTR this_arg);
20583 export function ChainMonitor_as_Listen(this_arg: bigint): bigint {
20584 if(!isWasmInitialized) {
20585 throw new Error("initializeWasm() must be awaited first!");
20587 const nativeResponseValue = wasm.TS_ChainMonitor_as_Listen(this_arg);
20588 return nativeResponseValue;
20590 // struct LDKConfirm ChainMonitor_as_Confirm(const struct LDKChainMonitor *NONNULL_PTR this_arg);
20592 export function ChainMonitor_as_Confirm(this_arg: bigint): bigint {
20593 if(!isWasmInitialized) {
20594 throw new Error("initializeWasm() must be awaited first!");
20596 const nativeResponseValue = wasm.TS_ChainMonitor_as_Confirm(this_arg);
20597 return nativeResponseValue;
20599 // struct LDKWatch ChainMonitor_as_Watch(const struct LDKChainMonitor *NONNULL_PTR this_arg);
20601 export function ChainMonitor_as_Watch(this_arg: bigint): bigint {
20602 if(!isWasmInitialized) {
20603 throw new Error("initializeWasm() must be awaited first!");
20605 const nativeResponseValue = wasm.TS_ChainMonitor_as_Watch(this_arg);
20606 return nativeResponseValue;
20608 // struct LDKEventsProvider ChainMonitor_as_EventsProvider(const struct LDKChainMonitor *NONNULL_PTR this_arg);
20610 export function ChainMonitor_as_EventsProvider(this_arg: bigint): bigint {
20611 if(!isWasmInitialized) {
20612 throw new Error("initializeWasm() must be awaited first!");
20614 const nativeResponseValue = wasm.TS_ChainMonitor_as_EventsProvider(this_arg);
20615 return nativeResponseValue;
20617 // void ChannelMonitorUpdate_free(struct LDKChannelMonitorUpdate this_obj);
20619 export function ChannelMonitorUpdate_free(this_obj: bigint): void {
20620 if(!isWasmInitialized) {
20621 throw new Error("initializeWasm() must be awaited first!");
20623 const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_free(this_obj);
20624 // debug statements here
20626 // uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr);
20628 export function ChannelMonitorUpdate_get_update_id(this_ptr: bigint): bigint {
20629 if(!isWasmInitialized) {
20630 throw new Error("initializeWasm() must be awaited first!");
20632 const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_get_update_id(this_ptr);
20633 return nativeResponseValue;
20635 // void ChannelMonitorUpdate_set_update_id(struct LDKChannelMonitorUpdate *NONNULL_PTR this_ptr, uint64_t val);
20637 export function ChannelMonitorUpdate_set_update_id(this_ptr: bigint, val: bigint): void {
20638 if(!isWasmInitialized) {
20639 throw new Error("initializeWasm() must be awaited first!");
20641 const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_set_update_id(this_ptr, val);
20642 // debug statements here
20644 // uint64_t ChannelMonitorUpdate_clone_ptr(LDKChannelMonitorUpdate *NONNULL_PTR arg);
20646 export function ChannelMonitorUpdate_clone_ptr(arg: bigint): bigint {
20647 if(!isWasmInitialized) {
20648 throw new Error("initializeWasm() must be awaited first!");
20650 const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone_ptr(arg);
20651 return nativeResponseValue;
20653 // struct LDKChannelMonitorUpdate ChannelMonitorUpdate_clone(const struct LDKChannelMonitorUpdate *NONNULL_PTR orig);
20655 export function ChannelMonitorUpdate_clone(orig: bigint): bigint {
20656 if(!isWasmInitialized) {
20657 throw new Error("initializeWasm() must be awaited first!");
20659 const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_clone(orig);
20660 return nativeResponseValue;
20662 // bool ChannelMonitorUpdate_eq(const struct LDKChannelMonitorUpdate *NONNULL_PTR a, const struct LDKChannelMonitorUpdate *NONNULL_PTR b);
20664 export function ChannelMonitorUpdate_eq(a: bigint, b: bigint): boolean {
20665 if(!isWasmInitialized) {
20666 throw new Error("initializeWasm() must be awaited first!");
20668 const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_eq(a, b);
20669 return nativeResponseValue;
20671 // struct LDKCVec_u8Z ChannelMonitorUpdate_write(const struct LDKChannelMonitorUpdate *NONNULL_PTR obj);
20673 export function ChannelMonitorUpdate_write(obj: bigint): number {
20674 if(!isWasmInitialized) {
20675 throw new Error("initializeWasm() must be awaited first!");
20677 const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_write(obj);
20678 return nativeResponseValue;
20680 // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ ChannelMonitorUpdate_read(struct LDKu8slice ser);
20682 export function ChannelMonitorUpdate_read(ser: number): bigint {
20683 if(!isWasmInitialized) {
20684 throw new Error("initializeWasm() must be awaited first!");
20686 const nativeResponseValue = wasm.TS_ChannelMonitorUpdate_read(ser);
20687 return nativeResponseValue;
20689 // void MonitorEvent_free(struct LDKMonitorEvent this_ptr);
20691 export function MonitorEvent_free(this_ptr: bigint): void {
20692 if(!isWasmInitialized) {
20693 throw new Error("initializeWasm() must be awaited first!");
20695 const nativeResponseValue = wasm.TS_MonitorEvent_free(this_ptr);
20696 // debug statements here
20698 // uint64_t MonitorEvent_clone_ptr(LDKMonitorEvent *NONNULL_PTR arg);
20700 export function MonitorEvent_clone_ptr(arg: bigint): bigint {
20701 if(!isWasmInitialized) {
20702 throw new Error("initializeWasm() must be awaited first!");
20704 const nativeResponseValue = wasm.TS_MonitorEvent_clone_ptr(arg);
20705 return nativeResponseValue;
20707 // struct LDKMonitorEvent MonitorEvent_clone(const struct LDKMonitorEvent *NONNULL_PTR orig);
20709 export function MonitorEvent_clone(orig: bigint): bigint {
20710 if(!isWasmInitialized) {
20711 throw new Error("initializeWasm() must be awaited first!");
20713 const nativeResponseValue = wasm.TS_MonitorEvent_clone(orig);
20714 return nativeResponseValue;
20716 // struct LDKMonitorEvent MonitorEvent_htlcevent(struct LDKHTLCUpdate a);
20718 export function MonitorEvent_htlcevent(a: bigint): bigint {
20719 if(!isWasmInitialized) {
20720 throw new Error("initializeWasm() must be awaited first!");
20722 const nativeResponseValue = wasm.TS_MonitorEvent_htlcevent(a);
20723 return nativeResponseValue;
20725 // struct LDKMonitorEvent MonitorEvent_commitment_tx_confirmed(struct LDKOutPoint a);
20727 export function MonitorEvent_commitment_tx_confirmed(a: bigint): bigint {
20728 if(!isWasmInitialized) {
20729 throw new Error("initializeWasm() must be awaited first!");
20731 const nativeResponseValue = wasm.TS_MonitorEvent_commitment_tx_confirmed(a);
20732 return nativeResponseValue;
20734 // struct LDKMonitorEvent MonitorEvent_completed(struct LDKOutPoint funding_txo, uint64_t monitor_update_id);
20736 export function MonitorEvent_completed(funding_txo: bigint, monitor_update_id: bigint): bigint {
20737 if(!isWasmInitialized) {
20738 throw new Error("initializeWasm() must be awaited first!");
20740 const nativeResponseValue = wasm.TS_MonitorEvent_completed(funding_txo, monitor_update_id);
20741 return nativeResponseValue;
20743 // struct LDKMonitorEvent MonitorEvent_update_failed(struct LDKOutPoint a);
20745 export function MonitorEvent_update_failed(a: bigint): bigint {
20746 if(!isWasmInitialized) {
20747 throw new Error("initializeWasm() must be awaited first!");
20749 const nativeResponseValue = wasm.TS_MonitorEvent_update_failed(a);
20750 return nativeResponseValue;
20752 // bool MonitorEvent_eq(const struct LDKMonitorEvent *NONNULL_PTR a, const struct LDKMonitorEvent *NONNULL_PTR b);
20754 export function MonitorEvent_eq(a: bigint, b: bigint): boolean {
20755 if(!isWasmInitialized) {
20756 throw new Error("initializeWasm() must be awaited first!");
20758 const nativeResponseValue = wasm.TS_MonitorEvent_eq(a, b);
20759 return nativeResponseValue;
20761 // struct LDKCVec_u8Z MonitorEvent_write(const struct LDKMonitorEvent *NONNULL_PTR obj);
20763 export function MonitorEvent_write(obj: bigint): number {
20764 if(!isWasmInitialized) {
20765 throw new Error("initializeWasm() must be awaited first!");
20767 const nativeResponseValue = wasm.TS_MonitorEvent_write(obj);
20768 return nativeResponseValue;
20770 // struct LDKCResult_COption_MonitorEventZDecodeErrorZ MonitorEvent_read(struct LDKu8slice ser);
20772 export function MonitorEvent_read(ser: number): bigint {
20773 if(!isWasmInitialized) {
20774 throw new Error("initializeWasm() must be awaited first!");
20776 const nativeResponseValue = wasm.TS_MonitorEvent_read(ser);
20777 return nativeResponseValue;
20779 // void HTLCUpdate_free(struct LDKHTLCUpdate this_obj);
20781 export function HTLCUpdate_free(this_obj: bigint): void {
20782 if(!isWasmInitialized) {
20783 throw new Error("initializeWasm() must be awaited first!");
20785 const nativeResponseValue = wasm.TS_HTLCUpdate_free(this_obj);
20786 // debug statements here
20788 // uint64_t HTLCUpdate_clone_ptr(LDKHTLCUpdate *NONNULL_PTR arg);
20790 export function HTLCUpdate_clone_ptr(arg: bigint): bigint {
20791 if(!isWasmInitialized) {
20792 throw new Error("initializeWasm() must be awaited first!");
20794 const nativeResponseValue = wasm.TS_HTLCUpdate_clone_ptr(arg);
20795 return nativeResponseValue;
20797 // struct LDKHTLCUpdate HTLCUpdate_clone(const struct LDKHTLCUpdate *NONNULL_PTR orig);
20799 export function HTLCUpdate_clone(orig: bigint): bigint {
20800 if(!isWasmInitialized) {
20801 throw new Error("initializeWasm() must be awaited first!");
20803 const nativeResponseValue = wasm.TS_HTLCUpdate_clone(orig);
20804 return nativeResponseValue;
20806 // bool HTLCUpdate_eq(const struct LDKHTLCUpdate *NONNULL_PTR a, const struct LDKHTLCUpdate *NONNULL_PTR b);
20808 export function HTLCUpdate_eq(a: bigint, b: bigint): boolean {
20809 if(!isWasmInitialized) {
20810 throw new Error("initializeWasm() must be awaited first!");
20812 const nativeResponseValue = wasm.TS_HTLCUpdate_eq(a, b);
20813 return nativeResponseValue;
20815 // struct LDKCVec_u8Z HTLCUpdate_write(const struct LDKHTLCUpdate *NONNULL_PTR obj);
20817 export function HTLCUpdate_write(obj: bigint): number {
20818 if(!isWasmInitialized) {
20819 throw new Error("initializeWasm() must be awaited first!");
20821 const nativeResponseValue = wasm.TS_HTLCUpdate_write(obj);
20822 return nativeResponseValue;
20824 // struct LDKCResult_HTLCUpdateDecodeErrorZ HTLCUpdate_read(struct LDKu8slice ser);
20826 export function HTLCUpdate_read(ser: number): bigint {
20827 if(!isWasmInitialized) {
20828 throw new Error("initializeWasm() must be awaited first!");
20830 const nativeResponseValue = wasm.TS_HTLCUpdate_read(ser);
20831 return nativeResponseValue;
20833 // void Balance_free(struct LDKBalance this_ptr);
20835 export function Balance_free(this_ptr: bigint): void {
20836 if(!isWasmInitialized) {
20837 throw new Error("initializeWasm() must be awaited first!");
20839 const nativeResponseValue = wasm.TS_Balance_free(this_ptr);
20840 // debug statements here
20842 // uint64_t Balance_clone_ptr(LDKBalance *NONNULL_PTR arg);
20844 export function Balance_clone_ptr(arg: bigint): bigint {
20845 if(!isWasmInitialized) {
20846 throw new Error("initializeWasm() must be awaited first!");
20848 const nativeResponseValue = wasm.TS_Balance_clone_ptr(arg);
20849 return nativeResponseValue;
20851 // struct LDKBalance Balance_clone(const struct LDKBalance *NONNULL_PTR orig);
20853 export function Balance_clone(orig: bigint): bigint {
20854 if(!isWasmInitialized) {
20855 throw new Error("initializeWasm() must be awaited first!");
20857 const nativeResponseValue = wasm.TS_Balance_clone(orig);
20858 return nativeResponseValue;
20860 // struct LDKBalance Balance_claimable_on_channel_close(uint64_t claimable_amount_satoshis);
20862 export function Balance_claimable_on_channel_close(claimable_amount_satoshis: bigint): bigint {
20863 if(!isWasmInitialized) {
20864 throw new Error("initializeWasm() must be awaited first!");
20866 const nativeResponseValue = wasm.TS_Balance_claimable_on_channel_close(claimable_amount_satoshis);
20867 return nativeResponseValue;
20869 // struct LDKBalance Balance_claimable_awaiting_confirmations(uint64_t claimable_amount_satoshis, uint32_t confirmation_height);
20871 export function Balance_claimable_awaiting_confirmations(claimable_amount_satoshis: bigint, confirmation_height: number): bigint {
20872 if(!isWasmInitialized) {
20873 throw new Error("initializeWasm() must be awaited first!");
20875 const nativeResponseValue = wasm.TS_Balance_claimable_awaiting_confirmations(claimable_amount_satoshis, confirmation_height);
20876 return nativeResponseValue;
20878 // struct LDKBalance Balance_contentious_claimable(uint64_t claimable_amount_satoshis, uint32_t timeout_height);
20880 export function Balance_contentious_claimable(claimable_amount_satoshis: bigint, timeout_height: number): bigint {
20881 if(!isWasmInitialized) {
20882 throw new Error("initializeWasm() must be awaited first!");
20884 const nativeResponseValue = wasm.TS_Balance_contentious_claimable(claimable_amount_satoshis, timeout_height);
20885 return nativeResponseValue;
20887 // struct LDKBalance Balance_maybe_timeout_claimable_htlc(uint64_t claimable_amount_satoshis, uint32_t claimable_height);
20889 export function Balance_maybe_timeout_claimable_htlc(claimable_amount_satoshis: bigint, claimable_height: number): bigint {
20890 if(!isWasmInitialized) {
20891 throw new Error("initializeWasm() must be awaited first!");
20893 const nativeResponseValue = wasm.TS_Balance_maybe_timeout_claimable_htlc(claimable_amount_satoshis, claimable_height);
20894 return nativeResponseValue;
20896 // struct LDKBalance Balance_maybe_preimage_claimable_htlc(uint64_t claimable_amount_satoshis, uint32_t expiry_height);
20898 export function Balance_maybe_preimage_claimable_htlc(claimable_amount_satoshis: bigint, expiry_height: number): bigint {
20899 if(!isWasmInitialized) {
20900 throw new Error("initializeWasm() must be awaited first!");
20902 const nativeResponseValue = wasm.TS_Balance_maybe_preimage_claimable_htlc(claimable_amount_satoshis, expiry_height);
20903 return nativeResponseValue;
20905 // struct LDKBalance Balance_counterparty_revoked_output_claimable(uint64_t claimable_amount_satoshis);
20907 export function Balance_counterparty_revoked_output_claimable(claimable_amount_satoshis: bigint): bigint {
20908 if(!isWasmInitialized) {
20909 throw new Error("initializeWasm() must be awaited first!");
20911 const nativeResponseValue = wasm.TS_Balance_counterparty_revoked_output_claimable(claimable_amount_satoshis);
20912 return nativeResponseValue;
20914 // bool Balance_eq(const struct LDKBalance *NONNULL_PTR a, const struct LDKBalance *NONNULL_PTR b);
20916 export function Balance_eq(a: bigint, b: bigint): boolean {
20917 if(!isWasmInitialized) {
20918 throw new Error("initializeWasm() must be awaited first!");
20920 const nativeResponseValue = wasm.TS_Balance_eq(a, b);
20921 return nativeResponseValue;
20923 // void ChannelMonitor_free(struct LDKChannelMonitor this_obj);
20925 export function ChannelMonitor_free(this_obj: bigint): void {
20926 if(!isWasmInitialized) {
20927 throw new Error("initializeWasm() must be awaited first!");
20929 const nativeResponseValue = wasm.TS_ChannelMonitor_free(this_obj);
20930 // debug statements here
20932 // uint64_t ChannelMonitor_clone_ptr(LDKChannelMonitor *NONNULL_PTR arg);
20934 export function ChannelMonitor_clone_ptr(arg: bigint): bigint {
20935 if(!isWasmInitialized) {
20936 throw new Error("initializeWasm() must be awaited first!");
20938 const nativeResponseValue = wasm.TS_ChannelMonitor_clone_ptr(arg);
20939 return nativeResponseValue;
20941 // struct LDKChannelMonitor ChannelMonitor_clone(const struct LDKChannelMonitor *NONNULL_PTR orig);
20943 export function ChannelMonitor_clone(orig: bigint): bigint {
20944 if(!isWasmInitialized) {
20945 throw new Error("initializeWasm() must be awaited first!");
20947 const nativeResponseValue = wasm.TS_ChannelMonitor_clone(orig);
20948 return nativeResponseValue;
20950 // struct LDKCVec_u8Z ChannelMonitor_write(const struct LDKChannelMonitor *NONNULL_PTR obj);
20952 export function ChannelMonitor_write(obj: bigint): number {
20953 if(!isWasmInitialized) {
20954 throw new Error("initializeWasm() must be awaited first!");
20956 const nativeResponseValue = wasm.TS_ChannelMonitor_write(obj);
20957 return nativeResponseValue;
20959 // 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, struct LDKFeeEstimator fee_estimator, const struct LDKLogger *NONNULL_PTR logger);
20961 export function ChannelMonitor_update_monitor(this_arg: bigint, updates: bigint, broadcaster: bigint, fee_estimator: bigint, logger: bigint): bigint {
20962 if(!isWasmInitialized) {
20963 throw new Error("initializeWasm() must be awaited first!");
20965 const nativeResponseValue = wasm.TS_ChannelMonitor_update_monitor(this_arg, updates, broadcaster, fee_estimator, logger);
20966 return nativeResponseValue;
20968 // MUST_USE_RES uint64_t ChannelMonitor_get_latest_update_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
20970 export function ChannelMonitor_get_latest_update_id(this_arg: bigint): bigint {
20971 if(!isWasmInitialized) {
20972 throw new Error("initializeWasm() must be awaited first!");
20974 const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_update_id(this_arg);
20975 return nativeResponseValue;
20977 // MUST_USE_RES struct LDKC2Tuple_OutPointScriptZ ChannelMonitor_get_funding_txo(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
20979 export function ChannelMonitor_get_funding_txo(this_arg: bigint): bigint {
20980 if(!isWasmInitialized) {
20981 throw new Error("initializeWasm() must be awaited first!");
20983 const nativeResponseValue = wasm.TS_ChannelMonitor_get_funding_txo(this_arg);
20984 return nativeResponseValue;
20986 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ ChannelMonitor_get_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
20988 export function ChannelMonitor_get_outputs_to_watch(this_arg: bigint): number {
20989 if(!isWasmInitialized) {
20990 throw new Error("initializeWasm() must be awaited first!");
20992 const nativeResponseValue = wasm.TS_ChannelMonitor_get_outputs_to_watch(this_arg);
20993 return nativeResponseValue;
20995 // void ChannelMonitor_load_outputs_to_watch(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const struct LDKFilter *NONNULL_PTR filter);
20997 export function ChannelMonitor_load_outputs_to_watch(this_arg: bigint, filter: bigint): void {
20998 if(!isWasmInitialized) {
20999 throw new Error("initializeWasm() must be awaited first!");
21001 const nativeResponseValue = wasm.TS_ChannelMonitor_load_outputs_to_watch(this_arg, filter);
21002 // debug statements here
21004 // MUST_USE_RES struct LDKCVec_MonitorEventZ ChannelMonitor_get_and_clear_pending_monitor_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
21006 export function ChannelMonitor_get_and_clear_pending_monitor_events(this_arg: bigint): number {
21007 if(!isWasmInitialized) {
21008 throw new Error("initializeWasm() must be awaited first!");
21010 const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_monitor_events(this_arg);
21011 return nativeResponseValue;
21013 // MUST_USE_RES struct LDKCVec_EventZ ChannelMonitor_get_and_clear_pending_events(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
21015 export function ChannelMonitor_get_and_clear_pending_events(this_arg: bigint): number {
21016 if(!isWasmInitialized) {
21017 throw new Error("initializeWasm() must be awaited first!");
21019 const nativeResponseValue = wasm.TS_ChannelMonitor_get_and_clear_pending_events(this_arg);
21020 return nativeResponseValue;
21022 // MUST_USE_RES struct LDKPublicKey ChannelMonitor_get_counterparty_node_id(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
21024 export function ChannelMonitor_get_counterparty_node_id(this_arg: bigint): number {
21025 if(!isWasmInitialized) {
21026 throw new Error("initializeWasm() must be awaited first!");
21028 const nativeResponseValue = wasm.TS_ChannelMonitor_get_counterparty_node_id(this_arg);
21029 return nativeResponseValue;
21031 // 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);
21033 export function ChannelMonitor_get_latest_holder_commitment_txn(this_arg: bigint, logger: bigint): number {
21034 if(!isWasmInitialized) {
21035 throw new Error("initializeWasm() must be awaited first!");
21037 const nativeResponseValue = wasm.TS_ChannelMonitor_get_latest_holder_commitment_txn(this_arg, logger);
21038 return nativeResponseValue;
21040 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_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, struct LDKLogger logger);
21042 export function ChannelMonitor_block_connected(this_arg: bigint, header: number, txdata: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): number {
21043 if(!isWasmInitialized) {
21044 throw new Error("initializeWasm() must be awaited first!");
21046 const nativeResponseValue = wasm.TS_ChannelMonitor_block_connected(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
21047 return nativeResponseValue;
21049 // 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, struct LDKLogger logger);
21051 export function ChannelMonitor_block_disconnected(this_arg: bigint, header: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void {
21052 if(!isWasmInitialized) {
21053 throw new Error("initializeWasm() must be awaited first!");
21055 const nativeResponseValue = wasm.TS_ChannelMonitor_block_disconnected(this_arg, header, height, broadcaster, fee_estimator, logger);
21056 // debug statements here
21058 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_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, struct LDKLogger logger);
21060 export function ChannelMonitor_transactions_confirmed(this_arg: bigint, header: number, txdata: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): number {
21061 if(!isWasmInitialized) {
21062 throw new Error("initializeWasm() must be awaited first!");
21064 const nativeResponseValue = wasm.TS_ChannelMonitor_transactions_confirmed(this_arg, header, txdata, height, broadcaster, fee_estimator, logger);
21065 return nativeResponseValue;
21067 // void ChannelMonitor_transaction_unconfirmed(const struct LDKChannelMonitor *NONNULL_PTR this_arg, const uint8_t (*txid)[32], struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
21069 export function ChannelMonitor_transaction_unconfirmed(this_arg: bigint, txid: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void {
21070 if(!isWasmInitialized) {
21071 throw new Error("initializeWasm() must be awaited first!");
21073 const nativeResponseValue = wasm.TS_ChannelMonitor_transaction_unconfirmed(this_arg, txid, broadcaster, fee_estimator, logger);
21074 // debug statements here
21076 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidCVec_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, struct LDKLogger logger);
21078 export function ChannelMonitor_best_block_updated(this_arg: bigint, header: number, height: number, broadcaster: bigint, fee_estimator: bigint, logger: bigint): number {
21079 if(!isWasmInitialized) {
21080 throw new Error("initializeWasm() must be awaited first!");
21082 const nativeResponseValue = wasm.TS_ChannelMonitor_best_block_updated(this_arg, header, height, broadcaster, fee_estimator, logger);
21083 return nativeResponseValue;
21085 // MUST_USE_RES struct LDKCVec_C2Tuple_TxidBlockHashZZ ChannelMonitor_get_relevant_txids(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
21087 export function ChannelMonitor_get_relevant_txids(this_arg: bigint): number {
21088 if(!isWasmInitialized) {
21089 throw new Error("initializeWasm() must be awaited first!");
21091 const nativeResponseValue = wasm.TS_ChannelMonitor_get_relevant_txids(this_arg);
21092 return nativeResponseValue;
21094 // MUST_USE_RES struct LDKBestBlock ChannelMonitor_current_best_block(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
21096 export function ChannelMonitor_current_best_block(this_arg: bigint): bigint {
21097 if(!isWasmInitialized) {
21098 throw new Error("initializeWasm() must be awaited first!");
21100 const nativeResponseValue = wasm.TS_ChannelMonitor_current_best_block(this_arg);
21101 return nativeResponseValue;
21103 // void ChannelMonitor_rebroadcast_pending_claims(const struct LDKChannelMonitor *NONNULL_PTR this_arg, struct LDKBroadcasterInterface broadcaster, struct LDKFeeEstimator fee_estimator, struct LDKLogger logger);
21105 export function ChannelMonitor_rebroadcast_pending_claims(this_arg: bigint, broadcaster: bigint, fee_estimator: bigint, logger: bigint): void {
21106 if(!isWasmInitialized) {
21107 throw new Error("initializeWasm() must be awaited first!");
21109 const nativeResponseValue = wasm.TS_ChannelMonitor_rebroadcast_pending_claims(this_arg, broadcaster, fee_estimator, logger);
21110 // debug statements here
21112 // MUST_USE_RES struct LDKCVec_BalanceZ ChannelMonitor_get_claimable_balances(const struct LDKChannelMonitor *NONNULL_PTR this_arg);
21114 export function ChannelMonitor_get_claimable_balances(this_arg: bigint): number {
21115 if(!isWasmInitialized) {
21116 throw new Error("initializeWasm() must be awaited first!");
21118 const nativeResponseValue = wasm.TS_ChannelMonitor_get_claimable_balances(this_arg);
21119 return nativeResponseValue;
21121 // struct LDKCResult_C2Tuple_BlockHashChannelMonitorZDecodeErrorZ C2Tuple_BlockHashChannelMonitorZ_read(struct LDKu8slice ser, const struct LDKEntropySource *NONNULL_PTR arg_a, const struct LDKSignerProvider *NONNULL_PTR arg_b);
21123 export function C2Tuple_BlockHashChannelMonitorZ_read(ser: number, arg_a: bigint, arg_b: bigint): bigint {
21124 if(!isWasmInitialized) {
21125 throw new Error("initializeWasm() must be awaited first!");
21127 const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelMonitorZ_read(ser, arg_a, arg_b);
21128 return nativeResponseValue;
21130 // void OutPoint_free(struct LDKOutPoint this_obj);
21132 export function OutPoint_free(this_obj: bigint): void {
21133 if(!isWasmInitialized) {
21134 throw new Error("initializeWasm() must be awaited first!");
21136 const nativeResponseValue = wasm.TS_OutPoint_free(this_obj);
21137 // debug statements here
21139 // const uint8_t (*OutPoint_get_txid(const struct LDKOutPoint *NONNULL_PTR this_ptr))[32];
21141 export function OutPoint_get_txid(this_ptr: bigint): number {
21142 if(!isWasmInitialized) {
21143 throw new Error("initializeWasm() must be awaited first!");
21145 const nativeResponseValue = wasm.TS_OutPoint_get_txid(this_ptr);
21146 return nativeResponseValue;
21148 // void OutPoint_set_txid(struct LDKOutPoint *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21150 export function OutPoint_set_txid(this_ptr: bigint, val: number): void {
21151 if(!isWasmInitialized) {
21152 throw new Error("initializeWasm() must be awaited first!");
21154 const nativeResponseValue = wasm.TS_OutPoint_set_txid(this_ptr, val);
21155 // debug statements here
21157 // uint16_t OutPoint_get_index(const struct LDKOutPoint *NONNULL_PTR this_ptr);
21159 export function OutPoint_get_index(this_ptr: bigint): number {
21160 if(!isWasmInitialized) {
21161 throw new Error("initializeWasm() must be awaited first!");
21163 const nativeResponseValue = wasm.TS_OutPoint_get_index(this_ptr);
21164 return nativeResponseValue;
21166 // void OutPoint_set_index(struct LDKOutPoint *NONNULL_PTR this_ptr, uint16_t val);
21168 export function OutPoint_set_index(this_ptr: bigint, val: number): void {
21169 if(!isWasmInitialized) {
21170 throw new Error("initializeWasm() must be awaited first!");
21172 const nativeResponseValue = wasm.TS_OutPoint_set_index(this_ptr, val);
21173 // debug statements here
21175 // MUST_USE_RES struct LDKOutPoint OutPoint_new(struct LDKThirtyTwoBytes txid_arg, uint16_t index_arg);
21177 export function OutPoint_new(txid_arg: number, index_arg: number): bigint {
21178 if(!isWasmInitialized) {
21179 throw new Error("initializeWasm() must be awaited first!");
21181 const nativeResponseValue = wasm.TS_OutPoint_new(txid_arg, index_arg);
21182 return nativeResponseValue;
21184 // uint64_t OutPoint_clone_ptr(LDKOutPoint *NONNULL_PTR arg);
21186 export function OutPoint_clone_ptr(arg: bigint): bigint {
21187 if(!isWasmInitialized) {
21188 throw new Error("initializeWasm() must be awaited first!");
21190 const nativeResponseValue = wasm.TS_OutPoint_clone_ptr(arg);
21191 return nativeResponseValue;
21193 // struct LDKOutPoint OutPoint_clone(const struct LDKOutPoint *NONNULL_PTR orig);
21195 export function OutPoint_clone(orig: bigint): bigint {
21196 if(!isWasmInitialized) {
21197 throw new Error("initializeWasm() must be awaited first!");
21199 const nativeResponseValue = wasm.TS_OutPoint_clone(orig);
21200 return nativeResponseValue;
21202 // bool OutPoint_eq(const struct LDKOutPoint *NONNULL_PTR a, const struct LDKOutPoint *NONNULL_PTR b);
21204 export function OutPoint_eq(a: bigint, b: bigint): boolean {
21205 if(!isWasmInitialized) {
21206 throw new Error("initializeWasm() must be awaited first!");
21208 const nativeResponseValue = wasm.TS_OutPoint_eq(a, b);
21209 return nativeResponseValue;
21211 // uint64_t OutPoint_hash(const struct LDKOutPoint *NONNULL_PTR o);
21213 export function OutPoint_hash(o: bigint): bigint {
21214 if(!isWasmInitialized) {
21215 throw new Error("initializeWasm() must be awaited first!");
21217 const nativeResponseValue = wasm.TS_OutPoint_hash(o);
21218 return nativeResponseValue;
21220 // MUST_USE_RES struct LDKThirtyTwoBytes OutPoint_to_channel_id(const struct LDKOutPoint *NONNULL_PTR this_arg);
21222 export function OutPoint_to_channel_id(this_arg: bigint): number {
21223 if(!isWasmInitialized) {
21224 throw new Error("initializeWasm() must be awaited first!");
21226 const nativeResponseValue = wasm.TS_OutPoint_to_channel_id(this_arg);
21227 return nativeResponseValue;
21229 // struct LDKCVec_u8Z OutPoint_write(const struct LDKOutPoint *NONNULL_PTR obj);
21231 export function OutPoint_write(obj: bigint): number {
21232 if(!isWasmInitialized) {
21233 throw new Error("initializeWasm() must be awaited first!");
21235 const nativeResponseValue = wasm.TS_OutPoint_write(obj);
21236 return nativeResponseValue;
21238 // struct LDKCResult_OutPointDecodeErrorZ OutPoint_read(struct LDKu8slice ser);
21240 export function OutPoint_read(ser: number): bigint {
21241 if(!isWasmInitialized) {
21242 throw new Error("initializeWasm() must be awaited first!");
21244 const nativeResponseValue = wasm.TS_OutPoint_read(ser);
21245 return nativeResponseValue;
21247 // void DelayedPaymentOutputDescriptor_free(struct LDKDelayedPaymentOutputDescriptor this_obj);
21249 export function DelayedPaymentOutputDescriptor_free(this_obj: bigint): void {
21250 if(!isWasmInitialized) {
21251 throw new Error("initializeWasm() must be awaited first!");
21253 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_free(this_obj);
21254 // debug statements here
21256 // struct LDKOutPoint DelayedPaymentOutputDescriptor_get_outpoint(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
21258 export function DelayedPaymentOutputDescriptor_get_outpoint(this_ptr: bigint): bigint {
21259 if(!isWasmInitialized) {
21260 throw new Error("initializeWasm() must be awaited first!");
21262 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_outpoint(this_ptr);
21263 return nativeResponseValue;
21265 // void DelayedPaymentOutputDescriptor_set_outpoint(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
21267 export function DelayedPaymentOutputDescriptor_set_outpoint(this_ptr: bigint, val: bigint): void {
21268 if(!isWasmInitialized) {
21269 throw new Error("initializeWasm() must be awaited first!");
21271 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_outpoint(this_ptr, val);
21272 // debug statements here
21274 // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_per_commitment_point(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
21276 export function DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr: bigint): number {
21277 if(!isWasmInitialized) {
21278 throw new Error("initializeWasm() must be awaited first!");
21280 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_per_commitment_point(this_ptr);
21281 return nativeResponseValue;
21283 // void DelayedPaymentOutputDescriptor_set_per_commitment_point(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21285 export function DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr: bigint, val: number): void {
21286 if(!isWasmInitialized) {
21287 throw new Error("initializeWasm() must be awaited first!");
21289 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_per_commitment_point(this_ptr, val);
21290 // debug statements here
21292 // uint16_t DelayedPaymentOutputDescriptor_get_to_self_delay(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
21294 export function DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr: bigint): number {
21295 if(!isWasmInitialized) {
21296 throw new Error("initializeWasm() must be awaited first!");
21298 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_to_self_delay(this_ptr);
21299 return nativeResponseValue;
21301 // void DelayedPaymentOutputDescriptor_set_to_self_delay(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint16_t val);
21303 export function DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr: bigint, val: number): void {
21304 if(!isWasmInitialized) {
21305 throw new Error("initializeWasm() must be awaited first!");
21307 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_to_self_delay(this_ptr, val);
21308 // debug statements here
21310 // struct LDKTxOut DelayedPaymentOutputDescriptor_get_output(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
21312 export function DelayedPaymentOutputDescriptor_get_output(this_ptr: bigint): bigint {
21313 if(!isWasmInitialized) {
21314 throw new Error("initializeWasm() must be awaited first!");
21316 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_output(this_ptr);
21317 return nativeResponseValue;
21319 // void DelayedPaymentOutputDescriptor_set_output(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
21321 export function DelayedPaymentOutputDescriptor_set_output(this_ptr: bigint, val: bigint): void {
21322 if(!isWasmInitialized) {
21323 throw new Error("initializeWasm() must be awaited first!");
21325 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_output(this_ptr, val);
21326 // debug statements here
21328 // struct LDKPublicKey DelayedPaymentOutputDescriptor_get_revocation_pubkey(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
21330 export function DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr: bigint): number {
21331 if(!isWasmInitialized) {
21332 throw new Error("initializeWasm() must be awaited first!");
21334 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_revocation_pubkey(this_ptr);
21335 return nativeResponseValue;
21337 // void DelayedPaymentOutputDescriptor_set_revocation_pubkey(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKPublicKey val);
21339 export function DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr: bigint, val: number): void {
21340 if(!isWasmInitialized) {
21341 throw new Error("initializeWasm() must be awaited first!");
21343 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_revocation_pubkey(this_ptr, val);
21344 // debug statements here
21346 // const uint8_t (*DelayedPaymentOutputDescriptor_get_channel_keys_id(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
21348 export function DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr: bigint): number {
21349 if(!isWasmInitialized) {
21350 throw new Error("initializeWasm() must be awaited first!");
21352 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
21353 return nativeResponseValue;
21355 // void DelayedPaymentOutputDescriptor_set_channel_keys_id(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21357 export function DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr: bigint, val: number): void {
21358 if(!isWasmInitialized) {
21359 throw new Error("initializeWasm() must be awaited first!");
21361 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
21362 // debug statements here
21364 // uint64_t DelayedPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr);
21366 export function DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: bigint): bigint {
21367 if(!isWasmInitialized) {
21368 throw new Error("initializeWasm() must be awaited first!");
21370 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
21371 return nativeResponseValue;
21373 // void DelayedPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
21375 export function DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: bigint, val: bigint): void {
21376 if(!isWasmInitialized) {
21377 throw new Error("initializeWasm() must be awaited first!");
21379 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
21380 // debug statements here
21382 // 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 LDKPublicKey revocation_pubkey_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg);
21384 export function DelayedPaymentOutputDescriptor_new(outpoint_arg: bigint, per_commitment_point_arg: number, to_self_delay_arg: number, output_arg: bigint, revocation_pubkey_arg: number, channel_keys_id_arg: number, channel_value_satoshis_arg: bigint): bigint {
21385 if(!isWasmInitialized) {
21386 throw new Error("initializeWasm() must be awaited first!");
21388 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);
21389 return nativeResponseValue;
21391 // uint64_t DelayedPaymentOutputDescriptor_clone_ptr(LDKDelayedPaymentOutputDescriptor *NONNULL_PTR arg);
21393 export function DelayedPaymentOutputDescriptor_clone_ptr(arg: bigint): bigint {
21394 if(!isWasmInitialized) {
21395 throw new Error("initializeWasm() must be awaited first!");
21397 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone_ptr(arg);
21398 return nativeResponseValue;
21400 // struct LDKDelayedPaymentOutputDescriptor DelayedPaymentOutputDescriptor_clone(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR orig);
21402 export function DelayedPaymentOutputDescriptor_clone(orig: bigint): bigint {
21403 if(!isWasmInitialized) {
21404 throw new Error("initializeWasm() must be awaited first!");
21406 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_clone(orig);
21407 return nativeResponseValue;
21409 // bool DelayedPaymentOutputDescriptor_eq(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR b);
21411 export function DelayedPaymentOutputDescriptor_eq(a: bigint, b: bigint): boolean {
21412 if(!isWasmInitialized) {
21413 throw new Error("initializeWasm() must be awaited first!");
21415 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_eq(a, b);
21416 return nativeResponseValue;
21418 // struct LDKCVec_u8Z DelayedPaymentOutputDescriptor_write(const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR obj);
21420 export function DelayedPaymentOutputDescriptor_write(obj: bigint): number {
21421 if(!isWasmInitialized) {
21422 throw new Error("initializeWasm() must be awaited first!");
21424 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_write(obj);
21425 return nativeResponseValue;
21427 // struct LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ DelayedPaymentOutputDescriptor_read(struct LDKu8slice ser);
21429 export function DelayedPaymentOutputDescriptor_read(ser: number): bigint {
21430 if(!isWasmInitialized) {
21431 throw new Error("initializeWasm() must be awaited first!");
21433 const nativeResponseValue = wasm.TS_DelayedPaymentOutputDescriptor_read(ser);
21434 return nativeResponseValue;
21436 // void StaticPaymentOutputDescriptor_free(struct LDKStaticPaymentOutputDescriptor this_obj);
21438 export function StaticPaymentOutputDescriptor_free(this_obj: bigint): void {
21439 if(!isWasmInitialized) {
21440 throw new Error("initializeWasm() must be awaited first!");
21442 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_free(this_obj);
21443 // debug statements here
21445 // struct LDKOutPoint StaticPaymentOutputDescriptor_get_outpoint(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
21447 export function StaticPaymentOutputDescriptor_get_outpoint(this_ptr: bigint): bigint {
21448 if(!isWasmInitialized) {
21449 throw new Error("initializeWasm() must be awaited first!");
21451 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_outpoint(this_ptr);
21452 return nativeResponseValue;
21454 // void StaticPaymentOutputDescriptor_set_outpoint(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKOutPoint val);
21456 export function StaticPaymentOutputDescriptor_set_outpoint(this_ptr: bigint, val: bigint): void {
21457 if(!isWasmInitialized) {
21458 throw new Error("initializeWasm() must be awaited first!");
21460 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_outpoint(this_ptr, val);
21461 // debug statements here
21463 // struct LDKTxOut StaticPaymentOutputDescriptor_get_output(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
21465 export function StaticPaymentOutputDescriptor_get_output(this_ptr: bigint): bigint {
21466 if(!isWasmInitialized) {
21467 throw new Error("initializeWasm() must be awaited first!");
21469 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_output(this_ptr);
21470 return nativeResponseValue;
21472 // void StaticPaymentOutputDescriptor_set_output(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKTxOut val);
21474 export function StaticPaymentOutputDescriptor_set_output(this_ptr: bigint, val: bigint): void {
21475 if(!isWasmInitialized) {
21476 throw new Error("initializeWasm() must be awaited first!");
21478 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_output(this_ptr, val);
21479 // debug statements here
21481 // const uint8_t (*StaticPaymentOutputDescriptor_get_channel_keys_id(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr))[32];
21483 export function StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr: bigint): number {
21484 if(!isWasmInitialized) {
21485 throw new Error("initializeWasm() must be awaited first!");
21487 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_keys_id(this_ptr);
21488 return nativeResponseValue;
21490 // void StaticPaymentOutputDescriptor_set_channel_keys_id(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21492 export function StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr: bigint, val: number): void {
21493 if(!isWasmInitialized) {
21494 throw new Error("initializeWasm() must be awaited first!");
21496 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_keys_id(this_ptr, val);
21497 // debug statements here
21499 // uint64_t StaticPaymentOutputDescriptor_get_channel_value_satoshis(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr);
21501 export function StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr: bigint): bigint {
21502 if(!isWasmInitialized) {
21503 throw new Error("initializeWasm() must be awaited first!");
21505 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_get_channel_value_satoshis(this_ptr);
21506 return nativeResponseValue;
21508 // void StaticPaymentOutputDescriptor_set_channel_value_satoshis(struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR this_ptr, uint64_t val);
21510 export function StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr: bigint, val: bigint): void {
21511 if(!isWasmInitialized) {
21512 throw new Error("initializeWasm() must be awaited first!");
21514 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_set_channel_value_satoshis(this_ptr, val);
21515 // debug statements here
21517 // MUST_USE_RES struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_new(struct LDKOutPoint outpoint_arg, struct LDKTxOut output_arg, struct LDKThirtyTwoBytes channel_keys_id_arg, uint64_t channel_value_satoshis_arg);
21519 export function StaticPaymentOutputDescriptor_new(outpoint_arg: bigint, output_arg: bigint, channel_keys_id_arg: number, channel_value_satoshis_arg: bigint): bigint {
21520 if(!isWasmInitialized) {
21521 throw new Error("initializeWasm() must be awaited first!");
21523 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_new(outpoint_arg, output_arg, channel_keys_id_arg, channel_value_satoshis_arg);
21524 return nativeResponseValue;
21526 // uint64_t StaticPaymentOutputDescriptor_clone_ptr(LDKStaticPaymentOutputDescriptor *NONNULL_PTR arg);
21528 export function StaticPaymentOutputDescriptor_clone_ptr(arg: bigint): bigint {
21529 if(!isWasmInitialized) {
21530 throw new Error("initializeWasm() must be awaited first!");
21532 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone_ptr(arg);
21533 return nativeResponseValue;
21535 // struct LDKStaticPaymentOutputDescriptor StaticPaymentOutputDescriptor_clone(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR orig);
21537 export function StaticPaymentOutputDescriptor_clone(orig: bigint): bigint {
21538 if(!isWasmInitialized) {
21539 throw new Error("initializeWasm() must be awaited first!");
21541 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_clone(orig);
21542 return nativeResponseValue;
21544 // bool StaticPaymentOutputDescriptor_eq(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR a, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR b);
21546 export function StaticPaymentOutputDescriptor_eq(a: bigint, b: bigint): boolean {
21547 if(!isWasmInitialized) {
21548 throw new Error("initializeWasm() must be awaited first!");
21550 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_eq(a, b);
21551 return nativeResponseValue;
21553 // struct LDKCVec_u8Z StaticPaymentOutputDescriptor_write(const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR obj);
21555 export function StaticPaymentOutputDescriptor_write(obj: bigint): number {
21556 if(!isWasmInitialized) {
21557 throw new Error("initializeWasm() must be awaited first!");
21559 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_write(obj);
21560 return nativeResponseValue;
21562 // struct LDKCResult_StaticPaymentOutputDescriptorDecodeErrorZ StaticPaymentOutputDescriptor_read(struct LDKu8slice ser);
21564 export function StaticPaymentOutputDescriptor_read(ser: number): bigint {
21565 if(!isWasmInitialized) {
21566 throw new Error("initializeWasm() must be awaited first!");
21568 const nativeResponseValue = wasm.TS_StaticPaymentOutputDescriptor_read(ser);
21569 return nativeResponseValue;
21571 // void SpendableOutputDescriptor_free(struct LDKSpendableOutputDescriptor this_ptr);
21573 export function SpendableOutputDescriptor_free(this_ptr: bigint): void {
21574 if(!isWasmInitialized) {
21575 throw new Error("initializeWasm() must be awaited first!");
21577 const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_free(this_ptr);
21578 // debug statements here
21580 // uint64_t SpendableOutputDescriptor_clone_ptr(LDKSpendableOutputDescriptor *NONNULL_PTR arg);
21582 export function SpendableOutputDescriptor_clone_ptr(arg: bigint): bigint {
21583 if(!isWasmInitialized) {
21584 throw new Error("initializeWasm() must be awaited first!");
21586 const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone_ptr(arg);
21587 return nativeResponseValue;
21589 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_clone(const struct LDKSpendableOutputDescriptor *NONNULL_PTR orig);
21591 export function SpendableOutputDescriptor_clone(orig: bigint): bigint {
21592 if(!isWasmInitialized) {
21593 throw new Error("initializeWasm() must be awaited first!");
21595 const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_clone(orig);
21596 return nativeResponseValue;
21598 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_output(struct LDKOutPoint outpoint, struct LDKTxOut output);
21600 export function SpendableOutputDescriptor_static_output(outpoint: bigint, output: bigint): bigint {
21601 if(!isWasmInitialized) {
21602 throw new Error("initializeWasm() must be awaited first!");
21604 const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_output(outpoint, output);
21605 return nativeResponseValue;
21607 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_delayed_payment_output(struct LDKDelayedPaymentOutputDescriptor a);
21609 export function SpendableOutputDescriptor_delayed_payment_output(a: bigint): bigint {
21610 if(!isWasmInitialized) {
21611 throw new Error("initializeWasm() must be awaited first!");
21613 const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_delayed_payment_output(a);
21614 return nativeResponseValue;
21616 // struct LDKSpendableOutputDescriptor SpendableOutputDescriptor_static_payment_output(struct LDKStaticPaymentOutputDescriptor a);
21618 export function SpendableOutputDescriptor_static_payment_output(a: bigint): bigint {
21619 if(!isWasmInitialized) {
21620 throw new Error("initializeWasm() must be awaited first!");
21622 const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_static_payment_output(a);
21623 return nativeResponseValue;
21625 // bool SpendableOutputDescriptor_eq(const struct LDKSpendableOutputDescriptor *NONNULL_PTR a, const struct LDKSpendableOutputDescriptor *NONNULL_PTR b);
21627 export function SpendableOutputDescriptor_eq(a: bigint, b: bigint): boolean {
21628 if(!isWasmInitialized) {
21629 throw new Error("initializeWasm() must be awaited first!");
21631 const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_eq(a, b);
21632 return nativeResponseValue;
21634 // struct LDKCVec_u8Z SpendableOutputDescriptor_write(const struct LDKSpendableOutputDescriptor *NONNULL_PTR obj);
21636 export function SpendableOutputDescriptor_write(obj: bigint): number {
21637 if(!isWasmInitialized) {
21638 throw new Error("initializeWasm() must be awaited first!");
21640 const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_write(obj);
21641 return nativeResponseValue;
21643 // struct LDKCResult_SpendableOutputDescriptorDecodeErrorZ SpendableOutputDescriptor_read(struct LDKu8slice ser);
21645 export function SpendableOutputDescriptor_read(ser: number): bigint {
21646 if(!isWasmInitialized) {
21647 throw new Error("initializeWasm() must be awaited first!");
21649 const nativeResponseValue = wasm.TS_SpendableOutputDescriptor_read(ser);
21650 return nativeResponseValue;
21652 // void ChannelSigner_free(struct LDKChannelSigner this_ptr);
21654 export function ChannelSigner_free(this_ptr: bigint): void {
21655 if(!isWasmInitialized) {
21656 throw new Error("initializeWasm() must be awaited first!");
21658 const nativeResponseValue = wasm.TS_ChannelSigner_free(this_ptr);
21659 // debug statements here
21661 // void EcdsaChannelSigner_free(struct LDKEcdsaChannelSigner this_ptr);
21663 export function EcdsaChannelSigner_free(this_ptr: bigint): void {
21664 if(!isWasmInitialized) {
21665 throw new Error("initializeWasm() must be awaited first!");
21667 const nativeResponseValue = wasm.TS_EcdsaChannelSigner_free(this_ptr);
21668 // debug statements here
21670 // uint64_t WriteableEcdsaChannelSigner_clone_ptr(LDKWriteableEcdsaChannelSigner *NONNULL_PTR arg);
21672 export function WriteableEcdsaChannelSigner_clone_ptr(arg: bigint): bigint {
21673 if(!isWasmInitialized) {
21674 throw new Error("initializeWasm() must be awaited first!");
21676 const nativeResponseValue = wasm.TS_WriteableEcdsaChannelSigner_clone_ptr(arg);
21677 return nativeResponseValue;
21679 // struct LDKWriteableEcdsaChannelSigner WriteableEcdsaChannelSigner_clone(const struct LDKWriteableEcdsaChannelSigner *NONNULL_PTR orig);
21681 export function WriteableEcdsaChannelSigner_clone(orig: bigint): bigint {
21682 if(!isWasmInitialized) {
21683 throw new Error("initializeWasm() must be awaited first!");
21685 const nativeResponseValue = wasm.TS_WriteableEcdsaChannelSigner_clone(orig);
21686 return nativeResponseValue;
21688 // void WriteableEcdsaChannelSigner_free(struct LDKWriteableEcdsaChannelSigner this_ptr);
21690 export function WriteableEcdsaChannelSigner_free(this_ptr: bigint): void {
21691 if(!isWasmInitialized) {
21692 throw new Error("initializeWasm() must be awaited first!");
21694 const nativeResponseValue = wasm.TS_WriteableEcdsaChannelSigner_free(this_ptr);
21695 // debug statements here
21697 // enum LDKRecipient Recipient_clone(const enum LDKRecipient *NONNULL_PTR orig);
21699 export function Recipient_clone(orig: bigint): Recipient {
21700 if(!isWasmInitialized) {
21701 throw new Error("initializeWasm() must be awaited first!");
21703 const nativeResponseValue = wasm.TS_Recipient_clone(orig);
21704 return nativeResponseValue;
21706 // enum LDKRecipient Recipient_node(void);
21708 export function Recipient_node(): Recipient {
21709 if(!isWasmInitialized) {
21710 throw new Error("initializeWasm() must be awaited first!");
21712 const nativeResponseValue = wasm.TS_Recipient_node();
21713 return nativeResponseValue;
21715 // enum LDKRecipient Recipient_phantom_node(void);
21717 export function Recipient_phantom_node(): Recipient {
21718 if(!isWasmInitialized) {
21719 throw new Error("initializeWasm() must be awaited first!");
21721 const nativeResponseValue = wasm.TS_Recipient_phantom_node();
21722 return nativeResponseValue;
21724 // void EntropySource_free(struct LDKEntropySource this_ptr);
21726 export function EntropySource_free(this_ptr: bigint): void {
21727 if(!isWasmInitialized) {
21728 throw new Error("initializeWasm() must be awaited first!");
21730 const nativeResponseValue = wasm.TS_EntropySource_free(this_ptr);
21731 // debug statements here
21733 // void NodeSigner_free(struct LDKNodeSigner this_ptr);
21735 export function NodeSigner_free(this_ptr: bigint): void {
21736 if(!isWasmInitialized) {
21737 throw new Error("initializeWasm() must be awaited first!");
21739 const nativeResponseValue = wasm.TS_NodeSigner_free(this_ptr);
21740 // debug statements here
21742 // void SignerProvider_free(struct LDKSignerProvider this_ptr);
21744 export function SignerProvider_free(this_ptr: bigint): void {
21745 if(!isWasmInitialized) {
21746 throw new Error("initializeWasm() must be awaited first!");
21748 const nativeResponseValue = wasm.TS_SignerProvider_free(this_ptr);
21749 // debug statements here
21751 // void InMemorySigner_free(struct LDKInMemorySigner this_obj);
21753 export function InMemorySigner_free(this_obj: bigint): void {
21754 if(!isWasmInitialized) {
21755 throw new Error("initializeWasm() must be awaited first!");
21757 const nativeResponseValue = wasm.TS_InMemorySigner_free(this_obj);
21758 // debug statements here
21760 // const uint8_t (*InMemorySigner_get_funding_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
21762 export function InMemorySigner_get_funding_key(this_ptr: bigint): number {
21763 if(!isWasmInitialized) {
21764 throw new Error("initializeWasm() must be awaited first!");
21766 const nativeResponseValue = wasm.TS_InMemorySigner_get_funding_key(this_ptr);
21767 return nativeResponseValue;
21769 // void InMemorySigner_set_funding_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
21771 export function InMemorySigner_set_funding_key(this_ptr: bigint, val: number): void {
21772 if(!isWasmInitialized) {
21773 throw new Error("initializeWasm() must be awaited first!");
21775 const nativeResponseValue = wasm.TS_InMemorySigner_set_funding_key(this_ptr, val);
21776 // debug statements here
21778 // const uint8_t (*InMemorySigner_get_revocation_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
21780 export function InMemorySigner_get_revocation_base_key(this_ptr: bigint): number {
21781 if(!isWasmInitialized) {
21782 throw new Error("initializeWasm() must be awaited first!");
21784 const nativeResponseValue = wasm.TS_InMemorySigner_get_revocation_base_key(this_ptr);
21785 return nativeResponseValue;
21787 // void InMemorySigner_set_revocation_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
21789 export function InMemorySigner_set_revocation_base_key(this_ptr: bigint, val: number): void {
21790 if(!isWasmInitialized) {
21791 throw new Error("initializeWasm() must be awaited first!");
21793 const nativeResponseValue = wasm.TS_InMemorySigner_set_revocation_base_key(this_ptr, val);
21794 // debug statements here
21796 // const uint8_t (*InMemorySigner_get_payment_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
21798 export function InMemorySigner_get_payment_key(this_ptr: bigint): number {
21799 if(!isWasmInitialized) {
21800 throw new Error("initializeWasm() must be awaited first!");
21802 const nativeResponseValue = wasm.TS_InMemorySigner_get_payment_key(this_ptr);
21803 return nativeResponseValue;
21805 // void InMemorySigner_set_payment_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
21807 export function InMemorySigner_set_payment_key(this_ptr: bigint, val: number): void {
21808 if(!isWasmInitialized) {
21809 throw new Error("initializeWasm() must be awaited first!");
21811 const nativeResponseValue = wasm.TS_InMemorySigner_set_payment_key(this_ptr, val);
21812 // debug statements here
21814 // const uint8_t (*InMemorySigner_get_delayed_payment_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
21816 export function InMemorySigner_get_delayed_payment_base_key(this_ptr: bigint): number {
21817 if(!isWasmInitialized) {
21818 throw new Error("initializeWasm() must be awaited first!");
21820 const nativeResponseValue = wasm.TS_InMemorySigner_get_delayed_payment_base_key(this_ptr);
21821 return nativeResponseValue;
21823 // void InMemorySigner_set_delayed_payment_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
21825 export function InMemorySigner_set_delayed_payment_base_key(this_ptr: bigint, val: number): void {
21826 if(!isWasmInitialized) {
21827 throw new Error("initializeWasm() must be awaited first!");
21829 const nativeResponseValue = wasm.TS_InMemorySigner_set_delayed_payment_base_key(this_ptr, val);
21830 // debug statements here
21832 // const uint8_t (*InMemorySigner_get_htlc_base_key(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
21834 export function InMemorySigner_get_htlc_base_key(this_ptr: bigint): number {
21835 if(!isWasmInitialized) {
21836 throw new Error("initializeWasm() must be awaited first!");
21838 const nativeResponseValue = wasm.TS_InMemorySigner_get_htlc_base_key(this_ptr);
21839 return nativeResponseValue;
21841 // void InMemorySigner_set_htlc_base_key(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKSecretKey val);
21843 export function InMemorySigner_set_htlc_base_key(this_ptr: bigint, val: number): void {
21844 if(!isWasmInitialized) {
21845 throw new Error("initializeWasm() must be awaited first!");
21847 const nativeResponseValue = wasm.TS_InMemorySigner_set_htlc_base_key(this_ptr, val);
21848 // debug statements here
21850 // const uint8_t (*InMemorySigner_get_commitment_seed(const struct LDKInMemorySigner *NONNULL_PTR this_ptr))[32];
21852 export function InMemorySigner_get_commitment_seed(this_ptr: bigint): number {
21853 if(!isWasmInitialized) {
21854 throw new Error("initializeWasm() must be awaited first!");
21856 const nativeResponseValue = wasm.TS_InMemorySigner_get_commitment_seed(this_ptr);
21857 return nativeResponseValue;
21859 // void InMemorySigner_set_commitment_seed(struct LDKInMemorySigner *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
21861 export function InMemorySigner_set_commitment_seed(this_ptr: bigint, val: number): void {
21862 if(!isWasmInitialized) {
21863 throw new Error("initializeWasm() must be awaited first!");
21865 const nativeResponseValue = wasm.TS_InMemorySigner_set_commitment_seed(this_ptr, val);
21866 // debug statements here
21868 // uint64_t InMemorySigner_clone_ptr(LDKInMemorySigner *NONNULL_PTR arg);
21870 export function InMemorySigner_clone_ptr(arg: bigint): bigint {
21871 if(!isWasmInitialized) {
21872 throw new Error("initializeWasm() must be awaited first!");
21874 const nativeResponseValue = wasm.TS_InMemorySigner_clone_ptr(arg);
21875 return nativeResponseValue;
21877 // struct LDKInMemorySigner InMemorySigner_clone(const struct LDKInMemorySigner *NONNULL_PTR orig);
21879 export function InMemorySigner_clone(orig: bigint): bigint {
21880 if(!isWasmInitialized) {
21881 throw new Error("initializeWasm() must be awaited first!");
21883 const nativeResponseValue = wasm.TS_InMemorySigner_clone(orig);
21884 return nativeResponseValue;
21886 // MUST_USE_RES struct LDKInMemorySigner InMemorySigner_new(struct LDKSecretKey funding_key, struct LDKSecretKey revocation_base_key, struct LDKSecretKey payment_key, struct LDKSecretKey delayed_payment_base_key, struct LDKSecretKey htlc_base_key, struct LDKThirtyTwoBytes commitment_seed, uint64_t channel_value_satoshis, struct LDKThirtyTwoBytes channel_keys_id, struct LDKThirtyTwoBytes rand_bytes_unique_start);
21888 export function InMemorySigner_new(funding_key: number, revocation_base_key: number, payment_key: number, delayed_payment_base_key: number, htlc_base_key: number, commitment_seed: number, channel_value_satoshis: bigint, channel_keys_id: number, rand_bytes_unique_start: number): bigint {
21889 if(!isWasmInitialized) {
21890 throw new Error("initializeWasm() must be awaited first!");
21892 const nativeResponseValue = wasm.TS_InMemorySigner_new(funding_key, revocation_base_key, payment_key, delayed_payment_base_key, htlc_base_key, commitment_seed, channel_value_satoshis, channel_keys_id, rand_bytes_unique_start);
21893 return nativeResponseValue;
21895 // MUST_USE_RES struct LDKChannelPublicKeys InMemorySigner_counterparty_pubkeys(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
21897 export function InMemorySigner_counterparty_pubkeys(this_arg: bigint): bigint {
21898 if(!isWasmInitialized) {
21899 throw new Error("initializeWasm() must be awaited first!");
21901 const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_pubkeys(this_arg);
21902 return nativeResponseValue;
21904 // MUST_USE_RES uint16_t InMemorySigner_counterparty_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
21906 export function InMemorySigner_counterparty_selected_contest_delay(this_arg: bigint): number {
21907 if(!isWasmInitialized) {
21908 throw new Error("initializeWasm() must be awaited first!");
21910 const nativeResponseValue = wasm.TS_InMemorySigner_counterparty_selected_contest_delay(this_arg);
21911 return nativeResponseValue;
21913 // MUST_USE_RES uint16_t InMemorySigner_holder_selected_contest_delay(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
21915 export function InMemorySigner_holder_selected_contest_delay(this_arg: bigint): number {
21916 if(!isWasmInitialized) {
21917 throw new Error("initializeWasm() must be awaited first!");
21919 const nativeResponseValue = wasm.TS_InMemorySigner_holder_selected_contest_delay(this_arg);
21920 return nativeResponseValue;
21922 // MUST_USE_RES bool InMemorySigner_is_outbound(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
21924 export function InMemorySigner_is_outbound(this_arg: bigint): boolean {
21925 if(!isWasmInitialized) {
21926 throw new Error("initializeWasm() must be awaited first!");
21928 const nativeResponseValue = wasm.TS_InMemorySigner_is_outbound(this_arg);
21929 return nativeResponseValue;
21931 // MUST_USE_RES struct LDKOutPoint InMemorySigner_funding_outpoint(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
21933 export function InMemorySigner_funding_outpoint(this_arg: bigint): bigint {
21934 if(!isWasmInitialized) {
21935 throw new Error("initializeWasm() must be awaited first!");
21937 const nativeResponseValue = wasm.TS_InMemorySigner_funding_outpoint(this_arg);
21938 return nativeResponseValue;
21940 // MUST_USE_RES struct LDKChannelTransactionParameters InMemorySigner_get_channel_parameters(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
21942 export function InMemorySigner_get_channel_parameters(this_arg: bigint): bigint {
21943 if(!isWasmInitialized) {
21944 throw new Error("initializeWasm() must be awaited first!");
21946 const nativeResponseValue = wasm.TS_InMemorySigner_get_channel_parameters(this_arg);
21947 return nativeResponseValue;
21949 // MUST_USE_RES bool InMemorySigner_opt_anchors(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
21951 export function InMemorySigner_opt_anchors(this_arg: bigint): boolean {
21952 if(!isWasmInitialized) {
21953 throw new Error("initializeWasm() must be awaited first!");
21955 const nativeResponseValue = wasm.TS_InMemorySigner_opt_anchors(this_arg);
21956 return nativeResponseValue;
21958 // MUST_USE_RES struct LDKCResult_CVec_CVec_u8ZZNoneZ InMemorySigner_sign_counterparty_payment_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKStaticPaymentOutputDescriptor *NONNULL_PTR descriptor);
21960 export function InMemorySigner_sign_counterparty_payment_input(this_arg: bigint, spend_tx: number, input_idx: number, descriptor: bigint): bigint {
21961 if(!isWasmInitialized) {
21962 throw new Error("initializeWasm() must be awaited first!");
21964 const nativeResponseValue = wasm.TS_InMemorySigner_sign_counterparty_payment_input(this_arg, spend_tx, input_idx, descriptor);
21965 return nativeResponseValue;
21967 // MUST_USE_RES struct LDKCResult_CVec_CVec_u8ZZNoneZ InMemorySigner_sign_dynamic_p2wsh_input(const struct LDKInMemorySigner *NONNULL_PTR this_arg, struct LDKTransaction spend_tx, uintptr_t input_idx, const struct LDKDelayedPaymentOutputDescriptor *NONNULL_PTR descriptor);
21969 export function InMemorySigner_sign_dynamic_p2wsh_input(this_arg: bigint, spend_tx: number, input_idx: number, descriptor: bigint): bigint {
21970 if(!isWasmInitialized) {
21971 throw new Error("initializeWasm() must be awaited first!");
21973 const nativeResponseValue = wasm.TS_InMemorySigner_sign_dynamic_p2wsh_input(this_arg, spend_tx, input_idx, descriptor);
21974 return nativeResponseValue;
21976 // struct LDKEntropySource InMemorySigner_as_EntropySource(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
21978 export function InMemorySigner_as_EntropySource(this_arg: bigint): bigint {
21979 if(!isWasmInitialized) {
21980 throw new Error("initializeWasm() must be awaited first!");
21982 const nativeResponseValue = wasm.TS_InMemorySigner_as_EntropySource(this_arg);
21983 return nativeResponseValue;
21985 // struct LDKChannelSigner InMemorySigner_as_ChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
21987 export function InMemorySigner_as_ChannelSigner(this_arg: bigint): bigint {
21988 if(!isWasmInitialized) {
21989 throw new Error("initializeWasm() must be awaited first!");
21991 const nativeResponseValue = wasm.TS_InMemorySigner_as_ChannelSigner(this_arg);
21992 return nativeResponseValue;
21994 // struct LDKEcdsaChannelSigner InMemorySigner_as_EcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
21996 export function InMemorySigner_as_EcdsaChannelSigner(this_arg: bigint): bigint {
21997 if(!isWasmInitialized) {
21998 throw new Error("initializeWasm() must be awaited first!");
22000 const nativeResponseValue = wasm.TS_InMemorySigner_as_EcdsaChannelSigner(this_arg);
22001 return nativeResponseValue;
22003 // struct LDKWriteableEcdsaChannelSigner InMemorySigner_as_WriteableEcdsaChannelSigner(const struct LDKInMemorySigner *NONNULL_PTR this_arg);
22005 export function InMemorySigner_as_WriteableEcdsaChannelSigner(this_arg: bigint): bigint {
22006 if(!isWasmInitialized) {
22007 throw new Error("initializeWasm() must be awaited first!");
22009 const nativeResponseValue = wasm.TS_InMemorySigner_as_WriteableEcdsaChannelSigner(this_arg);
22010 return nativeResponseValue;
22012 // struct LDKCVec_u8Z InMemorySigner_write(const struct LDKInMemorySigner *NONNULL_PTR obj);
22014 export function InMemorySigner_write(obj: bigint): number {
22015 if(!isWasmInitialized) {
22016 throw new Error("initializeWasm() must be awaited first!");
22018 const nativeResponseValue = wasm.TS_InMemorySigner_write(obj);
22019 return nativeResponseValue;
22021 // struct LDKCResult_InMemorySignerDecodeErrorZ InMemorySigner_read(struct LDKu8slice ser, struct LDKEntropySource arg);
22023 export function InMemorySigner_read(ser: number, arg: bigint): bigint {
22024 if(!isWasmInitialized) {
22025 throw new Error("initializeWasm() must be awaited first!");
22027 const nativeResponseValue = wasm.TS_InMemorySigner_read(ser, arg);
22028 return nativeResponseValue;
22030 // void KeysManager_free(struct LDKKeysManager this_obj);
22032 export function KeysManager_free(this_obj: bigint): void {
22033 if(!isWasmInitialized) {
22034 throw new Error("initializeWasm() must be awaited first!");
22036 const nativeResponseValue = wasm.TS_KeysManager_free(this_obj);
22037 // debug statements here
22039 // MUST_USE_RES struct LDKKeysManager KeysManager_new(const uint8_t (*seed)[32], uint64_t starting_time_secs, uint32_t starting_time_nanos);
22041 export function KeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number): bigint {
22042 if(!isWasmInitialized) {
22043 throw new Error("initializeWasm() must be awaited first!");
22045 const nativeResponseValue = wasm.TS_KeysManager_new(seed, starting_time_secs, starting_time_nanos);
22046 return nativeResponseValue;
22048 // MUST_USE_RES struct LDKSecretKey KeysManager_get_node_secret_key(const struct LDKKeysManager *NONNULL_PTR this_arg);
22050 export function KeysManager_get_node_secret_key(this_arg: bigint): number {
22051 if(!isWasmInitialized) {
22052 throw new Error("initializeWasm() must be awaited first!");
22054 const nativeResponseValue = wasm.TS_KeysManager_get_node_secret_key(this_arg);
22055 return nativeResponseValue;
22057 // MUST_USE_RES struct LDKInMemorySigner KeysManager_derive_channel_keys(const struct LDKKeysManager *NONNULL_PTR this_arg, uint64_t channel_value_satoshis, const uint8_t (*params)[32]);
22059 export function KeysManager_derive_channel_keys(this_arg: bigint, channel_value_satoshis: bigint, params: number): bigint {
22060 if(!isWasmInitialized) {
22061 throw new Error("initializeWasm() must be awaited first!");
22063 const nativeResponseValue = wasm.TS_KeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
22064 return nativeResponseValue;
22066 // 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);
22068 export function KeysManager_spend_spendable_outputs(this_arg: bigint, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): bigint {
22069 if(!isWasmInitialized) {
22070 throw new Error("initializeWasm() must be awaited first!");
22072 const nativeResponseValue = wasm.TS_KeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
22073 return nativeResponseValue;
22075 // struct LDKEntropySource KeysManager_as_EntropySource(const struct LDKKeysManager *NONNULL_PTR this_arg);
22077 export function KeysManager_as_EntropySource(this_arg: bigint): bigint {
22078 if(!isWasmInitialized) {
22079 throw new Error("initializeWasm() must be awaited first!");
22081 const nativeResponseValue = wasm.TS_KeysManager_as_EntropySource(this_arg);
22082 return nativeResponseValue;
22084 // struct LDKNodeSigner KeysManager_as_NodeSigner(const struct LDKKeysManager *NONNULL_PTR this_arg);
22086 export function KeysManager_as_NodeSigner(this_arg: bigint): bigint {
22087 if(!isWasmInitialized) {
22088 throw new Error("initializeWasm() must be awaited first!");
22090 const nativeResponseValue = wasm.TS_KeysManager_as_NodeSigner(this_arg);
22091 return nativeResponseValue;
22093 // struct LDKSignerProvider KeysManager_as_SignerProvider(const struct LDKKeysManager *NONNULL_PTR this_arg);
22095 export function KeysManager_as_SignerProvider(this_arg: bigint): bigint {
22096 if(!isWasmInitialized) {
22097 throw new Error("initializeWasm() must be awaited first!");
22099 const nativeResponseValue = wasm.TS_KeysManager_as_SignerProvider(this_arg);
22100 return nativeResponseValue;
22102 // void PhantomKeysManager_free(struct LDKPhantomKeysManager this_obj);
22104 export function PhantomKeysManager_free(this_obj: bigint): void {
22105 if(!isWasmInitialized) {
22106 throw new Error("initializeWasm() must be awaited first!");
22108 const nativeResponseValue = wasm.TS_PhantomKeysManager_free(this_obj);
22109 // debug statements here
22111 // struct LDKEntropySource PhantomKeysManager_as_EntropySource(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
22113 export function PhantomKeysManager_as_EntropySource(this_arg: bigint): bigint {
22114 if(!isWasmInitialized) {
22115 throw new Error("initializeWasm() must be awaited first!");
22117 const nativeResponseValue = wasm.TS_PhantomKeysManager_as_EntropySource(this_arg);
22118 return nativeResponseValue;
22120 // struct LDKNodeSigner PhantomKeysManager_as_NodeSigner(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
22122 export function PhantomKeysManager_as_NodeSigner(this_arg: bigint): bigint {
22123 if(!isWasmInitialized) {
22124 throw new Error("initializeWasm() must be awaited first!");
22126 const nativeResponseValue = wasm.TS_PhantomKeysManager_as_NodeSigner(this_arg);
22127 return nativeResponseValue;
22129 // struct LDKSignerProvider PhantomKeysManager_as_SignerProvider(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
22131 export function PhantomKeysManager_as_SignerProvider(this_arg: bigint): bigint {
22132 if(!isWasmInitialized) {
22133 throw new Error("initializeWasm() must be awaited first!");
22135 const nativeResponseValue = wasm.TS_PhantomKeysManager_as_SignerProvider(this_arg);
22136 return nativeResponseValue;
22138 // 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]);
22140 export function PhantomKeysManager_new(seed: number, starting_time_secs: bigint, starting_time_nanos: number, cross_node_seed: number): bigint {
22141 if(!isWasmInitialized) {
22142 throw new Error("initializeWasm() must be awaited first!");
22144 const nativeResponseValue = wasm.TS_PhantomKeysManager_new(seed, starting_time_secs, starting_time_nanos, cross_node_seed);
22145 return nativeResponseValue;
22147 // 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);
22149 export function PhantomKeysManager_spend_spendable_outputs(this_arg: bigint, descriptors: number, outputs: number, change_destination_script: number, feerate_sat_per_1000_weight: number): bigint {
22150 if(!isWasmInitialized) {
22151 throw new Error("initializeWasm() must be awaited first!");
22153 const nativeResponseValue = wasm.TS_PhantomKeysManager_spend_spendable_outputs(this_arg, descriptors, outputs, change_destination_script, feerate_sat_per_1000_weight);
22154 return nativeResponseValue;
22156 // 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]);
22158 export function PhantomKeysManager_derive_channel_keys(this_arg: bigint, channel_value_satoshis: bigint, params: number): bigint {
22159 if(!isWasmInitialized) {
22160 throw new Error("initializeWasm() must be awaited first!");
22162 const nativeResponseValue = wasm.TS_PhantomKeysManager_derive_channel_keys(this_arg, channel_value_satoshis, params);
22163 return nativeResponseValue;
22165 // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
22167 export function PhantomKeysManager_get_node_secret_key(this_arg: bigint): number {
22168 if(!isWasmInitialized) {
22169 throw new Error("initializeWasm() must be awaited first!");
22171 const nativeResponseValue = wasm.TS_PhantomKeysManager_get_node_secret_key(this_arg);
22172 return nativeResponseValue;
22174 // MUST_USE_RES struct LDKSecretKey PhantomKeysManager_get_phantom_node_secret_key(const struct LDKPhantomKeysManager *NONNULL_PTR this_arg);
22176 export function PhantomKeysManager_get_phantom_node_secret_key(this_arg: bigint): number {
22177 if(!isWasmInitialized) {
22178 throw new Error("initializeWasm() must be awaited first!");
22180 const nativeResponseValue = wasm.TS_PhantomKeysManager_get_phantom_node_secret_key(this_arg);
22181 return nativeResponseValue;
22183 // enum LDKFailureCode FailureCode_clone(const enum LDKFailureCode *NONNULL_PTR orig);
22185 export function FailureCode_clone(orig: bigint): FailureCode {
22186 if(!isWasmInitialized) {
22187 throw new Error("initializeWasm() must be awaited first!");
22189 const nativeResponseValue = wasm.TS_FailureCode_clone(orig);
22190 return nativeResponseValue;
22192 // enum LDKFailureCode FailureCode_temporary_node_failure(void);
22194 export function FailureCode_temporary_node_failure(): FailureCode {
22195 if(!isWasmInitialized) {
22196 throw new Error("initializeWasm() must be awaited first!");
22198 const nativeResponseValue = wasm.TS_FailureCode_temporary_node_failure();
22199 return nativeResponseValue;
22201 // enum LDKFailureCode FailureCode_required_node_feature_missing(void);
22203 export function FailureCode_required_node_feature_missing(): FailureCode {
22204 if(!isWasmInitialized) {
22205 throw new Error("initializeWasm() must be awaited first!");
22207 const nativeResponseValue = wasm.TS_FailureCode_required_node_feature_missing();
22208 return nativeResponseValue;
22210 // enum LDKFailureCode FailureCode_incorrect_or_unknown_payment_details(void);
22212 export function FailureCode_incorrect_or_unknown_payment_details(): FailureCode {
22213 if(!isWasmInitialized) {
22214 throw new Error("initializeWasm() must be awaited first!");
22216 const nativeResponseValue = wasm.TS_FailureCode_incorrect_or_unknown_payment_details();
22217 return nativeResponseValue;
22219 // void ChannelManager_free(struct LDKChannelManager this_obj);
22221 export function ChannelManager_free(this_obj: bigint): void {
22222 if(!isWasmInitialized) {
22223 throw new Error("initializeWasm() must be awaited first!");
22225 const nativeResponseValue = wasm.TS_ChannelManager_free(this_obj);
22226 // debug statements here
22228 // void ChainParameters_free(struct LDKChainParameters this_obj);
22230 export function ChainParameters_free(this_obj: bigint): void {
22231 if(!isWasmInitialized) {
22232 throw new Error("initializeWasm() must be awaited first!");
22234 const nativeResponseValue = wasm.TS_ChainParameters_free(this_obj);
22235 // debug statements here
22237 // enum LDKNetwork ChainParameters_get_network(const struct LDKChainParameters *NONNULL_PTR this_ptr);
22239 export function ChainParameters_get_network(this_ptr: bigint): Network {
22240 if(!isWasmInitialized) {
22241 throw new Error("initializeWasm() must be awaited first!");
22243 const nativeResponseValue = wasm.TS_ChainParameters_get_network(this_ptr);
22244 return nativeResponseValue;
22246 // void ChainParameters_set_network(struct LDKChainParameters *NONNULL_PTR this_ptr, enum LDKNetwork val);
22248 export function ChainParameters_set_network(this_ptr: bigint, val: Network): void {
22249 if(!isWasmInitialized) {
22250 throw new Error("initializeWasm() must be awaited first!");
22252 const nativeResponseValue = wasm.TS_ChainParameters_set_network(this_ptr, val);
22253 // debug statements here
22255 // struct LDKBestBlock ChainParameters_get_best_block(const struct LDKChainParameters *NONNULL_PTR this_ptr);
22257 export function ChainParameters_get_best_block(this_ptr: bigint): bigint {
22258 if(!isWasmInitialized) {
22259 throw new Error("initializeWasm() must be awaited first!");
22261 const nativeResponseValue = wasm.TS_ChainParameters_get_best_block(this_ptr);
22262 return nativeResponseValue;
22264 // void ChainParameters_set_best_block(struct LDKChainParameters *NONNULL_PTR this_ptr, struct LDKBestBlock val);
22266 export function ChainParameters_set_best_block(this_ptr: bigint, val: bigint): void {
22267 if(!isWasmInitialized) {
22268 throw new Error("initializeWasm() must be awaited first!");
22270 const nativeResponseValue = wasm.TS_ChainParameters_set_best_block(this_ptr, val);
22271 // debug statements here
22273 // MUST_USE_RES struct LDKChainParameters ChainParameters_new(enum LDKNetwork network_arg, struct LDKBestBlock best_block_arg);
22275 export function ChainParameters_new(network_arg: Network, best_block_arg: bigint): bigint {
22276 if(!isWasmInitialized) {
22277 throw new Error("initializeWasm() must be awaited first!");
22279 const nativeResponseValue = wasm.TS_ChainParameters_new(network_arg, best_block_arg);
22280 return nativeResponseValue;
22282 // uint64_t ChainParameters_clone_ptr(LDKChainParameters *NONNULL_PTR arg);
22284 export function ChainParameters_clone_ptr(arg: bigint): bigint {
22285 if(!isWasmInitialized) {
22286 throw new Error("initializeWasm() must be awaited first!");
22288 const nativeResponseValue = wasm.TS_ChainParameters_clone_ptr(arg);
22289 return nativeResponseValue;
22291 // struct LDKChainParameters ChainParameters_clone(const struct LDKChainParameters *NONNULL_PTR orig);
22293 export function ChainParameters_clone(orig: bigint): bigint {
22294 if(!isWasmInitialized) {
22295 throw new Error("initializeWasm() must be awaited first!");
22297 const nativeResponseValue = wasm.TS_ChainParameters_clone(orig);
22298 return nativeResponseValue;
22300 // void CounterpartyForwardingInfo_free(struct LDKCounterpartyForwardingInfo this_obj);
22302 export function CounterpartyForwardingInfo_free(this_obj: bigint): void {
22303 if(!isWasmInitialized) {
22304 throw new Error("initializeWasm() must be awaited first!");
22306 const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_free(this_obj);
22307 // debug statements here
22309 // uint32_t CounterpartyForwardingInfo_get_fee_base_msat(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
22311 export function CounterpartyForwardingInfo_get_fee_base_msat(this_ptr: bigint): number {
22312 if(!isWasmInitialized) {
22313 throw new Error("initializeWasm() must be awaited first!");
22315 const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_base_msat(this_ptr);
22316 return nativeResponseValue;
22318 // void CounterpartyForwardingInfo_set_fee_base_msat(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
22320 export function CounterpartyForwardingInfo_set_fee_base_msat(this_ptr: bigint, val: number): void {
22321 if(!isWasmInitialized) {
22322 throw new Error("initializeWasm() must be awaited first!");
22324 const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_base_msat(this_ptr, val);
22325 // debug statements here
22327 // uint32_t CounterpartyForwardingInfo_get_fee_proportional_millionths(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
22329 export function CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr: bigint): number {
22330 if(!isWasmInitialized) {
22331 throw new Error("initializeWasm() must be awaited first!");
22333 const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_fee_proportional_millionths(this_ptr);
22334 return nativeResponseValue;
22336 // void CounterpartyForwardingInfo_set_fee_proportional_millionths(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint32_t val);
22338 export function CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr: bigint, val: number): void {
22339 if(!isWasmInitialized) {
22340 throw new Error("initializeWasm() must be awaited first!");
22342 const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_fee_proportional_millionths(this_ptr, val);
22343 // debug statements here
22345 // uint16_t CounterpartyForwardingInfo_get_cltv_expiry_delta(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr);
22347 export function CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr: bigint): number {
22348 if(!isWasmInitialized) {
22349 throw new Error("initializeWasm() must be awaited first!");
22351 const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_get_cltv_expiry_delta(this_ptr);
22352 return nativeResponseValue;
22354 // void CounterpartyForwardingInfo_set_cltv_expiry_delta(struct LDKCounterpartyForwardingInfo *NONNULL_PTR this_ptr, uint16_t val);
22356 export function CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
22357 if(!isWasmInitialized) {
22358 throw new Error("initializeWasm() must be awaited first!");
22360 const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_set_cltv_expiry_delta(this_ptr, val);
22361 // debug statements here
22363 // 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);
22365 export function CounterpartyForwardingInfo_new(fee_base_msat_arg: number, fee_proportional_millionths_arg: number, cltv_expiry_delta_arg: number): bigint {
22366 if(!isWasmInitialized) {
22367 throw new Error("initializeWasm() must be awaited first!");
22369 const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg);
22370 return nativeResponseValue;
22372 // uint64_t CounterpartyForwardingInfo_clone_ptr(LDKCounterpartyForwardingInfo *NONNULL_PTR arg);
22374 export function CounterpartyForwardingInfo_clone_ptr(arg: bigint): bigint {
22375 if(!isWasmInitialized) {
22376 throw new Error("initializeWasm() must be awaited first!");
22378 const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone_ptr(arg);
22379 return nativeResponseValue;
22381 // struct LDKCounterpartyForwardingInfo CounterpartyForwardingInfo_clone(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR orig);
22383 export function CounterpartyForwardingInfo_clone(orig: bigint): bigint {
22384 if(!isWasmInitialized) {
22385 throw new Error("initializeWasm() must be awaited first!");
22387 const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_clone(orig);
22388 return nativeResponseValue;
22390 // void ChannelCounterparty_free(struct LDKChannelCounterparty this_obj);
22392 export function ChannelCounterparty_free(this_obj: bigint): void {
22393 if(!isWasmInitialized) {
22394 throw new Error("initializeWasm() must be awaited first!");
22396 const nativeResponseValue = wasm.TS_ChannelCounterparty_free(this_obj);
22397 // debug statements here
22399 // struct LDKPublicKey ChannelCounterparty_get_node_id(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
22401 export function ChannelCounterparty_get_node_id(this_ptr: bigint): number {
22402 if(!isWasmInitialized) {
22403 throw new Error("initializeWasm() must be awaited first!");
22405 const nativeResponseValue = wasm.TS_ChannelCounterparty_get_node_id(this_ptr);
22406 return nativeResponseValue;
22408 // void ChannelCounterparty_set_node_id(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKPublicKey val);
22410 export function ChannelCounterparty_set_node_id(this_ptr: bigint, val: number): void {
22411 if(!isWasmInitialized) {
22412 throw new Error("initializeWasm() must be awaited first!");
22414 const nativeResponseValue = wasm.TS_ChannelCounterparty_set_node_id(this_ptr, val);
22415 // debug statements here
22417 // struct LDKInitFeatures ChannelCounterparty_get_features(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
22419 export function ChannelCounterparty_get_features(this_ptr: bigint): bigint {
22420 if(!isWasmInitialized) {
22421 throw new Error("initializeWasm() must be awaited first!");
22423 const nativeResponseValue = wasm.TS_ChannelCounterparty_get_features(this_ptr);
22424 return nativeResponseValue;
22426 // void ChannelCounterparty_set_features(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
22428 export function ChannelCounterparty_set_features(this_ptr: bigint, val: bigint): void {
22429 if(!isWasmInitialized) {
22430 throw new Error("initializeWasm() must be awaited first!");
22432 const nativeResponseValue = wasm.TS_ChannelCounterparty_set_features(this_ptr, val);
22433 // debug statements here
22435 // uint64_t ChannelCounterparty_get_unspendable_punishment_reserve(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
22437 export function ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr: bigint): bigint {
22438 if(!isWasmInitialized) {
22439 throw new Error("initializeWasm() must be awaited first!");
22441 const nativeResponseValue = wasm.TS_ChannelCounterparty_get_unspendable_punishment_reserve(this_ptr);
22442 return nativeResponseValue;
22444 // void ChannelCounterparty_set_unspendable_punishment_reserve(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, uint64_t val);
22446 export function ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr: bigint, val: bigint): void {
22447 if(!isWasmInitialized) {
22448 throw new Error("initializeWasm() must be awaited first!");
22450 const nativeResponseValue = wasm.TS_ChannelCounterparty_set_unspendable_punishment_reserve(this_ptr, val);
22451 // debug statements here
22453 // struct LDKCounterpartyForwardingInfo ChannelCounterparty_get_forwarding_info(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
22455 export function ChannelCounterparty_get_forwarding_info(this_ptr: bigint): bigint {
22456 if(!isWasmInitialized) {
22457 throw new Error("initializeWasm() must be awaited first!");
22459 const nativeResponseValue = wasm.TS_ChannelCounterparty_get_forwarding_info(this_ptr);
22460 return nativeResponseValue;
22462 // void ChannelCounterparty_set_forwarding_info(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCounterpartyForwardingInfo val);
22464 export function ChannelCounterparty_set_forwarding_info(this_ptr: bigint, val: bigint): void {
22465 if(!isWasmInitialized) {
22466 throw new Error("initializeWasm() must be awaited first!");
22468 const nativeResponseValue = wasm.TS_ChannelCounterparty_set_forwarding_info(this_ptr, val);
22469 // debug statements here
22471 // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_minimum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
22473 export function ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr: bigint): bigint {
22474 if(!isWasmInitialized) {
22475 throw new Error("initializeWasm() must be awaited first!");
22477 const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_minimum_msat(this_ptr);
22478 return nativeResponseValue;
22480 // void ChannelCounterparty_set_outbound_htlc_minimum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
22482 export function ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
22483 if(!isWasmInitialized) {
22484 throw new Error("initializeWasm() must be awaited first!");
22486 const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_minimum_msat(this_ptr, val);
22487 // debug statements here
22489 // struct LDKCOption_u64Z ChannelCounterparty_get_outbound_htlc_maximum_msat(const struct LDKChannelCounterparty *NONNULL_PTR this_ptr);
22491 export function ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr: bigint): bigint {
22492 if(!isWasmInitialized) {
22493 throw new Error("initializeWasm() must be awaited first!");
22495 const nativeResponseValue = wasm.TS_ChannelCounterparty_get_outbound_htlc_maximum_msat(this_ptr);
22496 return nativeResponseValue;
22498 // void ChannelCounterparty_set_outbound_htlc_maximum_msat(struct LDKChannelCounterparty *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
22500 export function ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr: bigint, val: bigint): void {
22501 if(!isWasmInitialized) {
22502 throw new Error("initializeWasm() must be awaited first!");
22504 const nativeResponseValue = wasm.TS_ChannelCounterparty_set_outbound_htlc_maximum_msat(this_ptr, val);
22505 // debug statements here
22507 // 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);
22509 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 {
22510 if(!isWasmInitialized) {
22511 throw new Error("initializeWasm() must be awaited first!");
22513 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);
22514 return nativeResponseValue;
22516 // uint64_t ChannelCounterparty_clone_ptr(LDKChannelCounterparty *NONNULL_PTR arg);
22518 export function ChannelCounterparty_clone_ptr(arg: bigint): bigint {
22519 if(!isWasmInitialized) {
22520 throw new Error("initializeWasm() must be awaited first!");
22522 const nativeResponseValue = wasm.TS_ChannelCounterparty_clone_ptr(arg);
22523 return nativeResponseValue;
22525 // struct LDKChannelCounterparty ChannelCounterparty_clone(const struct LDKChannelCounterparty *NONNULL_PTR orig);
22527 export function ChannelCounterparty_clone(orig: bigint): bigint {
22528 if(!isWasmInitialized) {
22529 throw new Error("initializeWasm() must be awaited first!");
22531 const nativeResponseValue = wasm.TS_ChannelCounterparty_clone(orig);
22532 return nativeResponseValue;
22534 // void ChannelDetails_free(struct LDKChannelDetails this_obj);
22536 export function ChannelDetails_free(this_obj: bigint): void {
22537 if(!isWasmInitialized) {
22538 throw new Error("initializeWasm() must be awaited first!");
22540 const nativeResponseValue = wasm.TS_ChannelDetails_free(this_obj);
22541 // debug statements here
22543 // const uint8_t (*ChannelDetails_get_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr))[32];
22545 export function ChannelDetails_get_channel_id(this_ptr: bigint): number {
22546 if(!isWasmInitialized) {
22547 throw new Error("initializeWasm() must be awaited first!");
22549 const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_id(this_ptr);
22550 return nativeResponseValue;
22552 // void ChannelDetails_set_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
22554 export function ChannelDetails_set_channel_id(this_ptr: bigint, val: number): void {
22555 if(!isWasmInitialized) {
22556 throw new Error("initializeWasm() must be awaited first!");
22558 const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_id(this_ptr, val);
22559 // debug statements here
22561 // struct LDKChannelCounterparty ChannelDetails_get_counterparty(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22563 export function ChannelDetails_get_counterparty(this_ptr: bigint): bigint {
22564 if(!isWasmInitialized) {
22565 throw new Error("initializeWasm() must be awaited first!");
22567 const nativeResponseValue = wasm.TS_ChannelDetails_get_counterparty(this_ptr);
22568 return nativeResponseValue;
22570 // void ChannelDetails_set_counterparty(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelCounterparty val);
22572 export function ChannelDetails_set_counterparty(this_ptr: bigint, val: bigint): void {
22573 if(!isWasmInitialized) {
22574 throw new Error("initializeWasm() must be awaited first!");
22576 const nativeResponseValue = wasm.TS_ChannelDetails_set_counterparty(this_ptr, val);
22577 // debug statements here
22579 // struct LDKOutPoint ChannelDetails_get_funding_txo(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22581 export function ChannelDetails_get_funding_txo(this_ptr: bigint): bigint {
22582 if(!isWasmInitialized) {
22583 throw new Error("initializeWasm() must be awaited first!");
22585 const nativeResponseValue = wasm.TS_ChannelDetails_get_funding_txo(this_ptr);
22586 return nativeResponseValue;
22588 // void ChannelDetails_set_funding_txo(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKOutPoint val);
22590 export function ChannelDetails_set_funding_txo(this_ptr: bigint, val: bigint): void {
22591 if(!isWasmInitialized) {
22592 throw new Error("initializeWasm() must be awaited first!");
22594 const nativeResponseValue = wasm.TS_ChannelDetails_set_funding_txo(this_ptr, val);
22595 // debug statements here
22597 // struct LDKChannelTypeFeatures ChannelDetails_get_channel_type(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22599 export function ChannelDetails_get_channel_type(this_ptr: bigint): bigint {
22600 if(!isWasmInitialized) {
22601 throw new Error("initializeWasm() must be awaited first!");
22603 const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_type(this_ptr);
22604 return nativeResponseValue;
22606 // void ChannelDetails_set_channel_type(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
22608 export function ChannelDetails_set_channel_type(this_ptr: bigint, val: bigint): void {
22609 if(!isWasmInitialized) {
22610 throw new Error("initializeWasm() must be awaited first!");
22612 const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_type(this_ptr, val);
22613 // debug statements here
22615 // struct LDKCOption_u64Z ChannelDetails_get_short_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22617 export function ChannelDetails_get_short_channel_id(this_ptr: bigint): bigint {
22618 if(!isWasmInitialized) {
22619 throw new Error("initializeWasm() must be awaited first!");
22621 const nativeResponseValue = wasm.TS_ChannelDetails_get_short_channel_id(this_ptr);
22622 return nativeResponseValue;
22624 // void ChannelDetails_set_short_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
22626 export function ChannelDetails_set_short_channel_id(this_ptr: bigint, val: bigint): void {
22627 if(!isWasmInitialized) {
22628 throw new Error("initializeWasm() must be awaited first!");
22630 const nativeResponseValue = wasm.TS_ChannelDetails_set_short_channel_id(this_ptr, val);
22631 // debug statements here
22633 // struct LDKCOption_u64Z ChannelDetails_get_outbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22635 export function ChannelDetails_get_outbound_scid_alias(this_ptr: bigint): bigint {
22636 if(!isWasmInitialized) {
22637 throw new Error("initializeWasm() must be awaited first!");
22639 const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_scid_alias(this_ptr);
22640 return nativeResponseValue;
22642 // void ChannelDetails_set_outbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
22644 export function ChannelDetails_set_outbound_scid_alias(this_ptr: bigint, val: bigint): void {
22645 if(!isWasmInitialized) {
22646 throw new Error("initializeWasm() must be awaited first!");
22648 const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_scid_alias(this_ptr, val);
22649 // debug statements here
22651 // struct LDKCOption_u64Z ChannelDetails_get_inbound_scid_alias(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22653 export function ChannelDetails_get_inbound_scid_alias(this_ptr: bigint): bigint {
22654 if(!isWasmInitialized) {
22655 throw new Error("initializeWasm() must be awaited first!");
22657 const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_scid_alias(this_ptr);
22658 return nativeResponseValue;
22660 // void ChannelDetails_set_inbound_scid_alias(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
22662 export function ChannelDetails_set_inbound_scid_alias(this_ptr: bigint, val: bigint): void {
22663 if(!isWasmInitialized) {
22664 throw new Error("initializeWasm() must be awaited first!");
22666 const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_scid_alias(this_ptr, val);
22667 // debug statements here
22669 // uint64_t ChannelDetails_get_channel_value_satoshis(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22671 export function ChannelDetails_get_channel_value_satoshis(this_ptr: bigint): bigint {
22672 if(!isWasmInitialized) {
22673 throw new Error("initializeWasm() must be awaited first!");
22675 const nativeResponseValue = wasm.TS_ChannelDetails_get_channel_value_satoshis(this_ptr);
22676 return nativeResponseValue;
22678 // void ChannelDetails_set_channel_value_satoshis(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
22680 export function ChannelDetails_set_channel_value_satoshis(this_ptr: bigint, val: bigint): void {
22681 if(!isWasmInitialized) {
22682 throw new Error("initializeWasm() must be awaited first!");
22684 const nativeResponseValue = wasm.TS_ChannelDetails_set_channel_value_satoshis(this_ptr, val);
22685 // debug statements here
22687 // struct LDKCOption_u64Z ChannelDetails_get_unspendable_punishment_reserve(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22689 export function ChannelDetails_get_unspendable_punishment_reserve(this_ptr: bigint): bigint {
22690 if(!isWasmInitialized) {
22691 throw new Error("initializeWasm() must be awaited first!");
22693 const nativeResponseValue = wasm.TS_ChannelDetails_get_unspendable_punishment_reserve(this_ptr);
22694 return nativeResponseValue;
22696 // void ChannelDetails_set_unspendable_punishment_reserve(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
22698 export function ChannelDetails_set_unspendable_punishment_reserve(this_ptr: bigint, val: bigint): void {
22699 if(!isWasmInitialized) {
22700 throw new Error("initializeWasm() must be awaited first!");
22702 const nativeResponseValue = wasm.TS_ChannelDetails_set_unspendable_punishment_reserve(this_ptr, val);
22703 // debug statements here
22705 // struct LDKU128 ChannelDetails_get_user_channel_id(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22707 export function ChannelDetails_get_user_channel_id(this_ptr: bigint): number {
22708 if(!isWasmInitialized) {
22709 throw new Error("initializeWasm() must be awaited first!");
22711 const nativeResponseValue = wasm.TS_ChannelDetails_get_user_channel_id(this_ptr);
22712 return nativeResponseValue;
22714 // void ChannelDetails_set_user_channel_id(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKU128 val);
22716 export function ChannelDetails_set_user_channel_id(this_ptr: bigint, val: number): void {
22717 if(!isWasmInitialized) {
22718 throw new Error("initializeWasm() must be awaited first!");
22720 const nativeResponseValue = wasm.TS_ChannelDetails_set_user_channel_id(this_ptr, val);
22721 // debug statements here
22723 // struct LDKCOption_u32Z ChannelDetails_get_feerate_sat_per_1000_weight(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22725 export function ChannelDetails_get_feerate_sat_per_1000_weight(this_ptr: bigint): bigint {
22726 if(!isWasmInitialized) {
22727 throw new Error("initializeWasm() must be awaited first!");
22729 const nativeResponseValue = wasm.TS_ChannelDetails_get_feerate_sat_per_1000_weight(this_ptr);
22730 return nativeResponseValue;
22732 // void ChannelDetails_set_feerate_sat_per_1000_weight(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
22734 export function ChannelDetails_set_feerate_sat_per_1000_weight(this_ptr: bigint, val: bigint): void {
22735 if(!isWasmInitialized) {
22736 throw new Error("initializeWasm() must be awaited first!");
22738 const nativeResponseValue = wasm.TS_ChannelDetails_set_feerate_sat_per_1000_weight(this_ptr, val);
22739 // debug statements here
22741 // uint64_t ChannelDetails_get_balance_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22743 export function ChannelDetails_get_balance_msat(this_ptr: bigint): bigint {
22744 if(!isWasmInitialized) {
22745 throw new Error("initializeWasm() must be awaited first!");
22747 const nativeResponseValue = wasm.TS_ChannelDetails_get_balance_msat(this_ptr);
22748 return nativeResponseValue;
22750 // void ChannelDetails_set_balance_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
22752 export function ChannelDetails_set_balance_msat(this_ptr: bigint, val: bigint): void {
22753 if(!isWasmInitialized) {
22754 throw new Error("initializeWasm() must be awaited first!");
22756 const nativeResponseValue = wasm.TS_ChannelDetails_set_balance_msat(this_ptr, val);
22757 // debug statements here
22759 // uint64_t ChannelDetails_get_outbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22761 export function ChannelDetails_get_outbound_capacity_msat(this_ptr: bigint): bigint {
22762 if(!isWasmInitialized) {
22763 throw new Error("initializeWasm() must be awaited first!");
22765 const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_capacity_msat(this_ptr);
22766 return nativeResponseValue;
22768 // void ChannelDetails_set_outbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
22770 export function ChannelDetails_set_outbound_capacity_msat(this_ptr: bigint, val: bigint): void {
22771 if(!isWasmInitialized) {
22772 throw new Error("initializeWasm() must be awaited first!");
22774 const nativeResponseValue = wasm.TS_ChannelDetails_set_outbound_capacity_msat(this_ptr, val);
22775 // debug statements here
22777 // uint64_t ChannelDetails_get_next_outbound_htlc_limit_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22779 export function ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr: bigint): bigint {
22780 if(!isWasmInitialized) {
22781 throw new Error("initializeWasm() must be awaited first!");
22783 const nativeResponseValue = wasm.TS_ChannelDetails_get_next_outbound_htlc_limit_msat(this_ptr);
22784 return nativeResponseValue;
22786 // void ChannelDetails_set_next_outbound_htlc_limit_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
22788 export function ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr: bigint, val: bigint): void {
22789 if(!isWasmInitialized) {
22790 throw new Error("initializeWasm() must be awaited first!");
22792 const nativeResponseValue = wasm.TS_ChannelDetails_set_next_outbound_htlc_limit_msat(this_ptr, val);
22793 // debug statements here
22795 // uint64_t ChannelDetails_get_inbound_capacity_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22797 export function ChannelDetails_get_inbound_capacity_msat(this_ptr: bigint): bigint {
22798 if(!isWasmInitialized) {
22799 throw new Error("initializeWasm() must be awaited first!");
22801 const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_capacity_msat(this_ptr);
22802 return nativeResponseValue;
22804 // void ChannelDetails_set_inbound_capacity_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, uint64_t val);
22806 export function ChannelDetails_set_inbound_capacity_msat(this_ptr: bigint, val: bigint): void {
22807 if(!isWasmInitialized) {
22808 throw new Error("initializeWasm() must be awaited first!");
22810 const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_capacity_msat(this_ptr, val);
22811 // debug statements here
22813 // struct LDKCOption_u32Z ChannelDetails_get_confirmations_required(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22815 export function ChannelDetails_get_confirmations_required(this_ptr: bigint): bigint {
22816 if(!isWasmInitialized) {
22817 throw new Error("initializeWasm() must be awaited first!");
22819 const nativeResponseValue = wasm.TS_ChannelDetails_get_confirmations_required(this_ptr);
22820 return nativeResponseValue;
22822 // void ChannelDetails_set_confirmations_required(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
22824 export function ChannelDetails_set_confirmations_required(this_ptr: bigint, val: bigint): void {
22825 if(!isWasmInitialized) {
22826 throw new Error("initializeWasm() must be awaited first!");
22828 const nativeResponseValue = wasm.TS_ChannelDetails_set_confirmations_required(this_ptr, val);
22829 // debug statements here
22831 // struct LDKCOption_u32Z ChannelDetails_get_confirmations(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22833 export function ChannelDetails_get_confirmations(this_ptr: bigint): bigint {
22834 if(!isWasmInitialized) {
22835 throw new Error("initializeWasm() must be awaited first!");
22837 const nativeResponseValue = wasm.TS_ChannelDetails_get_confirmations(this_ptr);
22838 return nativeResponseValue;
22840 // void ChannelDetails_set_confirmations(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
22842 export function ChannelDetails_set_confirmations(this_ptr: bigint, val: bigint): void {
22843 if(!isWasmInitialized) {
22844 throw new Error("initializeWasm() must be awaited first!");
22846 const nativeResponseValue = wasm.TS_ChannelDetails_set_confirmations(this_ptr, val);
22847 // debug statements here
22849 // struct LDKCOption_u16Z ChannelDetails_get_force_close_spend_delay(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22851 export function ChannelDetails_get_force_close_spend_delay(this_ptr: bigint): bigint {
22852 if(!isWasmInitialized) {
22853 throw new Error("initializeWasm() must be awaited first!");
22855 const nativeResponseValue = wasm.TS_ChannelDetails_get_force_close_spend_delay(this_ptr);
22856 return nativeResponseValue;
22858 // void ChannelDetails_set_force_close_spend_delay(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u16Z val);
22860 export function ChannelDetails_set_force_close_spend_delay(this_ptr: bigint, val: bigint): void {
22861 if(!isWasmInitialized) {
22862 throw new Error("initializeWasm() must be awaited first!");
22864 const nativeResponseValue = wasm.TS_ChannelDetails_set_force_close_spend_delay(this_ptr, val);
22865 // debug statements here
22867 // bool ChannelDetails_get_is_outbound(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22869 export function ChannelDetails_get_is_outbound(this_ptr: bigint): boolean {
22870 if(!isWasmInitialized) {
22871 throw new Error("initializeWasm() must be awaited first!");
22873 const nativeResponseValue = wasm.TS_ChannelDetails_get_is_outbound(this_ptr);
22874 return nativeResponseValue;
22876 // void ChannelDetails_set_is_outbound(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
22878 export function ChannelDetails_set_is_outbound(this_ptr: bigint, val: boolean): void {
22879 if(!isWasmInitialized) {
22880 throw new Error("initializeWasm() must be awaited first!");
22882 const nativeResponseValue = wasm.TS_ChannelDetails_set_is_outbound(this_ptr, val);
22883 // debug statements here
22885 // bool ChannelDetails_get_is_channel_ready(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22887 export function ChannelDetails_get_is_channel_ready(this_ptr: bigint): boolean {
22888 if(!isWasmInitialized) {
22889 throw new Error("initializeWasm() must be awaited first!");
22891 const nativeResponseValue = wasm.TS_ChannelDetails_get_is_channel_ready(this_ptr);
22892 return nativeResponseValue;
22894 // void ChannelDetails_set_is_channel_ready(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
22896 export function ChannelDetails_set_is_channel_ready(this_ptr: bigint, val: boolean): void {
22897 if(!isWasmInitialized) {
22898 throw new Error("initializeWasm() must be awaited first!");
22900 const nativeResponseValue = wasm.TS_ChannelDetails_set_is_channel_ready(this_ptr, val);
22901 // debug statements here
22903 // bool ChannelDetails_get_is_usable(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22905 export function ChannelDetails_get_is_usable(this_ptr: bigint): boolean {
22906 if(!isWasmInitialized) {
22907 throw new Error("initializeWasm() must be awaited first!");
22909 const nativeResponseValue = wasm.TS_ChannelDetails_get_is_usable(this_ptr);
22910 return nativeResponseValue;
22912 // void ChannelDetails_set_is_usable(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
22914 export function ChannelDetails_set_is_usable(this_ptr: bigint, val: boolean): void {
22915 if(!isWasmInitialized) {
22916 throw new Error("initializeWasm() must be awaited first!");
22918 const nativeResponseValue = wasm.TS_ChannelDetails_set_is_usable(this_ptr, val);
22919 // debug statements here
22921 // bool ChannelDetails_get_is_public(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22923 export function ChannelDetails_get_is_public(this_ptr: bigint): boolean {
22924 if(!isWasmInitialized) {
22925 throw new Error("initializeWasm() must be awaited first!");
22927 const nativeResponseValue = wasm.TS_ChannelDetails_get_is_public(this_ptr);
22928 return nativeResponseValue;
22930 // void ChannelDetails_set_is_public(struct LDKChannelDetails *NONNULL_PTR this_ptr, bool val);
22932 export function ChannelDetails_set_is_public(this_ptr: bigint, val: boolean): void {
22933 if(!isWasmInitialized) {
22934 throw new Error("initializeWasm() must be awaited first!");
22936 const nativeResponseValue = wasm.TS_ChannelDetails_set_is_public(this_ptr, val);
22937 // debug statements here
22939 // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_minimum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22941 export function ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr: bigint): bigint {
22942 if(!isWasmInitialized) {
22943 throw new Error("initializeWasm() must be awaited first!");
22945 const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_minimum_msat(this_ptr);
22946 return nativeResponseValue;
22948 // void ChannelDetails_set_inbound_htlc_minimum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
22950 export function ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
22951 if(!isWasmInitialized) {
22952 throw new Error("initializeWasm() must be awaited first!");
22954 const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_minimum_msat(this_ptr, val);
22955 // debug statements here
22957 // struct LDKCOption_u64Z ChannelDetails_get_inbound_htlc_maximum_msat(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22959 export function ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr: bigint): bigint {
22960 if(!isWasmInitialized) {
22961 throw new Error("initializeWasm() must be awaited first!");
22963 const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_htlc_maximum_msat(this_ptr);
22964 return nativeResponseValue;
22966 // void ChannelDetails_set_inbound_htlc_maximum_msat(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
22968 export function ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr: bigint, val: bigint): void {
22969 if(!isWasmInitialized) {
22970 throw new Error("initializeWasm() must be awaited first!");
22972 const nativeResponseValue = wasm.TS_ChannelDetails_set_inbound_htlc_maximum_msat(this_ptr, val);
22973 // debug statements here
22975 // struct LDKChannelConfig ChannelDetails_get_config(const struct LDKChannelDetails *NONNULL_PTR this_ptr);
22977 export function ChannelDetails_get_config(this_ptr: bigint): bigint {
22978 if(!isWasmInitialized) {
22979 throw new Error("initializeWasm() must be awaited first!");
22981 const nativeResponseValue = wasm.TS_ChannelDetails_get_config(this_ptr);
22982 return nativeResponseValue;
22984 // void ChannelDetails_set_config(struct LDKChannelDetails *NONNULL_PTR this_ptr, struct LDKChannelConfig val);
22986 export function ChannelDetails_set_config(this_ptr: bigint, val: bigint): void {
22987 if(!isWasmInitialized) {
22988 throw new Error("initializeWasm() must be awaited first!");
22990 const nativeResponseValue = wasm.TS_ChannelDetails_set_config(this_ptr, val);
22991 // debug statements here
22993 // 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 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, 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);
22995 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, 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, is_usable_arg: boolean, is_public_arg: boolean, inbound_htlc_minimum_msat_arg: bigint, inbound_htlc_maximum_msat_arg: bigint, config_arg: bigint): bigint {
22996 if(!isWasmInitialized) {
22997 throw new Error("initializeWasm() must be awaited first!");
22999 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, inbound_capacity_msat_arg, confirmations_required_arg, confirmations_arg, force_close_spend_delay_arg, is_outbound_arg, is_channel_ready_arg, is_usable_arg, is_public_arg, inbound_htlc_minimum_msat_arg, inbound_htlc_maximum_msat_arg, config_arg);
23000 return nativeResponseValue;
23002 // uint64_t ChannelDetails_clone_ptr(LDKChannelDetails *NONNULL_PTR arg);
23004 export function ChannelDetails_clone_ptr(arg: bigint): bigint {
23005 if(!isWasmInitialized) {
23006 throw new Error("initializeWasm() must be awaited first!");
23008 const nativeResponseValue = wasm.TS_ChannelDetails_clone_ptr(arg);
23009 return nativeResponseValue;
23011 // struct LDKChannelDetails ChannelDetails_clone(const struct LDKChannelDetails *NONNULL_PTR orig);
23013 export function ChannelDetails_clone(orig: bigint): bigint {
23014 if(!isWasmInitialized) {
23015 throw new Error("initializeWasm() must be awaited first!");
23017 const nativeResponseValue = wasm.TS_ChannelDetails_clone(orig);
23018 return nativeResponseValue;
23020 // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_inbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
23022 export function ChannelDetails_get_inbound_payment_scid(this_arg: bigint): bigint {
23023 if(!isWasmInitialized) {
23024 throw new Error("initializeWasm() must be awaited first!");
23026 const nativeResponseValue = wasm.TS_ChannelDetails_get_inbound_payment_scid(this_arg);
23027 return nativeResponseValue;
23029 // MUST_USE_RES struct LDKCOption_u64Z ChannelDetails_get_outbound_payment_scid(const struct LDKChannelDetails *NONNULL_PTR this_arg);
23031 export function ChannelDetails_get_outbound_payment_scid(this_arg: bigint): bigint {
23032 if(!isWasmInitialized) {
23033 throw new Error("initializeWasm() must be awaited first!");
23035 const nativeResponseValue = wasm.TS_ChannelDetails_get_outbound_payment_scid(this_arg);
23036 return nativeResponseValue;
23038 // void RecentPaymentDetails_free(struct LDKRecentPaymentDetails this_ptr);
23040 export function RecentPaymentDetails_free(this_ptr: bigint): void {
23041 if(!isWasmInitialized) {
23042 throw new Error("initializeWasm() must be awaited first!");
23044 const nativeResponseValue = wasm.TS_RecentPaymentDetails_free(this_ptr);
23045 // debug statements here
23047 // uint64_t RecentPaymentDetails_clone_ptr(LDKRecentPaymentDetails *NONNULL_PTR arg);
23049 export function RecentPaymentDetails_clone_ptr(arg: bigint): bigint {
23050 if(!isWasmInitialized) {
23051 throw new Error("initializeWasm() must be awaited first!");
23053 const nativeResponseValue = wasm.TS_RecentPaymentDetails_clone_ptr(arg);
23054 return nativeResponseValue;
23056 // struct LDKRecentPaymentDetails RecentPaymentDetails_clone(const struct LDKRecentPaymentDetails *NONNULL_PTR orig);
23058 export function RecentPaymentDetails_clone(orig: bigint): bigint {
23059 if(!isWasmInitialized) {
23060 throw new Error("initializeWasm() must be awaited first!");
23062 const nativeResponseValue = wasm.TS_RecentPaymentDetails_clone(orig);
23063 return nativeResponseValue;
23065 // struct LDKRecentPaymentDetails RecentPaymentDetails_pending(struct LDKThirtyTwoBytes payment_hash, uint64_t total_msat);
23067 export function RecentPaymentDetails_pending(payment_hash: number, total_msat: bigint): bigint {
23068 if(!isWasmInitialized) {
23069 throw new Error("initializeWasm() must be awaited first!");
23071 const nativeResponseValue = wasm.TS_RecentPaymentDetails_pending(payment_hash, total_msat);
23072 return nativeResponseValue;
23074 // struct LDKRecentPaymentDetails RecentPaymentDetails_fulfilled(struct LDKThirtyTwoBytes payment_hash);
23076 export function RecentPaymentDetails_fulfilled(payment_hash: number): bigint {
23077 if(!isWasmInitialized) {
23078 throw new Error("initializeWasm() must be awaited first!");
23080 const nativeResponseValue = wasm.TS_RecentPaymentDetails_fulfilled(payment_hash);
23081 return nativeResponseValue;
23083 // struct LDKRecentPaymentDetails RecentPaymentDetails_abandoned(struct LDKThirtyTwoBytes payment_hash);
23085 export function RecentPaymentDetails_abandoned(payment_hash: number): bigint {
23086 if(!isWasmInitialized) {
23087 throw new Error("initializeWasm() must be awaited first!");
23089 const nativeResponseValue = wasm.TS_RecentPaymentDetails_abandoned(payment_hash);
23090 return nativeResponseValue;
23092 // void PhantomRouteHints_free(struct LDKPhantomRouteHints this_obj);
23094 export function PhantomRouteHints_free(this_obj: bigint): void {
23095 if(!isWasmInitialized) {
23096 throw new Error("initializeWasm() must be awaited first!");
23098 const nativeResponseValue = wasm.TS_PhantomRouteHints_free(this_obj);
23099 // debug statements here
23101 // struct LDKCVec_ChannelDetailsZ PhantomRouteHints_get_channels(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
23103 export function PhantomRouteHints_get_channels(this_ptr: bigint): number {
23104 if(!isWasmInitialized) {
23105 throw new Error("initializeWasm() must be awaited first!");
23107 const nativeResponseValue = wasm.TS_PhantomRouteHints_get_channels(this_ptr);
23108 return nativeResponseValue;
23110 // void PhantomRouteHints_set_channels(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKCVec_ChannelDetailsZ val);
23112 export function PhantomRouteHints_set_channels(this_ptr: bigint, val: number): void {
23113 if(!isWasmInitialized) {
23114 throw new Error("initializeWasm() must be awaited first!");
23116 const nativeResponseValue = wasm.TS_PhantomRouteHints_set_channels(this_ptr, val);
23117 // debug statements here
23119 // uint64_t PhantomRouteHints_get_phantom_scid(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
23121 export function PhantomRouteHints_get_phantom_scid(this_ptr: bigint): bigint {
23122 if(!isWasmInitialized) {
23123 throw new Error("initializeWasm() must be awaited first!");
23125 const nativeResponseValue = wasm.TS_PhantomRouteHints_get_phantom_scid(this_ptr);
23126 return nativeResponseValue;
23128 // void PhantomRouteHints_set_phantom_scid(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, uint64_t val);
23130 export function PhantomRouteHints_set_phantom_scid(this_ptr: bigint, val: bigint): void {
23131 if(!isWasmInitialized) {
23132 throw new Error("initializeWasm() must be awaited first!");
23134 const nativeResponseValue = wasm.TS_PhantomRouteHints_set_phantom_scid(this_ptr, val);
23135 // debug statements here
23137 // struct LDKPublicKey PhantomRouteHints_get_real_node_pubkey(const struct LDKPhantomRouteHints *NONNULL_PTR this_ptr);
23139 export function PhantomRouteHints_get_real_node_pubkey(this_ptr: bigint): number {
23140 if(!isWasmInitialized) {
23141 throw new Error("initializeWasm() must be awaited first!");
23143 const nativeResponseValue = wasm.TS_PhantomRouteHints_get_real_node_pubkey(this_ptr);
23144 return nativeResponseValue;
23146 // void PhantomRouteHints_set_real_node_pubkey(struct LDKPhantomRouteHints *NONNULL_PTR this_ptr, struct LDKPublicKey val);
23148 export function PhantomRouteHints_set_real_node_pubkey(this_ptr: bigint, val: number): void {
23149 if(!isWasmInitialized) {
23150 throw new Error("initializeWasm() must be awaited first!");
23152 const nativeResponseValue = wasm.TS_PhantomRouteHints_set_real_node_pubkey(this_ptr, val);
23153 // debug statements here
23155 // MUST_USE_RES struct LDKPhantomRouteHints PhantomRouteHints_new(struct LDKCVec_ChannelDetailsZ channels_arg, uint64_t phantom_scid_arg, struct LDKPublicKey real_node_pubkey_arg);
23157 export function PhantomRouteHints_new(channels_arg: number, phantom_scid_arg: bigint, real_node_pubkey_arg: number): bigint {
23158 if(!isWasmInitialized) {
23159 throw new Error("initializeWasm() must be awaited first!");
23161 const nativeResponseValue = wasm.TS_PhantomRouteHints_new(channels_arg, phantom_scid_arg, real_node_pubkey_arg);
23162 return nativeResponseValue;
23164 // uint64_t PhantomRouteHints_clone_ptr(LDKPhantomRouteHints *NONNULL_PTR arg);
23166 export function PhantomRouteHints_clone_ptr(arg: bigint): bigint {
23167 if(!isWasmInitialized) {
23168 throw new Error("initializeWasm() must be awaited first!");
23170 const nativeResponseValue = wasm.TS_PhantomRouteHints_clone_ptr(arg);
23171 return nativeResponseValue;
23173 // struct LDKPhantomRouteHints PhantomRouteHints_clone(const struct LDKPhantomRouteHints *NONNULL_PTR orig);
23175 export function PhantomRouteHints_clone(orig: bigint): bigint {
23176 if(!isWasmInitialized) {
23177 throw new Error("initializeWasm() must be awaited first!");
23179 const nativeResponseValue = wasm.TS_PhantomRouteHints_clone(orig);
23180 return nativeResponseValue;
23182 // 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);
23184 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): bigint {
23185 if(!isWasmInitialized) {
23186 throw new Error("initializeWasm() must be awaited first!");
23188 const nativeResponseValue = wasm.TS_ChannelManager_new(fee_est, chain_monitor, tx_broadcaster, router, logger, entropy_source, node_signer, signer_provider, config, params);
23189 return nativeResponseValue;
23191 // MUST_USE_RES struct LDKUserConfig ChannelManager_get_current_default_configuration(const struct LDKChannelManager *NONNULL_PTR this_arg);
23193 export function ChannelManager_get_current_default_configuration(this_arg: bigint): bigint {
23194 if(!isWasmInitialized) {
23195 throw new Error("initializeWasm() must be awaited first!");
23197 const nativeResponseValue = wasm.TS_ChannelManager_get_current_default_configuration(this_arg);
23198 return nativeResponseValue;
23200 // MUST_USE_RES struct LDKCResult__u832APIErrorZ 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 LDKUserConfig override_config);
23202 export function ChannelManager_create_channel(this_arg: bigint, their_network_key: number, channel_value_satoshis: bigint, push_msat: bigint, user_channel_id: number, override_config: bigint): bigint {
23203 if(!isWasmInitialized) {
23204 throw new Error("initializeWasm() must be awaited first!");
23206 const nativeResponseValue = wasm.TS_ChannelManager_create_channel(this_arg, their_network_key, channel_value_satoshis, push_msat, user_channel_id, override_config);
23207 return nativeResponseValue;
23209 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
23211 export function ChannelManager_list_channels(this_arg: bigint): number {
23212 if(!isWasmInitialized) {
23213 throw new Error("initializeWasm() must be awaited first!");
23215 const nativeResponseValue = wasm.TS_ChannelManager_list_channels(this_arg);
23216 return nativeResponseValue;
23218 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_usable_channels(const struct LDKChannelManager *NONNULL_PTR this_arg);
23220 export function ChannelManager_list_usable_channels(this_arg: bigint): number {
23221 if(!isWasmInitialized) {
23222 throw new Error("initializeWasm() must be awaited first!");
23224 const nativeResponseValue = wasm.TS_ChannelManager_list_usable_channels(this_arg);
23225 return nativeResponseValue;
23227 // MUST_USE_RES struct LDKCVec_ChannelDetailsZ ChannelManager_list_channels_with_counterparty(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPublicKey counterparty_node_id);
23229 export function ChannelManager_list_channels_with_counterparty(this_arg: bigint, counterparty_node_id: number): number {
23230 if(!isWasmInitialized) {
23231 throw new Error("initializeWasm() must be awaited first!");
23233 const nativeResponseValue = wasm.TS_ChannelManager_list_channels_with_counterparty(this_arg, counterparty_node_id);
23234 return nativeResponseValue;
23236 // MUST_USE_RES struct LDKCVec_RecentPaymentDetailsZ ChannelManager_list_recent_payments(const struct LDKChannelManager *NONNULL_PTR this_arg);
23238 export function ChannelManager_list_recent_payments(this_arg: bigint): number {
23239 if(!isWasmInitialized) {
23240 throw new Error("initializeWasm() must be awaited first!");
23242 const nativeResponseValue = wasm.TS_ChannelManager_list_recent_payments(this_arg);
23243 return nativeResponseValue;
23245 // 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);
23247 export function ChannelManager_close_channel(this_arg: bigint, channel_id: number, counterparty_node_id: number): bigint {
23248 if(!isWasmInitialized) {
23249 throw new Error("initializeWasm() must be awaited first!");
23251 const nativeResponseValue = wasm.TS_ChannelManager_close_channel(this_arg, channel_id, counterparty_node_id);
23252 return nativeResponseValue;
23254 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_close_channel_with_target_feerate(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*channel_id)[32], struct LDKPublicKey counterparty_node_id, uint32_t target_feerate_sats_per_1000_weight);
23256 export function ChannelManager_close_channel_with_target_feerate(this_arg: bigint, channel_id: number, counterparty_node_id: number, target_feerate_sats_per_1000_weight: number): bigint {
23257 if(!isWasmInitialized) {
23258 throw new Error("initializeWasm() must be awaited first!");
23260 const nativeResponseValue = wasm.TS_ChannelManager_close_channel_with_target_feerate(this_arg, channel_id, counterparty_node_id, target_feerate_sats_per_1000_weight);
23261 return nativeResponseValue;
23263 // 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);
23265 export function ChannelManager_force_close_broadcasting_latest_txn(this_arg: bigint, channel_id: number, counterparty_node_id: number): bigint {
23266 if(!isWasmInitialized) {
23267 throw new Error("initializeWasm() must be awaited first!");
23269 const nativeResponseValue = wasm.TS_ChannelManager_force_close_broadcasting_latest_txn(this_arg, channel_id, counterparty_node_id);
23270 return nativeResponseValue;
23272 // 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);
23274 export function ChannelManager_force_close_without_broadcasting_txn(this_arg: bigint, channel_id: number, counterparty_node_id: number): bigint {
23275 if(!isWasmInitialized) {
23276 throw new Error("initializeWasm() must be awaited first!");
23278 const nativeResponseValue = wasm.TS_ChannelManager_force_close_without_broadcasting_txn(this_arg, channel_id, counterparty_node_id);
23279 return nativeResponseValue;
23281 // void ChannelManager_force_close_all_channels_broadcasting_latest_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
23283 export function ChannelManager_force_close_all_channels_broadcasting_latest_txn(this_arg: bigint): void {
23284 if(!isWasmInitialized) {
23285 throw new Error("initializeWasm() must be awaited first!");
23287 const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels_broadcasting_latest_txn(this_arg);
23288 // debug statements here
23290 // void ChannelManager_force_close_all_channels_without_broadcasting_txn(const struct LDKChannelManager *NONNULL_PTR this_arg);
23292 export function ChannelManager_force_close_all_channels_without_broadcasting_txn(this_arg: bigint): void {
23293 if(!isWasmInitialized) {
23294 throw new Error("initializeWasm() must be awaited first!");
23296 const nativeResponseValue = wasm.TS_ChannelManager_force_close_all_channels_without_broadcasting_txn(this_arg);
23297 // debug statements here
23299 // 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);
23301 export function ChannelManager_send_payment_with_route(this_arg: bigint, route: bigint, payment_hash: number, recipient_onion: bigint, payment_id: number): bigint {
23302 if(!isWasmInitialized) {
23303 throw new Error("initializeWasm() must be awaited first!");
23305 const nativeResponseValue = wasm.TS_ChannelManager_send_payment_with_route(this_arg, route, payment_hash, recipient_onion, payment_id);
23306 return nativeResponseValue;
23308 // 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);
23310 export function ChannelManager_send_payment(this_arg: bigint, payment_hash: number, recipient_onion: bigint, payment_id: number, route_params: bigint, retry_strategy: bigint): bigint {
23311 if(!isWasmInitialized) {
23312 throw new Error("initializeWasm() must be awaited first!");
23314 const nativeResponseValue = wasm.TS_ChannelManager_send_payment(this_arg, payment_hash, recipient_onion, payment_id, route_params, retry_strategy);
23315 return nativeResponseValue;
23317 // void ChannelManager_abandon_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_id);
23319 export function ChannelManager_abandon_payment(this_arg: bigint, payment_id: number): void {
23320 if(!isWasmInitialized) {
23321 throw new Error("initializeWasm() must be awaited first!");
23323 const nativeResponseValue = wasm.TS_ChannelManager_abandon_payment(this_arg, payment_id);
23324 // debug statements here
23326 // MUST_USE_RES struct LDKCResult_PaymentHashPaymentSendFailureZ ChannelManager_send_spontaneous_payment(const struct LDKChannelManager *NONNULL_PTR this_arg, const struct LDKRoute *NONNULL_PTR route, struct LDKThirtyTwoBytes payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id);
23328 export function ChannelManager_send_spontaneous_payment(this_arg: bigint, route: bigint, payment_preimage: number, recipient_onion: bigint, payment_id: number): bigint {
23329 if(!isWasmInitialized) {
23330 throw new Error("initializeWasm() must be awaited first!");
23332 const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_payment(this_arg, route, payment_preimage, recipient_onion, payment_id);
23333 return nativeResponseValue;
23335 // MUST_USE_RES struct LDKCResult_PaymentHashRetryableSendFailureZ ChannelManager_send_spontaneous_payment_with_retry(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage, struct LDKRecipientOnionFields recipient_onion, struct LDKThirtyTwoBytes payment_id, struct LDKRouteParameters route_params, struct LDKRetry retry_strategy);
23337 export function ChannelManager_send_spontaneous_payment_with_retry(this_arg: bigint, payment_preimage: number, recipient_onion: bigint, payment_id: number, route_params: bigint, retry_strategy: bigint): bigint {
23338 if(!isWasmInitialized) {
23339 throw new Error("initializeWasm() must be awaited first!");
23341 const nativeResponseValue = wasm.TS_ChannelManager_send_spontaneous_payment_with_retry(this_arg, payment_preimage, recipient_onion, payment_id, route_params, retry_strategy);
23342 return nativeResponseValue;
23344 // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentIdZPaymentSendFailureZ ChannelManager_send_probe(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKPath path);
23346 export function ChannelManager_send_probe(this_arg: bigint, path: bigint): bigint {
23347 if(!isWasmInitialized) {
23348 throw new Error("initializeWasm() must be awaited first!");
23350 const nativeResponseValue = wasm.TS_ChannelManager_send_probe(this_arg, path);
23351 return nativeResponseValue;
23353 // 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);
23355 export function ChannelManager_funding_transaction_generated(this_arg: bigint, temporary_channel_id: number, counterparty_node_id: number, funding_transaction: number): bigint {
23356 if(!isWasmInitialized) {
23357 throw new Error("initializeWasm() must be awaited first!");
23359 const nativeResponseValue = wasm.TS_ChannelManager_funding_transaction_generated(this_arg, temporary_channel_id, counterparty_node_id, funding_transaction);
23360 return nativeResponseValue;
23362 // 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);
23364 export function ChannelManager_update_channel_config(this_arg: bigint, counterparty_node_id: number, channel_ids: number, config: bigint): bigint {
23365 if(!isWasmInitialized) {
23366 throw new Error("initializeWasm() must be awaited first!");
23368 const nativeResponseValue = wasm.TS_ChannelManager_update_channel_config(this_arg, counterparty_node_id, channel_ids, config);
23369 return nativeResponseValue;
23371 // 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);
23373 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 {
23374 if(!isWasmInitialized) {
23375 throw new Error("initializeWasm() must be awaited first!");
23377 const nativeResponseValue = wasm.TS_ChannelManager_forward_intercepted_htlc(this_arg, intercept_id, next_hop_channel_id, next_node_id, amt_to_forward_msat);
23378 return nativeResponseValue;
23380 // MUST_USE_RES struct LDKCResult_NoneAPIErrorZ ChannelManager_fail_intercepted_htlc(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes intercept_id);
23382 export function ChannelManager_fail_intercepted_htlc(this_arg: bigint, intercept_id: number): bigint {
23383 if(!isWasmInitialized) {
23384 throw new Error("initializeWasm() must be awaited first!");
23386 const nativeResponseValue = wasm.TS_ChannelManager_fail_intercepted_htlc(this_arg, intercept_id);
23387 return nativeResponseValue;
23389 // void ChannelManager_process_pending_htlc_forwards(const struct LDKChannelManager *NONNULL_PTR this_arg);
23391 export function ChannelManager_process_pending_htlc_forwards(this_arg: bigint): void {
23392 if(!isWasmInitialized) {
23393 throw new Error("initializeWasm() must be awaited first!");
23395 const nativeResponseValue = wasm.TS_ChannelManager_process_pending_htlc_forwards(this_arg);
23396 // debug statements here
23398 // void ChannelManager_timer_tick_occurred(const struct LDKChannelManager *NONNULL_PTR this_arg);
23400 export function ChannelManager_timer_tick_occurred(this_arg: bigint): void {
23401 if(!isWasmInitialized) {
23402 throw new Error("initializeWasm() must be awaited first!");
23404 const nativeResponseValue = wasm.TS_ChannelManager_timer_tick_occurred(this_arg);
23405 // debug statements here
23407 // void ChannelManager_fail_htlc_backwards(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32]);
23409 export function ChannelManager_fail_htlc_backwards(this_arg: bigint, payment_hash: number): void {
23410 if(!isWasmInitialized) {
23411 throw new Error("initializeWasm() must be awaited first!");
23413 const nativeResponseValue = wasm.TS_ChannelManager_fail_htlc_backwards(this_arg, payment_hash);
23414 // debug statements here
23416 // void ChannelManager_fail_htlc_backwards_with_reason(const struct LDKChannelManager *NONNULL_PTR this_arg, const uint8_t (*payment_hash)[32], enum LDKFailureCode failure_code);
23418 export function ChannelManager_fail_htlc_backwards_with_reason(this_arg: bigint, payment_hash: number, failure_code: FailureCode): void {
23419 if(!isWasmInitialized) {
23420 throw new Error("initializeWasm() must be awaited first!");
23422 const nativeResponseValue = wasm.TS_ChannelManager_fail_htlc_backwards_with_reason(this_arg, payment_hash, failure_code);
23423 // debug statements here
23425 // void ChannelManager_claim_funds(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_preimage);
23427 export function ChannelManager_claim_funds(this_arg: bigint, payment_preimage: number): void {
23428 if(!isWasmInitialized) {
23429 throw new Error("initializeWasm() must be awaited first!");
23431 const nativeResponseValue = wasm.TS_ChannelManager_claim_funds(this_arg, payment_preimage);
23432 // debug statements here
23434 // MUST_USE_RES struct LDKPublicKey ChannelManager_get_our_node_id(const struct LDKChannelManager *NONNULL_PTR this_arg);
23436 export function ChannelManager_get_our_node_id(this_arg: bigint): number {
23437 if(!isWasmInitialized) {
23438 throw new Error("initializeWasm() must be awaited first!");
23440 const nativeResponseValue = wasm.TS_ChannelManager_get_our_node_id(this_arg);
23441 return nativeResponseValue;
23443 // 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);
23445 export function ChannelManager_accept_inbound_channel(this_arg: bigint, temporary_channel_id: number, counterparty_node_id: number, user_channel_id: number): bigint {
23446 if(!isWasmInitialized) {
23447 throw new Error("initializeWasm() must be awaited first!");
23449 const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id);
23450 return nativeResponseValue;
23452 // 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);
23454 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 {
23455 if(!isWasmInitialized) {
23456 throw new Error("initializeWasm() must be awaited first!");
23458 const nativeResponseValue = wasm.TS_ChannelManager_accept_inbound_channel_from_trusted_peer_0conf(this_arg, temporary_channel_id, counterparty_node_id, user_channel_id);
23459 return nativeResponseValue;
23461 // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ 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);
23463 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 {
23464 if(!isWasmInitialized) {
23465 throw new Error("initializeWasm() must be awaited first!");
23467 const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment(this_arg, min_value_msat, invoice_expiry_delta_secs, min_final_cltv_expiry_delta);
23468 return nativeResponseValue;
23470 // MUST_USE_RES struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ ChannelManager_create_inbound_payment_legacy(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs);
23472 export function ChannelManager_create_inbound_payment_legacy(this_arg: bigint, min_value_msat: bigint, invoice_expiry_delta_secs: number): bigint {
23473 if(!isWasmInitialized) {
23474 throw new Error("initializeWasm() must be awaited first!");
23476 const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_legacy(this_arg, min_value_msat, invoice_expiry_delta_secs);
23477 return nativeResponseValue;
23479 // MUST_USE_RES struct LDKCResult_PaymentSecretNoneZ 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);
23481 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 {
23482 if(!isWasmInitialized) {
23483 throw new Error("initializeWasm() must be awaited first!");
23485 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);
23486 return nativeResponseValue;
23488 // MUST_USE_RES struct LDKCResult_PaymentSecretAPIErrorZ ChannelManager_create_inbound_payment_for_hash_legacy(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs);
23490 export function ChannelManager_create_inbound_payment_for_hash_legacy(this_arg: bigint, payment_hash: number, min_value_msat: bigint, invoice_expiry_delta_secs: number): bigint {
23491 if(!isWasmInitialized) {
23492 throw new Error("initializeWasm() must be awaited first!");
23494 const nativeResponseValue = wasm.TS_ChannelManager_create_inbound_payment_for_hash_legacy(this_arg, payment_hash, min_value_msat, invoice_expiry_delta_secs);
23495 return nativeResponseValue;
23497 // MUST_USE_RES struct LDKCResult_PaymentPreimageAPIErrorZ ChannelManager_get_payment_preimage(const struct LDKChannelManager *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes payment_hash, struct LDKThirtyTwoBytes payment_secret);
23499 export function ChannelManager_get_payment_preimage(this_arg: bigint, payment_hash: number, payment_secret: number): bigint {
23500 if(!isWasmInitialized) {
23501 throw new Error("initializeWasm() must be awaited first!");
23503 const nativeResponseValue = wasm.TS_ChannelManager_get_payment_preimage(this_arg, payment_hash, payment_secret);
23504 return nativeResponseValue;
23506 // MUST_USE_RES uint64_t ChannelManager_get_phantom_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
23508 export function ChannelManager_get_phantom_scid(this_arg: bigint): bigint {
23509 if(!isWasmInitialized) {
23510 throw new Error("initializeWasm() must be awaited first!");
23512 const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_scid(this_arg);
23513 return nativeResponseValue;
23515 // MUST_USE_RES struct LDKPhantomRouteHints ChannelManager_get_phantom_route_hints(const struct LDKChannelManager *NONNULL_PTR this_arg);
23517 export function ChannelManager_get_phantom_route_hints(this_arg: bigint): bigint {
23518 if(!isWasmInitialized) {
23519 throw new Error("initializeWasm() must be awaited first!");
23521 const nativeResponseValue = wasm.TS_ChannelManager_get_phantom_route_hints(this_arg);
23522 return nativeResponseValue;
23524 // MUST_USE_RES uint64_t ChannelManager_get_intercept_scid(const struct LDKChannelManager *NONNULL_PTR this_arg);
23526 export function ChannelManager_get_intercept_scid(this_arg: bigint): bigint {
23527 if(!isWasmInitialized) {
23528 throw new Error("initializeWasm() must be awaited first!");
23530 const nativeResponseValue = wasm.TS_ChannelManager_get_intercept_scid(this_arg);
23531 return nativeResponseValue;
23533 // MUST_USE_RES struct LDKInFlightHtlcs ChannelManager_compute_inflight_htlcs(const struct LDKChannelManager *NONNULL_PTR this_arg);
23535 export function ChannelManager_compute_inflight_htlcs(this_arg: bigint): bigint {
23536 if(!isWasmInitialized) {
23537 throw new Error("initializeWasm() must be awaited first!");
23539 const nativeResponseValue = wasm.TS_ChannelManager_compute_inflight_htlcs(this_arg);
23540 return nativeResponseValue;
23542 // struct LDKMessageSendEventsProvider ChannelManager_as_MessageSendEventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
23544 export function ChannelManager_as_MessageSendEventsProvider(this_arg: bigint): bigint {
23545 if(!isWasmInitialized) {
23546 throw new Error("initializeWasm() must be awaited first!");
23548 const nativeResponseValue = wasm.TS_ChannelManager_as_MessageSendEventsProvider(this_arg);
23549 return nativeResponseValue;
23551 // struct LDKEventsProvider ChannelManager_as_EventsProvider(const struct LDKChannelManager *NONNULL_PTR this_arg);
23553 export function ChannelManager_as_EventsProvider(this_arg: bigint): bigint {
23554 if(!isWasmInitialized) {
23555 throw new Error("initializeWasm() must be awaited first!");
23557 const nativeResponseValue = wasm.TS_ChannelManager_as_EventsProvider(this_arg);
23558 return nativeResponseValue;
23560 // struct LDKListen ChannelManager_as_Listen(const struct LDKChannelManager *NONNULL_PTR this_arg);
23562 export function ChannelManager_as_Listen(this_arg: bigint): bigint {
23563 if(!isWasmInitialized) {
23564 throw new Error("initializeWasm() must be awaited first!");
23566 const nativeResponseValue = wasm.TS_ChannelManager_as_Listen(this_arg);
23567 return nativeResponseValue;
23569 // struct LDKConfirm ChannelManager_as_Confirm(const struct LDKChannelManager *NONNULL_PTR this_arg);
23571 export function ChannelManager_as_Confirm(this_arg: bigint): bigint {
23572 if(!isWasmInitialized) {
23573 throw new Error("initializeWasm() must be awaited first!");
23575 const nativeResponseValue = wasm.TS_ChannelManager_as_Confirm(this_arg);
23576 return nativeResponseValue;
23578 // MUST_USE_RES struct LDKFuture ChannelManager_get_persistable_update_future(const struct LDKChannelManager *NONNULL_PTR this_arg);
23580 export function ChannelManager_get_persistable_update_future(this_arg: bigint): bigint {
23581 if(!isWasmInitialized) {
23582 throw new Error("initializeWasm() must be awaited first!");
23584 const nativeResponseValue = wasm.TS_ChannelManager_get_persistable_update_future(this_arg);
23585 return nativeResponseValue;
23587 // MUST_USE_RES struct LDKBestBlock ChannelManager_current_best_block(const struct LDKChannelManager *NONNULL_PTR this_arg);
23589 export function ChannelManager_current_best_block(this_arg: bigint): bigint {
23590 if(!isWasmInitialized) {
23591 throw new Error("initializeWasm() must be awaited first!");
23593 const nativeResponseValue = wasm.TS_ChannelManager_current_best_block(this_arg);
23594 return nativeResponseValue;
23596 // MUST_USE_RES struct LDKNodeFeatures ChannelManager_node_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
23598 export function ChannelManager_node_features(this_arg: bigint): bigint {
23599 if(!isWasmInitialized) {
23600 throw new Error("initializeWasm() must be awaited first!");
23602 const nativeResponseValue = wasm.TS_ChannelManager_node_features(this_arg);
23603 return nativeResponseValue;
23605 // MUST_USE_RES struct LDKChannelFeatures ChannelManager_channel_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
23607 export function ChannelManager_channel_features(this_arg: bigint): bigint {
23608 if(!isWasmInitialized) {
23609 throw new Error("initializeWasm() must be awaited first!");
23611 const nativeResponseValue = wasm.TS_ChannelManager_channel_features(this_arg);
23612 return nativeResponseValue;
23614 // MUST_USE_RES struct LDKChannelTypeFeatures ChannelManager_channel_type_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
23616 export function ChannelManager_channel_type_features(this_arg: bigint): bigint {
23617 if(!isWasmInitialized) {
23618 throw new Error("initializeWasm() must be awaited first!");
23620 const nativeResponseValue = wasm.TS_ChannelManager_channel_type_features(this_arg);
23621 return nativeResponseValue;
23623 // MUST_USE_RES struct LDKInitFeatures ChannelManager_init_features(const struct LDKChannelManager *NONNULL_PTR this_arg);
23625 export function ChannelManager_init_features(this_arg: bigint): bigint {
23626 if(!isWasmInitialized) {
23627 throw new Error("initializeWasm() must be awaited first!");
23629 const nativeResponseValue = wasm.TS_ChannelManager_init_features(this_arg);
23630 return nativeResponseValue;
23632 // struct LDKChannelMessageHandler ChannelManager_as_ChannelMessageHandler(const struct LDKChannelManager *NONNULL_PTR this_arg);
23634 export function ChannelManager_as_ChannelMessageHandler(this_arg: bigint): bigint {
23635 if(!isWasmInitialized) {
23636 throw new Error("initializeWasm() must be awaited first!");
23638 const nativeResponseValue = wasm.TS_ChannelManager_as_ChannelMessageHandler(this_arg);
23639 return nativeResponseValue;
23641 // struct LDKInitFeatures provided_init_features(const struct LDKUserConfig *NONNULL_PTR _config);
23643 export function provided_init_features(_config: bigint): bigint {
23644 if(!isWasmInitialized) {
23645 throw new Error("initializeWasm() must be awaited first!");
23647 const nativeResponseValue = wasm.TS_provided_init_features(_config);
23648 return nativeResponseValue;
23650 // struct LDKCVec_u8Z CounterpartyForwardingInfo_write(const struct LDKCounterpartyForwardingInfo *NONNULL_PTR obj);
23652 export function CounterpartyForwardingInfo_write(obj: bigint): number {
23653 if(!isWasmInitialized) {
23654 throw new Error("initializeWasm() must be awaited first!");
23656 const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_write(obj);
23657 return nativeResponseValue;
23659 // struct LDKCResult_CounterpartyForwardingInfoDecodeErrorZ CounterpartyForwardingInfo_read(struct LDKu8slice ser);
23661 export function CounterpartyForwardingInfo_read(ser: number): bigint {
23662 if(!isWasmInitialized) {
23663 throw new Error("initializeWasm() must be awaited first!");
23665 const nativeResponseValue = wasm.TS_CounterpartyForwardingInfo_read(ser);
23666 return nativeResponseValue;
23668 // struct LDKCVec_u8Z ChannelCounterparty_write(const struct LDKChannelCounterparty *NONNULL_PTR obj);
23670 export function ChannelCounterparty_write(obj: bigint): number {
23671 if(!isWasmInitialized) {
23672 throw new Error("initializeWasm() must be awaited first!");
23674 const nativeResponseValue = wasm.TS_ChannelCounterparty_write(obj);
23675 return nativeResponseValue;
23677 // struct LDKCResult_ChannelCounterpartyDecodeErrorZ ChannelCounterparty_read(struct LDKu8slice ser);
23679 export function ChannelCounterparty_read(ser: number): bigint {
23680 if(!isWasmInitialized) {
23681 throw new Error("initializeWasm() must be awaited first!");
23683 const nativeResponseValue = wasm.TS_ChannelCounterparty_read(ser);
23684 return nativeResponseValue;
23686 // struct LDKCVec_u8Z ChannelDetails_write(const struct LDKChannelDetails *NONNULL_PTR obj);
23688 export function ChannelDetails_write(obj: bigint): number {
23689 if(!isWasmInitialized) {
23690 throw new Error("initializeWasm() must be awaited first!");
23692 const nativeResponseValue = wasm.TS_ChannelDetails_write(obj);
23693 return nativeResponseValue;
23695 // struct LDKCResult_ChannelDetailsDecodeErrorZ ChannelDetails_read(struct LDKu8slice ser);
23697 export function ChannelDetails_read(ser: number): bigint {
23698 if(!isWasmInitialized) {
23699 throw new Error("initializeWasm() must be awaited first!");
23701 const nativeResponseValue = wasm.TS_ChannelDetails_read(ser);
23702 return nativeResponseValue;
23704 // struct LDKCVec_u8Z PhantomRouteHints_write(const struct LDKPhantomRouteHints *NONNULL_PTR obj);
23706 export function PhantomRouteHints_write(obj: bigint): number {
23707 if(!isWasmInitialized) {
23708 throw new Error("initializeWasm() must be awaited first!");
23710 const nativeResponseValue = wasm.TS_PhantomRouteHints_write(obj);
23711 return nativeResponseValue;
23713 // struct LDKCResult_PhantomRouteHintsDecodeErrorZ PhantomRouteHints_read(struct LDKu8slice ser);
23715 export function PhantomRouteHints_read(ser: number): bigint {
23716 if(!isWasmInitialized) {
23717 throw new Error("initializeWasm() must be awaited first!");
23719 const nativeResponseValue = wasm.TS_PhantomRouteHints_read(ser);
23720 return nativeResponseValue;
23722 // struct LDKCVec_u8Z ChannelManager_write(const struct LDKChannelManager *NONNULL_PTR obj);
23724 export function ChannelManager_write(obj: bigint): number {
23725 if(!isWasmInitialized) {
23726 throw new Error("initializeWasm() must be awaited first!");
23728 const nativeResponseValue = wasm.TS_ChannelManager_write(obj);
23729 return nativeResponseValue;
23731 // void ChannelManagerReadArgs_free(struct LDKChannelManagerReadArgs this_obj);
23733 export function ChannelManagerReadArgs_free(this_obj: bigint): void {
23734 if(!isWasmInitialized) {
23735 throw new Error("initializeWasm() must be awaited first!");
23737 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_free(this_obj);
23738 // debug statements here
23740 // const struct LDKEntropySource *ChannelManagerReadArgs_get_entropy_source(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
23742 export function ChannelManagerReadArgs_get_entropy_source(this_ptr: bigint): bigint {
23743 if(!isWasmInitialized) {
23744 throw new Error("initializeWasm() must be awaited first!");
23746 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_entropy_source(this_ptr);
23747 return nativeResponseValue;
23749 // void ChannelManagerReadArgs_set_entropy_source(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKEntropySource val);
23751 export function ChannelManagerReadArgs_set_entropy_source(this_ptr: bigint, val: bigint): void {
23752 if(!isWasmInitialized) {
23753 throw new Error("initializeWasm() must be awaited first!");
23755 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_entropy_source(this_ptr, val);
23756 // debug statements here
23758 // const struct LDKNodeSigner *ChannelManagerReadArgs_get_node_signer(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
23760 export function ChannelManagerReadArgs_get_node_signer(this_ptr: bigint): bigint {
23761 if(!isWasmInitialized) {
23762 throw new Error("initializeWasm() must be awaited first!");
23764 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_node_signer(this_ptr);
23765 return nativeResponseValue;
23767 // void ChannelManagerReadArgs_set_node_signer(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKNodeSigner val);
23769 export function ChannelManagerReadArgs_set_node_signer(this_ptr: bigint, val: bigint): void {
23770 if(!isWasmInitialized) {
23771 throw new Error("initializeWasm() must be awaited first!");
23773 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_node_signer(this_ptr, val);
23774 // debug statements here
23776 // const struct LDKSignerProvider *ChannelManagerReadArgs_get_signer_provider(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
23778 export function ChannelManagerReadArgs_get_signer_provider(this_ptr: bigint): bigint {
23779 if(!isWasmInitialized) {
23780 throw new Error("initializeWasm() must be awaited first!");
23782 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_signer_provider(this_ptr);
23783 return nativeResponseValue;
23785 // void ChannelManagerReadArgs_set_signer_provider(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKSignerProvider val);
23787 export function ChannelManagerReadArgs_set_signer_provider(this_ptr: bigint, val: bigint): void {
23788 if(!isWasmInitialized) {
23789 throw new Error("initializeWasm() must be awaited first!");
23791 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_signer_provider(this_ptr, val);
23792 // debug statements here
23794 // const struct LDKFeeEstimator *ChannelManagerReadArgs_get_fee_estimator(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
23796 export function ChannelManagerReadArgs_get_fee_estimator(this_ptr: bigint): bigint {
23797 if(!isWasmInitialized) {
23798 throw new Error("initializeWasm() must be awaited first!");
23800 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_fee_estimator(this_ptr);
23801 return nativeResponseValue;
23803 // void ChannelManagerReadArgs_set_fee_estimator(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKFeeEstimator val);
23805 export function ChannelManagerReadArgs_set_fee_estimator(this_ptr: bigint, val: bigint): void {
23806 if(!isWasmInitialized) {
23807 throw new Error("initializeWasm() must be awaited first!");
23809 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_fee_estimator(this_ptr, val);
23810 // debug statements here
23812 // const struct LDKWatch *ChannelManagerReadArgs_get_chain_monitor(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
23814 export function ChannelManagerReadArgs_get_chain_monitor(this_ptr: bigint): bigint {
23815 if(!isWasmInitialized) {
23816 throw new Error("initializeWasm() must be awaited first!");
23818 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_chain_monitor(this_ptr);
23819 return nativeResponseValue;
23821 // void ChannelManagerReadArgs_set_chain_monitor(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKWatch val);
23823 export function ChannelManagerReadArgs_set_chain_monitor(this_ptr: bigint, val: bigint): void {
23824 if(!isWasmInitialized) {
23825 throw new Error("initializeWasm() must be awaited first!");
23827 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_chain_monitor(this_ptr, val);
23828 // debug statements here
23830 // const struct LDKBroadcasterInterface *ChannelManagerReadArgs_get_tx_broadcaster(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
23832 export function ChannelManagerReadArgs_get_tx_broadcaster(this_ptr: bigint): bigint {
23833 if(!isWasmInitialized) {
23834 throw new Error("initializeWasm() must be awaited first!");
23836 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_tx_broadcaster(this_ptr);
23837 return nativeResponseValue;
23839 // void ChannelManagerReadArgs_set_tx_broadcaster(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKBroadcasterInterface val);
23841 export function ChannelManagerReadArgs_set_tx_broadcaster(this_ptr: bigint, val: bigint): void {
23842 if(!isWasmInitialized) {
23843 throw new Error("initializeWasm() must be awaited first!");
23845 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_tx_broadcaster(this_ptr, val);
23846 // debug statements here
23848 // const struct LDKRouter *ChannelManagerReadArgs_get_router(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
23850 export function ChannelManagerReadArgs_get_router(this_ptr: bigint): bigint {
23851 if(!isWasmInitialized) {
23852 throw new Error("initializeWasm() must be awaited first!");
23854 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_router(this_ptr);
23855 return nativeResponseValue;
23857 // void ChannelManagerReadArgs_set_router(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKRouter val);
23859 export function ChannelManagerReadArgs_set_router(this_ptr: bigint, val: bigint): void {
23860 if(!isWasmInitialized) {
23861 throw new Error("initializeWasm() must be awaited first!");
23863 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_router(this_ptr, val);
23864 // debug statements here
23866 // const struct LDKLogger *ChannelManagerReadArgs_get_logger(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
23868 export function ChannelManagerReadArgs_get_logger(this_ptr: bigint): bigint {
23869 if(!isWasmInitialized) {
23870 throw new Error("initializeWasm() must be awaited first!");
23872 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_logger(this_ptr);
23873 return nativeResponseValue;
23875 // void ChannelManagerReadArgs_set_logger(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKLogger val);
23877 export function ChannelManagerReadArgs_set_logger(this_ptr: bigint, val: bigint): void {
23878 if(!isWasmInitialized) {
23879 throw new Error("initializeWasm() must be awaited first!");
23881 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_logger(this_ptr, val);
23882 // debug statements here
23884 // struct LDKUserConfig ChannelManagerReadArgs_get_default_config(const struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr);
23886 export function ChannelManagerReadArgs_get_default_config(this_ptr: bigint): bigint {
23887 if(!isWasmInitialized) {
23888 throw new Error("initializeWasm() must be awaited first!");
23890 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_get_default_config(this_ptr);
23891 return nativeResponseValue;
23893 // void ChannelManagerReadArgs_set_default_config(struct LDKChannelManagerReadArgs *NONNULL_PTR this_ptr, struct LDKUserConfig val);
23895 export function ChannelManagerReadArgs_set_default_config(this_ptr: bigint, val: bigint): void {
23896 if(!isWasmInitialized) {
23897 throw new Error("initializeWasm() must be awaited first!");
23899 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_set_default_config(this_ptr, val);
23900 // debug statements here
23902 // 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);
23904 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 {
23905 if(!isWasmInitialized) {
23906 throw new Error("initializeWasm() must be awaited first!");
23908 const nativeResponseValue = wasm.TS_ChannelManagerReadArgs_new(entropy_source, node_signer, signer_provider, fee_estimator, chain_monitor, tx_broadcaster, router, logger, default_config, channel_monitors);
23909 return nativeResponseValue;
23911 // struct LDKCResult_C2Tuple_BlockHashChannelManagerZDecodeErrorZ C2Tuple_BlockHashChannelManagerZ_read(struct LDKu8slice ser, struct LDKChannelManagerReadArgs arg);
23913 export function C2Tuple_BlockHashChannelManagerZ_read(ser: number, arg: bigint): bigint {
23914 if(!isWasmInitialized) {
23915 throw new Error("initializeWasm() must be awaited first!");
23917 const nativeResponseValue = wasm.TS_C2Tuple_BlockHashChannelManagerZ_read(ser, arg);
23918 return nativeResponseValue;
23920 // void ExpandedKey_free(struct LDKExpandedKey this_obj);
23922 export function ExpandedKey_free(this_obj: bigint): void {
23923 if(!isWasmInitialized) {
23924 throw new Error("initializeWasm() must be awaited first!");
23926 const nativeResponseValue = wasm.TS_ExpandedKey_free(this_obj);
23927 // debug statements here
23929 // MUST_USE_RES struct LDKExpandedKey ExpandedKey_new(const uint8_t (*key_material)[32]);
23931 export function ExpandedKey_new(key_material: number): bigint {
23932 if(!isWasmInitialized) {
23933 throw new Error("initializeWasm() must be awaited first!");
23935 const nativeResponseValue = wasm.TS_ExpandedKey_new(key_material);
23936 return nativeResponseValue;
23938 // struct LDKCResult_C2Tuple_PaymentHashPaymentSecretZNoneZ create(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, uint32_t invoice_expiry_delta_secs, const struct LDKEntropySource *NONNULL_PTR entropy_source, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
23940 export function create(keys: bigint, min_value_msat: bigint, invoice_expiry_delta_secs: number, entropy_source: bigint, current_time: bigint, min_final_cltv_expiry_delta: bigint): bigint {
23941 if(!isWasmInitialized) {
23942 throw new Error("initializeWasm() must be awaited first!");
23944 const nativeResponseValue = wasm.TS_create(keys, min_value_msat, invoice_expiry_delta_secs, entropy_source, current_time, min_final_cltv_expiry_delta);
23945 return nativeResponseValue;
23947 // struct LDKCResult_PaymentSecretNoneZ create_from_hash(const struct LDKExpandedKey *NONNULL_PTR keys, struct LDKCOption_u64Z min_value_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, uint64_t current_time, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
23949 export function create_from_hash(keys: bigint, min_value_msat: bigint, payment_hash: number, invoice_expiry_delta_secs: number, current_time: bigint, min_final_cltv_expiry_delta: bigint): bigint {
23950 if(!isWasmInitialized) {
23951 throw new Error("initializeWasm() must be awaited first!");
23953 const nativeResponseValue = wasm.TS_create_from_hash(keys, min_value_msat, payment_hash, invoice_expiry_delta_secs, current_time, min_final_cltv_expiry_delta);
23954 return nativeResponseValue;
23956 // void DecodeError_free(struct LDKDecodeError this_ptr);
23958 export function DecodeError_free(this_ptr: bigint): void {
23959 if(!isWasmInitialized) {
23960 throw new Error("initializeWasm() must be awaited first!");
23962 const nativeResponseValue = wasm.TS_DecodeError_free(this_ptr);
23963 // debug statements here
23965 // uint64_t DecodeError_clone_ptr(LDKDecodeError *NONNULL_PTR arg);
23967 export function DecodeError_clone_ptr(arg: bigint): bigint {
23968 if(!isWasmInitialized) {
23969 throw new Error("initializeWasm() must be awaited first!");
23971 const nativeResponseValue = wasm.TS_DecodeError_clone_ptr(arg);
23972 return nativeResponseValue;
23974 // struct LDKDecodeError DecodeError_clone(const struct LDKDecodeError *NONNULL_PTR orig);
23976 export function DecodeError_clone(orig: bigint): bigint {
23977 if(!isWasmInitialized) {
23978 throw new Error("initializeWasm() must be awaited first!");
23980 const nativeResponseValue = wasm.TS_DecodeError_clone(orig);
23981 return nativeResponseValue;
23983 // struct LDKDecodeError DecodeError_unknown_version(void);
23985 export function DecodeError_unknown_version(): bigint {
23986 if(!isWasmInitialized) {
23987 throw new Error("initializeWasm() must be awaited first!");
23989 const nativeResponseValue = wasm.TS_DecodeError_unknown_version();
23990 return nativeResponseValue;
23992 // struct LDKDecodeError DecodeError_unknown_required_feature(void);
23994 export function DecodeError_unknown_required_feature(): bigint {
23995 if(!isWasmInitialized) {
23996 throw new Error("initializeWasm() must be awaited first!");
23998 const nativeResponseValue = wasm.TS_DecodeError_unknown_required_feature();
23999 return nativeResponseValue;
24001 // struct LDKDecodeError DecodeError_invalid_value(void);
24003 export function DecodeError_invalid_value(): bigint {
24004 if(!isWasmInitialized) {
24005 throw new Error("initializeWasm() must be awaited first!");
24007 const nativeResponseValue = wasm.TS_DecodeError_invalid_value();
24008 return nativeResponseValue;
24010 // struct LDKDecodeError DecodeError_short_read(void);
24012 export function DecodeError_short_read(): bigint {
24013 if(!isWasmInitialized) {
24014 throw new Error("initializeWasm() must be awaited first!");
24016 const nativeResponseValue = wasm.TS_DecodeError_short_read();
24017 return nativeResponseValue;
24019 // struct LDKDecodeError DecodeError_bad_length_descriptor(void);
24021 export function DecodeError_bad_length_descriptor(): bigint {
24022 if(!isWasmInitialized) {
24023 throw new Error("initializeWasm() must be awaited first!");
24025 const nativeResponseValue = wasm.TS_DecodeError_bad_length_descriptor();
24026 return nativeResponseValue;
24028 // struct LDKDecodeError DecodeError_io(enum LDKIOError a);
24030 export function DecodeError_io(a: IOError): bigint {
24031 if(!isWasmInitialized) {
24032 throw new Error("initializeWasm() must be awaited first!");
24034 const nativeResponseValue = wasm.TS_DecodeError_io(a);
24035 return nativeResponseValue;
24037 // struct LDKDecodeError DecodeError_unsupported_compression(void);
24039 export function DecodeError_unsupported_compression(): bigint {
24040 if(!isWasmInitialized) {
24041 throw new Error("initializeWasm() must be awaited first!");
24043 const nativeResponseValue = wasm.TS_DecodeError_unsupported_compression();
24044 return nativeResponseValue;
24046 // bool DecodeError_eq(const struct LDKDecodeError *NONNULL_PTR a, const struct LDKDecodeError *NONNULL_PTR b);
24048 export function DecodeError_eq(a: bigint, b: bigint): boolean {
24049 if(!isWasmInitialized) {
24050 throw new Error("initializeWasm() must be awaited first!");
24052 const nativeResponseValue = wasm.TS_DecodeError_eq(a, b);
24053 return nativeResponseValue;
24055 // void Init_free(struct LDKInit this_obj);
24057 export function Init_free(this_obj: bigint): void {
24058 if(!isWasmInitialized) {
24059 throw new Error("initializeWasm() must be awaited first!");
24061 const nativeResponseValue = wasm.TS_Init_free(this_obj);
24062 // debug statements here
24064 // struct LDKInitFeatures Init_get_features(const struct LDKInit *NONNULL_PTR this_ptr);
24066 export function Init_get_features(this_ptr: bigint): bigint {
24067 if(!isWasmInitialized) {
24068 throw new Error("initializeWasm() must be awaited first!");
24070 const nativeResponseValue = wasm.TS_Init_get_features(this_ptr);
24071 return nativeResponseValue;
24073 // void Init_set_features(struct LDKInit *NONNULL_PTR this_ptr, struct LDKInitFeatures val);
24075 export function Init_set_features(this_ptr: bigint, val: bigint): void {
24076 if(!isWasmInitialized) {
24077 throw new Error("initializeWasm() must be awaited first!");
24079 const nativeResponseValue = wasm.TS_Init_set_features(this_ptr, val);
24080 // debug statements here
24082 // struct LDKCOption_NetAddressZ Init_get_remote_network_address(const struct LDKInit *NONNULL_PTR this_ptr);
24084 export function Init_get_remote_network_address(this_ptr: bigint): bigint {
24085 if(!isWasmInitialized) {
24086 throw new Error("initializeWasm() must be awaited first!");
24088 const nativeResponseValue = wasm.TS_Init_get_remote_network_address(this_ptr);
24089 return nativeResponseValue;
24091 // void Init_set_remote_network_address(struct LDKInit *NONNULL_PTR this_ptr, struct LDKCOption_NetAddressZ val);
24093 export function Init_set_remote_network_address(this_ptr: bigint, val: bigint): void {
24094 if(!isWasmInitialized) {
24095 throw new Error("initializeWasm() must be awaited first!");
24097 const nativeResponseValue = wasm.TS_Init_set_remote_network_address(this_ptr, val);
24098 // debug statements here
24100 // MUST_USE_RES struct LDKInit Init_new(struct LDKInitFeatures features_arg, struct LDKCOption_NetAddressZ remote_network_address_arg);
24102 export function Init_new(features_arg: bigint, remote_network_address_arg: bigint): bigint {
24103 if(!isWasmInitialized) {
24104 throw new Error("initializeWasm() must be awaited first!");
24106 const nativeResponseValue = wasm.TS_Init_new(features_arg, remote_network_address_arg);
24107 return nativeResponseValue;
24109 // uint64_t Init_clone_ptr(LDKInit *NONNULL_PTR arg);
24111 export function Init_clone_ptr(arg: bigint): bigint {
24112 if(!isWasmInitialized) {
24113 throw new Error("initializeWasm() must be awaited first!");
24115 const nativeResponseValue = wasm.TS_Init_clone_ptr(arg);
24116 return nativeResponseValue;
24118 // struct LDKInit Init_clone(const struct LDKInit *NONNULL_PTR orig);
24120 export function Init_clone(orig: bigint): bigint {
24121 if(!isWasmInitialized) {
24122 throw new Error("initializeWasm() must be awaited first!");
24124 const nativeResponseValue = wasm.TS_Init_clone(orig);
24125 return nativeResponseValue;
24127 // bool Init_eq(const struct LDKInit *NONNULL_PTR a, const struct LDKInit *NONNULL_PTR b);
24129 export function Init_eq(a: bigint, b: bigint): boolean {
24130 if(!isWasmInitialized) {
24131 throw new Error("initializeWasm() must be awaited first!");
24133 const nativeResponseValue = wasm.TS_Init_eq(a, b);
24134 return nativeResponseValue;
24136 // void ErrorMessage_free(struct LDKErrorMessage this_obj);
24138 export function ErrorMessage_free(this_obj: bigint): void {
24139 if(!isWasmInitialized) {
24140 throw new Error("initializeWasm() must be awaited first!");
24142 const nativeResponseValue = wasm.TS_ErrorMessage_free(this_obj);
24143 // debug statements here
24145 // const uint8_t (*ErrorMessage_get_channel_id(const struct LDKErrorMessage *NONNULL_PTR this_ptr))[32];
24147 export function ErrorMessage_get_channel_id(this_ptr: bigint): number {
24148 if(!isWasmInitialized) {
24149 throw new Error("initializeWasm() must be awaited first!");
24151 const nativeResponseValue = wasm.TS_ErrorMessage_get_channel_id(this_ptr);
24152 return nativeResponseValue;
24154 // void ErrorMessage_set_channel_id(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
24156 export function ErrorMessage_set_channel_id(this_ptr: bigint, val: number): void {
24157 if(!isWasmInitialized) {
24158 throw new Error("initializeWasm() must be awaited first!");
24160 const nativeResponseValue = wasm.TS_ErrorMessage_set_channel_id(this_ptr, val);
24161 // debug statements here
24163 // struct LDKStr ErrorMessage_get_data(const struct LDKErrorMessage *NONNULL_PTR this_ptr);
24165 export function ErrorMessage_get_data(this_ptr: bigint): number {
24166 if(!isWasmInitialized) {
24167 throw new Error("initializeWasm() must be awaited first!");
24169 const nativeResponseValue = wasm.TS_ErrorMessage_get_data(this_ptr);
24170 return nativeResponseValue;
24172 // void ErrorMessage_set_data(struct LDKErrorMessage *NONNULL_PTR this_ptr, struct LDKStr val);
24174 export function ErrorMessage_set_data(this_ptr: bigint, val: number): void {
24175 if(!isWasmInitialized) {
24176 throw new Error("initializeWasm() must be awaited first!");
24178 const nativeResponseValue = wasm.TS_ErrorMessage_set_data(this_ptr, val);
24179 // debug statements here
24181 // MUST_USE_RES struct LDKErrorMessage ErrorMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
24183 export function ErrorMessage_new(channel_id_arg: number, data_arg: number): bigint {
24184 if(!isWasmInitialized) {
24185 throw new Error("initializeWasm() must be awaited first!");
24187 const nativeResponseValue = wasm.TS_ErrorMessage_new(channel_id_arg, data_arg);
24188 return nativeResponseValue;
24190 // uint64_t ErrorMessage_clone_ptr(LDKErrorMessage *NONNULL_PTR arg);
24192 export function ErrorMessage_clone_ptr(arg: bigint): bigint {
24193 if(!isWasmInitialized) {
24194 throw new Error("initializeWasm() must be awaited first!");
24196 const nativeResponseValue = wasm.TS_ErrorMessage_clone_ptr(arg);
24197 return nativeResponseValue;
24199 // struct LDKErrorMessage ErrorMessage_clone(const struct LDKErrorMessage *NONNULL_PTR orig);
24201 export function ErrorMessage_clone(orig: bigint): bigint {
24202 if(!isWasmInitialized) {
24203 throw new Error("initializeWasm() must be awaited first!");
24205 const nativeResponseValue = wasm.TS_ErrorMessage_clone(orig);
24206 return nativeResponseValue;
24208 // bool ErrorMessage_eq(const struct LDKErrorMessage *NONNULL_PTR a, const struct LDKErrorMessage *NONNULL_PTR b);
24210 export function ErrorMessage_eq(a: bigint, b: bigint): boolean {
24211 if(!isWasmInitialized) {
24212 throw new Error("initializeWasm() must be awaited first!");
24214 const nativeResponseValue = wasm.TS_ErrorMessage_eq(a, b);
24215 return nativeResponseValue;
24217 // void WarningMessage_free(struct LDKWarningMessage this_obj);
24219 export function WarningMessage_free(this_obj: bigint): void {
24220 if(!isWasmInitialized) {
24221 throw new Error("initializeWasm() must be awaited first!");
24223 const nativeResponseValue = wasm.TS_WarningMessage_free(this_obj);
24224 // debug statements here
24226 // const uint8_t (*WarningMessage_get_channel_id(const struct LDKWarningMessage *NONNULL_PTR this_ptr))[32];
24228 export function WarningMessage_get_channel_id(this_ptr: bigint): number {
24229 if(!isWasmInitialized) {
24230 throw new Error("initializeWasm() must be awaited first!");
24232 const nativeResponseValue = wasm.TS_WarningMessage_get_channel_id(this_ptr);
24233 return nativeResponseValue;
24235 // void WarningMessage_set_channel_id(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
24237 export function WarningMessage_set_channel_id(this_ptr: bigint, val: number): void {
24238 if(!isWasmInitialized) {
24239 throw new Error("initializeWasm() must be awaited first!");
24241 const nativeResponseValue = wasm.TS_WarningMessage_set_channel_id(this_ptr, val);
24242 // debug statements here
24244 // struct LDKStr WarningMessage_get_data(const struct LDKWarningMessage *NONNULL_PTR this_ptr);
24246 export function WarningMessage_get_data(this_ptr: bigint): number {
24247 if(!isWasmInitialized) {
24248 throw new Error("initializeWasm() must be awaited first!");
24250 const nativeResponseValue = wasm.TS_WarningMessage_get_data(this_ptr);
24251 return nativeResponseValue;
24253 // void WarningMessage_set_data(struct LDKWarningMessage *NONNULL_PTR this_ptr, struct LDKStr val);
24255 export function WarningMessage_set_data(this_ptr: bigint, val: number): void {
24256 if(!isWasmInitialized) {
24257 throw new Error("initializeWasm() must be awaited first!");
24259 const nativeResponseValue = wasm.TS_WarningMessage_set_data(this_ptr, val);
24260 // debug statements here
24262 // MUST_USE_RES struct LDKWarningMessage WarningMessage_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKStr data_arg);
24264 export function WarningMessage_new(channel_id_arg: number, data_arg: number): bigint {
24265 if(!isWasmInitialized) {
24266 throw new Error("initializeWasm() must be awaited first!");
24268 const nativeResponseValue = wasm.TS_WarningMessage_new(channel_id_arg, data_arg);
24269 return nativeResponseValue;
24271 // uint64_t WarningMessage_clone_ptr(LDKWarningMessage *NONNULL_PTR arg);
24273 export function WarningMessage_clone_ptr(arg: bigint): bigint {
24274 if(!isWasmInitialized) {
24275 throw new Error("initializeWasm() must be awaited first!");
24277 const nativeResponseValue = wasm.TS_WarningMessage_clone_ptr(arg);
24278 return nativeResponseValue;
24280 // struct LDKWarningMessage WarningMessage_clone(const struct LDKWarningMessage *NONNULL_PTR orig);
24282 export function WarningMessage_clone(orig: bigint): bigint {
24283 if(!isWasmInitialized) {
24284 throw new Error("initializeWasm() must be awaited first!");
24286 const nativeResponseValue = wasm.TS_WarningMessage_clone(orig);
24287 return nativeResponseValue;
24289 // bool WarningMessage_eq(const struct LDKWarningMessage *NONNULL_PTR a, const struct LDKWarningMessage *NONNULL_PTR b);
24291 export function WarningMessage_eq(a: bigint, b: bigint): boolean {
24292 if(!isWasmInitialized) {
24293 throw new Error("initializeWasm() must be awaited first!");
24295 const nativeResponseValue = wasm.TS_WarningMessage_eq(a, b);
24296 return nativeResponseValue;
24298 // void Ping_free(struct LDKPing this_obj);
24300 export function Ping_free(this_obj: bigint): void {
24301 if(!isWasmInitialized) {
24302 throw new Error("initializeWasm() must be awaited first!");
24304 const nativeResponseValue = wasm.TS_Ping_free(this_obj);
24305 // debug statements here
24307 // uint16_t Ping_get_ponglen(const struct LDKPing *NONNULL_PTR this_ptr);
24309 export function Ping_get_ponglen(this_ptr: bigint): number {
24310 if(!isWasmInitialized) {
24311 throw new Error("initializeWasm() must be awaited first!");
24313 const nativeResponseValue = wasm.TS_Ping_get_ponglen(this_ptr);
24314 return nativeResponseValue;
24316 // void Ping_set_ponglen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
24318 export function Ping_set_ponglen(this_ptr: bigint, val: number): void {
24319 if(!isWasmInitialized) {
24320 throw new Error("initializeWasm() must be awaited first!");
24322 const nativeResponseValue = wasm.TS_Ping_set_ponglen(this_ptr, val);
24323 // debug statements here
24325 // uint16_t Ping_get_byteslen(const struct LDKPing *NONNULL_PTR this_ptr);
24327 export function Ping_get_byteslen(this_ptr: bigint): number {
24328 if(!isWasmInitialized) {
24329 throw new Error("initializeWasm() must be awaited first!");
24331 const nativeResponseValue = wasm.TS_Ping_get_byteslen(this_ptr);
24332 return nativeResponseValue;
24334 // void Ping_set_byteslen(struct LDKPing *NONNULL_PTR this_ptr, uint16_t val);
24336 export function Ping_set_byteslen(this_ptr: bigint, val: number): void {
24337 if(!isWasmInitialized) {
24338 throw new Error("initializeWasm() must be awaited first!");
24340 const nativeResponseValue = wasm.TS_Ping_set_byteslen(this_ptr, val);
24341 // debug statements here
24343 // MUST_USE_RES struct LDKPing Ping_new(uint16_t ponglen_arg, uint16_t byteslen_arg);
24345 export function Ping_new(ponglen_arg: number, byteslen_arg: number): bigint {
24346 if(!isWasmInitialized) {
24347 throw new Error("initializeWasm() must be awaited first!");
24349 const nativeResponseValue = wasm.TS_Ping_new(ponglen_arg, byteslen_arg);
24350 return nativeResponseValue;
24352 // uint64_t Ping_clone_ptr(LDKPing *NONNULL_PTR arg);
24354 export function Ping_clone_ptr(arg: bigint): bigint {
24355 if(!isWasmInitialized) {
24356 throw new Error("initializeWasm() must be awaited first!");
24358 const nativeResponseValue = wasm.TS_Ping_clone_ptr(arg);
24359 return nativeResponseValue;
24361 // struct LDKPing Ping_clone(const struct LDKPing *NONNULL_PTR orig);
24363 export function Ping_clone(orig: bigint): bigint {
24364 if(!isWasmInitialized) {
24365 throw new Error("initializeWasm() must be awaited first!");
24367 const nativeResponseValue = wasm.TS_Ping_clone(orig);
24368 return nativeResponseValue;
24370 // bool Ping_eq(const struct LDKPing *NONNULL_PTR a, const struct LDKPing *NONNULL_PTR b);
24372 export function Ping_eq(a: bigint, b: bigint): boolean {
24373 if(!isWasmInitialized) {
24374 throw new Error("initializeWasm() must be awaited first!");
24376 const nativeResponseValue = wasm.TS_Ping_eq(a, b);
24377 return nativeResponseValue;
24379 // void Pong_free(struct LDKPong this_obj);
24381 export function Pong_free(this_obj: bigint): void {
24382 if(!isWasmInitialized) {
24383 throw new Error("initializeWasm() must be awaited first!");
24385 const nativeResponseValue = wasm.TS_Pong_free(this_obj);
24386 // debug statements here
24388 // uint16_t Pong_get_byteslen(const struct LDKPong *NONNULL_PTR this_ptr);
24390 export function Pong_get_byteslen(this_ptr: bigint): number {
24391 if(!isWasmInitialized) {
24392 throw new Error("initializeWasm() must be awaited first!");
24394 const nativeResponseValue = wasm.TS_Pong_get_byteslen(this_ptr);
24395 return nativeResponseValue;
24397 // void Pong_set_byteslen(struct LDKPong *NONNULL_PTR this_ptr, uint16_t val);
24399 export function Pong_set_byteslen(this_ptr: bigint, val: number): void {
24400 if(!isWasmInitialized) {
24401 throw new Error("initializeWasm() must be awaited first!");
24403 const nativeResponseValue = wasm.TS_Pong_set_byteslen(this_ptr, val);
24404 // debug statements here
24406 // MUST_USE_RES struct LDKPong Pong_new(uint16_t byteslen_arg);
24408 export function Pong_new(byteslen_arg: number): bigint {
24409 if(!isWasmInitialized) {
24410 throw new Error("initializeWasm() must be awaited first!");
24412 const nativeResponseValue = wasm.TS_Pong_new(byteslen_arg);
24413 return nativeResponseValue;
24415 // uint64_t Pong_clone_ptr(LDKPong *NONNULL_PTR arg);
24417 export function Pong_clone_ptr(arg: bigint): bigint {
24418 if(!isWasmInitialized) {
24419 throw new Error("initializeWasm() must be awaited first!");
24421 const nativeResponseValue = wasm.TS_Pong_clone_ptr(arg);
24422 return nativeResponseValue;
24424 // struct LDKPong Pong_clone(const struct LDKPong *NONNULL_PTR orig);
24426 export function Pong_clone(orig: bigint): bigint {
24427 if(!isWasmInitialized) {
24428 throw new Error("initializeWasm() must be awaited first!");
24430 const nativeResponseValue = wasm.TS_Pong_clone(orig);
24431 return nativeResponseValue;
24433 // bool Pong_eq(const struct LDKPong *NONNULL_PTR a, const struct LDKPong *NONNULL_PTR b);
24435 export function Pong_eq(a: bigint, b: bigint): boolean {
24436 if(!isWasmInitialized) {
24437 throw new Error("initializeWasm() must be awaited first!");
24439 const nativeResponseValue = wasm.TS_Pong_eq(a, b);
24440 return nativeResponseValue;
24442 // void OpenChannel_free(struct LDKOpenChannel this_obj);
24444 export function OpenChannel_free(this_obj: bigint): void {
24445 if(!isWasmInitialized) {
24446 throw new Error("initializeWasm() must be awaited first!");
24448 const nativeResponseValue = wasm.TS_OpenChannel_free(this_obj);
24449 // debug statements here
24451 // const uint8_t (*OpenChannel_get_chain_hash(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
24453 export function OpenChannel_get_chain_hash(this_ptr: bigint): number {
24454 if(!isWasmInitialized) {
24455 throw new Error("initializeWasm() must be awaited first!");
24457 const nativeResponseValue = wasm.TS_OpenChannel_get_chain_hash(this_ptr);
24458 return nativeResponseValue;
24460 // void OpenChannel_set_chain_hash(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
24462 export function OpenChannel_set_chain_hash(this_ptr: bigint, val: number): void {
24463 if(!isWasmInitialized) {
24464 throw new Error("initializeWasm() must be awaited first!");
24466 const nativeResponseValue = wasm.TS_OpenChannel_set_chain_hash(this_ptr, val);
24467 // debug statements here
24469 // const uint8_t (*OpenChannel_get_temporary_channel_id(const struct LDKOpenChannel *NONNULL_PTR this_ptr))[32];
24471 export function OpenChannel_get_temporary_channel_id(this_ptr: bigint): number {
24472 if(!isWasmInitialized) {
24473 throw new Error("initializeWasm() must be awaited first!");
24475 const nativeResponseValue = wasm.TS_OpenChannel_get_temporary_channel_id(this_ptr);
24476 return nativeResponseValue;
24478 // void OpenChannel_set_temporary_channel_id(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
24480 export function OpenChannel_set_temporary_channel_id(this_ptr: bigint, val: number): void {
24481 if(!isWasmInitialized) {
24482 throw new Error("initializeWasm() must be awaited first!");
24484 const nativeResponseValue = wasm.TS_OpenChannel_set_temporary_channel_id(this_ptr, val);
24485 // debug statements here
24487 // uint64_t OpenChannel_get_funding_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24489 export function OpenChannel_get_funding_satoshis(this_ptr: bigint): bigint {
24490 if(!isWasmInitialized) {
24491 throw new Error("initializeWasm() must be awaited first!");
24493 const nativeResponseValue = wasm.TS_OpenChannel_get_funding_satoshis(this_ptr);
24494 return nativeResponseValue;
24496 // void OpenChannel_set_funding_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
24498 export function OpenChannel_set_funding_satoshis(this_ptr: bigint, val: bigint): void {
24499 if(!isWasmInitialized) {
24500 throw new Error("initializeWasm() must be awaited first!");
24502 const nativeResponseValue = wasm.TS_OpenChannel_set_funding_satoshis(this_ptr, val);
24503 // debug statements here
24505 // uint64_t OpenChannel_get_push_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24507 export function OpenChannel_get_push_msat(this_ptr: bigint): bigint {
24508 if(!isWasmInitialized) {
24509 throw new Error("initializeWasm() must be awaited first!");
24511 const nativeResponseValue = wasm.TS_OpenChannel_get_push_msat(this_ptr);
24512 return nativeResponseValue;
24514 // void OpenChannel_set_push_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
24516 export function OpenChannel_set_push_msat(this_ptr: bigint, val: bigint): void {
24517 if(!isWasmInitialized) {
24518 throw new Error("initializeWasm() must be awaited first!");
24520 const nativeResponseValue = wasm.TS_OpenChannel_set_push_msat(this_ptr, val);
24521 // debug statements here
24523 // uint64_t OpenChannel_get_dust_limit_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24525 export function OpenChannel_get_dust_limit_satoshis(this_ptr: bigint): bigint {
24526 if(!isWasmInitialized) {
24527 throw new Error("initializeWasm() must be awaited first!");
24529 const nativeResponseValue = wasm.TS_OpenChannel_get_dust_limit_satoshis(this_ptr);
24530 return nativeResponseValue;
24532 // void OpenChannel_set_dust_limit_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
24534 export function OpenChannel_set_dust_limit_satoshis(this_ptr: bigint, val: bigint): void {
24535 if(!isWasmInitialized) {
24536 throw new Error("initializeWasm() must be awaited first!");
24538 const nativeResponseValue = wasm.TS_OpenChannel_set_dust_limit_satoshis(this_ptr, val);
24539 // debug statements here
24541 // uint64_t OpenChannel_get_max_htlc_value_in_flight_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24543 export function OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint {
24544 if(!isWasmInitialized) {
24545 throw new Error("initializeWasm() must be awaited first!");
24547 const nativeResponseValue = wasm.TS_OpenChannel_get_max_htlc_value_in_flight_msat(this_ptr);
24548 return nativeResponseValue;
24550 // void OpenChannel_set_max_htlc_value_in_flight_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
24552 export function OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void {
24553 if(!isWasmInitialized) {
24554 throw new Error("initializeWasm() must be awaited first!");
24556 const nativeResponseValue = wasm.TS_OpenChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
24557 // debug statements here
24559 // uint64_t OpenChannel_get_channel_reserve_satoshis(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24561 export function OpenChannel_get_channel_reserve_satoshis(this_ptr: bigint): bigint {
24562 if(!isWasmInitialized) {
24563 throw new Error("initializeWasm() must be awaited first!");
24565 const nativeResponseValue = wasm.TS_OpenChannel_get_channel_reserve_satoshis(this_ptr);
24566 return nativeResponseValue;
24568 // void OpenChannel_set_channel_reserve_satoshis(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
24570 export function OpenChannel_set_channel_reserve_satoshis(this_ptr: bigint, val: bigint): void {
24571 if(!isWasmInitialized) {
24572 throw new Error("initializeWasm() must be awaited first!");
24574 const nativeResponseValue = wasm.TS_OpenChannel_set_channel_reserve_satoshis(this_ptr, val);
24575 // debug statements here
24577 // uint64_t OpenChannel_get_htlc_minimum_msat(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24579 export function OpenChannel_get_htlc_minimum_msat(this_ptr: bigint): bigint {
24580 if(!isWasmInitialized) {
24581 throw new Error("initializeWasm() must be awaited first!");
24583 const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_minimum_msat(this_ptr);
24584 return nativeResponseValue;
24586 // void OpenChannel_set_htlc_minimum_msat(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint64_t val);
24588 export function OpenChannel_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
24589 if(!isWasmInitialized) {
24590 throw new Error("initializeWasm() must be awaited first!");
24592 const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_minimum_msat(this_ptr, val);
24593 // debug statements here
24595 // uint32_t OpenChannel_get_feerate_per_kw(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24597 export function OpenChannel_get_feerate_per_kw(this_ptr: bigint): number {
24598 if(!isWasmInitialized) {
24599 throw new Error("initializeWasm() must be awaited first!");
24601 const nativeResponseValue = wasm.TS_OpenChannel_get_feerate_per_kw(this_ptr);
24602 return nativeResponseValue;
24604 // void OpenChannel_set_feerate_per_kw(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint32_t val);
24606 export function OpenChannel_set_feerate_per_kw(this_ptr: bigint, val: number): void {
24607 if(!isWasmInitialized) {
24608 throw new Error("initializeWasm() must be awaited first!");
24610 const nativeResponseValue = wasm.TS_OpenChannel_set_feerate_per_kw(this_ptr, val);
24611 // debug statements here
24613 // uint16_t OpenChannel_get_to_self_delay(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24615 export function OpenChannel_get_to_self_delay(this_ptr: bigint): number {
24616 if(!isWasmInitialized) {
24617 throw new Error("initializeWasm() must be awaited first!");
24619 const nativeResponseValue = wasm.TS_OpenChannel_get_to_self_delay(this_ptr);
24620 return nativeResponseValue;
24622 // void OpenChannel_set_to_self_delay(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
24624 export function OpenChannel_set_to_self_delay(this_ptr: bigint, val: number): void {
24625 if(!isWasmInitialized) {
24626 throw new Error("initializeWasm() must be awaited first!");
24628 const nativeResponseValue = wasm.TS_OpenChannel_set_to_self_delay(this_ptr, val);
24629 // debug statements here
24631 // uint16_t OpenChannel_get_max_accepted_htlcs(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24633 export function OpenChannel_get_max_accepted_htlcs(this_ptr: bigint): number {
24634 if(!isWasmInitialized) {
24635 throw new Error("initializeWasm() must be awaited first!");
24637 const nativeResponseValue = wasm.TS_OpenChannel_get_max_accepted_htlcs(this_ptr);
24638 return nativeResponseValue;
24640 // void OpenChannel_set_max_accepted_htlcs(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint16_t val);
24642 export function OpenChannel_set_max_accepted_htlcs(this_ptr: bigint, val: number): void {
24643 if(!isWasmInitialized) {
24644 throw new Error("initializeWasm() must be awaited first!");
24646 const nativeResponseValue = wasm.TS_OpenChannel_set_max_accepted_htlcs(this_ptr, val);
24647 // debug statements here
24649 // struct LDKPublicKey OpenChannel_get_funding_pubkey(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24651 export function OpenChannel_get_funding_pubkey(this_ptr: bigint): number {
24652 if(!isWasmInitialized) {
24653 throw new Error("initializeWasm() must be awaited first!");
24655 const nativeResponseValue = wasm.TS_OpenChannel_get_funding_pubkey(this_ptr);
24656 return nativeResponseValue;
24658 // void OpenChannel_set_funding_pubkey(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24660 export function OpenChannel_set_funding_pubkey(this_ptr: bigint, val: number): void {
24661 if(!isWasmInitialized) {
24662 throw new Error("initializeWasm() must be awaited first!");
24664 const nativeResponseValue = wasm.TS_OpenChannel_set_funding_pubkey(this_ptr, val);
24665 // debug statements here
24667 // struct LDKPublicKey OpenChannel_get_revocation_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24669 export function OpenChannel_get_revocation_basepoint(this_ptr: bigint): number {
24670 if(!isWasmInitialized) {
24671 throw new Error("initializeWasm() must be awaited first!");
24673 const nativeResponseValue = wasm.TS_OpenChannel_get_revocation_basepoint(this_ptr);
24674 return nativeResponseValue;
24676 // void OpenChannel_set_revocation_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24678 export function OpenChannel_set_revocation_basepoint(this_ptr: bigint, val: number): void {
24679 if(!isWasmInitialized) {
24680 throw new Error("initializeWasm() must be awaited first!");
24682 const nativeResponseValue = wasm.TS_OpenChannel_set_revocation_basepoint(this_ptr, val);
24683 // debug statements here
24685 // struct LDKPublicKey OpenChannel_get_payment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24687 export function OpenChannel_get_payment_point(this_ptr: bigint): number {
24688 if(!isWasmInitialized) {
24689 throw new Error("initializeWasm() must be awaited first!");
24691 const nativeResponseValue = wasm.TS_OpenChannel_get_payment_point(this_ptr);
24692 return nativeResponseValue;
24694 // void OpenChannel_set_payment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24696 export function OpenChannel_set_payment_point(this_ptr: bigint, val: number): void {
24697 if(!isWasmInitialized) {
24698 throw new Error("initializeWasm() must be awaited first!");
24700 const nativeResponseValue = wasm.TS_OpenChannel_set_payment_point(this_ptr, val);
24701 // debug statements here
24703 // struct LDKPublicKey OpenChannel_get_delayed_payment_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24705 export function OpenChannel_get_delayed_payment_basepoint(this_ptr: bigint): number {
24706 if(!isWasmInitialized) {
24707 throw new Error("initializeWasm() must be awaited first!");
24709 const nativeResponseValue = wasm.TS_OpenChannel_get_delayed_payment_basepoint(this_ptr);
24710 return nativeResponseValue;
24712 // void OpenChannel_set_delayed_payment_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24714 export function OpenChannel_set_delayed_payment_basepoint(this_ptr: bigint, val: number): void {
24715 if(!isWasmInitialized) {
24716 throw new Error("initializeWasm() must be awaited first!");
24718 const nativeResponseValue = wasm.TS_OpenChannel_set_delayed_payment_basepoint(this_ptr, val);
24719 // debug statements here
24721 // struct LDKPublicKey OpenChannel_get_htlc_basepoint(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24723 export function OpenChannel_get_htlc_basepoint(this_ptr: bigint): number {
24724 if(!isWasmInitialized) {
24725 throw new Error("initializeWasm() must be awaited first!");
24727 const nativeResponseValue = wasm.TS_OpenChannel_get_htlc_basepoint(this_ptr);
24728 return nativeResponseValue;
24730 // void OpenChannel_set_htlc_basepoint(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24732 export function OpenChannel_set_htlc_basepoint(this_ptr: bigint, val: number): void {
24733 if(!isWasmInitialized) {
24734 throw new Error("initializeWasm() must be awaited first!");
24736 const nativeResponseValue = wasm.TS_OpenChannel_set_htlc_basepoint(this_ptr, val);
24737 // debug statements here
24739 // struct LDKPublicKey OpenChannel_get_first_per_commitment_point(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24741 export function OpenChannel_get_first_per_commitment_point(this_ptr: bigint): number {
24742 if(!isWasmInitialized) {
24743 throw new Error("initializeWasm() must be awaited first!");
24745 const nativeResponseValue = wasm.TS_OpenChannel_get_first_per_commitment_point(this_ptr);
24746 return nativeResponseValue;
24748 // void OpenChannel_set_first_per_commitment_point(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24750 export function OpenChannel_set_first_per_commitment_point(this_ptr: bigint, val: number): void {
24751 if(!isWasmInitialized) {
24752 throw new Error("initializeWasm() must be awaited first!");
24754 const nativeResponseValue = wasm.TS_OpenChannel_set_first_per_commitment_point(this_ptr, val);
24755 // debug statements here
24757 // uint8_t OpenChannel_get_channel_flags(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24759 export function OpenChannel_get_channel_flags(this_ptr: bigint): number {
24760 if(!isWasmInitialized) {
24761 throw new Error("initializeWasm() must be awaited first!");
24763 const nativeResponseValue = wasm.TS_OpenChannel_get_channel_flags(this_ptr);
24764 return nativeResponseValue;
24766 // void OpenChannel_set_channel_flags(struct LDKOpenChannel *NONNULL_PTR this_ptr, uint8_t val);
24768 export function OpenChannel_set_channel_flags(this_ptr: bigint, val: number): void {
24769 if(!isWasmInitialized) {
24770 throw new Error("initializeWasm() must be awaited first!");
24772 const nativeResponseValue = wasm.TS_OpenChannel_set_channel_flags(this_ptr, val);
24773 // debug statements here
24775 // struct LDKChannelTypeFeatures OpenChannel_get_channel_type(const struct LDKOpenChannel *NONNULL_PTR this_ptr);
24777 export function OpenChannel_get_channel_type(this_ptr: bigint): bigint {
24778 if(!isWasmInitialized) {
24779 throw new Error("initializeWasm() must be awaited first!");
24781 const nativeResponseValue = wasm.TS_OpenChannel_get_channel_type(this_ptr);
24782 return nativeResponseValue;
24784 // void OpenChannel_set_channel_type(struct LDKOpenChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
24786 export function OpenChannel_set_channel_type(this_ptr: bigint, val: bigint): void {
24787 if(!isWasmInitialized) {
24788 throw new Error("initializeWasm() must be awaited first!");
24790 const nativeResponseValue = wasm.TS_OpenChannel_set_channel_type(this_ptr, val);
24791 // debug statements here
24793 // uint64_t OpenChannel_clone_ptr(LDKOpenChannel *NONNULL_PTR arg);
24795 export function OpenChannel_clone_ptr(arg: bigint): bigint {
24796 if(!isWasmInitialized) {
24797 throw new Error("initializeWasm() must be awaited first!");
24799 const nativeResponseValue = wasm.TS_OpenChannel_clone_ptr(arg);
24800 return nativeResponseValue;
24802 // struct LDKOpenChannel OpenChannel_clone(const struct LDKOpenChannel *NONNULL_PTR orig);
24804 export function OpenChannel_clone(orig: bigint): bigint {
24805 if(!isWasmInitialized) {
24806 throw new Error("initializeWasm() must be awaited first!");
24808 const nativeResponseValue = wasm.TS_OpenChannel_clone(orig);
24809 return nativeResponseValue;
24811 // bool OpenChannel_eq(const struct LDKOpenChannel *NONNULL_PTR a, const struct LDKOpenChannel *NONNULL_PTR b);
24813 export function OpenChannel_eq(a: bigint, b: bigint): boolean {
24814 if(!isWasmInitialized) {
24815 throw new Error("initializeWasm() must be awaited first!");
24817 const nativeResponseValue = wasm.TS_OpenChannel_eq(a, b);
24818 return nativeResponseValue;
24820 // void AcceptChannel_free(struct LDKAcceptChannel this_obj);
24822 export function AcceptChannel_free(this_obj: bigint): void {
24823 if(!isWasmInitialized) {
24824 throw new Error("initializeWasm() must be awaited first!");
24826 const nativeResponseValue = wasm.TS_AcceptChannel_free(this_obj);
24827 // debug statements here
24829 // const uint8_t (*AcceptChannel_get_temporary_channel_id(const struct LDKAcceptChannel *NONNULL_PTR this_ptr))[32];
24831 export function AcceptChannel_get_temporary_channel_id(this_ptr: bigint): number {
24832 if(!isWasmInitialized) {
24833 throw new Error("initializeWasm() must be awaited first!");
24835 const nativeResponseValue = wasm.TS_AcceptChannel_get_temporary_channel_id(this_ptr);
24836 return nativeResponseValue;
24838 // void AcceptChannel_set_temporary_channel_id(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
24840 export function AcceptChannel_set_temporary_channel_id(this_ptr: bigint, val: number): void {
24841 if(!isWasmInitialized) {
24842 throw new Error("initializeWasm() must be awaited first!");
24844 const nativeResponseValue = wasm.TS_AcceptChannel_set_temporary_channel_id(this_ptr, val);
24845 // debug statements here
24847 // uint64_t AcceptChannel_get_dust_limit_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
24849 export function AcceptChannel_get_dust_limit_satoshis(this_ptr: bigint): bigint {
24850 if(!isWasmInitialized) {
24851 throw new Error("initializeWasm() must be awaited first!");
24853 const nativeResponseValue = wasm.TS_AcceptChannel_get_dust_limit_satoshis(this_ptr);
24854 return nativeResponseValue;
24856 // void AcceptChannel_set_dust_limit_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
24858 export function AcceptChannel_set_dust_limit_satoshis(this_ptr: bigint, val: bigint): void {
24859 if(!isWasmInitialized) {
24860 throw new Error("initializeWasm() must be awaited first!");
24862 const nativeResponseValue = wasm.TS_AcceptChannel_set_dust_limit_satoshis(this_ptr, val);
24863 // debug statements here
24865 // uint64_t AcceptChannel_get_max_htlc_value_in_flight_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
24867 export function AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr: bigint): bigint {
24868 if(!isWasmInitialized) {
24869 throw new Error("initializeWasm() must be awaited first!");
24871 const nativeResponseValue = wasm.TS_AcceptChannel_get_max_htlc_value_in_flight_msat(this_ptr);
24872 return nativeResponseValue;
24874 // void AcceptChannel_set_max_htlc_value_in_flight_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
24876 export function AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr: bigint, val: bigint): void {
24877 if(!isWasmInitialized) {
24878 throw new Error("initializeWasm() must be awaited first!");
24880 const nativeResponseValue = wasm.TS_AcceptChannel_set_max_htlc_value_in_flight_msat(this_ptr, val);
24881 // debug statements here
24883 // uint64_t AcceptChannel_get_channel_reserve_satoshis(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
24885 export function AcceptChannel_get_channel_reserve_satoshis(this_ptr: bigint): bigint {
24886 if(!isWasmInitialized) {
24887 throw new Error("initializeWasm() must be awaited first!");
24889 const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_reserve_satoshis(this_ptr);
24890 return nativeResponseValue;
24892 // void AcceptChannel_set_channel_reserve_satoshis(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
24894 export function AcceptChannel_set_channel_reserve_satoshis(this_ptr: bigint, val: bigint): void {
24895 if(!isWasmInitialized) {
24896 throw new Error("initializeWasm() must be awaited first!");
24898 const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_reserve_satoshis(this_ptr, val);
24899 // debug statements here
24901 // uint64_t AcceptChannel_get_htlc_minimum_msat(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
24903 export function AcceptChannel_get_htlc_minimum_msat(this_ptr: bigint): bigint {
24904 if(!isWasmInitialized) {
24905 throw new Error("initializeWasm() must be awaited first!");
24907 const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_minimum_msat(this_ptr);
24908 return nativeResponseValue;
24910 // void AcceptChannel_set_htlc_minimum_msat(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint64_t val);
24912 export function AcceptChannel_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
24913 if(!isWasmInitialized) {
24914 throw new Error("initializeWasm() must be awaited first!");
24916 const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_minimum_msat(this_ptr, val);
24917 // debug statements here
24919 // uint32_t AcceptChannel_get_minimum_depth(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
24921 export function AcceptChannel_get_minimum_depth(this_ptr: bigint): number {
24922 if(!isWasmInitialized) {
24923 throw new Error("initializeWasm() must be awaited first!");
24925 const nativeResponseValue = wasm.TS_AcceptChannel_get_minimum_depth(this_ptr);
24926 return nativeResponseValue;
24928 // void AcceptChannel_set_minimum_depth(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint32_t val);
24930 export function AcceptChannel_set_minimum_depth(this_ptr: bigint, val: number): void {
24931 if(!isWasmInitialized) {
24932 throw new Error("initializeWasm() must be awaited first!");
24934 const nativeResponseValue = wasm.TS_AcceptChannel_set_minimum_depth(this_ptr, val);
24935 // debug statements here
24937 // uint16_t AcceptChannel_get_to_self_delay(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
24939 export function AcceptChannel_get_to_self_delay(this_ptr: bigint): number {
24940 if(!isWasmInitialized) {
24941 throw new Error("initializeWasm() must be awaited first!");
24943 const nativeResponseValue = wasm.TS_AcceptChannel_get_to_self_delay(this_ptr);
24944 return nativeResponseValue;
24946 // void AcceptChannel_set_to_self_delay(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
24948 export function AcceptChannel_set_to_self_delay(this_ptr: bigint, val: number): void {
24949 if(!isWasmInitialized) {
24950 throw new Error("initializeWasm() must be awaited first!");
24952 const nativeResponseValue = wasm.TS_AcceptChannel_set_to_self_delay(this_ptr, val);
24953 // debug statements here
24955 // uint16_t AcceptChannel_get_max_accepted_htlcs(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
24957 export function AcceptChannel_get_max_accepted_htlcs(this_ptr: bigint): number {
24958 if(!isWasmInitialized) {
24959 throw new Error("initializeWasm() must be awaited first!");
24961 const nativeResponseValue = wasm.TS_AcceptChannel_get_max_accepted_htlcs(this_ptr);
24962 return nativeResponseValue;
24964 // void AcceptChannel_set_max_accepted_htlcs(struct LDKAcceptChannel *NONNULL_PTR this_ptr, uint16_t val);
24966 export function AcceptChannel_set_max_accepted_htlcs(this_ptr: bigint, val: number): void {
24967 if(!isWasmInitialized) {
24968 throw new Error("initializeWasm() must be awaited first!");
24970 const nativeResponseValue = wasm.TS_AcceptChannel_set_max_accepted_htlcs(this_ptr, val);
24971 // debug statements here
24973 // struct LDKPublicKey AcceptChannel_get_funding_pubkey(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
24975 export function AcceptChannel_get_funding_pubkey(this_ptr: bigint): number {
24976 if(!isWasmInitialized) {
24977 throw new Error("initializeWasm() must be awaited first!");
24979 const nativeResponseValue = wasm.TS_AcceptChannel_get_funding_pubkey(this_ptr);
24980 return nativeResponseValue;
24982 // void AcceptChannel_set_funding_pubkey(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
24984 export function AcceptChannel_set_funding_pubkey(this_ptr: bigint, val: number): void {
24985 if(!isWasmInitialized) {
24986 throw new Error("initializeWasm() must be awaited first!");
24988 const nativeResponseValue = wasm.TS_AcceptChannel_set_funding_pubkey(this_ptr, val);
24989 // debug statements here
24991 // struct LDKPublicKey AcceptChannel_get_revocation_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
24993 export function AcceptChannel_get_revocation_basepoint(this_ptr: bigint): number {
24994 if(!isWasmInitialized) {
24995 throw new Error("initializeWasm() must be awaited first!");
24997 const nativeResponseValue = wasm.TS_AcceptChannel_get_revocation_basepoint(this_ptr);
24998 return nativeResponseValue;
25000 // void AcceptChannel_set_revocation_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25002 export function AcceptChannel_set_revocation_basepoint(this_ptr: bigint, val: number): void {
25003 if(!isWasmInitialized) {
25004 throw new Error("initializeWasm() must be awaited first!");
25006 const nativeResponseValue = wasm.TS_AcceptChannel_set_revocation_basepoint(this_ptr, val);
25007 // debug statements here
25009 // struct LDKPublicKey AcceptChannel_get_payment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
25011 export function AcceptChannel_get_payment_point(this_ptr: bigint): number {
25012 if(!isWasmInitialized) {
25013 throw new Error("initializeWasm() must be awaited first!");
25015 const nativeResponseValue = wasm.TS_AcceptChannel_get_payment_point(this_ptr);
25016 return nativeResponseValue;
25018 // void AcceptChannel_set_payment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25020 export function AcceptChannel_set_payment_point(this_ptr: bigint, val: number): void {
25021 if(!isWasmInitialized) {
25022 throw new Error("initializeWasm() must be awaited first!");
25024 const nativeResponseValue = wasm.TS_AcceptChannel_set_payment_point(this_ptr, val);
25025 // debug statements here
25027 // struct LDKPublicKey AcceptChannel_get_delayed_payment_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
25029 export function AcceptChannel_get_delayed_payment_basepoint(this_ptr: bigint): number {
25030 if(!isWasmInitialized) {
25031 throw new Error("initializeWasm() must be awaited first!");
25033 const nativeResponseValue = wasm.TS_AcceptChannel_get_delayed_payment_basepoint(this_ptr);
25034 return nativeResponseValue;
25036 // void AcceptChannel_set_delayed_payment_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25038 export function AcceptChannel_set_delayed_payment_basepoint(this_ptr: bigint, val: number): void {
25039 if(!isWasmInitialized) {
25040 throw new Error("initializeWasm() must be awaited first!");
25042 const nativeResponseValue = wasm.TS_AcceptChannel_set_delayed_payment_basepoint(this_ptr, val);
25043 // debug statements here
25045 // struct LDKPublicKey AcceptChannel_get_htlc_basepoint(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
25047 export function AcceptChannel_get_htlc_basepoint(this_ptr: bigint): number {
25048 if(!isWasmInitialized) {
25049 throw new Error("initializeWasm() must be awaited first!");
25051 const nativeResponseValue = wasm.TS_AcceptChannel_get_htlc_basepoint(this_ptr);
25052 return nativeResponseValue;
25054 // void AcceptChannel_set_htlc_basepoint(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25056 export function AcceptChannel_set_htlc_basepoint(this_ptr: bigint, val: number): void {
25057 if(!isWasmInitialized) {
25058 throw new Error("initializeWasm() must be awaited first!");
25060 const nativeResponseValue = wasm.TS_AcceptChannel_set_htlc_basepoint(this_ptr, val);
25061 // debug statements here
25063 // struct LDKPublicKey AcceptChannel_get_first_per_commitment_point(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
25065 export function AcceptChannel_get_first_per_commitment_point(this_ptr: bigint): number {
25066 if(!isWasmInitialized) {
25067 throw new Error("initializeWasm() must be awaited first!");
25069 const nativeResponseValue = wasm.TS_AcceptChannel_get_first_per_commitment_point(this_ptr);
25070 return nativeResponseValue;
25072 // void AcceptChannel_set_first_per_commitment_point(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25074 export function AcceptChannel_set_first_per_commitment_point(this_ptr: bigint, val: number): void {
25075 if(!isWasmInitialized) {
25076 throw new Error("initializeWasm() must be awaited first!");
25078 const nativeResponseValue = wasm.TS_AcceptChannel_set_first_per_commitment_point(this_ptr, val);
25079 // debug statements here
25081 // struct LDKChannelTypeFeatures AcceptChannel_get_channel_type(const struct LDKAcceptChannel *NONNULL_PTR this_ptr);
25083 export function AcceptChannel_get_channel_type(this_ptr: bigint): bigint {
25084 if(!isWasmInitialized) {
25085 throw new Error("initializeWasm() must be awaited first!");
25087 const nativeResponseValue = wasm.TS_AcceptChannel_get_channel_type(this_ptr);
25088 return nativeResponseValue;
25090 // void AcceptChannel_set_channel_type(struct LDKAcceptChannel *NONNULL_PTR this_ptr, struct LDKChannelTypeFeatures val);
25092 export function AcceptChannel_set_channel_type(this_ptr: bigint, val: bigint): void {
25093 if(!isWasmInitialized) {
25094 throw new Error("initializeWasm() must be awaited first!");
25096 const nativeResponseValue = wasm.TS_AcceptChannel_set_channel_type(this_ptr, val);
25097 // debug statements here
25099 // uint64_t AcceptChannel_clone_ptr(LDKAcceptChannel *NONNULL_PTR arg);
25101 export function AcceptChannel_clone_ptr(arg: bigint): bigint {
25102 if(!isWasmInitialized) {
25103 throw new Error("initializeWasm() must be awaited first!");
25105 const nativeResponseValue = wasm.TS_AcceptChannel_clone_ptr(arg);
25106 return nativeResponseValue;
25108 // struct LDKAcceptChannel AcceptChannel_clone(const struct LDKAcceptChannel *NONNULL_PTR orig);
25110 export function AcceptChannel_clone(orig: bigint): bigint {
25111 if(!isWasmInitialized) {
25112 throw new Error("initializeWasm() must be awaited first!");
25114 const nativeResponseValue = wasm.TS_AcceptChannel_clone(orig);
25115 return nativeResponseValue;
25117 // bool AcceptChannel_eq(const struct LDKAcceptChannel *NONNULL_PTR a, const struct LDKAcceptChannel *NONNULL_PTR b);
25119 export function AcceptChannel_eq(a: bigint, b: bigint): boolean {
25120 if(!isWasmInitialized) {
25121 throw new Error("initializeWasm() must be awaited first!");
25123 const nativeResponseValue = wasm.TS_AcceptChannel_eq(a, b);
25124 return nativeResponseValue;
25126 // void FundingCreated_free(struct LDKFundingCreated this_obj);
25128 export function FundingCreated_free(this_obj: bigint): void {
25129 if(!isWasmInitialized) {
25130 throw new Error("initializeWasm() must be awaited first!");
25132 const nativeResponseValue = wasm.TS_FundingCreated_free(this_obj);
25133 // debug statements here
25135 // const uint8_t (*FundingCreated_get_temporary_channel_id(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
25137 export function FundingCreated_get_temporary_channel_id(this_ptr: bigint): number {
25138 if(!isWasmInitialized) {
25139 throw new Error("initializeWasm() must be awaited first!");
25141 const nativeResponseValue = wasm.TS_FundingCreated_get_temporary_channel_id(this_ptr);
25142 return nativeResponseValue;
25144 // void FundingCreated_set_temporary_channel_id(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25146 export function FundingCreated_set_temporary_channel_id(this_ptr: bigint, val: number): void {
25147 if(!isWasmInitialized) {
25148 throw new Error("initializeWasm() must be awaited first!");
25150 const nativeResponseValue = wasm.TS_FundingCreated_set_temporary_channel_id(this_ptr, val);
25151 // debug statements here
25153 // const uint8_t (*FundingCreated_get_funding_txid(const struct LDKFundingCreated *NONNULL_PTR this_ptr))[32];
25155 export function FundingCreated_get_funding_txid(this_ptr: bigint): number {
25156 if(!isWasmInitialized) {
25157 throw new Error("initializeWasm() must be awaited first!");
25159 const nativeResponseValue = wasm.TS_FundingCreated_get_funding_txid(this_ptr);
25160 return nativeResponseValue;
25162 // void FundingCreated_set_funding_txid(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25164 export function FundingCreated_set_funding_txid(this_ptr: bigint, val: number): void {
25165 if(!isWasmInitialized) {
25166 throw new Error("initializeWasm() must be awaited first!");
25168 const nativeResponseValue = wasm.TS_FundingCreated_set_funding_txid(this_ptr, val);
25169 // debug statements here
25171 // uint16_t FundingCreated_get_funding_output_index(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
25173 export function FundingCreated_get_funding_output_index(this_ptr: bigint): number {
25174 if(!isWasmInitialized) {
25175 throw new Error("initializeWasm() must be awaited first!");
25177 const nativeResponseValue = wasm.TS_FundingCreated_get_funding_output_index(this_ptr);
25178 return nativeResponseValue;
25180 // void FundingCreated_set_funding_output_index(struct LDKFundingCreated *NONNULL_PTR this_ptr, uint16_t val);
25182 export function FundingCreated_set_funding_output_index(this_ptr: bigint, val: number): void {
25183 if(!isWasmInitialized) {
25184 throw new Error("initializeWasm() must be awaited first!");
25186 const nativeResponseValue = wasm.TS_FundingCreated_set_funding_output_index(this_ptr, val);
25187 // debug statements here
25189 // struct LDKSignature FundingCreated_get_signature(const struct LDKFundingCreated *NONNULL_PTR this_ptr);
25191 export function FundingCreated_get_signature(this_ptr: bigint): number {
25192 if(!isWasmInitialized) {
25193 throw new Error("initializeWasm() must be awaited first!");
25195 const nativeResponseValue = wasm.TS_FundingCreated_get_signature(this_ptr);
25196 return nativeResponseValue;
25198 // void FundingCreated_set_signature(struct LDKFundingCreated *NONNULL_PTR this_ptr, struct LDKSignature val);
25200 export function FundingCreated_set_signature(this_ptr: bigint, val: number): void {
25201 if(!isWasmInitialized) {
25202 throw new Error("initializeWasm() must be awaited first!");
25204 const nativeResponseValue = wasm.TS_FundingCreated_set_signature(this_ptr, val);
25205 // debug statements here
25207 // 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 LDKSignature signature_arg);
25209 export function FundingCreated_new(temporary_channel_id_arg: number, funding_txid_arg: number, funding_output_index_arg: number, signature_arg: number): bigint {
25210 if(!isWasmInitialized) {
25211 throw new Error("initializeWasm() must be awaited first!");
25213 const nativeResponseValue = wasm.TS_FundingCreated_new(temporary_channel_id_arg, funding_txid_arg, funding_output_index_arg, signature_arg);
25214 return nativeResponseValue;
25216 // uint64_t FundingCreated_clone_ptr(LDKFundingCreated *NONNULL_PTR arg);
25218 export function FundingCreated_clone_ptr(arg: bigint): bigint {
25219 if(!isWasmInitialized) {
25220 throw new Error("initializeWasm() must be awaited first!");
25222 const nativeResponseValue = wasm.TS_FundingCreated_clone_ptr(arg);
25223 return nativeResponseValue;
25225 // struct LDKFundingCreated FundingCreated_clone(const struct LDKFundingCreated *NONNULL_PTR orig);
25227 export function FundingCreated_clone(orig: bigint): bigint {
25228 if(!isWasmInitialized) {
25229 throw new Error("initializeWasm() must be awaited first!");
25231 const nativeResponseValue = wasm.TS_FundingCreated_clone(orig);
25232 return nativeResponseValue;
25234 // bool FundingCreated_eq(const struct LDKFundingCreated *NONNULL_PTR a, const struct LDKFundingCreated *NONNULL_PTR b);
25236 export function FundingCreated_eq(a: bigint, b: bigint): boolean {
25237 if(!isWasmInitialized) {
25238 throw new Error("initializeWasm() must be awaited first!");
25240 const nativeResponseValue = wasm.TS_FundingCreated_eq(a, b);
25241 return nativeResponseValue;
25243 // void FundingSigned_free(struct LDKFundingSigned this_obj);
25245 export function FundingSigned_free(this_obj: bigint): void {
25246 if(!isWasmInitialized) {
25247 throw new Error("initializeWasm() must be awaited first!");
25249 const nativeResponseValue = wasm.TS_FundingSigned_free(this_obj);
25250 // debug statements here
25252 // const uint8_t (*FundingSigned_get_channel_id(const struct LDKFundingSigned *NONNULL_PTR this_ptr))[32];
25254 export function FundingSigned_get_channel_id(this_ptr: bigint): number {
25255 if(!isWasmInitialized) {
25256 throw new Error("initializeWasm() must be awaited first!");
25258 const nativeResponseValue = wasm.TS_FundingSigned_get_channel_id(this_ptr);
25259 return nativeResponseValue;
25261 // void FundingSigned_set_channel_id(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25263 export function FundingSigned_set_channel_id(this_ptr: bigint, val: number): void {
25264 if(!isWasmInitialized) {
25265 throw new Error("initializeWasm() must be awaited first!");
25267 const nativeResponseValue = wasm.TS_FundingSigned_set_channel_id(this_ptr, val);
25268 // debug statements here
25270 // struct LDKSignature FundingSigned_get_signature(const struct LDKFundingSigned *NONNULL_PTR this_ptr);
25272 export function FundingSigned_get_signature(this_ptr: bigint): number {
25273 if(!isWasmInitialized) {
25274 throw new Error("initializeWasm() must be awaited first!");
25276 const nativeResponseValue = wasm.TS_FundingSigned_get_signature(this_ptr);
25277 return nativeResponseValue;
25279 // void FundingSigned_set_signature(struct LDKFundingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
25281 export function FundingSigned_set_signature(this_ptr: bigint, val: number): void {
25282 if(!isWasmInitialized) {
25283 throw new Error("initializeWasm() must be awaited first!");
25285 const nativeResponseValue = wasm.TS_FundingSigned_set_signature(this_ptr, val);
25286 // debug statements here
25288 // MUST_USE_RES struct LDKFundingSigned FundingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg);
25290 export function FundingSigned_new(channel_id_arg: number, signature_arg: number): bigint {
25291 if(!isWasmInitialized) {
25292 throw new Error("initializeWasm() must be awaited first!");
25294 const nativeResponseValue = wasm.TS_FundingSigned_new(channel_id_arg, signature_arg);
25295 return nativeResponseValue;
25297 // uint64_t FundingSigned_clone_ptr(LDKFundingSigned *NONNULL_PTR arg);
25299 export function FundingSigned_clone_ptr(arg: bigint): bigint {
25300 if(!isWasmInitialized) {
25301 throw new Error("initializeWasm() must be awaited first!");
25303 const nativeResponseValue = wasm.TS_FundingSigned_clone_ptr(arg);
25304 return nativeResponseValue;
25306 // struct LDKFundingSigned FundingSigned_clone(const struct LDKFundingSigned *NONNULL_PTR orig);
25308 export function FundingSigned_clone(orig: bigint): bigint {
25309 if(!isWasmInitialized) {
25310 throw new Error("initializeWasm() must be awaited first!");
25312 const nativeResponseValue = wasm.TS_FundingSigned_clone(orig);
25313 return nativeResponseValue;
25315 // bool FundingSigned_eq(const struct LDKFundingSigned *NONNULL_PTR a, const struct LDKFundingSigned *NONNULL_PTR b);
25317 export function FundingSigned_eq(a: bigint, b: bigint): boolean {
25318 if(!isWasmInitialized) {
25319 throw new Error("initializeWasm() must be awaited first!");
25321 const nativeResponseValue = wasm.TS_FundingSigned_eq(a, b);
25322 return nativeResponseValue;
25324 // void ChannelReady_free(struct LDKChannelReady this_obj);
25326 export function ChannelReady_free(this_obj: bigint): void {
25327 if(!isWasmInitialized) {
25328 throw new Error("initializeWasm() must be awaited first!");
25330 const nativeResponseValue = wasm.TS_ChannelReady_free(this_obj);
25331 // debug statements here
25333 // const uint8_t (*ChannelReady_get_channel_id(const struct LDKChannelReady *NONNULL_PTR this_ptr))[32];
25335 export function ChannelReady_get_channel_id(this_ptr: bigint): number {
25336 if(!isWasmInitialized) {
25337 throw new Error("initializeWasm() must be awaited first!");
25339 const nativeResponseValue = wasm.TS_ChannelReady_get_channel_id(this_ptr);
25340 return nativeResponseValue;
25342 // void ChannelReady_set_channel_id(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25344 export function ChannelReady_set_channel_id(this_ptr: bigint, val: number): void {
25345 if(!isWasmInitialized) {
25346 throw new Error("initializeWasm() must be awaited first!");
25348 const nativeResponseValue = wasm.TS_ChannelReady_set_channel_id(this_ptr, val);
25349 // debug statements here
25351 // struct LDKPublicKey ChannelReady_get_next_per_commitment_point(const struct LDKChannelReady *NONNULL_PTR this_ptr);
25353 export function ChannelReady_get_next_per_commitment_point(this_ptr: bigint): number {
25354 if(!isWasmInitialized) {
25355 throw new Error("initializeWasm() must be awaited first!");
25357 const nativeResponseValue = wasm.TS_ChannelReady_get_next_per_commitment_point(this_ptr);
25358 return nativeResponseValue;
25360 // void ChannelReady_set_next_per_commitment_point(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25362 export function ChannelReady_set_next_per_commitment_point(this_ptr: bigint, val: number): void {
25363 if(!isWasmInitialized) {
25364 throw new Error("initializeWasm() must be awaited first!");
25366 const nativeResponseValue = wasm.TS_ChannelReady_set_next_per_commitment_point(this_ptr, val);
25367 // debug statements here
25369 // struct LDKCOption_u64Z ChannelReady_get_short_channel_id_alias(const struct LDKChannelReady *NONNULL_PTR this_ptr);
25371 export function ChannelReady_get_short_channel_id_alias(this_ptr: bigint): bigint {
25372 if(!isWasmInitialized) {
25373 throw new Error("initializeWasm() must be awaited first!");
25375 const nativeResponseValue = wasm.TS_ChannelReady_get_short_channel_id_alias(this_ptr);
25376 return nativeResponseValue;
25378 // void ChannelReady_set_short_channel_id_alias(struct LDKChannelReady *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
25380 export function ChannelReady_set_short_channel_id_alias(this_ptr: bigint, val: bigint): void {
25381 if(!isWasmInitialized) {
25382 throw new Error("initializeWasm() must be awaited first!");
25384 const nativeResponseValue = wasm.TS_ChannelReady_set_short_channel_id_alias(this_ptr, val);
25385 // debug statements here
25387 // 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);
25389 export function ChannelReady_new(channel_id_arg: number, next_per_commitment_point_arg: number, short_channel_id_alias_arg: bigint): bigint {
25390 if(!isWasmInitialized) {
25391 throw new Error("initializeWasm() must be awaited first!");
25393 const nativeResponseValue = wasm.TS_ChannelReady_new(channel_id_arg, next_per_commitment_point_arg, short_channel_id_alias_arg);
25394 return nativeResponseValue;
25396 // uint64_t ChannelReady_clone_ptr(LDKChannelReady *NONNULL_PTR arg);
25398 export function ChannelReady_clone_ptr(arg: bigint): bigint {
25399 if(!isWasmInitialized) {
25400 throw new Error("initializeWasm() must be awaited first!");
25402 const nativeResponseValue = wasm.TS_ChannelReady_clone_ptr(arg);
25403 return nativeResponseValue;
25405 // struct LDKChannelReady ChannelReady_clone(const struct LDKChannelReady *NONNULL_PTR orig);
25407 export function ChannelReady_clone(orig: bigint): bigint {
25408 if(!isWasmInitialized) {
25409 throw new Error("initializeWasm() must be awaited first!");
25411 const nativeResponseValue = wasm.TS_ChannelReady_clone(orig);
25412 return nativeResponseValue;
25414 // bool ChannelReady_eq(const struct LDKChannelReady *NONNULL_PTR a, const struct LDKChannelReady *NONNULL_PTR b);
25416 export function ChannelReady_eq(a: bigint, b: bigint): boolean {
25417 if(!isWasmInitialized) {
25418 throw new Error("initializeWasm() must be awaited first!");
25420 const nativeResponseValue = wasm.TS_ChannelReady_eq(a, b);
25421 return nativeResponseValue;
25423 // void Shutdown_free(struct LDKShutdown this_obj);
25425 export function Shutdown_free(this_obj: bigint): void {
25426 if(!isWasmInitialized) {
25427 throw new Error("initializeWasm() must be awaited first!");
25429 const nativeResponseValue = wasm.TS_Shutdown_free(this_obj);
25430 // debug statements here
25432 // const uint8_t (*Shutdown_get_channel_id(const struct LDKShutdown *NONNULL_PTR this_ptr))[32];
25434 export function Shutdown_get_channel_id(this_ptr: bigint): number {
25435 if(!isWasmInitialized) {
25436 throw new Error("initializeWasm() must be awaited first!");
25438 const nativeResponseValue = wasm.TS_Shutdown_get_channel_id(this_ptr);
25439 return nativeResponseValue;
25441 // void Shutdown_set_channel_id(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25443 export function Shutdown_set_channel_id(this_ptr: bigint, val: number): void {
25444 if(!isWasmInitialized) {
25445 throw new Error("initializeWasm() must be awaited first!");
25447 const nativeResponseValue = wasm.TS_Shutdown_set_channel_id(this_ptr, val);
25448 // debug statements here
25450 // struct LDKu8slice Shutdown_get_scriptpubkey(const struct LDKShutdown *NONNULL_PTR this_ptr);
25452 export function Shutdown_get_scriptpubkey(this_ptr: bigint): number {
25453 if(!isWasmInitialized) {
25454 throw new Error("initializeWasm() must be awaited first!");
25456 const nativeResponseValue = wasm.TS_Shutdown_get_scriptpubkey(this_ptr);
25457 return nativeResponseValue;
25459 // void Shutdown_set_scriptpubkey(struct LDKShutdown *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
25461 export function Shutdown_set_scriptpubkey(this_ptr: bigint, val: number): void {
25462 if(!isWasmInitialized) {
25463 throw new Error("initializeWasm() must be awaited first!");
25465 const nativeResponseValue = wasm.TS_Shutdown_set_scriptpubkey(this_ptr, val);
25466 // debug statements here
25468 // MUST_USE_RES struct LDKShutdown Shutdown_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKCVec_u8Z scriptpubkey_arg);
25470 export function Shutdown_new(channel_id_arg: number, scriptpubkey_arg: number): bigint {
25471 if(!isWasmInitialized) {
25472 throw new Error("initializeWasm() must be awaited first!");
25474 const nativeResponseValue = wasm.TS_Shutdown_new(channel_id_arg, scriptpubkey_arg);
25475 return nativeResponseValue;
25477 // uint64_t Shutdown_clone_ptr(LDKShutdown *NONNULL_PTR arg);
25479 export function Shutdown_clone_ptr(arg: bigint): bigint {
25480 if(!isWasmInitialized) {
25481 throw new Error("initializeWasm() must be awaited first!");
25483 const nativeResponseValue = wasm.TS_Shutdown_clone_ptr(arg);
25484 return nativeResponseValue;
25486 // struct LDKShutdown Shutdown_clone(const struct LDKShutdown *NONNULL_PTR orig);
25488 export function Shutdown_clone(orig: bigint): bigint {
25489 if(!isWasmInitialized) {
25490 throw new Error("initializeWasm() must be awaited first!");
25492 const nativeResponseValue = wasm.TS_Shutdown_clone(orig);
25493 return nativeResponseValue;
25495 // bool Shutdown_eq(const struct LDKShutdown *NONNULL_PTR a, const struct LDKShutdown *NONNULL_PTR b);
25497 export function Shutdown_eq(a: bigint, b: bigint): boolean {
25498 if(!isWasmInitialized) {
25499 throw new Error("initializeWasm() must be awaited first!");
25501 const nativeResponseValue = wasm.TS_Shutdown_eq(a, b);
25502 return nativeResponseValue;
25504 // void ClosingSignedFeeRange_free(struct LDKClosingSignedFeeRange this_obj);
25506 export function ClosingSignedFeeRange_free(this_obj: bigint): void {
25507 if(!isWasmInitialized) {
25508 throw new Error("initializeWasm() must be awaited first!");
25510 const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_free(this_obj);
25511 // debug statements here
25513 // uint64_t ClosingSignedFeeRange_get_min_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
25515 export function ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr: bigint): bigint {
25516 if(!isWasmInitialized) {
25517 throw new Error("initializeWasm() must be awaited first!");
25519 const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_min_fee_satoshis(this_ptr);
25520 return nativeResponseValue;
25522 // void ClosingSignedFeeRange_set_min_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
25524 export function ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr: bigint, val: bigint): void {
25525 if(!isWasmInitialized) {
25526 throw new Error("initializeWasm() must be awaited first!");
25528 const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_min_fee_satoshis(this_ptr, val);
25529 // debug statements here
25531 // uint64_t ClosingSignedFeeRange_get_max_fee_satoshis(const struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr);
25533 export function ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr: bigint): bigint {
25534 if(!isWasmInitialized) {
25535 throw new Error("initializeWasm() must be awaited first!");
25537 const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_get_max_fee_satoshis(this_ptr);
25538 return nativeResponseValue;
25540 // void ClosingSignedFeeRange_set_max_fee_satoshis(struct LDKClosingSignedFeeRange *NONNULL_PTR this_ptr, uint64_t val);
25542 export function ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr: bigint, val: bigint): void {
25543 if(!isWasmInitialized) {
25544 throw new Error("initializeWasm() must be awaited first!");
25546 const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_set_max_fee_satoshis(this_ptr, val);
25547 // debug statements here
25549 // MUST_USE_RES struct LDKClosingSignedFeeRange ClosingSignedFeeRange_new(uint64_t min_fee_satoshis_arg, uint64_t max_fee_satoshis_arg);
25551 export function ClosingSignedFeeRange_new(min_fee_satoshis_arg: bigint, max_fee_satoshis_arg: bigint): bigint {
25552 if(!isWasmInitialized) {
25553 throw new Error("initializeWasm() must be awaited first!");
25555 const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_new(min_fee_satoshis_arg, max_fee_satoshis_arg);
25556 return nativeResponseValue;
25558 // uint64_t ClosingSignedFeeRange_clone_ptr(LDKClosingSignedFeeRange *NONNULL_PTR arg);
25560 export function ClosingSignedFeeRange_clone_ptr(arg: bigint): bigint {
25561 if(!isWasmInitialized) {
25562 throw new Error("initializeWasm() must be awaited first!");
25564 const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone_ptr(arg);
25565 return nativeResponseValue;
25567 // struct LDKClosingSignedFeeRange ClosingSignedFeeRange_clone(const struct LDKClosingSignedFeeRange *NONNULL_PTR orig);
25569 export function ClosingSignedFeeRange_clone(orig: bigint): bigint {
25570 if(!isWasmInitialized) {
25571 throw new Error("initializeWasm() must be awaited first!");
25573 const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_clone(orig);
25574 return nativeResponseValue;
25576 // bool ClosingSignedFeeRange_eq(const struct LDKClosingSignedFeeRange *NONNULL_PTR a, const struct LDKClosingSignedFeeRange *NONNULL_PTR b);
25578 export function ClosingSignedFeeRange_eq(a: bigint, b: bigint): boolean {
25579 if(!isWasmInitialized) {
25580 throw new Error("initializeWasm() must be awaited first!");
25582 const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_eq(a, b);
25583 return nativeResponseValue;
25585 // void ClosingSigned_free(struct LDKClosingSigned this_obj);
25587 export function ClosingSigned_free(this_obj: bigint): void {
25588 if(!isWasmInitialized) {
25589 throw new Error("initializeWasm() must be awaited first!");
25591 const nativeResponseValue = wasm.TS_ClosingSigned_free(this_obj);
25592 // debug statements here
25594 // const uint8_t (*ClosingSigned_get_channel_id(const struct LDKClosingSigned *NONNULL_PTR this_ptr))[32];
25596 export function ClosingSigned_get_channel_id(this_ptr: bigint): number {
25597 if(!isWasmInitialized) {
25598 throw new Error("initializeWasm() must be awaited first!");
25600 const nativeResponseValue = wasm.TS_ClosingSigned_get_channel_id(this_ptr);
25601 return nativeResponseValue;
25603 // void ClosingSigned_set_channel_id(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25605 export function ClosingSigned_set_channel_id(this_ptr: bigint, val: number): void {
25606 if(!isWasmInitialized) {
25607 throw new Error("initializeWasm() must be awaited first!");
25609 const nativeResponseValue = wasm.TS_ClosingSigned_set_channel_id(this_ptr, val);
25610 // debug statements here
25612 // uint64_t ClosingSigned_get_fee_satoshis(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
25614 export function ClosingSigned_get_fee_satoshis(this_ptr: bigint): bigint {
25615 if(!isWasmInitialized) {
25616 throw new Error("initializeWasm() must be awaited first!");
25618 const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_satoshis(this_ptr);
25619 return nativeResponseValue;
25621 // void ClosingSigned_set_fee_satoshis(struct LDKClosingSigned *NONNULL_PTR this_ptr, uint64_t val);
25623 export function ClosingSigned_set_fee_satoshis(this_ptr: bigint, val: bigint): void {
25624 if(!isWasmInitialized) {
25625 throw new Error("initializeWasm() must be awaited first!");
25627 const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_satoshis(this_ptr, val);
25628 // debug statements here
25630 // struct LDKSignature ClosingSigned_get_signature(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
25632 export function ClosingSigned_get_signature(this_ptr: bigint): number {
25633 if(!isWasmInitialized) {
25634 throw new Error("initializeWasm() must be awaited first!");
25636 const nativeResponseValue = wasm.TS_ClosingSigned_get_signature(this_ptr);
25637 return nativeResponseValue;
25639 // void ClosingSigned_set_signature(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
25641 export function ClosingSigned_set_signature(this_ptr: bigint, val: number): void {
25642 if(!isWasmInitialized) {
25643 throw new Error("initializeWasm() must be awaited first!");
25645 const nativeResponseValue = wasm.TS_ClosingSigned_set_signature(this_ptr, val);
25646 // debug statements here
25648 // struct LDKClosingSignedFeeRange ClosingSigned_get_fee_range(const struct LDKClosingSigned *NONNULL_PTR this_ptr);
25650 export function ClosingSigned_get_fee_range(this_ptr: bigint): bigint {
25651 if(!isWasmInitialized) {
25652 throw new Error("initializeWasm() must be awaited first!");
25654 const nativeResponseValue = wasm.TS_ClosingSigned_get_fee_range(this_ptr);
25655 return nativeResponseValue;
25657 // void ClosingSigned_set_fee_range(struct LDKClosingSigned *NONNULL_PTR this_ptr, struct LDKClosingSignedFeeRange val);
25659 export function ClosingSigned_set_fee_range(this_ptr: bigint, val: bigint): void {
25660 if(!isWasmInitialized) {
25661 throw new Error("initializeWasm() must be awaited first!");
25663 const nativeResponseValue = wasm.TS_ClosingSigned_set_fee_range(this_ptr, val);
25664 // debug statements here
25666 // MUST_USE_RES struct LDKClosingSigned ClosingSigned_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t fee_satoshis_arg, struct LDKSignature signature_arg, struct LDKClosingSignedFeeRange fee_range_arg);
25668 export function ClosingSigned_new(channel_id_arg: number, fee_satoshis_arg: bigint, signature_arg: number, fee_range_arg: bigint): bigint {
25669 if(!isWasmInitialized) {
25670 throw new Error("initializeWasm() must be awaited first!");
25672 const nativeResponseValue = wasm.TS_ClosingSigned_new(channel_id_arg, fee_satoshis_arg, signature_arg, fee_range_arg);
25673 return nativeResponseValue;
25675 // uint64_t ClosingSigned_clone_ptr(LDKClosingSigned *NONNULL_PTR arg);
25677 export function ClosingSigned_clone_ptr(arg: bigint): bigint {
25678 if(!isWasmInitialized) {
25679 throw new Error("initializeWasm() must be awaited first!");
25681 const nativeResponseValue = wasm.TS_ClosingSigned_clone_ptr(arg);
25682 return nativeResponseValue;
25684 // struct LDKClosingSigned ClosingSigned_clone(const struct LDKClosingSigned *NONNULL_PTR orig);
25686 export function ClosingSigned_clone(orig: bigint): bigint {
25687 if(!isWasmInitialized) {
25688 throw new Error("initializeWasm() must be awaited first!");
25690 const nativeResponseValue = wasm.TS_ClosingSigned_clone(orig);
25691 return nativeResponseValue;
25693 // bool ClosingSigned_eq(const struct LDKClosingSigned *NONNULL_PTR a, const struct LDKClosingSigned *NONNULL_PTR b);
25695 export function ClosingSigned_eq(a: bigint, b: bigint): boolean {
25696 if(!isWasmInitialized) {
25697 throw new Error("initializeWasm() must be awaited first!");
25699 const nativeResponseValue = wasm.TS_ClosingSigned_eq(a, b);
25700 return nativeResponseValue;
25702 // void UpdateAddHTLC_free(struct LDKUpdateAddHTLC this_obj);
25704 export function UpdateAddHTLC_free(this_obj: bigint): void {
25705 if(!isWasmInitialized) {
25706 throw new Error("initializeWasm() must be awaited first!");
25708 const nativeResponseValue = wasm.TS_UpdateAddHTLC_free(this_obj);
25709 // debug statements here
25711 // const uint8_t (*UpdateAddHTLC_get_channel_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
25713 export function UpdateAddHTLC_get_channel_id(this_ptr: bigint): number {
25714 if(!isWasmInitialized) {
25715 throw new Error("initializeWasm() must be awaited first!");
25717 const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_channel_id(this_ptr);
25718 return nativeResponseValue;
25720 // void UpdateAddHTLC_set_channel_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25722 export function UpdateAddHTLC_set_channel_id(this_ptr: bigint, val: number): void {
25723 if(!isWasmInitialized) {
25724 throw new Error("initializeWasm() must be awaited first!");
25726 const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_channel_id(this_ptr, val);
25727 // debug statements here
25729 // uint64_t UpdateAddHTLC_get_htlc_id(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
25731 export function UpdateAddHTLC_get_htlc_id(this_ptr: bigint): bigint {
25732 if(!isWasmInitialized) {
25733 throw new Error("initializeWasm() must be awaited first!");
25735 const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_htlc_id(this_ptr);
25736 return nativeResponseValue;
25738 // void UpdateAddHTLC_set_htlc_id(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
25740 export function UpdateAddHTLC_set_htlc_id(this_ptr: bigint, val: bigint): void {
25741 if(!isWasmInitialized) {
25742 throw new Error("initializeWasm() must be awaited first!");
25744 const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_htlc_id(this_ptr, val);
25745 // debug statements here
25747 // uint64_t UpdateAddHTLC_get_amount_msat(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
25749 export function UpdateAddHTLC_get_amount_msat(this_ptr: bigint): bigint {
25750 if(!isWasmInitialized) {
25751 throw new Error("initializeWasm() must be awaited first!");
25753 const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_amount_msat(this_ptr);
25754 return nativeResponseValue;
25756 // void UpdateAddHTLC_set_amount_msat(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint64_t val);
25758 export function UpdateAddHTLC_set_amount_msat(this_ptr: bigint, val: bigint): void {
25759 if(!isWasmInitialized) {
25760 throw new Error("initializeWasm() must be awaited first!");
25762 const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_amount_msat(this_ptr, val);
25763 // debug statements here
25765 // const uint8_t (*UpdateAddHTLC_get_payment_hash(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr))[32];
25767 export function UpdateAddHTLC_get_payment_hash(this_ptr: bigint): number {
25768 if(!isWasmInitialized) {
25769 throw new Error("initializeWasm() must be awaited first!");
25771 const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_payment_hash(this_ptr);
25772 return nativeResponseValue;
25774 // void UpdateAddHTLC_set_payment_hash(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25776 export function UpdateAddHTLC_set_payment_hash(this_ptr: bigint, val: number): void {
25777 if(!isWasmInitialized) {
25778 throw new Error("initializeWasm() must be awaited first!");
25780 const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_payment_hash(this_ptr, val);
25781 // debug statements here
25783 // uint32_t UpdateAddHTLC_get_cltv_expiry(const struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr);
25785 export function UpdateAddHTLC_get_cltv_expiry(this_ptr: bigint): number {
25786 if(!isWasmInitialized) {
25787 throw new Error("initializeWasm() must be awaited first!");
25789 const nativeResponseValue = wasm.TS_UpdateAddHTLC_get_cltv_expiry(this_ptr);
25790 return nativeResponseValue;
25792 // void UpdateAddHTLC_set_cltv_expiry(struct LDKUpdateAddHTLC *NONNULL_PTR this_ptr, uint32_t val);
25794 export function UpdateAddHTLC_set_cltv_expiry(this_ptr: bigint, val: number): void {
25795 if(!isWasmInitialized) {
25796 throw new Error("initializeWasm() must be awaited first!");
25798 const nativeResponseValue = wasm.TS_UpdateAddHTLC_set_cltv_expiry(this_ptr, val);
25799 // debug statements here
25801 // uint64_t UpdateAddHTLC_clone_ptr(LDKUpdateAddHTLC *NONNULL_PTR arg);
25803 export function UpdateAddHTLC_clone_ptr(arg: bigint): bigint {
25804 if(!isWasmInitialized) {
25805 throw new Error("initializeWasm() must be awaited first!");
25807 const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone_ptr(arg);
25808 return nativeResponseValue;
25810 // struct LDKUpdateAddHTLC UpdateAddHTLC_clone(const struct LDKUpdateAddHTLC *NONNULL_PTR orig);
25812 export function UpdateAddHTLC_clone(orig: bigint): bigint {
25813 if(!isWasmInitialized) {
25814 throw new Error("initializeWasm() must be awaited first!");
25816 const nativeResponseValue = wasm.TS_UpdateAddHTLC_clone(orig);
25817 return nativeResponseValue;
25819 // bool UpdateAddHTLC_eq(const struct LDKUpdateAddHTLC *NONNULL_PTR a, const struct LDKUpdateAddHTLC *NONNULL_PTR b);
25821 export function UpdateAddHTLC_eq(a: bigint, b: bigint): boolean {
25822 if(!isWasmInitialized) {
25823 throw new Error("initializeWasm() must be awaited first!");
25825 const nativeResponseValue = wasm.TS_UpdateAddHTLC_eq(a, b);
25826 return nativeResponseValue;
25828 // void OnionMessage_free(struct LDKOnionMessage this_obj);
25830 export function OnionMessage_free(this_obj: bigint): void {
25831 if(!isWasmInitialized) {
25832 throw new Error("initializeWasm() must be awaited first!");
25834 const nativeResponseValue = wasm.TS_OnionMessage_free(this_obj);
25835 // debug statements here
25837 // struct LDKPublicKey OnionMessage_get_blinding_point(const struct LDKOnionMessage *NONNULL_PTR this_ptr);
25839 export function OnionMessage_get_blinding_point(this_ptr: bigint): number {
25840 if(!isWasmInitialized) {
25841 throw new Error("initializeWasm() must be awaited first!");
25843 const nativeResponseValue = wasm.TS_OnionMessage_get_blinding_point(this_ptr);
25844 return nativeResponseValue;
25846 // void OnionMessage_set_blinding_point(struct LDKOnionMessage *NONNULL_PTR this_ptr, struct LDKPublicKey val);
25848 export function OnionMessage_set_blinding_point(this_ptr: bigint, val: number): void {
25849 if(!isWasmInitialized) {
25850 throw new Error("initializeWasm() must be awaited first!");
25852 const nativeResponseValue = wasm.TS_OnionMessage_set_blinding_point(this_ptr, val);
25853 // debug statements here
25855 // uint64_t OnionMessage_clone_ptr(LDKOnionMessage *NONNULL_PTR arg);
25857 export function OnionMessage_clone_ptr(arg: bigint): bigint {
25858 if(!isWasmInitialized) {
25859 throw new Error("initializeWasm() must be awaited first!");
25861 const nativeResponseValue = wasm.TS_OnionMessage_clone_ptr(arg);
25862 return nativeResponseValue;
25864 // struct LDKOnionMessage OnionMessage_clone(const struct LDKOnionMessage *NONNULL_PTR orig);
25866 export function OnionMessage_clone(orig: bigint): bigint {
25867 if(!isWasmInitialized) {
25868 throw new Error("initializeWasm() must be awaited first!");
25870 const nativeResponseValue = wasm.TS_OnionMessage_clone(orig);
25871 return nativeResponseValue;
25873 // bool OnionMessage_eq(const struct LDKOnionMessage *NONNULL_PTR a, const struct LDKOnionMessage *NONNULL_PTR b);
25875 export function OnionMessage_eq(a: bigint, b: bigint): boolean {
25876 if(!isWasmInitialized) {
25877 throw new Error("initializeWasm() must be awaited first!");
25879 const nativeResponseValue = wasm.TS_OnionMessage_eq(a, b);
25880 return nativeResponseValue;
25882 // void UpdateFulfillHTLC_free(struct LDKUpdateFulfillHTLC this_obj);
25884 export function UpdateFulfillHTLC_free(this_obj: bigint): void {
25885 if(!isWasmInitialized) {
25886 throw new Error("initializeWasm() must be awaited first!");
25888 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_free(this_obj);
25889 // debug statements here
25891 // const uint8_t (*UpdateFulfillHTLC_get_channel_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
25893 export function UpdateFulfillHTLC_get_channel_id(this_ptr: bigint): number {
25894 if(!isWasmInitialized) {
25895 throw new Error("initializeWasm() must be awaited first!");
25897 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_channel_id(this_ptr);
25898 return nativeResponseValue;
25900 // void UpdateFulfillHTLC_set_channel_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25902 export function UpdateFulfillHTLC_set_channel_id(this_ptr: bigint, val: number): void {
25903 if(!isWasmInitialized) {
25904 throw new Error("initializeWasm() must be awaited first!");
25906 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_channel_id(this_ptr, val);
25907 // debug statements here
25909 // uint64_t UpdateFulfillHTLC_get_htlc_id(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr);
25911 export function UpdateFulfillHTLC_get_htlc_id(this_ptr: bigint): bigint {
25912 if(!isWasmInitialized) {
25913 throw new Error("initializeWasm() must be awaited first!");
25915 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_htlc_id(this_ptr);
25916 return nativeResponseValue;
25918 // void UpdateFulfillHTLC_set_htlc_id(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, uint64_t val);
25920 export function UpdateFulfillHTLC_set_htlc_id(this_ptr: bigint, val: bigint): void {
25921 if(!isWasmInitialized) {
25922 throw new Error("initializeWasm() must be awaited first!");
25924 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_htlc_id(this_ptr, val);
25925 // debug statements here
25927 // const uint8_t (*UpdateFulfillHTLC_get_payment_preimage(const struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr))[32];
25929 export function UpdateFulfillHTLC_get_payment_preimage(this_ptr: bigint): number {
25930 if(!isWasmInitialized) {
25931 throw new Error("initializeWasm() must be awaited first!");
25933 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_get_payment_preimage(this_ptr);
25934 return nativeResponseValue;
25936 // void UpdateFulfillHTLC_set_payment_preimage(struct LDKUpdateFulfillHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
25938 export function UpdateFulfillHTLC_set_payment_preimage(this_ptr: bigint, val: number): void {
25939 if(!isWasmInitialized) {
25940 throw new Error("initializeWasm() must be awaited first!");
25942 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_set_payment_preimage(this_ptr, val);
25943 // debug statements here
25945 // MUST_USE_RES struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t htlc_id_arg, struct LDKThirtyTwoBytes payment_preimage_arg);
25947 export function UpdateFulfillHTLC_new(channel_id_arg: number, htlc_id_arg: bigint, payment_preimage_arg: number): bigint {
25948 if(!isWasmInitialized) {
25949 throw new Error("initializeWasm() must be awaited first!");
25951 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_new(channel_id_arg, htlc_id_arg, payment_preimage_arg);
25952 return nativeResponseValue;
25954 // uint64_t UpdateFulfillHTLC_clone_ptr(LDKUpdateFulfillHTLC *NONNULL_PTR arg);
25956 export function UpdateFulfillHTLC_clone_ptr(arg: bigint): bigint {
25957 if(!isWasmInitialized) {
25958 throw new Error("initializeWasm() must be awaited first!");
25960 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone_ptr(arg);
25961 return nativeResponseValue;
25963 // struct LDKUpdateFulfillHTLC UpdateFulfillHTLC_clone(const struct LDKUpdateFulfillHTLC *NONNULL_PTR orig);
25965 export function UpdateFulfillHTLC_clone(orig: bigint): bigint {
25966 if(!isWasmInitialized) {
25967 throw new Error("initializeWasm() must be awaited first!");
25969 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_clone(orig);
25970 return nativeResponseValue;
25972 // bool UpdateFulfillHTLC_eq(const struct LDKUpdateFulfillHTLC *NONNULL_PTR a, const struct LDKUpdateFulfillHTLC *NONNULL_PTR b);
25974 export function UpdateFulfillHTLC_eq(a: bigint, b: bigint): boolean {
25975 if(!isWasmInitialized) {
25976 throw new Error("initializeWasm() must be awaited first!");
25978 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_eq(a, b);
25979 return nativeResponseValue;
25981 // void UpdateFailHTLC_free(struct LDKUpdateFailHTLC this_obj);
25983 export function UpdateFailHTLC_free(this_obj: bigint): void {
25984 if(!isWasmInitialized) {
25985 throw new Error("initializeWasm() must be awaited first!");
25987 const nativeResponseValue = wasm.TS_UpdateFailHTLC_free(this_obj);
25988 // debug statements here
25990 // const uint8_t (*UpdateFailHTLC_get_channel_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr))[32];
25992 export function UpdateFailHTLC_get_channel_id(this_ptr: bigint): number {
25993 if(!isWasmInitialized) {
25994 throw new Error("initializeWasm() must be awaited first!");
25996 const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_channel_id(this_ptr);
25997 return nativeResponseValue;
25999 // void UpdateFailHTLC_set_channel_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26001 export function UpdateFailHTLC_set_channel_id(this_ptr: bigint, val: number): void {
26002 if(!isWasmInitialized) {
26003 throw new Error("initializeWasm() must be awaited first!");
26005 const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_channel_id(this_ptr, val);
26006 // debug statements here
26008 // uint64_t UpdateFailHTLC_get_htlc_id(const struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr);
26010 export function UpdateFailHTLC_get_htlc_id(this_ptr: bigint): bigint {
26011 if(!isWasmInitialized) {
26012 throw new Error("initializeWasm() must be awaited first!");
26014 const nativeResponseValue = wasm.TS_UpdateFailHTLC_get_htlc_id(this_ptr);
26015 return nativeResponseValue;
26017 // void UpdateFailHTLC_set_htlc_id(struct LDKUpdateFailHTLC *NONNULL_PTR this_ptr, uint64_t val);
26019 export function UpdateFailHTLC_set_htlc_id(this_ptr: bigint, val: bigint): void {
26020 if(!isWasmInitialized) {
26021 throw new Error("initializeWasm() must be awaited first!");
26023 const nativeResponseValue = wasm.TS_UpdateFailHTLC_set_htlc_id(this_ptr, val);
26024 // debug statements here
26026 // uint64_t UpdateFailHTLC_clone_ptr(LDKUpdateFailHTLC *NONNULL_PTR arg);
26028 export function UpdateFailHTLC_clone_ptr(arg: bigint): bigint {
26029 if(!isWasmInitialized) {
26030 throw new Error("initializeWasm() must be awaited first!");
26032 const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone_ptr(arg);
26033 return nativeResponseValue;
26035 // struct LDKUpdateFailHTLC UpdateFailHTLC_clone(const struct LDKUpdateFailHTLC *NONNULL_PTR orig);
26037 export function UpdateFailHTLC_clone(orig: bigint): bigint {
26038 if(!isWasmInitialized) {
26039 throw new Error("initializeWasm() must be awaited first!");
26041 const nativeResponseValue = wasm.TS_UpdateFailHTLC_clone(orig);
26042 return nativeResponseValue;
26044 // bool UpdateFailHTLC_eq(const struct LDKUpdateFailHTLC *NONNULL_PTR a, const struct LDKUpdateFailHTLC *NONNULL_PTR b);
26046 export function UpdateFailHTLC_eq(a: bigint, b: bigint): boolean {
26047 if(!isWasmInitialized) {
26048 throw new Error("initializeWasm() must be awaited first!");
26050 const nativeResponseValue = wasm.TS_UpdateFailHTLC_eq(a, b);
26051 return nativeResponseValue;
26053 // void UpdateFailMalformedHTLC_free(struct LDKUpdateFailMalformedHTLC this_obj);
26055 export function UpdateFailMalformedHTLC_free(this_obj: bigint): void {
26056 if(!isWasmInitialized) {
26057 throw new Error("initializeWasm() must be awaited first!");
26059 const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_free(this_obj);
26060 // debug statements here
26062 // const uint8_t (*UpdateFailMalformedHTLC_get_channel_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr))[32];
26064 export function UpdateFailMalformedHTLC_get_channel_id(this_ptr: bigint): number {
26065 if(!isWasmInitialized) {
26066 throw new Error("initializeWasm() must be awaited first!");
26068 const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_channel_id(this_ptr);
26069 return nativeResponseValue;
26071 // void UpdateFailMalformedHTLC_set_channel_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26073 export function UpdateFailMalformedHTLC_set_channel_id(this_ptr: bigint, val: number): void {
26074 if(!isWasmInitialized) {
26075 throw new Error("initializeWasm() must be awaited first!");
26077 const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_channel_id(this_ptr, val);
26078 // debug statements here
26080 // uint64_t UpdateFailMalformedHTLC_get_htlc_id(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
26082 export function UpdateFailMalformedHTLC_get_htlc_id(this_ptr: bigint): bigint {
26083 if(!isWasmInitialized) {
26084 throw new Error("initializeWasm() must be awaited first!");
26086 const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_htlc_id(this_ptr);
26087 return nativeResponseValue;
26089 // void UpdateFailMalformedHTLC_set_htlc_id(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint64_t val);
26091 export function UpdateFailMalformedHTLC_set_htlc_id(this_ptr: bigint, val: bigint): void {
26092 if(!isWasmInitialized) {
26093 throw new Error("initializeWasm() must be awaited first!");
26095 const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_htlc_id(this_ptr, val);
26096 // debug statements here
26098 // uint16_t UpdateFailMalformedHTLC_get_failure_code(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr);
26100 export function UpdateFailMalformedHTLC_get_failure_code(this_ptr: bigint): number {
26101 if(!isWasmInitialized) {
26102 throw new Error("initializeWasm() must be awaited first!");
26104 const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_get_failure_code(this_ptr);
26105 return nativeResponseValue;
26107 // void UpdateFailMalformedHTLC_set_failure_code(struct LDKUpdateFailMalformedHTLC *NONNULL_PTR this_ptr, uint16_t val);
26109 export function UpdateFailMalformedHTLC_set_failure_code(this_ptr: bigint, val: number): void {
26110 if(!isWasmInitialized) {
26111 throw new Error("initializeWasm() must be awaited first!");
26113 const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_set_failure_code(this_ptr, val);
26114 // debug statements here
26116 // uint64_t UpdateFailMalformedHTLC_clone_ptr(LDKUpdateFailMalformedHTLC *NONNULL_PTR arg);
26118 export function UpdateFailMalformedHTLC_clone_ptr(arg: bigint): bigint {
26119 if(!isWasmInitialized) {
26120 throw new Error("initializeWasm() must be awaited first!");
26122 const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone_ptr(arg);
26123 return nativeResponseValue;
26125 // struct LDKUpdateFailMalformedHTLC UpdateFailMalformedHTLC_clone(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR orig);
26127 export function UpdateFailMalformedHTLC_clone(orig: bigint): bigint {
26128 if(!isWasmInitialized) {
26129 throw new Error("initializeWasm() must be awaited first!");
26131 const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_clone(orig);
26132 return nativeResponseValue;
26134 // bool UpdateFailMalformedHTLC_eq(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR a, const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR b);
26136 export function UpdateFailMalformedHTLC_eq(a: bigint, b: bigint): boolean {
26137 if(!isWasmInitialized) {
26138 throw new Error("initializeWasm() must be awaited first!");
26140 const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_eq(a, b);
26141 return nativeResponseValue;
26143 // void CommitmentSigned_free(struct LDKCommitmentSigned this_obj);
26145 export function CommitmentSigned_free(this_obj: bigint): void {
26146 if(!isWasmInitialized) {
26147 throw new Error("initializeWasm() must be awaited first!");
26149 const nativeResponseValue = wasm.TS_CommitmentSigned_free(this_obj);
26150 // debug statements here
26152 // const uint8_t (*CommitmentSigned_get_channel_id(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr))[32];
26154 export function CommitmentSigned_get_channel_id(this_ptr: bigint): number {
26155 if(!isWasmInitialized) {
26156 throw new Error("initializeWasm() must be awaited first!");
26158 const nativeResponseValue = wasm.TS_CommitmentSigned_get_channel_id(this_ptr);
26159 return nativeResponseValue;
26161 // void CommitmentSigned_set_channel_id(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26163 export function CommitmentSigned_set_channel_id(this_ptr: bigint, val: number): void {
26164 if(!isWasmInitialized) {
26165 throw new Error("initializeWasm() must be awaited first!");
26167 const nativeResponseValue = wasm.TS_CommitmentSigned_set_channel_id(this_ptr, val);
26168 // debug statements here
26170 // struct LDKSignature CommitmentSigned_get_signature(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
26172 export function CommitmentSigned_get_signature(this_ptr: bigint): number {
26173 if(!isWasmInitialized) {
26174 throw new Error("initializeWasm() must be awaited first!");
26176 const nativeResponseValue = wasm.TS_CommitmentSigned_get_signature(this_ptr);
26177 return nativeResponseValue;
26179 // void CommitmentSigned_set_signature(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKSignature val);
26181 export function CommitmentSigned_set_signature(this_ptr: bigint, val: number): void {
26182 if(!isWasmInitialized) {
26183 throw new Error("initializeWasm() must be awaited first!");
26185 const nativeResponseValue = wasm.TS_CommitmentSigned_set_signature(this_ptr, val);
26186 // debug statements here
26188 // struct LDKCVec_SignatureZ CommitmentSigned_get_htlc_signatures(const struct LDKCommitmentSigned *NONNULL_PTR this_ptr);
26190 export function CommitmentSigned_get_htlc_signatures(this_ptr: bigint): number {
26191 if(!isWasmInitialized) {
26192 throw new Error("initializeWasm() must be awaited first!");
26194 const nativeResponseValue = wasm.TS_CommitmentSigned_get_htlc_signatures(this_ptr);
26195 return nativeResponseValue;
26197 // void CommitmentSigned_set_htlc_signatures(struct LDKCommitmentSigned *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
26199 export function CommitmentSigned_set_htlc_signatures(this_ptr: bigint, val: number): void {
26200 if(!isWasmInitialized) {
26201 throw new Error("initializeWasm() must be awaited first!");
26203 const nativeResponseValue = wasm.TS_CommitmentSigned_set_htlc_signatures(this_ptr, val);
26204 // debug statements here
26206 // MUST_USE_RES struct LDKCommitmentSigned CommitmentSigned_new(struct LDKThirtyTwoBytes channel_id_arg, struct LDKSignature signature_arg, struct LDKCVec_SignatureZ htlc_signatures_arg);
26208 export function CommitmentSigned_new(channel_id_arg: number, signature_arg: number, htlc_signatures_arg: number): bigint {
26209 if(!isWasmInitialized) {
26210 throw new Error("initializeWasm() must be awaited first!");
26212 const nativeResponseValue = wasm.TS_CommitmentSigned_new(channel_id_arg, signature_arg, htlc_signatures_arg);
26213 return nativeResponseValue;
26215 // uint64_t CommitmentSigned_clone_ptr(LDKCommitmentSigned *NONNULL_PTR arg);
26217 export function CommitmentSigned_clone_ptr(arg: bigint): bigint {
26218 if(!isWasmInitialized) {
26219 throw new Error("initializeWasm() must be awaited first!");
26221 const nativeResponseValue = wasm.TS_CommitmentSigned_clone_ptr(arg);
26222 return nativeResponseValue;
26224 // struct LDKCommitmentSigned CommitmentSigned_clone(const struct LDKCommitmentSigned *NONNULL_PTR orig);
26226 export function CommitmentSigned_clone(orig: bigint): bigint {
26227 if(!isWasmInitialized) {
26228 throw new Error("initializeWasm() must be awaited first!");
26230 const nativeResponseValue = wasm.TS_CommitmentSigned_clone(orig);
26231 return nativeResponseValue;
26233 // bool CommitmentSigned_eq(const struct LDKCommitmentSigned *NONNULL_PTR a, const struct LDKCommitmentSigned *NONNULL_PTR b);
26235 export function CommitmentSigned_eq(a: bigint, b: bigint): boolean {
26236 if(!isWasmInitialized) {
26237 throw new Error("initializeWasm() must be awaited first!");
26239 const nativeResponseValue = wasm.TS_CommitmentSigned_eq(a, b);
26240 return nativeResponseValue;
26242 // void RevokeAndACK_free(struct LDKRevokeAndACK this_obj);
26244 export function RevokeAndACK_free(this_obj: bigint): void {
26245 if(!isWasmInitialized) {
26246 throw new Error("initializeWasm() must be awaited first!");
26248 const nativeResponseValue = wasm.TS_RevokeAndACK_free(this_obj);
26249 // debug statements here
26251 // const uint8_t (*RevokeAndACK_get_channel_id(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
26253 export function RevokeAndACK_get_channel_id(this_ptr: bigint): number {
26254 if(!isWasmInitialized) {
26255 throw new Error("initializeWasm() must be awaited first!");
26257 const nativeResponseValue = wasm.TS_RevokeAndACK_get_channel_id(this_ptr);
26258 return nativeResponseValue;
26260 // void RevokeAndACK_set_channel_id(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26262 export function RevokeAndACK_set_channel_id(this_ptr: bigint, val: number): void {
26263 if(!isWasmInitialized) {
26264 throw new Error("initializeWasm() must be awaited first!");
26266 const nativeResponseValue = wasm.TS_RevokeAndACK_set_channel_id(this_ptr, val);
26267 // debug statements here
26269 // const uint8_t (*RevokeAndACK_get_per_commitment_secret(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr))[32];
26271 export function RevokeAndACK_get_per_commitment_secret(this_ptr: bigint): number {
26272 if(!isWasmInitialized) {
26273 throw new Error("initializeWasm() must be awaited first!");
26275 const nativeResponseValue = wasm.TS_RevokeAndACK_get_per_commitment_secret(this_ptr);
26276 return nativeResponseValue;
26278 // void RevokeAndACK_set_per_commitment_secret(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26280 export function RevokeAndACK_set_per_commitment_secret(this_ptr: bigint, val: number): void {
26281 if(!isWasmInitialized) {
26282 throw new Error("initializeWasm() must be awaited first!");
26284 const nativeResponseValue = wasm.TS_RevokeAndACK_set_per_commitment_secret(this_ptr, val);
26285 // debug statements here
26287 // struct LDKPublicKey RevokeAndACK_get_next_per_commitment_point(const struct LDKRevokeAndACK *NONNULL_PTR this_ptr);
26289 export function RevokeAndACK_get_next_per_commitment_point(this_ptr: bigint): number {
26290 if(!isWasmInitialized) {
26291 throw new Error("initializeWasm() must be awaited first!");
26293 const nativeResponseValue = wasm.TS_RevokeAndACK_get_next_per_commitment_point(this_ptr);
26294 return nativeResponseValue;
26296 // void RevokeAndACK_set_next_per_commitment_point(struct LDKRevokeAndACK *NONNULL_PTR this_ptr, struct LDKPublicKey val);
26298 export function RevokeAndACK_set_next_per_commitment_point(this_ptr: bigint, val: number): void {
26299 if(!isWasmInitialized) {
26300 throw new Error("initializeWasm() must be awaited first!");
26302 const nativeResponseValue = wasm.TS_RevokeAndACK_set_next_per_commitment_point(this_ptr, val);
26303 // debug statements here
26305 // 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);
26307 export function RevokeAndACK_new(channel_id_arg: number, per_commitment_secret_arg: number, next_per_commitment_point_arg: number): bigint {
26308 if(!isWasmInitialized) {
26309 throw new Error("initializeWasm() must be awaited first!");
26311 const nativeResponseValue = wasm.TS_RevokeAndACK_new(channel_id_arg, per_commitment_secret_arg, next_per_commitment_point_arg);
26312 return nativeResponseValue;
26314 // uint64_t RevokeAndACK_clone_ptr(LDKRevokeAndACK *NONNULL_PTR arg);
26316 export function RevokeAndACK_clone_ptr(arg: bigint): bigint {
26317 if(!isWasmInitialized) {
26318 throw new Error("initializeWasm() must be awaited first!");
26320 const nativeResponseValue = wasm.TS_RevokeAndACK_clone_ptr(arg);
26321 return nativeResponseValue;
26323 // struct LDKRevokeAndACK RevokeAndACK_clone(const struct LDKRevokeAndACK *NONNULL_PTR orig);
26325 export function RevokeAndACK_clone(orig: bigint): bigint {
26326 if(!isWasmInitialized) {
26327 throw new Error("initializeWasm() must be awaited first!");
26329 const nativeResponseValue = wasm.TS_RevokeAndACK_clone(orig);
26330 return nativeResponseValue;
26332 // bool RevokeAndACK_eq(const struct LDKRevokeAndACK *NONNULL_PTR a, const struct LDKRevokeAndACK *NONNULL_PTR b);
26334 export function RevokeAndACK_eq(a: bigint, b: bigint): boolean {
26335 if(!isWasmInitialized) {
26336 throw new Error("initializeWasm() must be awaited first!");
26338 const nativeResponseValue = wasm.TS_RevokeAndACK_eq(a, b);
26339 return nativeResponseValue;
26341 // void UpdateFee_free(struct LDKUpdateFee this_obj);
26343 export function UpdateFee_free(this_obj: bigint): void {
26344 if(!isWasmInitialized) {
26345 throw new Error("initializeWasm() must be awaited first!");
26347 const nativeResponseValue = wasm.TS_UpdateFee_free(this_obj);
26348 // debug statements here
26350 // const uint8_t (*UpdateFee_get_channel_id(const struct LDKUpdateFee *NONNULL_PTR this_ptr))[32];
26352 export function UpdateFee_get_channel_id(this_ptr: bigint): number {
26353 if(!isWasmInitialized) {
26354 throw new Error("initializeWasm() must be awaited first!");
26356 const nativeResponseValue = wasm.TS_UpdateFee_get_channel_id(this_ptr);
26357 return nativeResponseValue;
26359 // void UpdateFee_set_channel_id(struct LDKUpdateFee *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26361 export function UpdateFee_set_channel_id(this_ptr: bigint, val: number): void {
26362 if(!isWasmInitialized) {
26363 throw new Error("initializeWasm() must be awaited first!");
26365 const nativeResponseValue = wasm.TS_UpdateFee_set_channel_id(this_ptr, val);
26366 // debug statements here
26368 // uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee *NONNULL_PTR this_ptr);
26370 export function UpdateFee_get_feerate_per_kw(this_ptr: bigint): number {
26371 if(!isWasmInitialized) {
26372 throw new Error("initializeWasm() must be awaited first!");
26374 const nativeResponseValue = wasm.TS_UpdateFee_get_feerate_per_kw(this_ptr);
26375 return nativeResponseValue;
26377 // void UpdateFee_set_feerate_per_kw(struct LDKUpdateFee *NONNULL_PTR this_ptr, uint32_t val);
26379 export function UpdateFee_set_feerate_per_kw(this_ptr: bigint, val: number): void {
26380 if(!isWasmInitialized) {
26381 throw new Error("initializeWasm() must be awaited first!");
26383 const nativeResponseValue = wasm.TS_UpdateFee_set_feerate_per_kw(this_ptr, val);
26384 // debug statements here
26386 // MUST_USE_RES struct LDKUpdateFee UpdateFee_new(struct LDKThirtyTwoBytes channel_id_arg, uint32_t feerate_per_kw_arg);
26388 export function UpdateFee_new(channel_id_arg: number, feerate_per_kw_arg: number): bigint {
26389 if(!isWasmInitialized) {
26390 throw new Error("initializeWasm() must be awaited first!");
26392 const nativeResponseValue = wasm.TS_UpdateFee_new(channel_id_arg, feerate_per_kw_arg);
26393 return nativeResponseValue;
26395 // uint64_t UpdateFee_clone_ptr(LDKUpdateFee *NONNULL_PTR arg);
26397 export function UpdateFee_clone_ptr(arg: bigint): bigint {
26398 if(!isWasmInitialized) {
26399 throw new Error("initializeWasm() must be awaited first!");
26401 const nativeResponseValue = wasm.TS_UpdateFee_clone_ptr(arg);
26402 return nativeResponseValue;
26404 // struct LDKUpdateFee UpdateFee_clone(const struct LDKUpdateFee *NONNULL_PTR orig);
26406 export function UpdateFee_clone(orig: bigint): bigint {
26407 if(!isWasmInitialized) {
26408 throw new Error("initializeWasm() must be awaited first!");
26410 const nativeResponseValue = wasm.TS_UpdateFee_clone(orig);
26411 return nativeResponseValue;
26413 // bool UpdateFee_eq(const struct LDKUpdateFee *NONNULL_PTR a, const struct LDKUpdateFee *NONNULL_PTR b);
26415 export function UpdateFee_eq(a: bigint, b: bigint): boolean {
26416 if(!isWasmInitialized) {
26417 throw new Error("initializeWasm() must be awaited first!");
26419 const nativeResponseValue = wasm.TS_UpdateFee_eq(a, b);
26420 return nativeResponseValue;
26422 // void DataLossProtect_free(struct LDKDataLossProtect this_obj);
26424 export function DataLossProtect_free(this_obj: bigint): void {
26425 if(!isWasmInitialized) {
26426 throw new Error("initializeWasm() must be awaited first!");
26428 const nativeResponseValue = wasm.TS_DataLossProtect_free(this_obj);
26429 // debug statements here
26431 // const uint8_t (*DataLossProtect_get_your_last_per_commitment_secret(const struct LDKDataLossProtect *NONNULL_PTR this_ptr))[32];
26433 export function DataLossProtect_get_your_last_per_commitment_secret(this_ptr: bigint): number {
26434 if(!isWasmInitialized) {
26435 throw new Error("initializeWasm() must be awaited first!");
26437 const nativeResponseValue = wasm.TS_DataLossProtect_get_your_last_per_commitment_secret(this_ptr);
26438 return nativeResponseValue;
26440 // void DataLossProtect_set_your_last_per_commitment_secret(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26442 export function DataLossProtect_set_your_last_per_commitment_secret(this_ptr: bigint, val: number): void {
26443 if(!isWasmInitialized) {
26444 throw new Error("initializeWasm() must be awaited first!");
26446 const nativeResponseValue = wasm.TS_DataLossProtect_set_your_last_per_commitment_secret(this_ptr, val);
26447 // debug statements here
26449 // struct LDKPublicKey DataLossProtect_get_my_current_per_commitment_point(const struct LDKDataLossProtect *NONNULL_PTR this_ptr);
26451 export function DataLossProtect_get_my_current_per_commitment_point(this_ptr: bigint): number {
26452 if(!isWasmInitialized) {
26453 throw new Error("initializeWasm() must be awaited first!");
26455 const nativeResponseValue = wasm.TS_DataLossProtect_get_my_current_per_commitment_point(this_ptr);
26456 return nativeResponseValue;
26458 // void DataLossProtect_set_my_current_per_commitment_point(struct LDKDataLossProtect *NONNULL_PTR this_ptr, struct LDKPublicKey val);
26460 export function DataLossProtect_set_my_current_per_commitment_point(this_ptr: bigint, val: number): void {
26461 if(!isWasmInitialized) {
26462 throw new Error("initializeWasm() must be awaited first!");
26464 const nativeResponseValue = wasm.TS_DataLossProtect_set_my_current_per_commitment_point(this_ptr, val);
26465 // debug statements here
26467 // MUST_USE_RES struct LDKDataLossProtect DataLossProtect_new(struct LDKThirtyTwoBytes your_last_per_commitment_secret_arg, struct LDKPublicKey my_current_per_commitment_point_arg);
26469 export function DataLossProtect_new(your_last_per_commitment_secret_arg: number, my_current_per_commitment_point_arg: number): bigint {
26470 if(!isWasmInitialized) {
26471 throw new Error("initializeWasm() must be awaited first!");
26473 const nativeResponseValue = wasm.TS_DataLossProtect_new(your_last_per_commitment_secret_arg, my_current_per_commitment_point_arg);
26474 return nativeResponseValue;
26476 // uint64_t DataLossProtect_clone_ptr(LDKDataLossProtect *NONNULL_PTR arg);
26478 export function DataLossProtect_clone_ptr(arg: bigint): bigint {
26479 if(!isWasmInitialized) {
26480 throw new Error("initializeWasm() must be awaited first!");
26482 const nativeResponseValue = wasm.TS_DataLossProtect_clone_ptr(arg);
26483 return nativeResponseValue;
26485 // struct LDKDataLossProtect DataLossProtect_clone(const struct LDKDataLossProtect *NONNULL_PTR orig);
26487 export function DataLossProtect_clone(orig: bigint): bigint {
26488 if(!isWasmInitialized) {
26489 throw new Error("initializeWasm() must be awaited first!");
26491 const nativeResponseValue = wasm.TS_DataLossProtect_clone(orig);
26492 return nativeResponseValue;
26494 // bool DataLossProtect_eq(const struct LDKDataLossProtect *NONNULL_PTR a, const struct LDKDataLossProtect *NONNULL_PTR b);
26496 export function DataLossProtect_eq(a: bigint, b: bigint): boolean {
26497 if(!isWasmInitialized) {
26498 throw new Error("initializeWasm() must be awaited first!");
26500 const nativeResponseValue = wasm.TS_DataLossProtect_eq(a, b);
26501 return nativeResponseValue;
26503 // void ChannelReestablish_free(struct LDKChannelReestablish this_obj);
26505 export function ChannelReestablish_free(this_obj: bigint): void {
26506 if(!isWasmInitialized) {
26507 throw new Error("initializeWasm() must be awaited first!");
26509 const nativeResponseValue = wasm.TS_ChannelReestablish_free(this_obj);
26510 // debug statements here
26512 // const uint8_t (*ChannelReestablish_get_channel_id(const struct LDKChannelReestablish *NONNULL_PTR this_ptr))[32];
26514 export function ChannelReestablish_get_channel_id(this_ptr: bigint): number {
26515 if(!isWasmInitialized) {
26516 throw new Error("initializeWasm() must be awaited first!");
26518 const nativeResponseValue = wasm.TS_ChannelReestablish_get_channel_id(this_ptr);
26519 return nativeResponseValue;
26521 // void ChannelReestablish_set_channel_id(struct LDKChannelReestablish *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26523 export function ChannelReestablish_set_channel_id(this_ptr: bigint, val: number): void {
26524 if(!isWasmInitialized) {
26525 throw new Error("initializeWasm() must be awaited first!");
26527 const nativeResponseValue = wasm.TS_ChannelReestablish_set_channel_id(this_ptr, val);
26528 // debug statements here
26530 // uint64_t ChannelReestablish_get_next_local_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
26532 export function ChannelReestablish_get_next_local_commitment_number(this_ptr: bigint): bigint {
26533 if(!isWasmInitialized) {
26534 throw new Error("initializeWasm() must be awaited first!");
26536 const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_local_commitment_number(this_ptr);
26537 return nativeResponseValue;
26539 // void ChannelReestablish_set_next_local_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
26541 export function ChannelReestablish_set_next_local_commitment_number(this_ptr: bigint, val: bigint): void {
26542 if(!isWasmInitialized) {
26543 throw new Error("initializeWasm() must be awaited first!");
26545 const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_local_commitment_number(this_ptr, val);
26546 // debug statements here
26548 // uint64_t ChannelReestablish_get_next_remote_commitment_number(const struct LDKChannelReestablish *NONNULL_PTR this_ptr);
26550 export function ChannelReestablish_get_next_remote_commitment_number(this_ptr: bigint): bigint {
26551 if(!isWasmInitialized) {
26552 throw new Error("initializeWasm() must be awaited first!");
26554 const nativeResponseValue = wasm.TS_ChannelReestablish_get_next_remote_commitment_number(this_ptr);
26555 return nativeResponseValue;
26557 // void ChannelReestablish_set_next_remote_commitment_number(struct LDKChannelReestablish *NONNULL_PTR this_ptr, uint64_t val);
26559 export function ChannelReestablish_set_next_remote_commitment_number(this_ptr: bigint, val: bigint): void {
26560 if(!isWasmInitialized) {
26561 throw new Error("initializeWasm() must be awaited first!");
26563 const nativeResponseValue = wasm.TS_ChannelReestablish_set_next_remote_commitment_number(this_ptr, val);
26564 // debug statements here
26566 // uint64_t ChannelReestablish_clone_ptr(LDKChannelReestablish *NONNULL_PTR arg);
26568 export function ChannelReestablish_clone_ptr(arg: bigint): bigint {
26569 if(!isWasmInitialized) {
26570 throw new Error("initializeWasm() must be awaited first!");
26572 const nativeResponseValue = wasm.TS_ChannelReestablish_clone_ptr(arg);
26573 return nativeResponseValue;
26575 // struct LDKChannelReestablish ChannelReestablish_clone(const struct LDKChannelReestablish *NONNULL_PTR orig);
26577 export function ChannelReestablish_clone(orig: bigint): bigint {
26578 if(!isWasmInitialized) {
26579 throw new Error("initializeWasm() must be awaited first!");
26581 const nativeResponseValue = wasm.TS_ChannelReestablish_clone(orig);
26582 return nativeResponseValue;
26584 // bool ChannelReestablish_eq(const struct LDKChannelReestablish *NONNULL_PTR a, const struct LDKChannelReestablish *NONNULL_PTR b);
26586 export function ChannelReestablish_eq(a: bigint, b: bigint): boolean {
26587 if(!isWasmInitialized) {
26588 throw new Error("initializeWasm() must be awaited first!");
26590 const nativeResponseValue = wasm.TS_ChannelReestablish_eq(a, b);
26591 return nativeResponseValue;
26593 // void AnnouncementSignatures_free(struct LDKAnnouncementSignatures this_obj);
26595 export function AnnouncementSignatures_free(this_obj: bigint): void {
26596 if(!isWasmInitialized) {
26597 throw new Error("initializeWasm() must be awaited first!");
26599 const nativeResponseValue = wasm.TS_AnnouncementSignatures_free(this_obj);
26600 // debug statements here
26602 // const uint8_t (*AnnouncementSignatures_get_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr))[32];
26604 export function AnnouncementSignatures_get_channel_id(this_ptr: bigint): number {
26605 if(!isWasmInitialized) {
26606 throw new Error("initializeWasm() must be awaited first!");
26608 const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_channel_id(this_ptr);
26609 return nativeResponseValue;
26611 // void AnnouncementSignatures_set_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
26613 export function AnnouncementSignatures_set_channel_id(this_ptr: bigint, val: number): void {
26614 if(!isWasmInitialized) {
26615 throw new Error("initializeWasm() must be awaited first!");
26617 const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_channel_id(this_ptr, val);
26618 // debug statements here
26620 // uint64_t AnnouncementSignatures_get_short_channel_id(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
26622 export function AnnouncementSignatures_get_short_channel_id(this_ptr: bigint): bigint {
26623 if(!isWasmInitialized) {
26624 throw new Error("initializeWasm() must be awaited first!");
26626 const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_short_channel_id(this_ptr);
26627 return nativeResponseValue;
26629 // void AnnouncementSignatures_set_short_channel_id(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, uint64_t val);
26631 export function AnnouncementSignatures_set_short_channel_id(this_ptr: bigint, val: bigint): void {
26632 if(!isWasmInitialized) {
26633 throw new Error("initializeWasm() must be awaited first!");
26635 const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_short_channel_id(this_ptr, val);
26636 // debug statements here
26638 // struct LDKSignature AnnouncementSignatures_get_node_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
26640 export function AnnouncementSignatures_get_node_signature(this_ptr: bigint): number {
26641 if(!isWasmInitialized) {
26642 throw new Error("initializeWasm() must be awaited first!");
26644 const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_node_signature(this_ptr);
26645 return nativeResponseValue;
26647 // void AnnouncementSignatures_set_node_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
26649 export function AnnouncementSignatures_set_node_signature(this_ptr: bigint, val: number): void {
26650 if(!isWasmInitialized) {
26651 throw new Error("initializeWasm() must be awaited first!");
26653 const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_node_signature(this_ptr, val);
26654 // debug statements here
26656 // struct LDKSignature AnnouncementSignatures_get_bitcoin_signature(const struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr);
26658 export function AnnouncementSignatures_get_bitcoin_signature(this_ptr: bigint): number {
26659 if(!isWasmInitialized) {
26660 throw new Error("initializeWasm() must be awaited first!");
26662 const nativeResponseValue = wasm.TS_AnnouncementSignatures_get_bitcoin_signature(this_ptr);
26663 return nativeResponseValue;
26665 // void AnnouncementSignatures_set_bitcoin_signature(struct LDKAnnouncementSignatures *NONNULL_PTR this_ptr, struct LDKSignature val);
26667 export function AnnouncementSignatures_set_bitcoin_signature(this_ptr: bigint, val: number): void {
26668 if(!isWasmInitialized) {
26669 throw new Error("initializeWasm() must be awaited first!");
26671 const nativeResponseValue = wasm.TS_AnnouncementSignatures_set_bitcoin_signature(this_ptr, val);
26672 // debug statements here
26674 // MUST_USE_RES struct LDKAnnouncementSignatures AnnouncementSignatures_new(struct LDKThirtyTwoBytes channel_id_arg, uint64_t short_channel_id_arg, struct LDKSignature node_signature_arg, struct LDKSignature bitcoin_signature_arg);
26676 export function AnnouncementSignatures_new(channel_id_arg: number, short_channel_id_arg: bigint, node_signature_arg: number, bitcoin_signature_arg: number): bigint {
26677 if(!isWasmInitialized) {
26678 throw new Error("initializeWasm() must be awaited first!");
26680 const nativeResponseValue = wasm.TS_AnnouncementSignatures_new(channel_id_arg, short_channel_id_arg, node_signature_arg, bitcoin_signature_arg);
26681 return nativeResponseValue;
26683 // uint64_t AnnouncementSignatures_clone_ptr(LDKAnnouncementSignatures *NONNULL_PTR arg);
26685 export function AnnouncementSignatures_clone_ptr(arg: bigint): bigint {
26686 if(!isWasmInitialized) {
26687 throw new Error("initializeWasm() must be awaited first!");
26689 const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone_ptr(arg);
26690 return nativeResponseValue;
26692 // struct LDKAnnouncementSignatures AnnouncementSignatures_clone(const struct LDKAnnouncementSignatures *NONNULL_PTR orig);
26694 export function AnnouncementSignatures_clone(orig: bigint): bigint {
26695 if(!isWasmInitialized) {
26696 throw new Error("initializeWasm() must be awaited first!");
26698 const nativeResponseValue = wasm.TS_AnnouncementSignatures_clone(orig);
26699 return nativeResponseValue;
26701 // bool AnnouncementSignatures_eq(const struct LDKAnnouncementSignatures *NONNULL_PTR a, const struct LDKAnnouncementSignatures *NONNULL_PTR b);
26703 export function AnnouncementSignatures_eq(a: bigint, b: bigint): boolean {
26704 if(!isWasmInitialized) {
26705 throw new Error("initializeWasm() must be awaited first!");
26707 const nativeResponseValue = wasm.TS_AnnouncementSignatures_eq(a, b);
26708 return nativeResponseValue;
26710 // void NetAddress_free(struct LDKNetAddress this_ptr);
26712 export function NetAddress_free(this_ptr: bigint): void {
26713 if(!isWasmInitialized) {
26714 throw new Error("initializeWasm() must be awaited first!");
26716 const nativeResponseValue = wasm.TS_NetAddress_free(this_ptr);
26717 // debug statements here
26719 // uint64_t NetAddress_clone_ptr(LDKNetAddress *NONNULL_PTR arg);
26721 export function NetAddress_clone_ptr(arg: bigint): bigint {
26722 if(!isWasmInitialized) {
26723 throw new Error("initializeWasm() must be awaited first!");
26725 const nativeResponseValue = wasm.TS_NetAddress_clone_ptr(arg);
26726 return nativeResponseValue;
26728 // struct LDKNetAddress NetAddress_clone(const struct LDKNetAddress *NONNULL_PTR orig);
26730 export function NetAddress_clone(orig: bigint): bigint {
26731 if(!isWasmInitialized) {
26732 throw new Error("initializeWasm() must be awaited first!");
26734 const nativeResponseValue = wasm.TS_NetAddress_clone(orig);
26735 return nativeResponseValue;
26737 // struct LDKNetAddress NetAddress_ipv4(struct LDKFourBytes addr, uint16_t port);
26739 export function NetAddress_ipv4(addr: number, port: number): bigint {
26740 if(!isWasmInitialized) {
26741 throw new Error("initializeWasm() must be awaited first!");
26743 const nativeResponseValue = wasm.TS_NetAddress_ipv4(addr, port);
26744 return nativeResponseValue;
26746 // struct LDKNetAddress NetAddress_ipv6(struct LDKSixteenBytes addr, uint16_t port);
26748 export function NetAddress_ipv6(addr: number, port: number): bigint {
26749 if(!isWasmInitialized) {
26750 throw new Error("initializeWasm() must be awaited first!");
26752 const nativeResponseValue = wasm.TS_NetAddress_ipv6(addr, port);
26753 return nativeResponseValue;
26755 // struct LDKNetAddress NetAddress_onion_v2(struct LDKTwelveBytes a);
26757 export function NetAddress_onion_v2(a: number): bigint {
26758 if(!isWasmInitialized) {
26759 throw new Error("initializeWasm() must be awaited first!");
26761 const nativeResponseValue = wasm.TS_NetAddress_onion_v2(a);
26762 return nativeResponseValue;
26764 // struct LDKNetAddress NetAddress_onion_v3(struct LDKThirtyTwoBytes ed25519_pubkey, uint16_t checksum, uint8_t version, uint16_t port);
26766 export function NetAddress_onion_v3(ed25519_pubkey: number, checksum: number, version: number, port: number): bigint {
26767 if(!isWasmInitialized) {
26768 throw new Error("initializeWasm() must be awaited first!");
26770 const nativeResponseValue = wasm.TS_NetAddress_onion_v3(ed25519_pubkey, checksum, version, port);
26771 return nativeResponseValue;
26773 // struct LDKNetAddress NetAddress_hostname(struct LDKHostname hostname, uint16_t port);
26775 export function NetAddress_hostname(hostname: bigint, port: number): bigint {
26776 if(!isWasmInitialized) {
26777 throw new Error("initializeWasm() must be awaited first!");
26779 const nativeResponseValue = wasm.TS_NetAddress_hostname(hostname, port);
26780 return nativeResponseValue;
26782 // bool NetAddress_eq(const struct LDKNetAddress *NONNULL_PTR a, const struct LDKNetAddress *NONNULL_PTR b);
26784 export function NetAddress_eq(a: bigint, b: bigint): boolean {
26785 if(!isWasmInitialized) {
26786 throw new Error("initializeWasm() must be awaited first!");
26788 const nativeResponseValue = wasm.TS_NetAddress_eq(a, b);
26789 return nativeResponseValue;
26791 // struct LDKCVec_u8Z NetAddress_write(const struct LDKNetAddress *NONNULL_PTR obj);
26793 export function NetAddress_write(obj: bigint): number {
26794 if(!isWasmInitialized) {
26795 throw new Error("initializeWasm() must be awaited first!");
26797 const nativeResponseValue = wasm.TS_NetAddress_write(obj);
26798 return nativeResponseValue;
26800 // struct LDKCResult_NetAddressDecodeErrorZ NetAddress_read(struct LDKu8slice ser);
26802 export function NetAddress_read(ser: number): bigint {
26803 if(!isWasmInitialized) {
26804 throw new Error("initializeWasm() must be awaited first!");
26806 const nativeResponseValue = wasm.TS_NetAddress_read(ser);
26807 return nativeResponseValue;
26809 // void UnsignedGossipMessage_free(struct LDKUnsignedGossipMessage this_ptr);
26811 export function UnsignedGossipMessage_free(this_ptr: bigint): void {
26812 if(!isWasmInitialized) {
26813 throw new Error("initializeWasm() must be awaited first!");
26815 const nativeResponseValue = wasm.TS_UnsignedGossipMessage_free(this_ptr);
26816 // debug statements here
26818 // uint64_t UnsignedGossipMessage_clone_ptr(LDKUnsignedGossipMessage *NONNULL_PTR arg);
26820 export function UnsignedGossipMessage_clone_ptr(arg: bigint): bigint {
26821 if(!isWasmInitialized) {
26822 throw new Error("initializeWasm() must be awaited first!");
26824 const nativeResponseValue = wasm.TS_UnsignedGossipMessage_clone_ptr(arg);
26825 return nativeResponseValue;
26827 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_clone(const struct LDKUnsignedGossipMessage *NONNULL_PTR orig);
26829 export function UnsignedGossipMessage_clone(orig: bigint): bigint {
26830 if(!isWasmInitialized) {
26831 throw new Error("initializeWasm() must be awaited first!");
26833 const nativeResponseValue = wasm.TS_UnsignedGossipMessage_clone(orig);
26834 return nativeResponseValue;
26836 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_announcement(struct LDKUnsignedChannelAnnouncement a);
26838 export function UnsignedGossipMessage_channel_announcement(a: bigint): bigint {
26839 if(!isWasmInitialized) {
26840 throw new Error("initializeWasm() must be awaited first!");
26842 const nativeResponseValue = wasm.TS_UnsignedGossipMessage_channel_announcement(a);
26843 return nativeResponseValue;
26845 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_channel_update(struct LDKUnsignedChannelUpdate a);
26847 export function UnsignedGossipMessage_channel_update(a: bigint): bigint {
26848 if(!isWasmInitialized) {
26849 throw new Error("initializeWasm() must be awaited first!");
26851 const nativeResponseValue = wasm.TS_UnsignedGossipMessage_channel_update(a);
26852 return nativeResponseValue;
26854 // struct LDKUnsignedGossipMessage UnsignedGossipMessage_node_announcement(struct LDKUnsignedNodeAnnouncement a);
26856 export function UnsignedGossipMessage_node_announcement(a: bigint): bigint {
26857 if(!isWasmInitialized) {
26858 throw new Error("initializeWasm() must be awaited first!");
26860 const nativeResponseValue = wasm.TS_UnsignedGossipMessage_node_announcement(a);
26861 return nativeResponseValue;
26863 // struct LDKCVec_u8Z UnsignedGossipMessage_write(const struct LDKUnsignedGossipMessage *NONNULL_PTR obj);
26865 export function UnsignedGossipMessage_write(obj: bigint): number {
26866 if(!isWasmInitialized) {
26867 throw new Error("initializeWasm() must be awaited first!");
26869 const nativeResponseValue = wasm.TS_UnsignedGossipMessage_write(obj);
26870 return nativeResponseValue;
26872 // void UnsignedNodeAnnouncement_free(struct LDKUnsignedNodeAnnouncement this_obj);
26874 export function UnsignedNodeAnnouncement_free(this_obj: bigint): void {
26875 if(!isWasmInitialized) {
26876 throw new Error("initializeWasm() must be awaited first!");
26878 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_free(this_obj);
26879 // debug statements here
26881 // struct LDKNodeFeatures UnsignedNodeAnnouncement_get_features(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
26883 export function UnsignedNodeAnnouncement_get_features(this_ptr: bigint): bigint {
26884 if(!isWasmInitialized) {
26885 throw new Error("initializeWasm() must be awaited first!");
26887 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_features(this_ptr);
26888 return nativeResponseValue;
26890 // void UnsignedNodeAnnouncement_set_features(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
26892 export function UnsignedNodeAnnouncement_set_features(this_ptr: bigint, val: bigint): void {
26893 if(!isWasmInitialized) {
26894 throw new Error("initializeWasm() must be awaited first!");
26896 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_features(this_ptr, val);
26897 // debug statements here
26899 // uint32_t UnsignedNodeAnnouncement_get_timestamp(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
26901 export function UnsignedNodeAnnouncement_get_timestamp(this_ptr: bigint): number {
26902 if(!isWasmInitialized) {
26903 throw new Error("initializeWasm() must be awaited first!");
26905 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_timestamp(this_ptr);
26906 return nativeResponseValue;
26908 // void UnsignedNodeAnnouncement_set_timestamp(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, uint32_t val);
26910 export function UnsignedNodeAnnouncement_set_timestamp(this_ptr: bigint, val: number): void {
26911 if(!isWasmInitialized) {
26912 throw new Error("initializeWasm() must be awaited first!");
26914 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_timestamp(this_ptr, val);
26915 // debug statements here
26917 // struct LDKNodeId UnsignedNodeAnnouncement_get_node_id(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
26919 export function UnsignedNodeAnnouncement_get_node_id(this_ptr: bigint): bigint {
26920 if(!isWasmInitialized) {
26921 throw new Error("initializeWasm() must be awaited first!");
26923 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_node_id(this_ptr);
26924 return nativeResponseValue;
26926 // void UnsignedNodeAnnouncement_set_node_id(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
26928 export function UnsignedNodeAnnouncement_set_node_id(this_ptr: bigint, val: bigint): void {
26929 if(!isWasmInitialized) {
26930 throw new Error("initializeWasm() must be awaited first!");
26932 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_node_id(this_ptr, val);
26933 // debug statements here
26935 // const uint8_t (*UnsignedNodeAnnouncement_get_rgb(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr))[3];
26937 export function UnsignedNodeAnnouncement_get_rgb(this_ptr: bigint): number {
26938 if(!isWasmInitialized) {
26939 throw new Error("initializeWasm() must be awaited first!");
26941 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_rgb(this_ptr);
26942 return nativeResponseValue;
26944 // void UnsignedNodeAnnouncement_set_rgb(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
26946 export function UnsignedNodeAnnouncement_set_rgb(this_ptr: bigint, val: number): void {
26947 if(!isWasmInitialized) {
26948 throw new Error("initializeWasm() must be awaited first!");
26950 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_rgb(this_ptr, val);
26951 // debug statements here
26953 // struct LDKNodeAlias UnsignedNodeAnnouncement_get_alias(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
26955 export function UnsignedNodeAnnouncement_get_alias(this_ptr: bigint): bigint {
26956 if(!isWasmInitialized) {
26957 throw new Error("initializeWasm() must be awaited first!");
26959 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_alias(this_ptr);
26960 return nativeResponseValue;
26962 // void UnsignedNodeAnnouncement_set_alias(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
26964 export function UnsignedNodeAnnouncement_set_alias(this_ptr: bigint, val: bigint): void {
26965 if(!isWasmInitialized) {
26966 throw new Error("initializeWasm() must be awaited first!");
26968 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_alias(this_ptr, val);
26969 // debug statements here
26971 // struct LDKCVec_NetAddressZ UnsignedNodeAnnouncement_get_addresses(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr);
26973 export function UnsignedNodeAnnouncement_get_addresses(this_ptr: bigint): number {
26974 if(!isWasmInitialized) {
26975 throw new Error("initializeWasm() must be awaited first!");
26977 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_get_addresses(this_ptr);
26978 return nativeResponseValue;
26980 // void UnsignedNodeAnnouncement_set_addresses(struct LDKUnsignedNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKCVec_NetAddressZ val);
26982 export function UnsignedNodeAnnouncement_set_addresses(this_ptr: bigint, val: number): void {
26983 if(!isWasmInitialized) {
26984 throw new Error("initializeWasm() must be awaited first!");
26986 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_set_addresses(this_ptr, val);
26987 // debug statements here
26989 // uint64_t UnsignedNodeAnnouncement_clone_ptr(LDKUnsignedNodeAnnouncement *NONNULL_PTR arg);
26991 export function UnsignedNodeAnnouncement_clone_ptr(arg: bigint): bigint {
26992 if(!isWasmInitialized) {
26993 throw new Error("initializeWasm() must be awaited first!");
26995 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone_ptr(arg);
26996 return nativeResponseValue;
26998 // struct LDKUnsignedNodeAnnouncement UnsignedNodeAnnouncement_clone(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR orig);
27000 export function UnsignedNodeAnnouncement_clone(orig: bigint): bigint {
27001 if(!isWasmInitialized) {
27002 throw new Error("initializeWasm() must be awaited first!");
27004 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_clone(orig);
27005 return nativeResponseValue;
27007 // bool UnsignedNodeAnnouncement_eq(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR a, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR b);
27009 export function UnsignedNodeAnnouncement_eq(a: bigint, b: bigint): boolean {
27010 if(!isWasmInitialized) {
27011 throw new Error("initializeWasm() must be awaited first!");
27013 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_eq(a, b);
27014 return nativeResponseValue;
27016 // void NodeAnnouncement_free(struct LDKNodeAnnouncement this_obj);
27018 export function NodeAnnouncement_free(this_obj: bigint): void {
27019 if(!isWasmInitialized) {
27020 throw new Error("initializeWasm() must be awaited first!");
27022 const nativeResponseValue = wasm.TS_NodeAnnouncement_free(this_obj);
27023 // debug statements here
27025 // struct LDKSignature NodeAnnouncement_get_signature(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
27027 export function NodeAnnouncement_get_signature(this_ptr: bigint): number {
27028 if(!isWasmInitialized) {
27029 throw new Error("initializeWasm() must be awaited first!");
27031 const nativeResponseValue = wasm.TS_NodeAnnouncement_get_signature(this_ptr);
27032 return nativeResponseValue;
27034 // void NodeAnnouncement_set_signature(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
27036 export function NodeAnnouncement_set_signature(this_ptr: bigint, val: number): void {
27037 if(!isWasmInitialized) {
27038 throw new Error("initializeWasm() must be awaited first!");
27040 const nativeResponseValue = wasm.TS_NodeAnnouncement_set_signature(this_ptr, val);
27041 // debug statements here
27043 // struct LDKUnsignedNodeAnnouncement NodeAnnouncement_get_contents(const struct LDKNodeAnnouncement *NONNULL_PTR this_ptr);
27045 export function NodeAnnouncement_get_contents(this_ptr: bigint): bigint {
27046 if(!isWasmInitialized) {
27047 throw new Error("initializeWasm() must be awaited first!");
27049 const nativeResponseValue = wasm.TS_NodeAnnouncement_get_contents(this_ptr);
27050 return nativeResponseValue;
27052 // void NodeAnnouncement_set_contents(struct LDKNodeAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedNodeAnnouncement val);
27054 export function NodeAnnouncement_set_contents(this_ptr: bigint, val: bigint): void {
27055 if(!isWasmInitialized) {
27056 throw new Error("initializeWasm() must be awaited first!");
27058 const nativeResponseValue = wasm.TS_NodeAnnouncement_set_contents(this_ptr, val);
27059 // debug statements here
27061 // MUST_USE_RES struct LDKNodeAnnouncement NodeAnnouncement_new(struct LDKSignature signature_arg, struct LDKUnsignedNodeAnnouncement contents_arg);
27063 export function NodeAnnouncement_new(signature_arg: number, contents_arg: bigint): bigint {
27064 if(!isWasmInitialized) {
27065 throw new Error("initializeWasm() must be awaited first!");
27067 const nativeResponseValue = wasm.TS_NodeAnnouncement_new(signature_arg, contents_arg);
27068 return nativeResponseValue;
27070 // uint64_t NodeAnnouncement_clone_ptr(LDKNodeAnnouncement *NONNULL_PTR arg);
27072 export function NodeAnnouncement_clone_ptr(arg: bigint): bigint {
27073 if(!isWasmInitialized) {
27074 throw new Error("initializeWasm() must be awaited first!");
27076 const nativeResponseValue = wasm.TS_NodeAnnouncement_clone_ptr(arg);
27077 return nativeResponseValue;
27079 // struct LDKNodeAnnouncement NodeAnnouncement_clone(const struct LDKNodeAnnouncement *NONNULL_PTR orig);
27081 export function NodeAnnouncement_clone(orig: bigint): bigint {
27082 if(!isWasmInitialized) {
27083 throw new Error("initializeWasm() must be awaited first!");
27085 const nativeResponseValue = wasm.TS_NodeAnnouncement_clone(orig);
27086 return nativeResponseValue;
27088 // bool NodeAnnouncement_eq(const struct LDKNodeAnnouncement *NONNULL_PTR a, const struct LDKNodeAnnouncement *NONNULL_PTR b);
27090 export function NodeAnnouncement_eq(a: bigint, b: bigint): boolean {
27091 if(!isWasmInitialized) {
27092 throw new Error("initializeWasm() must be awaited first!");
27094 const nativeResponseValue = wasm.TS_NodeAnnouncement_eq(a, b);
27095 return nativeResponseValue;
27097 // void UnsignedChannelAnnouncement_free(struct LDKUnsignedChannelAnnouncement this_obj);
27099 export function UnsignedChannelAnnouncement_free(this_obj: bigint): void {
27100 if(!isWasmInitialized) {
27101 throw new Error("initializeWasm() must be awaited first!");
27103 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_free(this_obj);
27104 // debug statements here
27106 // struct LDKChannelFeatures UnsignedChannelAnnouncement_get_features(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
27108 export function UnsignedChannelAnnouncement_get_features(this_ptr: bigint): bigint {
27109 if(!isWasmInitialized) {
27110 throw new Error("initializeWasm() must be awaited first!");
27112 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_features(this_ptr);
27113 return nativeResponseValue;
27115 // void UnsignedChannelAnnouncement_set_features(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
27117 export function UnsignedChannelAnnouncement_set_features(this_ptr: bigint, val: bigint): void {
27118 if(!isWasmInitialized) {
27119 throw new Error("initializeWasm() must be awaited first!");
27121 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_features(this_ptr, val);
27122 // debug statements here
27124 // const uint8_t (*UnsignedChannelAnnouncement_get_chain_hash(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr))[32];
27126 export function UnsignedChannelAnnouncement_get_chain_hash(this_ptr: bigint): number {
27127 if(!isWasmInitialized) {
27128 throw new Error("initializeWasm() must be awaited first!");
27130 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_chain_hash(this_ptr);
27131 return nativeResponseValue;
27133 // void UnsignedChannelAnnouncement_set_chain_hash(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
27135 export function UnsignedChannelAnnouncement_set_chain_hash(this_ptr: bigint, val: number): void {
27136 if(!isWasmInitialized) {
27137 throw new Error("initializeWasm() must be awaited first!");
27139 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_chain_hash(this_ptr, val);
27140 // debug statements here
27142 // uint64_t UnsignedChannelAnnouncement_get_short_channel_id(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
27144 export function UnsignedChannelAnnouncement_get_short_channel_id(this_ptr: bigint): bigint {
27145 if(!isWasmInitialized) {
27146 throw new Error("initializeWasm() must be awaited first!");
27148 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_short_channel_id(this_ptr);
27149 return nativeResponseValue;
27151 // void UnsignedChannelAnnouncement_set_short_channel_id(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, uint64_t val);
27153 export function UnsignedChannelAnnouncement_set_short_channel_id(this_ptr: bigint, val: bigint): void {
27154 if(!isWasmInitialized) {
27155 throw new Error("initializeWasm() must be awaited first!");
27157 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_short_channel_id(this_ptr, val);
27158 // debug statements here
27160 // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
27162 export function UnsignedChannelAnnouncement_get_node_id_1(this_ptr: bigint): bigint {
27163 if(!isWasmInitialized) {
27164 throw new Error("initializeWasm() must be awaited first!");
27166 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_1(this_ptr);
27167 return nativeResponseValue;
27169 // void UnsignedChannelAnnouncement_set_node_id_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
27171 export function UnsignedChannelAnnouncement_set_node_id_1(this_ptr: bigint, val: bigint): void {
27172 if(!isWasmInitialized) {
27173 throw new Error("initializeWasm() must be awaited first!");
27175 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_1(this_ptr, val);
27176 // debug statements here
27178 // struct LDKNodeId UnsignedChannelAnnouncement_get_node_id_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
27180 export function UnsignedChannelAnnouncement_get_node_id_2(this_ptr: bigint): bigint {
27181 if(!isWasmInitialized) {
27182 throw new Error("initializeWasm() must be awaited first!");
27184 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_node_id_2(this_ptr);
27185 return nativeResponseValue;
27187 // void UnsignedChannelAnnouncement_set_node_id_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
27189 export function UnsignedChannelAnnouncement_set_node_id_2(this_ptr: bigint, val: bigint): void {
27190 if(!isWasmInitialized) {
27191 throw new Error("initializeWasm() must be awaited first!");
27193 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_node_id_2(this_ptr, val);
27194 // debug statements here
27196 // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_1(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
27198 export function UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr: bigint): bigint {
27199 if(!isWasmInitialized) {
27200 throw new Error("initializeWasm() must be awaited first!");
27202 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_1(this_ptr);
27203 return nativeResponseValue;
27205 // void UnsignedChannelAnnouncement_set_bitcoin_key_1(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
27207 export function UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr: bigint, val: bigint): void {
27208 if(!isWasmInitialized) {
27209 throw new Error("initializeWasm() must be awaited first!");
27211 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_1(this_ptr, val);
27212 // debug statements here
27214 // struct LDKNodeId UnsignedChannelAnnouncement_get_bitcoin_key_2(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr);
27216 export function UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr: bigint): bigint {
27217 if(!isWasmInitialized) {
27218 throw new Error("initializeWasm() must be awaited first!");
27220 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_get_bitcoin_key_2(this_ptr);
27221 return nativeResponseValue;
27223 // void UnsignedChannelAnnouncement_set_bitcoin_key_2(struct LDKUnsignedChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKNodeId val);
27225 export function UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr: bigint, val: bigint): void {
27226 if(!isWasmInitialized) {
27227 throw new Error("initializeWasm() must be awaited first!");
27229 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_set_bitcoin_key_2(this_ptr, val);
27230 // debug statements here
27232 // uint64_t UnsignedChannelAnnouncement_clone_ptr(LDKUnsignedChannelAnnouncement *NONNULL_PTR arg);
27234 export function UnsignedChannelAnnouncement_clone_ptr(arg: bigint): bigint {
27235 if(!isWasmInitialized) {
27236 throw new Error("initializeWasm() must be awaited first!");
27238 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone_ptr(arg);
27239 return nativeResponseValue;
27241 // struct LDKUnsignedChannelAnnouncement UnsignedChannelAnnouncement_clone(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR orig);
27243 export function UnsignedChannelAnnouncement_clone(orig: bigint): bigint {
27244 if(!isWasmInitialized) {
27245 throw new Error("initializeWasm() must be awaited first!");
27247 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_clone(orig);
27248 return nativeResponseValue;
27250 // bool UnsignedChannelAnnouncement_eq(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR a, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR b);
27252 export function UnsignedChannelAnnouncement_eq(a: bigint, b: bigint): boolean {
27253 if(!isWasmInitialized) {
27254 throw new Error("initializeWasm() must be awaited first!");
27256 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_eq(a, b);
27257 return nativeResponseValue;
27259 // void ChannelAnnouncement_free(struct LDKChannelAnnouncement this_obj);
27261 export function ChannelAnnouncement_free(this_obj: bigint): void {
27262 if(!isWasmInitialized) {
27263 throw new Error("initializeWasm() must be awaited first!");
27265 const nativeResponseValue = wasm.TS_ChannelAnnouncement_free(this_obj);
27266 // debug statements here
27268 // struct LDKSignature ChannelAnnouncement_get_node_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
27270 export function ChannelAnnouncement_get_node_signature_1(this_ptr: bigint): number {
27271 if(!isWasmInitialized) {
27272 throw new Error("initializeWasm() must be awaited first!");
27274 const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_1(this_ptr);
27275 return nativeResponseValue;
27277 // void ChannelAnnouncement_set_node_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
27279 export function ChannelAnnouncement_set_node_signature_1(this_ptr: bigint, val: number): void {
27280 if(!isWasmInitialized) {
27281 throw new Error("initializeWasm() must be awaited first!");
27283 const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_1(this_ptr, val);
27284 // debug statements here
27286 // struct LDKSignature ChannelAnnouncement_get_node_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
27288 export function ChannelAnnouncement_get_node_signature_2(this_ptr: bigint): number {
27289 if(!isWasmInitialized) {
27290 throw new Error("initializeWasm() must be awaited first!");
27292 const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_node_signature_2(this_ptr);
27293 return nativeResponseValue;
27295 // void ChannelAnnouncement_set_node_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
27297 export function ChannelAnnouncement_set_node_signature_2(this_ptr: bigint, val: number): void {
27298 if(!isWasmInitialized) {
27299 throw new Error("initializeWasm() must be awaited first!");
27301 const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_node_signature_2(this_ptr, val);
27302 // debug statements here
27304 // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_1(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
27306 export function ChannelAnnouncement_get_bitcoin_signature_1(this_ptr: bigint): number {
27307 if(!isWasmInitialized) {
27308 throw new Error("initializeWasm() must be awaited first!");
27310 const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_1(this_ptr);
27311 return nativeResponseValue;
27313 // void ChannelAnnouncement_set_bitcoin_signature_1(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
27315 export function ChannelAnnouncement_set_bitcoin_signature_1(this_ptr: bigint, val: number): void {
27316 if(!isWasmInitialized) {
27317 throw new Error("initializeWasm() must be awaited first!");
27319 const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_1(this_ptr, val);
27320 // debug statements here
27322 // struct LDKSignature ChannelAnnouncement_get_bitcoin_signature_2(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
27324 export function ChannelAnnouncement_get_bitcoin_signature_2(this_ptr: bigint): number {
27325 if(!isWasmInitialized) {
27326 throw new Error("initializeWasm() must be awaited first!");
27328 const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_bitcoin_signature_2(this_ptr);
27329 return nativeResponseValue;
27331 // void ChannelAnnouncement_set_bitcoin_signature_2(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKSignature val);
27333 export function ChannelAnnouncement_set_bitcoin_signature_2(this_ptr: bigint, val: number): void {
27334 if(!isWasmInitialized) {
27335 throw new Error("initializeWasm() must be awaited first!");
27337 const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_bitcoin_signature_2(this_ptr, val);
27338 // debug statements here
27340 // struct LDKUnsignedChannelAnnouncement ChannelAnnouncement_get_contents(const struct LDKChannelAnnouncement *NONNULL_PTR this_ptr);
27342 export function ChannelAnnouncement_get_contents(this_ptr: bigint): bigint {
27343 if(!isWasmInitialized) {
27344 throw new Error("initializeWasm() must be awaited first!");
27346 const nativeResponseValue = wasm.TS_ChannelAnnouncement_get_contents(this_ptr);
27347 return nativeResponseValue;
27349 // void ChannelAnnouncement_set_contents(struct LDKChannelAnnouncement *NONNULL_PTR this_ptr, struct LDKUnsignedChannelAnnouncement val);
27351 export function ChannelAnnouncement_set_contents(this_ptr: bigint, val: bigint): void {
27352 if(!isWasmInitialized) {
27353 throw new Error("initializeWasm() must be awaited first!");
27355 const nativeResponseValue = wasm.TS_ChannelAnnouncement_set_contents(this_ptr, val);
27356 // debug statements here
27358 // MUST_USE_RES struct LDKChannelAnnouncement ChannelAnnouncement_new(struct LDKSignature node_signature_1_arg, struct LDKSignature node_signature_2_arg, struct LDKSignature bitcoin_signature_1_arg, struct LDKSignature bitcoin_signature_2_arg, struct LDKUnsignedChannelAnnouncement contents_arg);
27360 export function ChannelAnnouncement_new(node_signature_1_arg: number, node_signature_2_arg: number, bitcoin_signature_1_arg: number, bitcoin_signature_2_arg: number, contents_arg: bigint): bigint {
27361 if(!isWasmInitialized) {
27362 throw new Error("initializeWasm() must be awaited first!");
27364 const nativeResponseValue = wasm.TS_ChannelAnnouncement_new(node_signature_1_arg, node_signature_2_arg, bitcoin_signature_1_arg, bitcoin_signature_2_arg, contents_arg);
27365 return nativeResponseValue;
27367 // uint64_t ChannelAnnouncement_clone_ptr(LDKChannelAnnouncement *NONNULL_PTR arg);
27369 export function ChannelAnnouncement_clone_ptr(arg: bigint): bigint {
27370 if(!isWasmInitialized) {
27371 throw new Error("initializeWasm() must be awaited first!");
27373 const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone_ptr(arg);
27374 return nativeResponseValue;
27376 // struct LDKChannelAnnouncement ChannelAnnouncement_clone(const struct LDKChannelAnnouncement *NONNULL_PTR orig);
27378 export function ChannelAnnouncement_clone(orig: bigint): bigint {
27379 if(!isWasmInitialized) {
27380 throw new Error("initializeWasm() must be awaited first!");
27382 const nativeResponseValue = wasm.TS_ChannelAnnouncement_clone(orig);
27383 return nativeResponseValue;
27385 // bool ChannelAnnouncement_eq(const struct LDKChannelAnnouncement *NONNULL_PTR a, const struct LDKChannelAnnouncement *NONNULL_PTR b);
27387 export function ChannelAnnouncement_eq(a: bigint, b: bigint): boolean {
27388 if(!isWasmInitialized) {
27389 throw new Error("initializeWasm() must be awaited first!");
27391 const nativeResponseValue = wasm.TS_ChannelAnnouncement_eq(a, b);
27392 return nativeResponseValue;
27394 // void UnsignedChannelUpdate_free(struct LDKUnsignedChannelUpdate this_obj);
27396 export function UnsignedChannelUpdate_free(this_obj: bigint): void {
27397 if(!isWasmInitialized) {
27398 throw new Error("initializeWasm() must be awaited first!");
27400 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_free(this_obj);
27401 // debug statements here
27403 // const uint8_t (*UnsignedChannelUpdate_get_chain_hash(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr))[32];
27405 export function UnsignedChannelUpdate_get_chain_hash(this_ptr: bigint): number {
27406 if(!isWasmInitialized) {
27407 throw new Error("initializeWasm() must be awaited first!");
27409 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_chain_hash(this_ptr);
27410 return nativeResponseValue;
27412 // void UnsignedChannelUpdate_set_chain_hash(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
27414 export function UnsignedChannelUpdate_set_chain_hash(this_ptr: bigint, val: number): void {
27415 if(!isWasmInitialized) {
27416 throw new Error("initializeWasm() must be awaited first!");
27418 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_chain_hash(this_ptr, val);
27419 // debug statements here
27421 // uint64_t UnsignedChannelUpdate_get_short_channel_id(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
27423 export function UnsignedChannelUpdate_get_short_channel_id(this_ptr: bigint): bigint {
27424 if(!isWasmInitialized) {
27425 throw new Error("initializeWasm() must be awaited first!");
27427 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_short_channel_id(this_ptr);
27428 return nativeResponseValue;
27430 // void UnsignedChannelUpdate_set_short_channel_id(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
27432 export function UnsignedChannelUpdate_set_short_channel_id(this_ptr: bigint, val: bigint): void {
27433 if(!isWasmInitialized) {
27434 throw new Error("initializeWasm() must be awaited first!");
27436 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_short_channel_id(this_ptr, val);
27437 // debug statements here
27439 // uint32_t UnsignedChannelUpdate_get_timestamp(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
27441 export function UnsignedChannelUpdate_get_timestamp(this_ptr: bigint): number {
27442 if(!isWasmInitialized) {
27443 throw new Error("initializeWasm() must be awaited first!");
27445 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_timestamp(this_ptr);
27446 return nativeResponseValue;
27448 // void UnsignedChannelUpdate_set_timestamp(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
27450 export function UnsignedChannelUpdate_set_timestamp(this_ptr: bigint, val: number): void {
27451 if(!isWasmInitialized) {
27452 throw new Error("initializeWasm() must be awaited first!");
27454 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_timestamp(this_ptr, val);
27455 // debug statements here
27457 // uint8_t UnsignedChannelUpdate_get_flags(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
27459 export function UnsignedChannelUpdate_get_flags(this_ptr: bigint): number {
27460 if(!isWasmInitialized) {
27461 throw new Error("initializeWasm() must be awaited first!");
27463 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_flags(this_ptr);
27464 return nativeResponseValue;
27466 // void UnsignedChannelUpdate_set_flags(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint8_t val);
27468 export function UnsignedChannelUpdate_set_flags(this_ptr: bigint, val: number): void {
27469 if(!isWasmInitialized) {
27470 throw new Error("initializeWasm() must be awaited first!");
27472 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_flags(this_ptr, val);
27473 // debug statements here
27475 // uint16_t UnsignedChannelUpdate_get_cltv_expiry_delta(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
27477 export function UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr: bigint): number {
27478 if(!isWasmInitialized) {
27479 throw new Error("initializeWasm() must be awaited first!");
27481 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr);
27482 return nativeResponseValue;
27484 // void UnsignedChannelUpdate_set_cltv_expiry_delta(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint16_t val);
27486 export function UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
27487 if(!isWasmInitialized) {
27488 throw new Error("initializeWasm() must be awaited first!");
27490 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr, val);
27491 // debug statements here
27493 // uint64_t UnsignedChannelUpdate_get_htlc_minimum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
27495 export function UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr: bigint): bigint {
27496 if(!isWasmInitialized) {
27497 throw new Error("initializeWasm() must be awaited first!");
27499 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr);
27500 return nativeResponseValue;
27502 // void UnsignedChannelUpdate_set_htlc_minimum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
27504 export function UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
27505 if(!isWasmInitialized) {
27506 throw new Error("initializeWasm() must be awaited first!");
27508 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr, val);
27509 // debug statements here
27511 // uint64_t UnsignedChannelUpdate_get_htlc_maximum_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
27513 export function UnsignedChannelUpdate_get_htlc_maximum_msat(this_ptr: bigint): bigint {
27514 if(!isWasmInitialized) {
27515 throw new Error("initializeWasm() must be awaited first!");
27517 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_htlc_maximum_msat(this_ptr);
27518 return nativeResponseValue;
27520 // void UnsignedChannelUpdate_set_htlc_maximum_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint64_t val);
27522 export function UnsignedChannelUpdate_set_htlc_maximum_msat(this_ptr: bigint, val: bigint): void {
27523 if(!isWasmInitialized) {
27524 throw new Error("initializeWasm() must be awaited first!");
27526 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_htlc_maximum_msat(this_ptr, val);
27527 // debug statements here
27529 // uint32_t UnsignedChannelUpdate_get_fee_base_msat(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
27531 export function UnsignedChannelUpdate_get_fee_base_msat(this_ptr: bigint): number {
27532 if(!isWasmInitialized) {
27533 throw new Error("initializeWasm() must be awaited first!");
27535 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_base_msat(this_ptr);
27536 return nativeResponseValue;
27538 // void UnsignedChannelUpdate_set_fee_base_msat(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
27540 export function UnsignedChannelUpdate_set_fee_base_msat(this_ptr: bigint, val: number): void {
27541 if(!isWasmInitialized) {
27542 throw new Error("initializeWasm() must be awaited first!");
27544 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_base_msat(this_ptr, val);
27545 // debug statements here
27547 // uint32_t UnsignedChannelUpdate_get_fee_proportional_millionths(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
27549 export function UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr: bigint): number {
27550 if(!isWasmInitialized) {
27551 throw new Error("initializeWasm() must be awaited first!");
27553 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr);
27554 return nativeResponseValue;
27556 // void UnsignedChannelUpdate_set_fee_proportional_millionths(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, uint32_t val);
27558 export function UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr: bigint, val: number): void {
27559 if(!isWasmInitialized) {
27560 throw new Error("initializeWasm() must be awaited first!");
27562 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr, val);
27563 // debug statements here
27565 // struct LDKCVec_u8Z UnsignedChannelUpdate_get_excess_data(const struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr);
27567 export function UnsignedChannelUpdate_get_excess_data(this_ptr: bigint): number {
27568 if(!isWasmInitialized) {
27569 throw new Error("initializeWasm() must be awaited first!");
27571 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_get_excess_data(this_ptr);
27572 return nativeResponseValue;
27574 // void UnsignedChannelUpdate_set_excess_data(struct LDKUnsignedChannelUpdate *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
27576 export function UnsignedChannelUpdate_set_excess_data(this_ptr: bigint, val: number): void {
27577 if(!isWasmInitialized) {
27578 throw new Error("initializeWasm() must be awaited first!");
27580 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_set_excess_data(this_ptr, val);
27581 // debug statements here
27583 // MUST_USE_RES struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_new(struct LDKThirtyTwoBytes chain_hash_arg, uint64_t short_channel_id_arg, uint32_t timestamp_arg, uint8_t flags_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, uint64_t htlc_maximum_msat_arg, uint32_t fee_base_msat_arg, uint32_t fee_proportional_millionths_arg, struct LDKCVec_u8Z excess_data_arg);
27585 export function UnsignedChannelUpdate_new(chain_hash_arg: number, short_channel_id_arg: bigint, timestamp_arg: number, flags_arg: number, cltv_expiry_delta_arg: number, htlc_minimum_msat_arg: bigint, htlc_maximum_msat_arg: bigint, fee_base_msat_arg: number, fee_proportional_millionths_arg: number, excess_data_arg: number): bigint {
27586 if(!isWasmInitialized) {
27587 throw new Error("initializeWasm() must be awaited first!");
27589 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_new(chain_hash_arg, short_channel_id_arg, timestamp_arg, flags_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, fee_base_msat_arg, fee_proportional_millionths_arg, excess_data_arg);
27590 return nativeResponseValue;
27592 // uint64_t UnsignedChannelUpdate_clone_ptr(LDKUnsignedChannelUpdate *NONNULL_PTR arg);
27594 export function UnsignedChannelUpdate_clone_ptr(arg: bigint): bigint {
27595 if(!isWasmInitialized) {
27596 throw new Error("initializeWasm() must be awaited first!");
27598 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone_ptr(arg);
27599 return nativeResponseValue;
27601 // struct LDKUnsignedChannelUpdate UnsignedChannelUpdate_clone(const struct LDKUnsignedChannelUpdate *NONNULL_PTR orig);
27603 export function UnsignedChannelUpdate_clone(orig: bigint): bigint {
27604 if(!isWasmInitialized) {
27605 throw new Error("initializeWasm() must be awaited first!");
27607 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_clone(orig);
27608 return nativeResponseValue;
27610 // bool UnsignedChannelUpdate_eq(const struct LDKUnsignedChannelUpdate *NONNULL_PTR a, const struct LDKUnsignedChannelUpdate *NONNULL_PTR b);
27612 export function UnsignedChannelUpdate_eq(a: bigint, b: bigint): boolean {
27613 if(!isWasmInitialized) {
27614 throw new Error("initializeWasm() must be awaited first!");
27616 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_eq(a, b);
27617 return nativeResponseValue;
27619 // void ChannelUpdate_free(struct LDKChannelUpdate this_obj);
27621 export function ChannelUpdate_free(this_obj: bigint): void {
27622 if(!isWasmInitialized) {
27623 throw new Error("initializeWasm() must be awaited first!");
27625 const nativeResponseValue = wasm.TS_ChannelUpdate_free(this_obj);
27626 // debug statements here
27628 // struct LDKSignature ChannelUpdate_get_signature(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
27630 export function ChannelUpdate_get_signature(this_ptr: bigint): number {
27631 if(!isWasmInitialized) {
27632 throw new Error("initializeWasm() must be awaited first!");
27634 const nativeResponseValue = wasm.TS_ChannelUpdate_get_signature(this_ptr);
27635 return nativeResponseValue;
27637 // void ChannelUpdate_set_signature(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKSignature val);
27639 export function ChannelUpdate_set_signature(this_ptr: bigint, val: number): void {
27640 if(!isWasmInitialized) {
27641 throw new Error("initializeWasm() must be awaited first!");
27643 const nativeResponseValue = wasm.TS_ChannelUpdate_set_signature(this_ptr, val);
27644 // debug statements here
27646 // struct LDKUnsignedChannelUpdate ChannelUpdate_get_contents(const struct LDKChannelUpdate *NONNULL_PTR this_ptr);
27648 export function ChannelUpdate_get_contents(this_ptr: bigint): bigint {
27649 if(!isWasmInitialized) {
27650 throw new Error("initializeWasm() must be awaited first!");
27652 const nativeResponseValue = wasm.TS_ChannelUpdate_get_contents(this_ptr);
27653 return nativeResponseValue;
27655 // void ChannelUpdate_set_contents(struct LDKChannelUpdate *NONNULL_PTR this_ptr, struct LDKUnsignedChannelUpdate val);
27657 export function ChannelUpdate_set_contents(this_ptr: bigint, val: bigint): void {
27658 if(!isWasmInitialized) {
27659 throw new Error("initializeWasm() must be awaited first!");
27661 const nativeResponseValue = wasm.TS_ChannelUpdate_set_contents(this_ptr, val);
27662 // debug statements here
27664 // MUST_USE_RES struct LDKChannelUpdate ChannelUpdate_new(struct LDKSignature signature_arg, struct LDKUnsignedChannelUpdate contents_arg);
27666 export function ChannelUpdate_new(signature_arg: number, contents_arg: bigint): bigint {
27667 if(!isWasmInitialized) {
27668 throw new Error("initializeWasm() must be awaited first!");
27670 const nativeResponseValue = wasm.TS_ChannelUpdate_new(signature_arg, contents_arg);
27671 return nativeResponseValue;
27673 // uint64_t ChannelUpdate_clone_ptr(LDKChannelUpdate *NONNULL_PTR arg);
27675 export function ChannelUpdate_clone_ptr(arg: bigint): bigint {
27676 if(!isWasmInitialized) {
27677 throw new Error("initializeWasm() must be awaited first!");
27679 const nativeResponseValue = wasm.TS_ChannelUpdate_clone_ptr(arg);
27680 return nativeResponseValue;
27682 // struct LDKChannelUpdate ChannelUpdate_clone(const struct LDKChannelUpdate *NONNULL_PTR orig);
27684 export function ChannelUpdate_clone(orig: bigint): bigint {
27685 if(!isWasmInitialized) {
27686 throw new Error("initializeWasm() must be awaited first!");
27688 const nativeResponseValue = wasm.TS_ChannelUpdate_clone(orig);
27689 return nativeResponseValue;
27691 // bool ChannelUpdate_eq(const struct LDKChannelUpdate *NONNULL_PTR a, const struct LDKChannelUpdate *NONNULL_PTR b);
27693 export function ChannelUpdate_eq(a: bigint, b: bigint): boolean {
27694 if(!isWasmInitialized) {
27695 throw new Error("initializeWasm() must be awaited first!");
27697 const nativeResponseValue = wasm.TS_ChannelUpdate_eq(a, b);
27698 return nativeResponseValue;
27700 // void QueryChannelRange_free(struct LDKQueryChannelRange this_obj);
27702 export function QueryChannelRange_free(this_obj: bigint): void {
27703 if(!isWasmInitialized) {
27704 throw new Error("initializeWasm() must be awaited first!");
27706 const nativeResponseValue = wasm.TS_QueryChannelRange_free(this_obj);
27707 // debug statements here
27709 // const uint8_t (*QueryChannelRange_get_chain_hash(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr))[32];
27711 export function QueryChannelRange_get_chain_hash(this_ptr: bigint): number {
27712 if(!isWasmInitialized) {
27713 throw new Error("initializeWasm() must be awaited first!");
27715 const nativeResponseValue = wasm.TS_QueryChannelRange_get_chain_hash(this_ptr);
27716 return nativeResponseValue;
27718 // void QueryChannelRange_set_chain_hash(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
27720 export function QueryChannelRange_set_chain_hash(this_ptr: bigint, val: number): void {
27721 if(!isWasmInitialized) {
27722 throw new Error("initializeWasm() must be awaited first!");
27724 const nativeResponseValue = wasm.TS_QueryChannelRange_set_chain_hash(this_ptr, val);
27725 // debug statements here
27727 // uint32_t QueryChannelRange_get_first_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
27729 export function QueryChannelRange_get_first_blocknum(this_ptr: bigint): number {
27730 if(!isWasmInitialized) {
27731 throw new Error("initializeWasm() must be awaited first!");
27733 const nativeResponseValue = wasm.TS_QueryChannelRange_get_first_blocknum(this_ptr);
27734 return nativeResponseValue;
27736 // void QueryChannelRange_set_first_blocknum(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
27738 export function QueryChannelRange_set_first_blocknum(this_ptr: bigint, val: number): void {
27739 if(!isWasmInitialized) {
27740 throw new Error("initializeWasm() must be awaited first!");
27742 const nativeResponseValue = wasm.TS_QueryChannelRange_set_first_blocknum(this_ptr, val);
27743 // debug statements here
27745 // uint32_t QueryChannelRange_get_number_of_blocks(const struct LDKQueryChannelRange *NONNULL_PTR this_ptr);
27747 export function QueryChannelRange_get_number_of_blocks(this_ptr: bigint): number {
27748 if(!isWasmInitialized) {
27749 throw new Error("initializeWasm() must be awaited first!");
27751 const nativeResponseValue = wasm.TS_QueryChannelRange_get_number_of_blocks(this_ptr);
27752 return nativeResponseValue;
27754 // void QueryChannelRange_set_number_of_blocks(struct LDKQueryChannelRange *NONNULL_PTR this_ptr, uint32_t val);
27756 export function QueryChannelRange_set_number_of_blocks(this_ptr: bigint, val: number): void {
27757 if(!isWasmInitialized) {
27758 throw new Error("initializeWasm() must be awaited first!");
27760 const nativeResponseValue = wasm.TS_QueryChannelRange_set_number_of_blocks(this_ptr, val);
27761 // debug statements here
27763 // MUST_USE_RES struct LDKQueryChannelRange QueryChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg);
27765 export function QueryChannelRange_new(chain_hash_arg: number, first_blocknum_arg: number, number_of_blocks_arg: number): bigint {
27766 if(!isWasmInitialized) {
27767 throw new Error("initializeWasm() must be awaited first!");
27769 const nativeResponseValue = wasm.TS_QueryChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg);
27770 return nativeResponseValue;
27772 // uint64_t QueryChannelRange_clone_ptr(LDKQueryChannelRange *NONNULL_PTR arg);
27774 export function QueryChannelRange_clone_ptr(arg: bigint): bigint {
27775 if(!isWasmInitialized) {
27776 throw new Error("initializeWasm() must be awaited first!");
27778 const nativeResponseValue = wasm.TS_QueryChannelRange_clone_ptr(arg);
27779 return nativeResponseValue;
27781 // struct LDKQueryChannelRange QueryChannelRange_clone(const struct LDKQueryChannelRange *NONNULL_PTR orig);
27783 export function QueryChannelRange_clone(orig: bigint): bigint {
27784 if(!isWasmInitialized) {
27785 throw new Error("initializeWasm() must be awaited first!");
27787 const nativeResponseValue = wasm.TS_QueryChannelRange_clone(orig);
27788 return nativeResponseValue;
27790 // bool QueryChannelRange_eq(const struct LDKQueryChannelRange *NONNULL_PTR a, const struct LDKQueryChannelRange *NONNULL_PTR b);
27792 export function QueryChannelRange_eq(a: bigint, b: bigint): boolean {
27793 if(!isWasmInitialized) {
27794 throw new Error("initializeWasm() must be awaited first!");
27796 const nativeResponseValue = wasm.TS_QueryChannelRange_eq(a, b);
27797 return nativeResponseValue;
27799 // void ReplyChannelRange_free(struct LDKReplyChannelRange this_obj);
27801 export function ReplyChannelRange_free(this_obj: bigint): void {
27802 if(!isWasmInitialized) {
27803 throw new Error("initializeWasm() must be awaited first!");
27805 const nativeResponseValue = wasm.TS_ReplyChannelRange_free(this_obj);
27806 // debug statements here
27808 // const uint8_t (*ReplyChannelRange_get_chain_hash(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr))[32];
27810 export function ReplyChannelRange_get_chain_hash(this_ptr: bigint): number {
27811 if(!isWasmInitialized) {
27812 throw new Error("initializeWasm() must be awaited first!");
27814 const nativeResponseValue = wasm.TS_ReplyChannelRange_get_chain_hash(this_ptr);
27815 return nativeResponseValue;
27817 // void ReplyChannelRange_set_chain_hash(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
27819 export function ReplyChannelRange_set_chain_hash(this_ptr: bigint, val: number): void {
27820 if(!isWasmInitialized) {
27821 throw new Error("initializeWasm() must be awaited first!");
27823 const nativeResponseValue = wasm.TS_ReplyChannelRange_set_chain_hash(this_ptr, val);
27824 // debug statements here
27826 // uint32_t ReplyChannelRange_get_first_blocknum(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
27828 export function ReplyChannelRange_get_first_blocknum(this_ptr: bigint): number {
27829 if(!isWasmInitialized) {
27830 throw new Error("initializeWasm() must be awaited first!");
27832 const nativeResponseValue = wasm.TS_ReplyChannelRange_get_first_blocknum(this_ptr);
27833 return nativeResponseValue;
27835 // void ReplyChannelRange_set_first_blocknum(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
27837 export function ReplyChannelRange_set_first_blocknum(this_ptr: bigint, val: number): void {
27838 if(!isWasmInitialized) {
27839 throw new Error("initializeWasm() must be awaited first!");
27841 const nativeResponseValue = wasm.TS_ReplyChannelRange_set_first_blocknum(this_ptr, val);
27842 // debug statements here
27844 // uint32_t ReplyChannelRange_get_number_of_blocks(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
27846 export function ReplyChannelRange_get_number_of_blocks(this_ptr: bigint): number {
27847 if(!isWasmInitialized) {
27848 throw new Error("initializeWasm() must be awaited first!");
27850 const nativeResponseValue = wasm.TS_ReplyChannelRange_get_number_of_blocks(this_ptr);
27851 return nativeResponseValue;
27853 // void ReplyChannelRange_set_number_of_blocks(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, uint32_t val);
27855 export function ReplyChannelRange_set_number_of_blocks(this_ptr: bigint, val: number): void {
27856 if(!isWasmInitialized) {
27857 throw new Error("initializeWasm() must be awaited first!");
27859 const nativeResponseValue = wasm.TS_ReplyChannelRange_set_number_of_blocks(this_ptr, val);
27860 // debug statements here
27862 // bool ReplyChannelRange_get_sync_complete(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
27864 export function ReplyChannelRange_get_sync_complete(this_ptr: bigint): boolean {
27865 if(!isWasmInitialized) {
27866 throw new Error("initializeWasm() must be awaited first!");
27868 const nativeResponseValue = wasm.TS_ReplyChannelRange_get_sync_complete(this_ptr);
27869 return nativeResponseValue;
27871 // void ReplyChannelRange_set_sync_complete(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, bool val);
27873 export function ReplyChannelRange_set_sync_complete(this_ptr: bigint, val: boolean): void {
27874 if(!isWasmInitialized) {
27875 throw new Error("initializeWasm() must be awaited first!");
27877 const nativeResponseValue = wasm.TS_ReplyChannelRange_set_sync_complete(this_ptr, val);
27878 // debug statements here
27880 // struct LDKCVec_u64Z ReplyChannelRange_get_short_channel_ids(const struct LDKReplyChannelRange *NONNULL_PTR this_ptr);
27882 export function ReplyChannelRange_get_short_channel_ids(this_ptr: bigint): number {
27883 if(!isWasmInitialized) {
27884 throw new Error("initializeWasm() must be awaited first!");
27886 const nativeResponseValue = wasm.TS_ReplyChannelRange_get_short_channel_ids(this_ptr);
27887 return nativeResponseValue;
27889 // void ReplyChannelRange_set_short_channel_ids(struct LDKReplyChannelRange *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
27891 export function ReplyChannelRange_set_short_channel_ids(this_ptr: bigint, val: number): void {
27892 if(!isWasmInitialized) {
27893 throw new Error("initializeWasm() must be awaited first!");
27895 const nativeResponseValue = wasm.TS_ReplyChannelRange_set_short_channel_ids(this_ptr, val);
27896 // debug statements here
27898 // MUST_USE_RES struct LDKReplyChannelRange ReplyChannelRange_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_blocknum_arg, uint32_t number_of_blocks_arg, bool sync_complete_arg, struct LDKCVec_u64Z short_channel_ids_arg);
27900 export function ReplyChannelRange_new(chain_hash_arg: number, first_blocknum_arg: number, number_of_blocks_arg: number, sync_complete_arg: boolean, short_channel_ids_arg: number): bigint {
27901 if(!isWasmInitialized) {
27902 throw new Error("initializeWasm() must be awaited first!");
27904 const nativeResponseValue = wasm.TS_ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, sync_complete_arg, short_channel_ids_arg);
27905 return nativeResponseValue;
27907 // uint64_t ReplyChannelRange_clone_ptr(LDKReplyChannelRange *NONNULL_PTR arg);
27909 export function ReplyChannelRange_clone_ptr(arg: bigint): bigint {
27910 if(!isWasmInitialized) {
27911 throw new Error("initializeWasm() must be awaited first!");
27913 const nativeResponseValue = wasm.TS_ReplyChannelRange_clone_ptr(arg);
27914 return nativeResponseValue;
27916 // struct LDKReplyChannelRange ReplyChannelRange_clone(const struct LDKReplyChannelRange *NONNULL_PTR orig);
27918 export function ReplyChannelRange_clone(orig: bigint): bigint {
27919 if(!isWasmInitialized) {
27920 throw new Error("initializeWasm() must be awaited first!");
27922 const nativeResponseValue = wasm.TS_ReplyChannelRange_clone(orig);
27923 return nativeResponseValue;
27925 // bool ReplyChannelRange_eq(const struct LDKReplyChannelRange *NONNULL_PTR a, const struct LDKReplyChannelRange *NONNULL_PTR b);
27927 export function ReplyChannelRange_eq(a: bigint, b: bigint): boolean {
27928 if(!isWasmInitialized) {
27929 throw new Error("initializeWasm() must be awaited first!");
27931 const nativeResponseValue = wasm.TS_ReplyChannelRange_eq(a, b);
27932 return nativeResponseValue;
27934 // void QueryShortChannelIds_free(struct LDKQueryShortChannelIds this_obj);
27936 export function QueryShortChannelIds_free(this_obj: bigint): void {
27937 if(!isWasmInitialized) {
27938 throw new Error("initializeWasm() must be awaited first!");
27940 const nativeResponseValue = wasm.TS_QueryShortChannelIds_free(this_obj);
27941 // debug statements here
27943 // const uint8_t (*QueryShortChannelIds_get_chain_hash(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr))[32];
27945 export function QueryShortChannelIds_get_chain_hash(this_ptr: bigint): number {
27946 if(!isWasmInitialized) {
27947 throw new Error("initializeWasm() must be awaited first!");
27949 const nativeResponseValue = wasm.TS_QueryShortChannelIds_get_chain_hash(this_ptr);
27950 return nativeResponseValue;
27952 // void QueryShortChannelIds_set_chain_hash(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
27954 export function QueryShortChannelIds_set_chain_hash(this_ptr: bigint, val: number): void {
27955 if(!isWasmInitialized) {
27956 throw new Error("initializeWasm() must be awaited first!");
27958 const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_chain_hash(this_ptr, val);
27959 // debug statements here
27961 // struct LDKCVec_u64Z QueryShortChannelIds_get_short_channel_ids(const struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr);
27963 export function QueryShortChannelIds_get_short_channel_ids(this_ptr: bigint): number {
27964 if(!isWasmInitialized) {
27965 throw new Error("initializeWasm() must be awaited first!");
27967 const nativeResponseValue = wasm.TS_QueryShortChannelIds_get_short_channel_ids(this_ptr);
27968 return nativeResponseValue;
27970 // void QueryShortChannelIds_set_short_channel_ids(struct LDKQueryShortChannelIds *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
27972 export function QueryShortChannelIds_set_short_channel_ids(this_ptr: bigint, val: number): void {
27973 if(!isWasmInitialized) {
27974 throw new Error("initializeWasm() must be awaited first!");
27976 const nativeResponseValue = wasm.TS_QueryShortChannelIds_set_short_channel_ids(this_ptr, val);
27977 // debug statements here
27979 // MUST_USE_RES struct LDKQueryShortChannelIds QueryShortChannelIds_new(struct LDKThirtyTwoBytes chain_hash_arg, struct LDKCVec_u64Z short_channel_ids_arg);
27981 export function QueryShortChannelIds_new(chain_hash_arg: number, short_channel_ids_arg: number): bigint {
27982 if(!isWasmInitialized) {
27983 throw new Error("initializeWasm() must be awaited first!");
27985 const nativeResponseValue = wasm.TS_QueryShortChannelIds_new(chain_hash_arg, short_channel_ids_arg);
27986 return nativeResponseValue;
27988 // uint64_t QueryShortChannelIds_clone_ptr(LDKQueryShortChannelIds *NONNULL_PTR arg);
27990 export function QueryShortChannelIds_clone_ptr(arg: bigint): bigint {
27991 if(!isWasmInitialized) {
27992 throw new Error("initializeWasm() must be awaited first!");
27994 const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone_ptr(arg);
27995 return nativeResponseValue;
27997 // struct LDKQueryShortChannelIds QueryShortChannelIds_clone(const struct LDKQueryShortChannelIds *NONNULL_PTR orig);
27999 export function QueryShortChannelIds_clone(orig: bigint): bigint {
28000 if(!isWasmInitialized) {
28001 throw new Error("initializeWasm() must be awaited first!");
28003 const nativeResponseValue = wasm.TS_QueryShortChannelIds_clone(orig);
28004 return nativeResponseValue;
28006 // bool QueryShortChannelIds_eq(const struct LDKQueryShortChannelIds *NONNULL_PTR a, const struct LDKQueryShortChannelIds *NONNULL_PTR b);
28008 export function QueryShortChannelIds_eq(a: bigint, b: bigint): boolean {
28009 if(!isWasmInitialized) {
28010 throw new Error("initializeWasm() must be awaited first!");
28012 const nativeResponseValue = wasm.TS_QueryShortChannelIds_eq(a, b);
28013 return nativeResponseValue;
28015 // void ReplyShortChannelIdsEnd_free(struct LDKReplyShortChannelIdsEnd this_obj);
28017 export function ReplyShortChannelIdsEnd_free(this_obj: bigint): void {
28018 if(!isWasmInitialized) {
28019 throw new Error("initializeWasm() must be awaited first!");
28021 const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_free(this_obj);
28022 // debug statements here
28024 // const uint8_t (*ReplyShortChannelIdsEnd_get_chain_hash(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr))[32];
28026 export function ReplyShortChannelIdsEnd_get_chain_hash(this_ptr: bigint): number {
28027 if(!isWasmInitialized) {
28028 throw new Error("initializeWasm() must be awaited first!");
28030 const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_chain_hash(this_ptr);
28031 return nativeResponseValue;
28033 // void ReplyShortChannelIdsEnd_set_chain_hash(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
28035 export function ReplyShortChannelIdsEnd_set_chain_hash(this_ptr: bigint, val: number): void {
28036 if(!isWasmInitialized) {
28037 throw new Error("initializeWasm() must be awaited first!");
28039 const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_chain_hash(this_ptr, val);
28040 // debug statements here
28042 // bool ReplyShortChannelIdsEnd_get_full_information(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr);
28044 export function ReplyShortChannelIdsEnd_get_full_information(this_ptr: bigint): boolean {
28045 if(!isWasmInitialized) {
28046 throw new Error("initializeWasm() must be awaited first!");
28048 const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_get_full_information(this_ptr);
28049 return nativeResponseValue;
28051 // void ReplyShortChannelIdsEnd_set_full_information(struct LDKReplyShortChannelIdsEnd *NONNULL_PTR this_ptr, bool val);
28053 export function ReplyShortChannelIdsEnd_set_full_information(this_ptr: bigint, val: boolean): void {
28054 if(!isWasmInitialized) {
28055 throw new Error("initializeWasm() must be awaited first!");
28057 const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_set_full_information(this_ptr, val);
28058 // debug statements here
28060 // MUST_USE_RES struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_new(struct LDKThirtyTwoBytes chain_hash_arg, bool full_information_arg);
28062 export function ReplyShortChannelIdsEnd_new(chain_hash_arg: number, full_information_arg: boolean): bigint {
28063 if(!isWasmInitialized) {
28064 throw new Error("initializeWasm() must be awaited first!");
28066 const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg);
28067 return nativeResponseValue;
28069 // uint64_t ReplyShortChannelIdsEnd_clone_ptr(LDKReplyShortChannelIdsEnd *NONNULL_PTR arg);
28071 export function ReplyShortChannelIdsEnd_clone_ptr(arg: bigint): bigint {
28072 if(!isWasmInitialized) {
28073 throw new Error("initializeWasm() must be awaited first!");
28075 const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone_ptr(arg);
28076 return nativeResponseValue;
28078 // struct LDKReplyShortChannelIdsEnd ReplyShortChannelIdsEnd_clone(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR orig);
28080 export function ReplyShortChannelIdsEnd_clone(orig: bigint): bigint {
28081 if(!isWasmInitialized) {
28082 throw new Error("initializeWasm() must be awaited first!");
28084 const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_clone(orig);
28085 return nativeResponseValue;
28087 // bool ReplyShortChannelIdsEnd_eq(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR a, const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR b);
28089 export function ReplyShortChannelIdsEnd_eq(a: bigint, b: bigint): boolean {
28090 if(!isWasmInitialized) {
28091 throw new Error("initializeWasm() must be awaited first!");
28093 const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_eq(a, b);
28094 return nativeResponseValue;
28096 // void GossipTimestampFilter_free(struct LDKGossipTimestampFilter this_obj);
28098 export function GossipTimestampFilter_free(this_obj: bigint): void {
28099 if(!isWasmInitialized) {
28100 throw new Error("initializeWasm() must be awaited first!");
28102 const nativeResponseValue = wasm.TS_GossipTimestampFilter_free(this_obj);
28103 // debug statements here
28105 // const uint8_t (*GossipTimestampFilter_get_chain_hash(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr))[32];
28107 export function GossipTimestampFilter_get_chain_hash(this_ptr: bigint): number {
28108 if(!isWasmInitialized) {
28109 throw new Error("initializeWasm() must be awaited first!");
28111 const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_chain_hash(this_ptr);
28112 return nativeResponseValue;
28114 // void GossipTimestampFilter_set_chain_hash(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
28116 export function GossipTimestampFilter_set_chain_hash(this_ptr: bigint, val: number): void {
28117 if(!isWasmInitialized) {
28118 throw new Error("initializeWasm() must be awaited first!");
28120 const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_chain_hash(this_ptr, val);
28121 // debug statements here
28123 // uint32_t GossipTimestampFilter_get_first_timestamp(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
28125 export function GossipTimestampFilter_get_first_timestamp(this_ptr: bigint): number {
28126 if(!isWasmInitialized) {
28127 throw new Error("initializeWasm() must be awaited first!");
28129 const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_first_timestamp(this_ptr);
28130 return nativeResponseValue;
28132 // void GossipTimestampFilter_set_first_timestamp(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
28134 export function GossipTimestampFilter_set_first_timestamp(this_ptr: bigint, val: number): void {
28135 if(!isWasmInitialized) {
28136 throw new Error("initializeWasm() must be awaited first!");
28138 const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_first_timestamp(this_ptr, val);
28139 // debug statements here
28141 // uint32_t GossipTimestampFilter_get_timestamp_range(const struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr);
28143 export function GossipTimestampFilter_get_timestamp_range(this_ptr: bigint): number {
28144 if(!isWasmInitialized) {
28145 throw new Error("initializeWasm() must be awaited first!");
28147 const nativeResponseValue = wasm.TS_GossipTimestampFilter_get_timestamp_range(this_ptr);
28148 return nativeResponseValue;
28150 // void GossipTimestampFilter_set_timestamp_range(struct LDKGossipTimestampFilter *NONNULL_PTR this_ptr, uint32_t val);
28152 export function GossipTimestampFilter_set_timestamp_range(this_ptr: bigint, val: number): void {
28153 if(!isWasmInitialized) {
28154 throw new Error("initializeWasm() must be awaited first!");
28156 const nativeResponseValue = wasm.TS_GossipTimestampFilter_set_timestamp_range(this_ptr, val);
28157 // debug statements here
28159 // MUST_USE_RES struct LDKGossipTimestampFilter GossipTimestampFilter_new(struct LDKThirtyTwoBytes chain_hash_arg, uint32_t first_timestamp_arg, uint32_t timestamp_range_arg);
28161 export function GossipTimestampFilter_new(chain_hash_arg: number, first_timestamp_arg: number, timestamp_range_arg: number): bigint {
28162 if(!isWasmInitialized) {
28163 throw new Error("initializeWasm() must be awaited first!");
28165 const nativeResponseValue = wasm.TS_GossipTimestampFilter_new(chain_hash_arg, first_timestamp_arg, timestamp_range_arg);
28166 return nativeResponseValue;
28168 // uint64_t GossipTimestampFilter_clone_ptr(LDKGossipTimestampFilter *NONNULL_PTR arg);
28170 export function GossipTimestampFilter_clone_ptr(arg: bigint): bigint {
28171 if(!isWasmInitialized) {
28172 throw new Error("initializeWasm() must be awaited first!");
28174 const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone_ptr(arg);
28175 return nativeResponseValue;
28177 // struct LDKGossipTimestampFilter GossipTimestampFilter_clone(const struct LDKGossipTimestampFilter *NONNULL_PTR orig);
28179 export function GossipTimestampFilter_clone(orig: bigint): bigint {
28180 if(!isWasmInitialized) {
28181 throw new Error("initializeWasm() must be awaited first!");
28183 const nativeResponseValue = wasm.TS_GossipTimestampFilter_clone(orig);
28184 return nativeResponseValue;
28186 // bool GossipTimestampFilter_eq(const struct LDKGossipTimestampFilter *NONNULL_PTR a, const struct LDKGossipTimestampFilter *NONNULL_PTR b);
28188 export function GossipTimestampFilter_eq(a: bigint, b: bigint): boolean {
28189 if(!isWasmInitialized) {
28190 throw new Error("initializeWasm() must be awaited first!");
28192 const nativeResponseValue = wasm.TS_GossipTimestampFilter_eq(a, b);
28193 return nativeResponseValue;
28195 // void ErrorAction_free(struct LDKErrorAction this_ptr);
28197 export function ErrorAction_free(this_ptr: bigint): void {
28198 if(!isWasmInitialized) {
28199 throw new Error("initializeWasm() must be awaited first!");
28201 const nativeResponseValue = wasm.TS_ErrorAction_free(this_ptr);
28202 // debug statements here
28204 // uint64_t ErrorAction_clone_ptr(LDKErrorAction *NONNULL_PTR arg);
28206 export function ErrorAction_clone_ptr(arg: bigint): bigint {
28207 if(!isWasmInitialized) {
28208 throw new Error("initializeWasm() must be awaited first!");
28210 const nativeResponseValue = wasm.TS_ErrorAction_clone_ptr(arg);
28211 return nativeResponseValue;
28213 // struct LDKErrorAction ErrorAction_clone(const struct LDKErrorAction *NONNULL_PTR orig);
28215 export function ErrorAction_clone(orig: bigint): bigint {
28216 if(!isWasmInitialized) {
28217 throw new Error("initializeWasm() must be awaited first!");
28219 const nativeResponseValue = wasm.TS_ErrorAction_clone(orig);
28220 return nativeResponseValue;
28222 // struct LDKErrorAction ErrorAction_disconnect_peer(struct LDKErrorMessage msg);
28224 export function ErrorAction_disconnect_peer(msg: bigint): bigint {
28225 if(!isWasmInitialized) {
28226 throw new Error("initializeWasm() must be awaited first!");
28228 const nativeResponseValue = wasm.TS_ErrorAction_disconnect_peer(msg);
28229 return nativeResponseValue;
28231 // struct LDKErrorAction ErrorAction_ignore_error(void);
28233 export function ErrorAction_ignore_error(): bigint {
28234 if(!isWasmInitialized) {
28235 throw new Error("initializeWasm() must be awaited first!");
28237 const nativeResponseValue = wasm.TS_ErrorAction_ignore_error();
28238 return nativeResponseValue;
28240 // struct LDKErrorAction ErrorAction_ignore_and_log(enum LDKLevel a);
28242 export function ErrorAction_ignore_and_log(a: Level): bigint {
28243 if(!isWasmInitialized) {
28244 throw new Error("initializeWasm() must be awaited first!");
28246 const nativeResponseValue = wasm.TS_ErrorAction_ignore_and_log(a);
28247 return nativeResponseValue;
28249 // struct LDKErrorAction ErrorAction_ignore_duplicate_gossip(void);
28251 export function ErrorAction_ignore_duplicate_gossip(): bigint {
28252 if(!isWasmInitialized) {
28253 throw new Error("initializeWasm() must be awaited first!");
28255 const nativeResponseValue = wasm.TS_ErrorAction_ignore_duplicate_gossip();
28256 return nativeResponseValue;
28258 // struct LDKErrorAction ErrorAction_send_error_message(struct LDKErrorMessage msg);
28260 export function ErrorAction_send_error_message(msg: bigint): bigint {
28261 if(!isWasmInitialized) {
28262 throw new Error("initializeWasm() must be awaited first!");
28264 const nativeResponseValue = wasm.TS_ErrorAction_send_error_message(msg);
28265 return nativeResponseValue;
28267 // struct LDKErrorAction ErrorAction_send_warning_message(struct LDKWarningMessage msg, enum LDKLevel log_level);
28269 export function ErrorAction_send_warning_message(msg: bigint, log_level: Level): bigint {
28270 if(!isWasmInitialized) {
28271 throw new Error("initializeWasm() must be awaited first!");
28273 const nativeResponseValue = wasm.TS_ErrorAction_send_warning_message(msg, log_level);
28274 return nativeResponseValue;
28276 // void LightningError_free(struct LDKLightningError this_obj);
28278 export function LightningError_free(this_obj: bigint): void {
28279 if(!isWasmInitialized) {
28280 throw new Error("initializeWasm() must be awaited first!");
28282 const nativeResponseValue = wasm.TS_LightningError_free(this_obj);
28283 // debug statements here
28285 // struct LDKStr LightningError_get_err(const struct LDKLightningError *NONNULL_PTR this_ptr);
28287 export function LightningError_get_err(this_ptr: bigint): number {
28288 if(!isWasmInitialized) {
28289 throw new Error("initializeWasm() must be awaited first!");
28291 const nativeResponseValue = wasm.TS_LightningError_get_err(this_ptr);
28292 return nativeResponseValue;
28294 // void LightningError_set_err(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKStr val);
28296 export function LightningError_set_err(this_ptr: bigint, val: number): void {
28297 if(!isWasmInitialized) {
28298 throw new Error("initializeWasm() must be awaited first!");
28300 const nativeResponseValue = wasm.TS_LightningError_set_err(this_ptr, val);
28301 // debug statements here
28303 // struct LDKErrorAction LightningError_get_action(const struct LDKLightningError *NONNULL_PTR this_ptr);
28305 export function LightningError_get_action(this_ptr: bigint): bigint {
28306 if(!isWasmInitialized) {
28307 throw new Error("initializeWasm() must be awaited first!");
28309 const nativeResponseValue = wasm.TS_LightningError_get_action(this_ptr);
28310 return nativeResponseValue;
28312 // void LightningError_set_action(struct LDKLightningError *NONNULL_PTR this_ptr, struct LDKErrorAction val);
28314 export function LightningError_set_action(this_ptr: bigint, val: bigint): void {
28315 if(!isWasmInitialized) {
28316 throw new Error("initializeWasm() must be awaited first!");
28318 const nativeResponseValue = wasm.TS_LightningError_set_action(this_ptr, val);
28319 // debug statements here
28321 // MUST_USE_RES struct LDKLightningError LightningError_new(struct LDKStr err_arg, struct LDKErrorAction action_arg);
28323 export function LightningError_new(err_arg: number, action_arg: bigint): bigint {
28324 if(!isWasmInitialized) {
28325 throw new Error("initializeWasm() must be awaited first!");
28327 const nativeResponseValue = wasm.TS_LightningError_new(err_arg, action_arg);
28328 return nativeResponseValue;
28330 // uint64_t LightningError_clone_ptr(LDKLightningError *NONNULL_PTR arg);
28332 export function LightningError_clone_ptr(arg: bigint): bigint {
28333 if(!isWasmInitialized) {
28334 throw new Error("initializeWasm() must be awaited first!");
28336 const nativeResponseValue = wasm.TS_LightningError_clone_ptr(arg);
28337 return nativeResponseValue;
28339 // struct LDKLightningError LightningError_clone(const struct LDKLightningError *NONNULL_PTR orig);
28341 export function LightningError_clone(orig: bigint): bigint {
28342 if(!isWasmInitialized) {
28343 throw new Error("initializeWasm() must be awaited first!");
28345 const nativeResponseValue = wasm.TS_LightningError_clone(orig);
28346 return nativeResponseValue;
28348 // void CommitmentUpdate_free(struct LDKCommitmentUpdate this_obj);
28350 export function CommitmentUpdate_free(this_obj: bigint): void {
28351 if(!isWasmInitialized) {
28352 throw new Error("initializeWasm() must be awaited first!");
28354 const nativeResponseValue = wasm.TS_CommitmentUpdate_free(this_obj);
28355 // debug statements here
28357 // struct LDKCVec_UpdateAddHTLCZ CommitmentUpdate_get_update_add_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
28359 export function CommitmentUpdate_get_update_add_htlcs(this_ptr: bigint): number {
28360 if(!isWasmInitialized) {
28361 throw new Error("initializeWasm() must be awaited first!");
28363 const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_add_htlcs(this_ptr);
28364 return nativeResponseValue;
28366 // void CommitmentUpdate_set_update_add_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateAddHTLCZ val);
28368 export function CommitmentUpdate_set_update_add_htlcs(this_ptr: bigint, val: number): void {
28369 if(!isWasmInitialized) {
28370 throw new Error("initializeWasm() must be awaited first!");
28372 const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_add_htlcs(this_ptr, val);
28373 // debug statements here
28375 // struct LDKCVec_UpdateFulfillHTLCZ CommitmentUpdate_get_update_fulfill_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
28377 export function CommitmentUpdate_get_update_fulfill_htlcs(this_ptr: bigint): number {
28378 if(!isWasmInitialized) {
28379 throw new Error("initializeWasm() must be awaited first!");
28381 const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fulfill_htlcs(this_ptr);
28382 return nativeResponseValue;
28384 // void CommitmentUpdate_set_update_fulfill_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFulfillHTLCZ val);
28386 export function CommitmentUpdate_set_update_fulfill_htlcs(this_ptr: bigint, val: number): void {
28387 if(!isWasmInitialized) {
28388 throw new Error("initializeWasm() must be awaited first!");
28390 const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fulfill_htlcs(this_ptr, val);
28391 // debug statements here
28393 // struct LDKCVec_UpdateFailHTLCZ CommitmentUpdate_get_update_fail_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
28395 export function CommitmentUpdate_get_update_fail_htlcs(this_ptr: bigint): number {
28396 if(!isWasmInitialized) {
28397 throw new Error("initializeWasm() must be awaited first!");
28399 const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_htlcs(this_ptr);
28400 return nativeResponseValue;
28402 // void CommitmentUpdate_set_update_fail_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailHTLCZ val);
28404 export function CommitmentUpdate_set_update_fail_htlcs(this_ptr: bigint, val: number): void {
28405 if(!isWasmInitialized) {
28406 throw new Error("initializeWasm() must be awaited first!");
28408 const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_htlcs(this_ptr, val);
28409 // debug statements here
28411 // struct LDKCVec_UpdateFailMalformedHTLCZ CommitmentUpdate_get_update_fail_malformed_htlcs(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
28413 export function CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr: bigint): number {
28414 if(!isWasmInitialized) {
28415 throw new Error("initializeWasm() must be awaited first!");
28417 const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fail_malformed_htlcs(this_ptr);
28418 return nativeResponseValue;
28420 // void CommitmentUpdate_set_update_fail_malformed_htlcs(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCVec_UpdateFailMalformedHTLCZ val);
28422 export function CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr: bigint, val: number): void {
28423 if(!isWasmInitialized) {
28424 throw new Error("initializeWasm() must be awaited first!");
28426 const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fail_malformed_htlcs(this_ptr, val);
28427 // debug statements here
28429 // struct LDKUpdateFee CommitmentUpdate_get_update_fee(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
28431 export function CommitmentUpdate_get_update_fee(this_ptr: bigint): bigint {
28432 if(!isWasmInitialized) {
28433 throw new Error("initializeWasm() must be awaited first!");
28435 const nativeResponseValue = wasm.TS_CommitmentUpdate_get_update_fee(this_ptr);
28436 return nativeResponseValue;
28438 // void CommitmentUpdate_set_update_fee(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKUpdateFee val);
28440 export function CommitmentUpdate_set_update_fee(this_ptr: bigint, val: bigint): void {
28441 if(!isWasmInitialized) {
28442 throw new Error("initializeWasm() must be awaited first!");
28444 const nativeResponseValue = wasm.TS_CommitmentUpdate_set_update_fee(this_ptr, val);
28445 // debug statements here
28447 // struct LDKCommitmentSigned CommitmentUpdate_get_commitment_signed(const struct LDKCommitmentUpdate *NONNULL_PTR this_ptr);
28449 export function CommitmentUpdate_get_commitment_signed(this_ptr: bigint): bigint {
28450 if(!isWasmInitialized) {
28451 throw new Error("initializeWasm() must be awaited first!");
28453 const nativeResponseValue = wasm.TS_CommitmentUpdate_get_commitment_signed(this_ptr);
28454 return nativeResponseValue;
28456 // void CommitmentUpdate_set_commitment_signed(struct LDKCommitmentUpdate *NONNULL_PTR this_ptr, struct LDKCommitmentSigned val);
28458 export function CommitmentUpdate_set_commitment_signed(this_ptr: bigint, val: bigint): void {
28459 if(!isWasmInitialized) {
28460 throw new Error("initializeWasm() must be awaited first!");
28462 const nativeResponseValue = wasm.TS_CommitmentUpdate_set_commitment_signed(this_ptr, val);
28463 // debug statements here
28465 // MUST_USE_RES struct LDKCommitmentUpdate CommitmentUpdate_new(struct LDKCVec_UpdateAddHTLCZ update_add_htlcs_arg, struct LDKCVec_UpdateFulfillHTLCZ update_fulfill_htlcs_arg, struct LDKCVec_UpdateFailHTLCZ update_fail_htlcs_arg, struct LDKCVec_UpdateFailMalformedHTLCZ update_fail_malformed_htlcs_arg, struct LDKUpdateFee update_fee_arg, struct LDKCommitmentSigned commitment_signed_arg);
28467 export function CommitmentUpdate_new(update_add_htlcs_arg: number, update_fulfill_htlcs_arg: number, update_fail_htlcs_arg: number, update_fail_malformed_htlcs_arg: number, update_fee_arg: bigint, commitment_signed_arg: bigint): bigint {
28468 if(!isWasmInitialized) {
28469 throw new Error("initializeWasm() must be awaited first!");
28471 const nativeResponseValue = wasm.TS_CommitmentUpdate_new(update_add_htlcs_arg, update_fulfill_htlcs_arg, update_fail_htlcs_arg, update_fail_malformed_htlcs_arg, update_fee_arg, commitment_signed_arg);
28472 return nativeResponseValue;
28474 // uint64_t CommitmentUpdate_clone_ptr(LDKCommitmentUpdate *NONNULL_PTR arg);
28476 export function CommitmentUpdate_clone_ptr(arg: bigint): bigint {
28477 if(!isWasmInitialized) {
28478 throw new Error("initializeWasm() must be awaited first!");
28480 const nativeResponseValue = wasm.TS_CommitmentUpdate_clone_ptr(arg);
28481 return nativeResponseValue;
28483 // struct LDKCommitmentUpdate CommitmentUpdate_clone(const struct LDKCommitmentUpdate *NONNULL_PTR orig);
28485 export function CommitmentUpdate_clone(orig: bigint): bigint {
28486 if(!isWasmInitialized) {
28487 throw new Error("initializeWasm() must be awaited first!");
28489 const nativeResponseValue = wasm.TS_CommitmentUpdate_clone(orig);
28490 return nativeResponseValue;
28492 // bool CommitmentUpdate_eq(const struct LDKCommitmentUpdate *NONNULL_PTR a, const struct LDKCommitmentUpdate *NONNULL_PTR b);
28494 export function CommitmentUpdate_eq(a: bigint, b: bigint): boolean {
28495 if(!isWasmInitialized) {
28496 throw new Error("initializeWasm() must be awaited first!");
28498 const nativeResponseValue = wasm.TS_CommitmentUpdate_eq(a, b);
28499 return nativeResponseValue;
28501 // void ChannelMessageHandler_free(struct LDKChannelMessageHandler this_ptr);
28503 export function ChannelMessageHandler_free(this_ptr: bigint): void {
28504 if(!isWasmInitialized) {
28505 throw new Error("initializeWasm() must be awaited first!");
28507 const nativeResponseValue = wasm.TS_ChannelMessageHandler_free(this_ptr);
28508 // debug statements here
28510 // void RoutingMessageHandler_free(struct LDKRoutingMessageHandler this_ptr);
28512 export function RoutingMessageHandler_free(this_ptr: bigint): void {
28513 if(!isWasmInitialized) {
28514 throw new Error("initializeWasm() must be awaited first!");
28516 const nativeResponseValue = wasm.TS_RoutingMessageHandler_free(this_ptr);
28517 // debug statements here
28519 // void OnionMessageHandler_free(struct LDKOnionMessageHandler this_ptr);
28521 export function OnionMessageHandler_free(this_ptr: bigint): void {
28522 if(!isWasmInitialized) {
28523 throw new Error("initializeWasm() must be awaited first!");
28525 const nativeResponseValue = wasm.TS_OnionMessageHandler_free(this_ptr);
28526 // debug statements here
28528 // struct LDKCVec_u8Z AcceptChannel_write(const struct LDKAcceptChannel *NONNULL_PTR obj);
28530 export function AcceptChannel_write(obj: bigint): number {
28531 if(!isWasmInitialized) {
28532 throw new Error("initializeWasm() must be awaited first!");
28534 const nativeResponseValue = wasm.TS_AcceptChannel_write(obj);
28535 return nativeResponseValue;
28537 // struct LDKCResult_AcceptChannelDecodeErrorZ AcceptChannel_read(struct LDKu8slice ser);
28539 export function AcceptChannel_read(ser: number): bigint {
28540 if(!isWasmInitialized) {
28541 throw new Error("initializeWasm() must be awaited first!");
28543 const nativeResponseValue = wasm.TS_AcceptChannel_read(ser);
28544 return nativeResponseValue;
28546 // struct LDKCVec_u8Z AnnouncementSignatures_write(const struct LDKAnnouncementSignatures *NONNULL_PTR obj);
28548 export function AnnouncementSignatures_write(obj: bigint): number {
28549 if(!isWasmInitialized) {
28550 throw new Error("initializeWasm() must be awaited first!");
28552 const nativeResponseValue = wasm.TS_AnnouncementSignatures_write(obj);
28553 return nativeResponseValue;
28555 // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ AnnouncementSignatures_read(struct LDKu8slice ser);
28557 export function AnnouncementSignatures_read(ser: number): bigint {
28558 if(!isWasmInitialized) {
28559 throw new Error("initializeWasm() must be awaited first!");
28561 const nativeResponseValue = wasm.TS_AnnouncementSignatures_read(ser);
28562 return nativeResponseValue;
28564 // struct LDKCVec_u8Z ChannelReestablish_write(const struct LDKChannelReestablish *NONNULL_PTR obj);
28566 export function ChannelReestablish_write(obj: bigint): number {
28567 if(!isWasmInitialized) {
28568 throw new Error("initializeWasm() must be awaited first!");
28570 const nativeResponseValue = wasm.TS_ChannelReestablish_write(obj);
28571 return nativeResponseValue;
28573 // struct LDKCResult_ChannelReestablishDecodeErrorZ ChannelReestablish_read(struct LDKu8slice ser);
28575 export function ChannelReestablish_read(ser: number): bigint {
28576 if(!isWasmInitialized) {
28577 throw new Error("initializeWasm() must be awaited first!");
28579 const nativeResponseValue = wasm.TS_ChannelReestablish_read(ser);
28580 return nativeResponseValue;
28582 // struct LDKCVec_u8Z ClosingSigned_write(const struct LDKClosingSigned *NONNULL_PTR obj);
28584 export function ClosingSigned_write(obj: bigint): number {
28585 if(!isWasmInitialized) {
28586 throw new Error("initializeWasm() must be awaited first!");
28588 const nativeResponseValue = wasm.TS_ClosingSigned_write(obj);
28589 return nativeResponseValue;
28591 // struct LDKCResult_ClosingSignedDecodeErrorZ ClosingSigned_read(struct LDKu8slice ser);
28593 export function ClosingSigned_read(ser: number): bigint {
28594 if(!isWasmInitialized) {
28595 throw new Error("initializeWasm() must be awaited first!");
28597 const nativeResponseValue = wasm.TS_ClosingSigned_read(ser);
28598 return nativeResponseValue;
28600 // struct LDKCVec_u8Z ClosingSignedFeeRange_write(const struct LDKClosingSignedFeeRange *NONNULL_PTR obj);
28602 export function ClosingSignedFeeRange_write(obj: bigint): number {
28603 if(!isWasmInitialized) {
28604 throw new Error("initializeWasm() must be awaited first!");
28606 const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_write(obj);
28607 return nativeResponseValue;
28609 // struct LDKCResult_ClosingSignedFeeRangeDecodeErrorZ ClosingSignedFeeRange_read(struct LDKu8slice ser);
28611 export function ClosingSignedFeeRange_read(ser: number): bigint {
28612 if(!isWasmInitialized) {
28613 throw new Error("initializeWasm() must be awaited first!");
28615 const nativeResponseValue = wasm.TS_ClosingSignedFeeRange_read(ser);
28616 return nativeResponseValue;
28618 // struct LDKCVec_u8Z CommitmentSigned_write(const struct LDKCommitmentSigned *NONNULL_PTR obj);
28620 export function CommitmentSigned_write(obj: bigint): number {
28621 if(!isWasmInitialized) {
28622 throw new Error("initializeWasm() must be awaited first!");
28624 const nativeResponseValue = wasm.TS_CommitmentSigned_write(obj);
28625 return nativeResponseValue;
28627 // struct LDKCResult_CommitmentSignedDecodeErrorZ CommitmentSigned_read(struct LDKu8slice ser);
28629 export function CommitmentSigned_read(ser: number): bigint {
28630 if(!isWasmInitialized) {
28631 throw new Error("initializeWasm() must be awaited first!");
28633 const nativeResponseValue = wasm.TS_CommitmentSigned_read(ser);
28634 return nativeResponseValue;
28636 // struct LDKCVec_u8Z FundingCreated_write(const struct LDKFundingCreated *NONNULL_PTR obj);
28638 export function FundingCreated_write(obj: bigint): number {
28639 if(!isWasmInitialized) {
28640 throw new Error("initializeWasm() must be awaited first!");
28642 const nativeResponseValue = wasm.TS_FundingCreated_write(obj);
28643 return nativeResponseValue;
28645 // struct LDKCResult_FundingCreatedDecodeErrorZ FundingCreated_read(struct LDKu8slice ser);
28647 export function FundingCreated_read(ser: number): bigint {
28648 if(!isWasmInitialized) {
28649 throw new Error("initializeWasm() must be awaited first!");
28651 const nativeResponseValue = wasm.TS_FundingCreated_read(ser);
28652 return nativeResponseValue;
28654 // struct LDKCVec_u8Z FundingSigned_write(const struct LDKFundingSigned *NONNULL_PTR obj);
28656 export function FundingSigned_write(obj: bigint): number {
28657 if(!isWasmInitialized) {
28658 throw new Error("initializeWasm() must be awaited first!");
28660 const nativeResponseValue = wasm.TS_FundingSigned_write(obj);
28661 return nativeResponseValue;
28663 // struct LDKCResult_FundingSignedDecodeErrorZ FundingSigned_read(struct LDKu8slice ser);
28665 export function FundingSigned_read(ser: number): bigint {
28666 if(!isWasmInitialized) {
28667 throw new Error("initializeWasm() must be awaited first!");
28669 const nativeResponseValue = wasm.TS_FundingSigned_read(ser);
28670 return nativeResponseValue;
28672 // struct LDKCVec_u8Z ChannelReady_write(const struct LDKChannelReady *NONNULL_PTR obj);
28674 export function ChannelReady_write(obj: bigint): number {
28675 if(!isWasmInitialized) {
28676 throw new Error("initializeWasm() must be awaited first!");
28678 const nativeResponseValue = wasm.TS_ChannelReady_write(obj);
28679 return nativeResponseValue;
28681 // struct LDKCResult_ChannelReadyDecodeErrorZ ChannelReady_read(struct LDKu8slice ser);
28683 export function ChannelReady_read(ser: number): bigint {
28684 if(!isWasmInitialized) {
28685 throw new Error("initializeWasm() must be awaited first!");
28687 const nativeResponseValue = wasm.TS_ChannelReady_read(ser);
28688 return nativeResponseValue;
28690 // struct LDKCVec_u8Z Init_write(const struct LDKInit *NONNULL_PTR obj);
28692 export function Init_write(obj: bigint): number {
28693 if(!isWasmInitialized) {
28694 throw new Error("initializeWasm() must be awaited first!");
28696 const nativeResponseValue = wasm.TS_Init_write(obj);
28697 return nativeResponseValue;
28699 // struct LDKCResult_InitDecodeErrorZ Init_read(struct LDKu8slice ser);
28701 export function Init_read(ser: number): bigint {
28702 if(!isWasmInitialized) {
28703 throw new Error("initializeWasm() must be awaited first!");
28705 const nativeResponseValue = wasm.TS_Init_read(ser);
28706 return nativeResponseValue;
28708 // struct LDKCVec_u8Z OpenChannel_write(const struct LDKOpenChannel *NONNULL_PTR obj);
28710 export function OpenChannel_write(obj: bigint): number {
28711 if(!isWasmInitialized) {
28712 throw new Error("initializeWasm() must be awaited first!");
28714 const nativeResponseValue = wasm.TS_OpenChannel_write(obj);
28715 return nativeResponseValue;
28717 // struct LDKCResult_OpenChannelDecodeErrorZ OpenChannel_read(struct LDKu8slice ser);
28719 export function OpenChannel_read(ser: number): bigint {
28720 if(!isWasmInitialized) {
28721 throw new Error("initializeWasm() must be awaited first!");
28723 const nativeResponseValue = wasm.TS_OpenChannel_read(ser);
28724 return nativeResponseValue;
28726 // struct LDKCVec_u8Z RevokeAndACK_write(const struct LDKRevokeAndACK *NONNULL_PTR obj);
28728 export function RevokeAndACK_write(obj: bigint): number {
28729 if(!isWasmInitialized) {
28730 throw new Error("initializeWasm() must be awaited first!");
28732 const nativeResponseValue = wasm.TS_RevokeAndACK_write(obj);
28733 return nativeResponseValue;
28735 // struct LDKCResult_RevokeAndACKDecodeErrorZ RevokeAndACK_read(struct LDKu8slice ser);
28737 export function RevokeAndACK_read(ser: number): bigint {
28738 if(!isWasmInitialized) {
28739 throw new Error("initializeWasm() must be awaited first!");
28741 const nativeResponseValue = wasm.TS_RevokeAndACK_read(ser);
28742 return nativeResponseValue;
28744 // struct LDKCVec_u8Z Shutdown_write(const struct LDKShutdown *NONNULL_PTR obj);
28746 export function Shutdown_write(obj: bigint): number {
28747 if(!isWasmInitialized) {
28748 throw new Error("initializeWasm() must be awaited first!");
28750 const nativeResponseValue = wasm.TS_Shutdown_write(obj);
28751 return nativeResponseValue;
28753 // struct LDKCResult_ShutdownDecodeErrorZ Shutdown_read(struct LDKu8slice ser);
28755 export function Shutdown_read(ser: number): bigint {
28756 if(!isWasmInitialized) {
28757 throw new Error("initializeWasm() must be awaited first!");
28759 const nativeResponseValue = wasm.TS_Shutdown_read(ser);
28760 return nativeResponseValue;
28762 // struct LDKCVec_u8Z UpdateFailHTLC_write(const struct LDKUpdateFailHTLC *NONNULL_PTR obj);
28764 export function UpdateFailHTLC_write(obj: bigint): number {
28765 if(!isWasmInitialized) {
28766 throw new Error("initializeWasm() must be awaited first!");
28768 const nativeResponseValue = wasm.TS_UpdateFailHTLC_write(obj);
28769 return nativeResponseValue;
28771 // struct LDKCResult_UpdateFailHTLCDecodeErrorZ UpdateFailHTLC_read(struct LDKu8slice ser);
28773 export function UpdateFailHTLC_read(ser: number): bigint {
28774 if(!isWasmInitialized) {
28775 throw new Error("initializeWasm() must be awaited first!");
28777 const nativeResponseValue = wasm.TS_UpdateFailHTLC_read(ser);
28778 return nativeResponseValue;
28780 // struct LDKCVec_u8Z UpdateFailMalformedHTLC_write(const struct LDKUpdateFailMalformedHTLC *NONNULL_PTR obj);
28782 export function UpdateFailMalformedHTLC_write(obj: bigint): number {
28783 if(!isWasmInitialized) {
28784 throw new Error("initializeWasm() must be awaited first!");
28786 const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_write(obj);
28787 return nativeResponseValue;
28789 // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ UpdateFailMalformedHTLC_read(struct LDKu8slice ser);
28791 export function UpdateFailMalformedHTLC_read(ser: number): bigint {
28792 if(!isWasmInitialized) {
28793 throw new Error("initializeWasm() must be awaited first!");
28795 const nativeResponseValue = wasm.TS_UpdateFailMalformedHTLC_read(ser);
28796 return nativeResponseValue;
28798 // struct LDKCVec_u8Z UpdateFee_write(const struct LDKUpdateFee *NONNULL_PTR obj);
28800 export function UpdateFee_write(obj: bigint): number {
28801 if(!isWasmInitialized) {
28802 throw new Error("initializeWasm() must be awaited first!");
28804 const nativeResponseValue = wasm.TS_UpdateFee_write(obj);
28805 return nativeResponseValue;
28807 // struct LDKCResult_UpdateFeeDecodeErrorZ UpdateFee_read(struct LDKu8slice ser);
28809 export function UpdateFee_read(ser: number): bigint {
28810 if(!isWasmInitialized) {
28811 throw new Error("initializeWasm() must be awaited first!");
28813 const nativeResponseValue = wasm.TS_UpdateFee_read(ser);
28814 return nativeResponseValue;
28816 // struct LDKCVec_u8Z UpdateFulfillHTLC_write(const struct LDKUpdateFulfillHTLC *NONNULL_PTR obj);
28818 export function UpdateFulfillHTLC_write(obj: bigint): number {
28819 if(!isWasmInitialized) {
28820 throw new Error("initializeWasm() must be awaited first!");
28822 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_write(obj);
28823 return nativeResponseValue;
28825 // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ UpdateFulfillHTLC_read(struct LDKu8slice ser);
28827 export function UpdateFulfillHTLC_read(ser: number): bigint {
28828 if(!isWasmInitialized) {
28829 throw new Error("initializeWasm() must be awaited first!");
28831 const nativeResponseValue = wasm.TS_UpdateFulfillHTLC_read(ser);
28832 return nativeResponseValue;
28834 // struct LDKCVec_u8Z UpdateAddHTLC_write(const struct LDKUpdateAddHTLC *NONNULL_PTR obj);
28836 export function UpdateAddHTLC_write(obj: bigint): number {
28837 if(!isWasmInitialized) {
28838 throw new Error("initializeWasm() must be awaited first!");
28840 const nativeResponseValue = wasm.TS_UpdateAddHTLC_write(obj);
28841 return nativeResponseValue;
28843 // struct LDKCResult_UpdateAddHTLCDecodeErrorZ UpdateAddHTLC_read(struct LDKu8slice ser);
28845 export function UpdateAddHTLC_read(ser: number): bigint {
28846 if(!isWasmInitialized) {
28847 throw new Error("initializeWasm() must be awaited first!");
28849 const nativeResponseValue = wasm.TS_UpdateAddHTLC_read(ser);
28850 return nativeResponseValue;
28852 // struct LDKCResult_OnionMessageDecodeErrorZ OnionMessage_read(struct LDKu8slice ser);
28854 export function OnionMessage_read(ser: number): bigint {
28855 if(!isWasmInitialized) {
28856 throw new Error("initializeWasm() must be awaited first!");
28858 const nativeResponseValue = wasm.TS_OnionMessage_read(ser);
28859 return nativeResponseValue;
28861 // struct LDKCVec_u8Z OnionMessage_write(const struct LDKOnionMessage *NONNULL_PTR obj);
28863 export function OnionMessage_write(obj: bigint): number {
28864 if(!isWasmInitialized) {
28865 throw new Error("initializeWasm() must be awaited first!");
28867 const nativeResponseValue = wasm.TS_OnionMessage_write(obj);
28868 return nativeResponseValue;
28870 // struct LDKCVec_u8Z Ping_write(const struct LDKPing *NONNULL_PTR obj);
28872 export function Ping_write(obj: bigint): number {
28873 if(!isWasmInitialized) {
28874 throw new Error("initializeWasm() must be awaited first!");
28876 const nativeResponseValue = wasm.TS_Ping_write(obj);
28877 return nativeResponseValue;
28879 // struct LDKCResult_PingDecodeErrorZ Ping_read(struct LDKu8slice ser);
28881 export function Ping_read(ser: number): bigint {
28882 if(!isWasmInitialized) {
28883 throw new Error("initializeWasm() must be awaited first!");
28885 const nativeResponseValue = wasm.TS_Ping_read(ser);
28886 return nativeResponseValue;
28888 // struct LDKCVec_u8Z Pong_write(const struct LDKPong *NONNULL_PTR obj);
28890 export function Pong_write(obj: bigint): number {
28891 if(!isWasmInitialized) {
28892 throw new Error("initializeWasm() must be awaited first!");
28894 const nativeResponseValue = wasm.TS_Pong_write(obj);
28895 return nativeResponseValue;
28897 // struct LDKCResult_PongDecodeErrorZ Pong_read(struct LDKu8slice ser);
28899 export function Pong_read(ser: number): bigint {
28900 if(!isWasmInitialized) {
28901 throw new Error("initializeWasm() must be awaited first!");
28903 const nativeResponseValue = wasm.TS_Pong_read(ser);
28904 return nativeResponseValue;
28906 // struct LDKCVec_u8Z UnsignedChannelAnnouncement_write(const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR obj);
28908 export function UnsignedChannelAnnouncement_write(obj: bigint): number {
28909 if(!isWasmInitialized) {
28910 throw new Error("initializeWasm() must be awaited first!");
28912 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_write(obj);
28913 return nativeResponseValue;
28915 // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ UnsignedChannelAnnouncement_read(struct LDKu8slice ser);
28917 export function UnsignedChannelAnnouncement_read(ser: number): bigint {
28918 if(!isWasmInitialized) {
28919 throw new Error("initializeWasm() must be awaited first!");
28921 const nativeResponseValue = wasm.TS_UnsignedChannelAnnouncement_read(ser);
28922 return nativeResponseValue;
28924 // struct LDKCVec_u8Z ChannelAnnouncement_write(const struct LDKChannelAnnouncement *NONNULL_PTR obj);
28926 export function ChannelAnnouncement_write(obj: bigint): number {
28927 if(!isWasmInitialized) {
28928 throw new Error("initializeWasm() must be awaited first!");
28930 const nativeResponseValue = wasm.TS_ChannelAnnouncement_write(obj);
28931 return nativeResponseValue;
28933 // struct LDKCResult_ChannelAnnouncementDecodeErrorZ ChannelAnnouncement_read(struct LDKu8slice ser);
28935 export function ChannelAnnouncement_read(ser: number): bigint {
28936 if(!isWasmInitialized) {
28937 throw new Error("initializeWasm() must be awaited first!");
28939 const nativeResponseValue = wasm.TS_ChannelAnnouncement_read(ser);
28940 return nativeResponseValue;
28942 // struct LDKCVec_u8Z UnsignedChannelUpdate_write(const struct LDKUnsignedChannelUpdate *NONNULL_PTR obj);
28944 export function UnsignedChannelUpdate_write(obj: bigint): number {
28945 if(!isWasmInitialized) {
28946 throw new Error("initializeWasm() must be awaited first!");
28948 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_write(obj);
28949 return nativeResponseValue;
28951 // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ UnsignedChannelUpdate_read(struct LDKu8slice ser);
28953 export function UnsignedChannelUpdate_read(ser: number): bigint {
28954 if(!isWasmInitialized) {
28955 throw new Error("initializeWasm() must be awaited first!");
28957 const nativeResponseValue = wasm.TS_UnsignedChannelUpdate_read(ser);
28958 return nativeResponseValue;
28960 // struct LDKCVec_u8Z ChannelUpdate_write(const struct LDKChannelUpdate *NONNULL_PTR obj);
28962 export function ChannelUpdate_write(obj: bigint): number {
28963 if(!isWasmInitialized) {
28964 throw new Error("initializeWasm() must be awaited first!");
28966 const nativeResponseValue = wasm.TS_ChannelUpdate_write(obj);
28967 return nativeResponseValue;
28969 // struct LDKCResult_ChannelUpdateDecodeErrorZ ChannelUpdate_read(struct LDKu8slice ser);
28971 export function ChannelUpdate_read(ser: number): bigint {
28972 if(!isWasmInitialized) {
28973 throw new Error("initializeWasm() must be awaited first!");
28975 const nativeResponseValue = wasm.TS_ChannelUpdate_read(ser);
28976 return nativeResponseValue;
28978 // struct LDKCVec_u8Z ErrorMessage_write(const struct LDKErrorMessage *NONNULL_PTR obj);
28980 export function ErrorMessage_write(obj: bigint): number {
28981 if(!isWasmInitialized) {
28982 throw new Error("initializeWasm() must be awaited first!");
28984 const nativeResponseValue = wasm.TS_ErrorMessage_write(obj);
28985 return nativeResponseValue;
28987 // struct LDKCResult_ErrorMessageDecodeErrorZ ErrorMessage_read(struct LDKu8slice ser);
28989 export function ErrorMessage_read(ser: number): bigint {
28990 if(!isWasmInitialized) {
28991 throw new Error("initializeWasm() must be awaited first!");
28993 const nativeResponseValue = wasm.TS_ErrorMessage_read(ser);
28994 return nativeResponseValue;
28996 // struct LDKCVec_u8Z WarningMessage_write(const struct LDKWarningMessage *NONNULL_PTR obj);
28998 export function WarningMessage_write(obj: bigint): number {
28999 if(!isWasmInitialized) {
29000 throw new Error("initializeWasm() must be awaited first!");
29002 const nativeResponseValue = wasm.TS_WarningMessage_write(obj);
29003 return nativeResponseValue;
29005 // struct LDKCResult_WarningMessageDecodeErrorZ WarningMessage_read(struct LDKu8slice ser);
29007 export function WarningMessage_read(ser: number): bigint {
29008 if(!isWasmInitialized) {
29009 throw new Error("initializeWasm() must be awaited first!");
29011 const nativeResponseValue = wasm.TS_WarningMessage_read(ser);
29012 return nativeResponseValue;
29014 // struct LDKCVec_u8Z UnsignedNodeAnnouncement_write(const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR obj);
29016 export function UnsignedNodeAnnouncement_write(obj: bigint): number {
29017 if(!isWasmInitialized) {
29018 throw new Error("initializeWasm() must be awaited first!");
29020 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_write(obj);
29021 return nativeResponseValue;
29023 // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ UnsignedNodeAnnouncement_read(struct LDKu8slice ser);
29025 export function UnsignedNodeAnnouncement_read(ser: number): bigint {
29026 if(!isWasmInitialized) {
29027 throw new Error("initializeWasm() must be awaited first!");
29029 const nativeResponseValue = wasm.TS_UnsignedNodeAnnouncement_read(ser);
29030 return nativeResponseValue;
29032 // struct LDKCVec_u8Z NodeAnnouncement_write(const struct LDKNodeAnnouncement *NONNULL_PTR obj);
29034 export function NodeAnnouncement_write(obj: bigint): number {
29035 if(!isWasmInitialized) {
29036 throw new Error("initializeWasm() must be awaited first!");
29038 const nativeResponseValue = wasm.TS_NodeAnnouncement_write(obj);
29039 return nativeResponseValue;
29041 // struct LDKCResult_NodeAnnouncementDecodeErrorZ NodeAnnouncement_read(struct LDKu8slice ser);
29043 export function NodeAnnouncement_read(ser: number): bigint {
29044 if(!isWasmInitialized) {
29045 throw new Error("initializeWasm() must be awaited first!");
29047 const nativeResponseValue = wasm.TS_NodeAnnouncement_read(ser);
29048 return nativeResponseValue;
29050 // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ QueryShortChannelIds_read(struct LDKu8slice ser);
29052 export function QueryShortChannelIds_read(ser: number): bigint {
29053 if(!isWasmInitialized) {
29054 throw new Error("initializeWasm() must be awaited first!");
29056 const nativeResponseValue = wasm.TS_QueryShortChannelIds_read(ser);
29057 return nativeResponseValue;
29059 // struct LDKCVec_u8Z QueryShortChannelIds_write(const struct LDKQueryShortChannelIds *NONNULL_PTR obj);
29061 export function QueryShortChannelIds_write(obj: bigint): number {
29062 if(!isWasmInitialized) {
29063 throw new Error("initializeWasm() must be awaited first!");
29065 const nativeResponseValue = wasm.TS_QueryShortChannelIds_write(obj);
29066 return nativeResponseValue;
29068 // struct LDKCVec_u8Z ReplyShortChannelIdsEnd_write(const struct LDKReplyShortChannelIdsEnd *NONNULL_PTR obj);
29070 export function ReplyShortChannelIdsEnd_write(obj: bigint): number {
29071 if(!isWasmInitialized) {
29072 throw new Error("initializeWasm() must be awaited first!");
29074 const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_write(obj);
29075 return nativeResponseValue;
29077 // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ ReplyShortChannelIdsEnd_read(struct LDKu8slice ser);
29079 export function ReplyShortChannelIdsEnd_read(ser: number): bigint {
29080 if(!isWasmInitialized) {
29081 throw new Error("initializeWasm() must be awaited first!");
29083 const nativeResponseValue = wasm.TS_ReplyShortChannelIdsEnd_read(ser);
29084 return nativeResponseValue;
29086 // MUST_USE_RES uint32_t QueryChannelRange_end_blocknum(const struct LDKQueryChannelRange *NONNULL_PTR this_arg);
29088 export function QueryChannelRange_end_blocknum(this_arg: bigint): number {
29089 if(!isWasmInitialized) {
29090 throw new Error("initializeWasm() must be awaited first!");
29092 const nativeResponseValue = wasm.TS_QueryChannelRange_end_blocknum(this_arg);
29093 return nativeResponseValue;
29095 // struct LDKCVec_u8Z QueryChannelRange_write(const struct LDKQueryChannelRange *NONNULL_PTR obj);
29097 export function QueryChannelRange_write(obj: bigint): number {
29098 if(!isWasmInitialized) {
29099 throw new Error("initializeWasm() must be awaited first!");
29101 const nativeResponseValue = wasm.TS_QueryChannelRange_write(obj);
29102 return nativeResponseValue;
29104 // struct LDKCResult_QueryChannelRangeDecodeErrorZ QueryChannelRange_read(struct LDKu8slice ser);
29106 export function QueryChannelRange_read(ser: number): bigint {
29107 if(!isWasmInitialized) {
29108 throw new Error("initializeWasm() must be awaited first!");
29110 const nativeResponseValue = wasm.TS_QueryChannelRange_read(ser);
29111 return nativeResponseValue;
29113 // struct LDKCResult_ReplyChannelRangeDecodeErrorZ ReplyChannelRange_read(struct LDKu8slice ser);
29115 export function ReplyChannelRange_read(ser: number): bigint {
29116 if(!isWasmInitialized) {
29117 throw new Error("initializeWasm() must be awaited first!");
29119 const nativeResponseValue = wasm.TS_ReplyChannelRange_read(ser);
29120 return nativeResponseValue;
29122 // struct LDKCVec_u8Z ReplyChannelRange_write(const struct LDKReplyChannelRange *NONNULL_PTR obj);
29124 export function ReplyChannelRange_write(obj: bigint): number {
29125 if(!isWasmInitialized) {
29126 throw new Error("initializeWasm() must be awaited first!");
29128 const nativeResponseValue = wasm.TS_ReplyChannelRange_write(obj);
29129 return nativeResponseValue;
29131 // struct LDKCVec_u8Z GossipTimestampFilter_write(const struct LDKGossipTimestampFilter *NONNULL_PTR obj);
29133 export function GossipTimestampFilter_write(obj: bigint): number {
29134 if(!isWasmInitialized) {
29135 throw new Error("initializeWasm() must be awaited first!");
29137 const nativeResponseValue = wasm.TS_GossipTimestampFilter_write(obj);
29138 return nativeResponseValue;
29140 // struct LDKCResult_GossipTimestampFilterDecodeErrorZ GossipTimestampFilter_read(struct LDKu8slice ser);
29142 export function GossipTimestampFilter_read(ser: number): bigint {
29143 if(!isWasmInitialized) {
29144 throw new Error("initializeWasm() must be awaited first!");
29146 const nativeResponseValue = wasm.TS_GossipTimestampFilter_read(ser);
29147 return nativeResponseValue;
29149 // void CustomMessageHandler_free(struct LDKCustomMessageHandler this_ptr);
29151 export function CustomMessageHandler_free(this_ptr: bigint): void {
29152 if(!isWasmInitialized) {
29153 throw new Error("initializeWasm() must be awaited first!");
29155 const nativeResponseValue = wasm.TS_CustomMessageHandler_free(this_ptr);
29156 // debug statements here
29158 // void IgnoringMessageHandler_free(struct LDKIgnoringMessageHandler this_obj);
29160 export function IgnoringMessageHandler_free(this_obj: bigint): void {
29161 if(!isWasmInitialized) {
29162 throw new Error("initializeWasm() must be awaited first!");
29164 const nativeResponseValue = wasm.TS_IgnoringMessageHandler_free(this_obj);
29165 // debug statements here
29167 // MUST_USE_RES struct LDKIgnoringMessageHandler IgnoringMessageHandler_new(void);
29169 export function IgnoringMessageHandler_new(): bigint {
29170 if(!isWasmInitialized) {
29171 throw new Error("initializeWasm() must be awaited first!");
29173 const nativeResponseValue = wasm.TS_IgnoringMessageHandler_new();
29174 return nativeResponseValue;
29176 // struct LDKMessageSendEventsProvider IgnoringMessageHandler_as_MessageSendEventsProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
29178 export function IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg: bigint): bigint {
29179 if(!isWasmInitialized) {
29180 throw new Error("initializeWasm() must be awaited first!");
29182 const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_MessageSendEventsProvider(this_arg);
29183 return nativeResponseValue;
29185 // struct LDKRoutingMessageHandler IgnoringMessageHandler_as_RoutingMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
29187 export function IgnoringMessageHandler_as_RoutingMessageHandler(this_arg: bigint): bigint {
29188 if(!isWasmInitialized) {
29189 throw new Error("initializeWasm() must be awaited first!");
29191 const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_RoutingMessageHandler(this_arg);
29192 return nativeResponseValue;
29194 // struct LDKOnionMessageProvider IgnoringMessageHandler_as_OnionMessageProvider(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
29196 export function IgnoringMessageHandler_as_OnionMessageProvider(this_arg: bigint): bigint {
29197 if(!isWasmInitialized) {
29198 throw new Error("initializeWasm() must be awaited first!");
29200 const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_OnionMessageProvider(this_arg);
29201 return nativeResponseValue;
29203 // struct LDKOnionMessageHandler IgnoringMessageHandler_as_OnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
29205 export function IgnoringMessageHandler_as_OnionMessageHandler(this_arg: bigint): bigint {
29206 if(!isWasmInitialized) {
29207 throw new Error("initializeWasm() must be awaited first!");
29209 const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_OnionMessageHandler(this_arg);
29210 return nativeResponseValue;
29212 // struct LDKCustomOnionMessageHandler IgnoringMessageHandler_as_CustomOnionMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
29214 export function IgnoringMessageHandler_as_CustomOnionMessageHandler(this_arg: bigint): bigint {
29215 if(!isWasmInitialized) {
29216 throw new Error("initializeWasm() must be awaited first!");
29218 const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomOnionMessageHandler(this_arg);
29219 return nativeResponseValue;
29221 // struct LDKCustomMessageReader IgnoringMessageHandler_as_CustomMessageReader(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
29223 export function IgnoringMessageHandler_as_CustomMessageReader(this_arg: bigint): bigint {
29224 if(!isWasmInitialized) {
29225 throw new Error("initializeWasm() must be awaited first!");
29227 const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageReader(this_arg);
29228 return nativeResponseValue;
29230 // struct LDKCustomMessageHandler IgnoringMessageHandler_as_CustomMessageHandler(const struct LDKIgnoringMessageHandler *NONNULL_PTR this_arg);
29232 export function IgnoringMessageHandler_as_CustomMessageHandler(this_arg: bigint): bigint {
29233 if(!isWasmInitialized) {
29234 throw new Error("initializeWasm() must be awaited first!");
29236 const nativeResponseValue = wasm.TS_IgnoringMessageHandler_as_CustomMessageHandler(this_arg);
29237 return nativeResponseValue;
29239 // void ErroringMessageHandler_free(struct LDKErroringMessageHandler this_obj);
29241 export function ErroringMessageHandler_free(this_obj: bigint): void {
29242 if(!isWasmInitialized) {
29243 throw new Error("initializeWasm() must be awaited first!");
29245 const nativeResponseValue = wasm.TS_ErroringMessageHandler_free(this_obj);
29246 // debug statements here
29248 // MUST_USE_RES struct LDKErroringMessageHandler ErroringMessageHandler_new(void);
29250 export function ErroringMessageHandler_new(): bigint {
29251 if(!isWasmInitialized) {
29252 throw new Error("initializeWasm() must be awaited first!");
29254 const nativeResponseValue = wasm.TS_ErroringMessageHandler_new();
29255 return nativeResponseValue;
29257 // struct LDKMessageSendEventsProvider ErroringMessageHandler_as_MessageSendEventsProvider(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
29259 export function ErroringMessageHandler_as_MessageSendEventsProvider(this_arg: bigint): bigint {
29260 if(!isWasmInitialized) {
29261 throw new Error("initializeWasm() must be awaited first!");
29263 const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_MessageSendEventsProvider(this_arg);
29264 return nativeResponseValue;
29266 // struct LDKChannelMessageHandler ErroringMessageHandler_as_ChannelMessageHandler(const struct LDKErroringMessageHandler *NONNULL_PTR this_arg);
29268 export function ErroringMessageHandler_as_ChannelMessageHandler(this_arg: bigint): bigint {
29269 if(!isWasmInitialized) {
29270 throw new Error("initializeWasm() must be awaited first!");
29272 const nativeResponseValue = wasm.TS_ErroringMessageHandler_as_ChannelMessageHandler(this_arg);
29273 return nativeResponseValue;
29275 // void MessageHandler_free(struct LDKMessageHandler this_obj);
29277 export function MessageHandler_free(this_obj: bigint): void {
29278 if(!isWasmInitialized) {
29279 throw new Error("initializeWasm() must be awaited first!");
29281 const nativeResponseValue = wasm.TS_MessageHandler_free(this_obj);
29282 // debug statements here
29284 // const struct LDKChannelMessageHandler *MessageHandler_get_chan_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
29286 export function MessageHandler_get_chan_handler(this_ptr: bigint): bigint {
29287 if(!isWasmInitialized) {
29288 throw new Error("initializeWasm() must be awaited first!");
29290 const nativeResponseValue = wasm.TS_MessageHandler_get_chan_handler(this_ptr);
29291 return nativeResponseValue;
29293 // void MessageHandler_set_chan_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKChannelMessageHandler val);
29295 export function MessageHandler_set_chan_handler(this_ptr: bigint, val: bigint): void {
29296 if(!isWasmInitialized) {
29297 throw new Error("initializeWasm() must be awaited first!");
29299 const nativeResponseValue = wasm.TS_MessageHandler_set_chan_handler(this_ptr, val);
29300 // debug statements here
29302 // const struct LDKRoutingMessageHandler *MessageHandler_get_route_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
29304 export function MessageHandler_get_route_handler(this_ptr: bigint): bigint {
29305 if(!isWasmInitialized) {
29306 throw new Error("initializeWasm() must be awaited first!");
29308 const nativeResponseValue = wasm.TS_MessageHandler_get_route_handler(this_ptr);
29309 return nativeResponseValue;
29311 // void MessageHandler_set_route_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKRoutingMessageHandler val);
29313 export function MessageHandler_set_route_handler(this_ptr: bigint, val: bigint): void {
29314 if(!isWasmInitialized) {
29315 throw new Error("initializeWasm() must be awaited first!");
29317 const nativeResponseValue = wasm.TS_MessageHandler_set_route_handler(this_ptr, val);
29318 // debug statements here
29320 // const struct LDKOnionMessageHandler *MessageHandler_get_onion_message_handler(const struct LDKMessageHandler *NONNULL_PTR this_ptr);
29322 export function MessageHandler_get_onion_message_handler(this_ptr: bigint): bigint {
29323 if(!isWasmInitialized) {
29324 throw new Error("initializeWasm() must be awaited first!");
29326 const nativeResponseValue = wasm.TS_MessageHandler_get_onion_message_handler(this_ptr);
29327 return nativeResponseValue;
29329 // void MessageHandler_set_onion_message_handler(struct LDKMessageHandler *NONNULL_PTR this_ptr, struct LDKOnionMessageHandler val);
29331 export function MessageHandler_set_onion_message_handler(this_ptr: bigint, val: bigint): void {
29332 if(!isWasmInitialized) {
29333 throw new Error("initializeWasm() must be awaited first!");
29335 const nativeResponseValue = wasm.TS_MessageHandler_set_onion_message_handler(this_ptr, val);
29336 // debug statements here
29338 // MUST_USE_RES struct LDKMessageHandler MessageHandler_new(struct LDKChannelMessageHandler chan_handler_arg, struct LDKRoutingMessageHandler route_handler_arg, struct LDKOnionMessageHandler onion_message_handler_arg);
29340 export function MessageHandler_new(chan_handler_arg: bigint, route_handler_arg: bigint, onion_message_handler_arg: bigint): bigint {
29341 if(!isWasmInitialized) {
29342 throw new Error("initializeWasm() must be awaited first!");
29344 const nativeResponseValue = wasm.TS_MessageHandler_new(chan_handler_arg, route_handler_arg, onion_message_handler_arg);
29345 return nativeResponseValue;
29347 // uint64_t SocketDescriptor_clone_ptr(LDKSocketDescriptor *NONNULL_PTR arg);
29349 export function SocketDescriptor_clone_ptr(arg: bigint): bigint {
29350 if(!isWasmInitialized) {
29351 throw new Error("initializeWasm() must be awaited first!");
29353 const nativeResponseValue = wasm.TS_SocketDescriptor_clone_ptr(arg);
29354 return nativeResponseValue;
29356 // struct LDKSocketDescriptor SocketDescriptor_clone(const struct LDKSocketDescriptor *NONNULL_PTR orig);
29358 export function SocketDescriptor_clone(orig: bigint): bigint {
29359 if(!isWasmInitialized) {
29360 throw new Error("initializeWasm() must be awaited first!");
29362 const nativeResponseValue = wasm.TS_SocketDescriptor_clone(orig);
29363 return nativeResponseValue;
29365 // void SocketDescriptor_free(struct LDKSocketDescriptor this_ptr);
29367 export function SocketDescriptor_free(this_ptr: bigint): void {
29368 if(!isWasmInitialized) {
29369 throw new Error("initializeWasm() must be awaited first!");
29371 const nativeResponseValue = wasm.TS_SocketDescriptor_free(this_ptr);
29372 // debug statements here
29374 // void PeerHandleError_free(struct LDKPeerHandleError this_obj);
29376 export function PeerHandleError_free(this_obj: bigint): void {
29377 if(!isWasmInitialized) {
29378 throw new Error("initializeWasm() must be awaited first!");
29380 const nativeResponseValue = wasm.TS_PeerHandleError_free(this_obj);
29381 // debug statements here
29383 // MUST_USE_RES struct LDKPeerHandleError PeerHandleError_new(void);
29385 export function PeerHandleError_new(): bigint {
29386 if(!isWasmInitialized) {
29387 throw new Error("initializeWasm() must be awaited first!");
29389 const nativeResponseValue = wasm.TS_PeerHandleError_new();
29390 return nativeResponseValue;
29392 // uint64_t PeerHandleError_clone_ptr(LDKPeerHandleError *NONNULL_PTR arg);
29394 export function PeerHandleError_clone_ptr(arg: bigint): bigint {
29395 if(!isWasmInitialized) {
29396 throw new Error("initializeWasm() must be awaited first!");
29398 const nativeResponseValue = wasm.TS_PeerHandleError_clone_ptr(arg);
29399 return nativeResponseValue;
29401 // struct LDKPeerHandleError PeerHandleError_clone(const struct LDKPeerHandleError *NONNULL_PTR orig);
29403 export function PeerHandleError_clone(orig: bigint): bigint {
29404 if(!isWasmInitialized) {
29405 throw new Error("initializeWasm() must be awaited first!");
29407 const nativeResponseValue = wasm.TS_PeerHandleError_clone(orig);
29408 return nativeResponseValue;
29410 // void PeerManager_free(struct LDKPeerManager this_obj);
29412 export function PeerManager_free(this_obj: bigint): void {
29413 if(!isWasmInitialized) {
29414 throw new Error("initializeWasm() must be awaited first!");
29416 const nativeResponseValue = wasm.TS_PeerManager_free(this_obj);
29417 // debug statements here
29419 // MUST_USE_RES struct LDKPeerManager PeerManager_new(struct LDKMessageHandler message_handler, uint32_t current_time, const uint8_t (*ephemeral_random_data)[32], struct LDKLogger logger, struct LDKCustomMessageHandler custom_message_handler, struct LDKNodeSigner node_signer);
29421 export function PeerManager_new(message_handler: bigint, current_time: number, ephemeral_random_data: number, logger: bigint, custom_message_handler: bigint, node_signer: bigint): bigint {
29422 if(!isWasmInitialized) {
29423 throw new Error("initializeWasm() must be awaited first!");
29425 const nativeResponseValue = wasm.TS_PeerManager_new(message_handler, current_time, ephemeral_random_data, logger, custom_message_handler, node_signer);
29426 return nativeResponseValue;
29428 // MUST_USE_RES struct LDKCVec_C2Tuple_PublicKeyCOption_NetAddressZZZ PeerManager_get_peer_node_ids(const struct LDKPeerManager *NONNULL_PTR this_arg);
29430 export function PeerManager_get_peer_node_ids(this_arg: bigint): number {
29431 if(!isWasmInitialized) {
29432 throw new Error("initializeWasm() must be awaited first!");
29434 const nativeResponseValue = wasm.TS_PeerManager_get_peer_node_ids(this_arg);
29435 return nativeResponseValue;
29437 // 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_NetAddressZ remote_network_address);
29439 export function PeerManager_new_outbound_connection(this_arg: bigint, their_node_id: number, descriptor: bigint, remote_network_address: bigint): bigint {
29440 if(!isWasmInitialized) {
29441 throw new Error("initializeWasm() must be awaited first!");
29443 const nativeResponseValue = wasm.TS_PeerManager_new_outbound_connection(this_arg, their_node_id, descriptor, remote_network_address);
29444 return nativeResponseValue;
29446 // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_new_inbound_connection(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor descriptor, struct LDKCOption_NetAddressZ remote_network_address);
29448 export function PeerManager_new_inbound_connection(this_arg: bigint, descriptor: bigint, remote_network_address: bigint): bigint {
29449 if(!isWasmInitialized) {
29450 throw new Error("initializeWasm() must be awaited first!");
29452 const nativeResponseValue = wasm.TS_PeerManager_new_inbound_connection(this_arg, descriptor, remote_network_address);
29453 return nativeResponseValue;
29455 // MUST_USE_RES struct LDKCResult_NonePeerHandleErrorZ PeerManager_write_buffer_space_avail(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR descriptor);
29457 export function PeerManager_write_buffer_space_avail(this_arg: bigint, descriptor: bigint): bigint {
29458 if(!isWasmInitialized) {
29459 throw new Error("initializeWasm() must be awaited first!");
29461 const nativeResponseValue = wasm.TS_PeerManager_write_buffer_space_avail(this_arg, descriptor);
29462 return nativeResponseValue;
29464 // MUST_USE_RES struct LDKCResult_boolPeerHandleErrorZ PeerManager_read_event(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKSocketDescriptor *NONNULL_PTR peer_descriptor, struct LDKu8slice data);
29466 export function PeerManager_read_event(this_arg: bigint, peer_descriptor: bigint, data: number): bigint {
29467 if(!isWasmInitialized) {
29468 throw new Error("initializeWasm() must be awaited first!");
29470 const nativeResponseValue = wasm.TS_PeerManager_read_event(this_arg, peer_descriptor, data);
29471 return nativeResponseValue;
29473 // void PeerManager_process_events(const struct LDKPeerManager *NONNULL_PTR this_arg);
29475 export function PeerManager_process_events(this_arg: bigint): void {
29476 if(!isWasmInitialized) {
29477 throw new Error("initializeWasm() must be awaited first!");
29479 const nativeResponseValue = wasm.TS_PeerManager_process_events(this_arg);
29480 // debug statements here
29482 // void PeerManager_socket_disconnected(const struct LDKPeerManager *NONNULL_PTR this_arg, const struct LDKSocketDescriptor *NONNULL_PTR descriptor);
29484 export function PeerManager_socket_disconnected(this_arg: bigint, descriptor: bigint): void {
29485 if(!isWasmInitialized) {
29486 throw new Error("initializeWasm() must be awaited first!");
29488 const nativeResponseValue = wasm.TS_PeerManager_socket_disconnected(this_arg, descriptor);
29489 // debug statements here
29491 // void PeerManager_disconnect_by_node_id(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
29493 export function PeerManager_disconnect_by_node_id(this_arg: bigint, node_id: number): void {
29494 if(!isWasmInitialized) {
29495 throw new Error("initializeWasm() must be awaited first!");
29497 const nativeResponseValue = wasm.TS_PeerManager_disconnect_by_node_id(this_arg, node_id);
29498 // debug statements here
29500 // void PeerManager_disconnect_all_peers(const struct LDKPeerManager *NONNULL_PTR this_arg);
29502 export function PeerManager_disconnect_all_peers(this_arg: bigint): void {
29503 if(!isWasmInitialized) {
29504 throw new Error("initializeWasm() must be awaited first!");
29506 const nativeResponseValue = wasm.TS_PeerManager_disconnect_all_peers(this_arg);
29507 // debug statements here
29509 // void PeerManager_timer_tick_occurred(const struct LDKPeerManager *NONNULL_PTR this_arg);
29511 export function PeerManager_timer_tick_occurred(this_arg: bigint): void {
29512 if(!isWasmInitialized) {
29513 throw new Error("initializeWasm() must be awaited first!");
29515 const nativeResponseValue = wasm.TS_PeerManager_timer_tick_occurred(this_arg);
29516 // debug statements here
29518 // void PeerManager_broadcast_node_announcement(const struct LDKPeerManager *NONNULL_PTR this_arg, struct LDKThreeBytes rgb, struct LDKThirtyTwoBytes alias, struct LDKCVec_NetAddressZ addresses);
29520 export function PeerManager_broadcast_node_announcement(this_arg: bigint, rgb: number, alias: number, addresses: number): void {
29521 if(!isWasmInitialized) {
29522 throw new Error("initializeWasm() must be awaited first!");
29524 const nativeResponseValue = wasm.TS_PeerManager_broadcast_node_announcement(this_arg, rgb, alias, addresses);
29525 // debug statements here
29527 // uint64_t htlc_success_tx_weight(bool opt_anchors);
29529 export function htlc_success_tx_weight(opt_anchors: boolean): bigint {
29530 if(!isWasmInitialized) {
29531 throw new Error("initializeWasm() must be awaited first!");
29533 const nativeResponseValue = wasm.TS_htlc_success_tx_weight(opt_anchors);
29534 return nativeResponseValue;
29536 // uint64_t htlc_timeout_tx_weight(bool opt_anchors);
29538 export function htlc_timeout_tx_weight(opt_anchors: boolean): bigint {
29539 if(!isWasmInitialized) {
29540 throw new Error("initializeWasm() must be awaited first!");
29542 const nativeResponseValue = wasm.TS_htlc_timeout_tx_weight(opt_anchors);
29543 return nativeResponseValue;
29545 // enum LDKHTLCClaim HTLCClaim_clone(const enum LDKHTLCClaim *NONNULL_PTR orig);
29547 export function HTLCClaim_clone(orig: bigint): HTLCClaim {
29548 if(!isWasmInitialized) {
29549 throw new Error("initializeWasm() must be awaited first!");
29551 const nativeResponseValue = wasm.TS_HTLCClaim_clone(orig);
29552 return nativeResponseValue;
29554 // enum LDKHTLCClaim HTLCClaim_offered_timeout(void);
29556 export function HTLCClaim_offered_timeout(): HTLCClaim {
29557 if(!isWasmInitialized) {
29558 throw new Error("initializeWasm() must be awaited first!");
29560 const nativeResponseValue = wasm.TS_HTLCClaim_offered_timeout();
29561 return nativeResponseValue;
29563 // enum LDKHTLCClaim HTLCClaim_offered_preimage(void);
29565 export function HTLCClaim_offered_preimage(): HTLCClaim {
29566 if(!isWasmInitialized) {
29567 throw new Error("initializeWasm() must be awaited first!");
29569 const nativeResponseValue = wasm.TS_HTLCClaim_offered_preimage();
29570 return nativeResponseValue;
29572 // enum LDKHTLCClaim HTLCClaim_accepted_timeout(void);
29574 export function HTLCClaim_accepted_timeout(): HTLCClaim {
29575 if(!isWasmInitialized) {
29576 throw new Error("initializeWasm() must be awaited first!");
29578 const nativeResponseValue = wasm.TS_HTLCClaim_accepted_timeout();
29579 return nativeResponseValue;
29581 // enum LDKHTLCClaim HTLCClaim_accepted_preimage(void);
29583 export function HTLCClaim_accepted_preimage(): HTLCClaim {
29584 if(!isWasmInitialized) {
29585 throw new Error("initializeWasm() must be awaited first!");
29587 const nativeResponseValue = wasm.TS_HTLCClaim_accepted_preimage();
29588 return nativeResponseValue;
29590 // enum LDKHTLCClaim HTLCClaim_revocation(void);
29592 export function HTLCClaim_revocation(): HTLCClaim {
29593 if(!isWasmInitialized) {
29594 throw new Error("initializeWasm() must be awaited first!");
29596 const nativeResponseValue = wasm.TS_HTLCClaim_revocation();
29597 return nativeResponseValue;
29599 // bool HTLCClaim_eq(const enum LDKHTLCClaim *NONNULL_PTR a, const enum LDKHTLCClaim *NONNULL_PTR b);
29601 export function HTLCClaim_eq(a: bigint, b: bigint): boolean {
29602 if(!isWasmInitialized) {
29603 throw new Error("initializeWasm() must be awaited first!");
29605 const nativeResponseValue = wasm.TS_HTLCClaim_eq(a, b);
29606 return nativeResponseValue;
29608 // MUST_USE_RES struct LDKCOption_HTLCClaimZ HTLCClaim_from_witness(struct LDKWitness witness);
29610 export function HTLCClaim_from_witness(witness: number): bigint {
29611 if(!isWasmInitialized) {
29612 throw new Error("initializeWasm() must be awaited first!");
29614 const nativeResponseValue = wasm.TS_HTLCClaim_from_witness(witness);
29615 return nativeResponseValue;
29617 // struct LDKThirtyTwoBytes build_commitment_secret(const uint8_t (*commitment_seed)[32], uint64_t idx);
29619 export function build_commitment_secret(commitment_seed: number, idx: bigint): number {
29620 if(!isWasmInitialized) {
29621 throw new Error("initializeWasm() must be awaited first!");
29623 const nativeResponseValue = wasm.TS_build_commitment_secret(commitment_seed, idx);
29624 return nativeResponseValue;
29626 // struct LDKTransaction build_closing_transaction(uint64_t to_holder_value_sat, uint64_t to_counterparty_value_sat, struct LDKCVec_u8Z to_holder_script, struct LDKCVec_u8Z to_counterparty_script, struct LDKOutPoint funding_outpoint);
29628 export function build_closing_transaction(to_holder_value_sat: bigint, to_counterparty_value_sat: bigint, to_holder_script: number, to_counterparty_script: number, funding_outpoint: bigint): number {
29629 if(!isWasmInitialized) {
29630 throw new Error("initializeWasm() must be awaited first!");
29632 const nativeResponseValue = wasm.TS_build_closing_transaction(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
29633 return nativeResponseValue;
29635 // void CounterpartyCommitmentSecrets_free(struct LDKCounterpartyCommitmentSecrets this_obj);
29637 export function CounterpartyCommitmentSecrets_free(this_obj: bigint): void {
29638 if(!isWasmInitialized) {
29639 throw new Error("initializeWasm() must be awaited first!");
29641 const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_free(this_obj);
29642 // debug statements here
29644 // uint64_t CounterpartyCommitmentSecrets_clone_ptr(LDKCounterpartyCommitmentSecrets *NONNULL_PTR arg);
29646 export function CounterpartyCommitmentSecrets_clone_ptr(arg: bigint): bigint {
29647 if(!isWasmInitialized) {
29648 throw new Error("initializeWasm() must be awaited first!");
29650 const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone_ptr(arg);
29651 return nativeResponseValue;
29653 // struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_clone(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR orig);
29655 export function CounterpartyCommitmentSecrets_clone(orig: bigint): bigint {
29656 if(!isWasmInitialized) {
29657 throw new Error("initializeWasm() must be awaited first!");
29659 const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_clone(orig);
29660 return nativeResponseValue;
29662 // MUST_USE_RES struct LDKCounterpartyCommitmentSecrets CounterpartyCommitmentSecrets_new(void);
29664 export function CounterpartyCommitmentSecrets_new(): bigint {
29665 if(!isWasmInitialized) {
29666 throw new Error("initializeWasm() must be awaited first!");
29668 const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_new();
29669 return nativeResponseValue;
29671 // MUST_USE_RES uint64_t CounterpartyCommitmentSecrets_get_min_seen_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg);
29673 export function CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg: bigint): bigint {
29674 if(!isWasmInitialized) {
29675 throw new Error("initializeWasm() must be awaited first!");
29677 const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_min_seen_secret(this_arg);
29678 return nativeResponseValue;
29680 // MUST_USE_RES struct LDKCResult_NoneNoneZ CounterpartyCommitmentSecrets_provide_secret(struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx, struct LDKThirtyTwoBytes secret);
29682 export function CounterpartyCommitmentSecrets_provide_secret(this_arg: bigint, idx: bigint, secret: number): bigint {
29683 if(!isWasmInitialized) {
29684 throw new Error("initializeWasm() must be awaited first!");
29686 const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_provide_secret(this_arg, idx, secret);
29687 return nativeResponseValue;
29689 // MUST_USE_RES struct LDKThirtyTwoBytes CounterpartyCommitmentSecrets_get_secret(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR this_arg, uint64_t idx);
29691 export function CounterpartyCommitmentSecrets_get_secret(this_arg: bigint, idx: bigint): number {
29692 if(!isWasmInitialized) {
29693 throw new Error("initializeWasm() must be awaited first!");
29695 const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_get_secret(this_arg, idx);
29696 return nativeResponseValue;
29698 // struct LDKCVec_u8Z CounterpartyCommitmentSecrets_write(const struct LDKCounterpartyCommitmentSecrets *NONNULL_PTR obj);
29700 export function CounterpartyCommitmentSecrets_write(obj: bigint): number {
29701 if(!isWasmInitialized) {
29702 throw new Error("initializeWasm() must be awaited first!");
29704 const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_write(obj);
29705 return nativeResponseValue;
29707 // struct LDKCResult_CounterpartyCommitmentSecretsDecodeErrorZ CounterpartyCommitmentSecrets_read(struct LDKu8slice ser);
29709 export function CounterpartyCommitmentSecrets_read(ser: number): bigint {
29710 if(!isWasmInitialized) {
29711 throw new Error("initializeWasm() must be awaited first!");
29713 const nativeResponseValue = wasm.TS_CounterpartyCommitmentSecrets_read(ser);
29714 return nativeResponseValue;
29716 // struct LDKSecretKey derive_private_key(struct LDKPublicKey per_commitment_point, const uint8_t (*base_secret)[32]);
29718 export function derive_private_key(per_commitment_point: number, base_secret: number): number {
29719 if(!isWasmInitialized) {
29720 throw new Error("initializeWasm() must be awaited first!");
29722 const nativeResponseValue = wasm.TS_derive_private_key(per_commitment_point, base_secret);
29723 return nativeResponseValue;
29725 // struct LDKPublicKey derive_public_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey base_point);
29727 export function derive_public_key(per_commitment_point: number, base_point: number): number {
29728 if(!isWasmInitialized) {
29729 throw new Error("initializeWasm() must be awaited first!");
29731 const nativeResponseValue = wasm.TS_derive_public_key(per_commitment_point, base_point);
29732 return nativeResponseValue;
29734 // struct LDKSecretKey derive_private_revocation_key(const uint8_t (*per_commitment_secret)[32], const uint8_t (*countersignatory_revocation_base_secret)[32]);
29736 export function derive_private_revocation_key(per_commitment_secret: number, countersignatory_revocation_base_secret: number): number {
29737 if(!isWasmInitialized) {
29738 throw new Error("initializeWasm() must be awaited first!");
29740 const nativeResponseValue = wasm.TS_derive_private_revocation_key(per_commitment_secret, countersignatory_revocation_base_secret);
29741 return nativeResponseValue;
29743 // struct LDKPublicKey derive_public_revocation_key(struct LDKPublicKey per_commitment_point, struct LDKPublicKey countersignatory_revocation_base_point);
29745 export function derive_public_revocation_key(per_commitment_point: number, countersignatory_revocation_base_point: number): number {
29746 if(!isWasmInitialized) {
29747 throw new Error("initializeWasm() must be awaited first!");
29749 const nativeResponseValue = wasm.TS_derive_public_revocation_key(per_commitment_point, countersignatory_revocation_base_point);
29750 return nativeResponseValue;
29752 // void TxCreationKeys_free(struct LDKTxCreationKeys this_obj);
29754 export function TxCreationKeys_free(this_obj: bigint): void {
29755 if(!isWasmInitialized) {
29756 throw new Error("initializeWasm() must be awaited first!");
29758 const nativeResponseValue = wasm.TS_TxCreationKeys_free(this_obj);
29759 // debug statements here
29761 // struct LDKPublicKey TxCreationKeys_get_per_commitment_point(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
29763 export function TxCreationKeys_get_per_commitment_point(this_ptr: bigint): number {
29764 if(!isWasmInitialized) {
29765 throw new Error("initializeWasm() must be awaited first!");
29767 const nativeResponseValue = wasm.TS_TxCreationKeys_get_per_commitment_point(this_ptr);
29768 return nativeResponseValue;
29770 // void TxCreationKeys_set_per_commitment_point(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29772 export function TxCreationKeys_set_per_commitment_point(this_ptr: bigint, val: number): void {
29773 if(!isWasmInitialized) {
29774 throw new Error("initializeWasm() must be awaited first!");
29776 const nativeResponseValue = wasm.TS_TxCreationKeys_set_per_commitment_point(this_ptr, val);
29777 // debug statements here
29779 // struct LDKPublicKey TxCreationKeys_get_revocation_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
29781 export function TxCreationKeys_get_revocation_key(this_ptr: bigint): number {
29782 if(!isWasmInitialized) {
29783 throw new Error("initializeWasm() must be awaited first!");
29785 const nativeResponseValue = wasm.TS_TxCreationKeys_get_revocation_key(this_ptr);
29786 return nativeResponseValue;
29788 // void TxCreationKeys_set_revocation_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29790 export function TxCreationKeys_set_revocation_key(this_ptr: bigint, val: number): void {
29791 if(!isWasmInitialized) {
29792 throw new Error("initializeWasm() must be awaited first!");
29794 const nativeResponseValue = wasm.TS_TxCreationKeys_set_revocation_key(this_ptr, val);
29795 // debug statements here
29797 // struct LDKPublicKey TxCreationKeys_get_broadcaster_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
29799 export function TxCreationKeys_get_broadcaster_htlc_key(this_ptr: bigint): number {
29800 if(!isWasmInitialized) {
29801 throw new Error("initializeWasm() must be awaited first!");
29803 const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_htlc_key(this_ptr);
29804 return nativeResponseValue;
29806 // void TxCreationKeys_set_broadcaster_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29808 export function TxCreationKeys_set_broadcaster_htlc_key(this_ptr: bigint, val: number): void {
29809 if(!isWasmInitialized) {
29810 throw new Error("initializeWasm() must be awaited first!");
29812 const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_htlc_key(this_ptr, val);
29813 // debug statements here
29815 // struct LDKPublicKey TxCreationKeys_get_countersignatory_htlc_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
29817 export function TxCreationKeys_get_countersignatory_htlc_key(this_ptr: bigint): number {
29818 if(!isWasmInitialized) {
29819 throw new Error("initializeWasm() must be awaited first!");
29821 const nativeResponseValue = wasm.TS_TxCreationKeys_get_countersignatory_htlc_key(this_ptr);
29822 return nativeResponseValue;
29824 // void TxCreationKeys_set_countersignatory_htlc_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29826 export function TxCreationKeys_set_countersignatory_htlc_key(this_ptr: bigint, val: number): void {
29827 if(!isWasmInitialized) {
29828 throw new Error("initializeWasm() must be awaited first!");
29830 const nativeResponseValue = wasm.TS_TxCreationKeys_set_countersignatory_htlc_key(this_ptr, val);
29831 // debug statements here
29833 // struct LDKPublicKey TxCreationKeys_get_broadcaster_delayed_payment_key(const struct LDKTxCreationKeys *NONNULL_PTR this_ptr);
29835 export function TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr: bigint): number {
29836 if(!isWasmInitialized) {
29837 throw new Error("initializeWasm() must be awaited first!");
29839 const nativeResponseValue = wasm.TS_TxCreationKeys_get_broadcaster_delayed_payment_key(this_ptr);
29840 return nativeResponseValue;
29842 // void TxCreationKeys_set_broadcaster_delayed_payment_key(struct LDKTxCreationKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29844 export function TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr: bigint, val: number): void {
29845 if(!isWasmInitialized) {
29846 throw new Error("initializeWasm() must be awaited first!");
29848 const nativeResponseValue = wasm.TS_TxCreationKeys_set_broadcaster_delayed_payment_key(this_ptr, val);
29849 // debug statements here
29851 // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_new(struct LDKPublicKey per_commitment_point_arg, struct LDKPublicKey revocation_key_arg, struct LDKPublicKey broadcaster_htlc_key_arg, struct LDKPublicKey countersignatory_htlc_key_arg, struct LDKPublicKey broadcaster_delayed_payment_key_arg);
29853 export function TxCreationKeys_new(per_commitment_point_arg: number, revocation_key_arg: number, broadcaster_htlc_key_arg: number, countersignatory_htlc_key_arg: number, broadcaster_delayed_payment_key_arg: number): bigint {
29854 if(!isWasmInitialized) {
29855 throw new Error("initializeWasm() must be awaited first!");
29857 const nativeResponseValue = wasm.TS_TxCreationKeys_new(per_commitment_point_arg, revocation_key_arg, broadcaster_htlc_key_arg, countersignatory_htlc_key_arg, broadcaster_delayed_payment_key_arg);
29858 return nativeResponseValue;
29860 // bool TxCreationKeys_eq(const struct LDKTxCreationKeys *NONNULL_PTR a, const struct LDKTxCreationKeys *NONNULL_PTR b);
29862 export function TxCreationKeys_eq(a: bigint, b: bigint): boolean {
29863 if(!isWasmInitialized) {
29864 throw new Error("initializeWasm() must be awaited first!");
29866 const nativeResponseValue = wasm.TS_TxCreationKeys_eq(a, b);
29867 return nativeResponseValue;
29869 // uint64_t TxCreationKeys_clone_ptr(LDKTxCreationKeys *NONNULL_PTR arg);
29871 export function TxCreationKeys_clone_ptr(arg: bigint): bigint {
29872 if(!isWasmInitialized) {
29873 throw new Error("initializeWasm() must be awaited first!");
29875 const nativeResponseValue = wasm.TS_TxCreationKeys_clone_ptr(arg);
29876 return nativeResponseValue;
29878 // struct LDKTxCreationKeys TxCreationKeys_clone(const struct LDKTxCreationKeys *NONNULL_PTR orig);
29880 export function TxCreationKeys_clone(orig: bigint): bigint {
29881 if(!isWasmInitialized) {
29882 throw new Error("initializeWasm() must be awaited first!");
29884 const nativeResponseValue = wasm.TS_TxCreationKeys_clone(orig);
29885 return nativeResponseValue;
29887 // struct LDKCVec_u8Z TxCreationKeys_write(const struct LDKTxCreationKeys *NONNULL_PTR obj);
29889 export function TxCreationKeys_write(obj: bigint): number {
29890 if(!isWasmInitialized) {
29891 throw new Error("initializeWasm() must be awaited first!");
29893 const nativeResponseValue = wasm.TS_TxCreationKeys_write(obj);
29894 return nativeResponseValue;
29896 // struct LDKCResult_TxCreationKeysDecodeErrorZ TxCreationKeys_read(struct LDKu8slice ser);
29898 export function TxCreationKeys_read(ser: number): bigint {
29899 if(!isWasmInitialized) {
29900 throw new Error("initializeWasm() must be awaited first!");
29902 const nativeResponseValue = wasm.TS_TxCreationKeys_read(ser);
29903 return nativeResponseValue;
29905 // void ChannelPublicKeys_free(struct LDKChannelPublicKeys this_obj);
29907 export function ChannelPublicKeys_free(this_obj: bigint): void {
29908 if(!isWasmInitialized) {
29909 throw new Error("initializeWasm() must be awaited first!");
29911 const nativeResponseValue = wasm.TS_ChannelPublicKeys_free(this_obj);
29912 // debug statements here
29914 // struct LDKPublicKey ChannelPublicKeys_get_funding_pubkey(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
29916 export function ChannelPublicKeys_get_funding_pubkey(this_ptr: bigint): number {
29917 if(!isWasmInitialized) {
29918 throw new Error("initializeWasm() must be awaited first!");
29920 const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_funding_pubkey(this_ptr);
29921 return nativeResponseValue;
29923 // void ChannelPublicKeys_set_funding_pubkey(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29925 export function ChannelPublicKeys_set_funding_pubkey(this_ptr: bigint, val: number): void {
29926 if(!isWasmInitialized) {
29927 throw new Error("initializeWasm() must be awaited first!");
29929 const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_funding_pubkey(this_ptr, val);
29930 // debug statements here
29932 // struct LDKPublicKey ChannelPublicKeys_get_revocation_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
29934 export function ChannelPublicKeys_get_revocation_basepoint(this_ptr: bigint): number {
29935 if(!isWasmInitialized) {
29936 throw new Error("initializeWasm() must be awaited first!");
29938 const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_revocation_basepoint(this_ptr);
29939 return nativeResponseValue;
29941 // void ChannelPublicKeys_set_revocation_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29943 export function ChannelPublicKeys_set_revocation_basepoint(this_ptr: bigint, val: number): void {
29944 if(!isWasmInitialized) {
29945 throw new Error("initializeWasm() must be awaited first!");
29947 const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_revocation_basepoint(this_ptr, val);
29948 // debug statements here
29950 // struct LDKPublicKey ChannelPublicKeys_get_payment_point(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
29952 export function ChannelPublicKeys_get_payment_point(this_ptr: bigint): number {
29953 if(!isWasmInitialized) {
29954 throw new Error("initializeWasm() must be awaited first!");
29956 const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_payment_point(this_ptr);
29957 return nativeResponseValue;
29959 // void ChannelPublicKeys_set_payment_point(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29961 export function ChannelPublicKeys_set_payment_point(this_ptr: bigint, val: number): void {
29962 if(!isWasmInitialized) {
29963 throw new Error("initializeWasm() must be awaited first!");
29965 const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_payment_point(this_ptr, val);
29966 // debug statements here
29968 // struct LDKPublicKey ChannelPublicKeys_get_delayed_payment_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
29970 export function ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr: bigint): number {
29971 if(!isWasmInitialized) {
29972 throw new Error("initializeWasm() must be awaited first!");
29974 const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_delayed_payment_basepoint(this_ptr);
29975 return nativeResponseValue;
29977 // void ChannelPublicKeys_set_delayed_payment_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29979 export function ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr: bigint, val: number): void {
29980 if(!isWasmInitialized) {
29981 throw new Error("initializeWasm() must be awaited first!");
29983 const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_delayed_payment_basepoint(this_ptr, val);
29984 // debug statements here
29986 // struct LDKPublicKey ChannelPublicKeys_get_htlc_basepoint(const struct LDKChannelPublicKeys *NONNULL_PTR this_ptr);
29988 export function ChannelPublicKeys_get_htlc_basepoint(this_ptr: bigint): number {
29989 if(!isWasmInitialized) {
29990 throw new Error("initializeWasm() must be awaited first!");
29992 const nativeResponseValue = wasm.TS_ChannelPublicKeys_get_htlc_basepoint(this_ptr);
29993 return nativeResponseValue;
29995 // void ChannelPublicKeys_set_htlc_basepoint(struct LDKChannelPublicKeys *NONNULL_PTR this_ptr, struct LDKPublicKey val);
29997 export function ChannelPublicKeys_set_htlc_basepoint(this_ptr: bigint, val: number): void {
29998 if(!isWasmInitialized) {
29999 throw new Error("initializeWasm() must be awaited first!");
30001 const nativeResponseValue = wasm.TS_ChannelPublicKeys_set_htlc_basepoint(this_ptr, val);
30002 // debug statements here
30004 // MUST_USE_RES struct LDKChannelPublicKeys ChannelPublicKeys_new(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);
30006 export function ChannelPublicKeys_new(funding_pubkey_arg: number, revocation_basepoint_arg: number, payment_point_arg: number, delayed_payment_basepoint_arg: number, htlc_basepoint_arg: number): bigint {
30007 if(!isWasmInitialized) {
30008 throw new Error("initializeWasm() must be awaited first!");
30010 const nativeResponseValue = wasm.TS_ChannelPublicKeys_new(funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg);
30011 return nativeResponseValue;
30013 // uint64_t ChannelPublicKeys_clone_ptr(LDKChannelPublicKeys *NONNULL_PTR arg);
30015 export function ChannelPublicKeys_clone_ptr(arg: bigint): bigint {
30016 if(!isWasmInitialized) {
30017 throw new Error("initializeWasm() must be awaited first!");
30019 const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone_ptr(arg);
30020 return nativeResponseValue;
30022 // struct LDKChannelPublicKeys ChannelPublicKeys_clone(const struct LDKChannelPublicKeys *NONNULL_PTR orig);
30024 export function ChannelPublicKeys_clone(orig: bigint): bigint {
30025 if(!isWasmInitialized) {
30026 throw new Error("initializeWasm() must be awaited first!");
30028 const nativeResponseValue = wasm.TS_ChannelPublicKeys_clone(orig);
30029 return nativeResponseValue;
30031 // bool ChannelPublicKeys_eq(const struct LDKChannelPublicKeys *NONNULL_PTR a, const struct LDKChannelPublicKeys *NONNULL_PTR b);
30033 export function ChannelPublicKeys_eq(a: bigint, b: bigint): boolean {
30034 if(!isWasmInitialized) {
30035 throw new Error("initializeWasm() must be awaited first!");
30037 const nativeResponseValue = wasm.TS_ChannelPublicKeys_eq(a, b);
30038 return nativeResponseValue;
30040 // struct LDKCVec_u8Z ChannelPublicKeys_write(const struct LDKChannelPublicKeys *NONNULL_PTR obj);
30042 export function ChannelPublicKeys_write(obj: bigint): number {
30043 if(!isWasmInitialized) {
30044 throw new Error("initializeWasm() must be awaited first!");
30046 const nativeResponseValue = wasm.TS_ChannelPublicKeys_write(obj);
30047 return nativeResponseValue;
30049 // struct LDKCResult_ChannelPublicKeysDecodeErrorZ ChannelPublicKeys_read(struct LDKu8slice ser);
30051 export function ChannelPublicKeys_read(ser: number): bigint {
30052 if(!isWasmInitialized) {
30053 throw new Error("initializeWasm() must be awaited first!");
30055 const nativeResponseValue = wasm.TS_ChannelPublicKeys_read(ser);
30056 return nativeResponseValue;
30058 // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_derive_new(struct LDKPublicKey per_commitment_point, struct LDKPublicKey broadcaster_delayed_payment_base, struct LDKPublicKey broadcaster_htlc_base, struct LDKPublicKey countersignatory_revocation_base, struct LDKPublicKey countersignatory_htlc_base);
30060 export function TxCreationKeys_derive_new(per_commitment_point: number, broadcaster_delayed_payment_base: number, broadcaster_htlc_base: number, countersignatory_revocation_base: number, countersignatory_htlc_base: number): bigint {
30061 if(!isWasmInitialized) {
30062 throw new Error("initializeWasm() must be awaited first!");
30064 const nativeResponseValue = wasm.TS_TxCreationKeys_derive_new(per_commitment_point, broadcaster_delayed_payment_base, broadcaster_htlc_base, countersignatory_revocation_base, countersignatory_htlc_base);
30065 return nativeResponseValue;
30067 // MUST_USE_RES struct LDKTxCreationKeys TxCreationKeys_from_channel_static_keys(struct LDKPublicKey per_commitment_point, const struct LDKChannelPublicKeys *NONNULL_PTR broadcaster_keys, const struct LDKChannelPublicKeys *NONNULL_PTR countersignatory_keys);
30069 export function TxCreationKeys_from_channel_static_keys(per_commitment_point: number, broadcaster_keys: bigint, countersignatory_keys: bigint): bigint {
30070 if(!isWasmInitialized) {
30071 throw new Error("initializeWasm() must be awaited first!");
30073 const nativeResponseValue = wasm.TS_TxCreationKeys_from_channel_static_keys(per_commitment_point, broadcaster_keys, countersignatory_keys);
30074 return nativeResponseValue;
30076 // struct LDKCVec_u8Z get_revokeable_redeemscript(struct LDKPublicKey revocation_key, uint16_t contest_delay, struct LDKPublicKey broadcaster_delayed_payment_key);
30078 export function get_revokeable_redeemscript(revocation_key: number, contest_delay: number, broadcaster_delayed_payment_key: number): number {
30079 if(!isWasmInitialized) {
30080 throw new Error("initializeWasm() must be awaited first!");
30082 const nativeResponseValue = wasm.TS_get_revokeable_redeemscript(revocation_key, contest_delay, broadcaster_delayed_payment_key);
30083 return nativeResponseValue;
30085 // void HTLCOutputInCommitment_free(struct LDKHTLCOutputInCommitment this_obj);
30087 export function HTLCOutputInCommitment_free(this_obj: bigint): void {
30088 if(!isWasmInitialized) {
30089 throw new Error("initializeWasm() must be awaited first!");
30091 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_free(this_obj);
30092 // debug statements here
30094 // bool HTLCOutputInCommitment_get_offered(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
30096 export function HTLCOutputInCommitment_get_offered(this_ptr: bigint): boolean {
30097 if(!isWasmInitialized) {
30098 throw new Error("initializeWasm() must be awaited first!");
30100 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_offered(this_ptr);
30101 return nativeResponseValue;
30103 // void HTLCOutputInCommitment_set_offered(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, bool val);
30105 export function HTLCOutputInCommitment_set_offered(this_ptr: bigint, val: boolean): void {
30106 if(!isWasmInitialized) {
30107 throw new Error("initializeWasm() must be awaited first!");
30109 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_offered(this_ptr, val);
30110 // debug statements here
30112 // uint64_t HTLCOutputInCommitment_get_amount_msat(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
30114 export function HTLCOutputInCommitment_get_amount_msat(this_ptr: bigint): bigint {
30115 if(!isWasmInitialized) {
30116 throw new Error("initializeWasm() must be awaited first!");
30118 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_amount_msat(this_ptr);
30119 return nativeResponseValue;
30121 // void HTLCOutputInCommitment_set_amount_msat(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint64_t val);
30123 export function HTLCOutputInCommitment_set_amount_msat(this_ptr: bigint, val: bigint): void {
30124 if(!isWasmInitialized) {
30125 throw new Error("initializeWasm() must be awaited first!");
30127 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_amount_msat(this_ptr, val);
30128 // debug statements here
30130 // uint32_t HTLCOutputInCommitment_get_cltv_expiry(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
30132 export function HTLCOutputInCommitment_get_cltv_expiry(this_ptr: bigint): number {
30133 if(!isWasmInitialized) {
30134 throw new Error("initializeWasm() must be awaited first!");
30136 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_cltv_expiry(this_ptr);
30137 return nativeResponseValue;
30139 // void HTLCOutputInCommitment_set_cltv_expiry(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, uint32_t val);
30141 export function HTLCOutputInCommitment_set_cltv_expiry(this_ptr: bigint, val: number): void {
30142 if(!isWasmInitialized) {
30143 throw new Error("initializeWasm() must be awaited first!");
30145 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_cltv_expiry(this_ptr, val);
30146 // debug statements here
30148 // const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr))[32];
30150 export function HTLCOutputInCommitment_get_payment_hash(this_ptr: bigint): number {
30151 if(!isWasmInitialized) {
30152 throw new Error("initializeWasm() must be awaited first!");
30154 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_payment_hash(this_ptr);
30155 return nativeResponseValue;
30157 // void HTLCOutputInCommitment_set_payment_hash(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
30159 export function HTLCOutputInCommitment_set_payment_hash(this_ptr: bigint, val: number): void {
30160 if(!isWasmInitialized) {
30161 throw new Error("initializeWasm() must be awaited first!");
30163 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_payment_hash(this_ptr, val);
30164 // debug statements here
30166 // struct LDKCOption_u32Z HTLCOutputInCommitment_get_transaction_output_index(const struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr);
30168 export function HTLCOutputInCommitment_get_transaction_output_index(this_ptr: bigint): bigint {
30169 if(!isWasmInitialized) {
30170 throw new Error("initializeWasm() must be awaited first!");
30172 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_get_transaction_output_index(this_ptr);
30173 return nativeResponseValue;
30175 // void HTLCOutputInCommitment_set_transaction_output_index(struct LDKHTLCOutputInCommitment *NONNULL_PTR this_ptr, struct LDKCOption_u32Z val);
30177 export function HTLCOutputInCommitment_set_transaction_output_index(this_ptr: bigint, val: bigint): void {
30178 if(!isWasmInitialized) {
30179 throw new Error("initializeWasm() must be awaited first!");
30181 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_set_transaction_output_index(this_ptr, val);
30182 // debug statements here
30184 // MUST_USE_RES struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_new(bool offered_arg, uint64_t amount_msat_arg, uint32_t cltv_expiry_arg, struct LDKThirtyTwoBytes payment_hash_arg, struct LDKCOption_u32Z transaction_output_index_arg);
30186 export function HTLCOutputInCommitment_new(offered_arg: boolean, amount_msat_arg: bigint, cltv_expiry_arg: number, payment_hash_arg: number, transaction_output_index_arg: bigint): bigint {
30187 if(!isWasmInitialized) {
30188 throw new Error("initializeWasm() must be awaited first!");
30190 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_new(offered_arg, amount_msat_arg, cltv_expiry_arg, payment_hash_arg, transaction_output_index_arg);
30191 return nativeResponseValue;
30193 // uint64_t HTLCOutputInCommitment_clone_ptr(LDKHTLCOutputInCommitment *NONNULL_PTR arg);
30195 export function HTLCOutputInCommitment_clone_ptr(arg: bigint): bigint {
30196 if(!isWasmInitialized) {
30197 throw new Error("initializeWasm() must be awaited first!");
30199 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone_ptr(arg);
30200 return nativeResponseValue;
30202 // struct LDKHTLCOutputInCommitment HTLCOutputInCommitment_clone(const struct LDKHTLCOutputInCommitment *NONNULL_PTR orig);
30204 export function HTLCOutputInCommitment_clone(orig: bigint): bigint {
30205 if(!isWasmInitialized) {
30206 throw new Error("initializeWasm() must be awaited first!");
30208 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_clone(orig);
30209 return nativeResponseValue;
30211 // bool HTLCOutputInCommitment_eq(const struct LDKHTLCOutputInCommitment *NONNULL_PTR a, const struct LDKHTLCOutputInCommitment *NONNULL_PTR b);
30213 export function HTLCOutputInCommitment_eq(a: bigint, b: bigint): boolean {
30214 if(!isWasmInitialized) {
30215 throw new Error("initializeWasm() must be awaited first!");
30217 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_eq(a, b);
30218 return nativeResponseValue;
30220 // struct LDKCVec_u8Z HTLCOutputInCommitment_write(const struct LDKHTLCOutputInCommitment *NONNULL_PTR obj);
30222 export function HTLCOutputInCommitment_write(obj: bigint): number {
30223 if(!isWasmInitialized) {
30224 throw new Error("initializeWasm() must be awaited first!");
30226 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_write(obj);
30227 return nativeResponseValue;
30229 // struct LDKCResult_HTLCOutputInCommitmentDecodeErrorZ HTLCOutputInCommitment_read(struct LDKu8slice ser);
30231 export function HTLCOutputInCommitment_read(ser: number): bigint {
30232 if(!isWasmInitialized) {
30233 throw new Error("initializeWasm() must be awaited first!");
30235 const nativeResponseValue = wasm.TS_HTLCOutputInCommitment_read(ser);
30236 return nativeResponseValue;
30238 // struct LDKCVec_u8Z get_htlc_redeemscript(const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, const struct LDKTxCreationKeys *NONNULL_PTR keys);
30240 export function get_htlc_redeemscript(htlc: bigint, opt_anchors: boolean, keys: bigint): number {
30241 if(!isWasmInitialized) {
30242 throw new Error("initializeWasm() must be awaited first!");
30244 const nativeResponseValue = wasm.TS_get_htlc_redeemscript(htlc, opt_anchors, keys);
30245 return nativeResponseValue;
30247 // struct LDKCVec_u8Z make_funding_redeemscript(struct LDKPublicKey broadcaster, struct LDKPublicKey countersignatory);
30249 export function make_funding_redeemscript(broadcaster: number, countersignatory: number): number {
30250 if(!isWasmInitialized) {
30251 throw new Error("initializeWasm() must be awaited first!");
30253 const nativeResponseValue = wasm.TS_make_funding_redeemscript(broadcaster, countersignatory);
30254 return nativeResponseValue;
30256 // struct LDKTransaction build_htlc_transaction(const uint8_t (*commitment_txid)[32], uint32_t feerate_per_kw, uint16_t contest_delay, const struct LDKHTLCOutputInCommitment *NONNULL_PTR htlc, bool opt_anchors, bool use_non_zero_fee_anchors, struct LDKPublicKey broadcaster_delayed_payment_key, struct LDKPublicKey revocation_key);
30258 export function build_htlc_transaction(commitment_txid: number, feerate_per_kw: number, contest_delay: number, htlc: bigint, opt_anchors: boolean, use_non_zero_fee_anchors: boolean, broadcaster_delayed_payment_key: number, revocation_key: number): number {
30259 if(!isWasmInitialized) {
30260 throw new Error("initializeWasm() must be awaited first!");
30262 const nativeResponseValue = wasm.TS_build_htlc_transaction(commitment_txid, feerate_per_kw, contest_delay, htlc, opt_anchors, use_non_zero_fee_anchors, broadcaster_delayed_payment_key, revocation_key);
30263 return nativeResponseValue;
30265 // struct LDKWitness build_htlc_input_witness(struct LDKSignature local_sig, struct LDKSignature remote_sig, struct LDKThirtyTwoBytes preimage, struct LDKu8slice redeem_script, bool opt_anchors);
30267 export function build_htlc_input_witness(local_sig: number, remote_sig: number, preimage: number, redeem_script: number, opt_anchors: boolean): number {
30268 if(!isWasmInitialized) {
30269 throw new Error("initializeWasm() must be awaited first!");
30271 const nativeResponseValue = wasm.TS_build_htlc_input_witness(local_sig, remote_sig, preimage, redeem_script, opt_anchors);
30272 return nativeResponseValue;
30274 // struct LDKCVec_u8Z get_to_countersignatory_with_anchors_redeemscript(struct LDKPublicKey payment_point);
30276 export function get_to_countersignatory_with_anchors_redeemscript(payment_point: number): number {
30277 if(!isWasmInitialized) {
30278 throw new Error("initializeWasm() must be awaited first!");
30280 const nativeResponseValue = wasm.TS_get_to_countersignatory_with_anchors_redeemscript(payment_point);
30281 return nativeResponseValue;
30283 // struct LDKCVec_u8Z get_anchor_redeemscript(struct LDKPublicKey funding_pubkey);
30285 export function get_anchor_redeemscript(funding_pubkey: number): number {
30286 if(!isWasmInitialized) {
30287 throw new Error("initializeWasm() must be awaited first!");
30289 const nativeResponseValue = wasm.TS_get_anchor_redeemscript(funding_pubkey);
30290 return nativeResponseValue;
30292 // struct LDKWitness build_anchor_input_witness(struct LDKPublicKey funding_key, struct LDKSignature funding_sig);
30294 export function build_anchor_input_witness(funding_key: number, funding_sig: number): number {
30295 if(!isWasmInitialized) {
30296 throw new Error("initializeWasm() must be awaited first!");
30298 const nativeResponseValue = wasm.TS_build_anchor_input_witness(funding_key, funding_sig);
30299 return nativeResponseValue;
30301 // void ChannelTransactionParameters_free(struct LDKChannelTransactionParameters this_obj);
30303 export function ChannelTransactionParameters_free(this_obj: bigint): void {
30304 if(!isWasmInitialized) {
30305 throw new Error("initializeWasm() must be awaited first!");
30307 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_free(this_obj);
30308 // debug statements here
30310 // struct LDKChannelPublicKeys ChannelTransactionParameters_get_holder_pubkeys(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
30312 export function ChannelTransactionParameters_get_holder_pubkeys(this_ptr: bigint): bigint {
30313 if(!isWasmInitialized) {
30314 throw new Error("initializeWasm() must be awaited first!");
30316 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_pubkeys(this_ptr);
30317 return nativeResponseValue;
30319 // void ChannelTransactionParameters_set_holder_pubkeys(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
30321 export function ChannelTransactionParameters_set_holder_pubkeys(this_ptr: bigint, val: bigint): void {
30322 if(!isWasmInitialized) {
30323 throw new Error("initializeWasm() must be awaited first!");
30325 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_pubkeys(this_ptr, val);
30326 // debug statements here
30328 // uint16_t ChannelTransactionParameters_get_holder_selected_contest_delay(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
30330 export function ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr: bigint): number {
30331 if(!isWasmInitialized) {
30332 throw new Error("initializeWasm() must be awaited first!");
30334 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_holder_selected_contest_delay(this_ptr);
30335 return nativeResponseValue;
30337 // void ChannelTransactionParameters_set_holder_selected_contest_delay(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
30339 export function ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr: bigint, val: number): void {
30340 if(!isWasmInitialized) {
30341 throw new Error("initializeWasm() must be awaited first!");
30343 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_holder_selected_contest_delay(this_ptr, val);
30344 // debug statements here
30346 // bool ChannelTransactionParameters_get_is_outbound_from_holder(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
30348 export function ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr: bigint): boolean {
30349 if(!isWasmInitialized) {
30350 throw new Error("initializeWasm() must be awaited first!");
30352 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_is_outbound_from_holder(this_ptr);
30353 return nativeResponseValue;
30355 // void ChannelTransactionParameters_set_is_outbound_from_holder(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, bool val);
30357 export function ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr: bigint, val: boolean): void {
30358 if(!isWasmInitialized) {
30359 throw new Error("initializeWasm() must be awaited first!");
30361 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_is_outbound_from_holder(this_ptr, val);
30362 // debug statements here
30364 // struct LDKCounterpartyChannelTransactionParameters ChannelTransactionParameters_get_counterparty_parameters(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
30366 export function ChannelTransactionParameters_get_counterparty_parameters(this_ptr: bigint): bigint {
30367 if(!isWasmInitialized) {
30368 throw new Error("initializeWasm() must be awaited first!");
30370 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_counterparty_parameters(this_ptr);
30371 return nativeResponseValue;
30373 // void ChannelTransactionParameters_set_counterparty_parameters(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKCounterpartyChannelTransactionParameters val);
30375 export function ChannelTransactionParameters_set_counterparty_parameters(this_ptr: bigint, val: bigint): void {
30376 if(!isWasmInitialized) {
30377 throw new Error("initializeWasm() must be awaited first!");
30379 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_counterparty_parameters(this_ptr, val);
30380 // debug statements here
30382 // struct LDKOutPoint ChannelTransactionParameters_get_funding_outpoint(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
30384 export function ChannelTransactionParameters_get_funding_outpoint(this_ptr: bigint): bigint {
30385 if(!isWasmInitialized) {
30386 throw new Error("initializeWasm() must be awaited first!");
30388 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_funding_outpoint(this_ptr);
30389 return nativeResponseValue;
30391 // void ChannelTransactionParameters_set_funding_outpoint(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKOutPoint val);
30393 export function ChannelTransactionParameters_set_funding_outpoint(this_ptr: bigint, val: bigint): void {
30394 if(!isWasmInitialized) {
30395 throw new Error("initializeWasm() must be awaited first!");
30397 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_funding_outpoint(this_ptr, val);
30398 // debug statements here
30400 // enum LDKCOption_NoneZ ChannelTransactionParameters_get_opt_anchors(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
30402 export function ChannelTransactionParameters_get_opt_anchors(this_ptr: bigint): COption_NoneZ {
30403 if(!isWasmInitialized) {
30404 throw new Error("initializeWasm() must be awaited first!");
30406 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_opt_anchors(this_ptr);
30407 return nativeResponseValue;
30409 // void ChannelTransactionParameters_set_opt_anchors(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
30411 export function ChannelTransactionParameters_set_opt_anchors(this_ptr: bigint, val: COption_NoneZ): void {
30412 if(!isWasmInitialized) {
30413 throw new Error("initializeWasm() must be awaited first!");
30415 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_opt_anchors(this_ptr, val);
30416 // debug statements here
30418 // enum LDKCOption_NoneZ ChannelTransactionParameters_get_opt_non_zero_fee_anchors(const struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr);
30420 export function ChannelTransactionParameters_get_opt_non_zero_fee_anchors(this_ptr: bigint): COption_NoneZ {
30421 if(!isWasmInitialized) {
30422 throw new Error("initializeWasm() must be awaited first!");
30424 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_get_opt_non_zero_fee_anchors(this_ptr);
30425 return nativeResponseValue;
30427 // void ChannelTransactionParameters_set_opt_non_zero_fee_anchors(struct LDKChannelTransactionParameters *NONNULL_PTR this_ptr, enum LDKCOption_NoneZ val);
30429 export function ChannelTransactionParameters_set_opt_non_zero_fee_anchors(this_ptr: bigint, val: COption_NoneZ): void {
30430 if(!isWasmInitialized) {
30431 throw new Error("initializeWasm() must be awaited first!");
30433 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_set_opt_non_zero_fee_anchors(this_ptr, val);
30434 // debug statements here
30436 // MUST_USE_RES struct LDKChannelTransactionParameters ChannelTransactionParameters_new(struct LDKChannelPublicKeys holder_pubkeys_arg, uint16_t holder_selected_contest_delay_arg, bool is_outbound_from_holder_arg, struct LDKCounterpartyChannelTransactionParameters counterparty_parameters_arg, struct LDKOutPoint funding_outpoint_arg, enum LDKCOption_NoneZ opt_anchors_arg, enum LDKCOption_NoneZ opt_non_zero_fee_anchors_arg);
30438 export function ChannelTransactionParameters_new(holder_pubkeys_arg: bigint, holder_selected_contest_delay_arg: number, is_outbound_from_holder_arg: boolean, counterparty_parameters_arg: bigint, funding_outpoint_arg: bigint, opt_anchors_arg: COption_NoneZ, opt_non_zero_fee_anchors_arg: COption_NoneZ): bigint {
30439 if(!isWasmInitialized) {
30440 throw new Error("initializeWasm() must be awaited first!");
30442 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_new(holder_pubkeys_arg, holder_selected_contest_delay_arg, is_outbound_from_holder_arg, counterparty_parameters_arg, funding_outpoint_arg, opt_anchors_arg, opt_non_zero_fee_anchors_arg);
30443 return nativeResponseValue;
30445 // uint64_t ChannelTransactionParameters_clone_ptr(LDKChannelTransactionParameters *NONNULL_PTR arg);
30447 export function ChannelTransactionParameters_clone_ptr(arg: bigint): bigint {
30448 if(!isWasmInitialized) {
30449 throw new Error("initializeWasm() must be awaited first!");
30451 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone_ptr(arg);
30452 return nativeResponseValue;
30454 // struct LDKChannelTransactionParameters ChannelTransactionParameters_clone(const struct LDKChannelTransactionParameters *NONNULL_PTR orig);
30456 export function ChannelTransactionParameters_clone(orig: bigint): bigint {
30457 if(!isWasmInitialized) {
30458 throw new Error("initializeWasm() must be awaited first!");
30460 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_clone(orig);
30461 return nativeResponseValue;
30463 // bool ChannelTransactionParameters_eq(const struct LDKChannelTransactionParameters *NONNULL_PTR a, const struct LDKChannelTransactionParameters *NONNULL_PTR b);
30465 export function ChannelTransactionParameters_eq(a: bigint, b: bigint): boolean {
30466 if(!isWasmInitialized) {
30467 throw new Error("initializeWasm() must be awaited first!");
30469 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_eq(a, b);
30470 return nativeResponseValue;
30472 // void CounterpartyChannelTransactionParameters_free(struct LDKCounterpartyChannelTransactionParameters this_obj);
30474 export function CounterpartyChannelTransactionParameters_free(this_obj: bigint): void {
30475 if(!isWasmInitialized) {
30476 throw new Error("initializeWasm() must be awaited first!");
30478 const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_free(this_obj);
30479 // debug statements here
30481 // struct LDKChannelPublicKeys CounterpartyChannelTransactionParameters_get_pubkeys(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
30483 export function CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr: bigint): bigint {
30484 if(!isWasmInitialized) {
30485 throw new Error("initializeWasm() must be awaited first!");
30487 const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_pubkeys(this_ptr);
30488 return nativeResponseValue;
30490 // void CounterpartyChannelTransactionParameters_set_pubkeys(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, struct LDKChannelPublicKeys val);
30492 export function CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr: bigint, val: bigint): void {
30493 if(!isWasmInitialized) {
30494 throw new Error("initializeWasm() must be awaited first!");
30496 const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_pubkeys(this_ptr, val);
30497 // debug statements here
30499 // uint16_t CounterpartyChannelTransactionParameters_get_selected_contest_delay(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr);
30501 export function CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr: bigint): number {
30502 if(!isWasmInitialized) {
30503 throw new Error("initializeWasm() must be awaited first!");
30505 const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_get_selected_contest_delay(this_ptr);
30506 return nativeResponseValue;
30508 // void CounterpartyChannelTransactionParameters_set_selected_contest_delay(struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR this_ptr, uint16_t val);
30510 export function CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr: bigint, val: number): void {
30511 if(!isWasmInitialized) {
30512 throw new Error("initializeWasm() must be awaited first!");
30514 const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_set_selected_contest_delay(this_ptr, val);
30515 // debug statements here
30517 // MUST_USE_RES struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_new(struct LDKChannelPublicKeys pubkeys_arg, uint16_t selected_contest_delay_arg);
30519 export function CounterpartyChannelTransactionParameters_new(pubkeys_arg: bigint, selected_contest_delay_arg: number): bigint {
30520 if(!isWasmInitialized) {
30521 throw new Error("initializeWasm() must be awaited first!");
30523 const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_new(pubkeys_arg, selected_contest_delay_arg);
30524 return nativeResponseValue;
30526 // uint64_t CounterpartyChannelTransactionParameters_clone_ptr(LDKCounterpartyChannelTransactionParameters *NONNULL_PTR arg);
30528 export function CounterpartyChannelTransactionParameters_clone_ptr(arg: bigint): bigint {
30529 if(!isWasmInitialized) {
30530 throw new Error("initializeWasm() must be awaited first!");
30532 const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone_ptr(arg);
30533 return nativeResponseValue;
30535 // struct LDKCounterpartyChannelTransactionParameters CounterpartyChannelTransactionParameters_clone(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR orig);
30537 export function CounterpartyChannelTransactionParameters_clone(orig: bigint): bigint {
30538 if(!isWasmInitialized) {
30539 throw new Error("initializeWasm() must be awaited first!");
30541 const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_clone(orig);
30542 return nativeResponseValue;
30544 // bool CounterpartyChannelTransactionParameters_eq(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR a, const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR b);
30546 export function CounterpartyChannelTransactionParameters_eq(a: bigint, b: bigint): boolean {
30547 if(!isWasmInitialized) {
30548 throw new Error("initializeWasm() must be awaited first!");
30550 const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_eq(a, b);
30551 return nativeResponseValue;
30553 // MUST_USE_RES bool ChannelTransactionParameters_is_populated(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
30555 export function ChannelTransactionParameters_is_populated(this_arg: bigint): boolean {
30556 if(!isWasmInitialized) {
30557 throw new Error("initializeWasm() must be awaited first!");
30559 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_is_populated(this_arg);
30560 return nativeResponseValue;
30562 // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_holder_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
30564 export function ChannelTransactionParameters_as_holder_broadcastable(this_arg: bigint): bigint {
30565 if(!isWasmInitialized) {
30566 throw new Error("initializeWasm() must be awaited first!");
30568 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_holder_broadcastable(this_arg);
30569 return nativeResponseValue;
30571 // MUST_USE_RES struct LDKDirectedChannelTransactionParameters ChannelTransactionParameters_as_counterparty_broadcastable(const struct LDKChannelTransactionParameters *NONNULL_PTR this_arg);
30573 export function ChannelTransactionParameters_as_counterparty_broadcastable(this_arg: bigint): bigint {
30574 if(!isWasmInitialized) {
30575 throw new Error("initializeWasm() must be awaited first!");
30577 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_as_counterparty_broadcastable(this_arg);
30578 return nativeResponseValue;
30580 // struct LDKCVec_u8Z CounterpartyChannelTransactionParameters_write(const struct LDKCounterpartyChannelTransactionParameters *NONNULL_PTR obj);
30582 export function CounterpartyChannelTransactionParameters_write(obj: bigint): number {
30583 if(!isWasmInitialized) {
30584 throw new Error("initializeWasm() must be awaited first!");
30586 const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_write(obj);
30587 return nativeResponseValue;
30589 // struct LDKCResult_CounterpartyChannelTransactionParametersDecodeErrorZ CounterpartyChannelTransactionParameters_read(struct LDKu8slice ser);
30591 export function CounterpartyChannelTransactionParameters_read(ser: number): bigint {
30592 if(!isWasmInitialized) {
30593 throw new Error("initializeWasm() must be awaited first!");
30595 const nativeResponseValue = wasm.TS_CounterpartyChannelTransactionParameters_read(ser);
30596 return nativeResponseValue;
30598 // struct LDKCVec_u8Z ChannelTransactionParameters_write(const struct LDKChannelTransactionParameters *NONNULL_PTR obj);
30600 export function ChannelTransactionParameters_write(obj: bigint): number {
30601 if(!isWasmInitialized) {
30602 throw new Error("initializeWasm() must be awaited first!");
30604 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_write(obj);
30605 return nativeResponseValue;
30607 // struct LDKCResult_ChannelTransactionParametersDecodeErrorZ ChannelTransactionParameters_read(struct LDKu8slice ser);
30609 export function ChannelTransactionParameters_read(ser: number): bigint {
30610 if(!isWasmInitialized) {
30611 throw new Error("initializeWasm() must be awaited first!");
30613 const nativeResponseValue = wasm.TS_ChannelTransactionParameters_read(ser);
30614 return nativeResponseValue;
30616 // void DirectedChannelTransactionParameters_free(struct LDKDirectedChannelTransactionParameters this_obj);
30618 export function DirectedChannelTransactionParameters_free(this_obj: bigint): void {
30619 if(!isWasmInitialized) {
30620 throw new Error("initializeWasm() must be awaited first!");
30622 const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_free(this_obj);
30623 // debug statements here
30625 // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_broadcaster_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
30627 export function DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg: bigint): bigint {
30628 if(!isWasmInitialized) {
30629 throw new Error("initializeWasm() must be awaited first!");
30631 const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_broadcaster_pubkeys(this_arg);
30632 return nativeResponseValue;
30634 // MUST_USE_RES struct LDKChannelPublicKeys DirectedChannelTransactionParameters_countersignatory_pubkeys(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
30636 export function DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg: bigint): bigint {
30637 if(!isWasmInitialized) {
30638 throw new Error("initializeWasm() must be awaited first!");
30640 const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_countersignatory_pubkeys(this_arg);
30641 return nativeResponseValue;
30643 // MUST_USE_RES uint16_t DirectedChannelTransactionParameters_contest_delay(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
30645 export function DirectedChannelTransactionParameters_contest_delay(this_arg: bigint): number {
30646 if(!isWasmInitialized) {
30647 throw new Error("initializeWasm() must be awaited first!");
30649 const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_contest_delay(this_arg);
30650 return nativeResponseValue;
30652 // MUST_USE_RES bool DirectedChannelTransactionParameters_is_outbound(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
30654 export function DirectedChannelTransactionParameters_is_outbound(this_arg: bigint): boolean {
30655 if(!isWasmInitialized) {
30656 throw new Error("initializeWasm() must be awaited first!");
30658 const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_is_outbound(this_arg);
30659 return nativeResponseValue;
30661 // MUST_USE_RES struct LDKOutPoint DirectedChannelTransactionParameters_funding_outpoint(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
30663 export function DirectedChannelTransactionParameters_funding_outpoint(this_arg: bigint): bigint {
30664 if(!isWasmInitialized) {
30665 throw new Error("initializeWasm() must be awaited first!");
30667 const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_funding_outpoint(this_arg);
30668 return nativeResponseValue;
30670 // MUST_USE_RES bool DirectedChannelTransactionParameters_opt_anchors(const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR this_arg);
30672 export function DirectedChannelTransactionParameters_opt_anchors(this_arg: bigint): boolean {
30673 if(!isWasmInitialized) {
30674 throw new Error("initializeWasm() must be awaited first!");
30676 const nativeResponseValue = wasm.TS_DirectedChannelTransactionParameters_opt_anchors(this_arg);
30677 return nativeResponseValue;
30679 // void HolderCommitmentTransaction_free(struct LDKHolderCommitmentTransaction this_obj);
30681 export function HolderCommitmentTransaction_free(this_obj: bigint): void {
30682 if(!isWasmInitialized) {
30683 throw new Error("initializeWasm() must be awaited first!");
30685 const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_free(this_obj);
30686 // debug statements here
30688 // struct LDKSignature HolderCommitmentTransaction_get_counterparty_sig(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
30690 export function HolderCommitmentTransaction_get_counterparty_sig(this_ptr: bigint): number {
30691 if(!isWasmInitialized) {
30692 throw new Error("initializeWasm() must be awaited first!");
30694 const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_get_counterparty_sig(this_ptr);
30695 return nativeResponseValue;
30697 // void HolderCommitmentTransaction_set_counterparty_sig(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKSignature val);
30699 export function HolderCommitmentTransaction_set_counterparty_sig(this_ptr: bigint, val: number): void {
30700 if(!isWasmInitialized) {
30701 throw new Error("initializeWasm() must be awaited first!");
30703 const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_sig(this_ptr, val);
30704 // debug statements here
30706 // struct LDKCVec_SignatureZ HolderCommitmentTransaction_get_counterparty_htlc_sigs(const struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr);
30708 export function HolderCommitmentTransaction_get_counterparty_htlc_sigs(this_ptr: bigint): number {
30709 if(!isWasmInitialized) {
30710 throw new Error("initializeWasm() must be awaited first!");
30712 const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_get_counterparty_htlc_sigs(this_ptr);
30713 return nativeResponseValue;
30715 // void HolderCommitmentTransaction_set_counterparty_htlc_sigs(struct LDKHolderCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKCVec_SignatureZ val);
30717 export function HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr: bigint, val: number): void {
30718 if(!isWasmInitialized) {
30719 throw new Error("initializeWasm() must be awaited first!");
30721 const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_set_counterparty_htlc_sigs(this_ptr, val);
30722 // debug statements here
30724 // uint64_t HolderCommitmentTransaction_clone_ptr(LDKHolderCommitmentTransaction *NONNULL_PTR arg);
30726 export function HolderCommitmentTransaction_clone_ptr(arg: bigint): bigint {
30727 if(!isWasmInitialized) {
30728 throw new Error("initializeWasm() must be awaited first!");
30730 const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone_ptr(arg);
30731 return nativeResponseValue;
30733 // struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_clone(const struct LDKHolderCommitmentTransaction *NONNULL_PTR orig);
30735 export function HolderCommitmentTransaction_clone(orig: bigint): bigint {
30736 if(!isWasmInitialized) {
30737 throw new Error("initializeWasm() must be awaited first!");
30739 const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_clone(orig);
30740 return nativeResponseValue;
30742 // struct LDKCVec_u8Z HolderCommitmentTransaction_write(const struct LDKHolderCommitmentTransaction *NONNULL_PTR obj);
30744 export function HolderCommitmentTransaction_write(obj: bigint): number {
30745 if(!isWasmInitialized) {
30746 throw new Error("initializeWasm() must be awaited first!");
30748 const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_write(obj);
30749 return nativeResponseValue;
30751 // struct LDKCResult_HolderCommitmentTransactionDecodeErrorZ HolderCommitmentTransaction_read(struct LDKu8slice ser);
30753 export function HolderCommitmentTransaction_read(ser: number): bigint {
30754 if(!isWasmInitialized) {
30755 throw new Error("initializeWasm() must be awaited first!");
30757 const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_read(ser);
30758 return nativeResponseValue;
30760 // MUST_USE_RES struct LDKHolderCommitmentTransaction HolderCommitmentTransaction_new(struct LDKCommitmentTransaction commitment_tx, struct LDKSignature counterparty_sig, struct LDKCVec_SignatureZ counterparty_htlc_sigs, struct LDKPublicKey holder_funding_key, struct LDKPublicKey counterparty_funding_key);
30762 export function HolderCommitmentTransaction_new(commitment_tx: bigint, counterparty_sig: number, counterparty_htlc_sigs: number, holder_funding_key: number, counterparty_funding_key: number): bigint {
30763 if(!isWasmInitialized) {
30764 throw new Error("initializeWasm() must be awaited first!");
30766 const nativeResponseValue = wasm.TS_HolderCommitmentTransaction_new(commitment_tx, counterparty_sig, counterparty_htlc_sigs, holder_funding_key, counterparty_funding_key);
30767 return nativeResponseValue;
30769 // void BuiltCommitmentTransaction_free(struct LDKBuiltCommitmentTransaction this_obj);
30771 export function BuiltCommitmentTransaction_free(this_obj: bigint): void {
30772 if(!isWasmInitialized) {
30773 throw new Error("initializeWasm() must be awaited first!");
30775 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_free(this_obj);
30776 // debug statements here
30778 // struct LDKTransaction BuiltCommitmentTransaction_get_transaction(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr);
30780 export function BuiltCommitmentTransaction_get_transaction(this_ptr: bigint): number {
30781 if(!isWasmInitialized) {
30782 throw new Error("initializeWasm() must be awaited first!");
30784 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_transaction(this_ptr);
30785 return nativeResponseValue;
30787 // void BuiltCommitmentTransaction_set_transaction(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKTransaction val);
30789 export function BuiltCommitmentTransaction_set_transaction(this_ptr: bigint, val: number): void {
30790 if(!isWasmInitialized) {
30791 throw new Error("initializeWasm() must be awaited first!");
30793 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_transaction(this_ptr, val);
30794 // debug statements here
30796 // const uint8_t (*BuiltCommitmentTransaction_get_txid(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr))[32];
30798 export function BuiltCommitmentTransaction_get_txid(this_ptr: bigint): number {
30799 if(!isWasmInitialized) {
30800 throw new Error("initializeWasm() must be awaited first!");
30802 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_txid(this_ptr);
30803 return nativeResponseValue;
30805 // void BuiltCommitmentTransaction_set_txid(struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
30807 export function BuiltCommitmentTransaction_set_txid(this_ptr: bigint, val: number): void {
30808 if(!isWasmInitialized) {
30809 throw new Error("initializeWasm() must be awaited first!");
30811 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_set_txid(this_ptr, val);
30812 // debug statements here
30814 // MUST_USE_RES struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_new(struct LDKTransaction transaction_arg, struct LDKThirtyTwoBytes txid_arg);
30816 export function BuiltCommitmentTransaction_new(transaction_arg: number, txid_arg: number): bigint {
30817 if(!isWasmInitialized) {
30818 throw new Error("initializeWasm() must be awaited first!");
30820 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_new(transaction_arg, txid_arg);
30821 return nativeResponseValue;
30823 // uint64_t BuiltCommitmentTransaction_clone_ptr(LDKBuiltCommitmentTransaction *NONNULL_PTR arg);
30825 export function BuiltCommitmentTransaction_clone_ptr(arg: bigint): bigint {
30826 if(!isWasmInitialized) {
30827 throw new Error("initializeWasm() must be awaited first!");
30829 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone_ptr(arg);
30830 return nativeResponseValue;
30832 // struct LDKBuiltCommitmentTransaction BuiltCommitmentTransaction_clone(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR orig);
30834 export function BuiltCommitmentTransaction_clone(orig: bigint): bigint {
30835 if(!isWasmInitialized) {
30836 throw new Error("initializeWasm() must be awaited first!");
30838 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_clone(orig);
30839 return nativeResponseValue;
30841 // struct LDKCVec_u8Z BuiltCommitmentTransaction_write(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR obj);
30843 export function BuiltCommitmentTransaction_write(obj: bigint): number {
30844 if(!isWasmInitialized) {
30845 throw new Error("initializeWasm() must be awaited first!");
30847 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_write(obj);
30848 return nativeResponseValue;
30850 // struct LDKCResult_BuiltCommitmentTransactionDecodeErrorZ BuiltCommitmentTransaction_read(struct LDKu8slice ser);
30852 export function BuiltCommitmentTransaction_read(ser: number): bigint {
30853 if(!isWasmInitialized) {
30854 throw new Error("initializeWasm() must be awaited first!");
30856 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_read(ser);
30857 return nativeResponseValue;
30859 // MUST_USE_RES struct LDKThirtyTwoBytes BuiltCommitmentTransaction_get_sighash_all(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
30861 export function BuiltCommitmentTransaction_get_sighash_all(this_arg: bigint, funding_redeemscript: number, channel_value_satoshis: bigint): number {
30862 if(!isWasmInitialized) {
30863 throw new Error("initializeWasm() must be awaited first!");
30865 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
30866 return nativeResponseValue;
30868 // MUST_USE_RES struct LDKSignature BuiltCommitmentTransaction_sign_counterparty_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
30870 export function BuiltCommitmentTransaction_sign_counterparty_commitment(this_arg: bigint, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
30871 if(!isWasmInitialized) {
30872 throw new Error("initializeWasm() must be awaited first!");
30874 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_sign_counterparty_commitment(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
30875 return nativeResponseValue;
30877 // MUST_USE_RES struct LDKSignature BuiltCommitmentTransaction_sign_holder_commitment(const struct LDKBuiltCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis, const struct LDKEntropySource *NONNULL_PTR entropy_source);
30879 export function BuiltCommitmentTransaction_sign_holder_commitment(this_arg: bigint, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint, entropy_source: bigint): number {
30880 if(!isWasmInitialized) {
30881 throw new Error("initializeWasm() must be awaited first!");
30883 const nativeResponseValue = wasm.TS_BuiltCommitmentTransaction_sign_holder_commitment(this_arg, funding_key, funding_redeemscript, channel_value_satoshis, entropy_source);
30884 return nativeResponseValue;
30886 // void ClosingTransaction_free(struct LDKClosingTransaction this_obj);
30888 export function ClosingTransaction_free(this_obj: bigint): void {
30889 if(!isWasmInitialized) {
30890 throw new Error("initializeWasm() must be awaited first!");
30892 const nativeResponseValue = wasm.TS_ClosingTransaction_free(this_obj);
30893 // debug statements here
30895 // uint64_t ClosingTransaction_clone_ptr(LDKClosingTransaction *NONNULL_PTR arg);
30897 export function ClosingTransaction_clone_ptr(arg: bigint): bigint {
30898 if(!isWasmInitialized) {
30899 throw new Error("initializeWasm() must be awaited first!");
30901 const nativeResponseValue = wasm.TS_ClosingTransaction_clone_ptr(arg);
30902 return nativeResponseValue;
30904 // struct LDKClosingTransaction ClosingTransaction_clone(const struct LDKClosingTransaction *NONNULL_PTR orig);
30906 export function ClosingTransaction_clone(orig: bigint): bigint {
30907 if(!isWasmInitialized) {
30908 throw new Error("initializeWasm() must be awaited first!");
30910 const nativeResponseValue = wasm.TS_ClosingTransaction_clone(orig);
30911 return nativeResponseValue;
30913 // uint64_t ClosingTransaction_hash(const struct LDKClosingTransaction *NONNULL_PTR o);
30915 export function ClosingTransaction_hash(o: bigint): bigint {
30916 if(!isWasmInitialized) {
30917 throw new Error("initializeWasm() must be awaited first!");
30919 const nativeResponseValue = wasm.TS_ClosingTransaction_hash(o);
30920 return nativeResponseValue;
30922 // bool ClosingTransaction_eq(const struct LDKClosingTransaction *NONNULL_PTR a, const struct LDKClosingTransaction *NONNULL_PTR b);
30924 export function ClosingTransaction_eq(a: bigint, b: bigint): boolean {
30925 if(!isWasmInitialized) {
30926 throw new Error("initializeWasm() must be awaited first!");
30928 const nativeResponseValue = wasm.TS_ClosingTransaction_eq(a, b);
30929 return nativeResponseValue;
30931 // MUST_USE_RES struct LDKClosingTransaction ClosingTransaction_new(uint64_t to_holder_value_sat, uint64_t to_counterparty_value_sat, struct LDKCVec_u8Z to_holder_script, struct LDKCVec_u8Z to_counterparty_script, struct LDKOutPoint funding_outpoint);
30933 export function ClosingTransaction_new(to_holder_value_sat: bigint, to_counterparty_value_sat: bigint, to_holder_script: number, to_counterparty_script: number, funding_outpoint: bigint): bigint {
30934 if(!isWasmInitialized) {
30935 throw new Error("initializeWasm() must be awaited first!");
30937 const nativeResponseValue = wasm.TS_ClosingTransaction_new(to_holder_value_sat, to_counterparty_value_sat, to_holder_script, to_counterparty_script, funding_outpoint);
30938 return nativeResponseValue;
30940 // MUST_USE_RES struct LDKTrustedClosingTransaction ClosingTransaction_trust(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
30942 export function ClosingTransaction_trust(this_arg: bigint): bigint {
30943 if(!isWasmInitialized) {
30944 throw new Error("initializeWasm() must be awaited first!");
30946 const nativeResponseValue = wasm.TS_ClosingTransaction_trust(this_arg);
30947 return nativeResponseValue;
30949 // MUST_USE_RES struct LDKCResult_TrustedClosingTransactionNoneZ ClosingTransaction_verify(const struct LDKClosingTransaction *NONNULL_PTR this_arg, struct LDKOutPoint funding_outpoint);
30951 export function ClosingTransaction_verify(this_arg: bigint, funding_outpoint: bigint): bigint {
30952 if(!isWasmInitialized) {
30953 throw new Error("initializeWasm() must be awaited first!");
30955 const nativeResponseValue = wasm.TS_ClosingTransaction_verify(this_arg, funding_outpoint);
30956 return nativeResponseValue;
30958 // MUST_USE_RES uint64_t ClosingTransaction_to_holder_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
30960 export function ClosingTransaction_to_holder_value_sat(this_arg: bigint): bigint {
30961 if(!isWasmInitialized) {
30962 throw new Error("initializeWasm() must be awaited first!");
30964 const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_value_sat(this_arg);
30965 return nativeResponseValue;
30967 // MUST_USE_RES uint64_t ClosingTransaction_to_counterparty_value_sat(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
30969 export function ClosingTransaction_to_counterparty_value_sat(this_arg: bigint): bigint {
30970 if(!isWasmInitialized) {
30971 throw new Error("initializeWasm() must be awaited first!");
30973 const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_value_sat(this_arg);
30974 return nativeResponseValue;
30976 // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_holder_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
30978 export function ClosingTransaction_to_holder_script(this_arg: bigint): number {
30979 if(!isWasmInitialized) {
30980 throw new Error("initializeWasm() must be awaited first!");
30982 const nativeResponseValue = wasm.TS_ClosingTransaction_to_holder_script(this_arg);
30983 return nativeResponseValue;
30985 // MUST_USE_RES struct LDKu8slice ClosingTransaction_to_counterparty_script(const struct LDKClosingTransaction *NONNULL_PTR this_arg);
30987 export function ClosingTransaction_to_counterparty_script(this_arg: bigint): number {
30988 if(!isWasmInitialized) {
30989 throw new Error("initializeWasm() must be awaited first!");
30991 const nativeResponseValue = wasm.TS_ClosingTransaction_to_counterparty_script(this_arg);
30992 return nativeResponseValue;
30994 // void TrustedClosingTransaction_free(struct LDKTrustedClosingTransaction this_obj);
30996 export function TrustedClosingTransaction_free(this_obj: bigint): void {
30997 if(!isWasmInitialized) {
30998 throw new Error("initializeWasm() must be awaited first!");
31000 const nativeResponseValue = wasm.TS_TrustedClosingTransaction_free(this_obj);
31001 // debug statements here
31003 // MUST_USE_RES struct LDKTransaction TrustedClosingTransaction_built_transaction(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg);
31005 export function TrustedClosingTransaction_built_transaction(this_arg: bigint): number {
31006 if(!isWasmInitialized) {
31007 throw new Error("initializeWasm() must be awaited first!");
31009 const nativeResponseValue = wasm.TS_TrustedClosingTransaction_built_transaction(this_arg);
31010 return nativeResponseValue;
31012 // MUST_USE_RES struct LDKThirtyTwoBytes TrustedClosingTransaction_get_sighash_all(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
31014 export function TrustedClosingTransaction_get_sighash_all(this_arg: bigint, funding_redeemscript: number, channel_value_satoshis: bigint): number {
31015 if(!isWasmInitialized) {
31016 throw new Error("initializeWasm() must be awaited first!");
31018 const nativeResponseValue = wasm.TS_TrustedClosingTransaction_get_sighash_all(this_arg, funding_redeemscript, channel_value_satoshis);
31019 return nativeResponseValue;
31021 // MUST_USE_RES struct LDKSignature TrustedClosingTransaction_sign(const struct LDKTrustedClosingTransaction *NONNULL_PTR this_arg, const uint8_t (*funding_key)[32], struct LDKu8slice funding_redeemscript, uint64_t channel_value_satoshis);
31023 export function TrustedClosingTransaction_sign(this_arg: bigint, funding_key: number, funding_redeemscript: number, channel_value_satoshis: bigint): number {
31024 if(!isWasmInitialized) {
31025 throw new Error("initializeWasm() must be awaited first!");
31027 const nativeResponseValue = wasm.TS_TrustedClosingTransaction_sign(this_arg, funding_key, funding_redeemscript, channel_value_satoshis);
31028 return nativeResponseValue;
31030 // void CommitmentTransaction_free(struct LDKCommitmentTransaction this_obj);
31032 export function CommitmentTransaction_free(this_obj: bigint): void {
31033 if(!isWasmInitialized) {
31034 throw new Error("initializeWasm() must be awaited first!");
31036 const nativeResponseValue = wasm.TS_CommitmentTransaction_free(this_obj);
31037 // debug statements here
31039 // uint64_t CommitmentTransaction_clone_ptr(LDKCommitmentTransaction *NONNULL_PTR arg);
31041 export function CommitmentTransaction_clone_ptr(arg: bigint): bigint {
31042 if(!isWasmInitialized) {
31043 throw new Error("initializeWasm() must be awaited first!");
31045 const nativeResponseValue = wasm.TS_CommitmentTransaction_clone_ptr(arg);
31046 return nativeResponseValue;
31048 // struct LDKCommitmentTransaction CommitmentTransaction_clone(const struct LDKCommitmentTransaction *NONNULL_PTR orig);
31050 export function CommitmentTransaction_clone(orig: bigint): bigint {
31051 if(!isWasmInitialized) {
31052 throw new Error("initializeWasm() must be awaited first!");
31054 const nativeResponseValue = wasm.TS_CommitmentTransaction_clone(orig);
31055 return nativeResponseValue;
31057 // struct LDKCVec_u8Z CommitmentTransaction_write(const struct LDKCommitmentTransaction *NONNULL_PTR obj);
31059 export function CommitmentTransaction_write(obj: bigint): number {
31060 if(!isWasmInitialized) {
31061 throw new Error("initializeWasm() must be awaited first!");
31063 const nativeResponseValue = wasm.TS_CommitmentTransaction_write(obj);
31064 return nativeResponseValue;
31066 // struct LDKCResult_CommitmentTransactionDecodeErrorZ CommitmentTransaction_read(struct LDKu8slice ser);
31068 export function CommitmentTransaction_read(ser: number): bigint {
31069 if(!isWasmInitialized) {
31070 throw new Error("initializeWasm() must be awaited first!");
31072 const nativeResponseValue = wasm.TS_CommitmentTransaction_read(ser);
31073 return nativeResponseValue;
31075 // MUST_USE_RES uint64_t CommitmentTransaction_commitment_number(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
31077 export function CommitmentTransaction_commitment_number(this_arg: bigint): bigint {
31078 if(!isWasmInitialized) {
31079 throw new Error("initializeWasm() must be awaited first!");
31081 const nativeResponseValue = wasm.TS_CommitmentTransaction_commitment_number(this_arg);
31082 return nativeResponseValue;
31084 // MUST_USE_RES uint64_t CommitmentTransaction_to_broadcaster_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
31086 export function CommitmentTransaction_to_broadcaster_value_sat(this_arg: bigint): bigint {
31087 if(!isWasmInitialized) {
31088 throw new Error("initializeWasm() must be awaited first!");
31090 const nativeResponseValue = wasm.TS_CommitmentTransaction_to_broadcaster_value_sat(this_arg);
31091 return nativeResponseValue;
31093 // MUST_USE_RES uint64_t CommitmentTransaction_to_countersignatory_value_sat(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
31095 export function CommitmentTransaction_to_countersignatory_value_sat(this_arg: bigint): bigint {
31096 if(!isWasmInitialized) {
31097 throw new Error("initializeWasm() must be awaited first!");
31099 const nativeResponseValue = wasm.TS_CommitmentTransaction_to_countersignatory_value_sat(this_arg);
31100 return nativeResponseValue;
31102 // MUST_USE_RES uint32_t CommitmentTransaction_feerate_per_kw(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
31104 export function CommitmentTransaction_feerate_per_kw(this_arg: bigint): number {
31105 if(!isWasmInitialized) {
31106 throw new Error("initializeWasm() must be awaited first!");
31108 const nativeResponseValue = wasm.TS_CommitmentTransaction_feerate_per_kw(this_arg);
31109 return nativeResponseValue;
31111 // MUST_USE_RES struct LDKTrustedCommitmentTransaction CommitmentTransaction_trust(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg);
31113 export function CommitmentTransaction_trust(this_arg: bigint): bigint {
31114 if(!isWasmInitialized) {
31115 throw new Error("initializeWasm() must be awaited first!");
31117 const nativeResponseValue = wasm.TS_CommitmentTransaction_trust(this_arg);
31118 return nativeResponseValue;
31120 // MUST_USE_RES struct LDKCResult_TrustedCommitmentTransactionNoneZ CommitmentTransaction_verify(const struct LDKCommitmentTransaction *NONNULL_PTR this_arg, const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKChannelPublicKeys *NONNULL_PTR broadcaster_keys, const struct LDKChannelPublicKeys *NONNULL_PTR countersignatory_keys);
31122 export function CommitmentTransaction_verify(this_arg: bigint, channel_parameters: bigint, broadcaster_keys: bigint, countersignatory_keys: bigint): bigint {
31123 if(!isWasmInitialized) {
31124 throw new Error("initializeWasm() must be awaited first!");
31126 const nativeResponseValue = wasm.TS_CommitmentTransaction_verify(this_arg, channel_parameters, broadcaster_keys, countersignatory_keys);
31127 return nativeResponseValue;
31129 // void TrustedCommitmentTransaction_free(struct LDKTrustedCommitmentTransaction this_obj);
31131 export function TrustedCommitmentTransaction_free(this_obj: bigint): void {
31132 if(!isWasmInitialized) {
31133 throw new Error("initializeWasm() must be awaited first!");
31135 const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_free(this_obj);
31136 // debug statements here
31138 // MUST_USE_RES struct LDKThirtyTwoBytes TrustedCommitmentTransaction_txid(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
31140 export function TrustedCommitmentTransaction_txid(this_arg: bigint): number {
31141 if(!isWasmInitialized) {
31142 throw new Error("initializeWasm() must be awaited first!");
31144 const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_txid(this_arg);
31145 return nativeResponseValue;
31147 // MUST_USE_RES struct LDKBuiltCommitmentTransaction TrustedCommitmentTransaction_built_transaction(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
31149 export function TrustedCommitmentTransaction_built_transaction(this_arg: bigint): bigint {
31150 if(!isWasmInitialized) {
31151 throw new Error("initializeWasm() must be awaited first!");
31153 const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_built_transaction(this_arg);
31154 return nativeResponseValue;
31156 // MUST_USE_RES struct LDKTxCreationKeys TrustedCommitmentTransaction_keys(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
31158 export function TrustedCommitmentTransaction_keys(this_arg: bigint): bigint {
31159 if(!isWasmInitialized) {
31160 throw new Error("initializeWasm() must be awaited first!");
31162 const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_keys(this_arg);
31163 return nativeResponseValue;
31165 // MUST_USE_RES bool TrustedCommitmentTransaction_opt_anchors(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg);
31167 export function TrustedCommitmentTransaction_opt_anchors(this_arg: bigint): boolean {
31168 if(!isWasmInitialized) {
31169 throw new Error("initializeWasm() must be awaited first!");
31171 const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_opt_anchors(this_arg);
31172 return nativeResponseValue;
31174 // MUST_USE_RES struct LDKCResult_CVec_SignatureZNoneZ TrustedCommitmentTransaction_get_htlc_sigs(const struct LDKTrustedCommitmentTransaction *NONNULL_PTR this_arg, const uint8_t (*htlc_base_key)[32], const struct LDKDirectedChannelTransactionParameters *NONNULL_PTR channel_parameters, const struct LDKEntropySource *NONNULL_PTR entropy_source);
31176 export function TrustedCommitmentTransaction_get_htlc_sigs(this_arg: bigint, htlc_base_key: number, channel_parameters: bigint, entropy_source: bigint): bigint {
31177 if(!isWasmInitialized) {
31178 throw new Error("initializeWasm() must be awaited first!");
31180 const nativeResponseValue = wasm.TS_TrustedCommitmentTransaction_get_htlc_sigs(this_arg, htlc_base_key, channel_parameters, entropy_source);
31181 return nativeResponseValue;
31183 // uint64_t get_commitment_transaction_number_obscure_factor(struct LDKPublicKey broadcaster_payment_basepoint, struct LDKPublicKey countersignatory_payment_basepoint, bool outbound_from_broadcaster);
31185 export function get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint: number, countersignatory_payment_basepoint: number, outbound_from_broadcaster: boolean): bigint {
31186 if(!isWasmInitialized) {
31187 throw new Error("initializeWasm() must be awaited first!");
31189 const nativeResponseValue = wasm.TS_get_commitment_transaction_number_obscure_factor(broadcaster_payment_basepoint, countersignatory_payment_basepoint, outbound_from_broadcaster);
31190 return nativeResponseValue;
31192 // bool InitFeatures_eq(const struct LDKInitFeatures *NONNULL_PTR a, const struct LDKInitFeatures *NONNULL_PTR b);
31194 export function InitFeatures_eq(a: bigint, b: bigint): boolean {
31195 if(!isWasmInitialized) {
31196 throw new Error("initializeWasm() must be awaited first!");
31198 const nativeResponseValue = wasm.TS_InitFeatures_eq(a, b);
31199 return nativeResponseValue;
31201 // bool NodeFeatures_eq(const struct LDKNodeFeatures *NONNULL_PTR a, const struct LDKNodeFeatures *NONNULL_PTR b);
31203 export function NodeFeatures_eq(a: bigint, b: bigint): boolean {
31204 if(!isWasmInitialized) {
31205 throw new Error("initializeWasm() must be awaited first!");
31207 const nativeResponseValue = wasm.TS_NodeFeatures_eq(a, b);
31208 return nativeResponseValue;
31210 // bool ChannelFeatures_eq(const struct LDKChannelFeatures *NONNULL_PTR a, const struct LDKChannelFeatures *NONNULL_PTR b);
31212 export function ChannelFeatures_eq(a: bigint, b: bigint): boolean {
31213 if(!isWasmInitialized) {
31214 throw new Error("initializeWasm() must be awaited first!");
31216 const nativeResponseValue = wasm.TS_ChannelFeatures_eq(a, b);
31217 return nativeResponseValue;
31219 // bool InvoiceFeatures_eq(const struct LDKInvoiceFeatures *NONNULL_PTR a, const struct LDKInvoiceFeatures *NONNULL_PTR b);
31221 export function InvoiceFeatures_eq(a: bigint, b: bigint): boolean {
31222 if(!isWasmInitialized) {
31223 throw new Error("initializeWasm() must be awaited first!");
31225 const nativeResponseValue = wasm.TS_InvoiceFeatures_eq(a, b);
31226 return nativeResponseValue;
31228 // bool OfferFeatures_eq(const struct LDKOfferFeatures *NONNULL_PTR a, const struct LDKOfferFeatures *NONNULL_PTR b);
31230 export function OfferFeatures_eq(a: bigint, b: bigint): boolean {
31231 if(!isWasmInitialized) {
31232 throw new Error("initializeWasm() must be awaited first!");
31234 const nativeResponseValue = wasm.TS_OfferFeatures_eq(a, b);
31235 return nativeResponseValue;
31237 // bool InvoiceRequestFeatures_eq(const struct LDKInvoiceRequestFeatures *NONNULL_PTR a, const struct LDKInvoiceRequestFeatures *NONNULL_PTR b);
31239 export function InvoiceRequestFeatures_eq(a: bigint, b: bigint): boolean {
31240 if(!isWasmInitialized) {
31241 throw new Error("initializeWasm() must be awaited first!");
31243 const nativeResponseValue = wasm.TS_InvoiceRequestFeatures_eq(a, b);
31244 return nativeResponseValue;
31246 // bool Bolt12InvoiceFeatures_eq(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR a, const struct LDKBolt12InvoiceFeatures *NONNULL_PTR b);
31248 export function Bolt12InvoiceFeatures_eq(a: bigint, b: bigint): boolean {
31249 if(!isWasmInitialized) {
31250 throw new Error("initializeWasm() must be awaited first!");
31252 const nativeResponseValue = wasm.TS_Bolt12InvoiceFeatures_eq(a, b);
31253 return nativeResponseValue;
31255 // bool BlindedHopFeatures_eq(const struct LDKBlindedHopFeatures *NONNULL_PTR a, const struct LDKBlindedHopFeatures *NONNULL_PTR b);
31257 export function BlindedHopFeatures_eq(a: bigint, b: bigint): boolean {
31258 if(!isWasmInitialized) {
31259 throw new Error("initializeWasm() must be awaited first!");
31261 const nativeResponseValue = wasm.TS_BlindedHopFeatures_eq(a, b);
31262 return nativeResponseValue;
31264 // bool ChannelTypeFeatures_eq(const struct LDKChannelTypeFeatures *NONNULL_PTR a, const struct LDKChannelTypeFeatures *NONNULL_PTR b);
31266 export function ChannelTypeFeatures_eq(a: bigint, b: bigint): boolean {
31267 if(!isWasmInitialized) {
31268 throw new Error("initializeWasm() must be awaited first!");
31270 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_eq(a, b);
31271 return nativeResponseValue;
31273 // uint64_t InitFeatures_clone_ptr(LDKInitFeatures *NONNULL_PTR arg);
31275 export function InitFeatures_clone_ptr(arg: bigint): bigint {
31276 if(!isWasmInitialized) {
31277 throw new Error("initializeWasm() must be awaited first!");
31279 const nativeResponseValue = wasm.TS_InitFeatures_clone_ptr(arg);
31280 return nativeResponseValue;
31282 // struct LDKInitFeatures InitFeatures_clone(const struct LDKInitFeatures *NONNULL_PTR orig);
31284 export function InitFeatures_clone(orig: bigint): bigint {
31285 if(!isWasmInitialized) {
31286 throw new Error("initializeWasm() must be awaited first!");
31288 const nativeResponseValue = wasm.TS_InitFeatures_clone(orig);
31289 return nativeResponseValue;
31291 // uint64_t NodeFeatures_clone_ptr(LDKNodeFeatures *NONNULL_PTR arg);
31293 export function NodeFeatures_clone_ptr(arg: bigint): bigint {
31294 if(!isWasmInitialized) {
31295 throw new Error("initializeWasm() must be awaited first!");
31297 const nativeResponseValue = wasm.TS_NodeFeatures_clone_ptr(arg);
31298 return nativeResponseValue;
31300 // struct LDKNodeFeatures NodeFeatures_clone(const struct LDKNodeFeatures *NONNULL_PTR orig);
31302 export function NodeFeatures_clone(orig: bigint): bigint {
31303 if(!isWasmInitialized) {
31304 throw new Error("initializeWasm() must be awaited first!");
31306 const nativeResponseValue = wasm.TS_NodeFeatures_clone(orig);
31307 return nativeResponseValue;
31309 // uint64_t ChannelFeatures_clone_ptr(LDKChannelFeatures *NONNULL_PTR arg);
31311 export function ChannelFeatures_clone_ptr(arg: bigint): bigint {
31312 if(!isWasmInitialized) {
31313 throw new Error("initializeWasm() must be awaited first!");
31315 const nativeResponseValue = wasm.TS_ChannelFeatures_clone_ptr(arg);
31316 return nativeResponseValue;
31318 // struct LDKChannelFeatures ChannelFeatures_clone(const struct LDKChannelFeatures *NONNULL_PTR orig);
31320 export function ChannelFeatures_clone(orig: bigint): bigint {
31321 if(!isWasmInitialized) {
31322 throw new Error("initializeWasm() must be awaited first!");
31324 const nativeResponseValue = wasm.TS_ChannelFeatures_clone(orig);
31325 return nativeResponseValue;
31327 // uint64_t InvoiceFeatures_clone_ptr(LDKInvoiceFeatures *NONNULL_PTR arg);
31329 export function InvoiceFeatures_clone_ptr(arg: bigint): bigint {
31330 if(!isWasmInitialized) {
31331 throw new Error("initializeWasm() must be awaited first!");
31333 const nativeResponseValue = wasm.TS_InvoiceFeatures_clone_ptr(arg);
31334 return nativeResponseValue;
31336 // struct LDKInvoiceFeatures InvoiceFeatures_clone(const struct LDKInvoiceFeatures *NONNULL_PTR orig);
31338 export function InvoiceFeatures_clone(orig: bigint): bigint {
31339 if(!isWasmInitialized) {
31340 throw new Error("initializeWasm() must be awaited first!");
31342 const nativeResponseValue = wasm.TS_InvoiceFeatures_clone(orig);
31343 return nativeResponseValue;
31345 // uint64_t OfferFeatures_clone_ptr(LDKOfferFeatures *NONNULL_PTR arg);
31347 export function OfferFeatures_clone_ptr(arg: bigint): bigint {
31348 if(!isWasmInitialized) {
31349 throw new Error("initializeWasm() must be awaited first!");
31351 const nativeResponseValue = wasm.TS_OfferFeatures_clone_ptr(arg);
31352 return nativeResponseValue;
31354 // struct LDKOfferFeatures OfferFeatures_clone(const struct LDKOfferFeatures *NONNULL_PTR orig);
31356 export function OfferFeatures_clone(orig: bigint): bigint {
31357 if(!isWasmInitialized) {
31358 throw new Error("initializeWasm() must be awaited first!");
31360 const nativeResponseValue = wasm.TS_OfferFeatures_clone(orig);
31361 return nativeResponseValue;
31363 // uint64_t InvoiceRequestFeatures_clone_ptr(LDKInvoiceRequestFeatures *NONNULL_PTR arg);
31365 export function InvoiceRequestFeatures_clone_ptr(arg: bigint): bigint {
31366 if(!isWasmInitialized) {
31367 throw new Error("initializeWasm() must be awaited first!");
31369 const nativeResponseValue = wasm.TS_InvoiceRequestFeatures_clone_ptr(arg);
31370 return nativeResponseValue;
31372 // struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_clone(const struct LDKInvoiceRequestFeatures *NONNULL_PTR orig);
31374 export function InvoiceRequestFeatures_clone(orig: bigint): bigint {
31375 if(!isWasmInitialized) {
31376 throw new Error("initializeWasm() must be awaited first!");
31378 const nativeResponseValue = wasm.TS_InvoiceRequestFeatures_clone(orig);
31379 return nativeResponseValue;
31381 // uint64_t Bolt12InvoiceFeatures_clone_ptr(LDKBolt12InvoiceFeatures *NONNULL_PTR arg);
31383 export function Bolt12InvoiceFeatures_clone_ptr(arg: bigint): bigint {
31384 if(!isWasmInitialized) {
31385 throw new Error("initializeWasm() must be awaited first!");
31387 const nativeResponseValue = wasm.TS_Bolt12InvoiceFeatures_clone_ptr(arg);
31388 return nativeResponseValue;
31390 // struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_clone(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR orig);
31392 export function Bolt12InvoiceFeatures_clone(orig: bigint): bigint {
31393 if(!isWasmInitialized) {
31394 throw new Error("initializeWasm() must be awaited first!");
31396 const nativeResponseValue = wasm.TS_Bolt12InvoiceFeatures_clone(orig);
31397 return nativeResponseValue;
31399 // uint64_t BlindedHopFeatures_clone_ptr(LDKBlindedHopFeatures *NONNULL_PTR arg);
31401 export function BlindedHopFeatures_clone_ptr(arg: bigint): bigint {
31402 if(!isWasmInitialized) {
31403 throw new Error("initializeWasm() must be awaited first!");
31405 const nativeResponseValue = wasm.TS_BlindedHopFeatures_clone_ptr(arg);
31406 return nativeResponseValue;
31408 // struct LDKBlindedHopFeatures BlindedHopFeatures_clone(const struct LDKBlindedHopFeatures *NONNULL_PTR orig);
31410 export function BlindedHopFeatures_clone(orig: bigint): bigint {
31411 if(!isWasmInitialized) {
31412 throw new Error("initializeWasm() must be awaited first!");
31414 const nativeResponseValue = wasm.TS_BlindedHopFeatures_clone(orig);
31415 return nativeResponseValue;
31417 // uint64_t ChannelTypeFeatures_clone_ptr(LDKChannelTypeFeatures *NONNULL_PTR arg);
31419 export function ChannelTypeFeatures_clone_ptr(arg: bigint): bigint {
31420 if(!isWasmInitialized) {
31421 throw new Error("initializeWasm() must be awaited first!");
31423 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone_ptr(arg);
31424 return nativeResponseValue;
31426 // struct LDKChannelTypeFeatures ChannelTypeFeatures_clone(const struct LDKChannelTypeFeatures *NONNULL_PTR orig);
31428 export function ChannelTypeFeatures_clone(orig: bigint): bigint {
31429 if(!isWasmInitialized) {
31430 throw new Error("initializeWasm() must be awaited first!");
31432 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_clone(orig);
31433 return nativeResponseValue;
31435 // void InitFeatures_free(struct LDKInitFeatures this_obj);
31437 export function InitFeatures_free(this_obj: bigint): void {
31438 if(!isWasmInitialized) {
31439 throw new Error("initializeWasm() must be awaited first!");
31441 const nativeResponseValue = wasm.TS_InitFeatures_free(this_obj);
31442 // debug statements here
31444 // void NodeFeatures_free(struct LDKNodeFeatures this_obj);
31446 export function NodeFeatures_free(this_obj: bigint): void {
31447 if(!isWasmInitialized) {
31448 throw new Error("initializeWasm() must be awaited first!");
31450 const nativeResponseValue = wasm.TS_NodeFeatures_free(this_obj);
31451 // debug statements here
31453 // void ChannelFeatures_free(struct LDKChannelFeatures this_obj);
31455 export function ChannelFeatures_free(this_obj: bigint): void {
31456 if(!isWasmInitialized) {
31457 throw new Error("initializeWasm() must be awaited first!");
31459 const nativeResponseValue = wasm.TS_ChannelFeatures_free(this_obj);
31460 // debug statements here
31462 // void InvoiceFeatures_free(struct LDKInvoiceFeatures this_obj);
31464 export function InvoiceFeatures_free(this_obj: bigint): void {
31465 if(!isWasmInitialized) {
31466 throw new Error("initializeWasm() must be awaited first!");
31468 const nativeResponseValue = wasm.TS_InvoiceFeatures_free(this_obj);
31469 // debug statements here
31471 // void OfferFeatures_free(struct LDKOfferFeatures this_obj);
31473 export function OfferFeatures_free(this_obj: bigint): void {
31474 if(!isWasmInitialized) {
31475 throw new Error("initializeWasm() must be awaited first!");
31477 const nativeResponseValue = wasm.TS_OfferFeatures_free(this_obj);
31478 // debug statements here
31480 // void InvoiceRequestFeatures_free(struct LDKInvoiceRequestFeatures this_obj);
31482 export function InvoiceRequestFeatures_free(this_obj: bigint): void {
31483 if(!isWasmInitialized) {
31484 throw new Error("initializeWasm() must be awaited first!");
31486 const nativeResponseValue = wasm.TS_InvoiceRequestFeatures_free(this_obj);
31487 // debug statements here
31489 // void Bolt12InvoiceFeatures_free(struct LDKBolt12InvoiceFeatures this_obj);
31491 export function Bolt12InvoiceFeatures_free(this_obj: bigint): void {
31492 if(!isWasmInitialized) {
31493 throw new Error("initializeWasm() must be awaited first!");
31495 const nativeResponseValue = wasm.TS_Bolt12InvoiceFeatures_free(this_obj);
31496 // debug statements here
31498 // void BlindedHopFeatures_free(struct LDKBlindedHopFeatures this_obj);
31500 export function BlindedHopFeatures_free(this_obj: bigint): void {
31501 if(!isWasmInitialized) {
31502 throw new Error("initializeWasm() must be awaited first!");
31504 const nativeResponseValue = wasm.TS_BlindedHopFeatures_free(this_obj);
31505 // debug statements here
31507 // void ChannelTypeFeatures_free(struct LDKChannelTypeFeatures this_obj);
31509 export function ChannelTypeFeatures_free(this_obj: bigint): void {
31510 if(!isWasmInitialized) {
31511 throw new Error("initializeWasm() must be awaited first!");
31513 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_free(this_obj);
31514 // debug statements here
31516 // MUST_USE_RES struct LDKInitFeatures InitFeatures_empty(void);
31518 export function InitFeatures_empty(): bigint {
31519 if(!isWasmInitialized) {
31520 throw new Error("initializeWasm() must be awaited first!");
31522 const nativeResponseValue = wasm.TS_InitFeatures_empty();
31523 return nativeResponseValue;
31525 // MUST_USE_RES bool InitFeatures_requires_unknown_bits(const struct LDKInitFeatures *NONNULL_PTR this_arg);
31527 export function InitFeatures_requires_unknown_bits(this_arg: bigint): boolean {
31528 if(!isWasmInitialized) {
31529 throw new Error("initializeWasm() must be awaited first!");
31531 const nativeResponseValue = wasm.TS_InitFeatures_requires_unknown_bits(this_arg);
31532 return nativeResponseValue;
31534 // MUST_USE_RES struct LDKNodeFeatures NodeFeatures_empty(void);
31536 export function NodeFeatures_empty(): bigint {
31537 if(!isWasmInitialized) {
31538 throw new Error("initializeWasm() must be awaited first!");
31540 const nativeResponseValue = wasm.TS_NodeFeatures_empty();
31541 return nativeResponseValue;
31543 // MUST_USE_RES bool NodeFeatures_requires_unknown_bits(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
31545 export function NodeFeatures_requires_unknown_bits(this_arg: bigint): boolean {
31546 if(!isWasmInitialized) {
31547 throw new Error("initializeWasm() must be awaited first!");
31549 const nativeResponseValue = wasm.TS_NodeFeatures_requires_unknown_bits(this_arg);
31550 return nativeResponseValue;
31552 // MUST_USE_RES struct LDKChannelFeatures ChannelFeatures_empty(void);
31554 export function ChannelFeatures_empty(): bigint {
31555 if(!isWasmInitialized) {
31556 throw new Error("initializeWasm() must be awaited first!");
31558 const nativeResponseValue = wasm.TS_ChannelFeatures_empty();
31559 return nativeResponseValue;
31561 // MUST_USE_RES bool ChannelFeatures_requires_unknown_bits(const struct LDKChannelFeatures *NONNULL_PTR this_arg);
31563 export function ChannelFeatures_requires_unknown_bits(this_arg: bigint): boolean {
31564 if(!isWasmInitialized) {
31565 throw new Error("initializeWasm() must be awaited first!");
31567 const nativeResponseValue = wasm.TS_ChannelFeatures_requires_unknown_bits(this_arg);
31568 return nativeResponseValue;
31570 // MUST_USE_RES struct LDKInvoiceFeatures InvoiceFeatures_empty(void);
31572 export function InvoiceFeatures_empty(): bigint {
31573 if(!isWasmInitialized) {
31574 throw new Error("initializeWasm() must be awaited first!");
31576 const nativeResponseValue = wasm.TS_InvoiceFeatures_empty();
31577 return nativeResponseValue;
31579 // MUST_USE_RES bool InvoiceFeatures_requires_unknown_bits(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
31581 export function InvoiceFeatures_requires_unknown_bits(this_arg: bigint): boolean {
31582 if(!isWasmInitialized) {
31583 throw new Error("initializeWasm() must be awaited first!");
31585 const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_unknown_bits(this_arg);
31586 return nativeResponseValue;
31588 // MUST_USE_RES struct LDKOfferFeatures OfferFeatures_empty(void);
31590 export function OfferFeatures_empty(): bigint {
31591 if(!isWasmInitialized) {
31592 throw new Error("initializeWasm() must be awaited first!");
31594 const nativeResponseValue = wasm.TS_OfferFeatures_empty();
31595 return nativeResponseValue;
31597 // MUST_USE_RES bool OfferFeatures_requires_unknown_bits(const struct LDKOfferFeatures *NONNULL_PTR this_arg);
31599 export function OfferFeatures_requires_unknown_bits(this_arg: bigint): boolean {
31600 if(!isWasmInitialized) {
31601 throw new Error("initializeWasm() must be awaited first!");
31603 const nativeResponseValue = wasm.TS_OfferFeatures_requires_unknown_bits(this_arg);
31604 return nativeResponseValue;
31606 // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequestFeatures_empty(void);
31608 export function InvoiceRequestFeatures_empty(): bigint {
31609 if(!isWasmInitialized) {
31610 throw new Error("initializeWasm() must be awaited first!");
31612 const nativeResponseValue = wasm.TS_InvoiceRequestFeatures_empty();
31613 return nativeResponseValue;
31615 // MUST_USE_RES bool InvoiceRequestFeatures_requires_unknown_bits(const struct LDKInvoiceRequestFeatures *NONNULL_PTR this_arg);
31617 export function InvoiceRequestFeatures_requires_unknown_bits(this_arg: bigint): boolean {
31618 if(!isWasmInitialized) {
31619 throw new Error("initializeWasm() must be awaited first!");
31621 const nativeResponseValue = wasm.TS_InvoiceRequestFeatures_requires_unknown_bits(this_arg);
31622 return nativeResponseValue;
31624 // MUST_USE_RES struct LDKBolt12InvoiceFeatures Bolt12InvoiceFeatures_empty(void);
31626 export function Bolt12InvoiceFeatures_empty(): bigint {
31627 if(!isWasmInitialized) {
31628 throw new Error("initializeWasm() must be awaited first!");
31630 const nativeResponseValue = wasm.TS_Bolt12InvoiceFeatures_empty();
31631 return nativeResponseValue;
31633 // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_unknown_bits(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
31635 export function Bolt12InvoiceFeatures_requires_unknown_bits(this_arg: bigint): boolean {
31636 if(!isWasmInitialized) {
31637 throw new Error("initializeWasm() must be awaited first!");
31639 const nativeResponseValue = wasm.TS_Bolt12InvoiceFeatures_requires_unknown_bits(this_arg);
31640 return nativeResponseValue;
31642 // MUST_USE_RES struct LDKBlindedHopFeatures BlindedHopFeatures_empty(void);
31644 export function BlindedHopFeatures_empty(): bigint {
31645 if(!isWasmInitialized) {
31646 throw new Error("initializeWasm() must be awaited first!");
31648 const nativeResponseValue = wasm.TS_BlindedHopFeatures_empty();
31649 return nativeResponseValue;
31651 // MUST_USE_RES bool BlindedHopFeatures_requires_unknown_bits(const struct LDKBlindedHopFeatures *NONNULL_PTR this_arg);
31653 export function BlindedHopFeatures_requires_unknown_bits(this_arg: bigint): boolean {
31654 if(!isWasmInitialized) {
31655 throw new Error("initializeWasm() must be awaited first!");
31657 const nativeResponseValue = wasm.TS_BlindedHopFeatures_requires_unknown_bits(this_arg);
31658 return nativeResponseValue;
31660 // MUST_USE_RES struct LDKChannelTypeFeatures ChannelTypeFeatures_empty(void);
31662 export function ChannelTypeFeatures_empty(): bigint {
31663 if(!isWasmInitialized) {
31664 throw new Error("initializeWasm() must be awaited first!");
31666 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_empty();
31667 return nativeResponseValue;
31669 // MUST_USE_RES bool ChannelTypeFeatures_requires_unknown_bits(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
31671 export function ChannelTypeFeatures_requires_unknown_bits(this_arg: bigint): boolean {
31672 if(!isWasmInitialized) {
31673 throw new Error("initializeWasm() must be awaited first!");
31675 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_unknown_bits(this_arg);
31676 return nativeResponseValue;
31678 // struct LDKCVec_u8Z InitFeatures_write(const struct LDKInitFeatures *NONNULL_PTR obj);
31680 export function InitFeatures_write(obj: bigint): number {
31681 if(!isWasmInitialized) {
31682 throw new Error("initializeWasm() must be awaited first!");
31684 const nativeResponseValue = wasm.TS_InitFeatures_write(obj);
31685 return nativeResponseValue;
31687 // struct LDKCResult_InitFeaturesDecodeErrorZ InitFeatures_read(struct LDKu8slice ser);
31689 export function InitFeatures_read(ser: number): bigint {
31690 if(!isWasmInitialized) {
31691 throw new Error("initializeWasm() must be awaited first!");
31693 const nativeResponseValue = wasm.TS_InitFeatures_read(ser);
31694 return nativeResponseValue;
31696 // struct LDKCVec_u8Z ChannelFeatures_write(const struct LDKChannelFeatures *NONNULL_PTR obj);
31698 export function ChannelFeatures_write(obj: bigint): number {
31699 if(!isWasmInitialized) {
31700 throw new Error("initializeWasm() must be awaited first!");
31702 const nativeResponseValue = wasm.TS_ChannelFeatures_write(obj);
31703 return nativeResponseValue;
31705 // struct LDKCResult_ChannelFeaturesDecodeErrorZ ChannelFeatures_read(struct LDKu8slice ser);
31707 export function ChannelFeatures_read(ser: number): bigint {
31708 if(!isWasmInitialized) {
31709 throw new Error("initializeWasm() must be awaited first!");
31711 const nativeResponseValue = wasm.TS_ChannelFeatures_read(ser);
31712 return nativeResponseValue;
31714 // struct LDKCVec_u8Z NodeFeatures_write(const struct LDKNodeFeatures *NONNULL_PTR obj);
31716 export function NodeFeatures_write(obj: bigint): number {
31717 if(!isWasmInitialized) {
31718 throw new Error("initializeWasm() must be awaited first!");
31720 const nativeResponseValue = wasm.TS_NodeFeatures_write(obj);
31721 return nativeResponseValue;
31723 // struct LDKCResult_NodeFeaturesDecodeErrorZ NodeFeatures_read(struct LDKu8slice ser);
31725 export function NodeFeatures_read(ser: number): bigint {
31726 if(!isWasmInitialized) {
31727 throw new Error("initializeWasm() must be awaited first!");
31729 const nativeResponseValue = wasm.TS_NodeFeatures_read(ser);
31730 return nativeResponseValue;
31732 // struct LDKCVec_u8Z InvoiceFeatures_write(const struct LDKInvoiceFeatures *NONNULL_PTR obj);
31734 export function InvoiceFeatures_write(obj: bigint): number {
31735 if(!isWasmInitialized) {
31736 throw new Error("initializeWasm() must be awaited first!");
31738 const nativeResponseValue = wasm.TS_InvoiceFeatures_write(obj);
31739 return nativeResponseValue;
31741 // struct LDKCResult_InvoiceFeaturesDecodeErrorZ InvoiceFeatures_read(struct LDKu8slice ser);
31743 export function InvoiceFeatures_read(ser: number): bigint {
31744 if(!isWasmInitialized) {
31745 throw new Error("initializeWasm() must be awaited first!");
31747 const nativeResponseValue = wasm.TS_InvoiceFeatures_read(ser);
31748 return nativeResponseValue;
31750 // struct LDKCVec_u8Z BlindedHopFeatures_write(const struct LDKBlindedHopFeatures *NONNULL_PTR obj);
31752 export function BlindedHopFeatures_write(obj: bigint): number {
31753 if(!isWasmInitialized) {
31754 throw new Error("initializeWasm() must be awaited first!");
31756 const nativeResponseValue = wasm.TS_BlindedHopFeatures_write(obj);
31757 return nativeResponseValue;
31759 // struct LDKCResult_BlindedHopFeaturesDecodeErrorZ BlindedHopFeatures_read(struct LDKu8slice ser);
31761 export function BlindedHopFeatures_read(ser: number): bigint {
31762 if(!isWasmInitialized) {
31763 throw new Error("initializeWasm() must be awaited first!");
31765 const nativeResponseValue = wasm.TS_BlindedHopFeatures_read(ser);
31766 return nativeResponseValue;
31768 // struct LDKCVec_u8Z ChannelTypeFeatures_write(const struct LDKChannelTypeFeatures *NONNULL_PTR obj);
31770 export function ChannelTypeFeatures_write(obj: bigint): number {
31771 if(!isWasmInitialized) {
31772 throw new Error("initializeWasm() must be awaited first!");
31774 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_write(obj);
31775 return nativeResponseValue;
31777 // struct LDKCResult_ChannelTypeFeaturesDecodeErrorZ ChannelTypeFeatures_read(struct LDKu8slice ser);
31779 export function ChannelTypeFeatures_read(ser: number): bigint {
31780 if(!isWasmInitialized) {
31781 throw new Error("initializeWasm() must be awaited first!");
31783 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_read(ser);
31784 return nativeResponseValue;
31786 // void InitFeatures_set_data_loss_protect_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
31788 export function InitFeatures_set_data_loss_protect_optional(this_arg: bigint): void {
31789 if(!isWasmInitialized) {
31790 throw new Error("initializeWasm() must be awaited first!");
31792 const nativeResponseValue = wasm.TS_InitFeatures_set_data_loss_protect_optional(this_arg);
31793 // debug statements here
31795 // void InitFeatures_set_data_loss_protect_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
31797 export function InitFeatures_set_data_loss_protect_required(this_arg: bigint): void {
31798 if(!isWasmInitialized) {
31799 throw new Error("initializeWasm() must be awaited first!");
31801 const nativeResponseValue = wasm.TS_InitFeatures_set_data_loss_protect_required(this_arg);
31802 // debug statements here
31804 // MUST_USE_RES bool InitFeatures_supports_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
31806 export function InitFeatures_supports_data_loss_protect(this_arg: bigint): boolean {
31807 if(!isWasmInitialized) {
31808 throw new Error("initializeWasm() must be awaited first!");
31810 const nativeResponseValue = wasm.TS_InitFeatures_supports_data_loss_protect(this_arg);
31811 return nativeResponseValue;
31813 // void NodeFeatures_set_data_loss_protect_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
31815 export function NodeFeatures_set_data_loss_protect_optional(this_arg: bigint): void {
31816 if(!isWasmInitialized) {
31817 throw new Error("initializeWasm() must be awaited first!");
31819 const nativeResponseValue = wasm.TS_NodeFeatures_set_data_loss_protect_optional(this_arg);
31820 // debug statements here
31822 // void NodeFeatures_set_data_loss_protect_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
31824 export function NodeFeatures_set_data_loss_protect_required(this_arg: bigint): void {
31825 if(!isWasmInitialized) {
31826 throw new Error("initializeWasm() must be awaited first!");
31828 const nativeResponseValue = wasm.TS_NodeFeatures_set_data_loss_protect_required(this_arg);
31829 // debug statements here
31831 // MUST_USE_RES bool NodeFeatures_supports_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
31833 export function NodeFeatures_supports_data_loss_protect(this_arg: bigint): boolean {
31834 if(!isWasmInitialized) {
31835 throw new Error("initializeWasm() must be awaited first!");
31837 const nativeResponseValue = wasm.TS_NodeFeatures_supports_data_loss_protect(this_arg);
31838 return nativeResponseValue;
31840 // MUST_USE_RES bool InitFeatures_requires_data_loss_protect(const struct LDKInitFeatures *NONNULL_PTR this_arg);
31842 export function InitFeatures_requires_data_loss_protect(this_arg: bigint): boolean {
31843 if(!isWasmInitialized) {
31844 throw new Error("initializeWasm() must be awaited first!");
31846 const nativeResponseValue = wasm.TS_InitFeatures_requires_data_loss_protect(this_arg);
31847 return nativeResponseValue;
31849 // MUST_USE_RES bool NodeFeatures_requires_data_loss_protect(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
31851 export function NodeFeatures_requires_data_loss_protect(this_arg: bigint): boolean {
31852 if(!isWasmInitialized) {
31853 throw new Error("initializeWasm() must be awaited first!");
31855 const nativeResponseValue = wasm.TS_NodeFeatures_requires_data_loss_protect(this_arg);
31856 return nativeResponseValue;
31858 // void InitFeatures_set_initial_routing_sync_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
31860 export function InitFeatures_set_initial_routing_sync_optional(this_arg: bigint): void {
31861 if(!isWasmInitialized) {
31862 throw new Error("initializeWasm() must be awaited first!");
31864 const nativeResponseValue = wasm.TS_InitFeatures_set_initial_routing_sync_optional(this_arg);
31865 // debug statements here
31867 // void InitFeatures_set_initial_routing_sync_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
31869 export function InitFeatures_set_initial_routing_sync_required(this_arg: bigint): void {
31870 if(!isWasmInitialized) {
31871 throw new Error("initializeWasm() must be awaited first!");
31873 const nativeResponseValue = wasm.TS_InitFeatures_set_initial_routing_sync_required(this_arg);
31874 // debug statements here
31876 // MUST_USE_RES bool InitFeatures_initial_routing_sync(const struct LDKInitFeatures *NONNULL_PTR this_arg);
31878 export function InitFeatures_initial_routing_sync(this_arg: bigint): boolean {
31879 if(!isWasmInitialized) {
31880 throw new Error("initializeWasm() must be awaited first!");
31882 const nativeResponseValue = wasm.TS_InitFeatures_initial_routing_sync(this_arg);
31883 return nativeResponseValue;
31885 // void InitFeatures_set_upfront_shutdown_script_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
31887 export function InitFeatures_set_upfront_shutdown_script_optional(this_arg: bigint): void {
31888 if(!isWasmInitialized) {
31889 throw new Error("initializeWasm() must be awaited first!");
31891 const nativeResponseValue = wasm.TS_InitFeatures_set_upfront_shutdown_script_optional(this_arg);
31892 // debug statements here
31894 // void InitFeatures_set_upfront_shutdown_script_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
31896 export function InitFeatures_set_upfront_shutdown_script_required(this_arg: bigint): void {
31897 if(!isWasmInitialized) {
31898 throw new Error("initializeWasm() must be awaited first!");
31900 const nativeResponseValue = wasm.TS_InitFeatures_set_upfront_shutdown_script_required(this_arg);
31901 // debug statements here
31903 // MUST_USE_RES bool InitFeatures_supports_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
31905 export function InitFeatures_supports_upfront_shutdown_script(this_arg: bigint): boolean {
31906 if(!isWasmInitialized) {
31907 throw new Error("initializeWasm() must be awaited first!");
31909 const nativeResponseValue = wasm.TS_InitFeatures_supports_upfront_shutdown_script(this_arg);
31910 return nativeResponseValue;
31912 // void NodeFeatures_set_upfront_shutdown_script_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
31914 export function NodeFeatures_set_upfront_shutdown_script_optional(this_arg: bigint): void {
31915 if(!isWasmInitialized) {
31916 throw new Error("initializeWasm() must be awaited first!");
31918 const nativeResponseValue = wasm.TS_NodeFeatures_set_upfront_shutdown_script_optional(this_arg);
31919 // debug statements here
31921 // void NodeFeatures_set_upfront_shutdown_script_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
31923 export function NodeFeatures_set_upfront_shutdown_script_required(this_arg: bigint): void {
31924 if(!isWasmInitialized) {
31925 throw new Error("initializeWasm() must be awaited first!");
31927 const nativeResponseValue = wasm.TS_NodeFeatures_set_upfront_shutdown_script_required(this_arg);
31928 // debug statements here
31930 // MUST_USE_RES bool NodeFeatures_supports_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
31932 export function NodeFeatures_supports_upfront_shutdown_script(this_arg: bigint): boolean {
31933 if(!isWasmInitialized) {
31934 throw new Error("initializeWasm() must be awaited first!");
31936 const nativeResponseValue = wasm.TS_NodeFeatures_supports_upfront_shutdown_script(this_arg);
31937 return nativeResponseValue;
31939 // MUST_USE_RES bool InitFeatures_requires_upfront_shutdown_script(const struct LDKInitFeatures *NONNULL_PTR this_arg);
31941 export function InitFeatures_requires_upfront_shutdown_script(this_arg: bigint): boolean {
31942 if(!isWasmInitialized) {
31943 throw new Error("initializeWasm() must be awaited first!");
31945 const nativeResponseValue = wasm.TS_InitFeatures_requires_upfront_shutdown_script(this_arg);
31946 return nativeResponseValue;
31948 // MUST_USE_RES bool NodeFeatures_requires_upfront_shutdown_script(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
31950 export function NodeFeatures_requires_upfront_shutdown_script(this_arg: bigint): boolean {
31951 if(!isWasmInitialized) {
31952 throw new Error("initializeWasm() must be awaited first!");
31954 const nativeResponseValue = wasm.TS_NodeFeatures_requires_upfront_shutdown_script(this_arg);
31955 return nativeResponseValue;
31957 // void InitFeatures_set_gossip_queries_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
31959 export function InitFeatures_set_gossip_queries_optional(this_arg: bigint): void {
31960 if(!isWasmInitialized) {
31961 throw new Error("initializeWasm() must be awaited first!");
31963 const nativeResponseValue = wasm.TS_InitFeatures_set_gossip_queries_optional(this_arg);
31964 // debug statements here
31966 // void InitFeatures_set_gossip_queries_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
31968 export function InitFeatures_set_gossip_queries_required(this_arg: bigint): void {
31969 if(!isWasmInitialized) {
31970 throw new Error("initializeWasm() must be awaited first!");
31972 const nativeResponseValue = wasm.TS_InitFeatures_set_gossip_queries_required(this_arg);
31973 // debug statements here
31975 // MUST_USE_RES bool InitFeatures_supports_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
31977 export function InitFeatures_supports_gossip_queries(this_arg: bigint): boolean {
31978 if(!isWasmInitialized) {
31979 throw new Error("initializeWasm() must be awaited first!");
31981 const nativeResponseValue = wasm.TS_InitFeatures_supports_gossip_queries(this_arg);
31982 return nativeResponseValue;
31984 // void NodeFeatures_set_gossip_queries_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
31986 export function NodeFeatures_set_gossip_queries_optional(this_arg: bigint): void {
31987 if(!isWasmInitialized) {
31988 throw new Error("initializeWasm() must be awaited first!");
31990 const nativeResponseValue = wasm.TS_NodeFeatures_set_gossip_queries_optional(this_arg);
31991 // debug statements here
31993 // void NodeFeatures_set_gossip_queries_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
31995 export function NodeFeatures_set_gossip_queries_required(this_arg: bigint): void {
31996 if(!isWasmInitialized) {
31997 throw new Error("initializeWasm() must be awaited first!");
31999 const nativeResponseValue = wasm.TS_NodeFeatures_set_gossip_queries_required(this_arg);
32000 // debug statements here
32002 // MUST_USE_RES bool NodeFeatures_supports_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32004 export function NodeFeatures_supports_gossip_queries(this_arg: bigint): boolean {
32005 if(!isWasmInitialized) {
32006 throw new Error("initializeWasm() must be awaited first!");
32008 const nativeResponseValue = wasm.TS_NodeFeatures_supports_gossip_queries(this_arg);
32009 return nativeResponseValue;
32011 // MUST_USE_RES bool InitFeatures_requires_gossip_queries(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32013 export function InitFeatures_requires_gossip_queries(this_arg: bigint): boolean {
32014 if(!isWasmInitialized) {
32015 throw new Error("initializeWasm() must be awaited first!");
32017 const nativeResponseValue = wasm.TS_InitFeatures_requires_gossip_queries(this_arg);
32018 return nativeResponseValue;
32020 // MUST_USE_RES bool NodeFeatures_requires_gossip_queries(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32022 export function NodeFeatures_requires_gossip_queries(this_arg: bigint): boolean {
32023 if(!isWasmInitialized) {
32024 throw new Error("initializeWasm() must be awaited first!");
32026 const nativeResponseValue = wasm.TS_NodeFeatures_requires_gossip_queries(this_arg);
32027 return nativeResponseValue;
32029 // void InitFeatures_set_variable_length_onion_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
32031 export function InitFeatures_set_variable_length_onion_optional(this_arg: bigint): void {
32032 if(!isWasmInitialized) {
32033 throw new Error("initializeWasm() must be awaited first!");
32035 const nativeResponseValue = wasm.TS_InitFeatures_set_variable_length_onion_optional(this_arg);
32036 // debug statements here
32038 // void InitFeatures_set_variable_length_onion_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
32040 export function InitFeatures_set_variable_length_onion_required(this_arg: bigint): void {
32041 if(!isWasmInitialized) {
32042 throw new Error("initializeWasm() must be awaited first!");
32044 const nativeResponseValue = wasm.TS_InitFeatures_set_variable_length_onion_required(this_arg);
32045 // debug statements here
32047 // MUST_USE_RES bool InitFeatures_supports_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32049 export function InitFeatures_supports_variable_length_onion(this_arg: bigint): boolean {
32050 if(!isWasmInitialized) {
32051 throw new Error("initializeWasm() must be awaited first!");
32053 const nativeResponseValue = wasm.TS_InitFeatures_supports_variable_length_onion(this_arg);
32054 return nativeResponseValue;
32056 // void NodeFeatures_set_variable_length_onion_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32058 export function NodeFeatures_set_variable_length_onion_optional(this_arg: bigint): void {
32059 if(!isWasmInitialized) {
32060 throw new Error("initializeWasm() must be awaited first!");
32062 const nativeResponseValue = wasm.TS_NodeFeatures_set_variable_length_onion_optional(this_arg);
32063 // debug statements here
32065 // void NodeFeatures_set_variable_length_onion_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32067 export function NodeFeatures_set_variable_length_onion_required(this_arg: bigint): void {
32068 if(!isWasmInitialized) {
32069 throw new Error("initializeWasm() must be awaited first!");
32071 const nativeResponseValue = wasm.TS_NodeFeatures_set_variable_length_onion_required(this_arg);
32072 // debug statements here
32074 // MUST_USE_RES bool NodeFeatures_supports_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32076 export function NodeFeatures_supports_variable_length_onion(this_arg: bigint): boolean {
32077 if(!isWasmInitialized) {
32078 throw new Error("initializeWasm() must be awaited first!");
32080 const nativeResponseValue = wasm.TS_NodeFeatures_supports_variable_length_onion(this_arg);
32081 return nativeResponseValue;
32083 // void InvoiceFeatures_set_variable_length_onion_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
32085 export function InvoiceFeatures_set_variable_length_onion_optional(this_arg: bigint): void {
32086 if(!isWasmInitialized) {
32087 throw new Error("initializeWasm() must be awaited first!");
32089 const nativeResponseValue = wasm.TS_InvoiceFeatures_set_variable_length_onion_optional(this_arg);
32090 // debug statements here
32092 // void InvoiceFeatures_set_variable_length_onion_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
32094 export function InvoiceFeatures_set_variable_length_onion_required(this_arg: bigint): void {
32095 if(!isWasmInitialized) {
32096 throw new Error("initializeWasm() must be awaited first!");
32098 const nativeResponseValue = wasm.TS_InvoiceFeatures_set_variable_length_onion_required(this_arg);
32099 // debug statements here
32101 // MUST_USE_RES bool InvoiceFeatures_supports_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
32103 export function InvoiceFeatures_supports_variable_length_onion(this_arg: bigint): boolean {
32104 if(!isWasmInitialized) {
32105 throw new Error("initializeWasm() must be awaited first!");
32107 const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_variable_length_onion(this_arg);
32108 return nativeResponseValue;
32110 // MUST_USE_RES bool InitFeatures_requires_variable_length_onion(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32112 export function InitFeatures_requires_variable_length_onion(this_arg: bigint): boolean {
32113 if(!isWasmInitialized) {
32114 throw new Error("initializeWasm() must be awaited first!");
32116 const nativeResponseValue = wasm.TS_InitFeatures_requires_variable_length_onion(this_arg);
32117 return nativeResponseValue;
32119 // MUST_USE_RES bool NodeFeatures_requires_variable_length_onion(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32121 export function NodeFeatures_requires_variable_length_onion(this_arg: bigint): boolean {
32122 if(!isWasmInitialized) {
32123 throw new Error("initializeWasm() must be awaited first!");
32125 const nativeResponseValue = wasm.TS_NodeFeatures_requires_variable_length_onion(this_arg);
32126 return nativeResponseValue;
32128 // MUST_USE_RES bool InvoiceFeatures_requires_variable_length_onion(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
32130 export function InvoiceFeatures_requires_variable_length_onion(this_arg: bigint): boolean {
32131 if(!isWasmInitialized) {
32132 throw new Error("initializeWasm() must be awaited first!");
32134 const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_variable_length_onion(this_arg);
32135 return nativeResponseValue;
32137 // void InitFeatures_set_static_remote_key_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
32139 export function InitFeatures_set_static_remote_key_optional(this_arg: bigint): void {
32140 if(!isWasmInitialized) {
32141 throw new Error("initializeWasm() must be awaited first!");
32143 const nativeResponseValue = wasm.TS_InitFeatures_set_static_remote_key_optional(this_arg);
32144 // debug statements here
32146 // void InitFeatures_set_static_remote_key_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
32148 export function InitFeatures_set_static_remote_key_required(this_arg: bigint): void {
32149 if(!isWasmInitialized) {
32150 throw new Error("initializeWasm() must be awaited first!");
32152 const nativeResponseValue = wasm.TS_InitFeatures_set_static_remote_key_required(this_arg);
32153 // debug statements here
32155 // MUST_USE_RES bool InitFeatures_supports_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32157 export function InitFeatures_supports_static_remote_key(this_arg: bigint): boolean {
32158 if(!isWasmInitialized) {
32159 throw new Error("initializeWasm() must be awaited first!");
32161 const nativeResponseValue = wasm.TS_InitFeatures_supports_static_remote_key(this_arg);
32162 return nativeResponseValue;
32164 // void NodeFeatures_set_static_remote_key_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32166 export function NodeFeatures_set_static_remote_key_optional(this_arg: bigint): void {
32167 if(!isWasmInitialized) {
32168 throw new Error("initializeWasm() must be awaited first!");
32170 const nativeResponseValue = wasm.TS_NodeFeatures_set_static_remote_key_optional(this_arg);
32171 // debug statements here
32173 // void NodeFeatures_set_static_remote_key_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32175 export function NodeFeatures_set_static_remote_key_required(this_arg: bigint): void {
32176 if(!isWasmInitialized) {
32177 throw new Error("initializeWasm() must be awaited first!");
32179 const nativeResponseValue = wasm.TS_NodeFeatures_set_static_remote_key_required(this_arg);
32180 // debug statements here
32182 // MUST_USE_RES bool NodeFeatures_supports_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32184 export function NodeFeatures_supports_static_remote_key(this_arg: bigint): boolean {
32185 if(!isWasmInitialized) {
32186 throw new Error("initializeWasm() must be awaited first!");
32188 const nativeResponseValue = wasm.TS_NodeFeatures_supports_static_remote_key(this_arg);
32189 return nativeResponseValue;
32191 // void ChannelTypeFeatures_set_static_remote_key_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
32193 export function ChannelTypeFeatures_set_static_remote_key_optional(this_arg: bigint): void {
32194 if(!isWasmInitialized) {
32195 throw new Error("initializeWasm() must be awaited first!");
32197 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_static_remote_key_optional(this_arg);
32198 // debug statements here
32200 // void ChannelTypeFeatures_set_static_remote_key_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
32202 export function ChannelTypeFeatures_set_static_remote_key_required(this_arg: bigint): void {
32203 if(!isWasmInitialized) {
32204 throw new Error("initializeWasm() must be awaited first!");
32206 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_static_remote_key_required(this_arg);
32207 // debug statements here
32209 // MUST_USE_RES bool ChannelTypeFeatures_supports_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
32211 export function ChannelTypeFeatures_supports_static_remote_key(this_arg: bigint): boolean {
32212 if(!isWasmInitialized) {
32213 throw new Error("initializeWasm() must be awaited first!");
32215 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_static_remote_key(this_arg);
32216 return nativeResponseValue;
32218 // MUST_USE_RES bool InitFeatures_requires_static_remote_key(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32220 export function InitFeatures_requires_static_remote_key(this_arg: bigint): boolean {
32221 if(!isWasmInitialized) {
32222 throw new Error("initializeWasm() must be awaited first!");
32224 const nativeResponseValue = wasm.TS_InitFeatures_requires_static_remote_key(this_arg);
32225 return nativeResponseValue;
32227 // MUST_USE_RES bool NodeFeatures_requires_static_remote_key(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32229 export function NodeFeatures_requires_static_remote_key(this_arg: bigint): boolean {
32230 if(!isWasmInitialized) {
32231 throw new Error("initializeWasm() must be awaited first!");
32233 const nativeResponseValue = wasm.TS_NodeFeatures_requires_static_remote_key(this_arg);
32234 return nativeResponseValue;
32236 // MUST_USE_RES bool ChannelTypeFeatures_requires_static_remote_key(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
32238 export function ChannelTypeFeatures_requires_static_remote_key(this_arg: bigint): boolean {
32239 if(!isWasmInitialized) {
32240 throw new Error("initializeWasm() must be awaited first!");
32242 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_static_remote_key(this_arg);
32243 return nativeResponseValue;
32245 // void InitFeatures_set_payment_secret_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
32247 export function InitFeatures_set_payment_secret_optional(this_arg: bigint): void {
32248 if(!isWasmInitialized) {
32249 throw new Error("initializeWasm() must be awaited first!");
32251 const nativeResponseValue = wasm.TS_InitFeatures_set_payment_secret_optional(this_arg);
32252 // debug statements here
32254 // void InitFeatures_set_payment_secret_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
32256 export function InitFeatures_set_payment_secret_required(this_arg: bigint): void {
32257 if(!isWasmInitialized) {
32258 throw new Error("initializeWasm() must be awaited first!");
32260 const nativeResponseValue = wasm.TS_InitFeatures_set_payment_secret_required(this_arg);
32261 // debug statements here
32263 // MUST_USE_RES bool InitFeatures_supports_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32265 export function InitFeatures_supports_payment_secret(this_arg: bigint): boolean {
32266 if(!isWasmInitialized) {
32267 throw new Error("initializeWasm() must be awaited first!");
32269 const nativeResponseValue = wasm.TS_InitFeatures_supports_payment_secret(this_arg);
32270 return nativeResponseValue;
32272 // void NodeFeatures_set_payment_secret_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32274 export function NodeFeatures_set_payment_secret_optional(this_arg: bigint): void {
32275 if(!isWasmInitialized) {
32276 throw new Error("initializeWasm() must be awaited first!");
32278 const nativeResponseValue = wasm.TS_NodeFeatures_set_payment_secret_optional(this_arg);
32279 // debug statements here
32281 // void NodeFeatures_set_payment_secret_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32283 export function NodeFeatures_set_payment_secret_required(this_arg: bigint): void {
32284 if(!isWasmInitialized) {
32285 throw new Error("initializeWasm() must be awaited first!");
32287 const nativeResponseValue = wasm.TS_NodeFeatures_set_payment_secret_required(this_arg);
32288 // debug statements here
32290 // MUST_USE_RES bool NodeFeatures_supports_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32292 export function NodeFeatures_supports_payment_secret(this_arg: bigint): boolean {
32293 if(!isWasmInitialized) {
32294 throw new Error("initializeWasm() must be awaited first!");
32296 const nativeResponseValue = wasm.TS_NodeFeatures_supports_payment_secret(this_arg);
32297 return nativeResponseValue;
32299 // void InvoiceFeatures_set_payment_secret_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
32301 export function InvoiceFeatures_set_payment_secret_optional(this_arg: bigint): void {
32302 if(!isWasmInitialized) {
32303 throw new Error("initializeWasm() must be awaited first!");
32305 const nativeResponseValue = wasm.TS_InvoiceFeatures_set_payment_secret_optional(this_arg);
32306 // debug statements here
32308 // void InvoiceFeatures_set_payment_secret_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
32310 export function InvoiceFeatures_set_payment_secret_required(this_arg: bigint): void {
32311 if(!isWasmInitialized) {
32312 throw new Error("initializeWasm() must be awaited first!");
32314 const nativeResponseValue = wasm.TS_InvoiceFeatures_set_payment_secret_required(this_arg);
32315 // debug statements here
32317 // MUST_USE_RES bool InvoiceFeatures_supports_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
32319 export function InvoiceFeatures_supports_payment_secret(this_arg: bigint): boolean {
32320 if(!isWasmInitialized) {
32321 throw new Error("initializeWasm() must be awaited first!");
32323 const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_payment_secret(this_arg);
32324 return nativeResponseValue;
32326 // MUST_USE_RES bool InitFeatures_requires_payment_secret(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32328 export function InitFeatures_requires_payment_secret(this_arg: bigint): boolean {
32329 if(!isWasmInitialized) {
32330 throw new Error("initializeWasm() must be awaited first!");
32332 const nativeResponseValue = wasm.TS_InitFeatures_requires_payment_secret(this_arg);
32333 return nativeResponseValue;
32335 // MUST_USE_RES bool NodeFeatures_requires_payment_secret(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32337 export function NodeFeatures_requires_payment_secret(this_arg: bigint): boolean {
32338 if(!isWasmInitialized) {
32339 throw new Error("initializeWasm() must be awaited first!");
32341 const nativeResponseValue = wasm.TS_NodeFeatures_requires_payment_secret(this_arg);
32342 return nativeResponseValue;
32344 // MUST_USE_RES bool InvoiceFeatures_requires_payment_secret(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
32346 export function InvoiceFeatures_requires_payment_secret(this_arg: bigint): boolean {
32347 if(!isWasmInitialized) {
32348 throw new Error("initializeWasm() must be awaited first!");
32350 const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_payment_secret(this_arg);
32351 return nativeResponseValue;
32353 // void InitFeatures_set_basic_mpp_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
32355 export function InitFeatures_set_basic_mpp_optional(this_arg: bigint): void {
32356 if(!isWasmInitialized) {
32357 throw new Error("initializeWasm() must be awaited first!");
32359 const nativeResponseValue = wasm.TS_InitFeatures_set_basic_mpp_optional(this_arg);
32360 // debug statements here
32362 // void InitFeatures_set_basic_mpp_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
32364 export function InitFeatures_set_basic_mpp_required(this_arg: bigint): void {
32365 if(!isWasmInitialized) {
32366 throw new Error("initializeWasm() must be awaited first!");
32368 const nativeResponseValue = wasm.TS_InitFeatures_set_basic_mpp_required(this_arg);
32369 // debug statements here
32371 // MUST_USE_RES bool InitFeatures_supports_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32373 export function InitFeatures_supports_basic_mpp(this_arg: bigint): boolean {
32374 if(!isWasmInitialized) {
32375 throw new Error("initializeWasm() must be awaited first!");
32377 const nativeResponseValue = wasm.TS_InitFeatures_supports_basic_mpp(this_arg);
32378 return nativeResponseValue;
32380 // void NodeFeatures_set_basic_mpp_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32382 export function NodeFeatures_set_basic_mpp_optional(this_arg: bigint): void {
32383 if(!isWasmInitialized) {
32384 throw new Error("initializeWasm() must be awaited first!");
32386 const nativeResponseValue = wasm.TS_NodeFeatures_set_basic_mpp_optional(this_arg);
32387 // debug statements here
32389 // void NodeFeatures_set_basic_mpp_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32391 export function NodeFeatures_set_basic_mpp_required(this_arg: bigint): void {
32392 if(!isWasmInitialized) {
32393 throw new Error("initializeWasm() must be awaited first!");
32395 const nativeResponseValue = wasm.TS_NodeFeatures_set_basic_mpp_required(this_arg);
32396 // debug statements here
32398 // MUST_USE_RES bool NodeFeatures_supports_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32400 export function NodeFeatures_supports_basic_mpp(this_arg: bigint): boolean {
32401 if(!isWasmInitialized) {
32402 throw new Error("initializeWasm() must be awaited first!");
32404 const nativeResponseValue = wasm.TS_NodeFeatures_supports_basic_mpp(this_arg);
32405 return nativeResponseValue;
32407 // void InvoiceFeatures_set_basic_mpp_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
32409 export function InvoiceFeatures_set_basic_mpp_optional(this_arg: bigint): void {
32410 if(!isWasmInitialized) {
32411 throw new Error("initializeWasm() must be awaited first!");
32413 const nativeResponseValue = wasm.TS_InvoiceFeatures_set_basic_mpp_optional(this_arg);
32414 // debug statements here
32416 // void InvoiceFeatures_set_basic_mpp_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
32418 export function InvoiceFeatures_set_basic_mpp_required(this_arg: bigint): void {
32419 if(!isWasmInitialized) {
32420 throw new Error("initializeWasm() must be awaited first!");
32422 const nativeResponseValue = wasm.TS_InvoiceFeatures_set_basic_mpp_required(this_arg);
32423 // debug statements here
32425 // MUST_USE_RES bool InvoiceFeatures_supports_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
32427 export function InvoiceFeatures_supports_basic_mpp(this_arg: bigint): boolean {
32428 if(!isWasmInitialized) {
32429 throw new Error("initializeWasm() must be awaited first!");
32431 const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_basic_mpp(this_arg);
32432 return nativeResponseValue;
32434 // void Bolt12InvoiceFeatures_set_basic_mpp_optional(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
32436 export function Bolt12InvoiceFeatures_set_basic_mpp_optional(this_arg: bigint): void {
32437 if(!isWasmInitialized) {
32438 throw new Error("initializeWasm() must be awaited first!");
32440 const nativeResponseValue = wasm.TS_Bolt12InvoiceFeatures_set_basic_mpp_optional(this_arg);
32441 // debug statements here
32443 // void Bolt12InvoiceFeatures_set_basic_mpp_required(struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
32445 export function Bolt12InvoiceFeatures_set_basic_mpp_required(this_arg: bigint): void {
32446 if(!isWasmInitialized) {
32447 throw new Error("initializeWasm() must be awaited first!");
32449 const nativeResponseValue = wasm.TS_Bolt12InvoiceFeatures_set_basic_mpp_required(this_arg);
32450 // debug statements here
32452 // MUST_USE_RES bool Bolt12InvoiceFeatures_supports_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
32454 export function Bolt12InvoiceFeatures_supports_basic_mpp(this_arg: bigint): boolean {
32455 if(!isWasmInitialized) {
32456 throw new Error("initializeWasm() must be awaited first!");
32458 const nativeResponseValue = wasm.TS_Bolt12InvoiceFeatures_supports_basic_mpp(this_arg);
32459 return nativeResponseValue;
32461 // MUST_USE_RES bool InitFeatures_requires_basic_mpp(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32463 export function InitFeatures_requires_basic_mpp(this_arg: bigint): boolean {
32464 if(!isWasmInitialized) {
32465 throw new Error("initializeWasm() must be awaited first!");
32467 const nativeResponseValue = wasm.TS_InitFeatures_requires_basic_mpp(this_arg);
32468 return nativeResponseValue;
32470 // MUST_USE_RES bool NodeFeatures_requires_basic_mpp(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32472 export function NodeFeatures_requires_basic_mpp(this_arg: bigint): boolean {
32473 if(!isWasmInitialized) {
32474 throw new Error("initializeWasm() must be awaited first!");
32476 const nativeResponseValue = wasm.TS_NodeFeatures_requires_basic_mpp(this_arg);
32477 return nativeResponseValue;
32479 // MUST_USE_RES bool InvoiceFeatures_requires_basic_mpp(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
32481 export function InvoiceFeatures_requires_basic_mpp(this_arg: bigint): boolean {
32482 if(!isWasmInitialized) {
32483 throw new Error("initializeWasm() must be awaited first!");
32485 const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_basic_mpp(this_arg);
32486 return nativeResponseValue;
32488 // MUST_USE_RES bool Bolt12InvoiceFeatures_requires_basic_mpp(const struct LDKBolt12InvoiceFeatures *NONNULL_PTR this_arg);
32490 export function Bolt12InvoiceFeatures_requires_basic_mpp(this_arg: bigint): boolean {
32491 if(!isWasmInitialized) {
32492 throw new Error("initializeWasm() must be awaited first!");
32494 const nativeResponseValue = wasm.TS_Bolt12InvoiceFeatures_requires_basic_mpp(this_arg);
32495 return nativeResponseValue;
32497 // void InitFeatures_set_wumbo_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
32499 export function InitFeatures_set_wumbo_optional(this_arg: bigint): void {
32500 if(!isWasmInitialized) {
32501 throw new Error("initializeWasm() must be awaited first!");
32503 const nativeResponseValue = wasm.TS_InitFeatures_set_wumbo_optional(this_arg);
32504 // debug statements here
32506 // void InitFeatures_set_wumbo_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
32508 export function InitFeatures_set_wumbo_required(this_arg: bigint): void {
32509 if(!isWasmInitialized) {
32510 throw new Error("initializeWasm() must be awaited first!");
32512 const nativeResponseValue = wasm.TS_InitFeatures_set_wumbo_required(this_arg);
32513 // debug statements here
32515 // MUST_USE_RES bool InitFeatures_supports_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32517 export function InitFeatures_supports_wumbo(this_arg: bigint): boolean {
32518 if(!isWasmInitialized) {
32519 throw new Error("initializeWasm() must be awaited first!");
32521 const nativeResponseValue = wasm.TS_InitFeatures_supports_wumbo(this_arg);
32522 return nativeResponseValue;
32524 // void NodeFeatures_set_wumbo_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32526 export function NodeFeatures_set_wumbo_optional(this_arg: bigint): void {
32527 if(!isWasmInitialized) {
32528 throw new Error("initializeWasm() must be awaited first!");
32530 const nativeResponseValue = wasm.TS_NodeFeatures_set_wumbo_optional(this_arg);
32531 // debug statements here
32533 // void NodeFeatures_set_wumbo_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32535 export function NodeFeatures_set_wumbo_required(this_arg: bigint): void {
32536 if(!isWasmInitialized) {
32537 throw new Error("initializeWasm() must be awaited first!");
32539 const nativeResponseValue = wasm.TS_NodeFeatures_set_wumbo_required(this_arg);
32540 // debug statements here
32542 // MUST_USE_RES bool NodeFeatures_supports_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32544 export function NodeFeatures_supports_wumbo(this_arg: bigint): boolean {
32545 if(!isWasmInitialized) {
32546 throw new Error("initializeWasm() must be awaited first!");
32548 const nativeResponseValue = wasm.TS_NodeFeatures_supports_wumbo(this_arg);
32549 return nativeResponseValue;
32551 // MUST_USE_RES bool InitFeatures_requires_wumbo(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32553 export function InitFeatures_requires_wumbo(this_arg: bigint): boolean {
32554 if(!isWasmInitialized) {
32555 throw new Error("initializeWasm() must be awaited first!");
32557 const nativeResponseValue = wasm.TS_InitFeatures_requires_wumbo(this_arg);
32558 return nativeResponseValue;
32560 // MUST_USE_RES bool NodeFeatures_requires_wumbo(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32562 export function NodeFeatures_requires_wumbo(this_arg: bigint): boolean {
32563 if(!isWasmInitialized) {
32564 throw new Error("initializeWasm() must be awaited first!");
32566 const nativeResponseValue = wasm.TS_NodeFeatures_requires_wumbo(this_arg);
32567 return nativeResponseValue;
32569 // void InitFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
32571 export function InitFeatures_set_anchors_zero_fee_htlc_tx_optional(this_arg: bigint): void {
32572 if(!isWasmInitialized) {
32573 throw new Error("initializeWasm() must be awaited first!");
32575 const nativeResponseValue = wasm.TS_InitFeatures_set_anchors_zero_fee_htlc_tx_optional(this_arg);
32576 // debug statements here
32578 // void InitFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
32580 export function InitFeatures_set_anchors_zero_fee_htlc_tx_required(this_arg: bigint): void {
32581 if(!isWasmInitialized) {
32582 throw new Error("initializeWasm() must be awaited first!");
32584 const nativeResponseValue = wasm.TS_InitFeatures_set_anchors_zero_fee_htlc_tx_required(this_arg);
32585 // debug statements here
32587 // MUST_USE_RES bool InitFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32589 export function InitFeatures_supports_anchors_zero_fee_htlc_tx(this_arg: bigint): boolean {
32590 if(!isWasmInitialized) {
32591 throw new Error("initializeWasm() must be awaited first!");
32593 const nativeResponseValue = wasm.TS_InitFeatures_supports_anchors_zero_fee_htlc_tx(this_arg);
32594 return nativeResponseValue;
32596 // void NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32598 export function NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(this_arg: bigint): void {
32599 if(!isWasmInitialized) {
32600 throw new Error("initializeWasm() must be awaited first!");
32602 const nativeResponseValue = wasm.TS_NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(this_arg);
32603 // debug statements here
32605 // void NodeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32607 export function NodeFeatures_set_anchors_zero_fee_htlc_tx_required(this_arg: bigint): void {
32608 if(!isWasmInitialized) {
32609 throw new Error("initializeWasm() must be awaited first!");
32611 const nativeResponseValue = wasm.TS_NodeFeatures_set_anchors_zero_fee_htlc_tx_required(this_arg);
32612 // debug statements here
32614 // MUST_USE_RES bool NodeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32616 export function NodeFeatures_supports_anchors_zero_fee_htlc_tx(this_arg: bigint): boolean {
32617 if(!isWasmInitialized) {
32618 throw new Error("initializeWasm() must be awaited first!");
32620 const nativeResponseValue = wasm.TS_NodeFeatures_supports_anchors_zero_fee_htlc_tx(this_arg);
32621 return nativeResponseValue;
32623 // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
32625 export function ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(this_arg: bigint): void {
32626 if(!isWasmInitialized) {
32627 throw new Error("initializeWasm() must be awaited first!");
32629 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_optional(this_arg);
32630 // debug statements here
32632 // void ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
32634 export function ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(this_arg: bigint): void {
32635 if(!isWasmInitialized) {
32636 throw new Error("initializeWasm() must be awaited first!");
32638 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_anchors_zero_fee_htlc_tx_required(this_arg);
32639 // debug statements here
32641 // MUST_USE_RES bool ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
32643 export function ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(this_arg: bigint): boolean {
32644 if(!isWasmInitialized) {
32645 throw new Error("initializeWasm() must be awaited first!");
32647 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_anchors_zero_fee_htlc_tx(this_arg);
32648 return nativeResponseValue;
32650 // MUST_USE_RES bool InitFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32652 export function InitFeatures_requires_anchors_zero_fee_htlc_tx(this_arg: bigint): boolean {
32653 if(!isWasmInitialized) {
32654 throw new Error("initializeWasm() must be awaited first!");
32656 const nativeResponseValue = wasm.TS_InitFeatures_requires_anchors_zero_fee_htlc_tx(this_arg);
32657 return nativeResponseValue;
32659 // MUST_USE_RES bool NodeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32661 export function NodeFeatures_requires_anchors_zero_fee_htlc_tx(this_arg: bigint): boolean {
32662 if(!isWasmInitialized) {
32663 throw new Error("initializeWasm() must be awaited first!");
32665 const nativeResponseValue = wasm.TS_NodeFeatures_requires_anchors_zero_fee_htlc_tx(this_arg);
32666 return nativeResponseValue;
32668 // MUST_USE_RES bool ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
32670 export function ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(this_arg: bigint): boolean {
32671 if(!isWasmInitialized) {
32672 throw new Error("initializeWasm() must be awaited first!");
32674 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_anchors_zero_fee_htlc_tx(this_arg);
32675 return nativeResponseValue;
32677 // void InitFeatures_set_shutdown_any_segwit_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
32679 export function InitFeatures_set_shutdown_any_segwit_optional(this_arg: bigint): void {
32680 if(!isWasmInitialized) {
32681 throw new Error("initializeWasm() must be awaited first!");
32683 const nativeResponseValue = wasm.TS_InitFeatures_set_shutdown_any_segwit_optional(this_arg);
32684 // debug statements here
32686 // void InitFeatures_set_shutdown_any_segwit_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
32688 export function InitFeatures_set_shutdown_any_segwit_required(this_arg: bigint): void {
32689 if(!isWasmInitialized) {
32690 throw new Error("initializeWasm() must be awaited first!");
32692 const nativeResponseValue = wasm.TS_InitFeatures_set_shutdown_any_segwit_required(this_arg);
32693 // debug statements here
32695 // MUST_USE_RES bool InitFeatures_supports_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32697 export function InitFeatures_supports_shutdown_anysegwit(this_arg: bigint): boolean {
32698 if(!isWasmInitialized) {
32699 throw new Error("initializeWasm() must be awaited first!");
32701 const nativeResponseValue = wasm.TS_InitFeatures_supports_shutdown_anysegwit(this_arg);
32702 return nativeResponseValue;
32704 // void NodeFeatures_set_shutdown_any_segwit_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32706 export function NodeFeatures_set_shutdown_any_segwit_optional(this_arg: bigint): void {
32707 if(!isWasmInitialized) {
32708 throw new Error("initializeWasm() must be awaited first!");
32710 const nativeResponseValue = wasm.TS_NodeFeatures_set_shutdown_any_segwit_optional(this_arg);
32711 // debug statements here
32713 // void NodeFeatures_set_shutdown_any_segwit_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32715 export function NodeFeatures_set_shutdown_any_segwit_required(this_arg: bigint): void {
32716 if(!isWasmInitialized) {
32717 throw new Error("initializeWasm() must be awaited first!");
32719 const nativeResponseValue = wasm.TS_NodeFeatures_set_shutdown_any_segwit_required(this_arg);
32720 // debug statements here
32722 // MUST_USE_RES bool NodeFeatures_supports_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32724 export function NodeFeatures_supports_shutdown_anysegwit(this_arg: bigint): boolean {
32725 if(!isWasmInitialized) {
32726 throw new Error("initializeWasm() must be awaited first!");
32728 const nativeResponseValue = wasm.TS_NodeFeatures_supports_shutdown_anysegwit(this_arg);
32729 return nativeResponseValue;
32731 // MUST_USE_RES bool InitFeatures_requires_shutdown_anysegwit(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32733 export function InitFeatures_requires_shutdown_anysegwit(this_arg: bigint): boolean {
32734 if(!isWasmInitialized) {
32735 throw new Error("initializeWasm() must be awaited first!");
32737 const nativeResponseValue = wasm.TS_InitFeatures_requires_shutdown_anysegwit(this_arg);
32738 return nativeResponseValue;
32740 // MUST_USE_RES bool NodeFeatures_requires_shutdown_anysegwit(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32742 export function NodeFeatures_requires_shutdown_anysegwit(this_arg: bigint): boolean {
32743 if(!isWasmInitialized) {
32744 throw new Error("initializeWasm() must be awaited first!");
32746 const nativeResponseValue = wasm.TS_NodeFeatures_requires_shutdown_anysegwit(this_arg);
32747 return nativeResponseValue;
32749 // void InitFeatures_set_onion_messages_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
32751 export function InitFeatures_set_onion_messages_optional(this_arg: bigint): void {
32752 if(!isWasmInitialized) {
32753 throw new Error("initializeWasm() must be awaited first!");
32755 const nativeResponseValue = wasm.TS_InitFeatures_set_onion_messages_optional(this_arg);
32756 // debug statements here
32758 // void InitFeatures_set_onion_messages_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
32760 export function InitFeatures_set_onion_messages_required(this_arg: bigint): void {
32761 if(!isWasmInitialized) {
32762 throw new Error("initializeWasm() must be awaited first!");
32764 const nativeResponseValue = wasm.TS_InitFeatures_set_onion_messages_required(this_arg);
32765 // debug statements here
32767 // MUST_USE_RES bool InitFeatures_supports_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32769 export function InitFeatures_supports_onion_messages(this_arg: bigint): boolean {
32770 if(!isWasmInitialized) {
32771 throw new Error("initializeWasm() must be awaited first!");
32773 const nativeResponseValue = wasm.TS_InitFeatures_supports_onion_messages(this_arg);
32774 return nativeResponseValue;
32776 // void NodeFeatures_set_onion_messages_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32778 export function NodeFeatures_set_onion_messages_optional(this_arg: bigint): void {
32779 if(!isWasmInitialized) {
32780 throw new Error("initializeWasm() must be awaited first!");
32782 const nativeResponseValue = wasm.TS_NodeFeatures_set_onion_messages_optional(this_arg);
32783 // debug statements here
32785 // void NodeFeatures_set_onion_messages_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32787 export function NodeFeatures_set_onion_messages_required(this_arg: bigint): void {
32788 if(!isWasmInitialized) {
32789 throw new Error("initializeWasm() must be awaited first!");
32791 const nativeResponseValue = wasm.TS_NodeFeatures_set_onion_messages_required(this_arg);
32792 // debug statements here
32794 // MUST_USE_RES bool NodeFeatures_supports_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32796 export function NodeFeatures_supports_onion_messages(this_arg: bigint): boolean {
32797 if(!isWasmInitialized) {
32798 throw new Error("initializeWasm() must be awaited first!");
32800 const nativeResponseValue = wasm.TS_NodeFeatures_supports_onion_messages(this_arg);
32801 return nativeResponseValue;
32803 // MUST_USE_RES bool InitFeatures_requires_onion_messages(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32805 export function InitFeatures_requires_onion_messages(this_arg: bigint): boolean {
32806 if(!isWasmInitialized) {
32807 throw new Error("initializeWasm() must be awaited first!");
32809 const nativeResponseValue = wasm.TS_InitFeatures_requires_onion_messages(this_arg);
32810 return nativeResponseValue;
32812 // MUST_USE_RES bool NodeFeatures_requires_onion_messages(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32814 export function NodeFeatures_requires_onion_messages(this_arg: bigint): boolean {
32815 if(!isWasmInitialized) {
32816 throw new Error("initializeWasm() must be awaited first!");
32818 const nativeResponseValue = wasm.TS_NodeFeatures_requires_onion_messages(this_arg);
32819 return nativeResponseValue;
32821 // void InitFeatures_set_channel_type_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
32823 export function InitFeatures_set_channel_type_optional(this_arg: bigint): void {
32824 if(!isWasmInitialized) {
32825 throw new Error("initializeWasm() must be awaited first!");
32827 const nativeResponseValue = wasm.TS_InitFeatures_set_channel_type_optional(this_arg);
32828 // debug statements here
32830 // void InitFeatures_set_channel_type_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
32832 export function InitFeatures_set_channel_type_required(this_arg: bigint): void {
32833 if(!isWasmInitialized) {
32834 throw new Error("initializeWasm() must be awaited first!");
32836 const nativeResponseValue = wasm.TS_InitFeatures_set_channel_type_required(this_arg);
32837 // debug statements here
32839 // MUST_USE_RES bool InitFeatures_supports_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32841 export function InitFeatures_supports_channel_type(this_arg: bigint): boolean {
32842 if(!isWasmInitialized) {
32843 throw new Error("initializeWasm() must be awaited first!");
32845 const nativeResponseValue = wasm.TS_InitFeatures_supports_channel_type(this_arg);
32846 return nativeResponseValue;
32848 // void NodeFeatures_set_channel_type_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32850 export function NodeFeatures_set_channel_type_optional(this_arg: bigint): void {
32851 if(!isWasmInitialized) {
32852 throw new Error("initializeWasm() must be awaited first!");
32854 const nativeResponseValue = wasm.TS_NodeFeatures_set_channel_type_optional(this_arg);
32855 // debug statements here
32857 // void NodeFeatures_set_channel_type_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32859 export function NodeFeatures_set_channel_type_required(this_arg: bigint): void {
32860 if(!isWasmInitialized) {
32861 throw new Error("initializeWasm() must be awaited first!");
32863 const nativeResponseValue = wasm.TS_NodeFeatures_set_channel_type_required(this_arg);
32864 // debug statements here
32866 // MUST_USE_RES bool NodeFeatures_supports_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32868 export function NodeFeatures_supports_channel_type(this_arg: bigint): boolean {
32869 if(!isWasmInitialized) {
32870 throw new Error("initializeWasm() must be awaited first!");
32872 const nativeResponseValue = wasm.TS_NodeFeatures_supports_channel_type(this_arg);
32873 return nativeResponseValue;
32875 // MUST_USE_RES bool InitFeatures_requires_channel_type(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32877 export function InitFeatures_requires_channel_type(this_arg: bigint): boolean {
32878 if(!isWasmInitialized) {
32879 throw new Error("initializeWasm() must be awaited first!");
32881 const nativeResponseValue = wasm.TS_InitFeatures_requires_channel_type(this_arg);
32882 return nativeResponseValue;
32884 // MUST_USE_RES bool NodeFeatures_requires_channel_type(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32886 export function NodeFeatures_requires_channel_type(this_arg: bigint): boolean {
32887 if(!isWasmInitialized) {
32888 throw new Error("initializeWasm() must be awaited first!");
32890 const nativeResponseValue = wasm.TS_NodeFeatures_requires_channel_type(this_arg);
32891 return nativeResponseValue;
32893 // void InitFeatures_set_scid_privacy_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
32895 export function InitFeatures_set_scid_privacy_optional(this_arg: bigint): void {
32896 if(!isWasmInitialized) {
32897 throw new Error("initializeWasm() must be awaited first!");
32899 const nativeResponseValue = wasm.TS_InitFeatures_set_scid_privacy_optional(this_arg);
32900 // debug statements here
32902 // void InitFeatures_set_scid_privacy_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
32904 export function InitFeatures_set_scid_privacy_required(this_arg: bigint): void {
32905 if(!isWasmInitialized) {
32906 throw new Error("initializeWasm() must be awaited first!");
32908 const nativeResponseValue = wasm.TS_InitFeatures_set_scid_privacy_required(this_arg);
32909 // debug statements here
32911 // MUST_USE_RES bool InitFeatures_supports_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32913 export function InitFeatures_supports_scid_privacy(this_arg: bigint): boolean {
32914 if(!isWasmInitialized) {
32915 throw new Error("initializeWasm() must be awaited first!");
32917 const nativeResponseValue = wasm.TS_InitFeatures_supports_scid_privacy(this_arg);
32918 return nativeResponseValue;
32920 // void NodeFeatures_set_scid_privacy_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32922 export function NodeFeatures_set_scid_privacy_optional(this_arg: bigint): void {
32923 if(!isWasmInitialized) {
32924 throw new Error("initializeWasm() must be awaited first!");
32926 const nativeResponseValue = wasm.TS_NodeFeatures_set_scid_privacy_optional(this_arg);
32927 // debug statements here
32929 // void NodeFeatures_set_scid_privacy_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
32931 export function NodeFeatures_set_scid_privacy_required(this_arg: bigint): void {
32932 if(!isWasmInitialized) {
32933 throw new Error("initializeWasm() must be awaited first!");
32935 const nativeResponseValue = wasm.TS_NodeFeatures_set_scid_privacy_required(this_arg);
32936 // debug statements here
32938 // MUST_USE_RES bool NodeFeatures_supports_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32940 export function NodeFeatures_supports_scid_privacy(this_arg: bigint): boolean {
32941 if(!isWasmInitialized) {
32942 throw new Error("initializeWasm() must be awaited first!");
32944 const nativeResponseValue = wasm.TS_NodeFeatures_supports_scid_privacy(this_arg);
32945 return nativeResponseValue;
32947 // void ChannelTypeFeatures_set_scid_privacy_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
32949 export function ChannelTypeFeatures_set_scid_privacy_optional(this_arg: bigint): void {
32950 if(!isWasmInitialized) {
32951 throw new Error("initializeWasm() must be awaited first!");
32953 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_scid_privacy_optional(this_arg);
32954 // debug statements here
32956 // void ChannelTypeFeatures_set_scid_privacy_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
32958 export function ChannelTypeFeatures_set_scid_privacy_required(this_arg: bigint): void {
32959 if(!isWasmInitialized) {
32960 throw new Error("initializeWasm() must be awaited first!");
32962 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_scid_privacy_required(this_arg);
32963 // debug statements here
32965 // MUST_USE_RES bool ChannelTypeFeatures_supports_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
32967 export function ChannelTypeFeatures_supports_scid_privacy(this_arg: bigint): boolean {
32968 if(!isWasmInitialized) {
32969 throw new Error("initializeWasm() must be awaited first!");
32971 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_scid_privacy(this_arg);
32972 return nativeResponseValue;
32974 // MUST_USE_RES bool InitFeatures_requires_scid_privacy(const struct LDKInitFeatures *NONNULL_PTR this_arg);
32976 export function InitFeatures_requires_scid_privacy(this_arg: bigint): boolean {
32977 if(!isWasmInitialized) {
32978 throw new Error("initializeWasm() must be awaited first!");
32980 const nativeResponseValue = wasm.TS_InitFeatures_requires_scid_privacy(this_arg);
32981 return nativeResponseValue;
32983 // MUST_USE_RES bool NodeFeatures_requires_scid_privacy(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
32985 export function NodeFeatures_requires_scid_privacy(this_arg: bigint): boolean {
32986 if(!isWasmInitialized) {
32987 throw new Error("initializeWasm() must be awaited first!");
32989 const nativeResponseValue = wasm.TS_NodeFeatures_requires_scid_privacy(this_arg);
32990 return nativeResponseValue;
32992 // MUST_USE_RES bool ChannelTypeFeatures_requires_scid_privacy(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
32994 export function ChannelTypeFeatures_requires_scid_privacy(this_arg: bigint): boolean {
32995 if(!isWasmInitialized) {
32996 throw new Error("initializeWasm() must be awaited first!");
32998 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_scid_privacy(this_arg);
32999 return nativeResponseValue;
33001 // void InvoiceFeatures_set_payment_metadata_optional(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
33003 export function InvoiceFeatures_set_payment_metadata_optional(this_arg: bigint): void {
33004 if(!isWasmInitialized) {
33005 throw new Error("initializeWasm() must be awaited first!");
33007 const nativeResponseValue = wasm.TS_InvoiceFeatures_set_payment_metadata_optional(this_arg);
33008 // debug statements here
33010 // void InvoiceFeatures_set_payment_metadata_required(struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
33012 export function InvoiceFeatures_set_payment_metadata_required(this_arg: bigint): void {
33013 if(!isWasmInitialized) {
33014 throw new Error("initializeWasm() must be awaited first!");
33016 const nativeResponseValue = wasm.TS_InvoiceFeatures_set_payment_metadata_required(this_arg);
33017 // debug statements here
33019 // MUST_USE_RES bool InvoiceFeatures_supports_payment_metadata(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
33021 export function InvoiceFeatures_supports_payment_metadata(this_arg: bigint): boolean {
33022 if(!isWasmInitialized) {
33023 throw new Error("initializeWasm() must be awaited first!");
33025 const nativeResponseValue = wasm.TS_InvoiceFeatures_supports_payment_metadata(this_arg);
33026 return nativeResponseValue;
33028 // MUST_USE_RES bool InvoiceFeatures_requires_payment_metadata(const struct LDKInvoiceFeatures *NONNULL_PTR this_arg);
33030 export function InvoiceFeatures_requires_payment_metadata(this_arg: bigint): boolean {
33031 if(!isWasmInitialized) {
33032 throw new Error("initializeWasm() must be awaited first!");
33034 const nativeResponseValue = wasm.TS_InvoiceFeatures_requires_payment_metadata(this_arg);
33035 return nativeResponseValue;
33037 // void InitFeatures_set_zero_conf_optional(struct LDKInitFeatures *NONNULL_PTR this_arg);
33039 export function InitFeatures_set_zero_conf_optional(this_arg: bigint): void {
33040 if(!isWasmInitialized) {
33041 throw new Error("initializeWasm() must be awaited first!");
33043 const nativeResponseValue = wasm.TS_InitFeatures_set_zero_conf_optional(this_arg);
33044 // debug statements here
33046 // void InitFeatures_set_zero_conf_required(struct LDKInitFeatures *NONNULL_PTR this_arg);
33048 export function InitFeatures_set_zero_conf_required(this_arg: bigint): void {
33049 if(!isWasmInitialized) {
33050 throw new Error("initializeWasm() must be awaited first!");
33052 const nativeResponseValue = wasm.TS_InitFeatures_set_zero_conf_required(this_arg);
33053 // debug statements here
33055 // MUST_USE_RES bool InitFeatures_supports_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
33057 export function InitFeatures_supports_zero_conf(this_arg: bigint): boolean {
33058 if(!isWasmInitialized) {
33059 throw new Error("initializeWasm() must be awaited first!");
33061 const nativeResponseValue = wasm.TS_InitFeatures_supports_zero_conf(this_arg);
33062 return nativeResponseValue;
33064 // void NodeFeatures_set_zero_conf_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
33066 export function NodeFeatures_set_zero_conf_optional(this_arg: bigint): void {
33067 if(!isWasmInitialized) {
33068 throw new Error("initializeWasm() must be awaited first!");
33070 const nativeResponseValue = wasm.TS_NodeFeatures_set_zero_conf_optional(this_arg);
33071 // debug statements here
33073 // void NodeFeatures_set_zero_conf_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
33075 export function NodeFeatures_set_zero_conf_required(this_arg: bigint): void {
33076 if(!isWasmInitialized) {
33077 throw new Error("initializeWasm() must be awaited first!");
33079 const nativeResponseValue = wasm.TS_NodeFeatures_set_zero_conf_required(this_arg);
33080 // debug statements here
33082 // MUST_USE_RES bool NodeFeatures_supports_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
33084 export function NodeFeatures_supports_zero_conf(this_arg: bigint): boolean {
33085 if(!isWasmInitialized) {
33086 throw new Error("initializeWasm() must be awaited first!");
33088 const nativeResponseValue = wasm.TS_NodeFeatures_supports_zero_conf(this_arg);
33089 return nativeResponseValue;
33091 // void ChannelTypeFeatures_set_zero_conf_optional(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
33093 export function ChannelTypeFeatures_set_zero_conf_optional(this_arg: bigint): void {
33094 if(!isWasmInitialized) {
33095 throw new Error("initializeWasm() must be awaited first!");
33097 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_zero_conf_optional(this_arg);
33098 // debug statements here
33100 // void ChannelTypeFeatures_set_zero_conf_required(struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
33102 export function ChannelTypeFeatures_set_zero_conf_required(this_arg: bigint): void {
33103 if(!isWasmInitialized) {
33104 throw new Error("initializeWasm() must be awaited first!");
33106 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_set_zero_conf_required(this_arg);
33107 // debug statements here
33109 // MUST_USE_RES bool ChannelTypeFeatures_supports_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
33111 export function ChannelTypeFeatures_supports_zero_conf(this_arg: bigint): boolean {
33112 if(!isWasmInitialized) {
33113 throw new Error("initializeWasm() must be awaited first!");
33115 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_supports_zero_conf(this_arg);
33116 return nativeResponseValue;
33118 // MUST_USE_RES bool InitFeatures_requires_zero_conf(const struct LDKInitFeatures *NONNULL_PTR this_arg);
33120 export function InitFeatures_requires_zero_conf(this_arg: bigint): boolean {
33121 if(!isWasmInitialized) {
33122 throw new Error("initializeWasm() must be awaited first!");
33124 const nativeResponseValue = wasm.TS_InitFeatures_requires_zero_conf(this_arg);
33125 return nativeResponseValue;
33127 // MUST_USE_RES bool NodeFeatures_requires_zero_conf(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
33129 export function NodeFeatures_requires_zero_conf(this_arg: bigint): boolean {
33130 if(!isWasmInitialized) {
33131 throw new Error("initializeWasm() must be awaited first!");
33133 const nativeResponseValue = wasm.TS_NodeFeatures_requires_zero_conf(this_arg);
33134 return nativeResponseValue;
33136 // MUST_USE_RES bool ChannelTypeFeatures_requires_zero_conf(const struct LDKChannelTypeFeatures *NONNULL_PTR this_arg);
33138 export function ChannelTypeFeatures_requires_zero_conf(this_arg: bigint): boolean {
33139 if(!isWasmInitialized) {
33140 throw new Error("initializeWasm() must be awaited first!");
33142 const nativeResponseValue = wasm.TS_ChannelTypeFeatures_requires_zero_conf(this_arg);
33143 return nativeResponseValue;
33145 // void NodeFeatures_set_keysend_optional(struct LDKNodeFeatures *NONNULL_PTR this_arg);
33147 export function NodeFeatures_set_keysend_optional(this_arg: bigint): void {
33148 if(!isWasmInitialized) {
33149 throw new Error("initializeWasm() must be awaited first!");
33151 const nativeResponseValue = wasm.TS_NodeFeatures_set_keysend_optional(this_arg);
33152 // debug statements here
33154 // void NodeFeatures_set_keysend_required(struct LDKNodeFeatures *NONNULL_PTR this_arg);
33156 export function NodeFeatures_set_keysend_required(this_arg: bigint): void {
33157 if(!isWasmInitialized) {
33158 throw new Error("initializeWasm() must be awaited first!");
33160 const nativeResponseValue = wasm.TS_NodeFeatures_set_keysend_required(this_arg);
33161 // debug statements here
33163 // MUST_USE_RES bool NodeFeatures_supports_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
33165 export function NodeFeatures_supports_keysend(this_arg: bigint): boolean {
33166 if(!isWasmInitialized) {
33167 throw new Error("initializeWasm() must be awaited first!");
33169 const nativeResponseValue = wasm.TS_NodeFeatures_supports_keysend(this_arg);
33170 return nativeResponseValue;
33172 // MUST_USE_RES bool NodeFeatures_requires_keysend(const struct LDKNodeFeatures *NONNULL_PTR this_arg);
33174 export function NodeFeatures_requires_keysend(this_arg: bigint): boolean {
33175 if(!isWasmInitialized) {
33176 throw new Error("initializeWasm() must be awaited first!");
33178 const nativeResponseValue = wasm.TS_NodeFeatures_requires_keysend(this_arg);
33179 return nativeResponseValue;
33181 // void ShutdownScript_free(struct LDKShutdownScript this_obj);
33183 export function ShutdownScript_free(this_obj: bigint): void {
33184 if(!isWasmInitialized) {
33185 throw new Error("initializeWasm() must be awaited first!");
33187 const nativeResponseValue = wasm.TS_ShutdownScript_free(this_obj);
33188 // debug statements here
33190 // uint64_t ShutdownScript_clone_ptr(LDKShutdownScript *NONNULL_PTR arg);
33192 export function ShutdownScript_clone_ptr(arg: bigint): bigint {
33193 if(!isWasmInitialized) {
33194 throw new Error("initializeWasm() must be awaited first!");
33196 const nativeResponseValue = wasm.TS_ShutdownScript_clone_ptr(arg);
33197 return nativeResponseValue;
33199 // struct LDKShutdownScript ShutdownScript_clone(const struct LDKShutdownScript *NONNULL_PTR orig);
33201 export function ShutdownScript_clone(orig: bigint): bigint {
33202 if(!isWasmInitialized) {
33203 throw new Error("initializeWasm() must be awaited first!");
33205 const nativeResponseValue = wasm.TS_ShutdownScript_clone(orig);
33206 return nativeResponseValue;
33208 // bool ShutdownScript_eq(const struct LDKShutdownScript *NONNULL_PTR a, const struct LDKShutdownScript *NONNULL_PTR b);
33210 export function ShutdownScript_eq(a: bigint, b: bigint): boolean {
33211 if(!isWasmInitialized) {
33212 throw new Error("initializeWasm() must be awaited first!");
33214 const nativeResponseValue = wasm.TS_ShutdownScript_eq(a, b);
33215 return nativeResponseValue;
33217 // void InvalidShutdownScript_free(struct LDKInvalidShutdownScript this_obj);
33219 export function InvalidShutdownScript_free(this_obj: bigint): void {
33220 if(!isWasmInitialized) {
33221 throw new Error("initializeWasm() must be awaited first!");
33223 const nativeResponseValue = wasm.TS_InvalidShutdownScript_free(this_obj);
33224 // debug statements here
33226 // struct LDKu8slice InvalidShutdownScript_get_script(const struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr);
33228 export function InvalidShutdownScript_get_script(this_ptr: bigint): number {
33229 if(!isWasmInitialized) {
33230 throw new Error("initializeWasm() must be awaited first!");
33232 const nativeResponseValue = wasm.TS_InvalidShutdownScript_get_script(this_ptr);
33233 return nativeResponseValue;
33235 // void InvalidShutdownScript_set_script(struct LDKInvalidShutdownScript *NONNULL_PTR this_ptr, struct LDKCVec_u8Z val);
33237 export function InvalidShutdownScript_set_script(this_ptr: bigint, val: number): void {
33238 if(!isWasmInitialized) {
33239 throw new Error("initializeWasm() must be awaited first!");
33241 const nativeResponseValue = wasm.TS_InvalidShutdownScript_set_script(this_ptr, val);
33242 // debug statements here
33244 // MUST_USE_RES struct LDKInvalidShutdownScript InvalidShutdownScript_new(struct LDKCVec_u8Z script_arg);
33246 export function InvalidShutdownScript_new(script_arg: number): bigint {
33247 if(!isWasmInitialized) {
33248 throw new Error("initializeWasm() must be awaited first!");
33250 const nativeResponseValue = wasm.TS_InvalidShutdownScript_new(script_arg);
33251 return nativeResponseValue;
33253 // uint64_t InvalidShutdownScript_clone_ptr(LDKInvalidShutdownScript *NONNULL_PTR arg);
33255 export function InvalidShutdownScript_clone_ptr(arg: bigint): bigint {
33256 if(!isWasmInitialized) {
33257 throw new Error("initializeWasm() must be awaited first!");
33259 const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone_ptr(arg);
33260 return nativeResponseValue;
33262 // struct LDKInvalidShutdownScript InvalidShutdownScript_clone(const struct LDKInvalidShutdownScript *NONNULL_PTR orig);
33264 export function InvalidShutdownScript_clone(orig: bigint): bigint {
33265 if(!isWasmInitialized) {
33266 throw new Error("initializeWasm() must be awaited first!");
33268 const nativeResponseValue = wasm.TS_InvalidShutdownScript_clone(orig);
33269 return nativeResponseValue;
33271 // struct LDKCVec_u8Z ShutdownScript_write(const struct LDKShutdownScript *NONNULL_PTR obj);
33273 export function ShutdownScript_write(obj: bigint): number {
33274 if(!isWasmInitialized) {
33275 throw new Error("initializeWasm() must be awaited first!");
33277 const nativeResponseValue = wasm.TS_ShutdownScript_write(obj);
33278 return nativeResponseValue;
33280 // struct LDKCResult_ShutdownScriptDecodeErrorZ ShutdownScript_read(struct LDKu8slice ser);
33282 export function ShutdownScript_read(ser: number): bigint {
33283 if(!isWasmInitialized) {
33284 throw new Error("initializeWasm() must be awaited first!");
33286 const nativeResponseValue = wasm.TS_ShutdownScript_read(ser);
33287 return nativeResponseValue;
33289 // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (*pubkey_hash)[20]);
33291 export function ShutdownScript_new_p2wpkh(pubkey_hash: number): bigint {
33292 if(!isWasmInitialized) {
33293 throw new Error("initializeWasm() must be awaited first!");
33295 const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wpkh(pubkey_hash);
33296 return nativeResponseValue;
33298 // MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]);
33300 export function ShutdownScript_new_p2wsh(script_hash: number): bigint {
33301 if(!isWasmInitialized) {
33302 throw new Error("initializeWasm() must be awaited first!");
33304 const nativeResponseValue = wasm.TS_ShutdownScript_new_p2wsh(script_hash);
33305 return nativeResponseValue;
33307 // MUST_USE_RES struct LDKCResult_ShutdownScriptInvalidShutdownScriptZ ShutdownScript_new_witness_program(struct LDKWitnessVersion version, struct LDKu8slice program);
33309 export function ShutdownScript_new_witness_program(version: number, program: number): bigint {
33310 if(!isWasmInitialized) {
33311 throw new Error("initializeWasm() must be awaited first!");
33313 const nativeResponseValue = wasm.TS_ShutdownScript_new_witness_program(version, program);
33314 return nativeResponseValue;
33316 // MUST_USE_RES struct LDKCVec_u8Z ShutdownScript_into_inner(struct LDKShutdownScript this_arg);
33318 export function ShutdownScript_into_inner(this_arg: bigint): number {
33319 if(!isWasmInitialized) {
33320 throw new Error("initializeWasm() must be awaited first!");
33322 const nativeResponseValue = wasm.TS_ShutdownScript_into_inner(this_arg);
33323 return nativeResponseValue;
33325 // MUST_USE_RES struct LDKPublicKey ShutdownScript_as_legacy_pubkey(const struct LDKShutdownScript *NONNULL_PTR this_arg);
33327 export function ShutdownScript_as_legacy_pubkey(this_arg: bigint): number {
33328 if(!isWasmInitialized) {
33329 throw new Error("initializeWasm() must be awaited first!");
33331 const nativeResponseValue = wasm.TS_ShutdownScript_as_legacy_pubkey(this_arg);
33332 return nativeResponseValue;
33334 // MUST_USE_RES bool ShutdownScript_is_compatible(const struct LDKShutdownScript *NONNULL_PTR this_arg, const struct LDKInitFeatures *NONNULL_PTR features);
33336 export function ShutdownScript_is_compatible(this_arg: bigint, features: bigint): boolean {
33337 if(!isWasmInitialized) {
33338 throw new Error("initializeWasm() must be awaited first!");
33340 const nativeResponseValue = wasm.TS_ShutdownScript_is_compatible(this_arg, features);
33341 return nativeResponseValue;
33343 // void Retry_free(struct LDKRetry this_ptr);
33345 export function Retry_free(this_ptr: bigint): void {
33346 if(!isWasmInitialized) {
33347 throw new Error("initializeWasm() must be awaited first!");
33349 const nativeResponseValue = wasm.TS_Retry_free(this_ptr);
33350 // debug statements here
33352 // uint64_t Retry_clone_ptr(LDKRetry *NONNULL_PTR arg);
33354 export function Retry_clone_ptr(arg: bigint): bigint {
33355 if(!isWasmInitialized) {
33356 throw new Error("initializeWasm() must be awaited first!");
33358 const nativeResponseValue = wasm.TS_Retry_clone_ptr(arg);
33359 return nativeResponseValue;
33361 // struct LDKRetry Retry_clone(const struct LDKRetry *NONNULL_PTR orig);
33363 export function Retry_clone(orig: bigint): bigint {
33364 if(!isWasmInitialized) {
33365 throw new Error("initializeWasm() must be awaited first!");
33367 const nativeResponseValue = wasm.TS_Retry_clone(orig);
33368 return nativeResponseValue;
33370 // struct LDKRetry Retry_attempts(uintptr_t a);
33372 export function Retry_attempts(a: number): bigint {
33373 if(!isWasmInitialized) {
33374 throw new Error("initializeWasm() must be awaited first!");
33376 const nativeResponseValue = wasm.TS_Retry_attempts(a);
33377 return nativeResponseValue;
33379 // bool Retry_eq(const struct LDKRetry *NONNULL_PTR a, const struct LDKRetry *NONNULL_PTR b);
33381 export function Retry_eq(a: bigint, b: bigint): boolean {
33382 if(!isWasmInitialized) {
33383 throw new Error("initializeWasm() must be awaited first!");
33385 const nativeResponseValue = wasm.TS_Retry_eq(a, b);
33386 return nativeResponseValue;
33388 // uint64_t Retry_hash(const struct LDKRetry *NONNULL_PTR o);
33390 export function Retry_hash(o: bigint): bigint {
33391 if(!isWasmInitialized) {
33392 throw new Error("initializeWasm() must be awaited first!");
33394 const nativeResponseValue = wasm.TS_Retry_hash(o);
33395 return nativeResponseValue;
33397 // enum LDKRetryableSendFailure RetryableSendFailure_clone(const enum LDKRetryableSendFailure *NONNULL_PTR orig);
33399 export function RetryableSendFailure_clone(orig: bigint): RetryableSendFailure {
33400 if(!isWasmInitialized) {
33401 throw new Error("initializeWasm() must be awaited first!");
33403 const nativeResponseValue = wasm.TS_RetryableSendFailure_clone(orig);
33404 return nativeResponseValue;
33406 // enum LDKRetryableSendFailure RetryableSendFailure_payment_expired(void);
33408 export function RetryableSendFailure_payment_expired(): RetryableSendFailure {
33409 if(!isWasmInitialized) {
33410 throw new Error("initializeWasm() must be awaited first!");
33412 const nativeResponseValue = wasm.TS_RetryableSendFailure_payment_expired();
33413 return nativeResponseValue;
33415 // enum LDKRetryableSendFailure RetryableSendFailure_route_not_found(void);
33417 export function RetryableSendFailure_route_not_found(): RetryableSendFailure {
33418 if(!isWasmInitialized) {
33419 throw new Error("initializeWasm() must be awaited first!");
33421 const nativeResponseValue = wasm.TS_RetryableSendFailure_route_not_found();
33422 return nativeResponseValue;
33424 // enum LDKRetryableSendFailure RetryableSendFailure_duplicate_payment(void);
33426 export function RetryableSendFailure_duplicate_payment(): RetryableSendFailure {
33427 if(!isWasmInitialized) {
33428 throw new Error("initializeWasm() must be awaited first!");
33430 const nativeResponseValue = wasm.TS_RetryableSendFailure_duplicate_payment();
33431 return nativeResponseValue;
33433 // void PaymentSendFailure_free(struct LDKPaymentSendFailure this_ptr);
33435 export function PaymentSendFailure_free(this_ptr: bigint): void {
33436 if(!isWasmInitialized) {
33437 throw new Error("initializeWasm() must be awaited first!");
33439 const nativeResponseValue = wasm.TS_PaymentSendFailure_free(this_ptr);
33440 // debug statements here
33442 // uint64_t PaymentSendFailure_clone_ptr(LDKPaymentSendFailure *NONNULL_PTR arg);
33444 export function PaymentSendFailure_clone_ptr(arg: bigint): bigint {
33445 if(!isWasmInitialized) {
33446 throw new Error("initializeWasm() must be awaited first!");
33448 const nativeResponseValue = wasm.TS_PaymentSendFailure_clone_ptr(arg);
33449 return nativeResponseValue;
33451 // struct LDKPaymentSendFailure PaymentSendFailure_clone(const struct LDKPaymentSendFailure *NONNULL_PTR orig);
33453 export function PaymentSendFailure_clone(orig: bigint): bigint {
33454 if(!isWasmInitialized) {
33455 throw new Error("initializeWasm() must be awaited first!");
33457 const nativeResponseValue = wasm.TS_PaymentSendFailure_clone(orig);
33458 return nativeResponseValue;
33460 // struct LDKPaymentSendFailure PaymentSendFailure_parameter_error(struct LDKAPIError a);
33462 export function PaymentSendFailure_parameter_error(a: bigint): bigint {
33463 if(!isWasmInitialized) {
33464 throw new Error("initializeWasm() must be awaited first!");
33466 const nativeResponseValue = wasm.TS_PaymentSendFailure_parameter_error(a);
33467 return nativeResponseValue;
33469 // struct LDKPaymentSendFailure PaymentSendFailure_path_parameter_error(struct LDKCVec_CResult_NoneAPIErrorZZ a);
33471 export function PaymentSendFailure_path_parameter_error(a: number): bigint {
33472 if(!isWasmInitialized) {
33473 throw new Error("initializeWasm() must be awaited first!");
33475 const nativeResponseValue = wasm.TS_PaymentSendFailure_path_parameter_error(a);
33476 return nativeResponseValue;
33478 // struct LDKPaymentSendFailure PaymentSendFailure_all_failed_resend_safe(struct LDKCVec_APIErrorZ a);
33480 export function PaymentSendFailure_all_failed_resend_safe(a: number): bigint {
33481 if(!isWasmInitialized) {
33482 throw new Error("initializeWasm() must be awaited first!");
33484 const nativeResponseValue = wasm.TS_PaymentSendFailure_all_failed_resend_safe(a);
33485 return nativeResponseValue;
33487 // struct LDKPaymentSendFailure PaymentSendFailure_duplicate_payment(void);
33489 export function PaymentSendFailure_duplicate_payment(): bigint {
33490 if(!isWasmInitialized) {
33491 throw new Error("initializeWasm() must be awaited first!");
33493 const nativeResponseValue = wasm.TS_PaymentSendFailure_duplicate_payment();
33494 return nativeResponseValue;
33496 // struct LDKPaymentSendFailure PaymentSendFailure_partial_failure(struct LDKCVec_CResult_NoneAPIErrorZZ results, struct LDKRouteParameters failed_paths_retry, struct LDKThirtyTwoBytes payment_id);
33498 export function PaymentSendFailure_partial_failure(results: number, failed_paths_retry: bigint, payment_id: number): bigint {
33499 if(!isWasmInitialized) {
33500 throw new Error("initializeWasm() must be awaited first!");
33502 const nativeResponseValue = wasm.TS_PaymentSendFailure_partial_failure(results, failed_paths_retry, payment_id);
33503 return nativeResponseValue;
33505 // void RecipientOnionFields_free(struct LDKRecipientOnionFields this_obj);
33507 export function RecipientOnionFields_free(this_obj: bigint): void {
33508 if(!isWasmInitialized) {
33509 throw new Error("initializeWasm() must be awaited first!");
33511 const nativeResponseValue = wasm.TS_RecipientOnionFields_free(this_obj);
33512 // debug statements here
33514 // struct LDKThirtyTwoBytes RecipientOnionFields_get_payment_secret(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr);
33516 export function RecipientOnionFields_get_payment_secret(this_ptr: bigint): number {
33517 if(!isWasmInitialized) {
33518 throw new Error("initializeWasm() must be awaited first!");
33520 const nativeResponseValue = wasm.TS_RecipientOnionFields_get_payment_secret(this_ptr);
33521 return nativeResponseValue;
33523 // void RecipientOnionFields_set_payment_secret(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
33525 export function RecipientOnionFields_set_payment_secret(this_ptr: bigint, val: number): void {
33526 if(!isWasmInitialized) {
33527 throw new Error("initializeWasm() must be awaited first!");
33529 const nativeResponseValue = wasm.TS_RecipientOnionFields_set_payment_secret(this_ptr, val);
33530 // debug statements here
33532 // struct LDKCOption_CVec_u8ZZ RecipientOnionFields_get_payment_metadata(const struct LDKRecipientOnionFields *NONNULL_PTR this_ptr);
33534 export function RecipientOnionFields_get_payment_metadata(this_ptr: bigint): bigint {
33535 if(!isWasmInitialized) {
33536 throw new Error("initializeWasm() must be awaited first!");
33538 const nativeResponseValue = wasm.TS_RecipientOnionFields_get_payment_metadata(this_ptr);
33539 return nativeResponseValue;
33541 // void RecipientOnionFields_set_payment_metadata(struct LDKRecipientOnionFields *NONNULL_PTR this_ptr, struct LDKCOption_CVec_u8ZZ val);
33543 export function RecipientOnionFields_set_payment_metadata(this_ptr: bigint, val: bigint): void {
33544 if(!isWasmInitialized) {
33545 throw new Error("initializeWasm() must be awaited first!");
33547 const nativeResponseValue = wasm.TS_RecipientOnionFields_set_payment_metadata(this_ptr, val);
33548 // debug statements here
33550 // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_new(struct LDKThirtyTwoBytes payment_secret_arg, struct LDKCOption_CVec_u8ZZ payment_metadata_arg);
33552 export function RecipientOnionFields_new(payment_secret_arg: number, payment_metadata_arg: bigint): bigint {
33553 if(!isWasmInitialized) {
33554 throw new Error("initializeWasm() must be awaited first!");
33556 const nativeResponseValue = wasm.TS_RecipientOnionFields_new(payment_secret_arg, payment_metadata_arg);
33557 return nativeResponseValue;
33559 // uint64_t RecipientOnionFields_clone_ptr(LDKRecipientOnionFields *NONNULL_PTR arg);
33561 export function RecipientOnionFields_clone_ptr(arg: bigint): bigint {
33562 if(!isWasmInitialized) {
33563 throw new Error("initializeWasm() must be awaited first!");
33565 const nativeResponseValue = wasm.TS_RecipientOnionFields_clone_ptr(arg);
33566 return nativeResponseValue;
33568 // struct LDKRecipientOnionFields RecipientOnionFields_clone(const struct LDKRecipientOnionFields *NONNULL_PTR orig);
33570 export function RecipientOnionFields_clone(orig: bigint): bigint {
33571 if(!isWasmInitialized) {
33572 throw new Error("initializeWasm() must be awaited first!");
33574 const nativeResponseValue = wasm.TS_RecipientOnionFields_clone(orig);
33575 return nativeResponseValue;
33577 // bool RecipientOnionFields_eq(const struct LDKRecipientOnionFields *NONNULL_PTR a, const struct LDKRecipientOnionFields *NONNULL_PTR b);
33579 export function RecipientOnionFields_eq(a: bigint, b: bigint): boolean {
33580 if(!isWasmInitialized) {
33581 throw new Error("initializeWasm() must be awaited first!");
33583 const nativeResponseValue = wasm.TS_RecipientOnionFields_eq(a, b);
33584 return nativeResponseValue;
33586 // struct LDKCVec_u8Z RecipientOnionFields_write(const struct LDKRecipientOnionFields *NONNULL_PTR obj);
33588 export function RecipientOnionFields_write(obj: bigint): number {
33589 if(!isWasmInitialized) {
33590 throw new Error("initializeWasm() must be awaited first!");
33592 const nativeResponseValue = wasm.TS_RecipientOnionFields_write(obj);
33593 return nativeResponseValue;
33595 // struct LDKCResult_RecipientOnionFieldsDecodeErrorZ RecipientOnionFields_read(struct LDKu8slice ser);
33597 export function RecipientOnionFields_read(ser: number): bigint {
33598 if(!isWasmInitialized) {
33599 throw new Error("initializeWasm() must be awaited first!");
33601 const nativeResponseValue = wasm.TS_RecipientOnionFields_read(ser);
33602 return nativeResponseValue;
33604 // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_secret_only(struct LDKThirtyTwoBytes payment_secret);
33606 export function RecipientOnionFields_secret_only(payment_secret: number): bigint {
33607 if(!isWasmInitialized) {
33608 throw new Error("initializeWasm() must be awaited first!");
33610 const nativeResponseValue = wasm.TS_RecipientOnionFields_secret_only(payment_secret);
33611 return nativeResponseValue;
33613 // MUST_USE_RES struct LDKRecipientOnionFields RecipientOnionFields_spontaneous_empty(void);
33615 export function RecipientOnionFields_spontaneous_empty(): bigint {
33616 if(!isWasmInitialized) {
33617 throw new Error("initializeWasm() must be awaited first!");
33619 const nativeResponseValue = wasm.TS_RecipientOnionFields_spontaneous_empty();
33620 return nativeResponseValue;
33622 // void CustomMessageReader_free(struct LDKCustomMessageReader this_ptr);
33624 export function CustomMessageReader_free(this_ptr: bigint): void {
33625 if(!isWasmInitialized) {
33626 throw new Error("initializeWasm() must be awaited first!");
33628 const nativeResponseValue = wasm.TS_CustomMessageReader_free(this_ptr);
33629 // debug statements here
33631 // uint64_t Type_clone_ptr(LDKType *NONNULL_PTR arg);
33633 export function Type_clone_ptr(arg: bigint): bigint {
33634 if(!isWasmInitialized) {
33635 throw new Error("initializeWasm() must be awaited first!");
33637 const nativeResponseValue = wasm.TS_Type_clone_ptr(arg);
33638 return nativeResponseValue;
33640 // struct LDKType Type_clone(const struct LDKType *NONNULL_PTR orig);
33642 export function Type_clone(orig: bigint): bigint {
33643 if(!isWasmInitialized) {
33644 throw new Error("initializeWasm() must be awaited first!");
33646 const nativeResponseValue = wasm.TS_Type_clone(orig);
33647 return nativeResponseValue;
33649 // void Type_free(struct LDKType this_ptr);
33651 export function Type_free(this_ptr: bigint): void {
33652 if(!isWasmInitialized) {
33653 throw new Error("initializeWasm() must be awaited first!");
33655 const nativeResponseValue = wasm.TS_Type_free(this_ptr);
33656 // debug statements here
33658 // void UnsignedInvoice_free(struct LDKUnsignedInvoice this_obj);
33660 export function UnsignedInvoice_free(this_obj: bigint): void {
33661 if(!isWasmInitialized) {
33662 throw new Error("initializeWasm() must be awaited first!");
33664 const nativeResponseValue = wasm.TS_UnsignedInvoice_free(this_obj);
33665 // debug statements here
33667 // MUST_USE_RES struct LDKPublicKey UnsignedInvoice_signing_pubkey(const struct LDKUnsignedInvoice *NONNULL_PTR this_arg);
33669 export function UnsignedInvoice_signing_pubkey(this_arg: bigint): number {
33670 if(!isWasmInitialized) {
33671 throw new Error("initializeWasm() must be awaited first!");
33673 const nativeResponseValue = wasm.TS_UnsignedInvoice_signing_pubkey(this_arg);
33674 return nativeResponseValue;
33676 // void BlindedPayInfo_free(struct LDKBlindedPayInfo this_obj);
33678 export function BlindedPayInfo_free(this_obj: bigint): void {
33679 if(!isWasmInitialized) {
33680 throw new Error("initializeWasm() must be awaited first!");
33682 const nativeResponseValue = wasm.TS_BlindedPayInfo_free(this_obj);
33683 // debug statements here
33685 // uint32_t BlindedPayInfo_get_fee_base_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
33687 export function BlindedPayInfo_get_fee_base_msat(this_ptr: bigint): number {
33688 if(!isWasmInitialized) {
33689 throw new Error("initializeWasm() must be awaited first!");
33691 const nativeResponseValue = wasm.TS_BlindedPayInfo_get_fee_base_msat(this_ptr);
33692 return nativeResponseValue;
33694 // void BlindedPayInfo_set_fee_base_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint32_t val);
33696 export function BlindedPayInfo_set_fee_base_msat(this_ptr: bigint, val: number): void {
33697 if(!isWasmInitialized) {
33698 throw new Error("initializeWasm() must be awaited first!");
33700 const nativeResponseValue = wasm.TS_BlindedPayInfo_set_fee_base_msat(this_ptr, val);
33701 // debug statements here
33703 // uint32_t BlindedPayInfo_get_fee_proportional_millionths(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
33705 export function BlindedPayInfo_get_fee_proportional_millionths(this_ptr: bigint): number {
33706 if(!isWasmInitialized) {
33707 throw new Error("initializeWasm() must be awaited first!");
33709 const nativeResponseValue = wasm.TS_BlindedPayInfo_get_fee_proportional_millionths(this_ptr);
33710 return nativeResponseValue;
33712 // void BlindedPayInfo_set_fee_proportional_millionths(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint32_t val);
33714 export function BlindedPayInfo_set_fee_proportional_millionths(this_ptr: bigint, val: number): void {
33715 if(!isWasmInitialized) {
33716 throw new Error("initializeWasm() must be awaited first!");
33718 const nativeResponseValue = wasm.TS_BlindedPayInfo_set_fee_proportional_millionths(this_ptr, val);
33719 // debug statements here
33721 // uint16_t BlindedPayInfo_get_cltv_expiry_delta(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
33723 export function BlindedPayInfo_get_cltv_expiry_delta(this_ptr: bigint): number {
33724 if(!isWasmInitialized) {
33725 throw new Error("initializeWasm() must be awaited first!");
33727 const nativeResponseValue = wasm.TS_BlindedPayInfo_get_cltv_expiry_delta(this_ptr);
33728 return nativeResponseValue;
33730 // void BlindedPayInfo_set_cltv_expiry_delta(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint16_t val);
33732 export function BlindedPayInfo_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
33733 if(!isWasmInitialized) {
33734 throw new Error("initializeWasm() must be awaited first!");
33736 const nativeResponseValue = wasm.TS_BlindedPayInfo_set_cltv_expiry_delta(this_ptr, val);
33737 // debug statements here
33739 // uint64_t BlindedPayInfo_get_htlc_minimum_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
33741 export function BlindedPayInfo_get_htlc_minimum_msat(this_ptr: bigint): bigint {
33742 if(!isWasmInitialized) {
33743 throw new Error("initializeWasm() must be awaited first!");
33745 const nativeResponseValue = wasm.TS_BlindedPayInfo_get_htlc_minimum_msat(this_ptr);
33746 return nativeResponseValue;
33748 // void BlindedPayInfo_set_htlc_minimum_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint64_t val);
33750 export function BlindedPayInfo_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
33751 if(!isWasmInitialized) {
33752 throw new Error("initializeWasm() must be awaited first!");
33754 const nativeResponseValue = wasm.TS_BlindedPayInfo_set_htlc_minimum_msat(this_ptr, val);
33755 // debug statements here
33757 // uint64_t BlindedPayInfo_get_htlc_maximum_msat(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
33759 export function BlindedPayInfo_get_htlc_maximum_msat(this_ptr: bigint): bigint {
33760 if(!isWasmInitialized) {
33761 throw new Error("initializeWasm() must be awaited first!");
33763 const nativeResponseValue = wasm.TS_BlindedPayInfo_get_htlc_maximum_msat(this_ptr);
33764 return nativeResponseValue;
33766 // void BlindedPayInfo_set_htlc_maximum_msat(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, uint64_t val);
33768 export function BlindedPayInfo_set_htlc_maximum_msat(this_ptr: bigint, val: bigint): void {
33769 if(!isWasmInitialized) {
33770 throw new Error("initializeWasm() must be awaited first!");
33772 const nativeResponseValue = wasm.TS_BlindedPayInfo_set_htlc_maximum_msat(this_ptr, val);
33773 // debug statements here
33775 // struct LDKBlindedHopFeatures BlindedPayInfo_get_features(const struct LDKBlindedPayInfo *NONNULL_PTR this_ptr);
33777 export function BlindedPayInfo_get_features(this_ptr: bigint): bigint {
33778 if(!isWasmInitialized) {
33779 throw new Error("initializeWasm() must be awaited first!");
33781 const nativeResponseValue = wasm.TS_BlindedPayInfo_get_features(this_ptr);
33782 return nativeResponseValue;
33784 // void BlindedPayInfo_set_features(struct LDKBlindedPayInfo *NONNULL_PTR this_ptr, struct LDKBlindedHopFeatures val);
33786 export function BlindedPayInfo_set_features(this_ptr: bigint, val: bigint): void {
33787 if(!isWasmInitialized) {
33788 throw new Error("initializeWasm() must be awaited first!");
33790 const nativeResponseValue = wasm.TS_BlindedPayInfo_set_features(this_ptr, val);
33791 // debug statements here
33793 // MUST_USE_RES struct LDKBlindedPayInfo BlindedPayInfo_new(uint32_t fee_base_msat_arg, uint32_t fee_proportional_millionths_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, uint64_t htlc_maximum_msat_arg, struct LDKBlindedHopFeatures features_arg);
33795 export function BlindedPayInfo_new(fee_base_msat_arg: number, fee_proportional_millionths_arg: number, cltv_expiry_delta_arg: number, htlc_minimum_msat_arg: bigint, htlc_maximum_msat_arg: bigint, features_arg: bigint): bigint {
33796 if(!isWasmInitialized) {
33797 throw new Error("initializeWasm() must be awaited first!");
33799 const nativeResponseValue = wasm.TS_BlindedPayInfo_new(fee_base_msat_arg, fee_proportional_millionths_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, features_arg);
33800 return nativeResponseValue;
33802 // uint64_t BlindedPayInfo_clone_ptr(LDKBlindedPayInfo *NONNULL_PTR arg);
33804 export function BlindedPayInfo_clone_ptr(arg: bigint): bigint {
33805 if(!isWasmInitialized) {
33806 throw new Error("initializeWasm() must be awaited first!");
33808 const nativeResponseValue = wasm.TS_BlindedPayInfo_clone_ptr(arg);
33809 return nativeResponseValue;
33811 // struct LDKBlindedPayInfo BlindedPayInfo_clone(const struct LDKBlindedPayInfo *NONNULL_PTR orig);
33813 export function BlindedPayInfo_clone(orig: bigint): bigint {
33814 if(!isWasmInitialized) {
33815 throw new Error("initializeWasm() must be awaited first!");
33817 const nativeResponseValue = wasm.TS_BlindedPayInfo_clone(orig);
33818 return nativeResponseValue;
33820 // uint64_t BlindedPayInfo_hash(const struct LDKBlindedPayInfo *NONNULL_PTR o);
33822 export function BlindedPayInfo_hash(o: bigint): bigint {
33823 if(!isWasmInitialized) {
33824 throw new Error("initializeWasm() must be awaited first!");
33826 const nativeResponseValue = wasm.TS_BlindedPayInfo_hash(o);
33827 return nativeResponseValue;
33829 // bool BlindedPayInfo_eq(const struct LDKBlindedPayInfo *NONNULL_PTR a, const struct LDKBlindedPayInfo *NONNULL_PTR b);
33831 export function BlindedPayInfo_eq(a: bigint, b: bigint): boolean {
33832 if(!isWasmInitialized) {
33833 throw new Error("initializeWasm() must be awaited first!");
33835 const nativeResponseValue = wasm.TS_BlindedPayInfo_eq(a, b);
33836 return nativeResponseValue;
33838 // struct LDKCVec_u8Z BlindedPayInfo_write(const struct LDKBlindedPayInfo *NONNULL_PTR obj);
33840 export function BlindedPayInfo_write(obj: bigint): number {
33841 if(!isWasmInitialized) {
33842 throw new Error("initializeWasm() must be awaited first!");
33844 const nativeResponseValue = wasm.TS_BlindedPayInfo_write(obj);
33845 return nativeResponseValue;
33847 // struct LDKCResult_BlindedPayInfoDecodeErrorZ BlindedPayInfo_read(struct LDKu8slice ser);
33849 export function BlindedPayInfo_read(ser: number): bigint {
33850 if(!isWasmInitialized) {
33851 throw new Error("initializeWasm() must be awaited first!");
33853 const nativeResponseValue = wasm.TS_BlindedPayInfo_read(ser);
33854 return nativeResponseValue;
33856 // void UnsignedInvoiceRequest_free(struct LDKUnsignedInvoiceRequest this_obj);
33858 export function UnsignedInvoiceRequest_free(this_obj: bigint): void {
33859 if(!isWasmInitialized) {
33860 throw new Error("initializeWasm() must be awaited first!");
33862 const nativeResponseValue = wasm.TS_UnsignedInvoiceRequest_free(this_obj);
33863 // debug statements here
33865 // void InvoiceRequest_free(struct LDKInvoiceRequest this_obj);
33867 export function InvoiceRequest_free(this_obj: bigint): void {
33868 if(!isWasmInitialized) {
33869 throw new Error("initializeWasm() must be awaited first!");
33871 const nativeResponseValue = wasm.TS_InvoiceRequest_free(this_obj);
33872 // debug statements here
33874 // uint64_t InvoiceRequest_clone_ptr(LDKInvoiceRequest *NONNULL_PTR arg);
33876 export function InvoiceRequest_clone_ptr(arg: bigint): bigint {
33877 if(!isWasmInitialized) {
33878 throw new Error("initializeWasm() must be awaited first!");
33880 const nativeResponseValue = wasm.TS_InvoiceRequest_clone_ptr(arg);
33881 return nativeResponseValue;
33883 // struct LDKInvoiceRequest InvoiceRequest_clone(const struct LDKInvoiceRequest *NONNULL_PTR orig);
33885 export function InvoiceRequest_clone(orig: bigint): bigint {
33886 if(!isWasmInitialized) {
33887 throw new Error("initializeWasm() must be awaited first!");
33889 const nativeResponseValue = wasm.TS_InvoiceRequest_clone(orig);
33890 return nativeResponseValue;
33892 // MUST_USE_RES struct LDKu8slice InvoiceRequest_metadata(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
33894 export function InvoiceRequest_metadata(this_arg: bigint): number {
33895 if(!isWasmInitialized) {
33896 throw new Error("initializeWasm() must be awaited first!");
33898 const nativeResponseValue = wasm.TS_InvoiceRequest_metadata(this_arg);
33899 return nativeResponseValue;
33901 // MUST_USE_RES struct LDKThirtyTwoBytes InvoiceRequest_chain(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
33903 export function InvoiceRequest_chain(this_arg: bigint): number {
33904 if(!isWasmInitialized) {
33905 throw new Error("initializeWasm() must be awaited first!");
33907 const nativeResponseValue = wasm.TS_InvoiceRequest_chain(this_arg);
33908 return nativeResponseValue;
33910 // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_amount_msats(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
33912 export function InvoiceRequest_amount_msats(this_arg: bigint): bigint {
33913 if(!isWasmInitialized) {
33914 throw new Error("initializeWasm() must be awaited first!");
33916 const nativeResponseValue = wasm.TS_InvoiceRequest_amount_msats(this_arg);
33917 return nativeResponseValue;
33919 // MUST_USE_RES struct LDKInvoiceRequestFeatures InvoiceRequest_features(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
33921 export function InvoiceRequest_features(this_arg: bigint): bigint {
33922 if(!isWasmInitialized) {
33923 throw new Error("initializeWasm() must be awaited first!");
33925 const nativeResponseValue = wasm.TS_InvoiceRequest_features(this_arg);
33926 return nativeResponseValue;
33928 // MUST_USE_RES struct LDKCOption_u64Z InvoiceRequest_quantity(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
33930 export function InvoiceRequest_quantity(this_arg: bigint): bigint {
33931 if(!isWasmInitialized) {
33932 throw new Error("initializeWasm() must be awaited first!");
33934 const nativeResponseValue = wasm.TS_InvoiceRequest_quantity(this_arg);
33935 return nativeResponseValue;
33937 // MUST_USE_RES struct LDKPublicKey InvoiceRequest_payer_id(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
33939 export function InvoiceRequest_payer_id(this_arg: bigint): number {
33940 if(!isWasmInitialized) {
33941 throw new Error("initializeWasm() must be awaited first!");
33943 const nativeResponseValue = wasm.TS_InvoiceRequest_payer_id(this_arg);
33944 return nativeResponseValue;
33946 // MUST_USE_RES struct LDKPrintableString InvoiceRequest_payer_note(const struct LDKInvoiceRequest *NONNULL_PTR this_arg);
33948 export function InvoiceRequest_payer_note(this_arg: bigint): bigint {
33949 if(!isWasmInitialized) {
33950 throw new Error("initializeWasm() must be awaited first!");
33952 const nativeResponseValue = wasm.TS_InvoiceRequest_payer_note(this_arg);
33953 return nativeResponseValue;
33955 // struct LDKCVec_u8Z InvoiceRequest_write(const struct LDKInvoiceRequest *NONNULL_PTR obj);
33957 export function InvoiceRequest_write(obj: bigint): number {
33958 if(!isWasmInitialized) {
33959 throw new Error("initializeWasm() must be awaited first!");
33961 const nativeResponseValue = wasm.TS_InvoiceRequest_write(obj);
33962 return nativeResponseValue;
33964 // void Offer_free(struct LDKOffer this_obj);
33966 export function Offer_free(this_obj: bigint): void {
33967 if(!isWasmInitialized) {
33968 throw new Error("initializeWasm() must be awaited first!");
33970 const nativeResponseValue = wasm.TS_Offer_free(this_obj);
33971 // debug statements here
33973 // uint64_t Offer_clone_ptr(LDKOffer *NONNULL_PTR arg);
33975 export function Offer_clone_ptr(arg: bigint): bigint {
33976 if(!isWasmInitialized) {
33977 throw new Error("initializeWasm() must be awaited first!");
33979 const nativeResponseValue = wasm.TS_Offer_clone_ptr(arg);
33980 return nativeResponseValue;
33982 // struct LDKOffer Offer_clone(const struct LDKOffer *NONNULL_PTR orig);
33984 export function Offer_clone(orig: bigint): bigint {
33985 if(!isWasmInitialized) {
33986 throw new Error("initializeWasm() must be awaited first!");
33988 const nativeResponseValue = wasm.TS_Offer_clone(orig);
33989 return nativeResponseValue;
33991 // MUST_USE_RES struct LDKCVec_ChainHashZ Offer_chains(const struct LDKOffer *NONNULL_PTR this_arg);
33993 export function Offer_chains(this_arg: bigint): number {
33994 if(!isWasmInitialized) {
33995 throw new Error("initializeWasm() must be awaited first!");
33997 const nativeResponseValue = wasm.TS_Offer_chains(this_arg);
33998 return nativeResponseValue;
34000 // MUST_USE_RES bool Offer_supports_chain(const struct LDKOffer *NONNULL_PTR this_arg, struct LDKThirtyTwoBytes chain);
34002 export function Offer_supports_chain(this_arg: bigint, chain: number): boolean {
34003 if(!isWasmInitialized) {
34004 throw new Error("initializeWasm() must be awaited first!");
34006 const nativeResponseValue = wasm.TS_Offer_supports_chain(this_arg, chain);
34007 return nativeResponseValue;
34009 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Offer_metadata(const struct LDKOffer *NONNULL_PTR this_arg);
34011 export function Offer_metadata(this_arg: bigint): bigint {
34012 if(!isWasmInitialized) {
34013 throw new Error("initializeWasm() must be awaited first!");
34015 const nativeResponseValue = wasm.TS_Offer_metadata(this_arg);
34016 return nativeResponseValue;
34018 // MUST_USE_RES struct LDKAmount Offer_amount(const struct LDKOffer *NONNULL_PTR this_arg);
34020 export function Offer_amount(this_arg: bigint): bigint {
34021 if(!isWasmInitialized) {
34022 throw new Error("initializeWasm() must be awaited first!");
34024 const nativeResponseValue = wasm.TS_Offer_amount(this_arg);
34025 return nativeResponseValue;
34027 // MUST_USE_RES struct LDKPrintableString Offer_description(const struct LDKOffer *NONNULL_PTR this_arg);
34029 export function Offer_description(this_arg: bigint): bigint {
34030 if(!isWasmInitialized) {
34031 throw new Error("initializeWasm() must be awaited first!");
34033 const nativeResponseValue = wasm.TS_Offer_description(this_arg);
34034 return nativeResponseValue;
34036 // MUST_USE_RES struct LDKOfferFeatures Offer_features(const struct LDKOffer *NONNULL_PTR this_arg);
34038 export function Offer_features(this_arg: bigint): bigint {
34039 if(!isWasmInitialized) {
34040 throw new Error("initializeWasm() must be awaited first!");
34042 const nativeResponseValue = wasm.TS_Offer_features(this_arg);
34043 return nativeResponseValue;
34045 // MUST_USE_RES struct LDKCOption_DurationZ Offer_absolute_expiry(const struct LDKOffer *NONNULL_PTR this_arg);
34047 export function Offer_absolute_expiry(this_arg: bigint): bigint {
34048 if(!isWasmInitialized) {
34049 throw new Error("initializeWasm() must be awaited first!");
34051 const nativeResponseValue = wasm.TS_Offer_absolute_expiry(this_arg);
34052 return nativeResponseValue;
34054 // MUST_USE_RES struct LDKPrintableString Offer_issuer(const struct LDKOffer *NONNULL_PTR this_arg);
34056 export function Offer_issuer(this_arg: bigint): bigint {
34057 if(!isWasmInitialized) {
34058 throw new Error("initializeWasm() must be awaited first!");
34060 const nativeResponseValue = wasm.TS_Offer_issuer(this_arg);
34061 return nativeResponseValue;
34063 // MUST_USE_RES struct LDKCVec_BlindedPathZ Offer_paths(const struct LDKOffer *NONNULL_PTR this_arg);
34065 export function Offer_paths(this_arg: bigint): number {
34066 if(!isWasmInitialized) {
34067 throw new Error("initializeWasm() must be awaited first!");
34069 const nativeResponseValue = wasm.TS_Offer_paths(this_arg);
34070 return nativeResponseValue;
34072 // MUST_USE_RES struct LDKQuantity Offer_supported_quantity(const struct LDKOffer *NONNULL_PTR this_arg);
34074 export function Offer_supported_quantity(this_arg: bigint): bigint {
34075 if(!isWasmInitialized) {
34076 throw new Error("initializeWasm() must be awaited first!");
34078 const nativeResponseValue = wasm.TS_Offer_supported_quantity(this_arg);
34079 return nativeResponseValue;
34081 // MUST_USE_RES bool Offer_is_valid_quantity(const struct LDKOffer *NONNULL_PTR this_arg, uint64_t quantity);
34083 export function Offer_is_valid_quantity(this_arg: bigint, quantity: bigint): boolean {
34084 if(!isWasmInitialized) {
34085 throw new Error("initializeWasm() must be awaited first!");
34087 const nativeResponseValue = wasm.TS_Offer_is_valid_quantity(this_arg, quantity);
34088 return nativeResponseValue;
34090 // MUST_USE_RES bool Offer_expects_quantity(const struct LDKOffer *NONNULL_PTR this_arg);
34092 export function Offer_expects_quantity(this_arg: bigint): boolean {
34093 if(!isWasmInitialized) {
34094 throw new Error("initializeWasm() must be awaited first!");
34096 const nativeResponseValue = wasm.TS_Offer_expects_quantity(this_arg);
34097 return nativeResponseValue;
34099 // MUST_USE_RES struct LDKPublicKey Offer_signing_pubkey(const struct LDKOffer *NONNULL_PTR this_arg);
34101 export function Offer_signing_pubkey(this_arg: bigint): number {
34102 if(!isWasmInitialized) {
34103 throw new Error("initializeWasm() must be awaited first!");
34105 const nativeResponseValue = wasm.TS_Offer_signing_pubkey(this_arg);
34106 return nativeResponseValue;
34108 // struct LDKCVec_u8Z Offer_write(const struct LDKOffer *NONNULL_PTR obj);
34110 export function Offer_write(obj: bigint): number {
34111 if(!isWasmInitialized) {
34112 throw new Error("initializeWasm() must be awaited first!");
34114 const nativeResponseValue = wasm.TS_Offer_write(obj);
34115 return nativeResponseValue;
34117 // void Amount_free(struct LDKAmount this_obj);
34119 export function Amount_free(this_obj: bigint): void {
34120 if(!isWasmInitialized) {
34121 throw new Error("initializeWasm() must be awaited first!");
34123 const nativeResponseValue = wasm.TS_Amount_free(this_obj);
34124 // debug statements here
34126 // uint64_t Amount_clone_ptr(LDKAmount *NONNULL_PTR arg);
34128 export function Amount_clone_ptr(arg: bigint): bigint {
34129 if(!isWasmInitialized) {
34130 throw new Error("initializeWasm() must be awaited first!");
34132 const nativeResponseValue = wasm.TS_Amount_clone_ptr(arg);
34133 return nativeResponseValue;
34135 // struct LDKAmount Amount_clone(const struct LDKAmount *NONNULL_PTR orig);
34137 export function Amount_clone(orig: bigint): bigint {
34138 if(!isWasmInitialized) {
34139 throw new Error("initializeWasm() must be awaited first!");
34141 const nativeResponseValue = wasm.TS_Amount_clone(orig);
34142 return nativeResponseValue;
34144 // void Quantity_free(struct LDKQuantity this_obj);
34146 export function Quantity_free(this_obj: bigint): void {
34147 if(!isWasmInitialized) {
34148 throw new Error("initializeWasm() must be awaited first!");
34150 const nativeResponseValue = wasm.TS_Quantity_free(this_obj);
34151 // debug statements here
34153 // uint64_t Quantity_clone_ptr(LDKQuantity *NONNULL_PTR arg);
34155 export function Quantity_clone_ptr(arg: bigint): bigint {
34156 if(!isWasmInitialized) {
34157 throw new Error("initializeWasm() must be awaited first!");
34159 const nativeResponseValue = wasm.TS_Quantity_clone_ptr(arg);
34160 return nativeResponseValue;
34162 // struct LDKQuantity Quantity_clone(const struct LDKQuantity *NONNULL_PTR orig);
34164 export function Quantity_clone(orig: bigint): bigint {
34165 if(!isWasmInitialized) {
34166 throw new Error("initializeWasm() must be awaited first!");
34168 const nativeResponseValue = wasm.TS_Quantity_clone(orig);
34169 return nativeResponseValue;
34171 // void Refund_free(struct LDKRefund this_obj);
34173 export function Refund_free(this_obj: bigint): void {
34174 if(!isWasmInitialized) {
34175 throw new Error("initializeWasm() must be awaited first!");
34177 const nativeResponseValue = wasm.TS_Refund_free(this_obj);
34178 // debug statements here
34180 // uint64_t Refund_clone_ptr(LDKRefund *NONNULL_PTR arg);
34182 export function Refund_clone_ptr(arg: bigint): bigint {
34183 if(!isWasmInitialized) {
34184 throw new Error("initializeWasm() must be awaited first!");
34186 const nativeResponseValue = wasm.TS_Refund_clone_ptr(arg);
34187 return nativeResponseValue;
34189 // struct LDKRefund Refund_clone(const struct LDKRefund *NONNULL_PTR orig);
34191 export function Refund_clone(orig: bigint): bigint {
34192 if(!isWasmInitialized) {
34193 throw new Error("initializeWasm() must be awaited first!");
34195 const nativeResponseValue = wasm.TS_Refund_clone(orig);
34196 return nativeResponseValue;
34198 // MUST_USE_RES struct LDKPrintableString Refund_description(const struct LDKRefund *NONNULL_PTR this_arg);
34200 export function Refund_description(this_arg: bigint): bigint {
34201 if(!isWasmInitialized) {
34202 throw new Error("initializeWasm() must be awaited first!");
34204 const nativeResponseValue = wasm.TS_Refund_description(this_arg);
34205 return nativeResponseValue;
34207 // MUST_USE_RES struct LDKCOption_DurationZ Refund_absolute_expiry(const struct LDKRefund *NONNULL_PTR this_arg);
34209 export function Refund_absolute_expiry(this_arg: bigint): bigint {
34210 if(!isWasmInitialized) {
34211 throw new Error("initializeWasm() must be awaited first!");
34213 const nativeResponseValue = wasm.TS_Refund_absolute_expiry(this_arg);
34214 return nativeResponseValue;
34216 // MUST_USE_RES struct LDKPrintableString Refund_issuer(const struct LDKRefund *NONNULL_PTR this_arg);
34218 export function Refund_issuer(this_arg: bigint): bigint {
34219 if(!isWasmInitialized) {
34220 throw new Error("initializeWasm() must be awaited first!");
34222 const nativeResponseValue = wasm.TS_Refund_issuer(this_arg);
34223 return nativeResponseValue;
34225 // MUST_USE_RES struct LDKCVec_BlindedPathZ Refund_paths(const struct LDKRefund *NONNULL_PTR this_arg);
34227 export function Refund_paths(this_arg: bigint): number {
34228 if(!isWasmInitialized) {
34229 throw new Error("initializeWasm() must be awaited first!");
34231 const nativeResponseValue = wasm.TS_Refund_paths(this_arg);
34232 return nativeResponseValue;
34234 // MUST_USE_RES struct LDKu8slice Refund_metadata(const struct LDKRefund *NONNULL_PTR this_arg);
34236 export function Refund_metadata(this_arg: bigint): number {
34237 if(!isWasmInitialized) {
34238 throw new Error("initializeWasm() must be awaited first!");
34240 const nativeResponseValue = wasm.TS_Refund_metadata(this_arg);
34241 return nativeResponseValue;
34243 // MUST_USE_RES struct LDKThirtyTwoBytes Refund_chain(const struct LDKRefund *NONNULL_PTR this_arg);
34245 export function Refund_chain(this_arg: bigint): number {
34246 if(!isWasmInitialized) {
34247 throw new Error("initializeWasm() must be awaited first!");
34249 const nativeResponseValue = wasm.TS_Refund_chain(this_arg);
34250 return nativeResponseValue;
34252 // MUST_USE_RES uint64_t Refund_amount_msats(const struct LDKRefund *NONNULL_PTR this_arg);
34254 export function Refund_amount_msats(this_arg: bigint): bigint {
34255 if(!isWasmInitialized) {
34256 throw new Error("initializeWasm() must be awaited first!");
34258 const nativeResponseValue = wasm.TS_Refund_amount_msats(this_arg);
34259 return nativeResponseValue;
34261 // MUST_USE_RES struct LDKInvoiceRequestFeatures Refund_features(const struct LDKRefund *NONNULL_PTR this_arg);
34263 export function Refund_features(this_arg: bigint): bigint {
34264 if(!isWasmInitialized) {
34265 throw new Error("initializeWasm() must be awaited first!");
34267 const nativeResponseValue = wasm.TS_Refund_features(this_arg);
34268 return nativeResponseValue;
34270 // MUST_USE_RES struct LDKCOption_u64Z Refund_quantity(const struct LDKRefund *NONNULL_PTR this_arg);
34272 export function Refund_quantity(this_arg: bigint): bigint {
34273 if(!isWasmInitialized) {
34274 throw new Error("initializeWasm() must be awaited first!");
34276 const nativeResponseValue = wasm.TS_Refund_quantity(this_arg);
34277 return nativeResponseValue;
34279 // MUST_USE_RES struct LDKPublicKey Refund_payer_id(const struct LDKRefund *NONNULL_PTR this_arg);
34281 export function Refund_payer_id(this_arg: bigint): number {
34282 if(!isWasmInitialized) {
34283 throw new Error("initializeWasm() must be awaited first!");
34285 const nativeResponseValue = wasm.TS_Refund_payer_id(this_arg);
34286 return nativeResponseValue;
34288 // MUST_USE_RES struct LDKPrintableString Refund_payer_note(const struct LDKRefund *NONNULL_PTR this_arg);
34290 export function Refund_payer_note(this_arg: bigint): bigint {
34291 if(!isWasmInitialized) {
34292 throw new Error("initializeWasm() must be awaited first!");
34294 const nativeResponseValue = wasm.TS_Refund_payer_note(this_arg);
34295 return nativeResponseValue;
34297 // struct LDKCVec_u8Z Refund_write(const struct LDKRefund *NONNULL_PTR obj);
34299 export function Refund_write(obj: bigint): number {
34300 if(!isWasmInitialized) {
34301 throw new Error("initializeWasm() must be awaited first!");
34303 const nativeResponseValue = wasm.TS_Refund_write(obj);
34304 return nativeResponseValue;
34306 // enum LDKUtxoLookupError UtxoLookupError_clone(const enum LDKUtxoLookupError *NONNULL_PTR orig);
34308 export function UtxoLookupError_clone(orig: bigint): UtxoLookupError {
34309 if(!isWasmInitialized) {
34310 throw new Error("initializeWasm() must be awaited first!");
34312 const nativeResponseValue = wasm.TS_UtxoLookupError_clone(orig);
34313 return nativeResponseValue;
34315 // enum LDKUtxoLookupError UtxoLookupError_unknown_chain(void);
34317 export function UtxoLookupError_unknown_chain(): UtxoLookupError {
34318 if(!isWasmInitialized) {
34319 throw new Error("initializeWasm() must be awaited first!");
34321 const nativeResponseValue = wasm.TS_UtxoLookupError_unknown_chain();
34322 return nativeResponseValue;
34324 // enum LDKUtxoLookupError UtxoLookupError_unknown_tx(void);
34326 export function UtxoLookupError_unknown_tx(): UtxoLookupError {
34327 if(!isWasmInitialized) {
34328 throw new Error("initializeWasm() must be awaited first!");
34330 const nativeResponseValue = wasm.TS_UtxoLookupError_unknown_tx();
34331 return nativeResponseValue;
34333 // void UtxoResult_free(struct LDKUtxoResult this_ptr);
34335 export function UtxoResult_free(this_ptr: bigint): void {
34336 if(!isWasmInitialized) {
34337 throw new Error("initializeWasm() must be awaited first!");
34339 const nativeResponseValue = wasm.TS_UtxoResult_free(this_ptr);
34340 // debug statements here
34342 // uint64_t UtxoResult_clone_ptr(LDKUtxoResult *NONNULL_PTR arg);
34344 export function UtxoResult_clone_ptr(arg: bigint): bigint {
34345 if(!isWasmInitialized) {
34346 throw new Error("initializeWasm() must be awaited first!");
34348 const nativeResponseValue = wasm.TS_UtxoResult_clone_ptr(arg);
34349 return nativeResponseValue;
34351 // struct LDKUtxoResult UtxoResult_clone(const struct LDKUtxoResult *NONNULL_PTR orig);
34353 export function UtxoResult_clone(orig: bigint): bigint {
34354 if(!isWasmInitialized) {
34355 throw new Error("initializeWasm() must be awaited first!");
34357 const nativeResponseValue = wasm.TS_UtxoResult_clone(orig);
34358 return nativeResponseValue;
34360 // struct LDKUtxoResult UtxoResult_sync(struct LDKCResult_TxOutUtxoLookupErrorZ a);
34362 export function UtxoResult_sync(a: bigint): bigint {
34363 if(!isWasmInitialized) {
34364 throw new Error("initializeWasm() must be awaited first!");
34366 const nativeResponseValue = wasm.TS_UtxoResult_sync(a);
34367 return nativeResponseValue;
34369 // struct LDKUtxoResult UtxoResult_async(struct LDKUtxoFuture a);
34371 export function UtxoResult_async(a: bigint): bigint {
34372 if(!isWasmInitialized) {
34373 throw new Error("initializeWasm() must be awaited first!");
34375 const nativeResponseValue = wasm.TS_UtxoResult_async(a);
34376 return nativeResponseValue;
34378 // void UtxoLookup_free(struct LDKUtxoLookup this_ptr);
34380 export function UtxoLookup_free(this_ptr: bigint): void {
34381 if(!isWasmInitialized) {
34382 throw new Error("initializeWasm() must be awaited first!");
34384 const nativeResponseValue = wasm.TS_UtxoLookup_free(this_ptr);
34385 // debug statements here
34387 // void UtxoFuture_free(struct LDKUtxoFuture this_obj);
34389 export function UtxoFuture_free(this_obj: bigint): void {
34390 if(!isWasmInitialized) {
34391 throw new Error("initializeWasm() must be awaited first!");
34393 const nativeResponseValue = wasm.TS_UtxoFuture_free(this_obj);
34394 // debug statements here
34396 // uint64_t UtxoFuture_clone_ptr(LDKUtxoFuture *NONNULL_PTR arg);
34398 export function UtxoFuture_clone_ptr(arg: bigint): bigint {
34399 if(!isWasmInitialized) {
34400 throw new Error("initializeWasm() must be awaited first!");
34402 const nativeResponseValue = wasm.TS_UtxoFuture_clone_ptr(arg);
34403 return nativeResponseValue;
34405 // struct LDKUtxoFuture UtxoFuture_clone(const struct LDKUtxoFuture *NONNULL_PTR orig);
34407 export function UtxoFuture_clone(orig: bigint): bigint {
34408 if(!isWasmInitialized) {
34409 throw new Error("initializeWasm() must be awaited first!");
34411 const nativeResponseValue = wasm.TS_UtxoFuture_clone(orig);
34412 return nativeResponseValue;
34414 // MUST_USE_RES struct LDKUtxoFuture UtxoFuture_new(void);
34416 export function UtxoFuture_new(): bigint {
34417 if(!isWasmInitialized) {
34418 throw new Error("initializeWasm() must be awaited first!");
34420 const nativeResponseValue = wasm.TS_UtxoFuture_new();
34421 return nativeResponseValue;
34423 // void UtxoFuture_resolve_without_forwarding(const struct LDKUtxoFuture *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR graph, struct LDKCResult_TxOutUtxoLookupErrorZ result);
34425 export function UtxoFuture_resolve_without_forwarding(this_arg: bigint, graph: bigint, result: bigint): void {
34426 if(!isWasmInitialized) {
34427 throw new Error("initializeWasm() must be awaited first!");
34429 const nativeResponseValue = wasm.TS_UtxoFuture_resolve_without_forwarding(this_arg, graph, result);
34430 // debug statements here
34432 // void UtxoFuture_resolve(const struct LDKUtxoFuture *NONNULL_PTR this_arg, const struct LDKNetworkGraph *NONNULL_PTR graph, const struct LDKP2PGossipSync *NONNULL_PTR gossip, struct LDKCResult_TxOutUtxoLookupErrorZ result);
34434 export function UtxoFuture_resolve(this_arg: bigint, graph: bigint, gossip: bigint, result: bigint): void {
34435 if(!isWasmInitialized) {
34436 throw new Error("initializeWasm() must be awaited first!");
34438 const nativeResponseValue = wasm.TS_UtxoFuture_resolve(this_arg, graph, gossip, result);
34439 // debug statements here
34441 // void NodeId_free(struct LDKNodeId this_obj);
34443 export function NodeId_free(this_obj: bigint): void {
34444 if(!isWasmInitialized) {
34445 throw new Error("initializeWasm() must be awaited first!");
34447 const nativeResponseValue = wasm.TS_NodeId_free(this_obj);
34448 // debug statements here
34450 // uint64_t NodeId_clone_ptr(LDKNodeId *NONNULL_PTR arg);
34452 export function NodeId_clone_ptr(arg: bigint): bigint {
34453 if(!isWasmInitialized) {
34454 throw new Error("initializeWasm() must be awaited first!");
34456 const nativeResponseValue = wasm.TS_NodeId_clone_ptr(arg);
34457 return nativeResponseValue;
34459 // struct LDKNodeId NodeId_clone(const struct LDKNodeId *NONNULL_PTR orig);
34461 export function NodeId_clone(orig: bigint): bigint {
34462 if(!isWasmInitialized) {
34463 throw new Error("initializeWasm() must be awaited first!");
34465 const nativeResponseValue = wasm.TS_NodeId_clone(orig);
34466 return nativeResponseValue;
34468 // MUST_USE_RES struct LDKNodeId NodeId_from_pubkey(struct LDKPublicKey pubkey);
34470 export function NodeId_from_pubkey(pubkey: number): bigint {
34471 if(!isWasmInitialized) {
34472 throw new Error("initializeWasm() must be awaited first!");
34474 const nativeResponseValue = wasm.TS_NodeId_from_pubkey(pubkey);
34475 return nativeResponseValue;
34477 // MUST_USE_RES struct LDKu8slice NodeId_as_slice(const struct LDKNodeId *NONNULL_PTR this_arg);
34479 export function NodeId_as_slice(this_arg: bigint): number {
34480 if(!isWasmInitialized) {
34481 throw new Error("initializeWasm() must be awaited first!");
34483 const nativeResponseValue = wasm.TS_NodeId_as_slice(this_arg);
34484 return nativeResponseValue;
34486 // MUST_USE_RES struct LDKCResult_PublicKeyErrorZ NodeId_as_pubkey(const struct LDKNodeId *NONNULL_PTR this_arg);
34488 export function NodeId_as_pubkey(this_arg: bigint): bigint {
34489 if(!isWasmInitialized) {
34490 throw new Error("initializeWasm() must be awaited first!");
34492 const nativeResponseValue = wasm.TS_NodeId_as_pubkey(this_arg);
34493 return nativeResponseValue;
34495 // uint64_t NodeId_hash(const struct LDKNodeId *NONNULL_PTR o);
34497 export function NodeId_hash(o: bigint): bigint {
34498 if(!isWasmInitialized) {
34499 throw new Error("initializeWasm() must be awaited first!");
34501 const nativeResponseValue = wasm.TS_NodeId_hash(o);
34502 return nativeResponseValue;
34504 // struct LDKCVec_u8Z NodeId_write(const struct LDKNodeId *NONNULL_PTR obj);
34506 export function NodeId_write(obj: bigint): number {
34507 if(!isWasmInitialized) {
34508 throw new Error("initializeWasm() must be awaited first!");
34510 const nativeResponseValue = wasm.TS_NodeId_write(obj);
34511 return nativeResponseValue;
34513 // struct LDKCResult_NodeIdDecodeErrorZ NodeId_read(struct LDKu8slice ser);
34515 export function NodeId_read(ser: number): bigint {
34516 if(!isWasmInitialized) {
34517 throw new Error("initializeWasm() must be awaited first!");
34519 const nativeResponseValue = wasm.TS_NodeId_read(ser);
34520 return nativeResponseValue;
34522 // void NetworkGraph_free(struct LDKNetworkGraph this_obj);
34524 export function NetworkGraph_free(this_obj: bigint): void {
34525 if(!isWasmInitialized) {
34526 throw new Error("initializeWasm() must be awaited first!");
34528 const nativeResponseValue = wasm.TS_NetworkGraph_free(this_obj);
34529 // debug statements here
34531 // void ReadOnlyNetworkGraph_free(struct LDKReadOnlyNetworkGraph this_obj);
34533 export function ReadOnlyNetworkGraph_free(this_obj: bigint): void {
34534 if(!isWasmInitialized) {
34535 throw new Error("initializeWasm() must be awaited first!");
34537 const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_free(this_obj);
34538 // debug statements here
34540 // void NetworkUpdate_free(struct LDKNetworkUpdate this_ptr);
34542 export function NetworkUpdate_free(this_ptr: bigint): void {
34543 if(!isWasmInitialized) {
34544 throw new Error("initializeWasm() must be awaited first!");
34546 const nativeResponseValue = wasm.TS_NetworkUpdate_free(this_ptr);
34547 // debug statements here
34549 // uint64_t NetworkUpdate_clone_ptr(LDKNetworkUpdate *NONNULL_PTR arg);
34551 export function NetworkUpdate_clone_ptr(arg: bigint): bigint {
34552 if(!isWasmInitialized) {
34553 throw new Error("initializeWasm() must be awaited first!");
34555 const nativeResponseValue = wasm.TS_NetworkUpdate_clone_ptr(arg);
34556 return nativeResponseValue;
34558 // struct LDKNetworkUpdate NetworkUpdate_clone(const struct LDKNetworkUpdate *NONNULL_PTR orig);
34560 export function NetworkUpdate_clone(orig: bigint): bigint {
34561 if(!isWasmInitialized) {
34562 throw new Error("initializeWasm() must be awaited first!");
34564 const nativeResponseValue = wasm.TS_NetworkUpdate_clone(orig);
34565 return nativeResponseValue;
34567 // struct LDKNetworkUpdate NetworkUpdate_channel_update_message(struct LDKChannelUpdate msg);
34569 export function NetworkUpdate_channel_update_message(msg: bigint): bigint {
34570 if(!isWasmInitialized) {
34571 throw new Error("initializeWasm() must be awaited first!");
34573 const nativeResponseValue = wasm.TS_NetworkUpdate_channel_update_message(msg);
34574 return nativeResponseValue;
34576 // struct LDKNetworkUpdate NetworkUpdate_channel_failure(uint64_t short_channel_id, bool is_permanent);
34578 export function NetworkUpdate_channel_failure(short_channel_id: bigint, is_permanent: boolean): bigint {
34579 if(!isWasmInitialized) {
34580 throw new Error("initializeWasm() must be awaited first!");
34582 const nativeResponseValue = wasm.TS_NetworkUpdate_channel_failure(short_channel_id, is_permanent);
34583 return nativeResponseValue;
34585 // struct LDKNetworkUpdate NetworkUpdate_node_failure(struct LDKPublicKey node_id, bool is_permanent);
34587 export function NetworkUpdate_node_failure(node_id: number, is_permanent: boolean): bigint {
34588 if(!isWasmInitialized) {
34589 throw new Error("initializeWasm() must be awaited first!");
34591 const nativeResponseValue = wasm.TS_NetworkUpdate_node_failure(node_id, is_permanent);
34592 return nativeResponseValue;
34594 // bool NetworkUpdate_eq(const struct LDKNetworkUpdate *NONNULL_PTR a, const struct LDKNetworkUpdate *NONNULL_PTR b);
34596 export function NetworkUpdate_eq(a: bigint, b: bigint): boolean {
34597 if(!isWasmInitialized) {
34598 throw new Error("initializeWasm() must be awaited first!");
34600 const nativeResponseValue = wasm.TS_NetworkUpdate_eq(a, b);
34601 return nativeResponseValue;
34603 // struct LDKCVec_u8Z NetworkUpdate_write(const struct LDKNetworkUpdate *NONNULL_PTR obj);
34605 export function NetworkUpdate_write(obj: bigint): number {
34606 if(!isWasmInitialized) {
34607 throw new Error("initializeWasm() must be awaited first!");
34609 const nativeResponseValue = wasm.TS_NetworkUpdate_write(obj);
34610 return nativeResponseValue;
34612 // struct LDKCResult_COption_NetworkUpdateZDecodeErrorZ NetworkUpdate_read(struct LDKu8slice ser);
34614 export function NetworkUpdate_read(ser: number): bigint {
34615 if(!isWasmInitialized) {
34616 throw new Error("initializeWasm() must be awaited first!");
34618 const nativeResponseValue = wasm.TS_NetworkUpdate_read(ser);
34619 return nativeResponseValue;
34621 // void P2PGossipSync_free(struct LDKP2PGossipSync this_obj);
34623 export function P2PGossipSync_free(this_obj: bigint): void {
34624 if(!isWasmInitialized) {
34625 throw new Error("initializeWasm() must be awaited first!");
34627 const nativeResponseValue = wasm.TS_P2PGossipSync_free(this_obj);
34628 // debug statements here
34630 // MUST_USE_RES struct LDKP2PGossipSync P2PGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCOption_UtxoLookupZ utxo_lookup, struct LDKLogger logger);
34632 export function P2PGossipSync_new(network_graph: bigint, utxo_lookup: bigint, logger: bigint): bigint {
34633 if(!isWasmInitialized) {
34634 throw new Error("initializeWasm() must be awaited first!");
34636 const nativeResponseValue = wasm.TS_P2PGossipSync_new(network_graph, utxo_lookup, logger);
34637 return nativeResponseValue;
34639 // void P2PGossipSync_add_utxo_lookup(struct LDKP2PGossipSync *NONNULL_PTR this_arg, struct LDKCOption_UtxoLookupZ utxo_lookup);
34641 export function P2PGossipSync_add_utxo_lookup(this_arg: bigint, utxo_lookup: bigint): void {
34642 if(!isWasmInitialized) {
34643 throw new Error("initializeWasm() must be awaited first!");
34645 const nativeResponseValue = wasm.TS_P2PGossipSync_add_utxo_lookup(this_arg, utxo_lookup);
34646 // debug statements here
34648 // void NetworkGraph_handle_network_update(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNetworkUpdate *NONNULL_PTR network_update);
34650 export function NetworkGraph_handle_network_update(this_arg: bigint, network_update: bigint): void {
34651 if(!isWasmInitialized) {
34652 throw new Error("initializeWasm() must be awaited first!");
34654 const nativeResponseValue = wasm.TS_NetworkGraph_handle_network_update(this_arg, network_update);
34655 // debug statements here
34657 // struct LDKRoutingMessageHandler P2PGossipSync_as_RoutingMessageHandler(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
34659 export function P2PGossipSync_as_RoutingMessageHandler(this_arg: bigint): bigint {
34660 if(!isWasmInitialized) {
34661 throw new Error("initializeWasm() must be awaited first!");
34663 const nativeResponseValue = wasm.TS_P2PGossipSync_as_RoutingMessageHandler(this_arg);
34664 return nativeResponseValue;
34666 // struct LDKMessageSendEventsProvider P2PGossipSync_as_MessageSendEventsProvider(const struct LDKP2PGossipSync *NONNULL_PTR this_arg);
34668 export function P2PGossipSync_as_MessageSendEventsProvider(this_arg: bigint): bigint {
34669 if(!isWasmInitialized) {
34670 throw new Error("initializeWasm() must be awaited first!");
34672 const nativeResponseValue = wasm.TS_P2PGossipSync_as_MessageSendEventsProvider(this_arg);
34673 return nativeResponseValue;
34675 // void ChannelUpdateInfo_free(struct LDKChannelUpdateInfo this_obj);
34677 export function ChannelUpdateInfo_free(this_obj: bigint): void {
34678 if(!isWasmInitialized) {
34679 throw new Error("initializeWasm() must be awaited first!");
34681 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_free(this_obj);
34682 // debug statements here
34684 // uint32_t ChannelUpdateInfo_get_last_update(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
34686 export function ChannelUpdateInfo_get_last_update(this_ptr: bigint): number {
34687 if(!isWasmInitialized) {
34688 throw new Error("initializeWasm() must be awaited first!");
34690 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update(this_ptr);
34691 return nativeResponseValue;
34693 // void ChannelUpdateInfo_set_last_update(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint32_t val);
34695 export function ChannelUpdateInfo_set_last_update(this_ptr: bigint, val: number): void {
34696 if(!isWasmInitialized) {
34697 throw new Error("initializeWasm() must be awaited first!");
34699 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update(this_ptr, val);
34700 // debug statements here
34702 // bool ChannelUpdateInfo_get_enabled(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
34704 export function ChannelUpdateInfo_get_enabled(this_ptr: bigint): boolean {
34705 if(!isWasmInitialized) {
34706 throw new Error("initializeWasm() must be awaited first!");
34708 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_enabled(this_ptr);
34709 return nativeResponseValue;
34711 // void ChannelUpdateInfo_set_enabled(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, bool val);
34713 export function ChannelUpdateInfo_set_enabled(this_ptr: bigint, val: boolean): void {
34714 if(!isWasmInitialized) {
34715 throw new Error("initializeWasm() must be awaited first!");
34717 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_enabled(this_ptr, val);
34718 // debug statements here
34720 // uint16_t ChannelUpdateInfo_get_cltv_expiry_delta(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
34722 export function ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr: bigint): number {
34723 if(!isWasmInitialized) {
34724 throw new Error("initializeWasm() must be awaited first!");
34726 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_cltv_expiry_delta(this_ptr);
34727 return nativeResponseValue;
34729 // void ChannelUpdateInfo_set_cltv_expiry_delta(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint16_t val);
34731 export function ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
34732 if(!isWasmInitialized) {
34733 throw new Error("initializeWasm() must be awaited first!");
34735 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_cltv_expiry_delta(this_ptr, val);
34736 // debug statements here
34738 // uint64_t ChannelUpdateInfo_get_htlc_minimum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
34740 export function ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr: bigint): bigint {
34741 if(!isWasmInitialized) {
34742 throw new Error("initializeWasm() must be awaited first!");
34744 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_minimum_msat(this_ptr);
34745 return nativeResponseValue;
34747 // void ChannelUpdateInfo_set_htlc_minimum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
34749 export function ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
34750 if(!isWasmInitialized) {
34751 throw new Error("initializeWasm() must be awaited first!");
34753 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_minimum_msat(this_ptr, val);
34754 // debug statements here
34756 // uint64_t ChannelUpdateInfo_get_htlc_maximum_msat(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
34758 export function ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr: bigint): bigint {
34759 if(!isWasmInitialized) {
34760 throw new Error("initializeWasm() must be awaited first!");
34762 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_htlc_maximum_msat(this_ptr);
34763 return nativeResponseValue;
34765 // void ChannelUpdateInfo_set_htlc_maximum_msat(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, uint64_t val);
34767 export function ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr: bigint, val: bigint): void {
34768 if(!isWasmInitialized) {
34769 throw new Error("initializeWasm() must be awaited first!");
34771 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_htlc_maximum_msat(this_ptr, val);
34772 // debug statements here
34774 // struct LDKRoutingFees ChannelUpdateInfo_get_fees(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
34776 export function ChannelUpdateInfo_get_fees(this_ptr: bigint): bigint {
34777 if(!isWasmInitialized) {
34778 throw new Error("initializeWasm() must be awaited first!");
34780 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_fees(this_ptr);
34781 return nativeResponseValue;
34783 // void ChannelUpdateInfo_set_fees(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
34785 export function ChannelUpdateInfo_set_fees(this_ptr: bigint, val: bigint): void {
34786 if(!isWasmInitialized) {
34787 throw new Error("initializeWasm() must be awaited first!");
34789 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_fees(this_ptr, val);
34790 // debug statements here
34792 // struct LDKChannelUpdate ChannelUpdateInfo_get_last_update_message(const struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr);
34794 export function ChannelUpdateInfo_get_last_update_message(this_ptr: bigint): bigint {
34795 if(!isWasmInitialized) {
34796 throw new Error("initializeWasm() must be awaited first!");
34798 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_get_last_update_message(this_ptr);
34799 return nativeResponseValue;
34801 // void ChannelUpdateInfo_set_last_update_message(struct LDKChannelUpdateInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdate val);
34803 export function ChannelUpdateInfo_set_last_update_message(this_ptr: bigint, val: bigint): void {
34804 if(!isWasmInitialized) {
34805 throw new Error("initializeWasm() must be awaited first!");
34807 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_set_last_update_message(this_ptr, val);
34808 // debug statements here
34810 // MUST_USE_RES struct LDKChannelUpdateInfo ChannelUpdateInfo_new(uint32_t last_update_arg, bool enabled_arg, uint16_t cltv_expiry_delta_arg, uint64_t htlc_minimum_msat_arg, uint64_t htlc_maximum_msat_arg, struct LDKRoutingFees fees_arg, struct LDKChannelUpdate last_update_message_arg);
34812 export function ChannelUpdateInfo_new(last_update_arg: number, enabled_arg: boolean, cltv_expiry_delta_arg: number, htlc_minimum_msat_arg: bigint, htlc_maximum_msat_arg: bigint, fees_arg: bigint, last_update_message_arg: bigint): bigint {
34813 if(!isWasmInitialized) {
34814 throw new Error("initializeWasm() must be awaited first!");
34816 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_new(last_update_arg, enabled_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg, fees_arg, last_update_message_arg);
34817 return nativeResponseValue;
34819 // uint64_t ChannelUpdateInfo_clone_ptr(LDKChannelUpdateInfo *NONNULL_PTR arg);
34821 export function ChannelUpdateInfo_clone_ptr(arg: bigint): bigint {
34822 if(!isWasmInitialized) {
34823 throw new Error("initializeWasm() must be awaited first!");
34825 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone_ptr(arg);
34826 return nativeResponseValue;
34828 // struct LDKChannelUpdateInfo ChannelUpdateInfo_clone(const struct LDKChannelUpdateInfo *NONNULL_PTR orig);
34830 export function ChannelUpdateInfo_clone(orig: bigint): bigint {
34831 if(!isWasmInitialized) {
34832 throw new Error("initializeWasm() must be awaited first!");
34834 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_clone(orig);
34835 return nativeResponseValue;
34837 // bool ChannelUpdateInfo_eq(const struct LDKChannelUpdateInfo *NONNULL_PTR a, const struct LDKChannelUpdateInfo *NONNULL_PTR b);
34839 export function ChannelUpdateInfo_eq(a: bigint, b: bigint): boolean {
34840 if(!isWasmInitialized) {
34841 throw new Error("initializeWasm() must be awaited first!");
34843 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_eq(a, b);
34844 return nativeResponseValue;
34846 // struct LDKCVec_u8Z ChannelUpdateInfo_write(const struct LDKChannelUpdateInfo *NONNULL_PTR obj);
34848 export function ChannelUpdateInfo_write(obj: bigint): number {
34849 if(!isWasmInitialized) {
34850 throw new Error("initializeWasm() must be awaited first!");
34852 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_write(obj);
34853 return nativeResponseValue;
34855 // struct LDKCResult_ChannelUpdateInfoDecodeErrorZ ChannelUpdateInfo_read(struct LDKu8slice ser);
34857 export function ChannelUpdateInfo_read(ser: number): bigint {
34858 if(!isWasmInitialized) {
34859 throw new Error("initializeWasm() must be awaited first!");
34861 const nativeResponseValue = wasm.TS_ChannelUpdateInfo_read(ser);
34862 return nativeResponseValue;
34864 // void ChannelInfo_free(struct LDKChannelInfo this_obj);
34866 export function ChannelInfo_free(this_obj: bigint): void {
34867 if(!isWasmInitialized) {
34868 throw new Error("initializeWasm() must be awaited first!");
34870 const nativeResponseValue = wasm.TS_ChannelInfo_free(this_obj);
34871 // debug statements here
34873 // struct LDKChannelFeatures ChannelInfo_get_features(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
34875 export function ChannelInfo_get_features(this_ptr: bigint): bigint {
34876 if(!isWasmInitialized) {
34877 throw new Error("initializeWasm() must be awaited first!");
34879 const nativeResponseValue = wasm.TS_ChannelInfo_get_features(this_ptr);
34880 return nativeResponseValue;
34882 // void ChannelInfo_set_features(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
34884 export function ChannelInfo_set_features(this_ptr: bigint, val: bigint): void {
34885 if(!isWasmInitialized) {
34886 throw new Error("initializeWasm() must be awaited first!");
34888 const nativeResponseValue = wasm.TS_ChannelInfo_set_features(this_ptr, val);
34889 // debug statements here
34891 // struct LDKNodeId ChannelInfo_get_node_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
34893 export function ChannelInfo_get_node_one(this_ptr: bigint): bigint {
34894 if(!isWasmInitialized) {
34895 throw new Error("initializeWasm() must be awaited first!");
34897 const nativeResponseValue = wasm.TS_ChannelInfo_get_node_one(this_ptr);
34898 return nativeResponseValue;
34900 // void ChannelInfo_set_node_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
34902 export function ChannelInfo_set_node_one(this_ptr: bigint, val: bigint): void {
34903 if(!isWasmInitialized) {
34904 throw new Error("initializeWasm() must be awaited first!");
34906 const nativeResponseValue = wasm.TS_ChannelInfo_set_node_one(this_ptr, val);
34907 // debug statements here
34909 // struct LDKChannelUpdateInfo ChannelInfo_get_one_to_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
34911 export function ChannelInfo_get_one_to_two(this_ptr: bigint): bigint {
34912 if(!isWasmInitialized) {
34913 throw new Error("initializeWasm() must be awaited first!");
34915 const nativeResponseValue = wasm.TS_ChannelInfo_get_one_to_two(this_ptr);
34916 return nativeResponseValue;
34918 // void ChannelInfo_set_one_to_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
34920 export function ChannelInfo_set_one_to_two(this_ptr: bigint, val: bigint): void {
34921 if(!isWasmInitialized) {
34922 throw new Error("initializeWasm() must be awaited first!");
34924 const nativeResponseValue = wasm.TS_ChannelInfo_set_one_to_two(this_ptr, val);
34925 // debug statements here
34927 // struct LDKNodeId ChannelInfo_get_node_two(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
34929 export function ChannelInfo_get_node_two(this_ptr: bigint): bigint {
34930 if(!isWasmInitialized) {
34931 throw new Error("initializeWasm() must be awaited first!");
34933 const nativeResponseValue = wasm.TS_ChannelInfo_get_node_two(this_ptr);
34934 return nativeResponseValue;
34936 // void ChannelInfo_set_node_two(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKNodeId val);
34938 export function ChannelInfo_set_node_two(this_ptr: bigint, val: bigint): void {
34939 if(!isWasmInitialized) {
34940 throw new Error("initializeWasm() must be awaited first!");
34942 const nativeResponseValue = wasm.TS_ChannelInfo_set_node_two(this_ptr, val);
34943 // debug statements here
34945 // struct LDKChannelUpdateInfo ChannelInfo_get_two_to_one(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
34947 export function ChannelInfo_get_two_to_one(this_ptr: bigint): bigint {
34948 if(!isWasmInitialized) {
34949 throw new Error("initializeWasm() must be awaited first!");
34951 const nativeResponseValue = wasm.TS_ChannelInfo_get_two_to_one(this_ptr);
34952 return nativeResponseValue;
34954 // void ChannelInfo_set_two_to_one(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelUpdateInfo val);
34956 export function ChannelInfo_set_two_to_one(this_ptr: bigint, val: bigint): void {
34957 if(!isWasmInitialized) {
34958 throw new Error("initializeWasm() must be awaited first!");
34960 const nativeResponseValue = wasm.TS_ChannelInfo_set_two_to_one(this_ptr, val);
34961 // debug statements here
34963 // struct LDKCOption_u64Z ChannelInfo_get_capacity_sats(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
34965 export function ChannelInfo_get_capacity_sats(this_ptr: bigint): bigint {
34966 if(!isWasmInitialized) {
34967 throw new Error("initializeWasm() must be awaited first!");
34969 const nativeResponseValue = wasm.TS_ChannelInfo_get_capacity_sats(this_ptr);
34970 return nativeResponseValue;
34972 // void ChannelInfo_set_capacity_sats(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
34974 export function ChannelInfo_set_capacity_sats(this_ptr: bigint, val: bigint): void {
34975 if(!isWasmInitialized) {
34976 throw new Error("initializeWasm() must be awaited first!");
34978 const nativeResponseValue = wasm.TS_ChannelInfo_set_capacity_sats(this_ptr, val);
34979 // debug statements here
34981 // struct LDKChannelAnnouncement ChannelInfo_get_announcement_message(const struct LDKChannelInfo *NONNULL_PTR this_ptr);
34983 export function ChannelInfo_get_announcement_message(this_ptr: bigint): bigint {
34984 if(!isWasmInitialized) {
34985 throw new Error("initializeWasm() must be awaited first!");
34987 const nativeResponseValue = wasm.TS_ChannelInfo_get_announcement_message(this_ptr);
34988 return nativeResponseValue;
34990 // void ChannelInfo_set_announcement_message(struct LDKChannelInfo *NONNULL_PTR this_ptr, struct LDKChannelAnnouncement val);
34992 export function ChannelInfo_set_announcement_message(this_ptr: bigint, val: bigint): void {
34993 if(!isWasmInitialized) {
34994 throw new Error("initializeWasm() must be awaited first!");
34996 const nativeResponseValue = wasm.TS_ChannelInfo_set_announcement_message(this_ptr, val);
34997 // debug statements here
34999 // uint64_t ChannelInfo_clone_ptr(LDKChannelInfo *NONNULL_PTR arg);
35001 export function ChannelInfo_clone_ptr(arg: bigint): bigint {
35002 if(!isWasmInitialized) {
35003 throw new Error("initializeWasm() must be awaited first!");
35005 const nativeResponseValue = wasm.TS_ChannelInfo_clone_ptr(arg);
35006 return nativeResponseValue;
35008 // struct LDKChannelInfo ChannelInfo_clone(const struct LDKChannelInfo *NONNULL_PTR orig);
35010 export function ChannelInfo_clone(orig: bigint): bigint {
35011 if(!isWasmInitialized) {
35012 throw new Error("initializeWasm() must be awaited first!");
35014 const nativeResponseValue = wasm.TS_ChannelInfo_clone(orig);
35015 return nativeResponseValue;
35017 // bool ChannelInfo_eq(const struct LDKChannelInfo *NONNULL_PTR a, const struct LDKChannelInfo *NONNULL_PTR b);
35019 export function ChannelInfo_eq(a: bigint, b: bigint): boolean {
35020 if(!isWasmInitialized) {
35021 throw new Error("initializeWasm() must be awaited first!");
35023 const nativeResponseValue = wasm.TS_ChannelInfo_eq(a, b);
35024 return nativeResponseValue;
35026 // MUST_USE_RES struct LDKChannelUpdateInfo ChannelInfo_get_directional_info(const struct LDKChannelInfo *NONNULL_PTR this_arg, uint8_t channel_flags);
35028 export function ChannelInfo_get_directional_info(this_arg: bigint, channel_flags: number): bigint {
35029 if(!isWasmInitialized) {
35030 throw new Error("initializeWasm() must be awaited first!");
35032 const nativeResponseValue = wasm.TS_ChannelInfo_get_directional_info(this_arg, channel_flags);
35033 return nativeResponseValue;
35035 // struct LDKCVec_u8Z ChannelInfo_write(const struct LDKChannelInfo *NONNULL_PTR obj);
35037 export function ChannelInfo_write(obj: bigint): number {
35038 if(!isWasmInitialized) {
35039 throw new Error("initializeWasm() must be awaited first!");
35041 const nativeResponseValue = wasm.TS_ChannelInfo_write(obj);
35042 return nativeResponseValue;
35044 // struct LDKCResult_ChannelInfoDecodeErrorZ ChannelInfo_read(struct LDKu8slice ser);
35046 export function ChannelInfo_read(ser: number): bigint {
35047 if(!isWasmInitialized) {
35048 throw new Error("initializeWasm() must be awaited first!");
35050 const nativeResponseValue = wasm.TS_ChannelInfo_read(ser);
35051 return nativeResponseValue;
35053 // void DirectedChannelInfo_free(struct LDKDirectedChannelInfo this_obj);
35055 export function DirectedChannelInfo_free(this_obj: bigint): void {
35056 if(!isWasmInitialized) {
35057 throw new Error("initializeWasm() must be awaited first!");
35059 const nativeResponseValue = wasm.TS_DirectedChannelInfo_free(this_obj);
35060 // debug statements here
35062 // uint64_t DirectedChannelInfo_clone_ptr(LDKDirectedChannelInfo *NONNULL_PTR arg);
35064 export function DirectedChannelInfo_clone_ptr(arg: bigint): bigint {
35065 if(!isWasmInitialized) {
35066 throw new Error("initializeWasm() must be awaited first!");
35068 const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone_ptr(arg);
35069 return nativeResponseValue;
35071 // struct LDKDirectedChannelInfo DirectedChannelInfo_clone(const struct LDKDirectedChannelInfo *NONNULL_PTR orig);
35073 export function DirectedChannelInfo_clone(orig: bigint): bigint {
35074 if(!isWasmInitialized) {
35075 throw new Error("initializeWasm() must be awaited first!");
35077 const nativeResponseValue = wasm.TS_DirectedChannelInfo_clone(orig);
35078 return nativeResponseValue;
35080 // MUST_USE_RES struct LDKChannelInfo DirectedChannelInfo_channel(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
35082 export function DirectedChannelInfo_channel(this_arg: bigint): bigint {
35083 if(!isWasmInitialized) {
35084 throw new Error("initializeWasm() must be awaited first!");
35086 const nativeResponseValue = wasm.TS_DirectedChannelInfo_channel(this_arg);
35087 return nativeResponseValue;
35089 // MUST_USE_RES uint64_t DirectedChannelInfo_htlc_maximum_msat(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
35091 export function DirectedChannelInfo_htlc_maximum_msat(this_arg: bigint): bigint {
35092 if(!isWasmInitialized) {
35093 throw new Error("initializeWasm() must be awaited first!");
35095 const nativeResponseValue = wasm.TS_DirectedChannelInfo_htlc_maximum_msat(this_arg);
35096 return nativeResponseValue;
35098 // MUST_USE_RES struct LDKEffectiveCapacity DirectedChannelInfo_effective_capacity(const struct LDKDirectedChannelInfo *NONNULL_PTR this_arg);
35100 export function DirectedChannelInfo_effective_capacity(this_arg: bigint): bigint {
35101 if(!isWasmInitialized) {
35102 throw new Error("initializeWasm() must be awaited first!");
35104 const nativeResponseValue = wasm.TS_DirectedChannelInfo_effective_capacity(this_arg);
35105 return nativeResponseValue;
35107 // void EffectiveCapacity_free(struct LDKEffectiveCapacity this_ptr);
35109 export function EffectiveCapacity_free(this_ptr: bigint): void {
35110 if(!isWasmInitialized) {
35111 throw new Error("initializeWasm() must be awaited first!");
35113 const nativeResponseValue = wasm.TS_EffectiveCapacity_free(this_ptr);
35114 // debug statements here
35116 // uint64_t EffectiveCapacity_clone_ptr(LDKEffectiveCapacity *NONNULL_PTR arg);
35118 export function EffectiveCapacity_clone_ptr(arg: bigint): bigint {
35119 if(!isWasmInitialized) {
35120 throw new Error("initializeWasm() must be awaited first!");
35122 const nativeResponseValue = wasm.TS_EffectiveCapacity_clone_ptr(arg);
35123 return nativeResponseValue;
35125 // struct LDKEffectiveCapacity EffectiveCapacity_clone(const struct LDKEffectiveCapacity *NONNULL_PTR orig);
35127 export function EffectiveCapacity_clone(orig: bigint): bigint {
35128 if(!isWasmInitialized) {
35129 throw new Error("initializeWasm() must be awaited first!");
35131 const nativeResponseValue = wasm.TS_EffectiveCapacity_clone(orig);
35132 return nativeResponseValue;
35134 // struct LDKEffectiveCapacity EffectiveCapacity_exact_liquidity(uint64_t liquidity_msat);
35136 export function EffectiveCapacity_exact_liquidity(liquidity_msat: bigint): bigint {
35137 if(!isWasmInitialized) {
35138 throw new Error("initializeWasm() must be awaited first!");
35140 const nativeResponseValue = wasm.TS_EffectiveCapacity_exact_liquidity(liquidity_msat);
35141 return nativeResponseValue;
35143 // struct LDKEffectiveCapacity EffectiveCapacity_maximum_htlc(uint64_t amount_msat);
35145 export function EffectiveCapacity_maximum_htlc(amount_msat: bigint): bigint {
35146 if(!isWasmInitialized) {
35147 throw new Error("initializeWasm() must be awaited first!");
35149 const nativeResponseValue = wasm.TS_EffectiveCapacity_maximum_htlc(amount_msat);
35150 return nativeResponseValue;
35152 // struct LDKEffectiveCapacity EffectiveCapacity_total(uint64_t capacity_msat, uint64_t htlc_maximum_msat);
35154 export function EffectiveCapacity_total(capacity_msat: bigint, htlc_maximum_msat: bigint): bigint {
35155 if(!isWasmInitialized) {
35156 throw new Error("initializeWasm() must be awaited first!");
35158 const nativeResponseValue = wasm.TS_EffectiveCapacity_total(capacity_msat, htlc_maximum_msat);
35159 return nativeResponseValue;
35161 // struct LDKEffectiveCapacity EffectiveCapacity_infinite(void);
35163 export function EffectiveCapacity_infinite(): bigint {
35164 if(!isWasmInitialized) {
35165 throw new Error("initializeWasm() must be awaited first!");
35167 const nativeResponseValue = wasm.TS_EffectiveCapacity_infinite();
35168 return nativeResponseValue;
35170 // struct LDKEffectiveCapacity EffectiveCapacity_unknown(void);
35172 export function EffectiveCapacity_unknown(): bigint {
35173 if(!isWasmInitialized) {
35174 throw new Error("initializeWasm() must be awaited first!");
35176 const nativeResponseValue = wasm.TS_EffectiveCapacity_unknown();
35177 return nativeResponseValue;
35179 // MUST_USE_RES uint64_t EffectiveCapacity_as_msat(const struct LDKEffectiveCapacity *NONNULL_PTR this_arg);
35181 export function EffectiveCapacity_as_msat(this_arg: bigint): bigint {
35182 if(!isWasmInitialized) {
35183 throw new Error("initializeWasm() must be awaited first!");
35185 const nativeResponseValue = wasm.TS_EffectiveCapacity_as_msat(this_arg);
35186 return nativeResponseValue;
35188 // void RoutingFees_free(struct LDKRoutingFees this_obj);
35190 export function RoutingFees_free(this_obj: bigint): void {
35191 if(!isWasmInitialized) {
35192 throw new Error("initializeWasm() must be awaited first!");
35194 const nativeResponseValue = wasm.TS_RoutingFees_free(this_obj);
35195 // debug statements here
35197 // uint32_t RoutingFees_get_base_msat(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
35199 export function RoutingFees_get_base_msat(this_ptr: bigint): number {
35200 if(!isWasmInitialized) {
35201 throw new Error("initializeWasm() must be awaited first!");
35203 const nativeResponseValue = wasm.TS_RoutingFees_get_base_msat(this_ptr);
35204 return nativeResponseValue;
35206 // void RoutingFees_set_base_msat(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
35208 export function RoutingFees_set_base_msat(this_ptr: bigint, val: number): void {
35209 if(!isWasmInitialized) {
35210 throw new Error("initializeWasm() must be awaited first!");
35212 const nativeResponseValue = wasm.TS_RoutingFees_set_base_msat(this_ptr, val);
35213 // debug statements here
35215 // uint32_t RoutingFees_get_proportional_millionths(const struct LDKRoutingFees *NONNULL_PTR this_ptr);
35217 export function RoutingFees_get_proportional_millionths(this_ptr: bigint): number {
35218 if(!isWasmInitialized) {
35219 throw new Error("initializeWasm() must be awaited first!");
35221 const nativeResponseValue = wasm.TS_RoutingFees_get_proportional_millionths(this_ptr);
35222 return nativeResponseValue;
35224 // void RoutingFees_set_proportional_millionths(struct LDKRoutingFees *NONNULL_PTR this_ptr, uint32_t val);
35226 export function RoutingFees_set_proportional_millionths(this_ptr: bigint, val: number): void {
35227 if(!isWasmInitialized) {
35228 throw new Error("initializeWasm() must be awaited first!");
35230 const nativeResponseValue = wasm.TS_RoutingFees_set_proportional_millionths(this_ptr, val);
35231 // debug statements here
35233 // MUST_USE_RES struct LDKRoutingFees RoutingFees_new(uint32_t base_msat_arg, uint32_t proportional_millionths_arg);
35235 export function RoutingFees_new(base_msat_arg: number, proportional_millionths_arg: number): bigint {
35236 if(!isWasmInitialized) {
35237 throw new Error("initializeWasm() must be awaited first!");
35239 const nativeResponseValue = wasm.TS_RoutingFees_new(base_msat_arg, proportional_millionths_arg);
35240 return nativeResponseValue;
35242 // bool RoutingFees_eq(const struct LDKRoutingFees *NONNULL_PTR a, const struct LDKRoutingFees *NONNULL_PTR b);
35244 export function RoutingFees_eq(a: bigint, b: bigint): boolean {
35245 if(!isWasmInitialized) {
35246 throw new Error("initializeWasm() must be awaited first!");
35248 const nativeResponseValue = wasm.TS_RoutingFees_eq(a, b);
35249 return nativeResponseValue;
35251 // uint64_t RoutingFees_clone_ptr(LDKRoutingFees *NONNULL_PTR arg);
35253 export function RoutingFees_clone_ptr(arg: bigint): bigint {
35254 if(!isWasmInitialized) {
35255 throw new Error("initializeWasm() must be awaited first!");
35257 const nativeResponseValue = wasm.TS_RoutingFees_clone_ptr(arg);
35258 return nativeResponseValue;
35260 // struct LDKRoutingFees RoutingFees_clone(const struct LDKRoutingFees *NONNULL_PTR orig);
35262 export function RoutingFees_clone(orig: bigint): bigint {
35263 if(!isWasmInitialized) {
35264 throw new Error("initializeWasm() must be awaited first!");
35266 const nativeResponseValue = wasm.TS_RoutingFees_clone(orig);
35267 return nativeResponseValue;
35269 // uint64_t RoutingFees_hash(const struct LDKRoutingFees *NONNULL_PTR o);
35271 export function RoutingFees_hash(o: bigint): bigint {
35272 if(!isWasmInitialized) {
35273 throw new Error("initializeWasm() must be awaited first!");
35275 const nativeResponseValue = wasm.TS_RoutingFees_hash(o);
35276 return nativeResponseValue;
35278 // struct LDKCVec_u8Z RoutingFees_write(const struct LDKRoutingFees *NONNULL_PTR obj);
35280 export function RoutingFees_write(obj: bigint): number {
35281 if(!isWasmInitialized) {
35282 throw new Error("initializeWasm() must be awaited first!");
35284 const nativeResponseValue = wasm.TS_RoutingFees_write(obj);
35285 return nativeResponseValue;
35287 // struct LDKCResult_RoutingFeesDecodeErrorZ RoutingFees_read(struct LDKu8slice ser);
35289 export function RoutingFees_read(ser: number): bigint {
35290 if(!isWasmInitialized) {
35291 throw new Error("initializeWasm() must be awaited first!");
35293 const nativeResponseValue = wasm.TS_RoutingFees_read(ser);
35294 return nativeResponseValue;
35296 // void NodeAnnouncementInfo_free(struct LDKNodeAnnouncementInfo this_obj);
35298 export function NodeAnnouncementInfo_free(this_obj: bigint): void {
35299 if(!isWasmInitialized) {
35300 throw new Error("initializeWasm() must be awaited first!");
35302 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_free(this_obj);
35303 // debug statements here
35305 // struct LDKNodeFeatures NodeAnnouncementInfo_get_features(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
35307 export function NodeAnnouncementInfo_get_features(this_ptr: bigint): bigint {
35308 if(!isWasmInitialized) {
35309 throw new Error("initializeWasm() must be awaited first!");
35311 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_features(this_ptr);
35312 return nativeResponseValue;
35314 // void NodeAnnouncementInfo_set_features(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
35316 export function NodeAnnouncementInfo_set_features(this_ptr: bigint, val: bigint): void {
35317 if(!isWasmInitialized) {
35318 throw new Error("initializeWasm() must be awaited first!");
35320 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_features(this_ptr, val);
35321 // debug statements here
35323 // uint32_t NodeAnnouncementInfo_get_last_update(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
35325 export function NodeAnnouncementInfo_get_last_update(this_ptr: bigint): number {
35326 if(!isWasmInitialized) {
35327 throw new Error("initializeWasm() must be awaited first!");
35329 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_last_update(this_ptr);
35330 return nativeResponseValue;
35332 // void NodeAnnouncementInfo_set_last_update(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, uint32_t val);
35334 export function NodeAnnouncementInfo_set_last_update(this_ptr: bigint, val: number): void {
35335 if(!isWasmInitialized) {
35336 throw new Error("initializeWasm() must be awaited first!");
35338 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_last_update(this_ptr, val);
35339 // debug statements here
35341 // const uint8_t (*NodeAnnouncementInfo_get_rgb(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr))[3];
35343 export function NodeAnnouncementInfo_get_rgb(this_ptr: bigint): number {
35344 if(!isWasmInitialized) {
35345 throw new Error("initializeWasm() must be awaited first!");
35347 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_rgb(this_ptr);
35348 return nativeResponseValue;
35350 // void NodeAnnouncementInfo_set_rgb(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKThreeBytes val);
35352 export function NodeAnnouncementInfo_set_rgb(this_ptr: bigint, val: number): void {
35353 if(!isWasmInitialized) {
35354 throw new Error("initializeWasm() must be awaited first!");
35356 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_rgb(this_ptr, val);
35357 // debug statements here
35359 // struct LDKNodeAlias NodeAnnouncementInfo_get_alias(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
35361 export function NodeAnnouncementInfo_get_alias(this_ptr: bigint): bigint {
35362 if(!isWasmInitialized) {
35363 throw new Error("initializeWasm() must be awaited first!");
35365 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_alias(this_ptr);
35366 return nativeResponseValue;
35368 // void NodeAnnouncementInfo_set_alias(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAlias val);
35370 export function NodeAnnouncementInfo_set_alias(this_ptr: bigint, val: bigint): void {
35371 if(!isWasmInitialized) {
35372 throw new Error("initializeWasm() must be awaited first!");
35374 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_alias(this_ptr, val);
35375 // debug statements here
35377 // struct LDKNodeAnnouncement NodeAnnouncementInfo_get_announcement_message(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr);
35379 export function NodeAnnouncementInfo_get_announcement_message(this_ptr: bigint): bigint {
35380 if(!isWasmInitialized) {
35381 throw new Error("initializeWasm() must be awaited first!");
35383 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_get_announcement_message(this_ptr);
35384 return nativeResponseValue;
35386 // void NodeAnnouncementInfo_set_announcement_message(struct LDKNodeAnnouncementInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncement val);
35388 export function NodeAnnouncementInfo_set_announcement_message(this_ptr: bigint, val: bigint): void {
35389 if(!isWasmInitialized) {
35390 throw new Error("initializeWasm() must be awaited first!");
35392 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_set_announcement_message(this_ptr, val);
35393 // debug statements here
35395 // MUST_USE_RES struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_new(struct LDKNodeFeatures features_arg, uint32_t last_update_arg, struct LDKThreeBytes rgb_arg, struct LDKNodeAlias alias_arg, struct LDKNodeAnnouncement announcement_message_arg);
35397 export function NodeAnnouncementInfo_new(features_arg: bigint, last_update_arg: number, rgb_arg: number, alias_arg: bigint, announcement_message_arg: bigint): bigint {
35398 if(!isWasmInitialized) {
35399 throw new Error("initializeWasm() must be awaited first!");
35401 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_new(features_arg, last_update_arg, rgb_arg, alias_arg, announcement_message_arg);
35402 return nativeResponseValue;
35404 // uint64_t NodeAnnouncementInfo_clone_ptr(LDKNodeAnnouncementInfo *NONNULL_PTR arg);
35406 export function NodeAnnouncementInfo_clone_ptr(arg: bigint): bigint {
35407 if(!isWasmInitialized) {
35408 throw new Error("initializeWasm() must be awaited first!");
35410 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone_ptr(arg);
35411 return nativeResponseValue;
35413 // struct LDKNodeAnnouncementInfo NodeAnnouncementInfo_clone(const struct LDKNodeAnnouncementInfo *NONNULL_PTR orig);
35415 export function NodeAnnouncementInfo_clone(orig: bigint): bigint {
35416 if(!isWasmInitialized) {
35417 throw new Error("initializeWasm() must be awaited first!");
35419 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_clone(orig);
35420 return nativeResponseValue;
35422 // bool NodeAnnouncementInfo_eq(const struct LDKNodeAnnouncementInfo *NONNULL_PTR a, const struct LDKNodeAnnouncementInfo *NONNULL_PTR b);
35424 export function NodeAnnouncementInfo_eq(a: bigint, b: bigint): boolean {
35425 if(!isWasmInitialized) {
35426 throw new Error("initializeWasm() must be awaited first!");
35428 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_eq(a, b);
35429 return nativeResponseValue;
35431 // MUST_USE_RES struct LDKCVec_NetAddressZ NodeAnnouncementInfo_addresses(const struct LDKNodeAnnouncementInfo *NONNULL_PTR this_arg);
35433 export function NodeAnnouncementInfo_addresses(this_arg: bigint): number {
35434 if(!isWasmInitialized) {
35435 throw new Error("initializeWasm() must be awaited first!");
35437 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_addresses(this_arg);
35438 return nativeResponseValue;
35440 // struct LDKCVec_u8Z NodeAnnouncementInfo_write(const struct LDKNodeAnnouncementInfo *NONNULL_PTR obj);
35442 export function NodeAnnouncementInfo_write(obj: bigint): number {
35443 if(!isWasmInitialized) {
35444 throw new Error("initializeWasm() must be awaited first!");
35446 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_write(obj);
35447 return nativeResponseValue;
35449 // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ NodeAnnouncementInfo_read(struct LDKu8slice ser);
35451 export function NodeAnnouncementInfo_read(ser: number): bigint {
35452 if(!isWasmInitialized) {
35453 throw new Error("initializeWasm() must be awaited first!");
35455 const nativeResponseValue = wasm.TS_NodeAnnouncementInfo_read(ser);
35456 return nativeResponseValue;
35458 // void NodeAlias_free(struct LDKNodeAlias this_obj);
35460 export function NodeAlias_free(this_obj: bigint): void {
35461 if(!isWasmInitialized) {
35462 throw new Error("initializeWasm() must be awaited first!");
35464 const nativeResponseValue = wasm.TS_NodeAlias_free(this_obj);
35465 // debug statements here
35467 // const uint8_t (*NodeAlias_get_a(const struct LDKNodeAlias *NONNULL_PTR this_ptr))[32];
35469 export function NodeAlias_get_a(this_ptr: bigint): number {
35470 if(!isWasmInitialized) {
35471 throw new Error("initializeWasm() must be awaited first!");
35473 const nativeResponseValue = wasm.TS_NodeAlias_get_a(this_ptr);
35474 return nativeResponseValue;
35476 // void NodeAlias_set_a(struct LDKNodeAlias *NONNULL_PTR this_ptr, struct LDKThirtyTwoBytes val);
35478 export function NodeAlias_set_a(this_ptr: bigint, val: number): void {
35479 if(!isWasmInitialized) {
35480 throw new Error("initializeWasm() must be awaited first!");
35482 const nativeResponseValue = wasm.TS_NodeAlias_set_a(this_ptr, val);
35483 // debug statements here
35485 // MUST_USE_RES struct LDKNodeAlias NodeAlias_new(struct LDKThirtyTwoBytes a_arg);
35487 export function NodeAlias_new(a_arg: number): bigint {
35488 if(!isWasmInitialized) {
35489 throw new Error("initializeWasm() must be awaited first!");
35491 const nativeResponseValue = wasm.TS_NodeAlias_new(a_arg);
35492 return nativeResponseValue;
35494 // uint64_t NodeAlias_clone_ptr(LDKNodeAlias *NONNULL_PTR arg);
35496 export function NodeAlias_clone_ptr(arg: bigint): bigint {
35497 if(!isWasmInitialized) {
35498 throw new Error("initializeWasm() must be awaited first!");
35500 const nativeResponseValue = wasm.TS_NodeAlias_clone_ptr(arg);
35501 return nativeResponseValue;
35503 // struct LDKNodeAlias NodeAlias_clone(const struct LDKNodeAlias *NONNULL_PTR orig);
35505 export function NodeAlias_clone(orig: bigint): bigint {
35506 if(!isWasmInitialized) {
35507 throw new Error("initializeWasm() must be awaited first!");
35509 const nativeResponseValue = wasm.TS_NodeAlias_clone(orig);
35510 return nativeResponseValue;
35512 // bool NodeAlias_eq(const struct LDKNodeAlias *NONNULL_PTR a, const struct LDKNodeAlias *NONNULL_PTR b);
35514 export function NodeAlias_eq(a: bigint, b: bigint): boolean {
35515 if(!isWasmInitialized) {
35516 throw new Error("initializeWasm() must be awaited first!");
35518 const nativeResponseValue = wasm.TS_NodeAlias_eq(a, b);
35519 return nativeResponseValue;
35521 // struct LDKCVec_u8Z NodeAlias_write(const struct LDKNodeAlias *NONNULL_PTR obj);
35523 export function NodeAlias_write(obj: bigint): number {
35524 if(!isWasmInitialized) {
35525 throw new Error("initializeWasm() must be awaited first!");
35527 const nativeResponseValue = wasm.TS_NodeAlias_write(obj);
35528 return nativeResponseValue;
35530 // struct LDKCResult_NodeAliasDecodeErrorZ NodeAlias_read(struct LDKu8slice ser);
35532 export function NodeAlias_read(ser: number): bigint {
35533 if(!isWasmInitialized) {
35534 throw new Error("initializeWasm() must be awaited first!");
35536 const nativeResponseValue = wasm.TS_NodeAlias_read(ser);
35537 return nativeResponseValue;
35539 // void NodeInfo_free(struct LDKNodeInfo this_obj);
35541 export function NodeInfo_free(this_obj: bigint): void {
35542 if(!isWasmInitialized) {
35543 throw new Error("initializeWasm() must be awaited first!");
35545 const nativeResponseValue = wasm.TS_NodeInfo_free(this_obj);
35546 // debug statements here
35548 // struct LDKCVec_u64Z NodeInfo_get_channels(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
35550 export function NodeInfo_get_channels(this_ptr: bigint): number {
35551 if(!isWasmInitialized) {
35552 throw new Error("initializeWasm() must be awaited first!");
35554 const nativeResponseValue = wasm.TS_NodeInfo_get_channels(this_ptr);
35555 return nativeResponseValue;
35557 // void NodeInfo_set_channels(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
35559 export function NodeInfo_set_channels(this_ptr: bigint, val: number): void {
35560 if(!isWasmInitialized) {
35561 throw new Error("initializeWasm() must be awaited first!");
35563 const nativeResponseValue = wasm.TS_NodeInfo_set_channels(this_ptr, val);
35564 // debug statements here
35566 // struct LDKNodeAnnouncementInfo NodeInfo_get_announcement_info(const struct LDKNodeInfo *NONNULL_PTR this_ptr);
35568 export function NodeInfo_get_announcement_info(this_ptr: bigint): bigint {
35569 if(!isWasmInitialized) {
35570 throw new Error("initializeWasm() must be awaited first!");
35572 const nativeResponseValue = wasm.TS_NodeInfo_get_announcement_info(this_ptr);
35573 return nativeResponseValue;
35575 // void NodeInfo_set_announcement_info(struct LDKNodeInfo *NONNULL_PTR this_ptr, struct LDKNodeAnnouncementInfo val);
35577 export function NodeInfo_set_announcement_info(this_ptr: bigint, val: bigint): void {
35578 if(!isWasmInitialized) {
35579 throw new Error("initializeWasm() must be awaited first!");
35581 const nativeResponseValue = wasm.TS_NodeInfo_set_announcement_info(this_ptr, val);
35582 // debug statements here
35584 // MUST_USE_RES struct LDKNodeInfo NodeInfo_new(struct LDKCVec_u64Z channels_arg, struct LDKNodeAnnouncementInfo announcement_info_arg);
35586 export function NodeInfo_new(channels_arg: number, announcement_info_arg: bigint): bigint {
35587 if(!isWasmInitialized) {
35588 throw new Error("initializeWasm() must be awaited first!");
35590 const nativeResponseValue = wasm.TS_NodeInfo_new(channels_arg, announcement_info_arg);
35591 return nativeResponseValue;
35593 // uint64_t NodeInfo_clone_ptr(LDKNodeInfo *NONNULL_PTR arg);
35595 export function NodeInfo_clone_ptr(arg: bigint): bigint {
35596 if(!isWasmInitialized) {
35597 throw new Error("initializeWasm() must be awaited first!");
35599 const nativeResponseValue = wasm.TS_NodeInfo_clone_ptr(arg);
35600 return nativeResponseValue;
35602 // struct LDKNodeInfo NodeInfo_clone(const struct LDKNodeInfo *NONNULL_PTR orig);
35604 export function NodeInfo_clone(orig: bigint): bigint {
35605 if(!isWasmInitialized) {
35606 throw new Error("initializeWasm() must be awaited first!");
35608 const nativeResponseValue = wasm.TS_NodeInfo_clone(orig);
35609 return nativeResponseValue;
35611 // bool NodeInfo_eq(const struct LDKNodeInfo *NONNULL_PTR a, const struct LDKNodeInfo *NONNULL_PTR b);
35613 export function NodeInfo_eq(a: bigint, b: bigint): boolean {
35614 if(!isWasmInitialized) {
35615 throw new Error("initializeWasm() must be awaited first!");
35617 const nativeResponseValue = wasm.TS_NodeInfo_eq(a, b);
35618 return nativeResponseValue;
35620 // struct LDKCVec_u8Z NodeInfo_write(const struct LDKNodeInfo *NONNULL_PTR obj);
35622 export function NodeInfo_write(obj: bigint): number {
35623 if(!isWasmInitialized) {
35624 throw new Error("initializeWasm() must be awaited first!");
35626 const nativeResponseValue = wasm.TS_NodeInfo_write(obj);
35627 return nativeResponseValue;
35629 // struct LDKCResult_NodeInfoDecodeErrorZ NodeInfo_read(struct LDKu8slice ser);
35631 export function NodeInfo_read(ser: number): bigint {
35632 if(!isWasmInitialized) {
35633 throw new Error("initializeWasm() must be awaited first!");
35635 const nativeResponseValue = wasm.TS_NodeInfo_read(ser);
35636 return nativeResponseValue;
35638 // struct LDKCVec_u8Z NetworkGraph_write(const struct LDKNetworkGraph *NONNULL_PTR obj);
35640 export function NetworkGraph_write(obj: bigint): number {
35641 if(!isWasmInitialized) {
35642 throw new Error("initializeWasm() must be awaited first!");
35644 const nativeResponseValue = wasm.TS_NetworkGraph_write(obj);
35645 return nativeResponseValue;
35647 // struct LDKCResult_NetworkGraphDecodeErrorZ NetworkGraph_read(struct LDKu8slice ser, struct LDKLogger arg);
35649 export function NetworkGraph_read(ser: number, arg: bigint): bigint {
35650 if(!isWasmInitialized) {
35651 throw new Error("initializeWasm() must be awaited first!");
35653 const nativeResponseValue = wasm.TS_NetworkGraph_read(ser, arg);
35654 return nativeResponseValue;
35656 // MUST_USE_RES struct LDKNetworkGraph NetworkGraph_new(enum LDKNetwork network, struct LDKLogger logger);
35658 export function NetworkGraph_new(network: Network, logger: bigint): bigint {
35659 if(!isWasmInitialized) {
35660 throw new Error("initializeWasm() must be awaited first!");
35662 const nativeResponseValue = wasm.TS_NetworkGraph_new(network, logger);
35663 return nativeResponseValue;
35665 // MUST_USE_RES struct LDKReadOnlyNetworkGraph NetworkGraph_read_only(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
35667 export function NetworkGraph_read_only(this_arg: bigint): bigint {
35668 if(!isWasmInitialized) {
35669 throw new Error("initializeWasm() must be awaited first!");
35671 const nativeResponseValue = wasm.TS_NetworkGraph_read_only(this_arg);
35672 return nativeResponseValue;
35674 // MUST_USE_RES struct LDKCOption_u32Z NetworkGraph_get_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg);
35676 export function NetworkGraph_get_last_rapid_gossip_sync_timestamp(this_arg: bigint): bigint {
35677 if(!isWasmInitialized) {
35678 throw new Error("initializeWasm() must be awaited first!");
35680 const nativeResponseValue = wasm.TS_NetworkGraph_get_last_rapid_gossip_sync_timestamp(this_arg);
35681 return nativeResponseValue;
35683 // void NetworkGraph_set_last_rapid_gossip_sync_timestamp(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint32_t last_rapid_gossip_sync_timestamp);
35685 export function NetworkGraph_set_last_rapid_gossip_sync_timestamp(this_arg: bigint, last_rapid_gossip_sync_timestamp: number): void {
35686 if(!isWasmInitialized) {
35687 throw new Error("initializeWasm() must be awaited first!");
35689 const nativeResponseValue = wasm.TS_NetworkGraph_set_last_rapid_gossip_sync_timestamp(this_arg, last_rapid_gossip_sync_timestamp);
35690 // debug statements here
35692 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeAnnouncement *NONNULL_PTR msg);
35694 export function NetworkGraph_update_node_from_announcement(this_arg: bigint, msg: bigint): bigint {
35695 if(!isWasmInitialized) {
35696 throw new Error("initializeWasm() must be awaited first!");
35698 const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_announcement(this_arg, msg);
35699 return nativeResponseValue;
35701 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_node_from_unsigned_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedNodeAnnouncement *NONNULL_PTR msg);
35703 export function NetworkGraph_update_node_from_unsigned_announcement(this_arg: bigint, msg: bigint): bigint {
35704 if(!isWasmInitialized) {
35705 throw new Error("initializeWasm() must be awaited first!");
35707 const nativeResponseValue = wasm.TS_NetworkGraph_update_node_from_unsigned_announcement(this_arg, msg);
35708 return nativeResponseValue;
35710 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelAnnouncement *NONNULL_PTR msg, struct LDKCOption_UtxoLookupZ utxo_lookup);
35712 export function NetworkGraph_update_channel_from_announcement(this_arg: bigint, msg: bigint, utxo_lookup: bigint): bigint {
35713 if(!isWasmInitialized) {
35714 throw new Error("initializeWasm() must be awaited first!");
35716 const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_announcement(this_arg, msg, utxo_lookup);
35717 return nativeResponseValue;
35719 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_from_unsigned_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelAnnouncement *NONNULL_PTR msg, struct LDKCOption_UtxoLookupZ utxo_lookup);
35721 export function NetworkGraph_update_channel_from_unsigned_announcement(this_arg: bigint, msg: bigint, utxo_lookup: bigint): bigint {
35722 if(!isWasmInitialized) {
35723 throw new Error("initializeWasm() must be awaited first!");
35725 const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_from_unsigned_announcement(this_arg, msg, utxo_lookup);
35726 return nativeResponseValue;
35728 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_add_channel_from_partial_announcement(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id, uint64_t timestamp, struct LDKChannelFeatures features, struct LDKPublicKey node_id_1, struct LDKPublicKey node_id_2);
35730 export function NetworkGraph_add_channel_from_partial_announcement(this_arg: bigint, short_channel_id: bigint, timestamp: bigint, features: bigint, node_id_1: number, node_id_2: number): bigint {
35731 if(!isWasmInitialized) {
35732 throw new Error("initializeWasm() must be awaited first!");
35734 const nativeResponseValue = wasm.TS_NetworkGraph_add_channel_from_partial_announcement(this_arg, short_channel_id, timestamp, features, node_id_1, node_id_2);
35735 return nativeResponseValue;
35737 // void NetworkGraph_channel_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
35739 export function NetworkGraph_channel_failed_permanent(this_arg: bigint, short_channel_id: bigint): void {
35740 if(!isWasmInitialized) {
35741 throw new Error("initializeWasm() must be awaited first!");
35743 const nativeResponseValue = wasm.TS_NetworkGraph_channel_failed_permanent(this_arg, short_channel_id);
35744 // debug statements here
35746 // void NetworkGraph_node_failed_permanent(const struct LDKNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey node_id);
35748 export function NetworkGraph_node_failed_permanent(this_arg: bigint, node_id: number): void {
35749 if(!isWasmInitialized) {
35750 throw new Error("initializeWasm() must be awaited first!");
35752 const nativeResponseValue = wasm.TS_NetworkGraph_node_failed_permanent(this_arg, node_id);
35753 // debug statements here
35755 // void NetworkGraph_remove_stale_channels_and_tracking_with_time(const struct LDKNetworkGraph *NONNULL_PTR this_arg, uint64_t current_time_unix);
35757 export function NetworkGraph_remove_stale_channels_and_tracking_with_time(this_arg: bigint, current_time_unix: bigint): void {
35758 if(!isWasmInitialized) {
35759 throw new Error("initializeWasm() must be awaited first!");
35761 const nativeResponseValue = wasm.TS_NetworkGraph_remove_stale_channels_and_tracking_with_time(this_arg, current_time_unix);
35762 // debug statements here
35764 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKChannelUpdate *NONNULL_PTR msg);
35766 export function NetworkGraph_update_channel(this_arg: bigint, msg: bigint): bigint {
35767 if(!isWasmInitialized) {
35768 throw new Error("initializeWasm() must be awaited first!");
35770 const nativeResponseValue = wasm.TS_NetworkGraph_update_channel(this_arg, msg);
35771 return nativeResponseValue;
35773 // MUST_USE_RES struct LDKCResult_NoneLightningErrorZ NetworkGraph_update_channel_unsigned(const struct LDKNetworkGraph *NONNULL_PTR this_arg, const struct LDKUnsignedChannelUpdate *NONNULL_PTR msg);
35775 export function NetworkGraph_update_channel_unsigned(this_arg: bigint, msg: bigint): bigint {
35776 if(!isWasmInitialized) {
35777 throw new Error("initializeWasm() must be awaited first!");
35779 const nativeResponseValue = wasm.TS_NetworkGraph_update_channel_unsigned(this_arg, msg);
35780 return nativeResponseValue;
35782 // MUST_USE_RES struct LDKChannelInfo ReadOnlyNetworkGraph_channel(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, uint64_t short_channel_id);
35784 export function ReadOnlyNetworkGraph_channel(this_arg: bigint, short_channel_id: bigint): bigint {
35785 if(!isWasmInitialized) {
35786 throw new Error("initializeWasm() must be awaited first!");
35788 const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_channel(this_arg, short_channel_id);
35789 return nativeResponseValue;
35791 // MUST_USE_RES struct LDKCVec_u64Z ReadOnlyNetworkGraph_list_channels(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
35793 export function ReadOnlyNetworkGraph_list_channels(this_arg: bigint): number {
35794 if(!isWasmInitialized) {
35795 throw new Error("initializeWasm() must be awaited first!");
35797 const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_list_channels(this_arg);
35798 return nativeResponseValue;
35800 // MUST_USE_RES struct LDKNodeInfo ReadOnlyNetworkGraph_node(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
35802 export function ReadOnlyNetworkGraph_node(this_arg: bigint, node_id: bigint): bigint {
35803 if(!isWasmInitialized) {
35804 throw new Error("initializeWasm() must be awaited first!");
35806 const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_node(this_arg, node_id);
35807 return nativeResponseValue;
35809 // MUST_USE_RES struct LDKCVec_NodeIdZ ReadOnlyNetworkGraph_list_nodes(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg);
35811 export function ReadOnlyNetworkGraph_list_nodes(this_arg: bigint): number {
35812 if(!isWasmInitialized) {
35813 throw new Error("initializeWasm() must be awaited first!");
35815 const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_list_nodes(this_arg);
35816 return nativeResponseValue;
35818 // MUST_USE_RES struct LDKCOption_CVec_NetAddressZZ ReadOnlyNetworkGraph_get_addresses(const struct LDKReadOnlyNetworkGraph *NONNULL_PTR this_arg, struct LDKPublicKey pubkey);
35820 export function ReadOnlyNetworkGraph_get_addresses(this_arg: bigint, pubkey: number): bigint {
35821 if(!isWasmInitialized) {
35822 throw new Error("initializeWasm() must be awaited first!");
35824 const nativeResponseValue = wasm.TS_ReadOnlyNetworkGraph_get_addresses(this_arg, pubkey);
35825 return nativeResponseValue;
35827 // void DefaultRouter_free(struct LDKDefaultRouter this_obj);
35829 export function DefaultRouter_free(this_obj: bigint): void {
35830 if(!isWasmInitialized) {
35831 throw new Error("initializeWasm() must be awaited first!");
35833 const nativeResponseValue = wasm.TS_DefaultRouter_free(this_obj);
35834 // debug statements here
35836 // MUST_USE_RES struct LDKDefaultRouter DefaultRouter_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, struct LDKThirtyTwoBytes random_seed_bytes, struct LDKLockableScore scorer);
35838 export function DefaultRouter_new(network_graph: bigint, logger: bigint, random_seed_bytes: number, scorer: bigint): bigint {
35839 if(!isWasmInitialized) {
35840 throw new Error("initializeWasm() must be awaited first!");
35842 const nativeResponseValue = wasm.TS_DefaultRouter_new(network_graph, logger, random_seed_bytes, scorer);
35843 return nativeResponseValue;
35845 // struct LDKRouter DefaultRouter_as_Router(const struct LDKDefaultRouter *NONNULL_PTR this_arg);
35847 export function DefaultRouter_as_Router(this_arg: bigint): bigint {
35848 if(!isWasmInitialized) {
35849 throw new Error("initializeWasm() must be awaited first!");
35851 const nativeResponseValue = wasm.TS_DefaultRouter_as_Router(this_arg);
35852 return nativeResponseValue;
35854 // void Router_free(struct LDKRouter this_ptr);
35856 export function Router_free(this_ptr: bigint): void {
35857 if(!isWasmInitialized) {
35858 throw new Error("initializeWasm() must be awaited first!");
35860 const nativeResponseValue = wasm.TS_Router_free(this_ptr);
35861 // debug statements here
35863 // void ScorerAccountingForInFlightHtlcs_free(struct LDKScorerAccountingForInFlightHtlcs this_obj);
35865 export function ScorerAccountingForInFlightHtlcs_free(this_obj: bigint): void {
35866 if(!isWasmInitialized) {
35867 throw new Error("initializeWasm() must be awaited first!");
35869 const nativeResponseValue = wasm.TS_ScorerAccountingForInFlightHtlcs_free(this_obj);
35870 // debug statements here
35872 // MUST_USE_RES struct LDKScorerAccountingForInFlightHtlcs ScorerAccountingForInFlightHtlcs_new(struct LDKScore scorer, const struct LDKInFlightHtlcs *NONNULL_PTR inflight_htlcs);
35874 export function ScorerAccountingForInFlightHtlcs_new(scorer: bigint, inflight_htlcs: bigint): bigint {
35875 if(!isWasmInitialized) {
35876 throw new Error("initializeWasm() must be awaited first!");
35878 const nativeResponseValue = wasm.TS_ScorerAccountingForInFlightHtlcs_new(scorer, inflight_htlcs);
35879 return nativeResponseValue;
35881 // struct LDKCVec_u8Z ScorerAccountingForInFlightHtlcs_write(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR obj);
35883 export function ScorerAccountingForInFlightHtlcs_write(obj: bigint): number {
35884 if(!isWasmInitialized) {
35885 throw new Error("initializeWasm() must be awaited first!");
35887 const nativeResponseValue = wasm.TS_ScorerAccountingForInFlightHtlcs_write(obj);
35888 return nativeResponseValue;
35890 // struct LDKScore ScorerAccountingForInFlightHtlcs_as_Score(const struct LDKScorerAccountingForInFlightHtlcs *NONNULL_PTR this_arg);
35892 export function ScorerAccountingForInFlightHtlcs_as_Score(this_arg: bigint): bigint {
35893 if(!isWasmInitialized) {
35894 throw new Error("initializeWasm() must be awaited first!");
35896 const nativeResponseValue = wasm.TS_ScorerAccountingForInFlightHtlcs_as_Score(this_arg);
35897 return nativeResponseValue;
35899 // void InFlightHtlcs_free(struct LDKInFlightHtlcs this_obj);
35901 export function InFlightHtlcs_free(this_obj: bigint): void {
35902 if(!isWasmInitialized) {
35903 throw new Error("initializeWasm() must be awaited first!");
35905 const nativeResponseValue = wasm.TS_InFlightHtlcs_free(this_obj);
35906 // debug statements here
35908 // uint64_t InFlightHtlcs_clone_ptr(LDKInFlightHtlcs *NONNULL_PTR arg);
35910 export function InFlightHtlcs_clone_ptr(arg: bigint): bigint {
35911 if(!isWasmInitialized) {
35912 throw new Error("initializeWasm() must be awaited first!");
35914 const nativeResponseValue = wasm.TS_InFlightHtlcs_clone_ptr(arg);
35915 return nativeResponseValue;
35917 // struct LDKInFlightHtlcs InFlightHtlcs_clone(const struct LDKInFlightHtlcs *NONNULL_PTR orig);
35919 export function InFlightHtlcs_clone(orig: bigint): bigint {
35920 if(!isWasmInitialized) {
35921 throw new Error("initializeWasm() must be awaited first!");
35923 const nativeResponseValue = wasm.TS_InFlightHtlcs_clone(orig);
35924 return nativeResponseValue;
35926 // MUST_USE_RES struct LDKInFlightHtlcs InFlightHtlcs_new(void);
35928 export function InFlightHtlcs_new(): bigint {
35929 if(!isWasmInitialized) {
35930 throw new Error("initializeWasm() must be awaited first!");
35932 const nativeResponseValue = wasm.TS_InFlightHtlcs_new();
35933 return nativeResponseValue;
35935 // void InFlightHtlcs_process_path(struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKPath *NONNULL_PTR path, struct LDKPublicKey payer_node_id);
35937 export function InFlightHtlcs_process_path(this_arg: bigint, path: bigint, payer_node_id: number): void {
35938 if(!isWasmInitialized) {
35939 throw new Error("initializeWasm() must be awaited first!");
35941 const nativeResponseValue = wasm.TS_InFlightHtlcs_process_path(this_arg, path, payer_node_id);
35942 // debug statements here
35944 // MUST_USE_RES struct LDKCOption_u64Z InFlightHtlcs_used_liquidity_msat(const struct LDKInFlightHtlcs *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR source, const struct LDKNodeId *NONNULL_PTR target, uint64_t channel_scid);
35946 export function InFlightHtlcs_used_liquidity_msat(this_arg: bigint, source: bigint, target: bigint, channel_scid: bigint): bigint {
35947 if(!isWasmInitialized) {
35948 throw new Error("initializeWasm() must be awaited first!");
35950 const nativeResponseValue = wasm.TS_InFlightHtlcs_used_liquidity_msat(this_arg, source, target, channel_scid);
35951 return nativeResponseValue;
35953 // struct LDKCVec_u8Z InFlightHtlcs_write(const struct LDKInFlightHtlcs *NONNULL_PTR obj);
35955 export function InFlightHtlcs_write(obj: bigint): number {
35956 if(!isWasmInitialized) {
35957 throw new Error("initializeWasm() must be awaited first!");
35959 const nativeResponseValue = wasm.TS_InFlightHtlcs_write(obj);
35960 return nativeResponseValue;
35962 // struct LDKCResult_InFlightHtlcsDecodeErrorZ InFlightHtlcs_read(struct LDKu8slice ser);
35964 export function InFlightHtlcs_read(ser: number): bigint {
35965 if(!isWasmInitialized) {
35966 throw new Error("initializeWasm() must be awaited first!");
35968 const nativeResponseValue = wasm.TS_InFlightHtlcs_read(ser);
35969 return nativeResponseValue;
35971 // void RouteHop_free(struct LDKRouteHop this_obj);
35973 export function RouteHop_free(this_obj: bigint): void {
35974 if(!isWasmInitialized) {
35975 throw new Error("initializeWasm() must be awaited first!");
35977 const nativeResponseValue = wasm.TS_RouteHop_free(this_obj);
35978 // debug statements here
35980 // struct LDKPublicKey RouteHop_get_pubkey(const struct LDKRouteHop *NONNULL_PTR this_ptr);
35982 export function RouteHop_get_pubkey(this_ptr: bigint): number {
35983 if(!isWasmInitialized) {
35984 throw new Error("initializeWasm() must be awaited first!");
35986 const nativeResponseValue = wasm.TS_RouteHop_get_pubkey(this_ptr);
35987 return nativeResponseValue;
35989 // void RouteHop_set_pubkey(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
35991 export function RouteHop_set_pubkey(this_ptr: bigint, val: number): void {
35992 if(!isWasmInitialized) {
35993 throw new Error("initializeWasm() must be awaited first!");
35995 const nativeResponseValue = wasm.TS_RouteHop_set_pubkey(this_ptr, val);
35996 // debug statements here
35998 // struct LDKNodeFeatures RouteHop_get_node_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
36000 export function RouteHop_get_node_features(this_ptr: bigint): bigint {
36001 if(!isWasmInitialized) {
36002 throw new Error("initializeWasm() must be awaited first!");
36004 const nativeResponseValue = wasm.TS_RouteHop_get_node_features(this_ptr);
36005 return nativeResponseValue;
36007 // void RouteHop_set_node_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKNodeFeatures val);
36009 export function RouteHop_set_node_features(this_ptr: bigint, val: bigint): void {
36010 if(!isWasmInitialized) {
36011 throw new Error("initializeWasm() must be awaited first!");
36013 const nativeResponseValue = wasm.TS_RouteHop_set_node_features(this_ptr, val);
36014 // debug statements here
36016 // uint64_t RouteHop_get_short_channel_id(const struct LDKRouteHop *NONNULL_PTR this_ptr);
36018 export function RouteHop_get_short_channel_id(this_ptr: bigint): bigint {
36019 if(!isWasmInitialized) {
36020 throw new Error("initializeWasm() must be awaited first!");
36022 const nativeResponseValue = wasm.TS_RouteHop_get_short_channel_id(this_ptr);
36023 return nativeResponseValue;
36025 // void RouteHop_set_short_channel_id(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
36027 export function RouteHop_set_short_channel_id(this_ptr: bigint, val: bigint): void {
36028 if(!isWasmInitialized) {
36029 throw new Error("initializeWasm() must be awaited first!");
36031 const nativeResponseValue = wasm.TS_RouteHop_set_short_channel_id(this_ptr, val);
36032 // debug statements here
36034 // struct LDKChannelFeatures RouteHop_get_channel_features(const struct LDKRouteHop *NONNULL_PTR this_ptr);
36036 export function RouteHop_get_channel_features(this_ptr: bigint): bigint {
36037 if(!isWasmInitialized) {
36038 throw new Error("initializeWasm() must be awaited first!");
36040 const nativeResponseValue = wasm.TS_RouteHop_get_channel_features(this_ptr);
36041 return nativeResponseValue;
36043 // void RouteHop_set_channel_features(struct LDKRouteHop *NONNULL_PTR this_ptr, struct LDKChannelFeatures val);
36045 export function RouteHop_set_channel_features(this_ptr: bigint, val: bigint): void {
36046 if(!isWasmInitialized) {
36047 throw new Error("initializeWasm() must be awaited first!");
36049 const nativeResponseValue = wasm.TS_RouteHop_set_channel_features(this_ptr, val);
36050 // debug statements here
36052 // uint64_t RouteHop_get_fee_msat(const struct LDKRouteHop *NONNULL_PTR this_ptr);
36054 export function RouteHop_get_fee_msat(this_ptr: bigint): bigint {
36055 if(!isWasmInitialized) {
36056 throw new Error("initializeWasm() must be awaited first!");
36058 const nativeResponseValue = wasm.TS_RouteHop_get_fee_msat(this_ptr);
36059 return nativeResponseValue;
36061 // void RouteHop_set_fee_msat(struct LDKRouteHop *NONNULL_PTR this_ptr, uint64_t val);
36063 export function RouteHop_set_fee_msat(this_ptr: bigint, val: bigint): void {
36064 if(!isWasmInitialized) {
36065 throw new Error("initializeWasm() must be awaited first!");
36067 const nativeResponseValue = wasm.TS_RouteHop_set_fee_msat(this_ptr, val);
36068 // debug statements here
36070 // uint32_t RouteHop_get_cltv_expiry_delta(const struct LDKRouteHop *NONNULL_PTR this_ptr);
36072 export function RouteHop_get_cltv_expiry_delta(this_ptr: bigint): number {
36073 if(!isWasmInitialized) {
36074 throw new Error("initializeWasm() must be awaited first!");
36076 const nativeResponseValue = wasm.TS_RouteHop_get_cltv_expiry_delta(this_ptr);
36077 return nativeResponseValue;
36079 // void RouteHop_set_cltv_expiry_delta(struct LDKRouteHop *NONNULL_PTR this_ptr, uint32_t val);
36081 export function RouteHop_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
36082 if(!isWasmInitialized) {
36083 throw new Error("initializeWasm() must be awaited first!");
36085 const nativeResponseValue = wasm.TS_RouteHop_set_cltv_expiry_delta(this_ptr, val);
36086 // debug statements here
36088 // MUST_USE_RES struct LDKRouteHop RouteHop_new(struct LDKPublicKey pubkey_arg, struct LDKNodeFeatures node_features_arg, uint64_t short_channel_id_arg, struct LDKChannelFeatures channel_features_arg, uint64_t fee_msat_arg, uint32_t cltv_expiry_delta_arg);
36090 export function RouteHop_new(pubkey_arg: number, node_features_arg: bigint, short_channel_id_arg: bigint, channel_features_arg: bigint, fee_msat_arg: bigint, cltv_expiry_delta_arg: number): bigint {
36091 if(!isWasmInitialized) {
36092 throw new Error("initializeWasm() must be awaited first!");
36094 const nativeResponseValue = wasm.TS_RouteHop_new(pubkey_arg, node_features_arg, short_channel_id_arg, channel_features_arg, fee_msat_arg, cltv_expiry_delta_arg);
36095 return nativeResponseValue;
36097 // uint64_t RouteHop_clone_ptr(LDKRouteHop *NONNULL_PTR arg);
36099 export function RouteHop_clone_ptr(arg: bigint): bigint {
36100 if(!isWasmInitialized) {
36101 throw new Error("initializeWasm() must be awaited first!");
36103 const nativeResponseValue = wasm.TS_RouteHop_clone_ptr(arg);
36104 return nativeResponseValue;
36106 // struct LDKRouteHop RouteHop_clone(const struct LDKRouteHop *NONNULL_PTR orig);
36108 export function RouteHop_clone(orig: bigint): bigint {
36109 if(!isWasmInitialized) {
36110 throw new Error("initializeWasm() must be awaited first!");
36112 const nativeResponseValue = wasm.TS_RouteHop_clone(orig);
36113 return nativeResponseValue;
36115 // uint64_t RouteHop_hash(const struct LDKRouteHop *NONNULL_PTR o);
36117 export function RouteHop_hash(o: bigint): bigint {
36118 if(!isWasmInitialized) {
36119 throw new Error("initializeWasm() must be awaited first!");
36121 const nativeResponseValue = wasm.TS_RouteHop_hash(o);
36122 return nativeResponseValue;
36124 // bool RouteHop_eq(const struct LDKRouteHop *NONNULL_PTR a, const struct LDKRouteHop *NONNULL_PTR b);
36126 export function RouteHop_eq(a: bigint, b: bigint): boolean {
36127 if(!isWasmInitialized) {
36128 throw new Error("initializeWasm() must be awaited first!");
36130 const nativeResponseValue = wasm.TS_RouteHop_eq(a, b);
36131 return nativeResponseValue;
36133 // struct LDKCVec_u8Z RouteHop_write(const struct LDKRouteHop *NONNULL_PTR obj);
36135 export function RouteHop_write(obj: bigint): number {
36136 if(!isWasmInitialized) {
36137 throw new Error("initializeWasm() must be awaited first!");
36139 const nativeResponseValue = wasm.TS_RouteHop_write(obj);
36140 return nativeResponseValue;
36142 // struct LDKCResult_RouteHopDecodeErrorZ RouteHop_read(struct LDKu8slice ser);
36144 export function RouteHop_read(ser: number): bigint {
36145 if(!isWasmInitialized) {
36146 throw new Error("initializeWasm() must be awaited first!");
36148 const nativeResponseValue = wasm.TS_RouteHop_read(ser);
36149 return nativeResponseValue;
36151 // void BlindedTail_free(struct LDKBlindedTail this_obj);
36153 export function BlindedTail_free(this_obj: bigint): void {
36154 if(!isWasmInitialized) {
36155 throw new Error("initializeWasm() must be awaited first!");
36157 const nativeResponseValue = wasm.TS_BlindedTail_free(this_obj);
36158 // debug statements here
36160 // struct LDKCVec_BlindedHopZ BlindedTail_get_hops(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
36162 export function BlindedTail_get_hops(this_ptr: bigint): number {
36163 if(!isWasmInitialized) {
36164 throw new Error("initializeWasm() must be awaited first!");
36166 const nativeResponseValue = wasm.TS_BlindedTail_get_hops(this_ptr);
36167 return nativeResponseValue;
36169 // void BlindedTail_set_hops(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKCVec_BlindedHopZ val);
36171 export function BlindedTail_set_hops(this_ptr: bigint, val: number): void {
36172 if(!isWasmInitialized) {
36173 throw new Error("initializeWasm() must be awaited first!");
36175 const nativeResponseValue = wasm.TS_BlindedTail_set_hops(this_ptr, val);
36176 // debug statements here
36178 // struct LDKPublicKey BlindedTail_get_blinding_point(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
36180 export function BlindedTail_get_blinding_point(this_ptr: bigint): number {
36181 if(!isWasmInitialized) {
36182 throw new Error("initializeWasm() must be awaited first!");
36184 const nativeResponseValue = wasm.TS_BlindedTail_get_blinding_point(this_ptr);
36185 return nativeResponseValue;
36187 // void BlindedTail_set_blinding_point(struct LDKBlindedTail *NONNULL_PTR this_ptr, struct LDKPublicKey val);
36189 export function BlindedTail_set_blinding_point(this_ptr: bigint, val: number): void {
36190 if(!isWasmInitialized) {
36191 throw new Error("initializeWasm() must be awaited first!");
36193 const nativeResponseValue = wasm.TS_BlindedTail_set_blinding_point(this_ptr, val);
36194 // debug statements here
36196 // uint32_t BlindedTail_get_excess_final_cltv_expiry_delta(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
36198 export function BlindedTail_get_excess_final_cltv_expiry_delta(this_ptr: bigint): number {
36199 if(!isWasmInitialized) {
36200 throw new Error("initializeWasm() must be awaited first!");
36202 const nativeResponseValue = wasm.TS_BlindedTail_get_excess_final_cltv_expiry_delta(this_ptr);
36203 return nativeResponseValue;
36205 // void BlindedTail_set_excess_final_cltv_expiry_delta(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint32_t val);
36207 export function BlindedTail_set_excess_final_cltv_expiry_delta(this_ptr: bigint, val: number): void {
36208 if(!isWasmInitialized) {
36209 throw new Error("initializeWasm() must be awaited first!");
36211 const nativeResponseValue = wasm.TS_BlindedTail_set_excess_final_cltv_expiry_delta(this_ptr, val);
36212 // debug statements here
36214 // uint64_t BlindedTail_get_final_value_msat(const struct LDKBlindedTail *NONNULL_PTR this_ptr);
36216 export function BlindedTail_get_final_value_msat(this_ptr: bigint): bigint {
36217 if(!isWasmInitialized) {
36218 throw new Error("initializeWasm() must be awaited first!");
36220 const nativeResponseValue = wasm.TS_BlindedTail_get_final_value_msat(this_ptr);
36221 return nativeResponseValue;
36223 // void BlindedTail_set_final_value_msat(struct LDKBlindedTail *NONNULL_PTR this_ptr, uint64_t val);
36225 export function BlindedTail_set_final_value_msat(this_ptr: bigint, val: bigint): void {
36226 if(!isWasmInitialized) {
36227 throw new Error("initializeWasm() must be awaited first!");
36229 const nativeResponseValue = wasm.TS_BlindedTail_set_final_value_msat(this_ptr, val);
36230 // debug statements here
36232 // MUST_USE_RES struct LDKBlindedTail BlindedTail_new(struct LDKCVec_BlindedHopZ hops_arg, struct LDKPublicKey blinding_point_arg, uint32_t excess_final_cltv_expiry_delta_arg, uint64_t final_value_msat_arg);
36234 export function BlindedTail_new(hops_arg: number, blinding_point_arg: number, excess_final_cltv_expiry_delta_arg: number, final_value_msat_arg: bigint): bigint {
36235 if(!isWasmInitialized) {
36236 throw new Error("initializeWasm() must be awaited first!");
36238 const nativeResponseValue = wasm.TS_BlindedTail_new(hops_arg, blinding_point_arg, excess_final_cltv_expiry_delta_arg, final_value_msat_arg);
36239 return nativeResponseValue;
36241 // uint64_t BlindedTail_clone_ptr(LDKBlindedTail *NONNULL_PTR arg);
36243 export function BlindedTail_clone_ptr(arg: bigint): bigint {
36244 if(!isWasmInitialized) {
36245 throw new Error("initializeWasm() must be awaited first!");
36247 const nativeResponseValue = wasm.TS_BlindedTail_clone_ptr(arg);
36248 return nativeResponseValue;
36250 // struct LDKBlindedTail BlindedTail_clone(const struct LDKBlindedTail *NONNULL_PTR orig);
36252 export function BlindedTail_clone(orig: bigint): bigint {
36253 if(!isWasmInitialized) {
36254 throw new Error("initializeWasm() must be awaited first!");
36256 const nativeResponseValue = wasm.TS_BlindedTail_clone(orig);
36257 return nativeResponseValue;
36259 // uint64_t BlindedTail_hash(const struct LDKBlindedTail *NONNULL_PTR o);
36261 export function BlindedTail_hash(o: bigint): bigint {
36262 if(!isWasmInitialized) {
36263 throw new Error("initializeWasm() must be awaited first!");
36265 const nativeResponseValue = wasm.TS_BlindedTail_hash(o);
36266 return nativeResponseValue;
36268 // bool BlindedTail_eq(const struct LDKBlindedTail *NONNULL_PTR a, const struct LDKBlindedTail *NONNULL_PTR b);
36270 export function BlindedTail_eq(a: bigint, b: bigint): boolean {
36271 if(!isWasmInitialized) {
36272 throw new Error("initializeWasm() must be awaited first!");
36274 const nativeResponseValue = wasm.TS_BlindedTail_eq(a, b);
36275 return nativeResponseValue;
36277 // struct LDKCVec_u8Z BlindedTail_write(const struct LDKBlindedTail *NONNULL_PTR obj);
36279 export function BlindedTail_write(obj: bigint): number {
36280 if(!isWasmInitialized) {
36281 throw new Error("initializeWasm() must be awaited first!");
36283 const nativeResponseValue = wasm.TS_BlindedTail_write(obj);
36284 return nativeResponseValue;
36286 // struct LDKCResult_BlindedTailDecodeErrorZ BlindedTail_read(struct LDKu8slice ser);
36288 export function BlindedTail_read(ser: number): bigint {
36289 if(!isWasmInitialized) {
36290 throw new Error("initializeWasm() must be awaited first!");
36292 const nativeResponseValue = wasm.TS_BlindedTail_read(ser);
36293 return nativeResponseValue;
36295 // void Path_free(struct LDKPath this_obj);
36297 export function Path_free(this_obj: bigint): void {
36298 if(!isWasmInitialized) {
36299 throw new Error("initializeWasm() must be awaited first!");
36301 const nativeResponseValue = wasm.TS_Path_free(this_obj);
36302 // debug statements here
36304 // struct LDKCVec_RouteHopZ Path_get_hops(const struct LDKPath *NONNULL_PTR this_ptr);
36306 export function Path_get_hops(this_ptr: bigint): number {
36307 if(!isWasmInitialized) {
36308 throw new Error("initializeWasm() must be awaited first!");
36310 const nativeResponseValue = wasm.TS_Path_get_hops(this_ptr);
36311 return nativeResponseValue;
36313 // void Path_set_hops(struct LDKPath *NONNULL_PTR this_ptr, struct LDKCVec_RouteHopZ val);
36315 export function Path_set_hops(this_ptr: bigint, val: number): void {
36316 if(!isWasmInitialized) {
36317 throw new Error("initializeWasm() must be awaited first!");
36319 const nativeResponseValue = wasm.TS_Path_set_hops(this_ptr, val);
36320 // debug statements here
36322 // struct LDKBlindedTail Path_get_blinded_tail(const struct LDKPath *NONNULL_PTR this_ptr);
36324 export function Path_get_blinded_tail(this_ptr: bigint): bigint {
36325 if(!isWasmInitialized) {
36326 throw new Error("initializeWasm() must be awaited first!");
36328 const nativeResponseValue = wasm.TS_Path_get_blinded_tail(this_ptr);
36329 return nativeResponseValue;
36331 // void Path_set_blinded_tail(struct LDKPath *NONNULL_PTR this_ptr, struct LDKBlindedTail val);
36333 export function Path_set_blinded_tail(this_ptr: bigint, val: bigint): void {
36334 if(!isWasmInitialized) {
36335 throw new Error("initializeWasm() must be awaited first!");
36337 const nativeResponseValue = wasm.TS_Path_set_blinded_tail(this_ptr, val);
36338 // debug statements here
36340 // MUST_USE_RES struct LDKPath Path_new(struct LDKCVec_RouteHopZ hops_arg, struct LDKBlindedTail blinded_tail_arg);
36342 export function Path_new(hops_arg: number, blinded_tail_arg: bigint): bigint {
36343 if(!isWasmInitialized) {
36344 throw new Error("initializeWasm() must be awaited first!");
36346 const nativeResponseValue = wasm.TS_Path_new(hops_arg, blinded_tail_arg);
36347 return nativeResponseValue;
36349 // uint64_t Path_clone_ptr(LDKPath *NONNULL_PTR arg);
36351 export function Path_clone_ptr(arg: bigint): bigint {
36352 if(!isWasmInitialized) {
36353 throw new Error("initializeWasm() must be awaited first!");
36355 const nativeResponseValue = wasm.TS_Path_clone_ptr(arg);
36356 return nativeResponseValue;
36358 // struct LDKPath Path_clone(const struct LDKPath *NONNULL_PTR orig);
36360 export function Path_clone(orig: bigint): bigint {
36361 if(!isWasmInitialized) {
36362 throw new Error("initializeWasm() must be awaited first!");
36364 const nativeResponseValue = wasm.TS_Path_clone(orig);
36365 return nativeResponseValue;
36367 // uint64_t Path_hash(const struct LDKPath *NONNULL_PTR o);
36369 export function Path_hash(o: bigint): bigint {
36370 if(!isWasmInitialized) {
36371 throw new Error("initializeWasm() must be awaited first!");
36373 const nativeResponseValue = wasm.TS_Path_hash(o);
36374 return nativeResponseValue;
36376 // bool Path_eq(const struct LDKPath *NONNULL_PTR a, const struct LDKPath *NONNULL_PTR b);
36378 export function Path_eq(a: bigint, b: bigint): boolean {
36379 if(!isWasmInitialized) {
36380 throw new Error("initializeWasm() must be awaited first!");
36382 const nativeResponseValue = wasm.TS_Path_eq(a, b);
36383 return nativeResponseValue;
36385 // MUST_USE_RES uint64_t Path_fee_msat(const struct LDKPath *NONNULL_PTR this_arg);
36387 export function Path_fee_msat(this_arg: bigint): bigint {
36388 if(!isWasmInitialized) {
36389 throw new Error("initializeWasm() must be awaited first!");
36391 const nativeResponseValue = wasm.TS_Path_fee_msat(this_arg);
36392 return nativeResponseValue;
36394 // MUST_USE_RES uint64_t Path_final_value_msat(const struct LDKPath *NONNULL_PTR this_arg);
36396 export function Path_final_value_msat(this_arg: bigint): bigint {
36397 if(!isWasmInitialized) {
36398 throw new Error("initializeWasm() must be awaited first!");
36400 const nativeResponseValue = wasm.TS_Path_final_value_msat(this_arg);
36401 return nativeResponseValue;
36403 // MUST_USE_RES struct LDKCOption_u32Z Path_final_cltv_expiry_delta(const struct LDKPath *NONNULL_PTR this_arg);
36405 export function Path_final_cltv_expiry_delta(this_arg: bigint): bigint {
36406 if(!isWasmInitialized) {
36407 throw new Error("initializeWasm() must be awaited first!");
36409 const nativeResponseValue = wasm.TS_Path_final_cltv_expiry_delta(this_arg);
36410 return nativeResponseValue;
36412 // void Route_free(struct LDKRoute this_obj);
36414 export function Route_free(this_obj: bigint): void {
36415 if(!isWasmInitialized) {
36416 throw new Error("initializeWasm() must be awaited first!");
36418 const nativeResponseValue = wasm.TS_Route_free(this_obj);
36419 // debug statements here
36421 // struct LDKCVec_PathZ Route_get_paths(const struct LDKRoute *NONNULL_PTR this_ptr);
36423 export function Route_get_paths(this_ptr: bigint): number {
36424 if(!isWasmInitialized) {
36425 throw new Error("initializeWasm() must be awaited first!");
36427 const nativeResponseValue = wasm.TS_Route_get_paths(this_ptr);
36428 return nativeResponseValue;
36430 // void Route_set_paths(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKCVec_PathZ val);
36432 export function Route_set_paths(this_ptr: bigint, val: number): void {
36433 if(!isWasmInitialized) {
36434 throw new Error("initializeWasm() must be awaited first!");
36436 const nativeResponseValue = wasm.TS_Route_set_paths(this_ptr, val);
36437 // debug statements here
36439 // struct LDKPaymentParameters Route_get_payment_params(const struct LDKRoute *NONNULL_PTR this_ptr);
36441 export function Route_get_payment_params(this_ptr: bigint): bigint {
36442 if(!isWasmInitialized) {
36443 throw new Error("initializeWasm() must be awaited first!");
36445 const nativeResponseValue = wasm.TS_Route_get_payment_params(this_ptr);
36446 return nativeResponseValue;
36448 // void Route_set_payment_params(struct LDKRoute *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
36450 export function Route_set_payment_params(this_ptr: bigint, val: bigint): void {
36451 if(!isWasmInitialized) {
36452 throw new Error("initializeWasm() must be awaited first!");
36454 const nativeResponseValue = wasm.TS_Route_set_payment_params(this_ptr, val);
36455 // debug statements here
36457 // MUST_USE_RES struct LDKRoute Route_new(struct LDKCVec_PathZ paths_arg, struct LDKPaymentParameters payment_params_arg);
36459 export function Route_new(paths_arg: number, payment_params_arg: bigint): bigint {
36460 if(!isWasmInitialized) {
36461 throw new Error("initializeWasm() must be awaited first!");
36463 const nativeResponseValue = wasm.TS_Route_new(paths_arg, payment_params_arg);
36464 return nativeResponseValue;
36466 // uint64_t Route_clone_ptr(LDKRoute *NONNULL_PTR arg);
36468 export function Route_clone_ptr(arg: bigint): bigint {
36469 if(!isWasmInitialized) {
36470 throw new Error("initializeWasm() must be awaited first!");
36472 const nativeResponseValue = wasm.TS_Route_clone_ptr(arg);
36473 return nativeResponseValue;
36475 // struct LDKRoute Route_clone(const struct LDKRoute *NONNULL_PTR orig);
36477 export function Route_clone(orig: bigint): bigint {
36478 if(!isWasmInitialized) {
36479 throw new Error("initializeWasm() must be awaited first!");
36481 const nativeResponseValue = wasm.TS_Route_clone(orig);
36482 return nativeResponseValue;
36484 // uint64_t Route_hash(const struct LDKRoute *NONNULL_PTR o);
36486 export function Route_hash(o: bigint): bigint {
36487 if(!isWasmInitialized) {
36488 throw new Error("initializeWasm() must be awaited first!");
36490 const nativeResponseValue = wasm.TS_Route_hash(o);
36491 return nativeResponseValue;
36493 // bool Route_eq(const struct LDKRoute *NONNULL_PTR a, const struct LDKRoute *NONNULL_PTR b);
36495 export function Route_eq(a: bigint, b: bigint): boolean {
36496 if(!isWasmInitialized) {
36497 throw new Error("initializeWasm() must be awaited first!");
36499 const nativeResponseValue = wasm.TS_Route_eq(a, b);
36500 return nativeResponseValue;
36502 // MUST_USE_RES uint64_t Route_get_total_fees(const struct LDKRoute *NONNULL_PTR this_arg);
36504 export function Route_get_total_fees(this_arg: bigint): bigint {
36505 if(!isWasmInitialized) {
36506 throw new Error("initializeWasm() must be awaited first!");
36508 const nativeResponseValue = wasm.TS_Route_get_total_fees(this_arg);
36509 return nativeResponseValue;
36511 // MUST_USE_RES uint64_t Route_get_total_amount(const struct LDKRoute *NONNULL_PTR this_arg);
36513 export function Route_get_total_amount(this_arg: bigint): bigint {
36514 if(!isWasmInitialized) {
36515 throw new Error("initializeWasm() must be awaited first!");
36517 const nativeResponseValue = wasm.TS_Route_get_total_amount(this_arg);
36518 return nativeResponseValue;
36520 // struct LDKCVec_u8Z Route_write(const struct LDKRoute *NONNULL_PTR obj);
36522 export function Route_write(obj: bigint): number {
36523 if(!isWasmInitialized) {
36524 throw new Error("initializeWasm() must be awaited first!");
36526 const nativeResponseValue = wasm.TS_Route_write(obj);
36527 return nativeResponseValue;
36529 // struct LDKCResult_RouteDecodeErrorZ Route_read(struct LDKu8slice ser);
36531 export function Route_read(ser: number): bigint {
36532 if(!isWasmInitialized) {
36533 throw new Error("initializeWasm() must be awaited first!");
36535 const nativeResponseValue = wasm.TS_Route_read(ser);
36536 return nativeResponseValue;
36538 // void RouteParameters_free(struct LDKRouteParameters this_obj);
36540 export function RouteParameters_free(this_obj: bigint): void {
36541 if(!isWasmInitialized) {
36542 throw new Error("initializeWasm() must be awaited first!");
36544 const nativeResponseValue = wasm.TS_RouteParameters_free(this_obj);
36545 // debug statements here
36547 // struct LDKPaymentParameters RouteParameters_get_payment_params(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
36549 export function RouteParameters_get_payment_params(this_ptr: bigint): bigint {
36550 if(!isWasmInitialized) {
36551 throw new Error("initializeWasm() must be awaited first!");
36553 const nativeResponseValue = wasm.TS_RouteParameters_get_payment_params(this_ptr);
36554 return nativeResponseValue;
36556 // void RouteParameters_set_payment_params(struct LDKRouteParameters *NONNULL_PTR this_ptr, struct LDKPaymentParameters val);
36558 export function RouteParameters_set_payment_params(this_ptr: bigint, val: bigint): void {
36559 if(!isWasmInitialized) {
36560 throw new Error("initializeWasm() must be awaited first!");
36562 const nativeResponseValue = wasm.TS_RouteParameters_set_payment_params(this_ptr, val);
36563 // debug statements here
36565 // uint64_t RouteParameters_get_final_value_msat(const struct LDKRouteParameters *NONNULL_PTR this_ptr);
36567 export function RouteParameters_get_final_value_msat(this_ptr: bigint): bigint {
36568 if(!isWasmInitialized) {
36569 throw new Error("initializeWasm() must be awaited first!");
36571 const nativeResponseValue = wasm.TS_RouteParameters_get_final_value_msat(this_ptr);
36572 return nativeResponseValue;
36574 // void RouteParameters_set_final_value_msat(struct LDKRouteParameters *NONNULL_PTR this_ptr, uint64_t val);
36576 export function RouteParameters_set_final_value_msat(this_ptr: bigint, val: bigint): void {
36577 if(!isWasmInitialized) {
36578 throw new Error("initializeWasm() must be awaited first!");
36580 const nativeResponseValue = wasm.TS_RouteParameters_set_final_value_msat(this_ptr, val);
36581 // debug statements here
36583 // MUST_USE_RES struct LDKRouteParameters RouteParameters_new(struct LDKPaymentParameters payment_params_arg, uint64_t final_value_msat_arg);
36585 export function RouteParameters_new(payment_params_arg: bigint, final_value_msat_arg: bigint): bigint {
36586 if(!isWasmInitialized) {
36587 throw new Error("initializeWasm() must be awaited first!");
36589 const nativeResponseValue = wasm.TS_RouteParameters_new(payment_params_arg, final_value_msat_arg);
36590 return nativeResponseValue;
36592 // uint64_t RouteParameters_clone_ptr(LDKRouteParameters *NONNULL_PTR arg);
36594 export function RouteParameters_clone_ptr(arg: bigint): bigint {
36595 if(!isWasmInitialized) {
36596 throw new Error("initializeWasm() must be awaited first!");
36598 const nativeResponseValue = wasm.TS_RouteParameters_clone_ptr(arg);
36599 return nativeResponseValue;
36601 // struct LDKRouteParameters RouteParameters_clone(const struct LDKRouteParameters *NONNULL_PTR orig);
36603 export function RouteParameters_clone(orig: bigint): bigint {
36604 if(!isWasmInitialized) {
36605 throw new Error("initializeWasm() must be awaited first!");
36607 const nativeResponseValue = wasm.TS_RouteParameters_clone(orig);
36608 return nativeResponseValue;
36610 // bool RouteParameters_eq(const struct LDKRouteParameters *NONNULL_PTR a, const struct LDKRouteParameters *NONNULL_PTR b);
36612 export function RouteParameters_eq(a: bigint, b: bigint): boolean {
36613 if(!isWasmInitialized) {
36614 throw new Error("initializeWasm() must be awaited first!");
36616 const nativeResponseValue = wasm.TS_RouteParameters_eq(a, b);
36617 return nativeResponseValue;
36619 // struct LDKCVec_u8Z RouteParameters_write(const struct LDKRouteParameters *NONNULL_PTR obj);
36621 export function RouteParameters_write(obj: bigint): number {
36622 if(!isWasmInitialized) {
36623 throw new Error("initializeWasm() must be awaited first!");
36625 const nativeResponseValue = wasm.TS_RouteParameters_write(obj);
36626 return nativeResponseValue;
36628 // struct LDKCResult_RouteParametersDecodeErrorZ RouteParameters_read(struct LDKu8slice ser);
36630 export function RouteParameters_read(ser: number): bigint {
36631 if(!isWasmInitialized) {
36632 throw new Error("initializeWasm() must be awaited first!");
36634 const nativeResponseValue = wasm.TS_RouteParameters_read(ser);
36635 return nativeResponseValue;
36637 // void PaymentParameters_free(struct LDKPaymentParameters this_obj);
36639 export function PaymentParameters_free(this_obj: bigint): void {
36640 if(!isWasmInitialized) {
36641 throw new Error("initializeWasm() must be awaited first!");
36643 const nativeResponseValue = wasm.TS_PaymentParameters_free(this_obj);
36644 // debug statements here
36646 // struct LDKPublicKey PaymentParameters_get_payee_pubkey(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
36648 export function PaymentParameters_get_payee_pubkey(this_ptr: bigint): number {
36649 if(!isWasmInitialized) {
36650 throw new Error("initializeWasm() must be awaited first!");
36652 const nativeResponseValue = wasm.TS_PaymentParameters_get_payee_pubkey(this_ptr);
36653 return nativeResponseValue;
36655 // void PaymentParameters_set_payee_pubkey(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKPublicKey val);
36657 export function PaymentParameters_set_payee_pubkey(this_ptr: bigint, val: number): void {
36658 if(!isWasmInitialized) {
36659 throw new Error("initializeWasm() must be awaited first!");
36661 const nativeResponseValue = wasm.TS_PaymentParameters_set_payee_pubkey(this_ptr, val);
36662 // debug statements here
36664 // struct LDKInvoiceFeatures PaymentParameters_get_features(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
36666 export function PaymentParameters_get_features(this_ptr: bigint): bigint {
36667 if(!isWasmInitialized) {
36668 throw new Error("initializeWasm() must be awaited first!");
36670 const nativeResponseValue = wasm.TS_PaymentParameters_get_features(this_ptr);
36671 return nativeResponseValue;
36673 // void PaymentParameters_set_features(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKInvoiceFeatures val);
36675 export function PaymentParameters_set_features(this_ptr: bigint, val: bigint): void {
36676 if(!isWasmInitialized) {
36677 throw new Error("initializeWasm() must be awaited first!");
36679 const nativeResponseValue = wasm.TS_PaymentParameters_set_features(this_ptr, val);
36680 // debug statements here
36682 // struct LDKHints PaymentParameters_get_route_hints(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
36684 export function PaymentParameters_get_route_hints(this_ptr: bigint): bigint {
36685 if(!isWasmInitialized) {
36686 throw new Error("initializeWasm() must be awaited first!");
36688 const nativeResponseValue = wasm.TS_PaymentParameters_get_route_hints(this_ptr);
36689 return nativeResponseValue;
36691 // void PaymentParameters_set_route_hints(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKHints val);
36693 export function PaymentParameters_set_route_hints(this_ptr: bigint, val: bigint): void {
36694 if(!isWasmInitialized) {
36695 throw new Error("initializeWasm() must be awaited first!");
36697 const nativeResponseValue = wasm.TS_PaymentParameters_set_route_hints(this_ptr, val);
36698 // debug statements here
36700 // struct LDKCOption_u64Z PaymentParameters_get_expiry_time(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
36702 export function PaymentParameters_get_expiry_time(this_ptr: bigint): bigint {
36703 if(!isWasmInitialized) {
36704 throw new Error("initializeWasm() must be awaited first!");
36706 const nativeResponseValue = wasm.TS_PaymentParameters_get_expiry_time(this_ptr);
36707 return nativeResponseValue;
36709 // void PaymentParameters_set_expiry_time(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
36711 export function PaymentParameters_set_expiry_time(this_ptr: bigint, val: bigint): void {
36712 if(!isWasmInitialized) {
36713 throw new Error("initializeWasm() must be awaited first!");
36715 const nativeResponseValue = wasm.TS_PaymentParameters_set_expiry_time(this_ptr, val);
36716 // debug statements here
36718 // uint32_t PaymentParameters_get_max_total_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
36720 export function PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr: bigint): number {
36721 if(!isWasmInitialized) {
36722 throw new Error("initializeWasm() must be awaited first!");
36724 const nativeResponseValue = wasm.TS_PaymentParameters_get_max_total_cltv_expiry_delta(this_ptr);
36725 return nativeResponseValue;
36727 // void PaymentParameters_set_max_total_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
36729 export function PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr: bigint, val: number): void {
36730 if(!isWasmInitialized) {
36731 throw new Error("initializeWasm() must be awaited first!");
36733 const nativeResponseValue = wasm.TS_PaymentParameters_set_max_total_cltv_expiry_delta(this_ptr, val);
36734 // debug statements here
36736 // uint8_t PaymentParameters_get_max_path_count(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
36738 export function PaymentParameters_get_max_path_count(this_ptr: bigint): number {
36739 if(!isWasmInitialized) {
36740 throw new Error("initializeWasm() must be awaited first!");
36742 const nativeResponseValue = wasm.TS_PaymentParameters_get_max_path_count(this_ptr);
36743 return nativeResponseValue;
36745 // void PaymentParameters_set_max_path_count(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
36747 export function PaymentParameters_set_max_path_count(this_ptr: bigint, val: number): void {
36748 if(!isWasmInitialized) {
36749 throw new Error("initializeWasm() must be awaited first!");
36751 const nativeResponseValue = wasm.TS_PaymentParameters_set_max_path_count(this_ptr, val);
36752 // debug statements here
36754 // uint8_t PaymentParameters_get_max_channel_saturation_power_of_half(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
36756 export function PaymentParameters_get_max_channel_saturation_power_of_half(this_ptr: bigint): number {
36757 if(!isWasmInitialized) {
36758 throw new Error("initializeWasm() must be awaited first!");
36760 const nativeResponseValue = wasm.TS_PaymentParameters_get_max_channel_saturation_power_of_half(this_ptr);
36761 return nativeResponseValue;
36763 // void PaymentParameters_set_max_channel_saturation_power_of_half(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint8_t val);
36765 export function PaymentParameters_set_max_channel_saturation_power_of_half(this_ptr: bigint, val: number): void {
36766 if(!isWasmInitialized) {
36767 throw new Error("initializeWasm() must be awaited first!");
36769 const nativeResponseValue = wasm.TS_PaymentParameters_set_max_channel_saturation_power_of_half(this_ptr, val);
36770 // debug statements here
36772 // struct LDKCVec_u64Z PaymentParameters_get_previously_failed_channels(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
36774 export function PaymentParameters_get_previously_failed_channels(this_ptr: bigint): number {
36775 if(!isWasmInitialized) {
36776 throw new Error("initializeWasm() must be awaited first!");
36778 const nativeResponseValue = wasm.TS_PaymentParameters_get_previously_failed_channels(this_ptr);
36779 return nativeResponseValue;
36781 // void PaymentParameters_set_previously_failed_channels(struct LDKPaymentParameters *NONNULL_PTR this_ptr, struct LDKCVec_u64Z val);
36783 export function PaymentParameters_set_previously_failed_channels(this_ptr: bigint, val: number): void {
36784 if(!isWasmInitialized) {
36785 throw new Error("initializeWasm() must be awaited first!");
36787 const nativeResponseValue = wasm.TS_PaymentParameters_set_previously_failed_channels(this_ptr, val);
36788 // debug statements here
36790 // uint32_t PaymentParameters_get_final_cltv_expiry_delta(const struct LDKPaymentParameters *NONNULL_PTR this_ptr);
36792 export function PaymentParameters_get_final_cltv_expiry_delta(this_ptr: bigint): number {
36793 if(!isWasmInitialized) {
36794 throw new Error("initializeWasm() must be awaited first!");
36796 const nativeResponseValue = wasm.TS_PaymentParameters_get_final_cltv_expiry_delta(this_ptr);
36797 return nativeResponseValue;
36799 // void PaymentParameters_set_final_cltv_expiry_delta(struct LDKPaymentParameters *NONNULL_PTR this_ptr, uint32_t val);
36801 export function PaymentParameters_set_final_cltv_expiry_delta(this_ptr: bigint, val: number): void {
36802 if(!isWasmInitialized) {
36803 throw new Error("initializeWasm() must be awaited first!");
36805 const nativeResponseValue = wasm.TS_PaymentParameters_set_final_cltv_expiry_delta(this_ptr, val);
36806 // debug statements here
36808 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_new(struct LDKPublicKey payee_pubkey_arg, struct LDKInvoiceFeatures features_arg, struct LDKHints route_hints_arg, struct LDKCOption_u64Z expiry_time_arg, uint32_t max_total_cltv_expiry_delta_arg, uint8_t max_path_count_arg, uint8_t max_channel_saturation_power_of_half_arg, struct LDKCVec_u64Z previously_failed_channels_arg, uint32_t final_cltv_expiry_delta_arg);
36810 export function PaymentParameters_new(payee_pubkey_arg: number, features_arg: bigint, route_hints_arg: bigint, expiry_time_arg: bigint, max_total_cltv_expiry_delta_arg: number, max_path_count_arg: number, max_channel_saturation_power_of_half_arg: number, previously_failed_channels_arg: number, final_cltv_expiry_delta_arg: number): bigint {
36811 if(!isWasmInitialized) {
36812 throw new Error("initializeWasm() must be awaited first!");
36814 const nativeResponseValue = wasm.TS_PaymentParameters_new(payee_pubkey_arg, features_arg, route_hints_arg, expiry_time_arg, max_total_cltv_expiry_delta_arg, max_path_count_arg, max_channel_saturation_power_of_half_arg, previously_failed_channels_arg, final_cltv_expiry_delta_arg);
36815 return nativeResponseValue;
36817 // uint64_t PaymentParameters_clone_ptr(LDKPaymentParameters *NONNULL_PTR arg);
36819 export function PaymentParameters_clone_ptr(arg: bigint): bigint {
36820 if(!isWasmInitialized) {
36821 throw new Error("initializeWasm() must be awaited first!");
36823 const nativeResponseValue = wasm.TS_PaymentParameters_clone_ptr(arg);
36824 return nativeResponseValue;
36826 // struct LDKPaymentParameters PaymentParameters_clone(const struct LDKPaymentParameters *NONNULL_PTR orig);
36828 export function PaymentParameters_clone(orig: bigint): bigint {
36829 if(!isWasmInitialized) {
36830 throw new Error("initializeWasm() must be awaited first!");
36832 const nativeResponseValue = wasm.TS_PaymentParameters_clone(orig);
36833 return nativeResponseValue;
36835 // uint64_t PaymentParameters_hash(const struct LDKPaymentParameters *NONNULL_PTR o);
36837 export function PaymentParameters_hash(o: bigint): bigint {
36838 if(!isWasmInitialized) {
36839 throw new Error("initializeWasm() must be awaited first!");
36841 const nativeResponseValue = wasm.TS_PaymentParameters_hash(o);
36842 return nativeResponseValue;
36844 // bool PaymentParameters_eq(const struct LDKPaymentParameters *NONNULL_PTR a, const struct LDKPaymentParameters *NONNULL_PTR b);
36846 export function PaymentParameters_eq(a: bigint, b: bigint): boolean {
36847 if(!isWasmInitialized) {
36848 throw new Error("initializeWasm() must be awaited first!");
36850 const nativeResponseValue = wasm.TS_PaymentParameters_eq(a, b);
36851 return nativeResponseValue;
36853 // struct LDKCVec_u8Z PaymentParameters_write(const struct LDKPaymentParameters *NONNULL_PTR obj);
36855 export function PaymentParameters_write(obj: bigint): number {
36856 if(!isWasmInitialized) {
36857 throw new Error("initializeWasm() must be awaited first!");
36859 const nativeResponseValue = wasm.TS_PaymentParameters_write(obj);
36860 return nativeResponseValue;
36862 // struct LDKCResult_PaymentParametersDecodeErrorZ PaymentParameters_read(struct LDKu8slice ser, uint32_t arg);
36864 export function PaymentParameters_read(ser: number, arg: number): bigint {
36865 if(!isWasmInitialized) {
36866 throw new Error("initializeWasm() must be awaited first!");
36868 const nativeResponseValue = wasm.TS_PaymentParameters_read(ser, arg);
36869 return nativeResponseValue;
36871 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_from_node_id(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta);
36873 export function PaymentParameters_from_node_id(payee_pubkey: number, final_cltv_expiry_delta: number): bigint {
36874 if(!isWasmInitialized) {
36875 throw new Error("initializeWasm() must be awaited first!");
36877 const nativeResponseValue = wasm.TS_PaymentParameters_from_node_id(payee_pubkey, final_cltv_expiry_delta);
36878 return nativeResponseValue;
36880 // MUST_USE_RES struct LDKPaymentParameters PaymentParameters_for_keysend(struct LDKPublicKey payee_pubkey, uint32_t final_cltv_expiry_delta);
36882 export function PaymentParameters_for_keysend(payee_pubkey: number, final_cltv_expiry_delta: number): bigint {
36883 if(!isWasmInitialized) {
36884 throw new Error("initializeWasm() must be awaited first!");
36886 const nativeResponseValue = wasm.TS_PaymentParameters_for_keysend(payee_pubkey, final_cltv_expiry_delta);
36887 return nativeResponseValue;
36889 // void Hints_free(struct LDKHints this_ptr);
36891 export function Hints_free(this_ptr: bigint): void {
36892 if(!isWasmInitialized) {
36893 throw new Error("initializeWasm() must be awaited first!");
36895 const nativeResponseValue = wasm.TS_Hints_free(this_ptr);
36896 // debug statements here
36898 // uint64_t Hints_clone_ptr(LDKHints *NONNULL_PTR arg);
36900 export function Hints_clone_ptr(arg: bigint): bigint {
36901 if(!isWasmInitialized) {
36902 throw new Error("initializeWasm() must be awaited first!");
36904 const nativeResponseValue = wasm.TS_Hints_clone_ptr(arg);
36905 return nativeResponseValue;
36907 // struct LDKHints Hints_clone(const struct LDKHints *NONNULL_PTR orig);
36909 export function Hints_clone(orig: bigint): bigint {
36910 if(!isWasmInitialized) {
36911 throw new Error("initializeWasm() must be awaited first!");
36913 const nativeResponseValue = wasm.TS_Hints_clone(orig);
36914 return nativeResponseValue;
36916 // struct LDKHints Hints_blinded(struct LDKCVec_C2Tuple_BlindedPayInfoBlindedPathZZ a);
36918 export function Hints_blinded(a: number): bigint {
36919 if(!isWasmInitialized) {
36920 throw new Error("initializeWasm() must be awaited first!");
36922 const nativeResponseValue = wasm.TS_Hints_blinded(a);
36923 return nativeResponseValue;
36925 // struct LDKHints Hints_clear(struct LDKCVec_RouteHintZ a);
36927 export function Hints_clear(a: number): bigint {
36928 if(!isWasmInitialized) {
36929 throw new Error("initializeWasm() must be awaited first!");
36931 const nativeResponseValue = wasm.TS_Hints_clear(a);
36932 return nativeResponseValue;
36934 // uint64_t Hints_hash(const struct LDKHints *NONNULL_PTR o);
36936 export function Hints_hash(o: bigint): bigint {
36937 if(!isWasmInitialized) {
36938 throw new Error("initializeWasm() must be awaited first!");
36940 const nativeResponseValue = wasm.TS_Hints_hash(o);
36941 return nativeResponseValue;
36943 // bool Hints_eq(const struct LDKHints *NONNULL_PTR a, const struct LDKHints *NONNULL_PTR b);
36945 export function Hints_eq(a: bigint, b: bigint): boolean {
36946 if(!isWasmInitialized) {
36947 throw new Error("initializeWasm() must be awaited first!");
36949 const nativeResponseValue = wasm.TS_Hints_eq(a, b);
36950 return nativeResponseValue;
36952 // void RouteHint_free(struct LDKRouteHint this_obj);
36954 export function RouteHint_free(this_obj: bigint): void {
36955 if(!isWasmInitialized) {
36956 throw new Error("initializeWasm() must be awaited first!");
36958 const nativeResponseValue = wasm.TS_RouteHint_free(this_obj);
36959 // debug statements here
36961 // struct LDKCVec_RouteHintHopZ RouteHint_get_a(const struct LDKRouteHint *NONNULL_PTR this_ptr);
36963 export function RouteHint_get_a(this_ptr: bigint): number {
36964 if(!isWasmInitialized) {
36965 throw new Error("initializeWasm() must be awaited first!");
36967 const nativeResponseValue = wasm.TS_RouteHint_get_a(this_ptr);
36968 return nativeResponseValue;
36970 // void RouteHint_set_a(struct LDKRouteHint *NONNULL_PTR this_ptr, struct LDKCVec_RouteHintHopZ val);
36972 export function RouteHint_set_a(this_ptr: bigint, val: number): void {
36973 if(!isWasmInitialized) {
36974 throw new Error("initializeWasm() must be awaited first!");
36976 const nativeResponseValue = wasm.TS_RouteHint_set_a(this_ptr, val);
36977 // debug statements here
36979 // MUST_USE_RES struct LDKRouteHint RouteHint_new(struct LDKCVec_RouteHintHopZ a_arg);
36981 export function RouteHint_new(a_arg: number): bigint {
36982 if(!isWasmInitialized) {
36983 throw new Error("initializeWasm() must be awaited first!");
36985 const nativeResponseValue = wasm.TS_RouteHint_new(a_arg);
36986 return nativeResponseValue;
36988 // uint64_t RouteHint_clone_ptr(LDKRouteHint *NONNULL_PTR arg);
36990 export function RouteHint_clone_ptr(arg: bigint): bigint {
36991 if(!isWasmInitialized) {
36992 throw new Error("initializeWasm() must be awaited first!");
36994 const nativeResponseValue = wasm.TS_RouteHint_clone_ptr(arg);
36995 return nativeResponseValue;
36997 // struct LDKRouteHint RouteHint_clone(const struct LDKRouteHint *NONNULL_PTR orig);
36999 export function RouteHint_clone(orig: bigint): bigint {
37000 if(!isWasmInitialized) {
37001 throw new Error("initializeWasm() must be awaited first!");
37003 const nativeResponseValue = wasm.TS_RouteHint_clone(orig);
37004 return nativeResponseValue;
37006 // uint64_t RouteHint_hash(const struct LDKRouteHint *NONNULL_PTR o);
37008 export function RouteHint_hash(o: bigint): bigint {
37009 if(!isWasmInitialized) {
37010 throw new Error("initializeWasm() must be awaited first!");
37012 const nativeResponseValue = wasm.TS_RouteHint_hash(o);
37013 return nativeResponseValue;
37015 // bool RouteHint_eq(const struct LDKRouteHint *NONNULL_PTR a, const struct LDKRouteHint *NONNULL_PTR b);
37017 export function RouteHint_eq(a: bigint, b: bigint): boolean {
37018 if(!isWasmInitialized) {
37019 throw new Error("initializeWasm() must be awaited first!");
37021 const nativeResponseValue = wasm.TS_RouteHint_eq(a, b);
37022 return nativeResponseValue;
37024 // struct LDKCVec_u8Z RouteHint_write(const struct LDKRouteHint *NONNULL_PTR obj);
37026 export function RouteHint_write(obj: bigint): number {
37027 if(!isWasmInitialized) {
37028 throw new Error("initializeWasm() must be awaited first!");
37030 const nativeResponseValue = wasm.TS_RouteHint_write(obj);
37031 return nativeResponseValue;
37033 // struct LDKCResult_RouteHintDecodeErrorZ RouteHint_read(struct LDKu8slice ser);
37035 export function RouteHint_read(ser: number): bigint {
37036 if(!isWasmInitialized) {
37037 throw new Error("initializeWasm() must be awaited first!");
37039 const nativeResponseValue = wasm.TS_RouteHint_read(ser);
37040 return nativeResponseValue;
37042 // void RouteHintHop_free(struct LDKRouteHintHop this_obj);
37044 export function RouteHintHop_free(this_obj: bigint): void {
37045 if(!isWasmInitialized) {
37046 throw new Error("initializeWasm() must be awaited first!");
37048 const nativeResponseValue = wasm.TS_RouteHintHop_free(this_obj);
37049 // debug statements here
37051 // struct LDKPublicKey RouteHintHop_get_src_node_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
37053 export function RouteHintHop_get_src_node_id(this_ptr: bigint): number {
37054 if(!isWasmInitialized) {
37055 throw new Error("initializeWasm() must be awaited first!");
37057 const nativeResponseValue = wasm.TS_RouteHintHop_get_src_node_id(this_ptr);
37058 return nativeResponseValue;
37060 // void RouteHintHop_set_src_node_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKPublicKey val);
37062 export function RouteHintHop_set_src_node_id(this_ptr: bigint, val: number): void {
37063 if(!isWasmInitialized) {
37064 throw new Error("initializeWasm() must be awaited first!");
37066 const nativeResponseValue = wasm.TS_RouteHintHop_set_src_node_id(this_ptr, val);
37067 // debug statements here
37069 // uint64_t RouteHintHop_get_short_channel_id(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
37071 export function RouteHintHop_get_short_channel_id(this_ptr: bigint): bigint {
37072 if(!isWasmInitialized) {
37073 throw new Error("initializeWasm() must be awaited first!");
37075 const nativeResponseValue = wasm.TS_RouteHintHop_get_short_channel_id(this_ptr);
37076 return nativeResponseValue;
37078 // void RouteHintHop_set_short_channel_id(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint64_t val);
37080 export function RouteHintHop_set_short_channel_id(this_ptr: bigint, val: bigint): void {
37081 if(!isWasmInitialized) {
37082 throw new Error("initializeWasm() must be awaited first!");
37084 const nativeResponseValue = wasm.TS_RouteHintHop_set_short_channel_id(this_ptr, val);
37085 // debug statements here
37087 // struct LDKRoutingFees RouteHintHop_get_fees(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
37089 export function RouteHintHop_get_fees(this_ptr: bigint): bigint {
37090 if(!isWasmInitialized) {
37091 throw new Error("initializeWasm() must be awaited first!");
37093 const nativeResponseValue = wasm.TS_RouteHintHop_get_fees(this_ptr);
37094 return nativeResponseValue;
37096 // void RouteHintHop_set_fees(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKRoutingFees val);
37098 export function RouteHintHop_set_fees(this_ptr: bigint, val: bigint): void {
37099 if(!isWasmInitialized) {
37100 throw new Error("initializeWasm() must be awaited first!");
37102 const nativeResponseValue = wasm.TS_RouteHintHop_set_fees(this_ptr, val);
37103 // debug statements here
37105 // uint16_t RouteHintHop_get_cltv_expiry_delta(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
37107 export function RouteHintHop_get_cltv_expiry_delta(this_ptr: bigint): number {
37108 if(!isWasmInitialized) {
37109 throw new Error("initializeWasm() must be awaited first!");
37111 const nativeResponseValue = wasm.TS_RouteHintHop_get_cltv_expiry_delta(this_ptr);
37112 return nativeResponseValue;
37114 // void RouteHintHop_set_cltv_expiry_delta(struct LDKRouteHintHop *NONNULL_PTR this_ptr, uint16_t val);
37116 export function RouteHintHop_set_cltv_expiry_delta(this_ptr: bigint, val: number): void {
37117 if(!isWasmInitialized) {
37118 throw new Error("initializeWasm() must be awaited first!");
37120 const nativeResponseValue = wasm.TS_RouteHintHop_set_cltv_expiry_delta(this_ptr, val);
37121 // debug statements here
37123 // struct LDKCOption_u64Z RouteHintHop_get_htlc_minimum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
37125 export function RouteHintHop_get_htlc_minimum_msat(this_ptr: bigint): bigint {
37126 if(!isWasmInitialized) {
37127 throw new Error("initializeWasm() must be awaited first!");
37129 const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_minimum_msat(this_ptr);
37130 return nativeResponseValue;
37132 // void RouteHintHop_set_htlc_minimum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
37134 export function RouteHintHop_set_htlc_minimum_msat(this_ptr: bigint, val: bigint): void {
37135 if(!isWasmInitialized) {
37136 throw new Error("initializeWasm() must be awaited first!");
37138 const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_minimum_msat(this_ptr, val);
37139 // debug statements here
37141 // struct LDKCOption_u64Z RouteHintHop_get_htlc_maximum_msat(const struct LDKRouteHintHop *NONNULL_PTR this_ptr);
37143 export function RouteHintHop_get_htlc_maximum_msat(this_ptr: bigint): bigint {
37144 if(!isWasmInitialized) {
37145 throw new Error("initializeWasm() must be awaited first!");
37147 const nativeResponseValue = wasm.TS_RouteHintHop_get_htlc_maximum_msat(this_ptr);
37148 return nativeResponseValue;
37150 // void RouteHintHop_set_htlc_maximum_msat(struct LDKRouteHintHop *NONNULL_PTR this_ptr, struct LDKCOption_u64Z val);
37152 export function RouteHintHop_set_htlc_maximum_msat(this_ptr: bigint, val: bigint): void {
37153 if(!isWasmInitialized) {
37154 throw new Error("initializeWasm() must be awaited first!");
37156 const nativeResponseValue = wasm.TS_RouteHintHop_set_htlc_maximum_msat(this_ptr, val);
37157 // debug statements here
37159 // MUST_USE_RES struct LDKRouteHintHop RouteHintHop_new(struct LDKPublicKey src_node_id_arg, uint64_t short_channel_id_arg, struct LDKRoutingFees fees_arg, uint16_t cltv_expiry_delta_arg, struct LDKCOption_u64Z htlc_minimum_msat_arg, struct LDKCOption_u64Z htlc_maximum_msat_arg);
37161 export function RouteHintHop_new(src_node_id_arg: number, short_channel_id_arg: bigint, fees_arg: bigint, cltv_expiry_delta_arg: number, htlc_minimum_msat_arg: bigint, htlc_maximum_msat_arg: bigint): bigint {
37162 if(!isWasmInitialized) {
37163 throw new Error("initializeWasm() must be awaited first!");
37165 const nativeResponseValue = wasm.TS_RouteHintHop_new(src_node_id_arg, short_channel_id_arg, fees_arg, cltv_expiry_delta_arg, htlc_minimum_msat_arg, htlc_maximum_msat_arg);
37166 return nativeResponseValue;
37168 // uint64_t RouteHintHop_clone_ptr(LDKRouteHintHop *NONNULL_PTR arg);
37170 export function RouteHintHop_clone_ptr(arg: bigint): bigint {
37171 if(!isWasmInitialized) {
37172 throw new Error("initializeWasm() must be awaited first!");
37174 const nativeResponseValue = wasm.TS_RouteHintHop_clone_ptr(arg);
37175 return nativeResponseValue;
37177 // struct LDKRouteHintHop RouteHintHop_clone(const struct LDKRouteHintHop *NONNULL_PTR orig);
37179 export function RouteHintHop_clone(orig: bigint): bigint {
37180 if(!isWasmInitialized) {
37181 throw new Error("initializeWasm() must be awaited first!");
37183 const nativeResponseValue = wasm.TS_RouteHintHop_clone(orig);
37184 return nativeResponseValue;
37186 // uint64_t RouteHintHop_hash(const struct LDKRouteHintHop *NONNULL_PTR o);
37188 export function RouteHintHop_hash(o: bigint): bigint {
37189 if(!isWasmInitialized) {
37190 throw new Error("initializeWasm() must be awaited first!");
37192 const nativeResponseValue = wasm.TS_RouteHintHop_hash(o);
37193 return nativeResponseValue;
37195 // bool RouteHintHop_eq(const struct LDKRouteHintHop *NONNULL_PTR a, const struct LDKRouteHintHop *NONNULL_PTR b);
37197 export function RouteHintHop_eq(a: bigint, b: bigint): boolean {
37198 if(!isWasmInitialized) {
37199 throw new Error("initializeWasm() must be awaited first!");
37201 const nativeResponseValue = wasm.TS_RouteHintHop_eq(a, b);
37202 return nativeResponseValue;
37204 // struct LDKCVec_u8Z RouteHintHop_write(const struct LDKRouteHintHop *NONNULL_PTR obj);
37206 export function RouteHintHop_write(obj: bigint): number {
37207 if(!isWasmInitialized) {
37208 throw new Error("initializeWasm() must be awaited first!");
37210 const nativeResponseValue = wasm.TS_RouteHintHop_write(obj);
37211 return nativeResponseValue;
37213 // struct LDKCResult_RouteHintHopDecodeErrorZ RouteHintHop_read(struct LDKu8slice ser);
37215 export function RouteHintHop_read(ser: number): bigint {
37216 if(!isWasmInitialized) {
37217 throw new Error("initializeWasm() must be awaited first!");
37219 const nativeResponseValue = wasm.TS_RouteHintHop_read(ser);
37220 return nativeResponseValue;
37222 // struct LDKCResult_RouteLightningErrorZ find_route(struct LDKPublicKey our_node_pubkey, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKCVec_ChannelDetailsZ *first_hops, struct LDKLogger logger, const struct LDKScore *NONNULL_PTR scorer, const uint8_t (*random_seed_bytes)[32]);
37224 export function find_route(our_node_pubkey: number, route_params: bigint, network_graph: bigint, first_hops: number, logger: bigint, scorer: bigint, random_seed_bytes: number): bigint {
37225 if(!isWasmInitialized) {
37226 throw new Error("initializeWasm() must be awaited first!");
37228 const nativeResponseValue = wasm.TS_find_route(our_node_pubkey, route_params, network_graph, first_hops, logger, scorer, random_seed_bytes);
37229 return nativeResponseValue;
37231 // struct LDKCResult_RouteLightningErrorZ build_route_from_hops(struct LDKPublicKey our_node_pubkey, struct LDKCVec_PublicKeyZ hops, const struct LDKRouteParameters *NONNULL_PTR route_params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger, const uint8_t (*random_seed_bytes)[32]);
37233 export function build_route_from_hops(our_node_pubkey: number, hops: number, route_params: bigint, network_graph: bigint, logger: bigint, random_seed_bytes: number): bigint {
37234 if(!isWasmInitialized) {
37235 throw new Error("initializeWasm() must be awaited first!");
37237 const nativeResponseValue = wasm.TS_build_route_from_hops(our_node_pubkey, hops, route_params, network_graph, logger, random_seed_bytes);
37238 return nativeResponseValue;
37240 // void Score_free(struct LDKScore this_ptr);
37242 export function Score_free(this_ptr: bigint): void {
37243 if(!isWasmInitialized) {
37244 throw new Error("initializeWasm() must be awaited first!");
37246 const nativeResponseValue = wasm.TS_Score_free(this_ptr);
37247 // debug statements here
37249 // void LockableScore_free(struct LDKLockableScore this_ptr);
37251 export function LockableScore_free(this_ptr: bigint): void {
37252 if(!isWasmInitialized) {
37253 throw new Error("initializeWasm() must be awaited first!");
37255 const nativeResponseValue = wasm.TS_LockableScore_free(this_ptr);
37256 // debug statements here
37258 // void WriteableScore_free(struct LDKWriteableScore this_ptr);
37260 export function WriteableScore_free(this_ptr: bigint): void {
37261 if(!isWasmInitialized) {
37262 throw new Error("initializeWasm() must be awaited first!");
37264 const nativeResponseValue = wasm.TS_WriteableScore_free(this_ptr);
37265 // debug statements here
37267 // void MultiThreadedLockableScore_free(struct LDKMultiThreadedLockableScore this_obj);
37269 export function MultiThreadedLockableScore_free(this_obj: bigint): void {
37270 if(!isWasmInitialized) {
37271 throw new Error("initializeWasm() must be awaited first!");
37273 const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_free(this_obj);
37274 // debug statements here
37276 // void MultiThreadedScoreLock_free(struct LDKMultiThreadedScoreLock this_obj);
37278 export function MultiThreadedScoreLock_free(this_obj: bigint): void {
37279 if(!isWasmInitialized) {
37280 throw new Error("initializeWasm() must be awaited first!");
37282 const nativeResponseValue = wasm.TS_MultiThreadedScoreLock_free(this_obj);
37283 // debug statements here
37285 // struct LDKScore MultiThreadedScoreLock_as_Score(const struct LDKMultiThreadedScoreLock *NONNULL_PTR this_arg);
37287 export function MultiThreadedScoreLock_as_Score(this_arg: bigint): bigint {
37288 if(!isWasmInitialized) {
37289 throw new Error("initializeWasm() must be awaited first!");
37291 const nativeResponseValue = wasm.TS_MultiThreadedScoreLock_as_Score(this_arg);
37292 return nativeResponseValue;
37294 // struct LDKCVec_u8Z MultiThreadedScoreLock_write(const struct LDKMultiThreadedScoreLock *NONNULL_PTR obj);
37296 export function MultiThreadedScoreLock_write(obj: bigint): number {
37297 if(!isWasmInitialized) {
37298 throw new Error("initializeWasm() must be awaited first!");
37300 const nativeResponseValue = wasm.TS_MultiThreadedScoreLock_write(obj);
37301 return nativeResponseValue;
37303 // struct LDKLockableScore MultiThreadedLockableScore_as_LockableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
37305 export function MultiThreadedLockableScore_as_LockableScore(this_arg: bigint): bigint {
37306 if(!isWasmInitialized) {
37307 throw new Error("initializeWasm() must be awaited first!");
37309 const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_as_LockableScore(this_arg);
37310 return nativeResponseValue;
37312 // struct LDKCVec_u8Z MultiThreadedLockableScore_write(const struct LDKMultiThreadedLockableScore *NONNULL_PTR obj);
37314 export function MultiThreadedLockableScore_write(obj: bigint): number {
37315 if(!isWasmInitialized) {
37316 throw new Error("initializeWasm() must be awaited first!");
37318 const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_write(obj);
37319 return nativeResponseValue;
37321 // struct LDKWriteableScore MultiThreadedLockableScore_as_WriteableScore(const struct LDKMultiThreadedLockableScore *NONNULL_PTR this_arg);
37323 export function MultiThreadedLockableScore_as_WriteableScore(this_arg: bigint): bigint {
37324 if(!isWasmInitialized) {
37325 throw new Error("initializeWasm() must be awaited first!");
37327 const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_as_WriteableScore(this_arg);
37328 return nativeResponseValue;
37330 // MUST_USE_RES struct LDKMultiThreadedLockableScore MultiThreadedLockableScore_new(struct LDKScore score);
37332 export function MultiThreadedLockableScore_new(score: bigint): bigint {
37333 if(!isWasmInitialized) {
37334 throw new Error("initializeWasm() must be awaited first!");
37336 const nativeResponseValue = wasm.TS_MultiThreadedLockableScore_new(score);
37337 return nativeResponseValue;
37339 // void ChannelUsage_free(struct LDKChannelUsage this_obj);
37341 export function ChannelUsage_free(this_obj: bigint): void {
37342 if(!isWasmInitialized) {
37343 throw new Error("initializeWasm() must be awaited first!");
37345 const nativeResponseValue = wasm.TS_ChannelUsage_free(this_obj);
37346 // debug statements here
37348 // uint64_t ChannelUsage_get_amount_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
37350 export function ChannelUsage_get_amount_msat(this_ptr: bigint): bigint {
37351 if(!isWasmInitialized) {
37352 throw new Error("initializeWasm() must be awaited first!");
37354 const nativeResponseValue = wasm.TS_ChannelUsage_get_amount_msat(this_ptr);
37355 return nativeResponseValue;
37357 // void ChannelUsage_set_amount_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
37359 export function ChannelUsage_set_amount_msat(this_ptr: bigint, val: bigint): void {
37360 if(!isWasmInitialized) {
37361 throw new Error("initializeWasm() must be awaited first!");
37363 const nativeResponseValue = wasm.TS_ChannelUsage_set_amount_msat(this_ptr, val);
37364 // debug statements here
37366 // uint64_t ChannelUsage_get_inflight_htlc_msat(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
37368 export function ChannelUsage_get_inflight_htlc_msat(this_ptr: bigint): bigint {
37369 if(!isWasmInitialized) {
37370 throw new Error("initializeWasm() must be awaited first!");
37372 const nativeResponseValue = wasm.TS_ChannelUsage_get_inflight_htlc_msat(this_ptr);
37373 return nativeResponseValue;
37375 // void ChannelUsage_set_inflight_htlc_msat(struct LDKChannelUsage *NONNULL_PTR this_ptr, uint64_t val);
37377 export function ChannelUsage_set_inflight_htlc_msat(this_ptr: bigint, val: bigint): void {
37378 if(!isWasmInitialized) {
37379 throw new Error("initializeWasm() must be awaited first!");
37381 const nativeResponseValue = wasm.TS_ChannelUsage_set_inflight_htlc_msat(this_ptr, val);
37382 // debug statements here
37384 // struct LDKEffectiveCapacity ChannelUsage_get_effective_capacity(const struct LDKChannelUsage *NONNULL_PTR this_ptr);
37386 export function ChannelUsage_get_effective_capacity(this_ptr: bigint): bigint {
37387 if(!isWasmInitialized) {
37388 throw new Error("initializeWasm() must be awaited first!");
37390 const nativeResponseValue = wasm.TS_ChannelUsage_get_effective_capacity(this_ptr);
37391 return nativeResponseValue;
37393 // void ChannelUsage_set_effective_capacity(struct LDKChannelUsage *NONNULL_PTR this_ptr, struct LDKEffectiveCapacity val);
37395 export function ChannelUsage_set_effective_capacity(this_ptr: bigint, val: bigint): void {
37396 if(!isWasmInitialized) {
37397 throw new Error("initializeWasm() must be awaited first!");
37399 const nativeResponseValue = wasm.TS_ChannelUsage_set_effective_capacity(this_ptr, val);
37400 // debug statements here
37402 // MUST_USE_RES struct LDKChannelUsage ChannelUsage_new(uint64_t amount_msat_arg, uint64_t inflight_htlc_msat_arg, struct LDKEffectiveCapacity effective_capacity_arg);
37404 export function ChannelUsage_new(amount_msat_arg: bigint, inflight_htlc_msat_arg: bigint, effective_capacity_arg: bigint): bigint {
37405 if(!isWasmInitialized) {
37406 throw new Error("initializeWasm() must be awaited first!");
37408 const nativeResponseValue = wasm.TS_ChannelUsage_new(amount_msat_arg, inflight_htlc_msat_arg, effective_capacity_arg);
37409 return nativeResponseValue;
37411 // uint64_t ChannelUsage_clone_ptr(LDKChannelUsage *NONNULL_PTR arg);
37413 export function ChannelUsage_clone_ptr(arg: bigint): bigint {
37414 if(!isWasmInitialized) {
37415 throw new Error("initializeWasm() must be awaited first!");
37417 const nativeResponseValue = wasm.TS_ChannelUsage_clone_ptr(arg);
37418 return nativeResponseValue;
37420 // struct LDKChannelUsage ChannelUsage_clone(const struct LDKChannelUsage *NONNULL_PTR orig);
37422 export function ChannelUsage_clone(orig: bigint): bigint {
37423 if(!isWasmInitialized) {
37424 throw new Error("initializeWasm() must be awaited first!");
37426 const nativeResponseValue = wasm.TS_ChannelUsage_clone(orig);
37427 return nativeResponseValue;
37429 // void FixedPenaltyScorer_free(struct LDKFixedPenaltyScorer this_obj);
37431 export function FixedPenaltyScorer_free(this_obj: bigint): void {
37432 if(!isWasmInitialized) {
37433 throw new Error("initializeWasm() must be awaited first!");
37435 const nativeResponseValue = wasm.TS_FixedPenaltyScorer_free(this_obj);
37436 // debug statements here
37438 // uint64_t FixedPenaltyScorer_clone_ptr(LDKFixedPenaltyScorer *NONNULL_PTR arg);
37440 export function FixedPenaltyScorer_clone_ptr(arg: bigint): bigint {
37441 if(!isWasmInitialized) {
37442 throw new Error("initializeWasm() must be awaited first!");
37444 const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone_ptr(arg);
37445 return nativeResponseValue;
37447 // struct LDKFixedPenaltyScorer FixedPenaltyScorer_clone(const struct LDKFixedPenaltyScorer *NONNULL_PTR orig);
37449 export function FixedPenaltyScorer_clone(orig: bigint): bigint {
37450 if(!isWasmInitialized) {
37451 throw new Error("initializeWasm() must be awaited first!");
37453 const nativeResponseValue = wasm.TS_FixedPenaltyScorer_clone(orig);
37454 return nativeResponseValue;
37456 // MUST_USE_RES struct LDKFixedPenaltyScorer FixedPenaltyScorer_with_penalty(uint64_t penalty_msat);
37458 export function FixedPenaltyScorer_with_penalty(penalty_msat: bigint): bigint {
37459 if(!isWasmInitialized) {
37460 throw new Error("initializeWasm() must be awaited first!");
37462 const nativeResponseValue = wasm.TS_FixedPenaltyScorer_with_penalty(penalty_msat);
37463 return nativeResponseValue;
37465 // struct LDKScore FixedPenaltyScorer_as_Score(const struct LDKFixedPenaltyScorer *NONNULL_PTR this_arg);
37467 export function FixedPenaltyScorer_as_Score(this_arg: bigint): bigint {
37468 if(!isWasmInitialized) {
37469 throw new Error("initializeWasm() must be awaited first!");
37471 const nativeResponseValue = wasm.TS_FixedPenaltyScorer_as_Score(this_arg);
37472 return nativeResponseValue;
37474 // struct LDKCVec_u8Z FixedPenaltyScorer_write(const struct LDKFixedPenaltyScorer *NONNULL_PTR obj);
37476 export function FixedPenaltyScorer_write(obj: bigint): number {
37477 if(!isWasmInitialized) {
37478 throw new Error("initializeWasm() must be awaited first!");
37480 const nativeResponseValue = wasm.TS_FixedPenaltyScorer_write(obj);
37481 return nativeResponseValue;
37483 // struct LDKCResult_FixedPenaltyScorerDecodeErrorZ FixedPenaltyScorer_read(struct LDKu8slice ser, uint64_t arg);
37485 export function FixedPenaltyScorer_read(ser: number, arg: bigint): bigint {
37486 if(!isWasmInitialized) {
37487 throw new Error("initializeWasm() must be awaited first!");
37489 const nativeResponseValue = wasm.TS_FixedPenaltyScorer_read(ser, arg);
37490 return nativeResponseValue;
37492 // void ProbabilisticScorer_free(struct LDKProbabilisticScorer this_obj);
37494 export function ProbabilisticScorer_free(this_obj: bigint): void {
37495 if(!isWasmInitialized) {
37496 throw new Error("initializeWasm() must be awaited first!");
37498 const nativeResponseValue = wasm.TS_ProbabilisticScorer_free(this_obj);
37499 // debug statements here
37501 // void ProbabilisticScoringParameters_free(struct LDKProbabilisticScoringParameters this_obj);
37503 export function ProbabilisticScoringParameters_free(this_obj: bigint): void {
37504 if(!isWasmInitialized) {
37505 throw new Error("initializeWasm() must be awaited first!");
37507 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_free(this_obj);
37508 // debug statements here
37510 // uint64_t ProbabilisticScoringParameters_get_base_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
37512 export function ProbabilisticScoringParameters_get_base_penalty_msat(this_ptr: bigint): bigint {
37513 if(!isWasmInitialized) {
37514 throw new Error("initializeWasm() must be awaited first!");
37516 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_base_penalty_msat(this_ptr);
37517 return nativeResponseValue;
37519 // void ProbabilisticScoringParameters_set_base_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
37521 export function ProbabilisticScoringParameters_set_base_penalty_msat(this_ptr: bigint, val: bigint): void {
37522 if(!isWasmInitialized) {
37523 throw new Error("initializeWasm() must be awaited first!");
37525 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_base_penalty_msat(this_ptr, val);
37526 // debug statements here
37528 // uint64_t ProbabilisticScoringParameters_get_base_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
37530 export function ProbabilisticScoringParameters_get_base_penalty_amount_multiplier_msat(this_ptr: bigint): bigint {
37531 if(!isWasmInitialized) {
37532 throw new Error("initializeWasm() must be awaited first!");
37534 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_base_penalty_amount_multiplier_msat(this_ptr);
37535 return nativeResponseValue;
37537 // void ProbabilisticScoringParameters_set_base_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
37539 export function ProbabilisticScoringParameters_set_base_penalty_amount_multiplier_msat(this_ptr: bigint, val: bigint): void {
37540 if(!isWasmInitialized) {
37541 throw new Error("initializeWasm() must be awaited first!");
37543 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_base_penalty_amount_multiplier_msat(this_ptr, val);
37544 // debug statements here
37546 // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
37548 export function ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr: bigint): bigint {
37549 if(!isWasmInitialized) {
37550 throw new Error("initializeWasm() must be awaited first!");
37552 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_penalty_multiplier_msat(this_ptr);
37553 return nativeResponseValue;
37555 // void ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
37557 export function ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr: bigint, val: bigint): void {
37558 if(!isWasmInitialized) {
37559 throw new Error("initializeWasm() must be awaited first!");
37561 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_penalty_multiplier_msat(this_ptr, val);
37562 // debug statements here
37564 // uint64_t ProbabilisticScoringParameters_get_liquidity_offset_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
37566 export function ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr: bigint): bigint {
37567 if(!isWasmInitialized) {
37568 throw new Error("initializeWasm() must be awaited first!");
37570 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_offset_half_life(this_ptr);
37571 return nativeResponseValue;
37573 // void ProbabilisticScoringParameters_set_liquidity_offset_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
37575 export function ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr: bigint, val: bigint): void {
37576 if(!isWasmInitialized) {
37577 throw new Error("initializeWasm() must be awaited first!");
37579 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_offset_half_life(this_ptr, val);
37580 // debug statements here
37582 // uint64_t ProbabilisticScoringParameters_get_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
37584 export function ProbabilisticScoringParameters_get_liquidity_penalty_amount_multiplier_msat(this_ptr: bigint): bigint {
37585 if(!isWasmInitialized) {
37586 throw new Error("initializeWasm() must be awaited first!");
37588 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_liquidity_penalty_amount_multiplier_msat(this_ptr);
37589 return nativeResponseValue;
37591 // void ProbabilisticScoringParameters_set_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
37593 export function ProbabilisticScoringParameters_set_liquidity_penalty_amount_multiplier_msat(this_ptr: bigint, val: bigint): void {
37594 if(!isWasmInitialized) {
37595 throw new Error("initializeWasm() must be awaited first!");
37597 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_liquidity_penalty_amount_multiplier_msat(this_ptr, val);
37598 // debug statements here
37600 // uint64_t ProbabilisticScoringParameters_get_historical_liquidity_penalty_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
37602 export function ProbabilisticScoringParameters_get_historical_liquidity_penalty_multiplier_msat(this_ptr: bigint): bigint {
37603 if(!isWasmInitialized) {
37604 throw new Error("initializeWasm() must be awaited first!");
37606 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_historical_liquidity_penalty_multiplier_msat(this_ptr);
37607 return nativeResponseValue;
37609 // void ProbabilisticScoringParameters_set_historical_liquidity_penalty_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
37611 export function ProbabilisticScoringParameters_set_historical_liquidity_penalty_multiplier_msat(this_ptr: bigint, val: bigint): void {
37612 if(!isWasmInitialized) {
37613 throw new Error("initializeWasm() must be awaited first!");
37615 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_historical_liquidity_penalty_multiplier_msat(this_ptr, val);
37616 // debug statements here
37618 // uint64_t ProbabilisticScoringParameters_get_historical_liquidity_penalty_amount_multiplier_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
37620 export function ProbabilisticScoringParameters_get_historical_liquidity_penalty_amount_multiplier_msat(this_ptr: bigint): bigint {
37621 if(!isWasmInitialized) {
37622 throw new Error("initializeWasm() must be awaited first!");
37624 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_historical_liquidity_penalty_amount_multiplier_msat(this_ptr);
37625 return nativeResponseValue;
37627 // void ProbabilisticScoringParameters_set_historical_liquidity_penalty_amount_multiplier_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
37629 export function ProbabilisticScoringParameters_set_historical_liquidity_penalty_amount_multiplier_msat(this_ptr: bigint, val: bigint): void {
37630 if(!isWasmInitialized) {
37631 throw new Error("initializeWasm() must be awaited first!");
37633 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_historical_liquidity_penalty_amount_multiplier_msat(this_ptr, val);
37634 // debug statements here
37636 // uint64_t ProbabilisticScoringParameters_get_historical_no_updates_half_life(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
37638 export function ProbabilisticScoringParameters_get_historical_no_updates_half_life(this_ptr: bigint): bigint {
37639 if(!isWasmInitialized) {
37640 throw new Error("initializeWasm() must be awaited first!");
37642 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_historical_no_updates_half_life(this_ptr);
37643 return nativeResponseValue;
37645 // void ProbabilisticScoringParameters_set_historical_no_updates_half_life(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
37647 export function ProbabilisticScoringParameters_set_historical_no_updates_half_life(this_ptr: bigint, val: bigint): void {
37648 if(!isWasmInitialized) {
37649 throw new Error("initializeWasm() must be awaited first!");
37651 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_historical_no_updates_half_life(this_ptr, val);
37652 // debug statements here
37654 // uint64_t ProbabilisticScoringParameters_get_anti_probing_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
37656 export function ProbabilisticScoringParameters_get_anti_probing_penalty_msat(this_ptr: bigint): bigint {
37657 if(!isWasmInitialized) {
37658 throw new Error("initializeWasm() must be awaited first!");
37660 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_anti_probing_penalty_msat(this_ptr);
37661 return nativeResponseValue;
37663 // void ProbabilisticScoringParameters_set_anti_probing_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
37665 export function ProbabilisticScoringParameters_set_anti_probing_penalty_msat(this_ptr: bigint, val: bigint): void {
37666 if(!isWasmInitialized) {
37667 throw new Error("initializeWasm() must be awaited first!");
37669 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_anti_probing_penalty_msat(this_ptr, val);
37670 // debug statements here
37672 // uint64_t ProbabilisticScoringParameters_get_considered_impossible_penalty_msat(const struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr);
37674 export function ProbabilisticScoringParameters_get_considered_impossible_penalty_msat(this_ptr: bigint): bigint {
37675 if(!isWasmInitialized) {
37676 throw new Error("initializeWasm() must be awaited first!");
37678 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_get_considered_impossible_penalty_msat(this_ptr);
37679 return nativeResponseValue;
37681 // void ProbabilisticScoringParameters_set_considered_impossible_penalty_msat(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_ptr, uint64_t val);
37683 export function ProbabilisticScoringParameters_set_considered_impossible_penalty_msat(this_ptr: bigint, val: bigint): void {
37684 if(!isWasmInitialized) {
37685 throw new Error("initializeWasm() must be awaited first!");
37687 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_set_considered_impossible_penalty_msat(this_ptr, val);
37688 // debug statements here
37690 // uint64_t ProbabilisticScoringParameters_clone_ptr(LDKProbabilisticScoringParameters *NONNULL_PTR arg);
37692 export function ProbabilisticScoringParameters_clone_ptr(arg: bigint): bigint {
37693 if(!isWasmInitialized) {
37694 throw new Error("initializeWasm() must be awaited first!");
37696 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone_ptr(arg);
37697 return nativeResponseValue;
37699 // struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_clone(const struct LDKProbabilisticScoringParameters *NONNULL_PTR orig);
37701 export function ProbabilisticScoringParameters_clone(orig: bigint): bigint {
37702 if(!isWasmInitialized) {
37703 throw new Error("initializeWasm() must be awaited first!");
37705 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_clone(orig);
37706 return nativeResponseValue;
37708 // MUST_USE_RES struct LDKProbabilisticScorer ProbabilisticScorer_new(struct LDKProbabilisticScoringParameters params, const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
37710 export function ProbabilisticScorer_new(params: bigint, network_graph: bigint, logger: bigint): bigint {
37711 if(!isWasmInitialized) {
37712 throw new Error("initializeWasm() must be awaited first!");
37714 const nativeResponseValue = wasm.TS_ProbabilisticScorer_new(params, network_graph, logger);
37715 return nativeResponseValue;
37717 // void ProbabilisticScorer_debug_log_liquidity_stats(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
37719 export function ProbabilisticScorer_debug_log_liquidity_stats(this_arg: bigint): void {
37720 if(!isWasmInitialized) {
37721 throw new Error("initializeWasm() must be awaited first!");
37723 const nativeResponseValue = wasm.TS_ProbabilisticScorer_debug_log_liquidity_stats(this_arg);
37724 // debug statements here
37726 // MUST_USE_RES struct LDKCOption_C2Tuple_u64u64ZZ ProbabilisticScorer_estimated_channel_liquidity_range(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target);
37728 export function ProbabilisticScorer_estimated_channel_liquidity_range(this_arg: bigint, scid: bigint, target: bigint): bigint {
37729 if(!isWasmInitialized) {
37730 throw new Error("initializeWasm() must be awaited first!");
37732 const nativeResponseValue = wasm.TS_ProbabilisticScorer_estimated_channel_liquidity_range(this_arg, scid, target);
37733 return nativeResponseValue;
37735 // MUST_USE_RES struct LDKCOption_C2Tuple_EightU16sEightU16sZZ ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg, uint64_t scid, const struct LDKNodeId *NONNULL_PTR target);
37737 export function ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(this_arg: bigint, scid: bigint, target: bigint): bigint {
37738 if(!isWasmInitialized) {
37739 throw new Error("initializeWasm() must be awaited first!");
37741 const nativeResponseValue = wasm.TS_ProbabilisticScorer_historical_estimated_channel_liquidity_probabilities(this_arg, scid, target);
37742 return nativeResponseValue;
37744 // void ProbabilisticScorer_add_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
37746 export function ProbabilisticScorer_add_banned(this_arg: bigint, node_id: bigint): void {
37747 if(!isWasmInitialized) {
37748 throw new Error("initializeWasm() must be awaited first!");
37750 const nativeResponseValue = wasm.TS_ProbabilisticScorer_add_banned(this_arg, node_id);
37751 // debug statements here
37753 // void ProbabilisticScorer_remove_banned(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
37755 export function ProbabilisticScorer_remove_banned(this_arg: bigint, node_id: bigint): void {
37756 if(!isWasmInitialized) {
37757 throw new Error("initializeWasm() must be awaited first!");
37759 const nativeResponseValue = wasm.TS_ProbabilisticScorer_remove_banned(this_arg, node_id);
37760 // debug statements here
37762 // void ProbabilisticScorer_set_manual_penalty(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id, uint64_t penalty);
37764 export function ProbabilisticScorer_set_manual_penalty(this_arg: bigint, node_id: bigint, penalty: bigint): void {
37765 if(!isWasmInitialized) {
37766 throw new Error("initializeWasm() must be awaited first!");
37768 const nativeResponseValue = wasm.TS_ProbabilisticScorer_set_manual_penalty(this_arg, node_id, penalty);
37769 // debug statements here
37771 // void ProbabilisticScorer_remove_manual_penalty(struct LDKProbabilisticScorer *NONNULL_PTR this_arg, const struct LDKNodeId *NONNULL_PTR node_id);
37773 export function ProbabilisticScorer_remove_manual_penalty(this_arg: bigint, node_id: bigint): void {
37774 if(!isWasmInitialized) {
37775 throw new Error("initializeWasm() must be awaited first!");
37777 const nativeResponseValue = wasm.TS_ProbabilisticScorer_remove_manual_penalty(this_arg, node_id);
37778 // debug statements here
37780 // void ProbabilisticScorer_clear_manual_penalties(struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
37782 export function ProbabilisticScorer_clear_manual_penalties(this_arg: bigint): void {
37783 if(!isWasmInitialized) {
37784 throw new Error("initializeWasm() must be awaited first!");
37786 const nativeResponseValue = wasm.TS_ProbabilisticScorer_clear_manual_penalties(this_arg);
37787 // debug statements here
37789 // void ProbabilisticScoringParameters_add_banned_from_list(struct LDKProbabilisticScoringParameters *NONNULL_PTR this_arg, struct LDKCVec_NodeIdZ node_ids);
37791 export function ProbabilisticScoringParameters_add_banned_from_list(this_arg: bigint, node_ids: number): void {
37792 if(!isWasmInitialized) {
37793 throw new Error("initializeWasm() must be awaited first!");
37795 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_add_banned_from_list(this_arg, node_ids);
37796 // debug statements here
37798 // MUST_USE_RES struct LDKProbabilisticScoringParameters ProbabilisticScoringParameters_default(void);
37800 export function ProbabilisticScoringParameters_default(): bigint {
37801 if(!isWasmInitialized) {
37802 throw new Error("initializeWasm() must be awaited first!");
37804 const nativeResponseValue = wasm.TS_ProbabilisticScoringParameters_default();
37805 return nativeResponseValue;
37807 // struct LDKScore ProbabilisticScorer_as_Score(const struct LDKProbabilisticScorer *NONNULL_PTR this_arg);
37809 export function ProbabilisticScorer_as_Score(this_arg: bigint): bigint {
37810 if(!isWasmInitialized) {
37811 throw new Error("initializeWasm() must be awaited first!");
37813 const nativeResponseValue = wasm.TS_ProbabilisticScorer_as_Score(this_arg);
37814 return nativeResponseValue;
37816 // struct LDKCVec_u8Z ProbabilisticScorer_write(const struct LDKProbabilisticScorer *NONNULL_PTR obj);
37818 export function ProbabilisticScorer_write(obj: bigint): number {
37819 if(!isWasmInitialized) {
37820 throw new Error("initializeWasm() must be awaited first!");
37822 const nativeResponseValue = wasm.TS_ProbabilisticScorer_write(obj);
37823 return nativeResponseValue;
37825 // struct LDKCResult_ProbabilisticScorerDecodeErrorZ ProbabilisticScorer_read(struct LDKu8slice ser, struct LDKProbabilisticScoringParameters arg_a, const struct LDKNetworkGraph *NONNULL_PTR arg_b, struct LDKLogger arg_c);
37827 export function ProbabilisticScorer_read(ser: number, arg_a: bigint, arg_b: bigint, arg_c: bigint): bigint {
37828 if(!isWasmInitialized) {
37829 throw new Error("initializeWasm() must be awaited first!");
37831 const nativeResponseValue = wasm.TS_ProbabilisticScorer_read(ser, arg_a, arg_b, arg_c);
37832 return nativeResponseValue;
37834 // void OnionMessenger_free(struct LDKOnionMessenger this_obj);
37836 export function OnionMessenger_free(this_obj: bigint): void {
37837 if(!isWasmInitialized) {
37838 throw new Error("initializeWasm() must be awaited first!");
37840 const nativeResponseValue = wasm.TS_OnionMessenger_free(this_obj);
37841 // debug statements here
37843 // void Destination_free(struct LDKDestination this_ptr);
37845 export function Destination_free(this_ptr: bigint): void {
37846 if(!isWasmInitialized) {
37847 throw new Error("initializeWasm() must be awaited first!");
37849 const nativeResponseValue = wasm.TS_Destination_free(this_ptr);
37850 // debug statements here
37852 // uint64_t Destination_clone_ptr(LDKDestination *NONNULL_PTR arg);
37854 export function Destination_clone_ptr(arg: bigint): bigint {
37855 if(!isWasmInitialized) {
37856 throw new Error("initializeWasm() must be awaited first!");
37858 const nativeResponseValue = wasm.TS_Destination_clone_ptr(arg);
37859 return nativeResponseValue;
37861 // struct LDKDestination Destination_clone(const struct LDKDestination *NONNULL_PTR orig);
37863 export function Destination_clone(orig: bigint): bigint {
37864 if(!isWasmInitialized) {
37865 throw new Error("initializeWasm() must be awaited first!");
37867 const nativeResponseValue = wasm.TS_Destination_clone(orig);
37868 return nativeResponseValue;
37870 // struct LDKDestination Destination_node(struct LDKPublicKey a);
37872 export function Destination_node(a: number): bigint {
37873 if(!isWasmInitialized) {
37874 throw new Error("initializeWasm() must be awaited first!");
37876 const nativeResponseValue = wasm.TS_Destination_node(a);
37877 return nativeResponseValue;
37879 // struct LDKDestination Destination_blinded_path(struct LDKBlindedPath a);
37881 export function Destination_blinded_path(a: bigint): bigint {
37882 if(!isWasmInitialized) {
37883 throw new Error("initializeWasm() must be awaited first!");
37885 const nativeResponseValue = wasm.TS_Destination_blinded_path(a);
37886 return nativeResponseValue;
37888 // void SendError_free(struct LDKSendError this_ptr);
37890 export function SendError_free(this_ptr: bigint): void {
37891 if(!isWasmInitialized) {
37892 throw new Error("initializeWasm() must be awaited first!");
37894 const nativeResponseValue = wasm.TS_SendError_free(this_ptr);
37895 // debug statements here
37897 // uint64_t SendError_clone_ptr(LDKSendError *NONNULL_PTR arg);
37899 export function SendError_clone_ptr(arg: bigint): bigint {
37900 if(!isWasmInitialized) {
37901 throw new Error("initializeWasm() must be awaited first!");
37903 const nativeResponseValue = wasm.TS_SendError_clone_ptr(arg);
37904 return nativeResponseValue;
37906 // struct LDKSendError SendError_clone(const struct LDKSendError *NONNULL_PTR orig);
37908 export function SendError_clone(orig: bigint): bigint {
37909 if(!isWasmInitialized) {
37910 throw new Error("initializeWasm() must be awaited first!");
37912 const nativeResponseValue = wasm.TS_SendError_clone(orig);
37913 return nativeResponseValue;
37915 // struct LDKSendError SendError_secp256k1(enum LDKSecp256k1Error a);
37917 export function SendError_secp256k1(a: Secp256k1Error): bigint {
37918 if(!isWasmInitialized) {
37919 throw new Error("initializeWasm() must be awaited first!");
37921 const nativeResponseValue = wasm.TS_SendError_secp256k1(a);
37922 return nativeResponseValue;
37924 // struct LDKSendError SendError_too_big_packet(void);
37926 export function SendError_too_big_packet(): bigint {
37927 if(!isWasmInitialized) {
37928 throw new Error("initializeWasm() must be awaited first!");
37930 const nativeResponseValue = wasm.TS_SendError_too_big_packet();
37931 return nativeResponseValue;
37933 // struct LDKSendError SendError_too_few_blinded_hops(void);
37935 export function SendError_too_few_blinded_hops(): bigint {
37936 if(!isWasmInitialized) {
37937 throw new Error("initializeWasm() must be awaited first!");
37939 const nativeResponseValue = wasm.TS_SendError_too_few_blinded_hops();
37940 return nativeResponseValue;
37942 // struct LDKSendError SendError_invalid_first_hop(void);
37944 export function SendError_invalid_first_hop(): bigint {
37945 if(!isWasmInitialized) {
37946 throw new Error("initializeWasm() must be awaited first!");
37948 const nativeResponseValue = wasm.TS_SendError_invalid_first_hop();
37949 return nativeResponseValue;
37951 // struct LDKSendError SendError_invalid_message(void);
37953 export function SendError_invalid_message(): bigint {
37954 if(!isWasmInitialized) {
37955 throw new Error("initializeWasm() must be awaited first!");
37957 const nativeResponseValue = wasm.TS_SendError_invalid_message();
37958 return nativeResponseValue;
37960 // struct LDKSendError SendError_buffer_full(void);
37962 export function SendError_buffer_full(): bigint {
37963 if(!isWasmInitialized) {
37964 throw new Error("initializeWasm() must be awaited first!");
37966 const nativeResponseValue = wasm.TS_SendError_buffer_full();
37967 return nativeResponseValue;
37969 // struct LDKSendError SendError_get_node_id_failed(void);
37971 export function SendError_get_node_id_failed(): bigint {
37972 if(!isWasmInitialized) {
37973 throw new Error("initializeWasm() must be awaited first!");
37975 const nativeResponseValue = wasm.TS_SendError_get_node_id_failed();
37976 return nativeResponseValue;
37978 // struct LDKSendError SendError_blinded_path_advance_failed(void);
37980 export function SendError_blinded_path_advance_failed(): bigint {
37981 if(!isWasmInitialized) {
37982 throw new Error("initializeWasm() must be awaited first!");
37984 const nativeResponseValue = wasm.TS_SendError_blinded_path_advance_failed();
37985 return nativeResponseValue;
37987 // bool SendError_eq(const struct LDKSendError *NONNULL_PTR a, const struct LDKSendError *NONNULL_PTR b);
37989 export function SendError_eq(a: bigint, b: bigint): boolean {
37990 if(!isWasmInitialized) {
37991 throw new Error("initializeWasm() must be awaited first!");
37993 const nativeResponseValue = wasm.TS_SendError_eq(a, b);
37994 return nativeResponseValue;
37996 // void CustomOnionMessageHandler_free(struct LDKCustomOnionMessageHandler this_ptr);
37998 export function CustomOnionMessageHandler_free(this_ptr: bigint): void {
37999 if(!isWasmInitialized) {
38000 throw new Error("initializeWasm() must be awaited first!");
38002 const nativeResponseValue = wasm.TS_CustomOnionMessageHandler_free(this_ptr);
38003 // debug statements here
38005 // MUST_USE_RES struct LDKOnionMessenger OnionMessenger_new(struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, struct LDKCustomOnionMessageHandler custom_handler);
38007 export function OnionMessenger_new(entropy_source: bigint, node_signer: bigint, logger: bigint, custom_handler: bigint): bigint {
38008 if(!isWasmInitialized) {
38009 throw new Error("initializeWasm() must be awaited first!");
38011 const nativeResponseValue = wasm.TS_OnionMessenger_new(entropy_source, node_signer, logger, custom_handler);
38012 return nativeResponseValue;
38014 // MUST_USE_RES struct LDKCResult_NoneSendErrorZ OnionMessenger_send_onion_message(const struct LDKOnionMessenger *NONNULL_PTR this_arg, struct LDKCVec_PublicKeyZ intermediate_nodes, struct LDKDestination destination, struct LDKOnionMessageContents message, struct LDKBlindedPath reply_path);
38016 export function OnionMessenger_send_onion_message(this_arg: bigint, intermediate_nodes: number, destination: bigint, message: bigint, reply_path: bigint): bigint {
38017 if(!isWasmInitialized) {
38018 throw new Error("initializeWasm() must be awaited first!");
38020 const nativeResponseValue = wasm.TS_OnionMessenger_send_onion_message(this_arg, intermediate_nodes, destination, message, reply_path);
38021 return nativeResponseValue;
38023 // struct LDKOnionMessageHandler OnionMessenger_as_OnionMessageHandler(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
38025 export function OnionMessenger_as_OnionMessageHandler(this_arg: bigint): bigint {
38026 if(!isWasmInitialized) {
38027 throw new Error("initializeWasm() must be awaited first!");
38029 const nativeResponseValue = wasm.TS_OnionMessenger_as_OnionMessageHandler(this_arg);
38030 return nativeResponseValue;
38032 // struct LDKOnionMessageProvider OnionMessenger_as_OnionMessageProvider(const struct LDKOnionMessenger *NONNULL_PTR this_arg);
38034 export function OnionMessenger_as_OnionMessageProvider(this_arg: bigint): bigint {
38035 if(!isWasmInitialized) {
38036 throw new Error("initializeWasm() must be awaited first!");
38038 const nativeResponseValue = wasm.TS_OnionMessenger_as_OnionMessageProvider(this_arg);
38039 return nativeResponseValue;
38041 // void OnionMessageContents_free(struct LDKOnionMessageContents this_ptr);
38043 export function OnionMessageContents_free(this_ptr: bigint): void {
38044 if(!isWasmInitialized) {
38045 throw new Error("initializeWasm() must be awaited first!");
38047 const nativeResponseValue = wasm.TS_OnionMessageContents_free(this_ptr);
38048 // debug statements here
38050 // uint64_t OnionMessageContents_clone_ptr(LDKOnionMessageContents *NONNULL_PTR arg);
38052 export function OnionMessageContents_clone_ptr(arg: bigint): bigint {
38053 if(!isWasmInitialized) {
38054 throw new Error("initializeWasm() must be awaited first!");
38056 const nativeResponseValue = wasm.TS_OnionMessageContents_clone_ptr(arg);
38057 return nativeResponseValue;
38059 // struct LDKOnionMessageContents OnionMessageContents_clone(const struct LDKOnionMessageContents *NONNULL_PTR orig);
38061 export function OnionMessageContents_clone(orig: bigint): bigint {
38062 if(!isWasmInitialized) {
38063 throw new Error("initializeWasm() must be awaited first!");
38065 const nativeResponseValue = wasm.TS_OnionMessageContents_clone(orig);
38066 return nativeResponseValue;
38068 // struct LDKOnionMessageContents OnionMessageContents_custom(struct LDKCustomOnionMessageContents a);
38070 export function OnionMessageContents_custom(a: bigint): bigint {
38071 if(!isWasmInitialized) {
38072 throw new Error("initializeWasm() must be awaited first!");
38074 const nativeResponseValue = wasm.TS_OnionMessageContents_custom(a);
38075 return nativeResponseValue;
38077 // uint64_t CustomOnionMessageContents_clone_ptr(LDKCustomOnionMessageContents *NONNULL_PTR arg);
38079 export function CustomOnionMessageContents_clone_ptr(arg: bigint): bigint {
38080 if(!isWasmInitialized) {
38081 throw new Error("initializeWasm() must be awaited first!");
38083 const nativeResponseValue = wasm.TS_CustomOnionMessageContents_clone_ptr(arg);
38084 return nativeResponseValue;
38086 // struct LDKCustomOnionMessageContents CustomOnionMessageContents_clone(const struct LDKCustomOnionMessageContents *NONNULL_PTR orig);
38088 export function CustomOnionMessageContents_clone(orig: bigint): bigint {
38089 if(!isWasmInitialized) {
38090 throw new Error("initializeWasm() must be awaited first!");
38092 const nativeResponseValue = wasm.TS_CustomOnionMessageContents_clone(orig);
38093 return nativeResponseValue;
38095 // void CustomOnionMessageContents_free(struct LDKCustomOnionMessageContents this_ptr);
38097 export function CustomOnionMessageContents_free(this_ptr: bigint): void {
38098 if(!isWasmInitialized) {
38099 throw new Error("initializeWasm() must be awaited first!");
38101 const nativeResponseValue = wasm.TS_CustomOnionMessageContents_free(this_ptr);
38102 // debug statements here
38104 // void BlindedPath_free(struct LDKBlindedPath this_obj);
38106 export function BlindedPath_free(this_obj: bigint): void {
38107 if(!isWasmInitialized) {
38108 throw new Error("initializeWasm() must be awaited first!");
38110 const nativeResponseValue = wasm.TS_BlindedPath_free(this_obj);
38111 // debug statements here
38113 // uint64_t BlindedPath_clone_ptr(LDKBlindedPath *NONNULL_PTR arg);
38115 export function BlindedPath_clone_ptr(arg: bigint): bigint {
38116 if(!isWasmInitialized) {
38117 throw new Error("initializeWasm() must be awaited first!");
38119 const nativeResponseValue = wasm.TS_BlindedPath_clone_ptr(arg);
38120 return nativeResponseValue;
38122 // struct LDKBlindedPath BlindedPath_clone(const struct LDKBlindedPath *NONNULL_PTR orig);
38124 export function BlindedPath_clone(orig: bigint): bigint {
38125 if(!isWasmInitialized) {
38126 throw new Error("initializeWasm() must be awaited first!");
38128 const nativeResponseValue = wasm.TS_BlindedPath_clone(orig);
38129 return nativeResponseValue;
38131 // uint64_t BlindedPath_hash(const struct LDKBlindedPath *NONNULL_PTR o);
38133 export function BlindedPath_hash(o: bigint): bigint {
38134 if(!isWasmInitialized) {
38135 throw new Error("initializeWasm() must be awaited first!");
38137 const nativeResponseValue = wasm.TS_BlindedPath_hash(o);
38138 return nativeResponseValue;
38140 // bool BlindedPath_eq(const struct LDKBlindedPath *NONNULL_PTR a, const struct LDKBlindedPath *NONNULL_PTR b);
38142 export function BlindedPath_eq(a: bigint, b: bigint): boolean {
38143 if(!isWasmInitialized) {
38144 throw new Error("initializeWasm() must be awaited first!");
38146 const nativeResponseValue = wasm.TS_BlindedPath_eq(a, b);
38147 return nativeResponseValue;
38149 // void BlindedHop_free(struct LDKBlindedHop this_obj);
38151 export function BlindedHop_free(this_obj: bigint): void {
38152 if(!isWasmInitialized) {
38153 throw new Error("initializeWasm() must be awaited first!");
38155 const nativeResponseValue = wasm.TS_BlindedHop_free(this_obj);
38156 // debug statements here
38158 // uint64_t BlindedHop_clone_ptr(LDKBlindedHop *NONNULL_PTR arg);
38160 export function BlindedHop_clone_ptr(arg: bigint): bigint {
38161 if(!isWasmInitialized) {
38162 throw new Error("initializeWasm() must be awaited first!");
38164 const nativeResponseValue = wasm.TS_BlindedHop_clone_ptr(arg);
38165 return nativeResponseValue;
38167 // struct LDKBlindedHop BlindedHop_clone(const struct LDKBlindedHop *NONNULL_PTR orig);
38169 export function BlindedHop_clone(orig: bigint): bigint {
38170 if(!isWasmInitialized) {
38171 throw new Error("initializeWasm() must be awaited first!");
38173 const nativeResponseValue = wasm.TS_BlindedHop_clone(orig);
38174 return nativeResponseValue;
38176 // uint64_t BlindedHop_hash(const struct LDKBlindedHop *NONNULL_PTR o);
38178 export function BlindedHop_hash(o: bigint): bigint {
38179 if(!isWasmInitialized) {
38180 throw new Error("initializeWasm() must be awaited first!");
38182 const nativeResponseValue = wasm.TS_BlindedHop_hash(o);
38183 return nativeResponseValue;
38185 // bool BlindedHop_eq(const struct LDKBlindedHop *NONNULL_PTR a, const struct LDKBlindedHop *NONNULL_PTR b);
38187 export function BlindedHop_eq(a: bigint, b: bigint): boolean {
38188 if(!isWasmInitialized) {
38189 throw new Error("initializeWasm() must be awaited first!");
38191 const nativeResponseValue = wasm.TS_BlindedHop_eq(a, b);
38192 return nativeResponseValue;
38194 // MUST_USE_RES struct LDKCResult_BlindedPathNoneZ BlindedPath_new_for_message(struct LDKCVec_PublicKeyZ node_pks, const struct LDKEntropySource *NONNULL_PTR entropy_source);
38196 export function BlindedPath_new_for_message(node_pks: number, entropy_source: bigint): bigint {
38197 if(!isWasmInitialized) {
38198 throw new Error("initializeWasm() must be awaited first!");
38200 const nativeResponseValue = wasm.TS_BlindedPath_new_for_message(node_pks, entropy_source);
38201 return nativeResponseValue;
38203 // struct LDKCVec_u8Z BlindedPath_write(const struct LDKBlindedPath *NONNULL_PTR obj);
38205 export function BlindedPath_write(obj: bigint): number {
38206 if(!isWasmInitialized) {
38207 throw new Error("initializeWasm() must be awaited first!");
38209 const nativeResponseValue = wasm.TS_BlindedPath_write(obj);
38210 return nativeResponseValue;
38212 // struct LDKCResult_BlindedPathDecodeErrorZ BlindedPath_read(struct LDKu8slice ser);
38214 export function BlindedPath_read(ser: number): bigint {
38215 if(!isWasmInitialized) {
38216 throw new Error("initializeWasm() must be awaited first!");
38218 const nativeResponseValue = wasm.TS_BlindedPath_read(ser);
38219 return nativeResponseValue;
38221 // struct LDKCVec_u8Z BlindedHop_write(const struct LDKBlindedHop *NONNULL_PTR obj);
38223 export function BlindedHop_write(obj: bigint): number {
38224 if(!isWasmInitialized) {
38225 throw new Error("initializeWasm() must be awaited first!");
38227 const nativeResponseValue = wasm.TS_BlindedHop_write(obj);
38228 return nativeResponseValue;
38230 // struct LDKCResult_BlindedHopDecodeErrorZ BlindedHop_read(struct LDKu8slice ser);
38232 export function BlindedHop_read(ser: number): bigint {
38233 if(!isWasmInitialized) {
38234 throw new Error("initializeWasm() must be awaited first!");
38236 const nativeResponseValue = wasm.TS_BlindedHop_read(ser);
38237 return nativeResponseValue;
38239 // void PaymentPurpose_free(struct LDKPaymentPurpose this_ptr);
38241 export function PaymentPurpose_free(this_ptr: bigint): void {
38242 if(!isWasmInitialized) {
38243 throw new Error("initializeWasm() must be awaited first!");
38245 const nativeResponseValue = wasm.TS_PaymentPurpose_free(this_ptr);
38246 // debug statements here
38248 // uint64_t PaymentPurpose_clone_ptr(LDKPaymentPurpose *NONNULL_PTR arg);
38250 export function PaymentPurpose_clone_ptr(arg: bigint): bigint {
38251 if(!isWasmInitialized) {
38252 throw new Error("initializeWasm() must be awaited first!");
38254 const nativeResponseValue = wasm.TS_PaymentPurpose_clone_ptr(arg);
38255 return nativeResponseValue;
38257 // struct LDKPaymentPurpose PaymentPurpose_clone(const struct LDKPaymentPurpose *NONNULL_PTR orig);
38259 export function PaymentPurpose_clone(orig: bigint): bigint {
38260 if(!isWasmInitialized) {
38261 throw new Error("initializeWasm() must be awaited first!");
38263 const nativeResponseValue = wasm.TS_PaymentPurpose_clone(orig);
38264 return nativeResponseValue;
38266 // struct LDKPaymentPurpose PaymentPurpose_invoice_payment(struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_secret);
38268 export function PaymentPurpose_invoice_payment(payment_preimage: number, payment_secret: number): bigint {
38269 if(!isWasmInitialized) {
38270 throw new Error("initializeWasm() must be awaited first!");
38272 const nativeResponseValue = wasm.TS_PaymentPurpose_invoice_payment(payment_preimage, payment_secret);
38273 return nativeResponseValue;
38275 // struct LDKPaymentPurpose PaymentPurpose_spontaneous_payment(struct LDKThirtyTwoBytes a);
38277 export function PaymentPurpose_spontaneous_payment(a: number): bigint {
38278 if(!isWasmInitialized) {
38279 throw new Error("initializeWasm() must be awaited first!");
38281 const nativeResponseValue = wasm.TS_PaymentPurpose_spontaneous_payment(a);
38282 return nativeResponseValue;
38284 // bool PaymentPurpose_eq(const struct LDKPaymentPurpose *NONNULL_PTR a, const struct LDKPaymentPurpose *NONNULL_PTR b);
38286 export function PaymentPurpose_eq(a: bigint, b: bigint): boolean {
38287 if(!isWasmInitialized) {
38288 throw new Error("initializeWasm() must be awaited first!");
38290 const nativeResponseValue = wasm.TS_PaymentPurpose_eq(a, b);
38291 return nativeResponseValue;
38293 // struct LDKCVec_u8Z PaymentPurpose_write(const struct LDKPaymentPurpose *NONNULL_PTR obj);
38295 export function PaymentPurpose_write(obj: bigint): number {
38296 if(!isWasmInitialized) {
38297 throw new Error("initializeWasm() must be awaited first!");
38299 const nativeResponseValue = wasm.TS_PaymentPurpose_write(obj);
38300 return nativeResponseValue;
38302 // struct LDKCResult_PaymentPurposeDecodeErrorZ PaymentPurpose_read(struct LDKu8slice ser);
38304 export function PaymentPurpose_read(ser: number): bigint {
38305 if(!isWasmInitialized) {
38306 throw new Error("initializeWasm() must be awaited first!");
38308 const nativeResponseValue = wasm.TS_PaymentPurpose_read(ser);
38309 return nativeResponseValue;
38311 // void PathFailure_free(struct LDKPathFailure this_ptr);
38313 export function PathFailure_free(this_ptr: bigint): void {
38314 if(!isWasmInitialized) {
38315 throw new Error("initializeWasm() must be awaited first!");
38317 const nativeResponseValue = wasm.TS_PathFailure_free(this_ptr);
38318 // debug statements here
38320 // uint64_t PathFailure_clone_ptr(LDKPathFailure *NONNULL_PTR arg);
38322 export function PathFailure_clone_ptr(arg: bigint): bigint {
38323 if(!isWasmInitialized) {
38324 throw new Error("initializeWasm() must be awaited first!");
38326 const nativeResponseValue = wasm.TS_PathFailure_clone_ptr(arg);
38327 return nativeResponseValue;
38329 // struct LDKPathFailure PathFailure_clone(const struct LDKPathFailure *NONNULL_PTR orig);
38331 export function PathFailure_clone(orig: bigint): bigint {
38332 if(!isWasmInitialized) {
38333 throw new Error("initializeWasm() must be awaited first!");
38335 const nativeResponseValue = wasm.TS_PathFailure_clone(orig);
38336 return nativeResponseValue;
38338 // struct LDKPathFailure PathFailure_initial_send(struct LDKAPIError err);
38340 export function PathFailure_initial_send(err: bigint): bigint {
38341 if(!isWasmInitialized) {
38342 throw new Error("initializeWasm() must be awaited first!");
38344 const nativeResponseValue = wasm.TS_PathFailure_initial_send(err);
38345 return nativeResponseValue;
38347 // struct LDKPathFailure PathFailure_on_path(struct LDKCOption_NetworkUpdateZ network_update);
38349 export function PathFailure_on_path(network_update: bigint): bigint {
38350 if(!isWasmInitialized) {
38351 throw new Error("initializeWasm() must be awaited first!");
38353 const nativeResponseValue = wasm.TS_PathFailure_on_path(network_update);
38354 return nativeResponseValue;
38356 // bool PathFailure_eq(const struct LDKPathFailure *NONNULL_PTR a, const struct LDKPathFailure *NONNULL_PTR b);
38358 export function PathFailure_eq(a: bigint, b: bigint): boolean {
38359 if(!isWasmInitialized) {
38360 throw new Error("initializeWasm() must be awaited first!");
38362 const nativeResponseValue = wasm.TS_PathFailure_eq(a, b);
38363 return nativeResponseValue;
38365 // struct LDKCVec_u8Z PathFailure_write(const struct LDKPathFailure *NONNULL_PTR obj);
38367 export function PathFailure_write(obj: bigint): number {
38368 if(!isWasmInitialized) {
38369 throw new Error("initializeWasm() must be awaited first!");
38371 const nativeResponseValue = wasm.TS_PathFailure_write(obj);
38372 return nativeResponseValue;
38374 // struct LDKCResult_COption_PathFailureZDecodeErrorZ PathFailure_read(struct LDKu8slice ser);
38376 export function PathFailure_read(ser: number): bigint {
38377 if(!isWasmInitialized) {
38378 throw new Error("initializeWasm() must be awaited first!");
38380 const nativeResponseValue = wasm.TS_PathFailure_read(ser);
38381 return nativeResponseValue;
38383 // void ClosureReason_free(struct LDKClosureReason this_ptr);
38385 export function ClosureReason_free(this_ptr: bigint): void {
38386 if(!isWasmInitialized) {
38387 throw new Error("initializeWasm() must be awaited first!");
38389 const nativeResponseValue = wasm.TS_ClosureReason_free(this_ptr);
38390 // debug statements here
38392 // uint64_t ClosureReason_clone_ptr(LDKClosureReason *NONNULL_PTR arg);
38394 export function ClosureReason_clone_ptr(arg: bigint): bigint {
38395 if(!isWasmInitialized) {
38396 throw new Error("initializeWasm() must be awaited first!");
38398 const nativeResponseValue = wasm.TS_ClosureReason_clone_ptr(arg);
38399 return nativeResponseValue;
38401 // struct LDKClosureReason ClosureReason_clone(const struct LDKClosureReason *NONNULL_PTR orig);
38403 export function ClosureReason_clone(orig: bigint): bigint {
38404 if(!isWasmInitialized) {
38405 throw new Error("initializeWasm() must be awaited first!");
38407 const nativeResponseValue = wasm.TS_ClosureReason_clone(orig);
38408 return nativeResponseValue;
38410 // struct LDKClosureReason ClosureReason_counterparty_force_closed(struct LDKUntrustedString peer_msg);
38412 export function ClosureReason_counterparty_force_closed(peer_msg: bigint): bigint {
38413 if(!isWasmInitialized) {
38414 throw new Error("initializeWasm() must be awaited first!");
38416 const nativeResponseValue = wasm.TS_ClosureReason_counterparty_force_closed(peer_msg);
38417 return nativeResponseValue;
38419 // struct LDKClosureReason ClosureReason_holder_force_closed(void);
38421 export function ClosureReason_holder_force_closed(): bigint {
38422 if(!isWasmInitialized) {
38423 throw new Error("initializeWasm() must be awaited first!");
38425 const nativeResponseValue = wasm.TS_ClosureReason_holder_force_closed();
38426 return nativeResponseValue;
38428 // struct LDKClosureReason ClosureReason_cooperative_closure(void);
38430 export function ClosureReason_cooperative_closure(): bigint {
38431 if(!isWasmInitialized) {
38432 throw new Error("initializeWasm() must be awaited first!");
38434 const nativeResponseValue = wasm.TS_ClosureReason_cooperative_closure();
38435 return nativeResponseValue;
38437 // struct LDKClosureReason ClosureReason_commitment_tx_confirmed(void);
38439 export function ClosureReason_commitment_tx_confirmed(): bigint {
38440 if(!isWasmInitialized) {
38441 throw new Error("initializeWasm() must be awaited first!");
38443 const nativeResponseValue = wasm.TS_ClosureReason_commitment_tx_confirmed();
38444 return nativeResponseValue;
38446 // struct LDKClosureReason ClosureReason_funding_timed_out(void);
38448 export function ClosureReason_funding_timed_out(): bigint {
38449 if(!isWasmInitialized) {
38450 throw new Error("initializeWasm() must be awaited first!");
38452 const nativeResponseValue = wasm.TS_ClosureReason_funding_timed_out();
38453 return nativeResponseValue;
38455 // struct LDKClosureReason ClosureReason_processing_error(struct LDKStr err);
38457 export function ClosureReason_processing_error(err: number): bigint {
38458 if(!isWasmInitialized) {
38459 throw new Error("initializeWasm() must be awaited first!");
38461 const nativeResponseValue = wasm.TS_ClosureReason_processing_error(err);
38462 return nativeResponseValue;
38464 // struct LDKClosureReason ClosureReason_disconnected_peer(void);
38466 export function ClosureReason_disconnected_peer(): bigint {
38467 if(!isWasmInitialized) {
38468 throw new Error("initializeWasm() must be awaited first!");
38470 const nativeResponseValue = wasm.TS_ClosureReason_disconnected_peer();
38471 return nativeResponseValue;
38473 // struct LDKClosureReason ClosureReason_outdated_channel_manager(void);
38475 export function ClosureReason_outdated_channel_manager(): bigint {
38476 if(!isWasmInitialized) {
38477 throw new Error("initializeWasm() must be awaited first!");
38479 const nativeResponseValue = wasm.TS_ClosureReason_outdated_channel_manager();
38480 return nativeResponseValue;
38482 // bool ClosureReason_eq(const struct LDKClosureReason *NONNULL_PTR a, const struct LDKClosureReason *NONNULL_PTR b);
38484 export function ClosureReason_eq(a: bigint, b: bigint): boolean {
38485 if(!isWasmInitialized) {
38486 throw new Error("initializeWasm() must be awaited first!");
38488 const nativeResponseValue = wasm.TS_ClosureReason_eq(a, b);
38489 return nativeResponseValue;
38491 // struct LDKCVec_u8Z ClosureReason_write(const struct LDKClosureReason *NONNULL_PTR obj);
38493 export function ClosureReason_write(obj: bigint): number {
38494 if(!isWasmInitialized) {
38495 throw new Error("initializeWasm() must be awaited first!");
38497 const nativeResponseValue = wasm.TS_ClosureReason_write(obj);
38498 return nativeResponseValue;
38500 // struct LDKCResult_COption_ClosureReasonZDecodeErrorZ ClosureReason_read(struct LDKu8slice ser);
38502 export function ClosureReason_read(ser: number): bigint {
38503 if(!isWasmInitialized) {
38504 throw new Error("initializeWasm() must be awaited first!");
38506 const nativeResponseValue = wasm.TS_ClosureReason_read(ser);
38507 return nativeResponseValue;
38509 // void HTLCDestination_free(struct LDKHTLCDestination this_ptr);
38511 export function HTLCDestination_free(this_ptr: bigint): void {
38512 if(!isWasmInitialized) {
38513 throw new Error("initializeWasm() must be awaited first!");
38515 const nativeResponseValue = wasm.TS_HTLCDestination_free(this_ptr);
38516 // debug statements here
38518 // uint64_t HTLCDestination_clone_ptr(LDKHTLCDestination *NONNULL_PTR arg);
38520 export function HTLCDestination_clone_ptr(arg: bigint): bigint {
38521 if(!isWasmInitialized) {
38522 throw new Error("initializeWasm() must be awaited first!");
38524 const nativeResponseValue = wasm.TS_HTLCDestination_clone_ptr(arg);
38525 return nativeResponseValue;
38527 // struct LDKHTLCDestination HTLCDestination_clone(const struct LDKHTLCDestination *NONNULL_PTR orig);
38529 export function HTLCDestination_clone(orig: bigint): bigint {
38530 if(!isWasmInitialized) {
38531 throw new Error("initializeWasm() must be awaited first!");
38533 const nativeResponseValue = wasm.TS_HTLCDestination_clone(orig);
38534 return nativeResponseValue;
38536 // struct LDKHTLCDestination HTLCDestination_next_hop_channel(struct LDKPublicKey node_id, struct LDKThirtyTwoBytes channel_id);
38538 export function HTLCDestination_next_hop_channel(node_id: number, channel_id: number): bigint {
38539 if(!isWasmInitialized) {
38540 throw new Error("initializeWasm() must be awaited first!");
38542 const nativeResponseValue = wasm.TS_HTLCDestination_next_hop_channel(node_id, channel_id);
38543 return nativeResponseValue;
38545 // struct LDKHTLCDestination HTLCDestination_unknown_next_hop(uint64_t requested_forward_scid);
38547 export function HTLCDestination_unknown_next_hop(requested_forward_scid: bigint): bigint {
38548 if(!isWasmInitialized) {
38549 throw new Error("initializeWasm() must be awaited first!");
38551 const nativeResponseValue = wasm.TS_HTLCDestination_unknown_next_hop(requested_forward_scid);
38552 return nativeResponseValue;
38554 // struct LDKHTLCDestination HTLCDestination_invalid_forward(uint64_t requested_forward_scid);
38556 export function HTLCDestination_invalid_forward(requested_forward_scid: bigint): bigint {
38557 if(!isWasmInitialized) {
38558 throw new Error("initializeWasm() must be awaited first!");
38560 const nativeResponseValue = wasm.TS_HTLCDestination_invalid_forward(requested_forward_scid);
38561 return nativeResponseValue;
38563 // struct LDKHTLCDestination HTLCDestination_failed_payment(struct LDKThirtyTwoBytes payment_hash);
38565 export function HTLCDestination_failed_payment(payment_hash: number): bigint {
38566 if(!isWasmInitialized) {
38567 throw new Error("initializeWasm() must be awaited first!");
38569 const nativeResponseValue = wasm.TS_HTLCDestination_failed_payment(payment_hash);
38570 return nativeResponseValue;
38572 // bool HTLCDestination_eq(const struct LDKHTLCDestination *NONNULL_PTR a, const struct LDKHTLCDestination *NONNULL_PTR b);
38574 export function HTLCDestination_eq(a: bigint, b: bigint): boolean {
38575 if(!isWasmInitialized) {
38576 throw new Error("initializeWasm() must be awaited first!");
38578 const nativeResponseValue = wasm.TS_HTLCDestination_eq(a, b);
38579 return nativeResponseValue;
38581 // struct LDKCVec_u8Z HTLCDestination_write(const struct LDKHTLCDestination *NONNULL_PTR obj);
38583 export function HTLCDestination_write(obj: bigint): number {
38584 if(!isWasmInitialized) {
38585 throw new Error("initializeWasm() must be awaited first!");
38587 const nativeResponseValue = wasm.TS_HTLCDestination_write(obj);
38588 return nativeResponseValue;
38590 // struct LDKCResult_COption_HTLCDestinationZDecodeErrorZ HTLCDestination_read(struct LDKu8slice ser);
38592 export function HTLCDestination_read(ser: number): bigint {
38593 if(!isWasmInitialized) {
38594 throw new Error("initializeWasm() must be awaited first!");
38596 const nativeResponseValue = wasm.TS_HTLCDestination_read(ser);
38597 return nativeResponseValue;
38599 // enum LDKPaymentFailureReason PaymentFailureReason_clone(const enum LDKPaymentFailureReason *NONNULL_PTR orig);
38601 export function PaymentFailureReason_clone(orig: bigint): PaymentFailureReason {
38602 if(!isWasmInitialized) {
38603 throw new Error("initializeWasm() must be awaited first!");
38605 const nativeResponseValue = wasm.TS_PaymentFailureReason_clone(orig);
38606 return nativeResponseValue;
38608 // enum LDKPaymentFailureReason PaymentFailureReason_recipient_rejected(void);
38610 export function PaymentFailureReason_recipient_rejected(): PaymentFailureReason {
38611 if(!isWasmInitialized) {
38612 throw new Error("initializeWasm() must be awaited first!");
38614 const nativeResponseValue = wasm.TS_PaymentFailureReason_recipient_rejected();
38615 return nativeResponseValue;
38617 // enum LDKPaymentFailureReason PaymentFailureReason_user_abandoned(void);
38619 export function PaymentFailureReason_user_abandoned(): PaymentFailureReason {
38620 if(!isWasmInitialized) {
38621 throw new Error("initializeWasm() must be awaited first!");
38623 const nativeResponseValue = wasm.TS_PaymentFailureReason_user_abandoned();
38624 return nativeResponseValue;
38626 // enum LDKPaymentFailureReason PaymentFailureReason_retries_exhausted(void);
38628 export function PaymentFailureReason_retries_exhausted(): PaymentFailureReason {
38629 if(!isWasmInitialized) {
38630 throw new Error("initializeWasm() must be awaited first!");
38632 const nativeResponseValue = wasm.TS_PaymentFailureReason_retries_exhausted();
38633 return nativeResponseValue;
38635 // enum LDKPaymentFailureReason PaymentFailureReason_payment_expired(void);
38637 export function PaymentFailureReason_payment_expired(): PaymentFailureReason {
38638 if(!isWasmInitialized) {
38639 throw new Error("initializeWasm() must be awaited first!");
38641 const nativeResponseValue = wasm.TS_PaymentFailureReason_payment_expired();
38642 return nativeResponseValue;
38644 // enum LDKPaymentFailureReason PaymentFailureReason_route_not_found(void);
38646 export function PaymentFailureReason_route_not_found(): PaymentFailureReason {
38647 if(!isWasmInitialized) {
38648 throw new Error("initializeWasm() must be awaited first!");
38650 const nativeResponseValue = wasm.TS_PaymentFailureReason_route_not_found();
38651 return nativeResponseValue;
38653 // enum LDKPaymentFailureReason PaymentFailureReason_unexpected_error(void);
38655 export function PaymentFailureReason_unexpected_error(): PaymentFailureReason {
38656 if(!isWasmInitialized) {
38657 throw new Error("initializeWasm() must be awaited first!");
38659 const nativeResponseValue = wasm.TS_PaymentFailureReason_unexpected_error();
38660 return nativeResponseValue;
38662 // bool PaymentFailureReason_eq(const enum LDKPaymentFailureReason *NONNULL_PTR a, const enum LDKPaymentFailureReason *NONNULL_PTR b);
38664 export function PaymentFailureReason_eq(a: bigint, b: bigint): boolean {
38665 if(!isWasmInitialized) {
38666 throw new Error("initializeWasm() must be awaited first!");
38668 const nativeResponseValue = wasm.TS_PaymentFailureReason_eq(a, b);
38669 return nativeResponseValue;
38671 // struct LDKCVec_u8Z PaymentFailureReason_write(const enum LDKPaymentFailureReason *NONNULL_PTR obj);
38673 export function PaymentFailureReason_write(obj: bigint): number {
38674 if(!isWasmInitialized) {
38675 throw new Error("initializeWasm() must be awaited first!");
38677 const nativeResponseValue = wasm.TS_PaymentFailureReason_write(obj);
38678 return nativeResponseValue;
38680 // struct LDKCResult_PaymentFailureReasonDecodeErrorZ PaymentFailureReason_read(struct LDKu8slice ser);
38682 export function PaymentFailureReason_read(ser: number): bigint {
38683 if(!isWasmInitialized) {
38684 throw new Error("initializeWasm() must be awaited first!");
38686 const nativeResponseValue = wasm.TS_PaymentFailureReason_read(ser);
38687 return nativeResponseValue;
38689 // void Event_free(struct LDKEvent this_ptr);
38691 export function Event_free(this_ptr: bigint): void {
38692 if(!isWasmInitialized) {
38693 throw new Error("initializeWasm() must be awaited first!");
38695 const nativeResponseValue = wasm.TS_Event_free(this_ptr);
38696 // debug statements here
38698 // uint64_t Event_clone_ptr(LDKEvent *NONNULL_PTR arg);
38700 export function Event_clone_ptr(arg: bigint): bigint {
38701 if(!isWasmInitialized) {
38702 throw new Error("initializeWasm() must be awaited first!");
38704 const nativeResponseValue = wasm.TS_Event_clone_ptr(arg);
38705 return nativeResponseValue;
38707 // struct LDKEvent Event_clone(const struct LDKEvent *NONNULL_PTR orig);
38709 export function Event_clone(orig: bigint): bigint {
38710 if(!isWasmInitialized) {
38711 throw new Error("initializeWasm() must be awaited first!");
38713 const nativeResponseValue = wasm.TS_Event_clone(orig);
38714 return nativeResponseValue;
38716 // 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);
38718 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 {
38719 if(!isWasmInitialized) {
38720 throw new Error("initializeWasm() must be awaited first!");
38722 const nativeResponseValue = wasm.TS_Event_funding_generation_ready(temporary_channel_id, counterparty_node_id, channel_value_satoshis, output_script, user_channel_id);
38723 return nativeResponseValue;
38725 // struct LDKEvent Event_payment_claimable(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, struct LDKRecipientOnionFields onion_fields, uint64_t amount_msat, struct LDKPaymentPurpose purpose, struct LDKThirtyTwoBytes via_channel_id, struct LDKCOption_u128Z via_user_channel_id, struct LDKCOption_u32Z claim_deadline);
38727 export function Event_payment_claimable(receiver_node_id: number, payment_hash: number, onion_fields: bigint, amount_msat: bigint, purpose: bigint, via_channel_id: number, via_user_channel_id: bigint, claim_deadline: bigint): bigint {
38728 if(!isWasmInitialized) {
38729 throw new Error("initializeWasm() must be awaited first!");
38731 const nativeResponseValue = wasm.TS_Event_payment_claimable(receiver_node_id, payment_hash, onion_fields, amount_msat, purpose, via_channel_id, via_user_channel_id, claim_deadline);
38732 return nativeResponseValue;
38734 // struct LDKEvent Event_payment_claimed(struct LDKPublicKey receiver_node_id, struct LDKThirtyTwoBytes payment_hash, uint64_t amount_msat, struct LDKPaymentPurpose purpose);
38736 export function Event_payment_claimed(receiver_node_id: number, payment_hash: number, amount_msat: bigint, purpose: bigint): bigint {
38737 if(!isWasmInitialized) {
38738 throw new Error("initializeWasm() must be awaited first!");
38740 const nativeResponseValue = wasm.TS_Event_payment_claimed(receiver_node_id, payment_hash, amount_msat, purpose);
38741 return nativeResponseValue;
38743 // struct LDKEvent Event_payment_sent(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_preimage, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u64Z fee_paid_msat);
38745 export function Event_payment_sent(payment_id: number, payment_preimage: number, payment_hash: number, fee_paid_msat: bigint): bigint {
38746 if(!isWasmInitialized) {
38747 throw new Error("initializeWasm() must be awaited first!");
38749 const nativeResponseValue = wasm.TS_Event_payment_sent(payment_id, payment_preimage, payment_hash, fee_paid_msat);
38750 return nativeResponseValue;
38752 // struct LDKEvent Event_payment_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_PaymentFailureReasonZ reason);
38754 export function Event_payment_failed(payment_id: number, payment_hash: number, reason: bigint): bigint {
38755 if(!isWasmInitialized) {
38756 throw new Error("initializeWasm() must be awaited first!");
38758 const nativeResponseValue = wasm.TS_Event_payment_failed(payment_id, payment_hash, reason);
38759 return nativeResponseValue;
38761 // struct LDKEvent Event_payment_path_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path);
38763 export function Event_payment_path_successful(payment_id: number, payment_hash: number, path: bigint): bigint {
38764 if(!isWasmInitialized) {
38765 throw new Error("initializeWasm() must be awaited first!");
38767 const nativeResponseValue = wasm.TS_Event_payment_path_successful(payment_id, payment_hash, path);
38768 return nativeResponseValue;
38770 // struct LDKEvent Event_payment_path_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, bool payment_failed_permanently, struct LDKPathFailure failure, struct LDKPath path, struct LDKCOption_u64Z short_channel_id);
38772 export function Event_payment_path_failed(payment_id: number, payment_hash: number, payment_failed_permanently: boolean, failure: bigint, path: bigint, short_channel_id: bigint): bigint {
38773 if(!isWasmInitialized) {
38774 throw new Error("initializeWasm() must be awaited first!");
38776 const nativeResponseValue = wasm.TS_Event_payment_path_failed(payment_id, payment_hash, payment_failed_permanently, failure, path, short_channel_id);
38777 return nativeResponseValue;
38779 // struct LDKEvent Event_probe_successful(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path);
38781 export function Event_probe_successful(payment_id: number, payment_hash: number, path: bigint): bigint {
38782 if(!isWasmInitialized) {
38783 throw new Error("initializeWasm() must be awaited first!");
38785 const nativeResponseValue = wasm.TS_Event_probe_successful(payment_id, payment_hash, path);
38786 return nativeResponseValue;
38788 // struct LDKEvent Event_probe_failed(struct LDKThirtyTwoBytes payment_id, struct LDKThirtyTwoBytes payment_hash, struct LDKPath path, struct LDKCOption_u64Z short_channel_id);
38790 export function Event_probe_failed(payment_id: number, payment_hash: number, path: bigint, short_channel_id: bigint): bigint {
38791 if(!isWasmInitialized) {
38792 throw new Error("initializeWasm() must be awaited first!");
38794 const nativeResponseValue = wasm.TS_Event_probe_failed(payment_id, payment_hash, path, short_channel_id);
38795 return nativeResponseValue;
38797 // struct LDKEvent Event_pending_htlcs_forwardable(uint64_t time_forwardable);
38799 export function Event_pending_htlcs_forwardable(time_forwardable: bigint): bigint {
38800 if(!isWasmInitialized) {
38801 throw new Error("initializeWasm() must be awaited first!");
38803 const nativeResponseValue = wasm.TS_Event_pending_htlcs_forwardable(time_forwardable);
38804 return nativeResponseValue;
38806 // struct LDKEvent Event_htlcintercepted(struct LDKThirtyTwoBytes intercept_id, uint64_t requested_next_hop_scid, struct LDKThirtyTwoBytes payment_hash, uint64_t inbound_amount_msat, uint64_t expected_outbound_amount_msat);
38808 export function Event_htlcintercepted(intercept_id: number, requested_next_hop_scid: bigint, payment_hash: number, inbound_amount_msat: bigint, expected_outbound_amount_msat: bigint): bigint {
38809 if(!isWasmInitialized) {
38810 throw new Error("initializeWasm() must be awaited first!");
38812 const nativeResponseValue = wasm.TS_Event_htlcintercepted(intercept_id, requested_next_hop_scid, payment_hash, inbound_amount_msat, expected_outbound_amount_msat);
38813 return nativeResponseValue;
38815 // struct LDKEvent Event_spendable_outputs(struct LDKCVec_SpendableOutputDescriptorZ outputs);
38817 export function Event_spendable_outputs(outputs: number): bigint {
38818 if(!isWasmInitialized) {
38819 throw new Error("initializeWasm() must be awaited first!");
38821 const nativeResponseValue = wasm.TS_Event_spendable_outputs(outputs);
38822 return nativeResponseValue;
38824 // struct LDKEvent Event_payment_forwarded(struct LDKThirtyTwoBytes prev_channel_id, struct LDKThirtyTwoBytes next_channel_id, struct LDKCOption_u64Z fee_earned_msat, bool claim_from_onchain_tx, struct LDKCOption_u64Z outbound_amount_forwarded_msat);
38826 export function Event_payment_forwarded(prev_channel_id: number, next_channel_id: number, fee_earned_msat: bigint, claim_from_onchain_tx: boolean, outbound_amount_forwarded_msat: bigint): bigint {
38827 if(!isWasmInitialized) {
38828 throw new Error("initializeWasm() must be awaited first!");
38830 const nativeResponseValue = wasm.TS_Event_payment_forwarded(prev_channel_id, next_channel_id, fee_earned_msat, claim_from_onchain_tx, outbound_amount_forwarded_msat);
38831 return nativeResponseValue;
38833 // struct LDKEvent Event_channel_pending(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKThirtyTwoBytes former_temporary_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKOutPoint funding_txo);
38835 export function Event_channel_pending(channel_id: number, user_channel_id: number, former_temporary_channel_id: number, counterparty_node_id: number, funding_txo: bigint): bigint {
38836 if(!isWasmInitialized) {
38837 throw new Error("initializeWasm() must be awaited first!");
38839 const nativeResponseValue = wasm.TS_Event_channel_pending(channel_id, user_channel_id, former_temporary_channel_id, counterparty_node_id, funding_txo);
38840 return nativeResponseValue;
38842 // struct LDKEvent Event_channel_ready(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKPublicKey counterparty_node_id, struct LDKChannelTypeFeatures channel_type);
38844 export function Event_channel_ready(channel_id: number, user_channel_id: number, counterparty_node_id: number, channel_type: bigint): bigint {
38845 if(!isWasmInitialized) {
38846 throw new Error("initializeWasm() must be awaited first!");
38848 const nativeResponseValue = wasm.TS_Event_channel_ready(channel_id, user_channel_id, counterparty_node_id, channel_type);
38849 return nativeResponseValue;
38851 // struct LDKEvent Event_channel_closed(struct LDKThirtyTwoBytes channel_id, struct LDKU128 user_channel_id, struct LDKClosureReason reason);
38853 export function Event_channel_closed(channel_id: number, user_channel_id: number, reason: bigint): bigint {
38854 if(!isWasmInitialized) {
38855 throw new Error("initializeWasm() must be awaited first!");
38857 const nativeResponseValue = wasm.TS_Event_channel_closed(channel_id, user_channel_id, reason);
38858 return nativeResponseValue;
38860 // struct LDKEvent Event_discard_funding(struct LDKThirtyTwoBytes channel_id, struct LDKTransaction transaction);
38862 export function Event_discard_funding(channel_id: number, transaction: number): bigint {
38863 if(!isWasmInitialized) {
38864 throw new Error("initializeWasm() must be awaited first!");
38866 const nativeResponseValue = wasm.TS_Event_discard_funding(channel_id, transaction);
38867 return nativeResponseValue;
38869 // 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);
38871 export function Event_open_channel_request(temporary_channel_id: number, counterparty_node_id: number, funding_satoshis: bigint, push_msat: bigint, channel_type: bigint): bigint {
38872 if(!isWasmInitialized) {
38873 throw new Error("initializeWasm() must be awaited first!");
38875 const nativeResponseValue = wasm.TS_Event_open_channel_request(temporary_channel_id, counterparty_node_id, funding_satoshis, push_msat, channel_type);
38876 return nativeResponseValue;
38878 // struct LDKEvent Event_htlchandling_failed(struct LDKThirtyTwoBytes prev_channel_id, struct LDKHTLCDestination failed_next_destination);
38880 export function Event_htlchandling_failed(prev_channel_id: number, failed_next_destination: bigint): bigint {
38881 if(!isWasmInitialized) {
38882 throw new Error("initializeWasm() must be awaited first!");
38884 const nativeResponseValue = wasm.TS_Event_htlchandling_failed(prev_channel_id, failed_next_destination);
38885 return nativeResponseValue;
38887 // bool Event_eq(const struct LDKEvent *NONNULL_PTR a, const struct LDKEvent *NONNULL_PTR b);
38889 export function Event_eq(a: bigint, b: bigint): boolean {
38890 if(!isWasmInitialized) {
38891 throw new Error("initializeWasm() must be awaited first!");
38893 const nativeResponseValue = wasm.TS_Event_eq(a, b);
38894 return nativeResponseValue;
38896 // struct LDKCVec_u8Z Event_write(const struct LDKEvent *NONNULL_PTR obj);
38898 export function Event_write(obj: bigint): number {
38899 if(!isWasmInitialized) {
38900 throw new Error("initializeWasm() must be awaited first!");
38902 const nativeResponseValue = wasm.TS_Event_write(obj);
38903 return nativeResponseValue;
38905 // struct LDKCResult_COption_EventZDecodeErrorZ Event_read(struct LDKu8slice ser);
38907 export function Event_read(ser: number): bigint {
38908 if(!isWasmInitialized) {
38909 throw new Error("initializeWasm() must be awaited first!");
38911 const nativeResponseValue = wasm.TS_Event_read(ser);
38912 return nativeResponseValue;
38914 // void MessageSendEvent_free(struct LDKMessageSendEvent this_ptr);
38916 export function MessageSendEvent_free(this_ptr: bigint): void {
38917 if(!isWasmInitialized) {
38918 throw new Error("initializeWasm() must be awaited first!");
38920 const nativeResponseValue = wasm.TS_MessageSendEvent_free(this_ptr);
38921 // debug statements here
38923 // uint64_t MessageSendEvent_clone_ptr(LDKMessageSendEvent *NONNULL_PTR arg);
38925 export function MessageSendEvent_clone_ptr(arg: bigint): bigint {
38926 if(!isWasmInitialized) {
38927 throw new Error("initializeWasm() must be awaited first!");
38929 const nativeResponseValue = wasm.TS_MessageSendEvent_clone_ptr(arg);
38930 return nativeResponseValue;
38932 // struct LDKMessageSendEvent MessageSendEvent_clone(const struct LDKMessageSendEvent *NONNULL_PTR orig);
38934 export function MessageSendEvent_clone(orig: bigint): bigint {
38935 if(!isWasmInitialized) {
38936 throw new Error("initializeWasm() must be awaited first!");
38938 const nativeResponseValue = wasm.TS_MessageSendEvent_clone(orig);
38939 return nativeResponseValue;
38941 // struct LDKMessageSendEvent MessageSendEvent_send_accept_channel(struct LDKPublicKey node_id, struct LDKAcceptChannel msg);
38943 export function MessageSendEvent_send_accept_channel(node_id: number, msg: bigint): bigint {
38944 if(!isWasmInitialized) {
38945 throw new Error("initializeWasm() must be awaited first!");
38947 const nativeResponseValue = wasm.TS_MessageSendEvent_send_accept_channel(node_id, msg);
38948 return nativeResponseValue;
38950 // struct LDKMessageSendEvent MessageSendEvent_send_open_channel(struct LDKPublicKey node_id, struct LDKOpenChannel msg);
38952 export function MessageSendEvent_send_open_channel(node_id: number, msg: bigint): bigint {
38953 if(!isWasmInitialized) {
38954 throw new Error("initializeWasm() must be awaited first!");
38956 const nativeResponseValue = wasm.TS_MessageSendEvent_send_open_channel(node_id, msg);
38957 return nativeResponseValue;
38959 // struct LDKMessageSendEvent MessageSendEvent_send_funding_created(struct LDKPublicKey node_id, struct LDKFundingCreated msg);
38961 export function MessageSendEvent_send_funding_created(node_id: number, msg: bigint): bigint {
38962 if(!isWasmInitialized) {
38963 throw new Error("initializeWasm() must be awaited first!");
38965 const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_created(node_id, msg);
38966 return nativeResponseValue;
38968 // struct LDKMessageSendEvent MessageSendEvent_send_funding_signed(struct LDKPublicKey node_id, struct LDKFundingSigned msg);
38970 export function MessageSendEvent_send_funding_signed(node_id: number, msg: bigint): bigint {
38971 if(!isWasmInitialized) {
38972 throw new Error("initializeWasm() must be awaited first!");
38974 const nativeResponseValue = wasm.TS_MessageSendEvent_send_funding_signed(node_id, msg);
38975 return nativeResponseValue;
38977 // struct LDKMessageSendEvent MessageSendEvent_send_channel_ready(struct LDKPublicKey node_id, struct LDKChannelReady msg);
38979 export function MessageSendEvent_send_channel_ready(node_id: number, msg: bigint): bigint {
38980 if(!isWasmInitialized) {
38981 throw new Error("initializeWasm() must be awaited first!");
38983 const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_ready(node_id, msg);
38984 return nativeResponseValue;
38986 // struct LDKMessageSendEvent MessageSendEvent_send_announcement_signatures(struct LDKPublicKey node_id, struct LDKAnnouncementSignatures msg);
38988 export function MessageSendEvent_send_announcement_signatures(node_id: number, msg: bigint): bigint {
38989 if(!isWasmInitialized) {
38990 throw new Error("initializeWasm() must be awaited first!");
38992 const nativeResponseValue = wasm.TS_MessageSendEvent_send_announcement_signatures(node_id, msg);
38993 return nativeResponseValue;
38995 // struct LDKMessageSendEvent MessageSendEvent_update_htlcs(struct LDKPublicKey node_id, struct LDKCommitmentUpdate updates);
38997 export function MessageSendEvent_update_htlcs(node_id: number, updates: bigint): bigint {
38998 if(!isWasmInitialized) {
38999 throw new Error("initializeWasm() must be awaited first!");
39001 const nativeResponseValue = wasm.TS_MessageSendEvent_update_htlcs(node_id, updates);
39002 return nativeResponseValue;
39004 // struct LDKMessageSendEvent MessageSendEvent_send_revoke_and_ack(struct LDKPublicKey node_id, struct LDKRevokeAndACK msg);
39006 export function MessageSendEvent_send_revoke_and_ack(node_id: number, msg: bigint): bigint {
39007 if(!isWasmInitialized) {
39008 throw new Error("initializeWasm() must be awaited first!");
39010 const nativeResponseValue = wasm.TS_MessageSendEvent_send_revoke_and_ack(node_id, msg);
39011 return nativeResponseValue;
39013 // struct LDKMessageSendEvent MessageSendEvent_send_closing_signed(struct LDKPublicKey node_id, struct LDKClosingSigned msg);
39015 export function MessageSendEvent_send_closing_signed(node_id: number, msg: bigint): bigint {
39016 if(!isWasmInitialized) {
39017 throw new Error("initializeWasm() must be awaited first!");
39019 const nativeResponseValue = wasm.TS_MessageSendEvent_send_closing_signed(node_id, msg);
39020 return nativeResponseValue;
39022 // struct LDKMessageSendEvent MessageSendEvent_send_shutdown(struct LDKPublicKey node_id, struct LDKShutdown msg);
39024 export function MessageSendEvent_send_shutdown(node_id: number, msg: bigint): bigint {
39025 if(!isWasmInitialized) {
39026 throw new Error("initializeWasm() must be awaited first!");
39028 const nativeResponseValue = wasm.TS_MessageSendEvent_send_shutdown(node_id, msg);
39029 return nativeResponseValue;
39031 // struct LDKMessageSendEvent MessageSendEvent_send_channel_reestablish(struct LDKPublicKey node_id, struct LDKChannelReestablish msg);
39033 export function MessageSendEvent_send_channel_reestablish(node_id: number, msg: bigint): bigint {
39034 if(!isWasmInitialized) {
39035 throw new Error("initializeWasm() must be awaited first!");
39037 const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_reestablish(node_id, msg);
39038 return nativeResponseValue;
39040 // struct LDKMessageSendEvent MessageSendEvent_send_channel_announcement(struct LDKPublicKey node_id, struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
39042 export function MessageSendEvent_send_channel_announcement(node_id: number, msg: bigint, update_msg: bigint): bigint {
39043 if(!isWasmInitialized) {
39044 throw new Error("initializeWasm() must be awaited first!");
39046 const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_announcement(node_id, msg, update_msg);
39047 return nativeResponseValue;
39049 // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_announcement(struct LDKChannelAnnouncement msg, struct LDKChannelUpdate update_msg);
39051 export function MessageSendEvent_broadcast_channel_announcement(msg: bigint, update_msg: bigint): bigint {
39052 if(!isWasmInitialized) {
39053 throw new Error("initializeWasm() must be awaited first!");
39055 const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_announcement(msg, update_msg);
39056 return nativeResponseValue;
39058 // struct LDKMessageSendEvent MessageSendEvent_broadcast_channel_update(struct LDKChannelUpdate msg);
39060 export function MessageSendEvent_broadcast_channel_update(msg: bigint): bigint {
39061 if(!isWasmInitialized) {
39062 throw new Error("initializeWasm() must be awaited first!");
39064 const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_channel_update(msg);
39065 return nativeResponseValue;
39067 // struct LDKMessageSendEvent MessageSendEvent_broadcast_node_announcement(struct LDKNodeAnnouncement msg);
39069 export function MessageSendEvent_broadcast_node_announcement(msg: bigint): bigint {
39070 if(!isWasmInitialized) {
39071 throw new Error("initializeWasm() must be awaited first!");
39073 const nativeResponseValue = wasm.TS_MessageSendEvent_broadcast_node_announcement(msg);
39074 return nativeResponseValue;
39076 // struct LDKMessageSendEvent MessageSendEvent_send_channel_update(struct LDKPublicKey node_id, struct LDKChannelUpdate msg);
39078 export function MessageSendEvent_send_channel_update(node_id: number, msg: bigint): bigint {
39079 if(!isWasmInitialized) {
39080 throw new Error("initializeWasm() must be awaited first!");
39082 const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_update(node_id, msg);
39083 return nativeResponseValue;
39085 // struct LDKMessageSendEvent MessageSendEvent_handle_error(struct LDKPublicKey node_id, struct LDKErrorAction action);
39087 export function MessageSendEvent_handle_error(node_id: number, action: bigint): bigint {
39088 if(!isWasmInitialized) {
39089 throw new Error("initializeWasm() must be awaited first!");
39091 const nativeResponseValue = wasm.TS_MessageSendEvent_handle_error(node_id, action);
39092 return nativeResponseValue;
39094 // struct LDKMessageSendEvent MessageSendEvent_send_channel_range_query(struct LDKPublicKey node_id, struct LDKQueryChannelRange msg);
39096 export function MessageSendEvent_send_channel_range_query(node_id: number, msg: bigint): bigint {
39097 if(!isWasmInitialized) {
39098 throw new Error("initializeWasm() must be awaited first!");
39100 const nativeResponseValue = wasm.TS_MessageSendEvent_send_channel_range_query(node_id, msg);
39101 return nativeResponseValue;
39103 // struct LDKMessageSendEvent MessageSendEvent_send_short_ids_query(struct LDKPublicKey node_id, struct LDKQueryShortChannelIds msg);
39105 export function MessageSendEvent_send_short_ids_query(node_id: number, msg: bigint): bigint {
39106 if(!isWasmInitialized) {
39107 throw new Error("initializeWasm() must be awaited first!");
39109 const nativeResponseValue = wasm.TS_MessageSendEvent_send_short_ids_query(node_id, msg);
39110 return nativeResponseValue;
39112 // struct LDKMessageSendEvent MessageSendEvent_send_reply_channel_range(struct LDKPublicKey node_id, struct LDKReplyChannelRange msg);
39114 export function MessageSendEvent_send_reply_channel_range(node_id: number, msg: bigint): bigint {
39115 if(!isWasmInitialized) {
39116 throw new Error("initializeWasm() must be awaited first!");
39118 const nativeResponseValue = wasm.TS_MessageSendEvent_send_reply_channel_range(node_id, msg);
39119 return nativeResponseValue;
39121 // struct LDKMessageSendEvent MessageSendEvent_send_gossip_timestamp_filter(struct LDKPublicKey node_id, struct LDKGossipTimestampFilter msg);
39123 export function MessageSendEvent_send_gossip_timestamp_filter(node_id: number, msg: bigint): bigint {
39124 if(!isWasmInitialized) {
39125 throw new Error("initializeWasm() must be awaited first!");
39127 const nativeResponseValue = wasm.TS_MessageSendEvent_send_gossip_timestamp_filter(node_id, msg);
39128 return nativeResponseValue;
39130 // void MessageSendEventsProvider_free(struct LDKMessageSendEventsProvider this_ptr);
39132 export function MessageSendEventsProvider_free(this_ptr: bigint): void {
39133 if(!isWasmInitialized) {
39134 throw new Error("initializeWasm() must be awaited first!");
39136 const nativeResponseValue = wasm.TS_MessageSendEventsProvider_free(this_ptr);
39137 // debug statements here
39139 // void OnionMessageProvider_free(struct LDKOnionMessageProvider this_ptr);
39141 export function OnionMessageProvider_free(this_ptr: bigint): void {
39142 if(!isWasmInitialized) {
39143 throw new Error("initializeWasm() must be awaited first!");
39145 const nativeResponseValue = wasm.TS_OnionMessageProvider_free(this_ptr);
39146 // debug statements here
39148 // void EventsProvider_free(struct LDKEventsProvider this_ptr);
39150 export function EventsProvider_free(this_ptr: bigint): void {
39151 if(!isWasmInitialized) {
39152 throw new Error("initializeWasm() must be awaited first!");
39154 const nativeResponseValue = wasm.TS_EventsProvider_free(this_ptr);
39155 // debug statements here
39157 // void EventHandler_free(struct LDKEventHandler this_ptr);
39159 export function EventHandler_free(this_ptr: bigint): void {
39160 if(!isWasmInitialized) {
39161 throw new Error("initializeWasm() must be awaited first!");
39163 const nativeResponseValue = wasm.TS_EventHandler_free(this_ptr);
39164 // debug statements here
39166 // void GossipSync_free(struct LDKGossipSync this_ptr);
39168 export function GossipSync_free(this_ptr: bigint): void {
39169 if(!isWasmInitialized) {
39170 throw new Error("initializeWasm() must be awaited first!");
39172 const nativeResponseValue = wasm.TS_GossipSync_free(this_ptr);
39173 // debug statements here
39175 // struct LDKGossipSync GossipSync_p2_p(const struct LDKP2PGossipSync *NONNULL_PTR a);
39177 export function GossipSync_p2_p(a: bigint): bigint {
39178 if(!isWasmInitialized) {
39179 throw new Error("initializeWasm() must be awaited first!");
39181 const nativeResponseValue = wasm.TS_GossipSync_p2_p(a);
39182 return nativeResponseValue;
39184 // struct LDKGossipSync GossipSync_rapid(const struct LDKRapidGossipSync *NONNULL_PTR a);
39186 export function GossipSync_rapid(a: bigint): bigint {
39187 if(!isWasmInitialized) {
39188 throw new Error("initializeWasm() must be awaited first!");
39190 const nativeResponseValue = wasm.TS_GossipSync_rapid(a);
39191 return nativeResponseValue;
39193 // struct LDKGossipSync GossipSync_none(void);
39195 export function GossipSync_none(): bigint {
39196 if(!isWasmInitialized) {
39197 throw new Error("initializeWasm() must be awaited first!");
39199 const nativeResponseValue = wasm.TS_GossipSync_none();
39200 return nativeResponseValue;
39202 // void RapidGossipSync_free(struct LDKRapidGossipSync this_obj);
39204 export function RapidGossipSync_free(this_obj: bigint): void {
39205 if(!isWasmInitialized) {
39206 throw new Error("initializeWasm() must be awaited first!");
39208 const nativeResponseValue = wasm.TS_RapidGossipSync_free(this_obj);
39209 // debug statements here
39211 // MUST_USE_RES struct LDKRapidGossipSync RapidGossipSync_new(const struct LDKNetworkGraph *NONNULL_PTR network_graph, struct LDKLogger logger);
39213 export function RapidGossipSync_new(network_graph: bigint, logger: bigint): bigint {
39214 if(!isWasmInitialized) {
39215 throw new Error("initializeWasm() must be awaited first!");
39217 const nativeResponseValue = wasm.TS_RapidGossipSync_new(network_graph, logger);
39218 return nativeResponseValue;
39220 // MUST_USE_RES struct LDKCResult_u32GraphSyncErrorZ RapidGossipSync_update_network_graph_no_std(const struct LDKRapidGossipSync *NONNULL_PTR this_arg, struct LDKu8slice update_data, struct LDKCOption_u64Z current_time_unix);
39222 export function RapidGossipSync_update_network_graph_no_std(this_arg: bigint, update_data: number, current_time_unix: bigint): bigint {
39223 if(!isWasmInitialized) {
39224 throw new Error("initializeWasm() must be awaited first!");
39226 const nativeResponseValue = wasm.TS_RapidGossipSync_update_network_graph_no_std(this_arg, update_data, current_time_unix);
39227 return nativeResponseValue;
39229 // MUST_USE_RES bool RapidGossipSync_is_initial_sync_complete(const struct LDKRapidGossipSync *NONNULL_PTR this_arg);
39231 export function RapidGossipSync_is_initial_sync_complete(this_arg: bigint): boolean {
39232 if(!isWasmInitialized) {
39233 throw new Error("initializeWasm() must be awaited first!");
39235 const nativeResponseValue = wasm.TS_RapidGossipSync_is_initial_sync_complete(this_arg);
39236 return nativeResponseValue;
39238 // void GraphSyncError_free(struct LDKGraphSyncError this_ptr);
39240 export function GraphSyncError_free(this_ptr: bigint): void {
39241 if(!isWasmInitialized) {
39242 throw new Error("initializeWasm() must be awaited first!");
39244 const nativeResponseValue = wasm.TS_GraphSyncError_free(this_ptr);
39245 // debug statements here
39247 // uint64_t GraphSyncError_clone_ptr(LDKGraphSyncError *NONNULL_PTR arg);
39249 export function GraphSyncError_clone_ptr(arg: bigint): bigint {
39250 if(!isWasmInitialized) {
39251 throw new Error("initializeWasm() must be awaited first!");
39253 const nativeResponseValue = wasm.TS_GraphSyncError_clone_ptr(arg);
39254 return nativeResponseValue;
39256 // struct LDKGraphSyncError GraphSyncError_clone(const struct LDKGraphSyncError *NONNULL_PTR orig);
39258 export function GraphSyncError_clone(orig: bigint): bigint {
39259 if(!isWasmInitialized) {
39260 throw new Error("initializeWasm() must be awaited first!");
39262 const nativeResponseValue = wasm.TS_GraphSyncError_clone(orig);
39263 return nativeResponseValue;
39265 // struct LDKGraphSyncError GraphSyncError_decode_error(struct LDKDecodeError a);
39267 export function GraphSyncError_decode_error(a: bigint): bigint {
39268 if(!isWasmInitialized) {
39269 throw new Error("initializeWasm() must be awaited first!");
39271 const nativeResponseValue = wasm.TS_GraphSyncError_decode_error(a);
39272 return nativeResponseValue;
39274 // struct LDKGraphSyncError GraphSyncError_lightning_error(struct LDKLightningError a);
39276 export function GraphSyncError_lightning_error(a: bigint): bigint {
39277 if(!isWasmInitialized) {
39278 throw new Error("initializeWasm() must be awaited first!");
39280 const nativeResponseValue = wasm.TS_GraphSyncError_lightning_error(a);
39281 return nativeResponseValue;
39283 // void ParseError_free(struct LDKParseError this_ptr);
39285 export function ParseError_free(this_ptr: bigint): void {
39286 if(!isWasmInitialized) {
39287 throw new Error("initializeWasm() must be awaited first!");
39289 const nativeResponseValue = wasm.TS_ParseError_free(this_ptr);
39290 // debug statements here
39292 // uint64_t ParseError_clone_ptr(LDKParseError *NONNULL_PTR arg);
39294 export function ParseError_clone_ptr(arg: bigint): bigint {
39295 if(!isWasmInitialized) {
39296 throw new Error("initializeWasm() must be awaited first!");
39298 const nativeResponseValue = wasm.TS_ParseError_clone_ptr(arg);
39299 return nativeResponseValue;
39301 // struct LDKParseError ParseError_clone(const struct LDKParseError *NONNULL_PTR orig);
39303 export function ParseError_clone(orig: bigint): bigint {
39304 if(!isWasmInitialized) {
39305 throw new Error("initializeWasm() must be awaited first!");
39307 const nativeResponseValue = wasm.TS_ParseError_clone(orig);
39308 return nativeResponseValue;
39310 // struct LDKParseError ParseError_bech32_error(struct LDKBech32Error a);
39312 export function ParseError_bech32_error(a: bigint): bigint {
39313 if(!isWasmInitialized) {
39314 throw new Error("initializeWasm() must be awaited first!");
39316 const nativeResponseValue = wasm.TS_ParseError_bech32_error(a);
39317 return nativeResponseValue;
39319 // struct LDKParseError ParseError_parse_amount_error(struct LDKError a);
39321 export function ParseError_parse_amount_error(a: number): bigint {
39322 if(!isWasmInitialized) {
39323 throw new Error("initializeWasm() must be awaited first!");
39325 const nativeResponseValue = wasm.TS_ParseError_parse_amount_error(a);
39326 return nativeResponseValue;
39328 // struct LDKParseError ParseError_malformed_signature(enum LDKSecp256k1Error a);
39330 export function ParseError_malformed_signature(a: Secp256k1Error): bigint {
39331 if(!isWasmInitialized) {
39332 throw new Error("initializeWasm() must be awaited first!");
39334 const nativeResponseValue = wasm.TS_ParseError_malformed_signature(a);
39335 return nativeResponseValue;
39337 // struct LDKParseError ParseError_bad_prefix(void);
39339 export function ParseError_bad_prefix(): bigint {
39340 if(!isWasmInitialized) {
39341 throw new Error("initializeWasm() must be awaited first!");
39343 const nativeResponseValue = wasm.TS_ParseError_bad_prefix();
39344 return nativeResponseValue;
39346 // struct LDKParseError ParseError_unknown_currency(void);
39348 export function ParseError_unknown_currency(): bigint {
39349 if(!isWasmInitialized) {
39350 throw new Error("initializeWasm() must be awaited first!");
39352 const nativeResponseValue = wasm.TS_ParseError_unknown_currency();
39353 return nativeResponseValue;
39355 // struct LDKParseError ParseError_unknown_si_prefix(void);
39357 export function ParseError_unknown_si_prefix(): bigint {
39358 if(!isWasmInitialized) {
39359 throw new Error("initializeWasm() must be awaited first!");
39361 const nativeResponseValue = wasm.TS_ParseError_unknown_si_prefix();
39362 return nativeResponseValue;
39364 // struct LDKParseError ParseError_malformed_hrp(void);
39366 export function ParseError_malformed_hrp(): bigint {
39367 if(!isWasmInitialized) {
39368 throw new Error("initializeWasm() must be awaited first!");
39370 const nativeResponseValue = wasm.TS_ParseError_malformed_hrp();
39371 return nativeResponseValue;
39373 // struct LDKParseError ParseError_too_short_data_part(void);
39375 export function ParseError_too_short_data_part(): bigint {
39376 if(!isWasmInitialized) {
39377 throw new Error("initializeWasm() must be awaited first!");
39379 const nativeResponseValue = wasm.TS_ParseError_too_short_data_part();
39380 return nativeResponseValue;
39382 // struct LDKParseError ParseError_unexpected_end_of_tagged_fields(void);
39384 export function ParseError_unexpected_end_of_tagged_fields(): bigint {
39385 if(!isWasmInitialized) {
39386 throw new Error("initializeWasm() must be awaited first!");
39388 const nativeResponseValue = wasm.TS_ParseError_unexpected_end_of_tagged_fields();
39389 return nativeResponseValue;
39391 // struct LDKParseError ParseError_description_decode_error(struct LDKError a);
39393 export function ParseError_description_decode_error(a: number): bigint {
39394 if(!isWasmInitialized) {
39395 throw new Error("initializeWasm() must be awaited first!");
39397 const nativeResponseValue = wasm.TS_ParseError_description_decode_error(a);
39398 return nativeResponseValue;
39400 // struct LDKParseError ParseError_padding_error(void);
39402 export function ParseError_padding_error(): bigint {
39403 if(!isWasmInitialized) {
39404 throw new Error("initializeWasm() must be awaited first!");
39406 const nativeResponseValue = wasm.TS_ParseError_padding_error();
39407 return nativeResponseValue;
39409 // struct LDKParseError ParseError_integer_overflow_error(void);
39411 export function ParseError_integer_overflow_error(): bigint {
39412 if(!isWasmInitialized) {
39413 throw new Error("initializeWasm() must be awaited first!");
39415 const nativeResponseValue = wasm.TS_ParseError_integer_overflow_error();
39416 return nativeResponseValue;
39418 // struct LDKParseError ParseError_invalid_seg_wit_program_length(void);
39420 export function ParseError_invalid_seg_wit_program_length(): bigint {
39421 if(!isWasmInitialized) {
39422 throw new Error("initializeWasm() must be awaited first!");
39424 const nativeResponseValue = wasm.TS_ParseError_invalid_seg_wit_program_length();
39425 return nativeResponseValue;
39427 // struct LDKParseError ParseError_invalid_pub_key_hash_length(void);
39429 export function ParseError_invalid_pub_key_hash_length(): bigint {
39430 if(!isWasmInitialized) {
39431 throw new Error("initializeWasm() must be awaited first!");
39433 const nativeResponseValue = wasm.TS_ParseError_invalid_pub_key_hash_length();
39434 return nativeResponseValue;
39436 // struct LDKParseError ParseError_invalid_script_hash_length(void);
39438 export function ParseError_invalid_script_hash_length(): bigint {
39439 if(!isWasmInitialized) {
39440 throw new Error("initializeWasm() must be awaited first!");
39442 const nativeResponseValue = wasm.TS_ParseError_invalid_script_hash_length();
39443 return nativeResponseValue;
39445 // struct LDKParseError ParseError_invalid_recovery_id(void);
39447 export function ParseError_invalid_recovery_id(): bigint {
39448 if(!isWasmInitialized) {
39449 throw new Error("initializeWasm() must be awaited first!");
39451 const nativeResponseValue = wasm.TS_ParseError_invalid_recovery_id();
39452 return nativeResponseValue;
39454 // struct LDKParseError ParseError_invalid_slice_length(struct LDKStr a);
39456 export function ParseError_invalid_slice_length(a: number): bigint {
39457 if(!isWasmInitialized) {
39458 throw new Error("initializeWasm() must be awaited first!");
39460 const nativeResponseValue = wasm.TS_ParseError_invalid_slice_length(a);
39461 return nativeResponseValue;
39463 // struct LDKParseError ParseError_skip(void);
39465 export function ParseError_skip(): bigint {
39466 if(!isWasmInitialized) {
39467 throw new Error("initializeWasm() must be awaited first!");
39469 const nativeResponseValue = wasm.TS_ParseError_skip();
39470 return nativeResponseValue;
39472 // bool ParseError_eq(const struct LDKParseError *NONNULL_PTR a, const struct LDKParseError *NONNULL_PTR b);
39474 export function ParseError_eq(a: bigint, b: bigint): boolean {
39475 if(!isWasmInitialized) {
39476 throw new Error("initializeWasm() must be awaited first!");
39478 const nativeResponseValue = wasm.TS_ParseError_eq(a, b);
39479 return nativeResponseValue;
39481 // void ParseOrSemanticError_free(struct LDKParseOrSemanticError this_ptr);
39483 export function ParseOrSemanticError_free(this_ptr: bigint): void {
39484 if(!isWasmInitialized) {
39485 throw new Error("initializeWasm() must be awaited first!");
39487 const nativeResponseValue = wasm.TS_ParseOrSemanticError_free(this_ptr);
39488 // debug statements here
39490 // uint64_t ParseOrSemanticError_clone_ptr(LDKParseOrSemanticError *NONNULL_PTR arg);
39492 export function ParseOrSemanticError_clone_ptr(arg: bigint): bigint {
39493 if(!isWasmInitialized) {
39494 throw new Error("initializeWasm() must be awaited first!");
39496 const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone_ptr(arg);
39497 return nativeResponseValue;
39499 // struct LDKParseOrSemanticError ParseOrSemanticError_clone(const struct LDKParseOrSemanticError *NONNULL_PTR orig);
39501 export function ParseOrSemanticError_clone(orig: bigint): bigint {
39502 if(!isWasmInitialized) {
39503 throw new Error("initializeWasm() must be awaited first!");
39505 const nativeResponseValue = wasm.TS_ParseOrSemanticError_clone(orig);
39506 return nativeResponseValue;
39508 // struct LDKParseOrSemanticError ParseOrSemanticError_parse_error(struct LDKParseError a);
39510 export function ParseOrSemanticError_parse_error(a: bigint): bigint {
39511 if(!isWasmInitialized) {
39512 throw new Error("initializeWasm() must be awaited first!");
39514 const nativeResponseValue = wasm.TS_ParseOrSemanticError_parse_error(a);
39515 return nativeResponseValue;
39517 // struct LDKParseOrSemanticError ParseOrSemanticError_semantic_error(enum LDKSemanticError a);
39519 export function ParseOrSemanticError_semantic_error(a: SemanticError): bigint {
39520 if(!isWasmInitialized) {
39521 throw new Error("initializeWasm() must be awaited first!");
39523 const nativeResponseValue = wasm.TS_ParseOrSemanticError_semantic_error(a);
39524 return nativeResponseValue;
39526 // bool ParseOrSemanticError_eq(const struct LDKParseOrSemanticError *NONNULL_PTR a, const struct LDKParseOrSemanticError *NONNULL_PTR b);
39528 export function ParseOrSemanticError_eq(a: bigint, b: bigint): boolean {
39529 if(!isWasmInitialized) {
39530 throw new Error("initializeWasm() must be awaited first!");
39532 const nativeResponseValue = wasm.TS_ParseOrSemanticError_eq(a, b);
39533 return nativeResponseValue;
39535 // void Invoice_free(struct LDKInvoice this_obj);
39537 export function Invoice_free(this_obj: bigint): void {
39538 if(!isWasmInitialized) {
39539 throw new Error("initializeWasm() must be awaited first!");
39541 const nativeResponseValue = wasm.TS_Invoice_free(this_obj);
39542 // debug statements here
39544 // bool Invoice_eq(const struct LDKInvoice *NONNULL_PTR a, const struct LDKInvoice *NONNULL_PTR b);
39546 export function Invoice_eq(a: bigint, b: bigint): boolean {
39547 if(!isWasmInitialized) {
39548 throw new Error("initializeWasm() must be awaited first!");
39550 const nativeResponseValue = wasm.TS_Invoice_eq(a, b);
39551 return nativeResponseValue;
39553 // uint64_t Invoice_clone_ptr(LDKInvoice *NONNULL_PTR arg);
39555 export function Invoice_clone_ptr(arg: bigint): bigint {
39556 if(!isWasmInitialized) {
39557 throw new Error("initializeWasm() must be awaited first!");
39559 const nativeResponseValue = wasm.TS_Invoice_clone_ptr(arg);
39560 return nativeResponseValue;
39562 // struct LDKInvoice Invoice_clone(const struct LDKInvoice *NONNULL_PTR orig);
39564 export function Invoice_clone(orig: bigint): bigint {
39565 if(!isWasmInitialized) {
39566 throw new Error("initializeWasm() must be awaited first!");
39568 const nativeResponseValue = wasm.TS_Invoice_clone(orig);
39569 return nativeResponseValue;
39571 // uint64_t Invoice_hash(const struct LDKInvoice *NONNULL_PTR o);
39573 export function Invoice_hash(o: bigint): bigint {
39574 if(!isWasmInitialized) {
39575 throw new Error("initializeWasm() must be awaited first!");
39577 const nativeResponseValue = wasm.TS_Invoice_hash(o);
39578 return nativeResponseValue;
39580 // void SignedRawInvoice_free(struct LDKSignedRawInvoice this_obj);
39582 export function SignedRawInvoice_free(this_obj: bigint): void {
39583 if(!isWasmInitialized) {
39584 throw new Error("initializeWasm() must be awaited first!");
39586 const nativeResponseValue = wasm.TS_SignedRawInvoice_free(this_obj);
39587 // debug statements here
39589 // bool SignedRawInvoice_eq(const struct LDKSignedRawInvoice *NONNULL_PTR a, const struct LDKSignedRawInvoice *NONNULL_PTR b);
39591 export function SignedRawInvoice_eq(a: bigint, b: bigint): boolean {
39592 if(!isWasmInitialized) {
39593 throw new Error("initializeWasm() must be awaited first!");
39595 const nativeResponseValue = wasm.TS_SignedRawInvoice_eq(a, b);
39596 return nativeResponseValue;
39598 // uint64_t SignedRawInvoice_clone_ptr(LDKSignedRawInvoice *NONNULL_PTR arg);
39600 export function SignedRawInvoice_clone_ptr(arg: bigint): bigint {
39601 if(!isWasmInitialized) {
39602 throw new Error("initializeWasm() must be awaited first!");
39604 const nativeResponseValue = wasm.TS_SignedRawInvoice_clone_ptr(arg);
39605 return nativeResponseValue;
39607 // struct LDKSignedRawInvoice SignedRawInvoice_clone(const struct LDKSignedRawInvoice *NONNULL_PTR orig);
39609 export function SignedRawInvoice_clone(orig: bigint): bigint {
39610 if(!isWasmInitialized) {
39611 throw new Error("initializeWasm() must be awaited first!");
39613 const nativeResponseValue = wasm.TS_SignedRawInvoice_clone(orig);
39614 return nativeResponseValue;
39616 // uint64_t SignedRawInvoice_hash(const struct LDKSignedRawInvoice *NONNULL_PTR o);
39618 export function SignedRawInvoice_hash(o: bigint): bigint {
39619 if(!isWasmInitialized) {
39620 throw new Error("initializeWasm() must be awaited first!");
39622 const nativeResponseValue = wasm.TS_SignedRawInvoice_hash(o);
39623 return nativeResponseValue;
39625 // void RawInvoice_free(struct LDKRawInvoice this_obj);
39627 export function RawInvoice_free(this_obj: bigint): void {
39628 if(!isWasmInitialized) {
39629 throw new Error("initializeWasm() must be awaited first!");
39631 const nativeResponseValue = wasm.TS_RawInvoice_free(this_obj);
39632 // debug statements here
39634 // struct LDKRawDataPart RawInvoice_get_data(const struct LDKRawInvoice *NONNULL_PTR this_ptr);
39636 export function RawInvoice_get_data(this_ptr: bigint): bigint {
39637 if(!isWasmInitialized) {
39638 throw new Error("initializeWasm() must be awaited first!");
39640 const nativeResponseValue = wasm.TS_RawInvoice_get_data(this_ptr);
39641 return nativeResponseValue;
39643 // void RawInvoice_set_data(struct LDKRawInvoice *NONNULL_PTR this_ptr, struct LDKRawDataPart val);
39645 export function RawInvoice_set_data(this_ptr: bigint, val: bigint): void {
39646 if(!isWasmInitialized) {
39647 throw new Error("initializeWasm() must be awaited first!");
39649 const nativeResponseValue = wasm.TS_RawInvoice_set_data(this_ptr, val);
39650 // debug statements here
39652 // bool RawInvoice_eq(const struct LDKRawInvoice *NONNULL_PTR a, const struct LDKRawInvoice *NONNULL_PTR b);
39654 export function RawInvoice_eq(a: bigint, b: bigint): boolean {
39655 if(!isWasmInitialized) {
39656 throw new Error("initializeWasm() must be awaited first!");
39658 const nativeResponseValue = wasm.TS_RawInvoice_eq(a, b);
39659 return nativeResponseValue;
39661 // uint64_t RawInvoice_clone_ptr(LDKRawInvoice *NONNULL_PTR arg);
39663 export function RawInvoice_clone_ptr(arg: bigint): bigint {
39664 if(!isWasmInitialized) {
39665 throw new Error("initializeWasm() must be awaited first!");
39667 const nativeResponseValue = wasm.TS_RawInvoice_clone_ptr(arg);
39668 return nativeResponseValue;
39670 // struct LDKRawInvoice RawInvoice_clone(const struct LDKRawInvoice *NONNULL_PTR orig);
39672 export function RawInvoice_clone(orig: bigint): bigint {
39673 if(!isWasmInitialized) {
39674 throw new Error("initializeWasm() must be awaited first!");
39676 const nativeResponseValue = wasm.TS_RawInvoice_clone(orig);
39677 return nativeResponseValue;
39679 // uint64_t RawInvoice_hash(const struct LDKRawInvoice *NONNULL_PTR o);
39681 export function RawInvoice_hash(o: bigint): bigint {
39682 if(!isWasmInitialized) {
39683 throw new Error("initializeWasm() must be awaited first!");
39685 const nativeResponseValue = wasm.TS_RawInvoice_hash(o);
39686 return nativeResponseValue;
39688 // void RawDataPart_free(struct LDKRawDataPart this_obj);
39690 export function RawDataPart_free(this_obj: bigint): void {
39691 if(!isWasmInitialized) {
39692 throw new Error("initializeWasm() must be awaited first!");
39694 const nativeResponseValue = wasm.TS_RawDataPart_free(this_obj);
39695 // debug statements here
39697 // struct LDKPositiveTimestamp RawDataPart_get_timestamp(const struct LDKRawDataPart *NONNULL_PTR this_ptr);
39699 export function RawDataPart_get_timestamp(this_ptr: bigint): bigint {
39700 if(!isWasmInitialized) {
39701 throw new Error("initializeWasm() must be awaited first!");
39703 const nativeResponseValue = wasm.TS_RawDataPart_get_timestamp(this_ptr);
39704 return nativeResponseValue;
39706 // void RawDataPart_set_timestamp(struct LDKRawDataPart *NONNULL_PTR this_ptr, struct LDKPositiveTimestamp val);
39708 export function RawDataPart_set_timestamp(this_ptr: bigint, val: bigint): void {
39709 if(!isWasmInitialized) {
39710 throw new Error("initializeWasm() must be awaited first!");
39712 const nativeResponseValue = wasm.TS_RawDataPart_set_timestamp(this_ptr, val);
39713 // debug statements here
39715 // bool RawDataPart_eq(const struct LDKRawDataPart *NONNULL_PTR a, const struct LDKRawDataPart *NONNULL_PTR b);
39717 export function RawDataPart_eq(a: bigint, b: bigint): boolean {
39718 if(!isWasmInitialized) {
39719 throw new Error("initializeWasm() must be awaited first!");
39721 const nativeResponseValue = wasm.TS_RawDataPart_eq(a, b);
39722 return nativeResponseValue;
39724 // uint64_t RawDataPart_clone_ptr(LDKRawDataPart *NONNULL_PTR arg);
39726 export function RawDataPart_clone_ptr(arg: bigint): bigint {
39727 if(!isWasmInitialized) {
39728 throw new Error("initializeWasm() must be awaited first!");
39730 const nativeResponseValue = wasm.TS_RawDataPart_clone_ptr(arg);
39731 return nativeResponseValue;
39733 // struct LDKRawDataPart RawDataPart_clone(const struct LDKRawDataPart *NONNULL_PTR orig);
39735 export function RawDataPart_clone(orig: bigint): bigint {
39736 if(!isWasmInitialized) {
39737 throw new Error("initializeWasm() must be awaited first!");
39739 const nativeResponseValue = wasm.TS_RawDataPart_clone(orig);
39740 return nativeResponseValue;
39742 // uint64_t RawDataPart_hash(const struct LDKRawDataPart *NONNULL_PTR o);
39744 export function RawDataPart_hash(o: bigint): bigint {
39745 if(!isWasmInitialized) {
39746 throw new Error("initializeWasm() must be awaited first!");
39748 const nativeResponseValue = wasm.TS_RawDataPart_hash(o);
39749 return nativeResponseValue;
39751 // void PositiveTimestamp_free(struct LDKPositiveTimestamp this_obj);
39753 export function PositiveTimestamp_free(this_obj: bigint): void {
39754 if(!isWasmInitialized) {
39755 throw new Error("initializeWasm() must be awaited first!");
39757 const nativeResponseValue = wasm.TS_PositiveTimestamp_free(this_obj);
39758 // debug statements here
39760 // bool PositiveTimestamp_eq(const struct LDKPositiveTimestamp *NONNULL_PTR a, const struct LDKPositiveTimestamp *NONNULL_PTR b);
39762 export function PositiveTimestamp_eq(a: bigint, b: bigint): boolean {
39763 if(!isWasmInitialized) {
39764 throw new Error("initializeWasm() must be awaited first!");
39766 const nativeResponseValue = wasm.TS_PositiveTimestamp_eq(a, b);
39767 return nativeResponseValue;
39769 // uint64_t PositiveTimestamp_clone_ptr(LDKPositiveTimestamp *NONNULL_PTR arg);
39771 export function PositiveTimestamp_clone_ptr(arg: bigint): bigint {
39772 if(!isWasmInitialized) {
39773 throw new Error("initializeWasm() must be awaited first!");
39775 const nativeResponseValue = wasm.TS_PositiveTimestamp_clone_ptr(arg);
39776 return nativeResponseValue;
39778 // struct LDKPositiveTimestamp PositiveTimestamp_clone(const struct LDKPositiveTimestamp *NONNULL_PTR orig);
39780 export function PositiveTimestamp_clone(orig: bigint): bigint {
39781 if(!isWasmInitialized) {
39782 throw new Error("initializeWasm() must be awaited first!");
39784 const nativeResponseValue = wasm.TS_PositiveTimestamp_clone(orig);
39785 return nativeResponseValue;
39787 // uint64_t PositiveTimestamp_hash(const struct LDKPositiveTimestamp *NONNULL_PTR o);
39789 export function PositiveTimestamp_hash(o: bigint): bigint {
39790 if(!isWasmInitialized) {
39791 throw new Error("initializeWasm() must be awaited first!");
39793 const nativeResponseValue = wasm.TS_PositiveTimestamp_hash(o);
39794 return nativeResponseValue;
39796 // enum LDKSiPrefix SiPrefix_clone(const enum LDKSiPrefix *NONNULL_PTR orig);
39798 export function SiPrefix_clone(orig: bigint): SiPrefix {
39799 if(!isWasmInitialized) {
39800 throw new Error("initializeWasm() must be awaited first!");
39802 const nativeResponseValue = wasm.TS_SiPrefix_clone(orig);
39803 return nativeResponseValue;
39805 // enum LDKSiPrefix SiPrefix_milli(void);
39807 export function SiPrefix_milli(): SiPrefix {
39808 if(!isWasmInitialized) {
39809 throw new Error("initializeWasm() must be awaited first!");
39811 const nativeResponseValue = wasm.TS_SiPrefix_milli();
39812 return nativeResponseValue;
39814 // enum LDKSiPrefix SiPrefix_micro(void);
39816 export function SiPrefix_micro(): SiPrefix {
39817 if(!isWasmInitialized) {
39818 throw new Error("initializeWasm() must be awaited first!");
39820 const nativeResponseValue = wasm.TS_SiPrefix_micro();
39821 return nativeResponseValue;
39823 // enum LDKSiPrefix SiPrefix_nano(void);
39825 export function SiPrefix_nano(): SiPrefix {
39826 if(!isWasmInitialized) {
39827 throw new Error("initializeWasm() must be awaited first!");
39829 const nativeResponseValue = wasm.TS_SiPrefix_nano();
39830 return nativeResponseValue;
39832 // enum LDKSiPrefix SiPrefix_pico(void);
39834 export function SiPrefix_pico(): SiPrefix {
39835 if(!isWasmInitialized) {
39836 throw new Error("initializeWasm() must be awaited first!");
39838 const nativeResponseValue = wasm.TS_SiPrefix_pico();
39839 return nativeResponseValue;
39841 // bool SiPrefix_eq(const enum LDKSiPrefix *NONNULL_PTR a, const enum LDKSiPrefix *NONNULL_PTR b);
39843 export function SiPrefix_eq(a: bigint, b: bigint): boolean {
39844 if(!isWasmInitialized) {
39845 throw new Error("initializeWasm() must be awaited first!");
39847 const nativeResponseValue = wasm.TS_SiPrefix_eq(a, b);
39848 return nativeResponseValue;
39850 // uint64_t SiPrefix_hash(const enum LDKSiPrefix *NONNULL_PTR o);
39852 export function SiPrefix_hash(o: bigint): bigint {
39853 if(!isWasmInitialized) {
39854 throw new Error("initializeWasm() must be awaited first!");
39856 const nativeResponseValue = wasm.TS_SiPrefix_hash(o);
39857 return nativeResponseValue;
39859 // MUST_USE_RES uint64_t SiPrefix_multiplier(const enum LDKSiPrefix *NONNULL_PTR this_arg);
39861 export function SiPrefix_multiplier(this_arg: bigint): bigint {
39862 if(!isWasmInitialized) {
39863 throw new Error("initializeWasm() must be awaited first!");
39865 const nativeResponseValue = wasm.TS_SiPrefix_multiplier(this_arg);
39866 return nativeResponseValue;
39868 // enum LDKCurrency Currency_clone(const enum LDKCurrency *NONNULL_PTR orig);
39870 export function Currency_clone(orig: bigint): Currency {
39871 if(!isWasmInitialized) {
39872 throw new Error("initializeWasm() must be awaited first!");
39874 const nativeResponseValue = wasm.TS_Currency_clone(orig);
39875 return nativeResponseValue;
39877 // enum LDKCurrency Currency_bitcoin(void);
39879 export function Currency_bitcoin(): Currency {
39880 if(!isWasmInitialized) {
39881 throw new Error("initializeWasm() must be awaited first!");
39883 const nativeResponseValue = wasm.TS_Currency_bitcoin();
39884 return nativeResponseValue;
39886 // enum LDKCurrency Currency_bitcoin_testnet(void);
39888 export function Currency_bitcoin_testnet(): Currency {
39889 if(!isWasmInitialized) {
39890 throw new Error("initializeWasm() must be awaited first!");
39892 const nativeResponseValue = wasm.TS_Currency_bitcoin_testnet();
39893 return nativeResponseValue;
39895 // enum LDKCurrency Currency_regtest(void);
39897 export function Currency_regtest(): Currency {
39898 if(!isWasmInitialized) {
39899 throw new Error("initializeWasm() must be awaited first!");
39901 const nativeResponseValue = wasm.TS_Currency_regtest();
39902 return nativeResponseValue;
39904 // enum LDKCurrency Currency_simnet(void);
39906 export function Currency_simnet(): Currency {
39907 if(!isWasmInitialized) {
39908 throw new Error("initializeWasm() must be awaited first!");
39910 const nativeResponseValue = wasm.TS_Currency_simnet();
39911 return nativeResponseValue;
39913 // enum LDKCurrency Currency_signet(void);
39915 export function Currency_signet(): Currency {
39916 if(!isWasmInitialized) {
39917 throw new Error("initializeWasm() must be awaited first!");
39919 const nativeResponseValue = wasm.TS_Currency_signet();
39920 return nativeResponseValue;
39922 // uint64_t Currency_hash(const enum LDKCurrency *NONNULL_PTR o);
39924 export function Currency_hash(o: bigint): bigint {
39925 if(!isWasmInitialized) {
39926 throw new Error("initializeWasm() must be awaited first!");
39928 const nativeResponseValue = wasm.TS_Currency_hash(o);
39929 return nativeResponseValue;
39931 // bool Currency_eq(const enum LDKCurrency *NONNULL_PTR a, const enum LDKCurrency *NONNULL_PTR b);
39933 export function Currency_eq(a: bigint, b: bigint): boolean {
39934 if(!isWasmInitialized) {
39935 throw new Error("initializeWasm() must be awaited first!");
39937 const nativeResponseValue = wasm.TS_Currency_eq(a, b);
39938 return nativeResponseValue;
39940 // void Sha256_free(struct LDKSha256 this_obj);
39942 export function Sha256_free(this_obj: bigint): void {
39943 if(!isWasmInitialized) {
39944 throw new Error("initializeWasm() must be awaited first!");
39946 const nativeResponseValue = wasm.TS_Sha256_free(this_obj);
39947 // debug statements here
39949 // uint64_t Sha256_clone_ptr(LDKSha256 *NONNULL_PTR arg);
39951 export function Sha256_clone_ptr(arg: bigint): bigint {
39952 if(!isWasmInitialized) {
39953 throw new Error("initializeWasm() must be awaited first!");
39955 const nativeResponseValue = wasm.TS_Sha256_clone_ptr(arg);
39956 return nativeResponseValue;
39958 // struct LDKSha256 Sha256_clone(const struct LDKSha256 *NONNULL_PTR orig);
39960 export function Sha256_clone(orig: bigint): bigint {
39961 if(!isWasmInitialized) {
39962 throw new Error("initializeWasm() must be awaited first!");
39964 const nativeResponseValue = wasm.TS_Sha256_clone(orig);
39965 return nativeResponseValue;
39967 // uint64_t Sha256_hash(const struct LDKSha256 *NONNULL_PTR o);
39969 export function Sha256_hash(o: bigint): bigint {
39970 if(!isWasmInitialized) {
39971 throw new Error("initializeWasm() must be awaited first!");
39973 const nativeResponseValue = wasm.TS_Sha256_hash(o);
39974 return nativeResponseValue;
39976 // bool Sha256_eq(const struct LDKSha256 *NONNULL_PTR a, const struct LDKSha256 *NONNULL_PTR b);
39978 export function Sha256_eq(a: bigint, b: bigint): boolean {
39979 if(!isWasmInitialized) {
39980 throw new Error("initializeWasm() must be awaited first!");
39982 const nativeResponseValue = wasm.TS_Sha256_eq(a, b);
39983 return nativeResponseValue;
39985 // MUST_USE_RES struct LDKSha256 Sha256_from_bytes(const uint8_t (*bytes)[32]);
39987 export function Sha256_from_bytes(bytes: number): bigint {
39988 if(!isWasmInitialized) {
39989 throw new Error("initializeWasm() must be awaited first!");
39991 const nativeResponseValue = wasm.TS_Sha256_from_bytes(bytes);
39992 return nativeResponseValue;
39994 // void Description_free(struct LDKDescription this_obj);
39996 export function Description_free(this_obj: bigint): void {
39997 if(!isWasmInitialized) {
39998 throw new Error("initializeWasm() must be awaited first!");
40000 const nativeResponseValue = wasm.TS_Description_free(this_obj);
40001 // debug statements here
40003 // uint64_t Description_clone_ptr(LDKDescription *NONNULL_PTR arg);
40005 export function Description_clone_ptr(arg: bigint): bigint {
40006 if(!isWasmInitialized) {
40007 throw new Error("initializeWasm() must be awaited first!");
40009 const nativeResponseValue = wasm.TS_Description_clone_ptr(arg);
40010 return nativeResponseValue;
40012 // struct LDKDescription Description_clone(const struct LDKDescription *NONNULL_PTR orig);
40014 export function Description_clone(orig: bigint): bigint {
40015 if(!isWasmInitialized) {
40016 throw new Error("initializeWasm() must be awaited first!");
40018 const nativeResponseValue = wasm.TS_Description_clone(orig);
40019 return nativeResponseValue;
40021 // uint64_t Description_hash(const struct LDKDescription *NONNULL_PTR o);
40023 export function Description_hash(o: bigint): bigint {
40024 if(!isWasmInitialized) {
40025 throw new Error("initializeWasm() must be awaited first!");
40027 const nativeResponseValue = wasm.TS_Description_hash(o);
40028 return nativeResponseValue;
40030 // bool Description_eq(const struct LDKDescription *NONNULL_PTR a, const struct LDKDescription *NONNULL_PTR b);
40032 export function Description_eq(a: bigint, b: bigint): boolean {
40033 if(!isWasmInitialized) {
40034 throw new Error("initializeWasm() must be awaited first!");
40036 const nativeResponseValue = wasm.TS_Description_eq(a, b);
40037 return nativeResponseValue;
40039 // void PayeePubKey_free(struct LDKPayeePubKey this_obj);
40041 export function PayeePubKey_free(this_obj: bigint): void {
40042 if(!isWasmInitialized) {
40043 throw new Error("initializeWasm() must be awaited first!");
40045 const nativeResponseValue = wasm.TS_PayeePubKey_free(this_obj);
40046 // debug statements here
40048 // struct LDKPublicKey PayeePubKey_get_a(const struct LDKPayeePubKey *NONNULL_PTR this_ptr);
40050 export function PayeePubKey_get_a(this_ptr: bigint): number {
40051 if(!isWasmInitialized) {
40052 throw new Error("initializeWasm() must be awaited first!");
40054 const nativeResponseValue = wasm.TS_PayeePubKey_get_a(this_ptr);
40055 return nativeResponseValue;
40057 // void PayeePubKey_set_a(struct LDKPayeePubKey *NONNULL_PTR this_ptr, struct LDKPublicKey val);
40059 export function PayeePubKey_set_a(this_ptr: bigint, val: number): void {
40060 if(!isWasmInitialized) {
40061 throw new Error("initializeWasm() must be awaited first!");
40063 const nativeResponseValue = wasm.TS_PayeePubKey_set_a(this_ptr, val);
40064 // debug statements here
40066 // MUST_USE_RES struct LDKPayeePubKey PayeePubKey_new(struct LDKPublicKey a_arg);
40068 export function PayeePubKey_new(a_arg: number): bigint {
40069 if(!isWasmInitialized) {
40070 throw new Error("initializeWasm() must be awaited first!");
40072 const nativeResponseValue = wasm.TS_PayeePubKey_new(a_arg);
40073 return nativeResponseValue;
40075 // uint64_t PayeePubKey_clone_ptr(LDKPayeePubKey *NONNULL_PTR arg);
40077 export function PayeePubKey_clone_ptr(arg: bigint): bigint {
40078 if(!isWasmInitialized) {
40079 throw new Error("initializeWasm() must be awaited first!");
40081 const nativeResponseValue = wasm.TS_PayeePubKey_clone_ptr(arg);
40082 return nativeResponseValue;
40084 // struct LDKPayeePubKey PayeePubKey_clone(const struct LDKPayeePubKey *NONNULL_PTR orig);
40086 export function PayeePubKey_clone(orig: bigint): bigint {
40087 if(!isWasmInitialized) {
40088 throw new Error("initializeWasm() must be awaited first!");
40090 const nativeResponseValue = wasm.TS_PayeePubKey_clone(orig);
40091 return nativeResponseValue;
40093 // uint64_t PayeePubKey_hash(const struct LDKPayeePubKey *NONNULL_PTR o);
40095 export function PayeePubKey_hash(o: bigint): bigint {
40096 if(!isWasmInitialized) {
40097 throw new Error("initializeWasm() must be awaited first!");
40099 const nativeResponseValue = wasm.TS_PayeePubKey_hash(o);
40100 return nativeResponseValue;
40102 // bool PayeePubKey_eq(const struct LDKPayeePubKey *NONNULL_PTR a, const struct LDKPayeePubKey *NONNULL_PTR b);
40104 export function PayeePubKey_eq(a: bigint, b: bigint): boolean {
40105 if(!isWasmInitialized) {
40106 throw new Error("initializeWasm() must be awaited first!");
40108 const nativeResponseValue = wasm.TS_PayeePubKey_eq(a, b);
40109 return nativeResponseValue;
40111 // void ExpiryTime_free(struct LDKExpiryTime this_obj);
40113 export function ExpiryTime_free(this_obj: bigint): void {
40114 if(!isWasmInitialized) {
40115 throw new Error("initializeWasm() must be awaited first!");
40117 const nativeResponseValue = wasm.TS_ExpiryTime_free(this_obj);
40118 // debug statements here
40120 // uint64_t ExpiryTime_clone_ptr(LDKExpiryTime *NONNULL_PTR arg);
40122 export function ExpiryTime_clone_ptr(arg: bigint): bigint {
40123 if(!isWasmInitialized) {
40124 throw new Error("initializeWasm() must be awaited first!");
40126 const nativeResponseValue = wasm.TS_ExpiryTime_clone_ptr(arg);
40127 return nativeResponseValue;
40129 // struct LDKExpiryTime ExpiryTime_clone(const struct LDKExpiryTime *NONNULL_PTR orig);
40131 export function ExpiryTime_clone(orig: bigint): bigint {
40132 if(!isWasmInitialized) {
40133 throw new Error("initializeWasm() must be awaited first!");
40135 const nativeResponseValue = wasm.TS_ExpiryTime_clone(orig);
40136 return nativeResponseValue;
40138 // uint64_t ExpiryTime_hash(const struct LDKExpiryTime *NONNULL_PTR o);
40140 export function ExpiryTime_hash(o: bigint): bigint {
40141 if(!isWasmInitialized) {
40142 throw new Error("initializeWasm() must be awaited first!");
40144 const nativeResponseValue = wasm.TS_ExpiryTime_hash(o);
40145 return nativeResponseValue;
40147 // bool ExpiryTime_eq(const struct LDKExpiryTime *NONNULL_PTR a, const struct LDKExpiryTime *NONNULL_PTR b);
40149 export function ExpiryTime_eq(a: bigint, b: bigint): boolean {
40150 if(!isWasmInitialized) {
40151 throw new Error("initializeWasm() must be awaited first!");
40153 const nativeResponseValue = wasm.TS_ExpiryTime_eq(a, b);
40154 return nativeResponseValue;
40156 // void MinFinalCltvExpiryDelta_free(struct LDKMinFinalCltvExpiryDelta this_obj);
40158 export function MinFinalCltvExpiryDelta_free(this_obj: bigint): void {
40159 if(!isWasmInitialized) {
40160 throw new Error("initializeWasm() must be awaited first!");
40162 const nativeResponseValue = wasm.TS_MinFinalCltvExpiryDelta_free(this_obj);
40163 // debug statements here
40165 // uint64_t MinFinalCltvExpiryDelta_get_a(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr);
40167 export function MinFinalCltvExpiryDelta_get_a(this_ptr: bigint): bigint {
40168 if(!isWasmInitialized) {
40169 throw new Error("initializeWasm() must be awaited first!");
40171 const nativeResponseValue = wasm.TS_MinFinalCltvExpiryDelta_get_a(this_ptr);
40172 return nativeResponseValue;
40174 // void MinFinalCltvExpiryDelta_set_a(struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR this_ptr, uint64_t val);
40176 export function MinFinalCltvExpiryDelta_set_a(this_ptr: bigint, val: bigint): void {
40177 if(!isWasmInitialized) {
40178 throw new Error("initializeWasm() must be awaited first!");
40180 const nativeResponseValue = wasm.TS_MinFinalCltvExpiryDelta_set_a(this_ptr, val);
40181 // debug statements here
40183 // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_new(uint64_t a_arg);
40185 export function MinFinalCltvExpiryDelta_new(a_arg: bigint): bigint {
40186 if(!isWasmInitialized) {
40187 throw new Error("initializeWasm() must be awaited first!");
40189 const nativeResponseValue = wasm.TS_MinFinalCltvExpiryDelta_new(a_arg);
40190 return nativeResponseValue;
40192 // uint64_t MinFinalCltvExpiryDelta_clone_ptr(LDKMinFinalCltvExpiryDelta *NONNULL_PTR arg);
40194 export function MinFinalCltvExpiryDelta_clone_ptr(arg: bigint): bigint {
40195 if(!isWasmInitialized) {
40196 throw new Error("initializeWasm() must be awaited first!");
40198 const nativeResponseValue = wasm.TS_MinFinalCltvExpiryDelta_clone_ptr(arg);
40199 return nativeResponseValue;
40201 // struct LDKMinFinalCltvExpiryDelta MinFinalCltvExpiryDelta_clone(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR orig);
40203 export function MinFinalCltvExpiryDelta_clone(orig: bigint): bigint {
40204 if(!isWasmInitialized) {
40205 throw new Error("initializeWasm() must be awaited first!");
40207 const nativeResponseValue = wasm.TS_MinFinalCltvExpiryDelta_clone(orig);
40208 return nativeResponseValue;
40210 // uint64_t MinFinalCltvExpiryDelta_hash(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR o);
40212 export function MinFinalCltvExpiryDelta_hash(o: bigint): bigint {
40213 if(!isWasmInitialized) {
40214 throw new Error("initializeWasm() must be awaited first!");
40216 const nativeResponseValue = wasm.TS_MinFinalCltvExpiryDelta_hash(o);
40217 return nativeResponseValue;
40219 // bool MinFinalCltvExpiryDelta_eq(const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR a, const struct LDKMinFinalCltvExpiryDelta *NONNULL_PTR b);
40221 export function MinFinalCltvExpiryDelta_eq(a: bigint, b: bigint): boolean {
40222 if(!isWasmInitialized) {
40223 throw new Error("initializeWasm() must be awaited first!");
40225 const nativeResponseValue = wasm.TS_MinFinalCltvExpiryDelta_eq(a, b);
40226 return nativeResponseValue;
40228 // void Fallback_free(struct LDKFallback this_ptr);
40230 export function Fallback_free(this_ptr: bigint): void {
40231 if(!isWasmInitialized) {
40232 throw new Error("initializeWasm() must be awaited first!");
40234 const nativeResponseValue = wasm.TS_Fallback_free(this_ptr);
40235 // debug statements here
40237 // uint64_t Fallback_clone_ptr(LDKFallback *NONNULL_PTR arg);
40239 export function Fallback_clone_ptr(arg: bigint): bigint {
40240 if(!isWasmInitialized) {
40241 throw new Error("initializeWasm() must be awaited first!");
40243 const nativeResponseValue = wasm.TS_Fallback_clone_ptr(arg);
40244 return nativeResponseValue;
40246 // struct LDKFallback Fallback_clone(const struct LDKFallback *NONNULL_PTR orig);
40248 export function Fallback_clone(orig: bigint): bigint {
40249 if(!isWasmInitialized) {
40250 throw new Error("initializeWasm() must be awaited first!");
40252 const nativeResponseValue = wasm.TS_Fallback_clone(orig);
40253 return nativeResponseValue;
40255 // struct LDKFallback Fallback_seg_wit_program(struct LDKWitnessVersion version, struct LDKCVec_u8Z program);
40257 export function Fallback_seg_wit_program(version: number, program: number): bigint {
40258 if(!isWasmInitialized) {
40259 throw new Error("initializeWasm() must be awaited first!");
40261 const nativeResponseValue = wasm.TS_Fallback_seg_wit_program(version, program);
40262 return nativeResponseValue;
40264 // struct LDKFallback Fallback_pub_key_hash(struct LDKTwentyBytes a);
40266 export function Fallback_pub_key_hash(a: number): bigint {
40267 if(!isWasmInitialized) {
40268 throw new Error("initializeWasm() must be awaited first!");
40270 const nativeResponseValue = wasm.TS_Fallback_pub_key_hash(a);
40271 return nativeResponseValue;
40273 // struct LDKFallback Fallback_script_hash(struct LDKTwentyBytes a);
40275 export function Fallback_script_hash(a: number): bigint {
40276 if(!isWasmInitialized) {
40277 throw new Error("initializeWasm() must be awaited first!");
40279 const nativeResponseValue = wasm.TS_Fallback_script_hash(a);
40280 return nativeResponseValue;
40282 // uint64_t Fallback_hash(const struct LDKFallback *NONNULL_PTR o);
40284 export function Fallback_hash(o: bigint): bigint {
40285 if(!isWasmInitialized) {
40286 throw new Error("initializeWasm() must be awaited first!");
40288 const nativeResponseValue = wasm.TS_Fallback_hash(o);
40289 return nativeResponseValue;
40291 // bool Fallback_eq(const struct LDKFallback *NONNULL_PTR a, const struct LDKFallback *NONNULL_PTR b);
40293 export function Fallback_eq(a: bigint, b: bigint): boolean {
40294 if(!isWasmInitialized) {
40295 throw new Error("initializeWasm() must be awaited first!");
40297 const nativeResponseValue = wasm.TS_Fallback_eq(a, b);
40298 return nativeResponseValue;
40300 // void InvoiceSignature_free(struct LDKInvoiceSignature this_obj);
40302 export function InvoiceSignature_free(this_obj: bigint): void {
40303 if(!isWasmInitialized) {
40304 throw new Error("initializeWasm() must be awaited first!");
40306 const nativeResponseValue = wasm.TS_InvoiceSignature_free(this_obj);
40307 // debug statements here
40309 // uint64_t InvoiceSignature_clone_ptr(LDKInvoiceSignature *NONNULL_PTR arg);
40311 export function InvoiceSignature_clone_ptr(arg: bigint): bigint {
40312 if(!isWasmInitialized) {
40313 throw new Error("initializeWasm() must be awaited first!");
40315 const nativeResponseValue = wasm.TS_InvoiceSignature_clone_ptr(arg);
40316 return nativeResponseValue;
40318 // struct LDKInvoiceSignature InvoiceSignature_clone(const struct LDKInvoiceSignature *NONNULL_PTR orig);
40320 export function InvoiceSignature_clone(orig: bigint): bigint {
40321 if(!isWasmInitialized) {
40322 throw new Error("initializeWasm() must be awaited first!");
40324 const nativeResponseValue = wasm.TS_InvoiceSignature_clone(orig);
40325 return nativeResponseValue;
40327 // uint64_t InvoiceSignature_hash(const struct LDKInvoiceSignature *NONNULL_PTR o);
40329 export function InvoiceSignature_hash(o: bigint): bigint {
40330 if(!isWasmInitialized) {
40331 throw new Error("initializeWasm() must be awaited first!");
40333 const nativeResponseValue = wasm.TS_InvoiceSignature_hash(o);
40334 return nativeResponseValue;
40336 // bool InvoiceSignature_eq(const struct LDKInvoiceSignature *NONNULL_PTR a, const struct LDKInvoiceSignature *NONNULL_PTR b);
40338 export function InvoiceSignature_eq(a: bigint, b: bigint): boolean {
40339 if(!isWasmInitialized) {
40340 throw new Error("initializeWasm() must be awaited first!");
40342 const nativeResponseValue = wasm.TS_InvoiceSignature_eq(a, b);
40343 return nativeResponseValue;
40345 // void PrivateRoute_free(struct LDKPrivateRoute this_obj);
40347 export function PrivateRoute_free(this_obj: bigint): void {
40348 if(!isWasmInitialized) {
40349 throw new Error("initializeWasm() must be awaited first!");
40351 const nativeResponseValue = wasm.TS_PrivateRoute_free(this_obj);
40352 // debug statements here
40354 // uint64_t PrivateRoute_clone_ptr(LDKPrivateRoute *NONNULL_PTR arg);
40356 export function PrivateRoute_clone_ptr(arg: bigint): bigint {
40357 if(!isWasmInitialized) {
40358 throw new Error("initializeWasm() must be awaited first!");
40360 const nativeResponseValue = wasm.TS_PrivateRoute_clone_ptr(arg);
40361 return nativeResponseValue;
40363 // struct LDKPrivateRoute PrivateRoute_clone(const struct LDKPrivateRoute *NONNULL_PTR orig);
40365 export function PrivateRoute_clone(orig: bigint): bigint {
40366 if(!isWasmInitialized) {
40367 throw new Error("initializeWasm() must be awaited first!");
40369 const nativeResponseValue = wasm.TS_PrivateRoute_clone(orig);
40370 return nativeResponseValue;
40372 // uint64_t PrivateRoute_hash(const struct LDKPrivateRoute *NONNULL_PTR o);
40374 export function PrivateRoute_hash(o: bigint): bigint {
40375 if(!isWasmInitialized) {
40376 throw new Error("initializeWasm() must be awaited first!");
40378 const nativeResponseValue = wasm.TS_PrivateRoute_hash(o);
40379 return nativeResponseValue;
40381 // bool PrivateRoute_eq(const struct LDKPrivateRoute *NONNULL_PTR a, const struct LDKPrivateRoute *NONNULL_PTR b);
40383 export function PrivateRoute_eq(a: bigint, b: bigint): boolean {
40384 if(!isWasmInitialized) {
40385 throw new Error("initializeWasm() must be awaited first!");
40387 const nativeResponseValue = wasm.TS_PrivateRoute_eq(a, b);
40388 return nativeResponseValue;
40390 // MUST_USE_RES struct LDKC3Tuple_RawInvoice_u832InvoiceSignatureZ SignedRawInvoice_into_parts(struct LDKSignedRawInvoice this_arg);
40392 export function SignedRawInvoice_into_parts(this_arg: bigint): bigint {
40393 if(!isWasmInitialized) {
40394 throw new Error("initializeWasm() must be awaited first!");
40396 const nativeResponseValue = wasm.TS_SignedRawInvoice_into_parts(this_arg);
40397 return nativeResponseValue;
40399 // MUST_USE_RES struct LDKRawInvoice SignedRawInvoice_raw_invoice(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
40401 export function SignedRawInvoice_raw_invoice(this_arg: bigint): bigint {
40402 if(!isWasmInitialized) {
40403 throw new Error("initializeWasm() must be awaited first!");
40405 const nativeResponseValue = wasm.TS_SignedRawInvoice_raw_invoice(this_arg);
40406 return nativeResponseValue;
40408 // MUST_USE_RES const uint8_t (*SignedRawInvoice_signable_hash(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg))[32];
40410 export function SignedRawInvoice_signable_hash(this_arg: bigint): number {
40411 if(!isWasmInitialized) {
40412 throw new Error("initializeWasm() must be awaited first!");
40414 const nativeResponseValue = wasm.TS_SignedRawInvoice_signable_hash(this_arg);
40415 return nativeResponseValue;
40417 // MUST_USE_RES struct LDKInvoiceSignature SignedRawInvoice_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
40419 export function SignedRawInvoice_signature(this_arg: bigint): bigint {
40420 if(!isWasmInitialized) {
40421 throw new Error("initializeWasm() must be awaited first!");
40423 const nativeResponseValue = wasm.TS_SignedRawInvoice_signature(this_arg);
40424 return nativeResponseValue;
40426 // MUST_USE_RES struct LDKCResult_PayeePubKeyErrorZ SignedRawInvoice_recover_payee_pub_key(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
40428 export function SignedRawInvoice_recover_payee_pub_key(this_arg: bigint): bigint {
40429 if(!isWasmInitialized) {
40430 throw new Error("initializeWasm() must be awaited first!");
40432 const nativeResponseValue = wasm.TS_SignedRawInvoice_recover_payee_pub_key(this_arg);
40433 return nativeResponseValue;
40435 // MUST_USE_RES bool SignedRawInvoice_check_signature(const struct LDKSignedRawInvoice *NONNULL_PTR this_arg);
40437 export function SignedRawInvoice_check_signature(this_arg: bigint): boolean {
40438 if(!isWasmInitialized) {
40439 throw new Error("initializeWasm() must be awaited first!");
40441 const nativeResponseValue = wasm.TS_SignedRawInvoice_check_signature(this_arg);
40442 return nativeResponseValue;
40444 // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_signable_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40446 export function RawInvoice_signable_hash(this_arg: bigint): number {
40447 if(!isWasmInitialized) {
40448 throw new Error("initializeWasm() must be awaited first!");
40450 const nativeResponseValue = wasm.TS_RawInvoice_signable_hash(this_arg);
40451 return nativeResponseValue;
40453 // MUST_USE_RES struct LDKSha256 RawInvoice_payment_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40455 export function RawInvoice_payment_hash(this_arg: bigint): bigint {
40456 if(!isWasmInitialized) {
40457 throw new Error("initializeWasm() must be awaited first!");
40459 const nativeResponseValue = wasm.TS_RawInvoice_payment_hash(this_arg);
40460 return nativeResponseValue;
40462 // MUST_USE_RES struct LDKDescription RawInvoice_description(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40464 export function RawInvoice_description(this_arg: bigint): bigint {
40465 if(!isWasmInitialized) {
40466 throw new Error("initializeWasm() must be awaited first!");
40468 const nativeResponseValue = wasm.TS_RawInvoice_description(this_arg);
40469 return nativeResponseValue;
40471 // MUST_USE_RES struct LDKPayeePubKey RawInvoice_payee_pub_key(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40473 export function RawInvoice_payee_pub_key(this_arg: bigint): bigint {
40474 if(!isWasmInitialized) {
40475 throw new Error("initializeWasm() must be awaited first!");
40477 const nativeResponseValue = wasm.TS_RawInvoice_payee_pub_key(this_arg);
40478 return nativeResponseValue;
40480 // MUST_USE_RES struct LDKSha256 RawInvoice_description_hash(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40482 export function RawInvoice_description_hash(this_arg: bigint): bigint {
40483 if(!isWasmInitialized) {
40484 throw new Error("initializeWasm() must be awaited first!");
40486 const nativeResponseValue = wasm.TS_RawInvoice_description_hash(this_arg);
40487 return nativeResponseValue;
40489 // MUST_USE_RES struct LDKExpiryTime RawInvoice_expiry_time(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40491 export function RawInvoice_expiry_time(this_arg: bigint): bigint {
40492 if(!isWasmInitialized) {
40493 throw new Error("initializeWasm() must be awaited first!");
40495 const nativeResponseValue = wasm.TS_RawInvoice_expiry_time(this_arg);
40496 return nativeResponseValue;
40498 // MUST_USE_RES struct LDKMinFinalCltvExpiryDelta RawInvoice_min_final_cltv_expiry_delta(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40500 export function RawInvoice_min_final_cltv_expiry_delta(this_arg: bigint): bigint {
40501 if(!isWasmInitialized) {
40502 throw new Error("initializeWasm() must be awaited first!");
40504 const nativeResponseValue = wasm.TS_RawInvoice_min_final_cltv_expiry_delta(this_arg);
40505 return nativeResponseValue;
40507 // MUST_USE_RES struct LDKThirtyTwoBytes RawInvoice_payment_secret(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40509 export function RawInvoice_payment_secret(this_arg: bigint): number {
40510 if(!isWasmInitialized) {
40511 throw new Error("initializeWasm() must be awaited first!");
40513 const nativeResponseValue = wasm.TS_RawInvoice_payment_secret(this_arg);
40514 return nativeResponseValue;
40516 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ RawInvoice_payment_metadata(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40518 export function RawInvoice_payment_metadata(this_arg: bigint): bigint {
40519 if(!isWasmInitialized) {
40520 throw new Error("initializeWasm() must be awaited first!");
40522 const nativeResponseValue = wasm.TS_RawInvoice_payment_metadata(this_arg);
40523 return nativeResponseValue;
40525 // MUST_USE_RES struct LDKInvoiceFeatures RawInvoice_features(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40527 export function RawInvoice_features(this_arg: bigint): bigint {
40528 if(!isWasmInitialized) {
40529 throw new Error("initializeWasm() must be awaited first!");
40531 const nativeResponseValue = wasm.TS_RawInvoice_features(this_arg);
40532 return nativeResponseValue;
40534 // MUST_USE_RES struct LDKCVec_PrivateRouteZ RawInvoice_private_routes(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40536 export function RawInvoice_private_routes(this_arg: bigint): number {
40537 if(!isWasmInitialized) {
40538 throw new Error("initializeWasm() must be awaited first!");
40540 const nativeResponseValue = wasm.TS_RawInvoice_private_routes(this_arg);
40541 return nativeResponseValue;
40543 // MUST_USE_RES struct LDKCOption_u64Z RawInvoice_amount_pico_btc(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40545 export function RawInvoice_amount_pico_btc(this_arg: bigint): bigint {
40546 if(!isWasmInitialized) {
40547 throw new Error("initializeWasm() must be awaited first!");
40549 const nativeResponseValue = wasm.TS_RawInvoice_amount_pico_btc(this_arg);
40550 return nativeResponseValue;
40552 // MUST_USE_RES enum LDKCurrency RawInvoice_currency(const struct LDKRawInvoice *NONNULL_PTR this_arg);
40554 export function RawInvoice_currency(this_arg: bigint): Currency {
40555 if(!isWasmInitialized) {
40556 throw new Error("initializeWasm() must be awaited first!");
40558 const nativeResponseValue = wasm.TS_RawInvoice_currency(this_arg);
40559 return nativeResponseValue;
40561 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_unix_timestamp(uint64_t unix_seconds);
40563 export function PositiveTimestamp_from_unix_timestamp(unix_seconds: bigint): bigint {
40564 if(!isWasmInitialized) {
40565 throw new Error("initializeWasm() must be awaited first!");
40567 const nativeResponseValue = wasm.TS_PositiveTimestamp_from_unix_timestamp(unix_seconds);
40568 return nativeResponseValue;
40570 // MUST_USE_RES struct LDKCResult_PositiveTimestampCreationErrorZ PositiveTimestamp_from_duration_since_epoch(uint64_t duration);
40572 export function PositiveTimestamp_from_duration_since_epoch(duration: bigint): bigint {
40573 if(!isWasmInitialized) {
40574 throw new Error("initializeWasm() must be awaited first!");
40576 const nativeResponseValue = wasm.TS_PositiveTimestamp_from_duration_since_epoch(duration);
40577 return nativeResponseValue;
40579 // MUST_USE_RES uint64_t PositiveTimestamp_as_unix_timestamp(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
40581 export function PositiveTimestamp_as_unix_timestamp(this_arg: bigint): bigint {
40582 if(!isWasmInitialized) {
40583 throw new Error("initializeWasm() must be awaited first!");
40585 const nativeResponseValue = wasm.TS_PositiveTimestamp_as_unix_timestamp(this_arg);
40586 return nativeResponseValue;
40588 // MUST_USE_RES uint64_t PositiveTimestamp_as_duration_since_epoch(const struct LDKPositiveTimestamp *NONNULL_PTR this_arg);
40590 export function PositiveTimestamp_as_duration_since_epoch(this_arg: bigint): bigint {
40591 if(!isWasmInitialized) {
40592 throw new Error("initializeWasm() must be awaited first!");
40594 const nativeResponseValue = wasm.TS_PositiveTimestamp_as_duration_since_epoch(this_arg);
40595 return nativeResponseValue;
40597 // MUST_USE_RES struct LDKThirtyTwoBytes Invoice_signable_hash(const struct LDKInvoice *NONNULL_PTR this_arg);
40599 export function Invoice_signable_hash(this_arg: bigint): number {
40600 if(!isWasmInitialized) {
40601 throw new Error("initializeWasm() must be awaited first!");
40603 const nativeResponseValue = wasm.TS_Invoice_signable_hash(this_arg);
40604 return nativeResponseValue;
40606 // MUST_USE_RES struct LDKSignedRawInvoice Invoice_into_signed_raw(struct LDKInvoice this_arg);
40608 export function Invoice_into_signed_raw(this_arg: bigint): bigint {
40609 if(!isWasmInitialized) {
40610 throw new Error("initializeWasm() must be awaited first!");
40612 const nativeResponseValue = wasm.TS_Invoice_into_signed_raw(this_arg);
40613 return nativeResponseValue;
40615 // MUST_USE_RES struct LDKCResult_NoneSemanticErrorZ Invoice_check_signature(const struct LDKInvoice *NONNULL_PTR this_arg);
40617 export function Invoice_check_signature(this_arg: bigint): bigint {
40618 if(!isWasmInitialized) {
40619 throw new Error("initializeWasm() must be awaited first!");
40621 const nativeResponseValue = wasm.TS_Invoice_check_signature(this_arg);
40622 return nativeResponseValue;
40624 // MUST_USE_RES struct LDKCResult_InvoiceSemanticErrorZ Invoice_from_signed(struct LDKSignedRawInvoice signed_invoice);
40626 export function Invoice_from_signed(signed_invoice: bigint): bigint {
40627 if(!isWasmInitialized) {
40628 throw new Error("initializeWasm() must be awaited first!");
40630 const nativeResponseValue = wasm.TS_Invoice_from_signed(signed_invoice);
40631 return nativeResponseValue;
40633 // MUST_USE_RES uint64_t Invoice_duration_since_epoch(const struct LDKInvoice *NONNULL_PTR this_arg);
40635 export function Invoice_duration_since_epoch(this_arg: bigint): bigint {
40636 if(!isWasmInitialized) {
40637 throw new Error("initializeWasm() must be awaited first!");
40639 const nativeResponseValue = wasm.TS_Invoice_duration_since_epoch(this_arg);
40640 return nativeResponseValue;
40642 // MUST_USE_RES const uint8_t (*Invoice_payment_hash(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
40644 export function Invoice_payment_hash(this_arg: bigint): number {
40645 if(!isWasmInitialized) {
40646 throw new Error("initializeWasm() must be awaited first!");
40648 const nativeResponseValue = wasm.TS_Invoice_payment_hash(this_arg);
40649 return nativeResponseValue;
40651 // MUST_USE_RES struct LDKPublicKey Invoice_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
40653 export function Invoice_payee_pub_key(this_arg: bigint): number {
40654 if(!isWasmInitialized) {
40655 throw new Error("initializeWasm() must be awaited first!");
40657 const nativeResponseValue = wasm.TS_Invoice_payee_pub_key(this_arg);
40658 return nativeResponseValue;
40660 // MUST_USE_RES const uint8_t (*Invoice_payment_secret(const struct LDKInvoice *NONNULL_PTR this_arg))[32];
40662 export function Invoice_payment_secret(this_arg: bigint): number {
40663 if(!isWasmInitialized) {
40664 throw new Error("initializeWasm() must be awaited first!");
40666 const nativeResponseValue = wasm.TS_Invoice_payment_secret(this_arg);
40667 return nativeResponseValue;
40669 // MUST_USE_RES struct LDKCOption_CVec_u8ZZ Invoice_payment_metadata(const struct LDKInvoice *NONNULL_PTR this_arg);
40671 export function Invoice_payment_metadata(this_arg: bigint): bigint {
40672 if(!isWasmInitialized) {
40673 throw new Error("initializeWasm() must be awaited first!");
40675 const nativeResponseValue = wasm.TS_Invoice_payment_metadata(this_arg);
40676 return nativeResponseValue;
40678 // MUST_USE_RES struct LDKInvoiceFeatures Invoice_features(const struct LDKInvoice *NONNULL_PTR this_arg);
40680 export function Invoice_features(this_arg: bigint): bigint {
40681 if(!isWasmInitialized) {
40682 throw new Error("initializeWasm() must be awaited first!");
40684 const nativeResponseValue = wasm.TS_Invoice_features(this_arg);
40685 return nativeResponseValue;
40687 // MUST_USE_RES struct LDKPublicKey Invoice_recover_payee_pub_key(const struct LDKInvoice *NONNULL_PTR this_arg);
40689 export function Invoice_recover_payee_pub_key(this_arg: bigint): number {
40690 if(!isWasmInitialized) {
40691 throw new Error("initializeWasm() must be awaited first!");
40693 const nativeResponseValue = wasm.TS_Invoice_recover_payee_pub_key(this_arg);
40694 return nativeResponseValue;
40696 // MUST_USE_RES struct LDKCOption_DurationZ Invoice_expires_at(const struct LDKInvoice *NONNULL_PTR this_arg);
40698 export function Invoice_expires_at(this_arg: bigint): bigint {
40699 if(!isWasmInitialized) {
40700 throw new Error("initializeWasm() must be awaited first!");
40702 const nativeResponseValue = wasm.TS_Invoice_expires_at(this_arg);
40703 return nativeResponseValue;
40705 // MUST_USE_RES uint64_t Invoice_expiry_time(const struct LDKInvoice *NONNULL_PTR this_arg);
40707 export function Invoice_expiry_time(this_arg: bigint): bigint {
40708 if(!isWasmInitialized) {
40709 throw new Error("initializeWasm() must be awaited first!");
40711 const nativeResponseValue = wasm.TS_Invoice_expiry_time(this_arg);
40712 return nativeResponseValue;
40714 // MUST_USE_RES uint64_t Invoice_expiration_remaining_from_epoch(const struct LDKInvoice *NONNULL_PTR this_arg, uint64_t time);
40716 export function Invoice_expiration_remaining_from_epoch(this_arg: bigint, time: bigint): bigint {
40717 if(!isWasmInitialized) {
40718 throw new Error("initializeWasm() must be awaited first!");
40720 const nativeResponseValue = wasm.TS_Invoice_expiration_remaining_from_epoch(this_arg, time);
40721 return nativeResponseValue;
40723 // MUST_USE_RES bool Invoice_would_expire(const struct LDKInvoice *NONNULL_PTR this_arg, uint64_t at_time);
40725 export function Invoice_would_expire(this_arg: bigint, at_time: bigint): boolean {
40726 if(!isWasmInitialized) {
40727 throw new Error("initializeWasm() must be awaited first!");
40729 const nativeResponseValue = wasm.TS_Invoice_would_expire(this_arg, at_time);
40730 return nativeResponseValue;
40732 // MUST_USE_RES uint64_t Invoice_min_final_cltv_expiry_delta(const struct LDKInvoice *NONNULL_PTR this_arg);
40734 export function Invoice_min_final_cltv_expiry_delta(this_arg: bigint): bigint {
40735 if(!isWasmInitialized) {
40736 throw new Error("initializeWasm() must be awaited first!");
40738 const nativeResponseValue = wasm.TS_Invoice_min_final_cltv_expiry_delta(this_arg);
40739 return nativeResponseValue;
40741 // MUST_USE_RES struct LDKCVec_AddressZ Invoice_fallback_addresses(const struct LDKInvoice *NONNULL_PTR this_arg);
40743 export function Invoice_fallback_addresses(this_arg: bigint): number {
40744 if(!isWasmInitialized) {
40745 throw new Error("initializeWasm() must be awaited first!");
40747 const nativeResponseValue = wasm.TS_Invoice_fallback_addresses(this_arg);
40748 return nativeResponseValue;
40750 // MUST_USE_RES struct LDKCVec_PrivateRouteZ Invoice_private_routes(const struct LDKInvoice *NONNULL_PTR this_arg);
40752 export function Invoice_private_routes(this_arg: bigint): number {
40753 if(!isWasmInitialized) {
40754 throw new Error("initializeWasm() must be awaited first!");
40756 const nativeResponseValue = wasm.TS_Invoice_private_routes(this_arg);
40757 return nativeResponseValue;
40759 // MUST_USE_RES struct LDKCVec_RouteHintZ Invoice_route_hints(const struct LDKInvoice *NONNULL_PTR this_arg);
40761 export function Invoice_route_hints(this_arg: bigint): number {
40762 if(!isWasmInitialized) {
40763 throw new Error("initializeWasm() must be awaited first!");
40765 const nativeResponseValue = wasm.TS_Invoice_route_hints(this_arg);
40766 return nativeResponseValue;
40768 // MUST_USE_RES enum LDKCurrency Invoice_currency(const struct LDKInvoice *NONNULL_PTR this_arg);
40770 export function Invoice_currency(this_arg: bigint): Currency {
40771 if(!isWasmInitialized) {
40772 throw new Error("initializeWasm() must be awaited first!");
40774 const nativeResponseValue = wasm.TS_Invoice_currency(this_arg);
40775 return nativeResponseValue;
40777 // MUST_USE_RES struct LDKCOption_u64Z Invoice_amount_milli_satoshis(const struct LDKInvoice *NONNULL_PTR this_arg);
40779 export function Invoice_amount_milli_satoshis(this_arg: bigint): bigint {
40780 if(!isWasmInitialized) {
40781 throw new Error("initializeWasm() must be awaited first!");
40783 const nativeResponseValue = wasm.TS_Invoice_amount_milli_satoshis(this_arg);
40784 return nativeResponseValue;
40786 // MUST_USE_RES struct LDKCResult_DescriptionCreationErrorZ Description_new(struct LDKStr description);
40788 export function Description_new(description: number): bigint {
40789 if(!isWasmInitialized) {
40790 throw new Error("initializeWasm() must be awaited first!");
40792 const nativeResponseValue = wasm.TS_Description_new(description);
40793 return nativeResponseValue;
40795 // MUST_USE_RES struct LDKStr Description_into_inner(struct LDKDescription this_arg);
40797 export function Description_into_inner(this_arg: bigint): number {
40798 if(!isWasmInitialized) {
40799 throw new Error("initializeWasm() must be awaited first!");
40801 const nativeResponseValue = wasm.TS_Description_into_inner(this_arg);
40802 return nativeResponseValue;
40804 // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_seconds(uint64_t seconds);
40806 export function ExpiryTime_from_seconds(seconds: bigint): bigint {
40807 if(!isWasmInitialized) {
40808 throw new Error("initializeWasm() must be awaited first!");
40810 const nativeResponseValue = wasm.TS_ExpiryTime_from_seconds(seconds);
40811 return nativeResponseValue;
40813 // MUST_USE_RES struct LDKExpiryTime ExpiryTime_from_duration(uint64_t duration);
40815 export function ExpiryTime_from_duration(duration: bigint): bigint {
40816 if(!isWasmInitialized) {
40817 throw new Error("initializeWasm() must be awaited first!");
40819 const nativeResponseValue = wasm.TS_ExpiryTime_from_duration(duration);
40820 return nativeResponseValue;
40822 // MUST_USE_RES uint64_t ExpiryTime_as_seconds(const struct LDKExpiryTime *NONNULL_PTR this_arg);
40824 export function ExpiryTime_as_seconds(this_arg: bigint): bigint {
40825 if(!isWasmInitialized) {
40826 throw new Error("initializeWasm() must be awaited first!");
40828 const nativeResponseValue = wasm.TS_ExpiryTime_as_seconds(this_arg);
40829 return nativeResponseValue;
40831 // MUST_USE_RES uint64_t ExpiryTime_as_duration(const struct LDKExpiryTime *NONNULL_PTR this_arg);
40833 export function ExpiryTime_as_duration(this_arg: bigint): bigint {
40834 if(!isWasmInitialized) {
40835 throw new Error("initializeWasm() must be awaited first!");
40837 const nativeResponseValue = wasm.TS_ExpiryTime_as_duration(this_arg);
40838 return nativeResponseValue;
40840 // MUST_USE_RES struct LDKCResult_PrivateRouteCreationErrorZ PrivateRoute_new(struct LDKRouteHint hops);
40842 export function PrivateRoute_new(hops: bigint): bigint {
40843 if(!isWasmInitialized) {
40844 throw new Error("initializeWasm() must be awaited first!");
40846 const nativeResponseValue = wasm.TS_PrivateRoute_new(hops);
40847 return nativeResponseValue;
40849 // MUST_USE_RES struct LDKRouteHint PrivateRoute_into_inner(struct LDKPrivateRoute this_arg);
40851 export function PrivateRoute_into_inner(this_arg: bigint): bigint {
40852 if(!isWasmInitialized) {
40853 throw new Error("initializeWasm() must be awaited first!");
40855 const nativeResponseValue = wasm.TS_PrivateRoute_into_inner(this_arg);
40856 return nativeResponseValue;
40858 // enum LDKCreationError CreationError_clone(const enum LDKCreationError *NONNULL_PTR orig);
40860 export function CreationError_clone(orig: bigint): CreationError {
40861 if(!isWasmInitialized) {
40862 throw new Error("initializeWasm() must be awaited first!");
40864 const nativeResponseValue = wasm.TS_CreationError_clone(orig);
40865 return nativeResponseValue;
40867 // enum LDKCreationError CreationError_description_too_long(void);
40869 export function CreationError_description_too_long(): CreationError {
40870 if(!isWasmInitialized) {
40871 throw new Error("initializeWasm() must be awaited first!");
40873 const nativeResponseValue = wasm.TS_CreationError_description_too_long();
40874 return nativeResponseValue;
40876 // enum LDKCreationError CreationError_route_too_long(void);
40878 export function CreationError_route_too_long(): CreationError {
40879 if(!isWasmInitialized) {
40880 throw new Error("initializeWasm() must be awaited first!");
40882 const nativeResponseValue = wasm.TS_CreationError_route_too_long();
40883 return nativeResponseValue;
40885 // enum LDKCreationError CreationError_timestamp_out_of_bounds(void);
40887 export function CreationError_timestamp_out_of_bounds(): CreationError {
40888 if(!isWasmInitialized) {
40889 throw new Error("initializeWasm() must be awaited first!");
40891 const nativeResponseValue = wasm.TS_CreationError_timestamp_out_of_bounds();
40892 return nativeResponseValue;
40894 // enum LDKCreationError CreationError_invalid_amount(void);
40896 export function CreationError_invalid_amount(): CreationError {
40897 if(!isWasmInitialized) {
40898 throw new Error("initializeWasm() must be awaited first!");
40900 const nativeResponseValue = wasm.TS_CreationError_invalid_amount();
40901 return nativeResponseValue;
40903 // enum LDKCreationError CreationError_missing_route_hints(void);
40905 export function CreationError_missing_route_hints(): CreationError {
40906 if(!isWasmInitialized) {
40907 throw new Error("initializeWasm() must be awaited first!");
40909 const nativeResponseValue = wasm.TS_CreationError_missing_route_hints();
40910 return nativeResponseValue;
40912 // enum LDKCreationError CreationError_min_final_cltv_expiry_delta_too_short(void);
40914 export function CreationError_min_final_cltv_expiry_delta_too_short(): CreationError {
40915 if(!isWasmInitialized) {
40916 throw new Error("initializeWasm() must be awaited first!");
40918 const nativeResponseValue = wasm.TS_CreationError_min_final_cltv_expiry_delta_too_short();
40919 return nativeResponseValue;
40921 // bool CreationError_eq(const enum LDKCreationError *NONNULL_PTR a, const enum LDKCreationError *NONNULL_PTR b);
40923 export function CreationError_eq(a: bigint, b: bigint): boolean {
40924 if(!isWasmInitialized) {
40925 throw new Error("initializeWasm() must be awaited first!");
40927 const nativeResponseValue = wasm.TS_CreationError_eq(a, b);
40928 return nativeResponseValue;
40930 // struct LDKStr CreationError_to_str(const enum LDKCreationError *NONNULL_PTR o);
40932 export function CreationError_to_str(o: bigint): number {
40933 if(!isWasmInitialized) {
40934 throw new Error("initializeWasm() must be awaited first!");
40936 const nativeResponseValue = wasm.TS_CreationError_to_str(o);
40937 return nativeResponseValue;
40939 // enum LDKSemanticError SemanticError_clone(const enum LDKSemanticError *NONNULL_PTR orig);
40941 export function SemanticError_clone(orig: bigint): SemanticError {
40942 if(!isWasmInitialized) {
40943 throw new Error("initializeWasm() must be awaited first!");
40945 const nativeResponseValue = wasm.TS_SemanticError_clone(orig);
40946 return nativeResponseValue;
40948 // enum LDKSemanticError SemanticError_no_payment_hash(void);
40950 export function SemanticError_no_payment_hash(): SemanticError {
40951 if(!isWasmInitialized) {
40952 throw new Error("initializeWasm() must be awaited first!");
40954 const nativeResponseValue = wasm.TS_SemanticError_no_payment_hash();
40955 return nativeResponseValue;
40957 // enum LDKSemanticError SemanticError_multiple_payment_hashes(void);
40959 export function SemanticError_multiple_payment_hashes(): SemanticError {
40960 if(!isWasmInitialized) {
40961 throw new Error("initializeWasm() must be awaited first!");
40963 const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_hashes();
40964 return nativeResponseValue;
40966 // enum LDKSemanticError SemanticError_no_description(void);
40968 export function SemanticError_no_description(): SemanticError {
40969 if(!isWasmInitialized) {
40970 throw new Error("initializeWasm() must be awaited first!");
40972 const nativeResponseValue = wasm.TS_SemanticError_no_description();
40973 return nativeResponseValue;
40975 // enum LDKSemanticError SemanticError_multiple_descriptions(void);
40977 export function SemanticError_multiple_descriptions(): SemanticError {
40978 if(!isWasmInitialized) {
40979 throw new Error("initializeWasm() must be awaited first!");
40981 const nativeResponseValue = wasm.TS_SemanticError_multiple_descriptions();
40982 return nativeResponseValue;
40984 // enum LDKSemanticError SemanticError_no_payment_secret(void);
40986 export function SemanticError_no_payment_secret(): SemanticError {
40987 if(!isWasmInitialized) {
40988 throw new Error("initializeWasm() must be awaited first!");
40990 const nativeResponseValue = wasm.TS_SemanticError_no_payment_secret();
40991 return nativeResponseValue;
40993 // enum LDKSemanticError SemanticError_multiple_payment_secrets(void);
40995 export function SemanticError_multiple_payment_secrets(): SemanticError {
40996 if(!isWasmInitialized) {
40997 throw new Error("initializeWasm() must be awaited first!");
40999 const nativeResponseValue = wasm.TS_SemanticError_multiple_payment_secrets();
41000 return nativeResponseValue;
41002 // enum LDKSemanticError SemanticError_invalid_features(void);
41004 export function SemanticError_invalid_features(): SemanticError {
41005 if(!isWasmInitialized) {
41006 throw new Error("initializeWasm() must be awaited first!");
41008 const nativeResponseValue = wasm.TS_SemanticError_invalid_features();
41009 return nativeResponseValue;
41011 // enum LDKSemanticError SemanticError_invalid_recovery_id(void);
41013 export function SemanticError_invalid_recovery_id(): SemanticError {
41014 if(!isWasmInitialized) {
41015 throw new Error("initializeWasm() must be awaited first!");
41017 const nativeResponseValue = wasm.TS_SemanticError_invalid_recovery_id();
41018 return nativeResponseValue;
41020 // enum LDKSemanticError SemanticError_invalid_signature(void);
41022 export function SemanticError_invalid_signature(): SemanticError {
41023 if(!isWasmInitialized) {
41024 throw new Error("initializeWasm() must be awaited first!");
41026 const nativeResponseValue = wasm.TS_SemanticError_invalid_signature();
41027 return nativeResponseValue;
41029 // enum LDKSemanticError SemanticError_imprecise_amount(void);
41031 export function SemanticError_imprecise_amount(): SemanticError {
41032 if(!isWasmInitialized) {
41033 throw new Error("initializeWasm() must be awaited first!");
41035 const nativeResponseValue = wasm.TS_SemanticError_imprecise_amount();
41036 return nativeResponseValue;
41038 // bool SemanticError_eq(const enum LDKSemanticError *NONNULL_PTR a, const enum LDKSemanticError *NONNULL_PTR b);
41040 export function SemanticError_eq(a: bigint, b: bigint): boolean {
41041 if(!isWasmInitialized) {
41042 throw new Error("initializeWasm() must be awaited first!");
41044 const nativeResponseValue = wasm.TS_SemanticError_eq(a, b);
41045 return nativeResponseValue;
41047 // struct LDKStr SemanticError_to_str(const enum LDKSemanticError *NONNULL_PTR o);
41049 export function SemanticError_to_str(o: bigint): number {
41050 if(!isWasmInitialized) {
41051 throw new Error("initializeWasm() must be awaited first!");
41053 const nativeResponseValue = wasm.TS_SemanticError_to_str(o);
41054 return nativeResponseValue;
41056 // void SignOrCreationError_free(struct LDKSignOrCreationError this_ptr);
41058 export function SignOrCreationError_free(this_ptr: bigint): void {
41059 if(!isWasmInitialized) {
41060 throw new Error("initializeWasm() must be awaited first!");
41062 const nativeResponseValue = wasm.TS_SignOrCreationError_free(this_ptr);
41063 // debug statements here
41065 // uint64_t SignOrCreationError_clone_ptr(LDKSignOrCreationError *NONNULL_PTR arg);
41067 export function SignOrCreationError_clone_ptr(arg: bigint): bigint {
41068 if(!isWasmInitialized) {
41069 throw new Error("initializeWasm() must be awaited first!");
41071 const nativeResponseValue = wasm.TS_SignOrCreationError_clone_ptr(arg);
41072 return nativeResponseValue;
41074 // struct LDKSignOrCreationError SignOrCreationError_clone(const struct LDKSignOrCreationError *NONNULL_PTR orig);
41076 export function SignOrCreationError_clone(orig: bigint): bigint {
41077 if(!isWasmInitialized) {
41078 throw new Error("initializeWasm() must be awaited first!");
41080 const nativeResponseValue = wasm.TS_SignOrCreationError_clone(orig);
41081 return nativeResponseValue;
41083 // struct LDKSignOrCreationError SignOrCreationError_sign_error(void);
41085 export function SignOrCreationError_sign_error(): bigint {
41086 if(!isWasmInitialized) {
41087 throw new Error("initializeWasm() must be awaited first!");
41089 const nativeResponseValue = wasm.TS_SignOrCreationError_sign_error();
41090 return nativeResponseValue;
41092 // struct LDKSignOrCreationError SignOrCreationError_creation_error(enum LDKCreationError a);
41094 export function SignOrCreationError_creation_error(a: CreationError): bigint {
41095 if(!isWasmInitialized) {
41096 throw new Error("initializeWasm() must be awaited first!");
41098 const nativeResponseValue = wasm.TS_SignOrCreationError_creation_error(a);
41099 return nativeResponseValue;
41101 // bool SignOrCreationError_eq(const struct LDKSignOrCreationError *NONNULL_PTR a, const struct LDKSignOrCreationError *NONNULL_PTR b);
41103 export function SignOrCreationError_eq(a: bigint, b: bigint): boolean {
41104 if(!isWasmInitialized) {
41105 throw new Error("initializeWasm() must be awaited first!");
41107 const nativeResponseValue = wasm.TS_SignOrCreationError_eq(a, b);
41108 return nativeResponseValue;
41110 // struct LDKStr SignOrCreationError_to_str(const struct LDKSignOrCreationError *NONNULL_PTR o);
41112 export function SignOrCreationError_to_str(o: bigint): number {
41113 if(!isWasmInitialized) {
41114 throw new Error("initializeWasm() must be awaited first!");
41116 const nativeResponseValue = wasm.TS_SignOrCreationError_to_str(o);
41117 return nativeResponseValue;
41119 // struct LDKCResult_PaymentIdPaymentErrorZ pay_invoice(const struct LDKInvoice *NONNULL_PTR invoice, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
41121 export function pay_invoice(invoice: bigint, retry_strategy: bigint, channelmanager: bigint): bigint {
41122 if(!isWasmInitialized) {
41123 throw new Error("initializeWasm() must be awaited first!");
41125 const nativeResponseValue = wasm.TS_pay_invoice(invoice, retry_strategy, channelmanager);
41126 return nativeResponseValue;
41128 // struct LDKCResult_NonePaymentErrorZ pay_invoice_with_id(const struct LDKInvoice *NONNULL_PTR invoice, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
41130 export function pay_invoice_with_id(invoice: bigint, payment_id: number, retry_strategy: bigint, channelmanager: bigint): bigint {
41131 if(!isWasmInitialized) {
41132 throw new Error("initializeWasm() must be awaited first!");
41134 const nativeResponseValue = wasm.TS_pay_invoice_with_id(invoice, payment_id, retry_strategy, channelmanager);
41135 return nativeResponseValue;
41137 // struct LDKCResult_PaymentIdPaymentErrorZ pay_zero_value_invoice(const struct LDKInvoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
41139 export function pay_zero_value_invoice(invoice: bigint, amount_msats: bigint, retry_strategy: bigint, channelmanager: bigint): bigint {
41140 if(!isWasmInitialized) {
41141 throw new Error("initializeWasm() must be awaited first!");
41143 const nativeResponseValue = wasm.TS_pay_zero_value_invoice(invoice, amount_msats, retry_strategy, channelmanager);
41144 return nativeResponseValue;
41146 // struct LDKCResult_NonePaymentErrorZ pay_zero_value_invoice_with_id(const struct LDKInvoice *NONNULL_PTR invoice, uint64_t amount_msats, struct LDKThirtyTwoBytes payment_id, struct LDKRetry retry_strategy, const struct LDKChannelManager *NONNULL_PTR channelmanager);
41148 export function pay_zero_value_invoice_with_id(invoice: bigint, amount_msats: bigint, payment_id: number, retry_strategy: bigint, channelmanager: bigint): bigint {
41149 if(!isWasmInitialized) {
41150 throw new Error("initializeWasm() must be awaited first!");
41152 const nativeResponseValue = wasm.TS_pay_zero_value_invoice_with_id(invoice, amount_msats, payment_id, retry_strategy, channelmanager);
41153 return nativeResponseValue;
41155 // void PaymentError_free(struct LDKPaymentError this_ptr);
41157 export function PaymentError_free(this_ptr: bigint): void {
41158 if(!isWasmInitialized) {
41159 throw new Error("initializeWasm() must be awaited first!");
41161 const nativeResponseValue = wasm.TS_PaymentError_free(this_ptr);
41162 // debug statements here
41164 // uint64_t PaymentError_clone_ptr(LDKPaymentError *NONNULL_PTR arg);
41166 export function PaymentError_clone_ptr(arg: bigint): bigint {
41167 if(!isWasmInitialized) {
41168 throw new Error("initializeWasm() must be awaited first!");
41170 const nativeResponseValue = wasm.TS_PaymentError_clone_ptr(arg);
41171 return nativeResponseValue;
41173 // struct LDKPaymentError PaymentError_clone(const struct LDKPaymentError *NONNULL_PTR orig);
41175 export function PaymentError_clone(orig: bigint): bigint {
41176 if(!isWasmInitialized) {
41177 throw new Error("initializeWasm() must be awaited first!");
41179 const nativeResponseValue = wasm.TS_PaymentError_clone(orig);
41180 return nativeResponseValue;
41182 // struct LDKPaymentError PaymentError_invoice(struct LDKStr a);
41184 export function PaymentError_invoice(a: number): bigint {
41185 if(!isWasmInitialized) {
41186 throw new Error("initializeWasm() must be awaited first!");
41188 const nativeResponseValue = wasm.TS_PaymentError_invoice(a);
41189 return nativeResponseValue;
41191 // struct LDKPaymentError PaymentError_sending(enum LDKRetryableSendFailure a);
41193 export function PaymentError_sending(a: RetryableSendFailure): bigint {
41194 if(!isWasmInitialized) {
41195 throw new Error("initializeWasm() must be awaited first!");
41197 const nativeResponseValue = wasm.TS_PaymentError_sending(a);
41198 return nativeResponseValue;
41200 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_phantom_invoice(struct LDKCOption_u64Z amt_msat, struct LDKThirtyTwoBytes payment_hash, struct LDKStr description, uint32_t invoice_expiry_delta_secs, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch);
41202 export function create_phantom_invoice(amt_msat: bigint, payment_hash: number, description: number, invoice_expiry_delta_secs: number, phantom_route_hints: number, entropy_source: bigint, node_signer: bigint, logger: bigint, network: Currency, min_final_cltv_expiry_delta: bigint, duration_since_epoch: bigint): bigint {
41203 if(!isWasmInitialized) {
41204 throw new Error("initializeWasm() must be awaited first!");
41206 const nativeResponseValue = wasm.TS_create_phantom_invoice(amt_msat, payment_hash, description, invoice_expiry_delta_secs, phantom_route_hints, entropy_source, node_signer, logger, network, min_final_cltv_expiry_delta, duration_since_epoch);
41207 return nativeResponseValue;
41209 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_phantom_invoice_with_description_hash(struct LDKCOption_u64Z amt_msat, struct LDKThirtyTwoBytes payment_hash, uint32_t invoice_expiry_delta_secs, struct LDKSha256 description_hash, struct LDKCVec_PhantomRouteHintsZ phantom_route_hints, struct LDKEntropySource entropy_source, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u16Z min_final_cltv_expiry_delta, uint64_t duration_since_epoch);
41211 export function create_phantom_invoice_with_description_hash(amt_msat: bigint, payment_hash: number, invoice_expiry_delta_secs: number, description_hash: bigint, phantom_route_hints: number, entropy_source: bigint, node_signer: bigint, logger: bigint, network: Currency, min_final_cltv_expiry_delta: bigint, duration_since_epoch: bigint): bigint {
41212 if(!isWasmInitialized) {
41213 throw new Error("initializeWasm() must be awaited first!");
41215 const nativeResponseValue = wasm.TS_create_phantom_invoice_with_description_hash(amt_msat, payment_hash, invoice_expiry_delta_secs, description_hash, phantom_route_hints, entropy_source, node_signer, logger, network, min_final_cltv_expiry_delta, duration_since_epoch);
41216 return nativeResponseValue;
41218 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKSha256 description_hash, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
41220 export function create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(channelmanager: bigint, node_signer: bigint, logger: bigint, network: Currency, amt_msat: bigint, description_hash: bigint, duration_since_epoch: bigint, invoice_expiry_delta_secs: number, min_final_cltv_expiry_delta: bigint): bigint {
41221 if(!isWasmInitialized) {
41222 throw new Error("initializeWasm() must be awaited first!");
41224 const nativeResponseValue = wasm.TS_create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(channelmanager, node_signer, logger, network, amt_msat, description_hash, duration_since_epoch, invoice_expiry_delta_secs, min_final_cltv_expiry_delta);
41225 return nativeResponseValue;
41227 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
41229 export function create_invoice_from_channelmanager_and_duration_since_epoch(channelmanager: bigint, node_signer: bigint, logger: bigint, network: Currency, amt_msat: bigint, description: number, duration_since_epoch: bigint, invoice_expiry_delta_secs: number, min_final_cltv_expiry_delta: bigint): bigint {
41230 if(!isWasmInitialized) {
41231 throw new Error("initializeWasm() must be awaited first!");
41233 const nativeResponseValue = wasm.TS_create_invoice_from_channelmanager_and_duration_since_epoch(channelmanager, node_signer, logger, network, amt_msat, description, duration_since_epoch, invoice_expiry_delta_secs, min_final_cltv_expiry_delta);
41234 return nativeResponseValue;
41236 // struct LDKCResult_InvoiceSignOrCreationErrorZ create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(const struct LDKChannelManager *NONNULL_PTR channelmanager, struct LDKNodeSigner node_signer, struct LDKLogger logger, enum LDKCurrency network, struct LDKCOption_u64Z amt_msat, struct LDKStr description, uint64_t duration_since_epoch, uint32_t invoice_expiry_delta_secs, struct LDKThirtyTwoBytes payment_hash, struct LDKCOption_u16Z min_final_cltv_expiry_delta);
41238 export function create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(channelmanager: bigint, node_signer: bigint, logger: bigint, network: Currency, amt_msat: bigint, description: number, duration_since_epoch: bigint, invoice_expiry_delta_secs: number, payment_hash: number, min_final_cltv_expiry_delta: bigint): bigint {
41239 if(!isWasmInitialized) {
41240 throw new Error("initializeWasm() must be awaited first!");
41242 const nativeResponseValue = wasm.TS_create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(channelmanager, node_signer, logger, network, amt_msat, description, duration_since_epoch, invoice_expiry_delta_secs, payment_hash, min_final_cltv_expiry_delta);
41243 return nativeResponseValue;
41245 // struct LDKCResult_SiPrefixParseErrorZ SiPrefix_from_str(struct LDKStr s);
41247 export function SiPrefix_from_str(s: number): bigint {
41248 if(!isWasmInitialized) {
41249 throw new Error("initializeWasm() must be awaited first!");
41251 const nativeResponseValue = wasm.TS_SiPrefix_from_str(s);
41252 return nativeResponseValue;
41254 // struct LDKCResult_InvoiceParseOrSemanticErrorZ Invoice_from_str(struct LDKStr s);
41256 export function Invoice_from_str(s: number): bigint {
41257 if(!isWasmInitialized) {
41258 throw new Error("initializeWasm() must be awaited first!");
41260 const nativeResponseValue = wasm.TS_Invoice_from_str(s);
41261 return nativeResponseValue;
41263 // struct LDKCResult_SignedRawInvoiceParseErrorZ SignedRawInvoice_from_str(struct LDKStr s);
41265 export function SignedRawInvoice_from_str(s: number): bigint {
41266 if(!isWasmInitialized) {
41267 throw new Error("initializeWasm() must be awaited first!");
41269 const nativeResponseValue = wasm.TS_SignedRawInvoice_from_str(s);
41270 return nativeResponseValue;
41272 // struct LDKStr ParseError_to_str(const struct LDKParseError *NONNULL_PTR o);
41274 export function ParseError_to_str(o: bigint): number {
41275 if(!isWasmInitialized) {
41276 throw new Error("initializeWasm() must be awaited first!");
41278 const nativeResponseValue = wasm.TS_ParseError_to_str(o);
41279 return nativeResponseValue;
41281 // struct LDKStr ParseOrSemanticError_to_str(const struct LDKParseOrSemanticError *NONNULL_PTR o);
41283 export function ParseOrSemanticError_to_str(o: bigint): number {
41284 if(!isWasmInitialized) {
41285 throw new Error("initializeWasm() must be awaited first!");
41287 const nativeResponseValue = wasm.TS_ParseOrSemanticError_to_str(o);
41288 return nativeResponseValue;
41290 // struct LDKStr Invoice_to_str(const struct LDKInvoice *NONNULL_PTR o);
41292 export function Invoice_to_str(o: bigint): number {
41293 if(!isWasmInitialized) {
41294 throw new Error("initializeWasm() must be awaited first!");
41296 const nativeResponseValue = wasm.TS_Invoice_to_str(o);
41297 return nativeResponseValue;
41299 // struct LDKStr SignedRawInvoice_to_str(const struct LDKSignedRawInvoice *NONNULL_PTR o);
41301 export function SignedRawInvoice_to_str(o: bigint): number {
41302 if(!isWasmInitialized) {
41303 throw new Error("initializeWasm() must be awaited first!");
41305 const nativeResponseValue = wasm.TS_SignedRawInvoice_to_str(o);
41306 return nativeResponseValue;
41308 // struct LDKStr Currency_to_str(const enum LDKCurrency *NONNULL_PTR o);
41310 export function Currency_to_str(o: bigint): number {
41311 if(!isWasmInitialized) {
41312 throw new Error("initializeWasm() must be awaited first!");
41314 const nativeResponseValue = wasm.TS_Currency_to_str(o);
41315 return nativeResponseValue;
41317 // struct LDKStr SiPrefix_to_str(const enum LDKSiPrefix *NONNULL_PTR o);
41319 export function SiPrefix_to_str(o: bigint): number {
41320 if(!isWasmInitialized) {
41321 throw new Error("initializeWasm() must be awaited first!");
41323 const nativeResponseValue = wasm.TS_SiPrefix_to_str(o);
41324 return nativeResponseValue;
41328 js_invoke = function(obj_ptr: number, fn_id: number, arg1: bigint|number, arg2: bigint|number, arg3: bigint|number, arg4: bigint|number, arg5: bigint|number, arg6: bigint|number, arg7: bigint|number, arg8: bigint|number, arg9: bigint|number, arg10: bigint|number) {
41329 const weak: WeakRef<object>|undefined = js_objs[obj_ptr];
41330 if (weak == null || weak == undefined) {
41331 console.error("Got function call on unknown/free'd JS object!");
41332 throw new Error("Got function call on unknown/free'd JS object!");
41334 const obj = weak.deref();
41335 if (obj == null || obj == undefined) {
41336 console.error("Got function call on GC'd JS object!");
41337 throw new Error("Got function call on GC'd JS object!");
41341 case 0: fn = Object.getOwnPropertyDescriptor(obj, "log"); break;
41342 case 1: fn = Object.getOwnPropertyDescriptor(obj, "get_utxo"); break;
41343 case 2: fn = Object.getOwnPropertyDescriptor(obj, "get_per_commitment_point"); break;
41344 case 3: fn = Object.getOwnPropertyDescriptor(obj, "release_commitment_secret"); break;
41345 case 4: fn = Object.getOwnPropertyDescriptor(obj, "validate_holder_commitment"); break;
41346 case 5: fn = Object.getOwnPropertyDescriptor(obj, "channel_keys_id"); break;
41347 case 6: fn = Object.getOwnPropertyDescriptor(obj, "provide_channel_parameters"); break;
41348 case 7: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_commitment"); break;
41349 case 8: fn = Object.getOwnPropertyDescriptor(obj, "validate_counterparty_revocation"); break;
41350 case 9: fn = Object.getOwnPropertyDescriptor(obj, "sign_holder_commitment_and_htlcs"); break;
41351 case 10: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_output"); break;
41352 case 11: fn = Object.getOwnPropertyDescriptor(obj, "sign_justice_revoked_htlc"); break;
41353 case 12: fn = Object.getOwnPropertyDescriptor(obj, "sign_counterparty_htlc_transaction"); break;
41354 case 13: fn = Object.getOwnPropertyDescriptor(obj, "sign_closing_transaction"); break;
41355 case 14: fn = Object.getOwnPropertyDescriptor(obj, "sign_holder_anchor_input"); break;
41356 case 15: fn = Object.getOwnPropertyDescriptor(obj, "sign_channel_announcement_with_funding_key"); break;
41357 case 16: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
41358 case 17: fn = Object.getOwnPropertyDescriptor(obj, "watch_channel"); break;
41359 case 18: fn = Object.getOwnPropertyDescriptor(obj, "update_channel"); break;
41360 case 19: fn = Object.getOwnPropertyDescriptor(obj, "release_pending_monitor_events"); break;
41361 case 20: fn = Object.getOwnPropertyDescriptor(obj, "broadcast_transaction"); break;
41362 case 21: fn = Object.getOwnPropertyDescriptor(obj, "get_secure_random_bytes"); break;
41363 case 22: fn = Object.getOwnPropertyDescriptor(obj, "get_inbound_payment_key_material"); break;
41364 case 23: fn = Object.getOwnPropertyDescriptor(obj, "get_node_id"); break;
41365 case 24: fn = Object.getOwnPropertyDescriptor(obj, "ecdh"); break;
41366 case 25: fn = Object.getOwnPropertyDescriptor(obj, "sign_invoice"); break;
41367 case 26: fn = Object.getOwnPropertyDescriptor(obj, "sign_gossip_message"); break;
41368 case 27: fn = Object.getOwnPropertyDescriptor(obj, "generate_channel_keys_id"); break;
41369 case 28: fn = Object.getOwnPropertyDescriptor(obj, "derive_channel_signer"); break;
41370 case 29: fn = Object.getOwnPropertyDescriptor(obj, "read_chan_signer"); break;
41371 case 30: fn = Object.getOwnPropertyDescriptor(obj, "get_destination_script"); break;
41372 case 31: fn = Object.getOwnPropertyDescriptor(obj, "get_shutdown_scriptpubkey"); break;
41373 case 32: fn = Object.getOwnPropertyDescriptor(obj, "get_est_sat_per_1000_weight"); break;
41374 case 33: fn = Object.getOwnPropertyDescriptor(obj, "find_route"); break;
41375 case 34: fn = Object.getOwnPropertyDescriptor(obj, "find_route_with_id"); break;
41376 case 35: fn = Object.getOwnPropertyDescriptor(obj, "type_id"); break;
41377 case 36: fn = Object.getOwnPropertyDescriptor(obj, "debug_str"); break;
41378 case 37: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
41379 case 38: fn = Object.getOwnPropertyDescriptor(obj, "tlv_type"); break;
41380 case 39: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
41381 case 40: fn = Object.getOwnPropertyDescriptor(obj, "register_tx"); break;
41382 case 41: fn = Object.getOwnPropertyDescriptor(obj, "register_output"); break;
41383 case 42: fn = Object.getOwnPropertyDescriptor(obj, "channel_penalty_msat"); break;
41384 case 43: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_failed"); break;
41385 case 44: fn = Object.getOwnPropertyDescriptor(obj, "payment_path_successful"); break;
41386 case 45: fn = Object.getOwnPropertyDescriptor(obj, "probe_failed"); break;
41387 case 46: fn = Object.getOwnPropertyDescriptor(obj, "probe_successful"); break;
41388 case 47: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
41389 case 48: fn = Object.getOwnPropertyDescriptor(obj, "lock"); break;
41390 case 49: fn = Object.getOwnPropertyDescriptor(obj, "write"); break;
41391 case 50: fn = Object.getOwnPropertyDescriptor(obj, "persist_manager"); break;
41392 case 51: fn = Object.getOwnPropertyDescriptor(obj, "persist_graph"); break;
41393 case 52: fn = Object.getOwnPropertyDescriptor(obj, "persist_scorer"); break;
41394 case 53: fn = Object.getOwnPropertyDescriptor(obj, "call"); break;
41395 case 54: fn = Object.getOwnPropertyDescriptor(obj, "filtered_block_connected"); break;
41396 case 55: fn = Object.getOwnPropertyDescriptor(obj, "block_connected"); break;
41397 case 56: fn = Object.getOwnPropertyDescriptor(obj, "block_disconnected"); break;
41398 case 57: fn = Object.getOwnPropertyDescriptor(obj, "transactions_confirmed"); break;
41399 case 58: fn = Object.getOwnPropertyDescriptor(obj, "transaction_unconfirmed"); break;
41400 case 59: fn = Object.getOwnPropertyDescriptor(obj, "best_block_updated"); break;
41401 case 60: fn = Object.getOwnPropertyDescriptor(obj, "get_relevant_txids"); break;
41402 case 61: fn = Object.getOwnPropertyDescriptor(obj, "persist_new_channel"); break;
41403 case 62: fn = Object.getOwnPropertyDescriptor(obj, "update_persisted_channel"); break;
41404 case 63: fn = Object.getOwnPropertyDescriptor(obj, "handle_event"); break;
41405 case 64: fn = Object.getOwnPropertyDescriptor(obj, "process_pending_events"); break;
41406 case 65: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg_events"); break;
41407 case 66: fn = Object.getOwnPropertyDescriptor(obj, "handle_open_channel"); break;
41408 case 67: fn = Object.getOwnPropertyDescriptor(obj, "handle_accept_channel"); break;
41409 case 68: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_created"); break;
41410 case 69: fn = Object.getOwnPropertyDescriptor(obj, "handle_funding_signed"); break;
41411 case 70: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_ready"); break;
41412 case 71: fn = Object.getOwnPropertyDescriptor(obj, "handle_shutdown"); break;
41413 case 72: fn = Object.getOwnPropertyDescriptor(obj, "handle_closing_signed"); break;
41414 case 73: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_add_htlc"); break;
41415 case 74: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fulfill_htlc"); break;
41416 case 75: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_htlc"); break;
41417 case 76: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fail_malformed_htlc"); break;
41418 case 77: fn = Object.getOwnPropertyDescriptor(obj, "handle_commitment_signed"); break;
41419 case 78: fn = Object.getOwnPropertyDescriptor(obj, "handle_revoke_and_ack"); break;
41420 case 79: fn = Object.getOwnPropertyDescriptor(obj, "handle_update_fee"); break;
41421 case 80: fn = Object.getOwnPropertyDescriptor(obj, "handle_announcement_signatures"); break;
41422 case 81: fn = Object.getOwnPropertyDescriptor(obj, "peer_disconnected"); break;
41423 case 82: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
41424 case 83: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_reestablish"); break;
41425 case 84: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
41426 case 85: fn = Object.getOwnPropertyDescriptor(obj, "handle_error"); break;
41427 case 86: fn = Object.getOwnPropertyDescriptor(obj, "provided_node_features"); break;
41428 case 87: fn = Object.getOwnPropertyDescriptor(obj, "provided_init_features"); break;
41429 case 88: fn = Object.getOwnPropertyDescriptor(obj, "handle_node_announcement"); break;
41430 case 89: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_announcement"); break;
41431 case 90: fn = Object.getOwnPropertyDescriptor(obj, "handle_channel_update"); break;
41432 case 91: fn = Object.getOwnPropertyDescriptor(obj, "get_next_channel_announcement"); break;
41433 case 92: fn = Object.getOwnPropertyDescriptor(obj, "get_next_node_announcement"); break;
41434 case 93: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
41435 case 94: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_channel_range"); break;
41436 case 95: fn = Object.getOwnPropertyDescriptor(obj, "handle_reply_short_channel_ids_end"); break;
41437 case 96: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_channel_range"); break;
41438 case 97: fn = Object.getOwnPropertyDescriptor(obj, "handle_query_short_channel_ids"); break;
41439 case 98: fn = Object.getOwnPropertyDescriptor(obj, "processing_queue_high"); break;
41440 case 99: fn = Object.getOwnPropertyDescriptor(obj, "provided_node_features"); break;
41441 case 100: fn = Object.getOwnPropertyDescriptor(obj, "provided_init_features"); break;
41442 case 101: fn = Object.getOwnPropertyDescriptor(obj, "next_onion_message_for_peer"); break;
41443 case 102: fn = Object.getOwnPropertyDescriptor(obj, "handle_onion_message"); break;
41444 case 103: fn = Object.getOwnPropertyDescriptor(obj, "peer_connected"); break;
41445 case 104: fn = Object.getOwnPropertyDescriptor(obj, "peer_disconnected"); break;
41446 case 105: fn = Object.getOwnPropertyDescriptor(obj, "provided_node_features"); break;
41447 case 106: fn = Object.getOwnPropertyDescriptor(obj, "provided_init_features"); break;
41448 case 107: fn = Object.getOwnPropertyDescriptor(obj, "read"); break;
41449 case 108: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break;
41450 case 109: fn = Object.getOwnPropertyDescriptor(obj, "get_and_clear_pending_msg"); break;
41451 case 110: fn = Object.getOwnPropertyDescriptor(obj, "handle_custom_message"); break;
41452 case 111: fn = Object.getOwnPropertyDescriptor(obj, "read_custom_message"); break;
41453 case 112: fn = Object.getOwnPropertyDescriptor(obj, "send_data"); break;
41454 case 113: fn = Object.getOwnPropertyDescriptor(obj, "disconnect_socket"); break;
41455 case 114: fn = Object.getOwnPropertyDescriptor(obj, "eq"); break;
41456 case 115: fn = Object.getOwnPropertyDescriptor(obj, "hash"); break;
41458 console.error("Got unknown function call with id " + fn_id + " from C!");
41459 throw new Error("Got unknown function call with id " + fn_id + " from C!");
41461 if (fn == null || fn == undefined) {
41462 console.error("Got function call with id " + fn_id + " on incorrect JS object: " + obj);
41463 throw new Error("Got function call with id " + fn_id + " on incorrect JS object: " + obj);
41467 ret = fn.value.bind(obj)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
41469 console.error("Got an exception calling function with id " + fn_id + "! This is fatal.");
41473 if (ret === undefined || ret === null) return BigInt(0);
41474 return BigInt(ret);