X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=ts%2Fstructs%2FBech32Error.mts;h=3c88dad690416f5aee3a72590d75f40fd89bb83f;hb=31a1b84c2ca25db2978865e9ca9573974f79cc79;hp=e08ca1ad11708b75ff96bef9a7b4af2e02921b3e;hpb=4713fdb1c6821681d17ecde031b77eb43db1308b;p=ldk-java diff --git a/ts/structs/Bech32Error.mts b/ts/structs/Bech32Error.mts index e08ca1ad..3c88dad6 100644 --- a/ts/structs/Bech32Error.mts +++ b/ts/structs/Bech32Error.mts @@ -66,6 +66,9 @@ import { Result_PaymentPurposeDecodeErrorZ } from '../structs/Result_PaymentPurp 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'; @@ -103,7 +106,7 @@ import { TwoTuple_usizeTransactionZ } from '../structs/TwoTuple_usizeTransaction 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'; @@ -137,6 +140,7 @@ import { ChannelInfo } from '../structs/ChannelInfo.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'; @@ -355,9 +359,9 @@ import * as bindings from '../bindings.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); @@ -372,8 +376,8 @@ export class Bech32Error extends CommonBase { } } - 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; } @@ -381,7 +385,7 @@ export class Bech32Error extends CommonBase { * 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; @@ -391,21 +395,21 @@ export class Bech32Error extends CommonBase { /** 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); } } @@ -413,7 +417,7 @@ export class Bech32Error_InvalidLength extends Bech32Error { 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); } @@ -422,7 +426,7 @@ export class Bech32Error_InvalidChar extends Bech32Error { 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); } @@ -430,14 +434,14 @@ export class Bech32Error_InvalidData extends Bech32Error { /** 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); } }