+ /**
+ * Set this feature as optional.
+ */
+ public set_data_loss_protect_optional(): void {
+ bindings.InitFeatures_set_data_loss_protect_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_data_loss_protect_required(): void {
+ bindings.InitFeatures_set_data_loss_protect_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_data_loss_protect(): boolean {
+ const ret: boolean = bindings.InitFeatures_supports_data_loss_protect(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_data_loss_protect(): boolean {
+ const ret: boolean = bindings.InitFeatures_requires_data_loss_protect(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_initial_routing_sync_optional(): void {
+ bindings.InitFeatures_set_initial_routing_sync_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_initial_routing_sync_required(): void {
+ bindings.InitFeatures_set_initial_routing_sync_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public initial_routing_sync(): boolean {
+ const ret: boolean = bindings.InitFeatures_initial_routing_sync(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_upfront_shutdown_script_optional(): void {
+ bindings.InitFeatures_set_upfront_shutdown_script_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_upfront_shutdown_script_required(): void {
+ bindings.InitFeatures_set_upfront_shutdown_script_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_upfront_shutdown_script(): boolean {
+ const ret: boolean = bindings.InitFeatures_supports_upfront_shutdown_script(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_upfront_shutdown_script(): boolean {
+ const ret: boolean = bindings.InitFeatures_requires_upfront_shutdown_script(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_gossip_queries_optional(): void {
+ bindings.InitFeatures_set_gossip_queries_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_gossip_queries_required(): void {
+ bindings.InitFeatures_set_gossip_queries_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_gossip_queries(): boolean {
+ const ret: boolean = bindings.InitFeatures_supports_gossip_queries(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_gossip_queries(): boolean {
+ const ret: boolean = bindings.InitFeatures_requires_gossip_queries(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_variable_length_onion_optional(): void {
+ bindings.InitFeatures_set_variable_length_onion_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_variable_length_onion_required(): void {
+ bindings.InitFeatures_set_variable_length_onion_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_variable_length_onion(): boolean {
+ const ret: boolean = bindings.InitFeatures_supports_variable_length_onion(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_variable_length_onion(): boolean {
+ const ret: boolean = bindings.InitFeatures_requires_variable_length_onion(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_static_remote_key_optional(): void {
+ bindings.InitFeatures_set_static_remote_key_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_static_remote_key_required(): void {
+ bindings.InitFeatures_set_static_remote_key_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_static_remote_key(): boolean {
+ const ret: boolean = bindings.InitFeatures_supports_static_remote_key(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_static_remote_key(): boolean {
+ const ret: boolean = bindings.InitFeatures_requires_static_remote_key(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_payment_secret_optional(): void {
+ bindings.InitFeatures_set_payment_secret_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_payment_secret_required(): void {
+ bindings.InitFeatures_set_payment_secret_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_payment_secret(): boolean {
+ const ret: boolean = bindings.InitFeatures_supports_payment_secret(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_payment_secret(): boolean {
+ const ret: boolean = bindings.InitFeatures_requires_payment_secret(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_basic_mpp_optional(): void {
+ bindings.InitFeatures_set_basic_mpp_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_basic_mpp_required(): void {
+ bindings.InitFeatures_set_basic_mpp_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_basic_mpp(): boolean {
+ const ret: boolean = bindings.InitFeatures_supports_basic_mpp(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_basic_mpp(): boolean {
+ const ret: boolean = bindings.InitFeatures_requires_basic_mpp(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_wumbo_optional(): void {
+ bindings.InitFeatures_set_wumbo_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_wumbo_required(): void {
+ bindings.InitFeatures_set_wumbo_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_wumbo(): boolean {
+ const ret: boolean = bindings.InitFeatures_supports_wumbo(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_wumbo(): boolean {
+ const ret: boolean = bindings.InitFeatures_requires_wumbo(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_shutdown_any_segwit_optional(): void {
+ bindings.InitFeatures_set_shutdown_any_segwit_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_shutdown_any_segwit_required(): void {
+ bindings.InitFeatures_set_shutdown_any_segwit_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_shutdown_anysegwit(): boolean {
+ const ret: boolean = bindings.InitFeatures_supports_shutdown_anysegwit(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_shutdown_anysegwit(): boolean {
+ const ret: boolean = bindings.InitFeatures_requires_shutdown_anysegwit(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_channel_type_optional(): void {
+ bindings.InitFeatures_set_channel_type_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_channel_type_required(): void {
+ bindings.InitFeatures_set_channel_type_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_channel_type(): boolean {
+ const ret: boolean = bindings.InitFeatures_supports_channel_type(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_channel_type(): boolean {
+ const ret: boolean = bindings.InitFeatures_requires_channel_type(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_scid_privacy_optional(): void {
+ bindings.InitFeatures_set_scid_privacy_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_scid_privacy_required(): void {
+ bindings.InitFeatures_set_scid_privacy_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_scid_privacy(): boolean {
+ const ret: boolean = bindings.InitFeatures_supports_scid_privacy(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_scid_privacy(): boolean {
+ const ret: boolean = bindings.InitFeatures_requires_scid_privacy(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_zero_conf_optional(): void {
+ bindings.InitFeatures_set_zero_conf_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_zero_conf_required(): void {
+ bindings.InitFeatures_set_zero_conf_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_zero_conf(): boolean {
+ const ret: boolean = bindings.InitFeatures_supports_zero_conf(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_zero_conf(): boolean {
+ const ret: boolean = bindings.InitFeatures_requires_zero_conf(this.ptr);
+ return ret;
+ }
+