[Java] Update auto-generated Java bindings for 0.0.113
[ldk-java] / src / main / java / org / ldk / structs / UserConfig.java
index 32eca6f67f19fd8997a53e444bedc609a7bef5b6..2861b06e365dbc77b79aefb23587cbdfe38a5ab4 100644 (file)
@@ -38,7 +38,7 @@ public class UserConfig extends CommonBase {
        /**
         * Channel handshake config that we propose to our counterparty.
         */
-       public void set_channel_handshake_config(ChannelHandshakeConfig val) {
+       public void set_channel_handshake_config(org.ldk.structs.ChannelHandshakeConfig val) {
                bindings.UserConfig_set_channel_handshake_config(this.ptr, val == null ? 0 : val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
@@ -60,7 +60,7 @@ public class UserConfig extends CommonBase {
        /**
         * Limits applied to our counterparty's proposed channel handshake config settings.
         */
-       public void set_channel_handshake_limits(ChannelHandshakeLimits val) {
+       public void set_channel_handshake_limits(org.ldk.structs.ChannelHandshakeLimits val) {
                bindings.UserConfig_set_channel_handshake_limits(this.ptr, val == null ? 0 : val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
@@ -82,7 +82,7 @@ public class UserConfig extends CommonBase {
        /**
         * Channel config which affects behavior during channel lifetime.
         */
-       public void set_channel_config(ChannelConfig val) {
+       public void set_channel_config(org.ldk.structs.ChannelConfig val) {
                bindings.UserConfig_set_channel_config(this.ptr, val == null ? 0 : val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
@@ -199,17 +199,54 @@ public class UserConfig extends CommonBase {
                Reference.reachabilityFence(val);
        }
 
+       /**
+        * If this is set to true, LDK will intercept HTLCs that are attempting to be forwarded over
+        * fake short channel ids generated via [`ChannelManager::get_intercept_scid`]. Upon HTLC
+        * intercept, LDK will generate an [`Event::HTLCIntercepted`] which MUST be handled by the user.
+        * 
+        * Setting this to true may break backwards compatibility with LDK versions < 0.0.113.
+        * 
+        * Default value: false.
+        * 
+        * [`ChannelManager::get_intercept_scid`]: crate::ln::channelmanager::ChannelManager::get_intercept_scid
+        * [`Event::HTLCIntercepted`]: crate::util::events::Event::HTLCIntercepted
+        */
+       public boolean get_accept_intercept_htlcs() {
+               boolean ret = bindings.UserConfig_get_accept_intercept_htlcs(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       /**
+        * If this is set to true, LDK will intercept HTLCs that are attempting to be forwarded over
+        * fake short channel ids generated via [`ChannelManager::get_intercept_scid`]. Upon HTLC
+        * intercept, LDK will generate an [`Event::HTLCIntercepted`] which MUST be handled by the user.
+        * 
+        * Setting this to true may break backwards compatibility with LDK versions < 0.0.113.
+        * 
+        * Default value: false.
+        * 
+        * [`ChannelManager::get_intercept_scid`]: crate::ln::channelmanager::ChannelManager::get_intercept_scid
+        * [`Event::HTLCIntercepted`]: crate::util::events::Event::HTLCIntercepted
+        */
+       public void set_accept_intercept_htlcs(boolean val) {
+               bindings.UserConfig_set_accept_intercept_htlcs(this.ptr, val);
+               Reference.reachabilityFence(this);
+               Reference.reachabilityFence(val);
+       }
+
        /**
         * Constructs a new UserConfig given each field
         */
-       public static UserConfig of(ChannelHandshakeConfig channel_handshake_config_arg, ChannelHandshakeLimits channel_handshake_limits_arg, ChannelConfig channel_config_arg, boolean accept_forwards_to_priv_channels_arg, boolean accept_inbound_channels_arg, boolean manually_accept_inbound_channels_arg) {
-               long ret = bindings.UserConfig_new(channel_handshake_config_arg == null ? 0 : channel_handshake_config_arg.ptr, channel_handshake_limits_arg == null ? 0 : channel_handshake_limits_arg.ptr, channel_config_arg == null ? 0 : channel_config_arg.ptr, accept_forwards_to_priv_channels_arg, accept_inbound_channels_arg, manually_accept_inbound_channels_arg);
+       public static UserConfig of(org.ldk.structs.ChannelHandshakeConfig channel_handshake_config_arg, org.ldk.structs.ChannelHandshakeLimits channel_handshake_limits_arg, org.ldk.structs.ChannelConfig channel_config_arg, boolean accept_forwards_to_priv_channels_arg, boolean accept_inbound_channels_arg, boolean manually_accept_inbound_channels_arg, boolean accept_intercept_htlcs_arg) {
+               long ret = bindings.UserConfig_new(channel_handshake_config_arg == null ? 0 : channel_handshake_config_arg.ptr, channel_handshake_limits_arg == null ? 0 : channel_handshake_limits_arg.ptr, channel_config_arg == null ? 0 : channel_config_arg.ptr, accept_forwards_to_priv_channels_arg, accept_inbound_channels_arg, manually_accept_inbound_channels_arg, accept_intercept_htlcs_arg);
                Reference.reachabilityFence(channel_handshake_config_arg);
                Reference.reachabilityFence(channel_handshake_limits_arg);
                Reference.reachabilityFence(channel_config_arg);
                Reference.reachabilityFence(accept_forwards_to_priv_channels_arg);
                Reference.reachabilityFence(accept_inbound_channels_arg);
                Reference.reachabilityFence(manually_accept_inbound_channels_arg);
+               Reference.reachabilityFence(accept_intercept_htlcs_arg);
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.UserConfig ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UserConfig(null, ret); }
                if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(ret_hu_conv); };