+ /**
+ * Set this feature as optional.
+ */
+ public set_data_loss_protect_optional(): void {
+ bindings.NodeFeatures_set_data_loss_protect_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_data_loss_protect_required(): void {
+ bindings.NodeFeatures_set_data_loss_protect_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_data_loss_protect(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_data_loss_protect(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_data_loss_protect(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_data_loss_protect(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_upfront_shutdown_script_optional(): void {
+ bindings.NodeFeatures_set_upfront_shutdown_script_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_upfront_shutdown_script_required(): void {
+ bindings.NodeFeatures_set_upfront_shutdown_script_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_upfront_shutdown_script(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_upfront_shutdown_script(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_upfront_shutdown_script(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_upfront_shutdown_script(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_gossip_queries_optional(): void {
+ bindings.NodeFeatures_set_gossip_queries_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_gossip_queries_required(): void {
+ bindings.NodeFeatures_set_gossip_queries_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_gossip_queries(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_gossip_queries(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_gossip_queries(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_gossip_queries(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_variable_length_onion_optional(): void {
+ bindings.NodeFeatures_set_variable_length_onion_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_variable_length_onion_required(): void {
+ bindings.NodeFeatures_set_variable_length_onion_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_variable_length_onion(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_variable_length_onion(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_variable_length_onion(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_variable_length_onion(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_static_remote_key_optional(): void {
+ bindings.NodeFeatures_set_static_remote_key_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_static_remote_key_required(): void {
+ bindings.NodeFeatures_set_static_remote_key_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_static_remote_key(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_static_remote_key(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_static_remote_key(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_static_remote_key(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_payment_secret_optional(): void {
+ bindings.NodeFeatures_set_payment_secret_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_payment_secret_required(): void {
+ bindings.NodeFeatures_set_payment_secret_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_payment_secret(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_payment_secret(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_payment_secret(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_payment_secret(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_basic_mpp_optional(): void {
+ bindings.NodeFeatures_set_basic_mpp_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_basic_mpp_required(): void {
+ bindings.NodeFeatures_set_basic_mpp_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_basic_mpp(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_basic_mpp(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_basic_mpp(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_basic_mpp(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_wumbo_optional(): void {
+ bindings.NodeFeatures_set_wumbo_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_wumbo_required(): void {
+ bindings.NodeFeatures_set_wumbo_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_wumbo(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_wumbo(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_wumbo(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_wumbo(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_anchors_zero_fee_htlc_tx_optional(): void {
+ bindings.NodeFeatures_set_anchors_zero_fee_htlc_tx_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_anchors_zero_fee_htlc_tx_required(): void {
+ bindings.NodeFeatures_set_anchors_zero_fee_htlc_tx_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_anchors_zero_fee_htlc_tx(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_anchors_zero_fee_htlc_tx(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_anchors_zero_fee_htlc_tx(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_anchors_zero_fee_htlc_tx(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_shutdown_any_segwit_optional(): void {
+ bindings.NodeFeatures_set_shutdown_any_segwit_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_shutdown_any_segwit_required(): void {
+ bindings.NodeFeatures_set_shutdown_any_segwit_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_shutdown_anysegwit(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_shutdown_anysegwit(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_shutdown_anysegwit(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_shutdown_anysegwit(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_onion_messages_optional(): void {
+ bindings.NodeFeatures_set_onion_messages_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_onion_messages_required(): void {
+ bindings.NodeFeatures_set_onion_messages_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_onion_messages(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_onion_messages(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_onion_messages(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_onion_messages(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_channel_type_optional(): void {
+ bindings.NodeFeatures_set_channel_type_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_channel_type_required(): void {
+ bindings.NodeFeatures_set_channel_type_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_channel_type(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_channel_type(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_channel_type(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_channel_type(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_scid_privacy_optional(): void {
+ bindings.NodeFeatures_set_scid_privacy_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_scid_privacy_required(): void {
+ bindings.NodeFeatures_set_scid_privacy_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_scid_privacy(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_scid_privacy(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_scid_privacy(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_scid_privacy(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_zero_conf_optional(): void {
+ bindings.NodeFeatures_set_zero_conf_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_zero_conf_required(): void {
+ bindings.NodeFeatures_set_zero_conf_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_zero_conf(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_zero_conf(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_zero_conf(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_zero_conf(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_keysend_optional(): void {
+ bindings.NodeFeatures_set_keysend_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_keysend_required(): void {
+ bindings.NodeFeatures_set_keysend_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_keysend(): boolean {
+ const ret: boolean = bindings.NodeFeatures_supports_keysend(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_keysend(): boolean {
+ const ret: boolean = bindings.NodeFeatures_requires_keysend(this.ptr);
+ return ret;
+ }
+