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 { ClosureReason } from '../structs/ClosureReason.mjs';
import { Option_ClosureReasonZ } from '../structs/Option_ClosureReasonZ.mjs';
import { Result_COption_ClosureReasonZDecodeErrorZ } from '../structs/Result_COption_ClosureReasonZDecodeErrorZ.mjs';
import { ChannelUpdate } from '../structs/ChannelUpdate.mjs';
import { NetworkUpdate } from '../structs/NetworkUpdate.mjs';
import { Option_NetworkUpdateZ } from '../structs/Option_NetworkUpdateZ.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 { Result_NoneChannelMonitorUpdateErrZ } from '../structs/Result_NoneChannelMonitorUpdateErrZ.mjs';
import { HTLCUpdate } from '../structs/HTLCUpdate.mjs';
import { MonitorEvent } from '../structs/MonitorEvent.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 { 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 { Result_ChannelInfoDecodeErrorZ } from '../structs/Result_ChannelInfoDecodeErrorZ.mjs';
import { RoutingFees } from '../structs/RoutingFees.mjs';
import { Result_RoutingFeesDecodeErrorZ } from '../structs/Result_RoutingFeesDecodeErrorZ.mjs';
import { NetAddress } from '../structs/NetAddress.mjs';
import { NodeAnnouncementInfo } from '../structs/NodeAnnouncementInfo.mjs';
import { Result_NodeAnnouncementInfoDecodeErrorZ } from '../structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';
import { NetAddress } from '../structs/NetAddress.mjs';
import { NodeAnnouncementInfo } from '../structs/NodeAnnouncementInfo.mjs';
import { Result_NodeAnnouncementInfoDecodeErrorZ } from '../structs/Result_NodeAnnouncementInfoDecodeErrorZ.mjs';
if (bindings.CResult_RouteHintDecodeErrorZ_is_ok(ptr)) {
return new Result_RouteHintDecodeErrorZ_OK(null, ptr);
} else {
if (bindings.CResult_RouteHintDecodeErrorZ_is_ok(ptr)) {
return new Result_RouteHintDecodeErrorZ_OK(null, ptr);
} else {
* Creates a new CResult_RouteHintDecodeErrorZ in the success state.
*/
public static constructor_ok(o: RouteHint): Result_RouteHintDecodeErrorZ {
* Creates a new CResult_RouteHintDecodeErrorZ in the success state.
*/
public static constructor_ok(o: RouteHint): Result_RouteHintDecodeErrorZ {
* Creates a new CResult_RouteHintDecodeErrorZ in the error state.
*/
public static constructor_err(e: DecodeError): Result_RouteHintDecodeErrorZ {
* Creates a new CResult_RouteHintDecodeErrorZ in the error state.
*/
public static constructor_err(e: DecodeError): Result_RouteHintDecodeErrorZ {
- public clone_ptr(): number {
- const ret: number = bindings.CResult_RouteHintDecodeErrorZ_clone_ptr(this.ptr);
+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.CResult_RouteHintDecodeErrorZ_clone_ptr(this.ptr);
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Result_RouteHintDecodeErrorZ {
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Result_RouteHintDecodeErrorZ {
const res_hu_conv: RouteHint = new RouteHint(null, res);
CommonBase.add_ref_from(res_hu_conv, this);
this.res = res_hu_conv;
const res_hu_conv: RouteHint = new RouteHint(null, res);
CommonBase.add_ref_from(res_hu_conv, this);
this.res = res_hu_conv;
const err_hu_conv: DecodeError = new DecodeError(null, err);
CommonBase.add_ref_from(err_hu_conv, this);
this.err = err_hu_conv;
const err_hu_conv: DecodeError = new DecodeError(null, err);
CommonBase.add_ref_from(err_hu_conv, this);
this.err = err_hu_conv;