import { ClosureReason } from '../structs/ClosureReason.mjs';
import { Option_ClosureReasonZ } from '../structs/Option_ClosureReasonZ.mjs';
import { Result_COption_ClosureReasonZDecodeErrorZ } from '../structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
+import { HTLCDestination } from '../structs/HTLCDestination.mjs';
+import { Option_HTLCDestinationZ } from '../structs/Option_HTLCDestinationZ.mjs';
+import { Result_COption_HTLCDestinationZDecodeErrorZ } from '../structs/Result_COption_HTLCDestinationZDecodeErrorZ.mjs';
import { ChannelUpdate } from '../structs/ChannelUpdate.mjs';
import { NetworkUpdate } from '../structs/NetworkUpdate.mjs';
import { Option_NetworkUpdateZ } from '../structs/Option_NetworkUpdateZ.mjs';
import { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
import { MonitorEvent } from '../structs/MonitorEvent.mjs';
-import { TwoTuple_OutPointCVec_MonitorEventZZ } from '../structs/TwoTuple_OutPointCVec_MonitorEventZZ.mjs';
+import { ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ } from '../structs/ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.mjs';
import { Option_C2Tuple_usizeTransactionZZ } from '../structs/Option_C2Tuple_usizeTransactionZZ.mjs';
import { FixedPenaltyScorer } from '../structs/FixedPenaltyScorer.mjs';
import { Result_FixedPenaltyScorerDecodeErrorZ } from '../structs/Result_FixedPenaltyScorerDecodeErrorZ.mjs';
import { Result_ChannelInfoDecodeErrorZ } from '../structs/Result_ChannelInfoDecodeErrorZ.mjs';
import { RoutingFees } from '../structs/RoutingFees.mjs';
import { Result_RoutingFeesDecodeErrorZ } from '../structs/Result_RoutingFeesDecodeErrorZ.mjs';
+import { Hostname } from '../structs/Hostname.mjs';
import { NetAddress } from '../structs/NetAddress.mjs';
import { NodeAnnouncementInfo } from '../structs/NodeAnnouncementInfo.mjs';
import { Result_NodeAnnouncementInfoDecodeErrorZ } from '../structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';
* Represents an error returned from the bech32 library during validation of some bech32 data
*/
export class Bech32Error extends CommonBase {
- protected constructor(_dummy: object, ptr: number) { super(ptr, bindings.Bech32Error_free); }
+ protected constructor(_dummy: object, ptr: bigint) { super(ptr, bindings.Bech32Error_free); }
/* @internal */
- public static constr_from_ptr(ptr: number): Bech32Error {
+ public static constr_from_ptr(ptr: bigint): Bech32Error {
const raw_ty: number = bindings.LDKBech32Error_ty_from_ptr(ptr);
switch (raw_ty) {
case 0: return new Bech32Error_MissingSeparator(ptr);
}
}
- public clone_ptr(): number {
- const ret: number = bindings.Bech32Error_clone_ptr(this.ptr);
+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.Bech32Error_clone_ptr(this.ptr);
return ret;
}
* Creates a new Bech32Error which has the same data as `orig`
*/
public clone(): Bech32Error {
- const ret: number = bindings.Bech32Error_clone(this.ptr);
+ const ret: bigint = bindings.Bech32Error_clone(this.ptr);
const ret_hu_conv: Bech32Error = Bech32Error.constr_from_ptr(ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
/** A Bech32Error of type MissingSeparator */
export class Bech32Error_MissingSeparator extends Bech32Error {
/* @internal */
- public constructor(ptr: number) {
+ public constructor(ptr: bigint) {
super(null, ptr);
}
}
/** A Bech32Error of type InvalidChecksum */
export class Bech32Error_InvalidChecksum extends Bech32Error {
/* @internal */
- public constructor(ptr: number) {
+ public constructor(ptr: bigint) {
super(null, ptr);
}
}
/** A Bech32Error of type InvalidLength */
export class Bech32Error_InvalidLength extends Bech32Error {
/* @internal */
- public constructor(ptr: number) {
+ public constructor(ptr: bigint) {
super(null, ptr);
}
}
export class Bech32Error_InvalidChar extends Bech32Error {
public invalid_char: number;
/* @internal */
- public constructor(ptr: number) {
+ public constructor(ptr: bigint) {
super(null, ptr);
this.invalid_char = bindings.LDKBech32Error_InvalidChar_get_invalid_char(ptr);
}
export class Bech32Error_InvalidData extends Bech32Error {
public invalid_data: number;
/* @internal */
- public constructor(ptr: number) {
+ public constructor(ptr: bigint) {
super(null, ptr);
this.invalid_data = bindings.LDKBech32Error_InvalidData_get_invalid_data(ptr);
}
/** A Bech32Error of type InvalidPadding */
export class Bech32Error_InvalidPadding extends Bech32Error {
/* @internal */
- public constructor(ptr: number) {
+ public constructor(ptr: bigint) {
super(null, ptr);
}
}
/** A Bech32Error of type MixedCase */
export class Bech32Error_MixedCase extends Bech32Error {
/* @internal */
- public constructor(ptr: number) {
+ public constructor(ptr: bigint) {
super(null, ptr);
}
}